Re: [Python-Dev] Indentation oddness...

2009-05-29 Thread Guido van Rossum
I usually append some extra newlines before passing a string to compile(). That's the usual work-around. There's probably a subtle bug in the tokenizer when reading from a string -- if you find it, please upload a patch to the tracker! --Guido On Fri, May 29, 2009 at 5:52 PM, Dino Viehland wrote

Re: [Python-Dev] Indentation oddness...

2009-05-29 Thread Dino Viehland
> The 'single' mode, which is used for the REPL, is a bit different than > 'exec', > which is used for modules. This difference lets you insert "blank" > lines of > whitespace into a function definition without exiting the definition. > Ending > with a truly empty line does not cause the Indentatio

Re: [Python-Dev] Indentation oddness...

2009-05-29 Thread Robert Kern
On 2009-05-29 19:08, Dino Viehland wrote: Consider the code: code = "def Foo():\n\npass\n\n " This code is malformed in that the final indentation (2 spaces) does not agree with the previous indentation of the pass statement (4 spaces). Or maybe it's just fine if you take the blank lin

[Python-Dev] Indentation oddness...

2009-05-29 Thread Dino Viehland
Consider the code: code = "def Foo():\n\npass\n\n " This code is malformed in that the final indentation (2 spaces) does not agree with the previous indentation of the pass statement (4 spaces). Or maybe it's just fine if you take the blank lines should be ignored statement from the docs

[Python-Dev] Indentation oddness...

2009-05-29 Thread Dino Viehland
Consider the code: code = "def Foo():\n\npass\n\n " This code is malformed in that the final indentation (2 spaces) does not agree with the previous indentation of the pass statement (4 spaces). Or maybe it's just fine if you take the blank lines should be ignored statement from the docs

[Python-Dev] Summary of Python tracker Issues

2009-05-29 Thread Python tracker
ACTIVITY SUMMARY (05/22/09 - 05/29/09) Python tracker at http://bugs.python.org/ To view or respond to any of the issues listed below, click on the issue number. Do NOT respond to this message. 2201 open (+36) / 15764 closed (+18) / 17965 total (+54) Open issues with patches: 866 Average

Re: [Python-Dev] Survey on DVCS usage and experience

2009-05-29 Thread Antoine Pitrou
Brian de Alwis usask.ca> writes: > > It's a restriction required to obtain approval from our research > ethics board -- people under 18 are considered to be minors in Canada > and thus require the consent of their guardian to participate. Trying > to obtain such permission for an anonymous

Re: [Python-Dev] Possibility of binary configuration mismatch

2009-05-29 Thread Paul Moore
2009/5/29 David Abrahams : > http://allmydata.org/trac/tahoe/ticket/704#comment:7 describes a > situation where my macports-installed python25 had a pyOpenSSL egg > installed in it by something other than macports (possibly by > easy_install-2.5?) that was not compatible with the Python build.  My

Re: [Python-Dev] Survey on DVCS usage and experience

2009-05-29 Thread Brian de Alwis
On 28-May-09, at 9:35 PM, Senthil Kumaran wrote: On Wed, May 27, 2009 at 06:02:57PM -0600, Brian de Alwis wrote: With Python having recently chosen to switch to Mercurial, I hoped that any developers who've used a DVCS (and who are over 18 years old) might like to participate in our survey and