[issue11665] Regexp findall freezes

2011-03-25 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti, mrabarnett ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue11669] Clarify Lang Ref "Compound statements" footnote

2011-03-25 Thread Graham Wideman
New submission from Graham Wideman : In Language Ref section 7 "Compound Statements": http://docs.python.org/release/3.1.3/reference/compound_stmts.html there's a footnote regarding what happens to unhandled exceptions in a try-except statement: [1] The exception is propagated to the invocation

[issue11667] 'configure' script overrides users setting of CFLAGS

2011-03-25 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: You should override the OPT variable as well. I tried: $ CFLAGS="" OPT="-fwrapv -O3 -Wall" ./configure Then "make" shows lines like: gcc -pthread -c -fno-strict-aliasing -DNDEBUG -fwrapv -O3 -Wall -I. -IInclude -I./Include -DPy_BUILD_CORE -o Module

[issue5438] test_bigmem.test_from_2G_generator uses more memory than expected

2011-03-25 Thread Thomas Wouters
Thomas Wouters added the comment: I'm not surprised this test takes up more memory... It claims to take up 9 times the test size in memory, with a minimum useful test size of 1G. With a limit of 12G that would make the test size about 1.33G. However, it then proceeds to build a tuple of 159 m

[issue11670] configparser read_file now iterates over f, docs still say it calls readline

2011-03-25 Thread Larry Hastings
New submission from Larry Hastings : The documentation for configparser.RawConfigParser.read_file() states: "Read and parse configuration data from the file or file-like object in f (only the readline() method is used)." This was true in Python 3.1 and before. However in 3.2 the implementatio

[issue11670] configparser read_file now iterates over f, docs still say it calls readline

2011-03-25 Thread Larry Hastings
Larry Hastings added the comment: By the same token, readfp is now deprecate in favor of the new spelling read_file. That change *is* mentioned in configparser. If I'm touching What's New In Python 3.2, mind if I add a mention of that too? -- ___

[issue11649] startElementNS in xml.sax.saxutils.XMLGenerator ignored encoding

2011-03-25 Thread Gunnar Aastrand Grimnes
Gunnar Aastrand Grimnes added the comment: I came across the bug when trying to write XML documents to StringIO objects. This does not work, since the output contains a mix of unicode and str objects, and StringIO gets confused. A better alternative is to use io.BytesIO, since all output sho

[issue11667] 'configure' script overrides users setting of CFLAGS

2011-03-25 Thread David Kirkby
David Kirkby added the comment: Thank you. That solved it, so you can close this. -- status: pending -> open ___ Python tracker ___ _

[issue11667] 'configure' script overrides users setting of CFLAGS

2011-03-25 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue6006] ffi.c compile failures on AIX 5.3 with xlc

2011-03-25 Thread David Kirkby
David Kirkby added the comment: I've just downloaded libffi-3.0.9 (the latest) and it builds with no problems on my AIX 5.3 system. Is there any chance of the version of libffi in Python being updated? -- nosy: +drkirkby ___ Python tracker

[issue11671] Potential misuse of wsgiref.headers.Headers

2011-03-25 Thread Felix Gröbert
New submission from Felix Gröbert : As noted by secur...@python.org's response I'm filing this bug here. In wsgiref.headers.Headers it is possible to include headers which contain a newline (i.e. \n or \r) either through add_header or __init__. It is not uncommon that developers provide web app

[issue11650] Faulty RESTART/EINTR handling in Parser/myreadline.c

2011-03-25 Thread Davide Rizzo
Davide Rizzo added the comment: The bugs seems not to be limited to the REPL. # Python 2.6 with readline on Mac OS X $ python -c "raw_input()" ^Z [1]+ Stopped python -c "raw_input()" $ fg python -c "raw_input()" Traceback (most recent call last): File "", line 1, in EOFError

[issue2650] re.escape should not escape underscore

2011-03-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1402c719b7cf by Ezio Melotti in branch '3.1': #2650: Refactor the tests for re.escape. http://hg.python.org/cpython/rev/1402c719b7cf New changeset 9147f7ed75b3 by Ezio Melotti in branch '3.1': #2650: Add tests with non-ascii chars for re.escape. ht

[issue11654] errors in atexit hooks don't change process exit code

2011-03-25 Thread Ray.Allen
Ray.Allen added the comment: Comparing to the atexit() in C, I think this is the wrong behavior. I's weird that error in atexit does't change process exit code while error in common python code does. There should be a fix. -- nosy: +ysj.ray ___ Pyt

[issue2650] re.escape should not escape underscore

2011-03-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset d52b1faa7b11 by Ezio Melotti in branch '2.7': #2650: Refactor re.escape and its tests. http://hg.python.org/cpython/rev/d52b1faa7b11 -- ___ Python tracker

[issue2650] re.escape should not escape underscore

2011-03-25 Thread Ezio Melotti
Ezio Melotti added the comment: I did a few more tests and using a re.sub seems indeed slower (the implementation is just 4 lines though, and it's more readable): wolf@hp:~/dev/py/3.1$ ./python -m timeit -s 'import re,string; escape_pattern = re.compile("([^\x00a-zA-Z0-9])")' 'escape_pattern.

[issue11650] Faulty RESTART/EINTR handling in Parser/myreadline.c

2011-03-25 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: On Fri, Mar 25, 2011 at 12:25:21PM +, Davide Rizzo wrote: > Some remarks here: > 1) the patch does fix it. Yes! I can't comment the rest except for what .. function:: input([prompt]) states, which Davide surely have read himself. Anyway it see

[issue2650] re.escape should not escape underscore

2011-03-25 Thread Ezio Melotti
Ezio Melotti added the comment: The attached patch (issue2650.diff) adds '_' to the list of chars that are not escaped. -- keywords: +patch Added file: http://bugs.python.org/file21390/issue2650.diff ___ Python tracker

[issue11584] email.decode_header fails if msg.__getitem__ returns Header object

2011-03-25 Thread R. David Murray
R. David Murray added the comment: Thinking about this some more, I now think it is incorrect that an 8bit header causes getitem to return a Header object. I think instead it should be returning the stringified version of the header, including the unknown-8bit encoding. That way decode_head

[issue9557] test_mailbox failure under a Windows VM

2011-03-25 Thread R. David Murray
R. David Murray added the comment: It is reasonably likely that the attached patch will fix this. It also removes 3 seconds of fixed overhead from the test. -- keywords: +patch nosy: +r.david.murray stage: -> patch review versions: +Python 2.7, Python 3.1, Python 3.3 Added file: http

[issue11647] function decorated with a context manager can only be invoked once

2011-03-25 Thread Ray.Allen
Ray.Allen added the comment: Agreed with nick's idea, the implicitly recreation of the context managers would confuse users. How about removing the "generator must yield exactly one value" restriction of @contextlib.contextmanage? Then if I want a generator to be used as a common context man

[issue11584] email.decode_header fails if msg.__getitem__ returns Header object

2011-03-25 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: On Fri, Mar 25, 2011 at 01:51:46PM +, R. David Murray wrote: > I now think it is incorrect that an 8bit header causes getitem > to return a Header object. > I think instead it should be returning the stringified version > of the header, including t

[issue11654] errors in atexit hooks don't change process exit code

2011-03-25 Thread Ray.Allen
Ray.Allen added the comment: A straight forward fix maybe making the interpreter exit code a static global variable and change it in Modules/atexitmodule.c:atexit_callfuncs() in the case of errors occurred. -- ___ Python tracker

[issue11584] email.decode_header fails if msg.__getitem__ returns Header object

2011-03-25 Thread R. David Murray
R. David Murray added the comment: I documented that? Where? It is true that the fact that all headers will be objects when using the email6 API was one reason I did it this way, but in hindsight I don't think it was the right choice. However, I/we may now be stuck with it, in which case yo

