[issue9690] Cannot distinguish b"str" from "str" in ast module.

Benjamin Peterson report at bugs.python.org
Thu Aug 26 20:20:51 CEST 2010


Benjamin Peterson <benjamin at python.org> added the comment:

2010/8/26 Kay Hayen <report at bugs.python.org>:
>
> Kay Hayen <kayhayen at gmx.de> added the comment:
>
> Hello Benjamin,
>
> thank you for the response. What do you mean with there is "nothing we can do about it". Is it not possible to add another field indicating the prefix given to a literal?

We can't do anything about it because 2.7 has been released and a "new
flag" would be a disallowed new feature.

>
> BTW: I believe raw strings are also no longer recognizable. Fortunately I do not need to do that, but look here:

If you need to recognize those (or unicode literals for that matter),
you could look at the parser module's raw trees.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9690>
_______________________________________


More information about the Python-bugs-list mailing list