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.
Created on 2012年01月09日 19:14 by pitrou, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| rb.patch | pitrou, 2012年01月09日 19:14 | review | ||
| rb2.patch | pitrou, 2012年01月09日 19:27 | review | ||
| Messages (8) | |||
|---|---|---|---|
| msg150964 - (view) | Author: Antoine Pitrou (pitrou) * (Python committer) | Date: 2012年01月09日 19:14 | |
As mentioned in issue13744, it is not easy to remember that br"" is an allowed bytes literal but not rb"". Here is a patch to allow both forms. |
|||
| msg150967 - (view) | Author: Antoine Pitrou (pitrou) * (Python committer) | Date: 2012年01月09日 19:27 | |
Updated patch with doc. |
|||
| msg150974 - (view) | Author: Barry A. Warsaw (barry) * (Python committer) | Date: 2012年01月09日 20:09 | |
On Jan 09, 2012, at 07:27 PM, Antoine Pitrou wrote: >Updated patch with doc. Nicely done. +1 |
|||
| msg150978 - (view) | Author: Benjamin Peterson (benjamin.peterson) * (Python committer) | Date: 2012年01月09日 20:53 | |
I would be happier if there was precedent for this with "ur" = "ru" in 2.x, which is not true. |
|||
| msg150979 - (view) | Author: Antoine Pitrou (pitrou) * (Python committer) | Date: 2012年01月09日 20:57 | |
> I would be happier if there was precedent for this with "ur" = "ru" in > 2.x, which is not true. In my experience, raw unicode literals were very rare while raw bytes literals are quite frequent (mainly for regular expressions). |
|||
| msg151038 - (view) | Author: Georg Brandl (georg.brandl) * (Python committer) | Date: 2012年01月11日 08:01 | |
+1 for "raw bytes", which reads much nicer to me than "bytes raw". |
|||
| msg151153 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2012年01月12日 21:47 | |
New changeset bbed36370b08 by Antoine Pitrou in branch 'default': Issue #13748: Raw bytes literals can now be written with the `rb` prefix as well as `br`. http://hg.python.org/cpython/rev/bbed36370b08 |
|||
| msg151154 - (view) | Author: Antoine Pitrou (pitrou) * (Python committer) | Date: 2012年01月12日 21:48 | |
Committed, thanks. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:25 | admin | set | github: 57957 |
| 2012年01月12日 21:48:47 | pitrou | set | status: open -> closed resolution: fixed messages: + msg151154 stage: patch review -> commit review |
| 2012年01月12日 21:47:54 | python-dev | set | nosy:
+ python-dev messages: + msg151153 |
| 2012年01月11日 08:01:02 | georg.brandl | set | nosy:
+ georg.brandl messages: + msg151038 |
| 2012年01月09日 20:57:49 | pitrou | set | messages: + msg150979 |
| 2012年01月09日 20:53:34 | benjamin.peterson | set | messages: + msg150978 |
| 2012年01月09日 20:09:40 | barry | set | messages: + msg150974 |
| 2012年01月09日 19:27:37 | pitrou | set | files:
+ rb2.patch messages: + msg150967 |
| 2012年01月09日 19:14:10 | pitrou | create | |