[issue11647] function decorated with a context manager can only be invoked once

2011-03-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Agreed with nick's idea, the implicitly recreation of the context > managers would confuse users. Uh, why would it? That's exactly what I expect the decorator to do, and I was astonished to discover that it *doesn't*. --

[issue11584] email.decode_header fails if msg.__getitem__ returns Header object

2011-03-25 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: On Fri, Mar 25, 2011 at 02:29:24PM +, R. David Murray wrote: > I documented that? Where? Changeset: 67447:cad1811d9e13 user:R. David Murray date:Fri Jan 07 23:25:30 2011 + summary: #10686: recode non-ASCII headers to 'unk

[issue11647] function decorated with a context manager can only be invoked once

2011-03-25 Thread Ray.Allen
Ray.Allen added the comment: > > Agreed with nick's idea, the implicitly recreation of the context > > managers would confuse users. > Uh, why would it? That's exactly what I expect the decorator to do, and > I was astonished to discover that it *doesn't*. Because there is no *OBVIOUS* code o

[issue11584] email.decode_header fails if msg.__getitem__ returns Header object

2011-03-25 Thread R. David Murray
R. David Murray added the comment: Heh. OK, so I think we're stuck with it, then. It does mean I don't have to handle certain other edge cases, and can punt more convenient handling of them into email6. I'll make the patch for decode_header instead, then. -- __

[issue5482] RFC: improve distutils bdist_rpm so it builds pure python modules as single packages that works across architectures

2011-03-25 Thread Éric Araujo
Éric Araujo added the comment: To complement Terry’s closing message: bdist_rpm is frozen in distutils, removed in distutils2/packaging, but has a new life at https://bitbucket.org/tarek/pypi2rpm/ -- nosy: +eric.araujo ___ Python tracker

[issue1597850] Cross compiling patches for MINGW

2011-03-25 Thread Éric Araujo
Changes by Éric Araujo : -- versions: +Python 3.3 -3rd party, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue11584] email.decode_header fails if msg.__getitem__ returns Header object

2011-03-25 Thread R. David Murray
R. David Murray added the comment: OK, here is the patch. -- keywords: +patch Added file: http://bugs.python.org/file21392/decode_Header.patch ___ Python tracker ___ ___

[issue11647] function decorated with a context manager can only be invoked once

2011-03-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Because there is no *OBVIOUS* code or sign which can illustrate that > context manager changes from a one-shot to a reusable. I'm talking about the decorator, not the context manager. Surely there is a way for the decorator to instantiate a new context manage

[issue11584] email.decode_header fails if msg.__getitem__ returns Header object

2011-03-25 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: On Fri, Mar 25, 2011 at 03:04:29PM +, R. David Murray wrote: > OK, here is the patch. Works fine at a first glance and for me - i see you didn't stuck :/. Say, though not belonging here, can you think of problems incurred in message.py:_sanitize_h

[issue3754] cross-compilation support for python build

2011-03-25 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue3754] cross-compilation support for python build

2011-03-25 Thread Éric Araujo
Éric Araujo added the comment: I see some “fix for issue #NNN is bogus” in your patch: would you open separate bug reports for those? A diff file is not a very useful way to report bugs or express opinions . -- ___ Python tracker

[issue8982] argparse docs cross reference Namespace as a class but the Namespace class is not documented

2011-03-25 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue9557] test_mailbox failure under a Windows VM

2011-03-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, on my new setup (Windows 7 VM with a Python checkout located on an SMB drive), the test sometimes passes and sometimes fails, regardless of the patch. I suspect that maybe maildir requires atomicity guarantees that a network FS won't provide. --

[issue1006238] cross compile patch

2011-03-25 Thread Éric Araujo
Éric Araujo added the comment: See also #3754. Please remember that the bug tracker is meant to develop Python, not offer support about autoconf or patch(1). -- nosy: +eric.araujo versions: +Python 3.3 -Python 3.2 ___ Python tracker

