Last active
August 29, 2015 13:56
-
-
Save a-musing-moose/9266059 to your computer and use it in GitHub Desktop.
How nasty is this?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from oscar_op.ingram import files, converters | |
class Hmmm(files.FileReader): | |
rows = { | |
"R1": type( | |
'R1Row', | |
(files.Row, object), | |
{ | |
"format": [ | |
('first', '2s', converters.StringConverter(2)), | |
('second', '4s', converters.StringConverter(4)), | |
('third', '6s', converters.StringConverter(6)), | |
] | |
} | |
), | |
"R2": type( | |
'R2Row', | |
(files.Row, object), | |
{ | |
"format": [ | |
('first', '2s', converters.StringConverter(2)), | |
('second', '4s', converters.StringConverter(4)), | |
('third', '6s', converters.StringConverter(6)), | |
] | |
} | |
), | |
"R3": type( | |
'R3Row', | |
(files.Row, object), | |
{ | |
"format": [ | |
('first', '2s', converters.StringConverter(2)), | |
('second', '4s', converters.StringConverter(4)), | |
('third', '6s', converters.StringConverter(6)), | |
] | |
} | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment