Author taleinat
Recipients ezio.melotti, lemburg, loewis, taleinat, terry.reedy
Date 2014-06-21.11:54:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> What's the reason for checking if the ord is >= 128?

It's an optimization. Assuming the majority of characters will be ASCII, most non-identifier characters will fail this test, thus avoiding the more involved generic Unicode check.

> However, I would propose that methods .isidstart and
> .isidcontinue get added to the str type if there is a
> need for them.

I was surprised to find .isidentifier() is a method of the str type. Even if that is considered useful enough to be a method of str, I don't think the functions you suggest are generally useful enough to warrant being added as methods.

Then again, I'm no authority on decided what gets included as methods of base types. Regardless, I'd rather this patch go in without affecting str; adding these methods to str is a separate issue. If someone decides to pursue that, feel free to use this code and/or +nosy me.
Date User Action Args
2014-06-21 11:54:07taleinatsetrecipients: + taleinat, lemburg, loewis, terry.reedy, ezio.melotti
2014-06-21 11:54:07taleinatsetmessageid: <>
2014-06-21 11:54:07taleinatlinkissue21765 messages
2014-06-21 11:54:07taleinatcreate