Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions mathics/builtin/importexport.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,34 @@ class ExportFormats(Predefined):
def evaluate(self, evaluation):
return Expression('List', *sorted(EXPORTERS.keys()))

class ConverterDumpsExtensionMappings(Predefined):
"""
<dl>
<dt>'$extensionMappings'
<dd>Returns a list of associations between file extensions and file types.
</dl>
"""
context = 'System`ConvertersDump`'
name = "$extensionMappings"
attributes = ['Unprotected']

def evaluate(self, evaluation):
return from_python(EXTENSIONMAPPINGS)


class ConverterDumpsFormatMappings(Predefined):
"""
<dl>
<dt>'$formatMappings'
<dd>Returns a list of associations between file extensions and file types.
</dl>
"""
context = 'System`ConvertersDump`'
name = "$formatMappings"
attributes = ['Unprotected']
def evaluate(self, evaluation):
return from_python(FORMATMAPPINGS)


class ConverterDumpsExtensionMappings(Predefined):
"""
Expand Down