This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mbussonn
Recipients docs@python, mbussonn
Date 2016-10-11.19:04:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1476212697.92.0.408666384378.issue28418@psf.upfronthosting.co.za>
In-reply-to
Content
the Tokenize module has the following code:

# An undocumented, backwards compatible, API for all the places in the standard
# library that expect to be able to use tokenize with strings
def generate_tokens(readline):
    return _tokenize(readline, None)

So I'm going to assume it is Deprecated... (since 3.0 AFAICT). 

If it is expected from Python developers to not use it, may I suggest:

1) Marking it as deprecated in the docstring/
2) Raise a deprecation warning. 

Indeed not everyone code by looking at the documentation and it is relatively easy to have your IDE/editor/REPL to complete it. Even tools that grab the source (IPython double question mark for example) will not show the comment above which make it kinda pointless.
History
Date User Action Args
2016-10-11 19:04:57mbussonnsetrecipients: + mbussonn, docs@python
2016-10-11 19:04:57mbussonnsetmessageid: <1476212697.92.0.408666384378.issue28418@psf.upfronthosting.co.za>
2016-10-11 19:04:57mbussonnlinkissue28418 messages
2016-10-11 19:04:57mbussonncreate