[issue11670] configparser read_file now iterates over f, docs still say it calls readline

2011-03-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: I don't think this is worthy of being in whatsnew. Feel free to update the other docs though. -- ___ Python tracker ___

[issue10914] Python sub-interpreter test

2011-03-25 Thread Éric Araujo
Éric Araujo added the comment: Note that I think it would be a perfectly reasonable feature request to better isolate and improve the compiler in packaging/distutils2. (This does not mean this issue should be delayed.) -- ___ Python tracker

[issue11670] configparser read_file now iterates over f, docs still say it calls readline

2011-03-25 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: docs@python -> lukasz.langa nosy: +lukasz.langa versions: +Python 3.3 ___ Python tracker ___ ___

[issue11671] Security hole in wsgiref.headers.Headers

2011-03-25 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: -> pje nosy: +pje stage: -> needs patch title: Potential misuse of wsgiref.headers.Headers -> Security hole in wsgiref.headers.Headers versions: +Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2 ___ P

[issue11669] Clarify Lang Ref "Compound statements" footnote

2011-03-25 Thread Éric Araujo
Changes by Éric Araujo : -- keywords: +needs review, patch stage: -> patch review versions: -Python 2.5, Python 2.6, Python 3.4 ___ Python tracker ___ _

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-25 Thread STINNER Victor
STINNER Victor added the comment: Let's try the "Remote hg repo" feature. -- hgrepos: +8 ___ Python tracker ___ ___ Python-bugs-list

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-25 Thread STINNER Victor
Changes by STINNER Victor : -- keywords: +patch Added file: http://bugs.python.org/file21393/ec274420e9e2.diff ___ Python tracker ___

[issue11666] Test pydoc to display full help for named tuples

2011-03-25 Thread Éric Araujo
Éric Araujo added the comment: LGTM. I’m not sure I’d add it in stable versions, though. -- nosy: +eric.araujo ___ Python tracker ___ __

[issue11584] email.decode_header fails if msg.__getitem__ returns Header object

2011-03-25 Thread R. David Murray
R. David Murray added the comment: Theoretically there should be no way to get bytes into that code path. I'm sure there's a way if you try hard enough (I haven't tried directly assigning a byte string as a header value, for example), but they would be broken uses of the API. If you have an

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-25 Thread STINNER Victor
STINNER Victor added the comment: Ok, here is a full patch tested on Linux and Windows: - Add faulthandler module (code, doc, tests) as a builtin module - Add "-X faulthandler=1" command line option and PYTHONFAULTHANDLER=1 en var to enable the fault handler at startup - Add _Py_DumpTracebac

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-25 Thread STINNER Victor
STINNER Victor added the comment: (Reminder for me: add something to Doc/whatsnew/3.3.rst and Misc/NEWS) -- ___ Python tracker ___ __

[issue9557] test_mailbox failure under a Windows VM

2011-03-25 Thread R. David Murray
R. David Murray added the comment: That could be, certainly. The code is depending on the mtime having a resolution of at least one second. Try making the constant 61 instead of 60. If that doesn't work, try putting the mtime back a lot farther and see if that makes it work If it passes w

[issue11340] test_distutils fails

2011-03-25 Thread Éric Araujo
Éric Araujo added the comment: Can you run “./python -m distutils.tests.test_archive_util”? We may get more output. -- ___ Python tracker ___ _

[issue11665] Regexp findall freezes

2011-03-25 Thread Matthew Barnett
Matthew Barnett added the comment: Alex is correct. This part: [^<>]* can match an empty string, and it's nested with a repeated group. It stalls, repeatedly matching an empty string. Incidentally, my regex implementation (available on PyPI) returns []. --

[issue11670] configparser read_file now iterates over f, docs still say it calls readline

2011-03-25 Thread Łukasz Langa
Łukasz Langa added the comment: Ouch, this would be my fault. I agree with Raymond, at this point I think we should only update the docs. -- ___ Python tracker ___

[issue9557] test_mailbox failure under a Windows VM

2011-03-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Indeed, 61 seems to work. I don't understand the comment about one-second granularity, shouldn't it be one-minute? (or why do you need 61?) -- ___ Python tracker _

[issue5845] rlcompleter should be enabled automatically

2011-03-25 Thread Éric Araujo
Éric Araujo added the comment: Ned, does readline.read_init_file() with libedit? -- versions: -Python 3.2 ___ Python tracker ___ ___

[issue11664] Add patch method to unittest.TestCase

2011-03-25 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue9557] test_mailbox failure under a Windows VM

