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 eric.smith
Recipients docs@python, eric.smith, xiang.zhang
Date 2016-09-03.14:54:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1472914485.77.0.386457290578.issue27949@psf.upfronthosting.co.za>
In-reply-to
Content
While they probably should be entered with escapes, there's no actual technical requirement for that.

From the command line, I can enter a control-A with control-V control-A (this might be different depending on your environment, or if you use an editor). This will enter a literal string containing a single character with value 1.

That gives:

>>> '^A'     # ^A is the combination control-V control-A
'\x01'
>>> len('^A')
1
>>> ord('^A')
1
>>> b'^A'
b'\x01'
History
Date User Action Args
2016-09-03 14:54:45eric.smithsetrecipients: + eric.smith, docs@python, xiang.zhang
2016-09-03 14:54:45eric.smithsetmessageid: <1472914485.77.0.386457290578.issue27949@psf.upfronthosting.co.za>
2016-09-03 14:54:45eric.smithlinkissue27949 messages
2016-09-03 14:54:45eric.smithcreate