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 belopolsky
Recipients belopolsky, benjamin.peterson, ezio.melotti, lemburg, loewis, serhiy.storchaka
Date 2013-06-24.16:10:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1372090208.06.0.650807676162.issue18234@psf.upfronthosting.co.za>
In-reply-to
Content
> The .aliases() function would have to return a list, not a single
> name, so a parameter would cause the return type to change, which
> is not a good idea.

You misunderstood my proposal.  .name() will still return a single name, but the type parameter will control which name to return:

name(ch[, type=(None|'correction'|'control'|'alternate'|'figment'|'abbreviation')])

None - default, same as current behavior.

correction - indicates that the returned name is a corrected form for the original name (which remains valid) for the same code point.

control - return a new name added for a control character.

alternate - return an alternate name for a character

figment - return a name for a character that has been documented but was never in any actual standard.

abbreviation - return a common abbreviation for a character
History
Date User Action Args
2013-06-24 16:10:08belopolskysetrecipients: + belopolsky, lemburg, loewis, benjamin.peterson, ezio.melotti, serhiy.storchaka
2013-06-24 16:10:08belopolskysetmessageid: <1372090208.06.0.650807676162.issue18234@psf.upfronthosting.co.za>
2013-06-24 16:10:08belopolskylinkissue18234 messages
2013-06-24 16:10:07belopolskycreate