2011-03-25 Thread R. David Murray
R. David Murray added the comment: Hmm. You are right, I wasn't thinking clearly, and I copied that mtime setting call from another test. Now I have no idea why 61 would work, unless the clock between your virthost and your smb server is off by a minute? --

[issue11640] Shelve references globals in its __del__ method

2011-03-25 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue9557] test_mailbox failure under a Windows VM

2011-03-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Hmm. You are right, I wasn't thinking clearly, and I copied that > mtime setting call from another test. Now I have no idea why 61 would > work, unless the clock between your virthost and your smb server is > off by a minute? No, they seem exactly synchroni

[issue5845] rlcompleter should be enabled automatically

2011-03-25 Thread Ned Deily
Ned Deily added the comment: readline.read_init_file() does work with libedit. The directives read have to be in libedit format. -- ___ Python tracker ___ _

[issue9557] test_mailbox failure under a Windows VM

2011-03-25 Thread R. David Murray
R. David Murray added the comment: Could you print out the mtime values that are being set, and the value of self._mbox._last_read? Or, rather, print out the result of calls to os.path.getmtime on the two directories after the mtime is changed. -- ___

[issue11600] PY_CFLAGS and PY_CPPFLAGS inconsistent

2011-03-25 Thread Éric Araujo
Éric Araujo added the comment: Ditto for sysconfig. -- nosy: +benjamin.peterson, jcea, ronaldoussoren ___ Python tracker ___ ___ Pyth

[issue11614] import __hello__ is broken in Python 3

2011-03-25 Thread Éric Araujo
Éric Araujo added the comment: What’s import __hello__? I don’t have it in any version from 2.4 to 3.2. -- nosy: +eric.araujo ___ Python tracker ___ ___

[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2011-03-25 Thread Éric Araujo
Éric Araujo added the comment: get_makefile_filename also fails when run from a checkout. -- ___ Python tracker ___ ___ Python-bugs-li

[issue11667] 'configure' script overrides users setting of CFLAGS

2011-03-25 Thread Éric Araujo
Éric Araujo added the comment: Is this worth a README or doc update? -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-lis

[issue9557] test_mailbox failure under a Windows VM

2011-03-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: before: os.path.getmtime('cur') = 1301075411.6942866 before: os.path.getmtime('new') = 1301075411.693287 after: os.path.getmtime('cur') = 1301075347.38 after: os.path.getmtime('new') = 1301075347.38 self._box._last_read = 1301075407.365 time.time() = 1301075408.

[issue11614] import __hello__ is broken in Python 3

2011-03-25 Thread Éric Araujo
Éric Araujo added the comment: Okay, it doesn’t work with -m __hello__, but using -c "import __hello__" I can see the message in all versions. -- ___ Python tracker ___ ___

[issue10617] Collections ABCs can’t be linked to

2011-03-25 Thread Ezio Melotti
Ezio Melotti added the comment: I put the list under the table and grouped a few more ABCs. If this patch is OK I'll commit it. -- Added file: http://bugs.python.org/file21394/issue10617-2.diff ___ Python tracker

[issue11071] What's New review comments

2011-03-25 Thread Éric Araujo
Éric Araujo added the comment: “unencoded” is still here. -- status: closed -> open ___ Python tracker ___ ___ Python-bugs-list maili

[issue9557] test_mailbox failure under a Windows VM

2011-03-25 Thread R. David Murray
R. David Murray added the comment: Hmm. 411-61=350. Three seconds difference looks a little odd. But doesn't explain 60 vs 61 making the difference in the test. Can you change it back to 60 (or even less) and see what the values look like when the test fails? It is interesting (and possib

[issue10617] Collections ABCs can’t be linked to

2011-03-25 Thread Ezio Melotti
Changes by Ezio Melotti : Added file: http://bugs.python.org/file21395/10617-2.png ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue11614] import __hello__ is broken in Python 3

2011-03-25 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue10617] Collections ABCs can’t be linked to

