[Python-Dev] Backslash at end of raw string

2009-12-12 Thread Rob Cliffe
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

Re: [Python-Dev] Backslash at end of raw string

2009-12-12 Thread Ben Finney
"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

Re: [Python-Dev] Proposing PEP 386 for addition

2009-12-12 Thread Tarek Ziadé
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

[Python-Dev] First draft of "sysconfig"

2009-12-12 Thread Tarek Ziadé
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

Re: [Python-Dev] First draft of "sysconfig"

2009-12-12 Thread Brett Cannon
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

Re: [Python-Dev] First draft of "sysconfig"

2009-12-12 Thread Tarek Ziadé
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

Re: [Python-Dev] First draft of "sysconfig"

2009-12-12 Thread Brett Cannon
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

Re: [Python-Dev] First draft of "sysconfig"

2009-12-12 Thread Tarek Ziadé
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

Re: [Python-Dev] First draft of "sysconfig"

2009-12-12 Thread Eric Smith
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

Re: [Python-Dev] First draft of "sysconfig"

2009-12-12 Thread Brett Cannon
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

Re: [Python-Dev] Unittest/doctest formatting differences in 2.7a1?

2009-12-12 Thread Benjamin Peterson
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