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 terry.reedy
Recipients CuriousLearner, dabeaz, docs@python, serhiy.storchaka, terry.reedy
Date 2018-03-10.17:44:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1520703868.67.0.467229070634.issue33014@psf.upfronthosting.co.za>
In-reply-to
Content
Debating historical design decisions that effectively cannot be changed is off topic for the tracker (but fair game on python-list).  However, I will explain this much.  The s.isxyz questions are answered by examining the characters and codepoints in s.  Answering iskeyword(s) requires reference to the collection of keywords, kwlist, which must be exposed to users, and which may change in any new version.  We usually attach constant data attributes to modules (other than builtins), and never (that I can think of) to built-in classes.  "def iskeyword(s): return s in kwlist:" belongs in the module with kwlist.
History
Date User Action Args
2018-03-10 17:44:28terry.reedysetrecipients: + terry.reedy, dabeaz, docs@python, serhiy.storchaka, CuriousLearner
2018-03-10 17:44:28terry.reedysetmessageid: <1520703868.67.0.467229070634.issue33014@psf.upfronthosting.co.za>
2018-03-10 17:44:28terry.reedylinkissue33014 messages
2018-03-10 17:44:28terry.reedycreate