diff --git a/mathics/builtin/importexport.py b/mathics/builtin/importexport.py index 1c56c3eba3..4be1e83843 100644 --- a/mathics/builtin/importexport.py +++ b/mathics/builtin/importexport.py @@ -228,6 +228,34 @@ class ExportFormats(Predefined): def evaluate(self, evaluation): return Expression('List', *sorted(EXPORTERS.keys())) +class ConverterDumpsExtensionMappings(Predefined): + """ +
+
'$extensionMappings' +
Returns a list of associations between file extensions and file types. +
+ """ + context = 'System`ConvertersDump`' + name = "$extensionMappings" + attributes = ['Unprotected'] + + def evaluate(self, evaluation): + return from_python(EXTENSIONMAPPINGS) + + +class ConverterDumpsFormatMappings(Predefined): + """ +
+
'$formatMappings' +
Returns a list of associations between file extensions and file types. +
+ """ + context = 'System`ConvertersDump`' + name = "$formatMappings" + attributes = ['Unprotected'] + def evaluate(self, evaluation): + return from_python(FORMATMAPPINGS) + class ConverterDumpsExtensionMappings(Predefined): """