Python (e.g. 2.5) does not accept a backslash as the LAST character of a raw
string:
>>> r"\"
File "", line 1
r"\"
^
Syntax Error: EOL while scanning single-quoted string.
path = r'\MyDir\MySubDir\' # raises same error
path = r'\MyDir\MySubDir' # no error
Isn't this a bug?
Rob
"Rob Cliffe" writes:
> Syntax Error: EOL while scanning single-quoted string.
[…]
> Isn't this a bug?
It has a report http://bugs.python.org/issue1271> but is not a bug
http://www.python.org/doc/faq/general/#why-can-t-raw-strings-r-strings-end-with-a-backslash>.
--
\ “Broken promise
On Fri, Dec 11, 2009 at 6:15 AM, Ben Finney
[..]
>
> Yes, I'm referring to the discussion that were had over “why do we want
> special keywords that mess with the default alphanumerical ordering of
> version string components?” discussion.
>
> That needs to be addressed in the PEP, since it's germa
Hello,
A while ago I've proposed to refactor the APIs that provides access to
the installation paths and configuration variables at runtime into a
single module called "sysconfig", and make it easier for all
implementations to work with them.
I've started a branch and worked on it, and I'd like t
On Sat, Dec 12, 2009 at 12:02, Tarek Ziadé wrote:
> Hello,
>
> A while ago I've proposed to refactor the APIs that provides access to
> the installation paths and configuration variables at runtime into a
> single module called "sysconfig", and make it easier for all
> implementations to work wit
On Sat, Dec 12, 2009 at 10:35 PM, Brett Cannon wrote:
[...]
>> 'nt': {
>> 'stdlib': '$base/Lib',
>> 'platstdlib': '$base/Lib',
>> 'purelib': '$base/Lib/site-packages',
>> 'platlib': '$base/Lib/site-packages',
>> 'include': '$base/include',
>> 'platinclude
On Sat, Dec 12, 2009 at 14:13, Tarek Ziadé wrote:
> On Sat, Dec 12, 2009 at 10:35 PM, Brett Cannon wrote:
> [...]
> >> 'nt': {
> >>'stdlib': '$base/Lib',
> >>'platstdlib': '$base/Lib',
> >>'purelib': '$base/Lib/site-packages',
> >>'platlib': '$base/Lib/site-packa
On Sat, Dec 12, 2009 at 11:18 PM, Brett Cannon wrote:
[..]
>> Not really. That's mostly because I reused the existing implementation
>> and I found them quite readable in that case. But a string.Formatter
>> could work well here too I guess.
>
> Just figured that with formatters the way of the fut
Tarek Ziadé wrote:
On Sat, Dec 12, 2009 at 10:35 PM, Brett Cannon wrote:
[...]
'nt': {
'stdlib': '$base/Lib',
'platstdlib': '$base/Lib',
'purelib': '$base/Lib/site-packages',
'platlib': '$base/Lib/site-packages',
'include': '$base/include',
'platinclud
That's what I meant.
[From my phone]
On Dec 12, 2009 4:32 PM, "Eric Smith" wrote:
Tarek Ziadé wrote: > > On Sat, Dec 12, 2009 at 10:35 PM, Brett Cannon <
br...@python.org> wrote: > [
I don't really understand the complete context, but I think you want
str.format(), not string.Formatter here
2009/12/11 Lennart Regebro :
> Should I start a bug report in the tracker for this?
Yes, please.
--
Regards,
Benjamin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.pytho
11 matches
Mail list logo