Re: [Python-Dev] [Python-checkins] cpython: Elaborate that sizeof only accounts for the object itself.

2012-06-17 Thread Eli Bendersky
On Sun, Jun 17, 2012 at 11:42 AM, martin.v.loewis python-check...@python.org wrote: http://hg.python.org/cpython/rev/cddaf96c8149 changeset: 77484:cddaf96c8149 parent: 77482:1f6c23ed8218 user:Martin v. Löwis mar...@v.loewis.de date:Sun Jun 17 10:40:16 2012 +0200

Re: [Python-Dev] VS 11 Express is Metro only.

2012-06-17 Thread Martin v. Löwis
Microsoft is now claiming that it will be able to using something called multi-targeting, later this year. http://blogs.msdn.com/b/vcblog/archive/2012/06/15/10320645.aspx Interesting. Unlike the re-addition of desktop app support for Express, which was a purely political decision, this

[Python-Dev] Raw string syntax inconsistency

2012-06-17 Thread Christian Heimes
Hello, the topic came up on the python-users list today. The raw string syntax has a minor inconsistency. The ru notation is a syntax error although we support rb. Neither rb nor ru are supported on Python 2.7. Python 3.3: works: r, ur, br, rb syntax error: ru Python 2.7: works: r, ur,

Re: [Python-Dev] Raw string syntax inconsistency

2012-06-17 Thread Nick Coghlan
On Sun, Jun 17, 2012 at 9:45 PM, Christian Heimes li...@cheimes.de wrote: Hello, the topic came up on the python-users list today. The raw string syntax has a minor inconsistency. The ru notation is a syntax error although we support rb. Neither rb nor ru are supported on Python 2.7. Python

Re: [Python-Dev] [Python-checkins] cpython: Improve an internal ipaddress test, add a comment explaining why treating

2012-06-17 Thread Nadeem Vawda
On Sun, Jun 17, 2012 at 8:33 AM, nick.coghlan python-check...@python.org wrote: +    @property +    def version(self): +        msg = '%200s has no version specified' % (type(self),) +        raise NotImplementedError(msg) + Shouldn't that be %.200s, rather than %200s?

Re: [Python-Dev] Raw string syntax inconsistency

2012-06-17 Thread Martin v. Löwis
So, while PEP 414 will allow u to run unmodified, ur will still need to be changed to something else, because that partially escaped behaviour isn't available in 3.x and we don't want to reintroduce it. Given that the PEP currently explicitly supports ur, I think the reversal of the reversal

Re: [Python-Dev] Raw string syntax inconsistency

2012-06-17 Thread Terry Reedy
On 6/17/2012 10:59 AM, Martin v. Löwis wrote: So, while PEP 414 will allow u to run unmodified, ur will still need to be changed to something else, because that partially escaped behaviour isn't available in 3.x and we don't want to reintroduce it. Given that the PEP currently explicitly

Re: [Python-Dev] Raw string syntax inconsistency

2012-06-17 Thread Nick Coghlan
On Mon, Jun 18, 2012 at 3:54 AM, Terry Reedy tjre...@udel.edu wrote: The premise of the discussion of adding 'u', and of Guido's acceptance, was that it's about as harmless as they come. I do not remember any discussion of 'ur' and what it really means in 2.x, and that supporting it meant

Re: [Python-Dev] Raw string syntax inconsistency

2012-06-17 Thread Guido van Rossum
Would it make sense to detect and reject these in 3.3 if the 2.7 syntax is used? --Guido van Rossum (sent from Android phone) On Jun 17, 2012 1:13 PM, Nick Coghlan ncogh...@gmail.com wrote: On Mon, Jun 18, 2012 at 3:54 AM, Terry Reedy tjre...@udel.edu wrote: The premise of the discussion of

Re: [Python-Dev] Raw string syntax inconsistency

2012-06-17 Thread Nick Coghlan
On Mon, Jun 18, 2012 at 6:41 AM, Guido van Rossum gu...@python.org wrote: Would it make sense to detect and reject these in 3.3 if the 2.7 syntax is used? Possibly - I'm trying not to actually *change* any of the internals of the string literal processing, though. (If I recall the way we

Re: [Python-Dev] Raw string syntax inconsistency

2012-06-17 Thread Guido van Rossum
On Sun, Jun 17, 2012 at 4:55 PM, Nick Coghlan ncogh...@gmail.com wrote: On Mon, Jun 18, 2012 at 6:41 AM, Guido van Rossum gu...@python.org wrote: Would it make sense to detect and reject these in 3.3 if the 2.7 syntax is used? Possibly - I'm trying not to actually *change* any of the

Re: [Python-Dev] Raw string syntax inconsistency

2012-06-17 Thread MRAB
On 18/06/2012 00:55, Nick Coghlan wrote: On Mon, Jun 18, 2012 at 6:41 AM, Guido van Rossumgu...@python.org wrote: Would it make sense to detect and reject these in 3.3 if the 2.7 syntax is used? Possibly - I'm trying not to actually *change* any of the internals of the string literal

[Python-Dev] What's the best way to debug python3 source code?

2012-06-17 Thread gmspro
Hi, What's the best way to debug python3 source code? To fix a bug i need to debug source code(C files). I use gdb to debug. But how can i get the exact file/point to fix the bug? How can i know quickly where the bug is? How can i run python from gdb and giving input there how can i test and

Re: [Python-Dev] Raw string syntax inconsistency

2012-06-17 Thread Stephen J. Turnbull
Martin v. Löwis writes: (this reminds me of Germany's path wrt. nuclear power Yeah, except presumably Python won't be buying cheap raw Unicode support from Perl. ;-) ___ Python-Dev mailing list Python-Dev@python.org