I'd like to remove the feature that was introduced in version 1.0.1, in which parse actions could return a modified parse location as well as a modified set of tokens. This feature is largely disabled, but I still have code that supports the old form.
For those of you using parse actions, do you have any that return modified tokens, or converted data? Is anyone still (trying) to return the loc value as well?
At the very least, I will add a DeprecationWarning message for this case in the next release.
-- Paul
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I use parse actions that return modified data (converts data to unicode from different charsets based on parsing context =) - it's very, very useful, but I don't change the loc value (as far as I know =).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for the response. This feature (returning a modified loc) will be removed in 1.4.3, which I expect to release in the next couple of weeks. Returning modified tokens will still be supported.
-- Paul
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'd like to remove the feature that was introduced in version 1.0.1, in which parse actions could return a modified parse location as well as a modified set of tokens. This feature is largely disabled, but I still have code that supports the old form.
For those of you using parse actions, do you have any that return modified tokens, or converted data? Is anyone still (trying) to return the loc value as well?
At the very least, I will add a DeprecationWarning message for this case in the next release.
-- Paul
I use parse actions that return modified data (converts data to unicode from different charsets based on parsing context =) - it's very, very useful, but I don't change the loc value (as far as I know =).
Thanks for the response. This feature (returning a modified loc) will be removed in 1.4.3, which I expect to release in the next couple of weeks. Returning modified tokens will still be supported.
-- Paul