unintentional print?
Alan Isaac <[email protected]>
| Newsgroups | gmane.text.docutils.user |
|---|---|
| Message-ID | <[email protected]> |
I'm guessing that 2to3 conversion is used to support Python 3,
but somehow I recently managed to choke on:
File "docutils\utils\math\tex2mathml_extern.py", line 130
print err
Although this could be "fixed" with parentheses, but
I'm guessing the very existence of this line is an oversight.
Cheers,
Alan Isaac
PS While looking, I noticed old style exception syntax in use.
I assume this is intentional (i.e., let the converter handle it)
and that you know Python 2's
except IOError, err:
could be written without any need for 2to3 conversion as
except IOError:
err = sys.exc_info()[1]
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot