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
> 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
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
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
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
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
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
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
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