[Python-ideas] Working with Path objects: p-strings?

Donald Stufft donald at stufft.io
Fri Mar 25 19:56:09 EDT 2016


> On Mar 25, 2016, at 5:59 PM, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> 
> Currently, the prefixes just represent different ways of specifying
> a string -- the end result is still always an instance of str.

While I’m not sure if the p”” string is a good idea, this isn’t
exactly true. b”” creates a bytes object, not a str object.

-----------------
Donald Stufft
PGP: 0x6E3CBCE93372DCFA // 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160325/8da39ecd/attachment.sig>


More information about the Python-ideas mailing list