2011-03-25 Thread Éric Araujo
Éric Araujo added the comment: What about making the class names in the table not links? -- ___ Python tracker ___ ___ Python-bugs-li

[issue11671] Security hole in wsgiref.headers.Headers

2011-03-25 Thread Phillip J. Eby
Phillip J. Eby added the comment: > It is not uncommon that developers provide web applications to the public in which the HTTP response headers are not filtered for newlines but are controlled by the user. Really? Which applications, and which response headers? > Therefore, I suggest to filt

[issue9557] test_mailbox failure under a Windows VM

2011-03-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Hmm. 411-61=350. Three seconds difference looks a little odd. But > doesn't explain 60 vs 61 making the difference in the test. > > Can you change it back to 60 (or even less) and see what the values > look like when the test fails? Hmm, 60 doesn't fail a

[issue9557] test_mailbox failure under a Windows VM

2011-03-25 Thread R. David Murray
R. David Murray added the comment: All right, so how about I set the add factor to, say, 5, so that if things are mostly in sync it will succeed, and otherwise just ignore your failures :) -- ___ Python tracker __

[issue1006238] cross compile patch

2011-03-25 Thread Jacob Godserv
Jacob Godserv added the comment: I have two questions: Will a new developer be assigned to this bug? And, why are we wasting comments and grave-digging five-year-old discussions? -- ___ Python tracker _

[issue11664] Add patch method to unittest.TestCase

2011-03-25 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue1006238] cross compile patch

2011-03-25 Thread Éric Araujo
Éric Araujo added the comment: > Will a new developer be assigned to this bug? If someone is willing to take charge, yes. We’re all volunteers, with varying free time and skill sets. For example, I’m not an expert about compilation, so I try to learn thanks to those issues. > why are we was

[issue11644] Cross-link 2to3 documentation, what’s new and pyporting howto

2011-03-25 Thread Éric Araujo
Éric Araujo added the comment: See also the fifth piece in http://docs.python.org/release/3.2/howto/pyporting#universal-bits-of-advice Resources are here, but lack links. -- resolution: out of date -> stage: -> needs patch status: pending -> open title: 2to3 documentation should men

[issue11572] bring Lib/copy.py to 100% coverage

2011-03-25 Thread Brett Cannon
Changes by Brett Cannon : -- keywords: +needs review stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue1006238] cross compile patch

2011-03-25 Thread Mike Frysinger
Mike Frysinger added the comment: i really dont understand your point. python uses autoconf and therefore any questions about python's usage of autoconf to accomplish cross-compiles is completely valid here. no one was asking for general autoconf help. -- __

[issue1006238] cross compile patch

2011-03-25 Thread Éric Araujo
Éric Araujo added the comment: It seemed to me that there were quite a number of messages asking about how to apply the patch and what to do after the configure step. -- ___ Python tracker _

[issue11572] bring Lib/copy.py to 100% coverage

2011-03-25 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the updated patch. -t = getattr(types, "CodeType", None) -if t is not None: -d[t] = _copy_immutable +d[types.CodeType] = _copy_immutable What was the use case for this again? The defunct restricted mode, another VM or something else? IOW, are we

[issue11584] email.decode_header fails if msg.__getitem__ returns Header object

