[Python-Dev] 2to3 and print function

David Wolever wolever at cs.toronto.edu
Thu Mar 20 16:49:13 CET 2008


On 20-Mar-08, at 2:15 AM, Guido van Rossum wrote:
> On Wed, Mar 19, 2008 at 10:27 PM, David Wolever  
> <wolever at cs.toronto.edu> wrote:
>>  Why not, instead of trying both parsers, scan for a __future__
>>  import, then do the Right Thing based on that?
> Different use cases.
> Auto-detection based on __future__ would be a good thing to have
> (assuming that __future__ statement has actually been implemented :-).
The __future__ statement has been implemented, so __future__ auto- 
detection will come shortly :)


More information about the Python-Dev mailing list