2011-03-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset b21fdfa0019c by R David Murray in branch '3.2': #11584: Since __getitem__ returns headers, make decode_header handle them. http://hg.python.org/cpython/rev/b21fdfa0019c New changeset 12e39cd7a0e4 by R David Murray in branch 'default': Merge #11584:

[issue11584] email.decode_header fails if msg.__getitem__ returns Header object

2011-03-25 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue11071] What's New review comments

2011-03-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset a805d4415e34 by Raymond Hettinger in branch '3.2': Issue #11071: Fix whatsnew description of O/S access to raw bytes. http://hg.python.org/cpython/rev/a805d4415e34 New changeset df1a1774a544 by Raymond Hettinger in branch 'default': Issue #11071:

[issue11071] What's New review comments

2011-03-25 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue11672] multiprocessing.Array fails if size parameter is a long

2011-03-25 Thread Mark Dickinson
New submission from Mark Dickinson : [From a problem encountered by an EPD user, analyzed by Robert Kern] There appears to be an if isinstance(size_or_initializer, (int, long)): check in the Python 2.x source for multiprocessing.RawArray. As a result, the following works (as expected): P

[issue11673] RawArray does not accept long

2011-03-25 Thread Robert Kern
New submission from Robert Kern : The constructor for multiprocessing.RawArray() takes an argument that is either an integer size or a sequence to initialize the contents. To determine if the argument is a size, it uses isinstance(x, int). This means that integers that happen to be Python long

[issue11672] multiprocessing.Array fails if size parameter is a long

2011-03-25 Thread Mark Dickinson
Mark Dickinson added the comment: Duplicate of issue 11673 :-) -- resolution: -> duplicate superseder: -> RawArray does not accept long ___ Python tracker ___

[issue11672] multiprocessing.Array fails if size parameter is a long

2011-03-25 Thread Mark Dickinson
Changes by Mark Dickinson : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue11673] RawArray does not accept long

2011-03-25 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks for the patch. Are there practical cases where the operator.index check is more useful that the isinstance(..., (int, long)) check that you originally proposed (off-tracker)? While I agree that it's the right fix in principle, the operator.index chec

[issue11673] RawArray does not accept long

2011-03-25 Thread Mark Dickinson
Changes by Mark Dickinson : -- assignee: -> mark.dickinson stage: -> commit review ___ Python tracker ___ ___ Python-bugs-list maili

[issue11673] RawArray does not accept long

2011-03-25 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: +jnoller ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue11659] Fix ResourceWarning in test_subprocess

2011-03-25 Thread Nadeem Vawda
Nadeem Vawda added the comment: Looks good to me. > [...] but I couldn't find any patches that fix this specific issue. Well, test_select_unbuffered() was only introduced a few days ago (changeset cb148da52c47), so I'm not surprised :) -- nosy: +nvawda ___

[issue9557] test_mailbox failure under a Windows VM

2011-03-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9a184d8211f5 by R David Murray in branch '3.1': #9557: eliminate 3 seconds of static overhead from test_mailbox. http://hg.python.org/cpython/rev/9a184d8211f5 New changeset 268ab32a89a9 by R David Murray in branch '3.2': Merge #9557: eliminate 3 se

[issue9557] test_mailbox failure under a Windows VM

2011-03-25 Thread R. David Murray
R. David Murray added the comment: Antoine agreed in IRC that this was an acceptable closure. -- stage: patch review -> committed/rejected status: open -> closed ___ Python tracker _

[issue5845] rlcompleter should be enabled automatically

2011-03-25 Thread Éric Araujo
Changes by Éric Araujo : -- hgrepos: +9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/m

[issue11674] list(obj), tuple(obj) swallow TypeError (in _PyObject_LengthHint)

2011-03-25 Thread Elvis Pranskevichus
New submission from Elvis Pranskevichus : Consider the following: >>> class Test: ... def __init__(self): ... self.items = [] ... def __len__(self): ... if not self.items: ... self.items = list(self.calc_items()) ... return len(self.items) ... def

  1   2   >