[issue11071] What's New review comments

2011-03-25 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: -eli.bendersky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue11668] _multiprocessing.Connection.poll with timeout uses polling under Windows

2011-03-25 Thread Brian Curtin
Brian Curtin added the comment: Attaching an initial patch implementing the same functionality but using WaitForMultipleObjects. Here's some details: WFMO takes an array of objects to wait on, which is the pipe handle and sigint_event which is a handle to an event which gets set when CTRL-C i

[issue11236] getpass.getpass does not respond to ctrl-c or ctrl-z

2011-03-25 Thread Guido van Rossum
Guido van Rossum added the comment: Is there any reason to assume this is not a bug? I think it should be fixed in all versions. -- nosy: +gvanrossum ___ Python tracker ___ ___

[issue11682] PEP 380 reference implementation for 3.3

2011-03-25 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: +alex ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue11682] PEP 380 reference implementation for 3.3

2011-03-25 Thread Nick Coghlan
New submission from Nick Coghlan : Creating an issue to track efforts to forward port the PEP 380 reference implementation to Python 3.3. -- hgrepos: 11 messages: 132213 nosy: ncoghlan priority: normal severity: normal status: open title: PEP 380 reference implementation for 3.3 version

[issue1674555] sys.path in tests contains system directories

2011-03-25 Thread Éric Araujo
Éric Araujo added the comment: Note that site’s behavior is a bit different in 3.3 thanks to #11591. See http://docs.python.org/dev/library/site#site.main -- nosy: +brett.cannon, carljm versions: +Python 3.3 ___ Python tracker

[issue10553] Add optimize argument to builtin compile() and byte-compilation modules

2011-03-25 Thread Éric Araujo
Changes by Éric Araujo : -- resolution: accepted -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue10553] Add optimize argument to builtin compile() and byte-compilation modules

2011-03-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 81c001680b36 by Éric Araujo in branch '3.2': #10553: Explain why compileall has no command-line argument to control optimization http://hg.python.org/cpython/rev/81c001680b36 New changeset 125fbebbb5cd by Éric Araujo in branch 'default': Merge #10

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-25 Thread STINNER Victor
STINNER Victor added the comment: New patch 605422430234.diff: - Remove test_refcount(), it changed faulthandler internal state, and so it was no more possible to use faulthandler in regrtest.py - Use "#ifdef HAVE_ALARM" to decide if dump_traceback_later() is available, instead of "#ifdef SI

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-25 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file21404/605422430234.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-25 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file21403/174bc8c03e9d.diff ___ Python tracker ___ ___ Python-bugs-list maili

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-25 Thread STINNER Victor
STINNER Victor added the comment: I don't know if it is important to document that some functions keep an internal reference to the file argument. For example, I wrote "It keeps a reference to file: use disable() to clear this reference." in faulthandler.enable() documentation. Is it necessar

[issue1602] windows console doesn't print or input Unicode

2011-03-25 Thread Glenn Linderman
Glenn Linderman added the comment: David-Sarah said: In any case, given that the buffer of the initial std{out,err} will always be a BufferedWriter object (since .buffer is readonly), it would be possible for the TextIOWriter to test a dirty flag in the BufferedWriter, in order to check effic

[issue5135] Expose simplegeneric function in functools module

2011-03-25 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the detailed explanation. Note that type annotations are disallowed in the stdlib, as per PEP 8. -- ___ Python tracker ___ ___

[issue7443] test.support.unlink issue on Windows platform

2011-03-25 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- versions: +Python 3.3 -Python 2.7, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue3841] IDLE: quirky behavior when displaying strings longer than 4093 characters

2011-03-25 Thread Kurt B. Kaiser
Changes by Kurt B. Kaiser : -- assignee: -> kbk nosy: +kbk resolution: works for me -> out of date stage: -> committed/rejected status: pending -> closed ___ Python tracker ___

[issue5135] Expose simplegeneric function in functools module

2011-03-25 Thread Phillip J. Eby
Phillip J. Eby added the comment: Just as an FYI, it *is* possible to do generic functions that work with Python's ABCs (PEAK-Rules supports it for Python 2.6), but it requires caching, and a way of handling ambiguities. In PEAK-Rules' case, unregistering is simply ignored, and ambiguity cau

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-25 Thread STINNER Victor
STINNER Victor added the comment: I updated the (Hg repo and the) patch to fix all Antoine's remarks. -- ___ Python tracker ___ ___ P

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-25 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file21393/ec274420e9e2.diff ___ Python tracker ___ ___ Python-bugs-list maili

[issue4676] python3 closes + home keys

2011-03-25 Thread Kurt B. Kaiser
Kurt B. Kaiser added the comment: Fixed in 2.7 and forward ported. -- assignee: -> kbk resolution: -> fixed stage: -> committed/rejected status: open -> closed type: -> crash versions: +Python 3.2, Python 3.3 -Python 2.6, Python 3.0 ___ Python tr

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-25 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file21403/174bc8c03e9d.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue7443] test.support.unlink issue on Windows platform

2011-03-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: As I can see cygwin's unlink_nt uses Nt* functions family (NtSetInformationFile etc) which are part of Windows DDK. Do you like to use them or prefer SDK ones (say SetFileInformationByHandle)? In second case python unlink can borrow deletion schema from cygwi

[issue10998] Remove last traces of -Q / sys.flags.division_warning / Py_DivisionWarningFlag

2011-03-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 814599728ac0 by Éric Araujo in branch '2.7': Tweaks to sys.flags description table. http://hg.python.org/cpython/rev/814599728ac0 -- ___ Python tracker __

[issue11681] -b option undocumented

2011-03-25 Thread Éric Araujo
Éric Araujo added the comment: test_bytes has a branch for -b and passes without it, with -b and with -bb. I really don’t know. -- ___ Python tracker ___ _

[issue11681] -b option undocumented

2011-03-25 Thread R. David Murray
R. David Murray added the comment: rdmurray@hey:~/python/p27>cat temp.py x = bytes('abc') print x print str(x) rdmurray@hey:~/python/p27>./python -bb temp.py abc abc -- ___ Python tracker _

[issue10998] Remove last traces of -Q / sys.flags.division_warning / Py_DivisionWarningFlag

2011-03-25 Thread Éric Araujo
Éric Araujo added the comment: Given your approval of the idea and lack of code comments, I committed the patch for 3.3 without requesting more review. -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Py

[issue11681] -b option undocumented

2011-03-25 Thread Éric Araujo
Éric Araujo added the comment: The code definitely is in 2.7. Python/_warnings.c:861:if (Py_BytesWarningFlag > 1) Python/_warnings.c:863:else if (Py_BytesWarningFlag) Python/_warnings.c:867:PyList_SET_ITEM(filters, pos++, create_filter(PyExc_BytesWarning, Python/sysmodule.c:1257:

[issue11681] -b option undocumented

2011-03-25 Thread R. David Murray
R. David Murray added the comment: Are you sure? (see issue 10471). I don't see how -b could do anything in python2, since bytes and string are the same there (and, indeed, from command line experimentation it doesn't seem to). -- nosy: +r.david.murray _

[issue10998] Remove last traces of -Q / sys.flags.division_warning / Py_DivisionWarningFlag

2011-03-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0d2ef718ae67 by Éric Araujo in branch '3.1': Tweaks to sys.flags description table. http://hg.python.org/cpython/rev/0d2ef718ae67 New changeset c19752ea037f by Éric Araujo in branch 'default': Remove traces of division_warning left over from Python

[issue11681] -b option undocumented

2011-03-25 Thread Éric Araujo
New submission from Éric Araujo : Python 2 has a -b command-line option which is undocumented. It is used by the warnings machinery to decide to warn about (-b) or raise an error (-bb) if someone uses str(bytes) or str(buffer) (explanation courtesy of grep and Python/pythonrun.c). --

[issue11680] decimal module generates AttributeError: on call to as_integer_ratio

2011-03-25 Thread David Bailey
New submission from David Bailey : File "C:\test3.py", line 166, in m self.from_float(value * decimal.Decimal(1.0))/decimal.Decimal(1.0) File "c:\Python27\lib\decimal.py", line 691, in from_float n, d = abs(f).as_integer_ratio() AttributeError: 'Decimal' object has no attribute 'as_inte

[issue4676] python3 closes + home keys

2011-03-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset c4d355363114 by Kurt B. Kaiser in branch '3.1': toggle failing on Tk 8.5, causing IDLE exits. Issue #4676 http://hg.python.org/cpython/rev/c4d355363114 -- nosy: +python-dev ___ Python tracker

[issue11679] readline interferes with characters beginning with byte \xe9

2011-03-25 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue1602] windows console doesn't print or input Unicode

2011-03-25 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: -brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue11679] readline interferes with characters beginning with byte \xe9

2011-03-25 Thread Thomas Kluyver
New submission from Thomas Kluyver : To replicate, in Python 3.1 on Linux (utf-8 console): >>> print(chr(0x9000)) 退 Copy and paste this character into the prompt. It appears correctly (as a Chinese character). Then: >>> import readline >>> readline.parse_and_bind('"\M-i":""') Now try to

[issue1602] windows console doesn't print or input Unicode

2011-03-25 Thread David-Sarah Hopwood
David-Sarah Hopwood added the comment: I wrote: > A similar issue arises for stdin: to maintain strict compatibility, every > read from a TextIOWrapper attached to an input console would have to drain > the buffer of its buffer object, in case the app has read from it. This is a > bit tricky

[issue11677] make test has horrendous performance on an ecryptfs

2011-03-25 Thread Ned Deily
Ned Deily added the comment: (Addressing your aside: one case where the tests are not run in a build directory is with binary installers. For instance, the Mac OS X installers we provide include all of the test modules and it is normal to run them after installation, quite possibly on a syst

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

2011-03-25 Thread Michael Foord
Michael Foord added the comment: I'm strongly with Antoine on this. If you use context manager as a decorator you should be able to reuse it - and in general both generators and context managers can be reused and so I don't understand the phrase 'moral equivalent of the implicit context manag

[issue11678] Add support for Arch Linux to platform.linux_distributions()

2011-03-25 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +lemburg ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue8919] python should read ~/.pythonrc.py by default

2011-03-25 Thread Éric Araujo
Éric Araujo added the comment: In the absence of reply, I am rejecting this feature. Please feel free to reopen if there is new data or consensus on python-ideas. -- resolution: -> rejected stage: -> committed/rejected status: open -> closed ___

[issue11678] Add support for Arch Linux to platform.linux_distributions()

2011-03-25 Thread Westley Martínez
New submission from Westley Martínez : This comes from Issue 11340 . Adding support for Arch Linux to platform.linux_distributions() will allow a distutils test to be skipped for Arch. The Arch Linux website: http://www.archlinux.org/ -- components

[issue11340] test_distutils fails

2011-03-25 Thread Éric Araujo
Éric Araujo added the comment: In general, we prefer to test for the presence of a feature rather than hard-coding operating systems names. when this is inevitable, we use sys.platform (say for different BSDs) or platform.linux_distribution (which returns meaningful values for most common di

[issue11340] test_distutils fails

2011-03-25 Thread Westley Martínez
Westley Martínez added the comment: So how do other distros do it? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue1602] windows console doesn't print or input Unicode

2011-03-25 Thread David-Sarah Hopwood
David-Sarah Hopwood added the comment: First a minor correction: > The new requirement would be that a correct app also needs to flush between a > sequence of buffer.writes (that end in an incomplete line, or always if > PYTHONUNBUFFERED or python -u is used), and a sequence of writes. That s

[issue11340] test_distutils fails

2011-03-25 Thread Éric Araujo
Éric Araujo added the comment: :D I know you’re using Arch, but I need a way to get that info from Python to skip the test. -- ___ Python tracker ___ _

[issue11340] test_distutils fails

2011-03-25 Thread Westley Martínez
Westley Martínez added the comment: ('', '', '') :D I'm using Arch Linux. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue5845] rlcompleter should be enabled automatically

2011-03-25 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file21402/d1cbf0347eb4.diff ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue5845] rlcompleter should be enabled automatically

2011-03-25 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file21401/c43e264256e4.diff ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue5845] rlcompleter should be enabled automatically

2011-03-25 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file21397/a5bded1b8db4.diff ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue5845] rlcompleter should be enabled automatically

2011-03-25 Thread Éric Araujo
Changes by Éric Araujo : Added file: http://bugs.python.org/file21402/d1cbf0347eb4.diff ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've posted a review at http://bugs.python.org/review/11393/show. -- ___ Python tracker ___ ___ Pyt

[issue11340] test_distutils fails

2011-03-25 Thread Éric Araujo
Éric Araujo added the comment: Funny, that’s the second broken compress program we’re hearing of. Can you give me the output of platform.linux_distribution() so that we can skip this test on your OS? -- ___ Python tracker

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

2011-03-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Which also makes me think that Python's exceptions are, > maybe, too coarse sometimes. I agree :-) -- assignee: -> rhettinger ___ Python tracker ___

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

2011-03-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 46aaa365111f by Raymond Hettinger in branch '2.7': Issue #11666: Teach pydoc to display full help for named tuples http://hg.python.org/cpython/rev/46aaa365111f -- ___ Python tracker

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

2011-03-25 Thread Elvis Pranskevichus
Changes by Elvis Pranskevichus : -- versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

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

2011-03-25 Thread Elvis Pranskevichus
Changes by Elvis Pranskevichus : -- versions: -Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker ___ ___

[issue11340] test_distutils fails

2011-03-25 Thread Westley Martínez
Westley Martínez added the comment: I may have figured out the problem. The test checks if the archive's extension is '.tar.Z', but the compress command on my computer appends the .gz extension to the file. To my surprise, the gunzip command worked on the file. So the compress command was act

[issue5135] Expose simplegeneric function in functools module

2011-03-25 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +pje -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue5135] Expose simplegeneric function in functools module

2011-03-25 Thread Éric Araujo
Éric Araujo added the comment: > The register() method of an ABC only fakes out isinstance checks, it > doesn't actually make the abstract base class a base class of the class. > It doesn't make any sense for a class to say it is an instance of an > ABC, but not have that ABC in [its] MRO. I di

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

2011-03-25 Thread Elvis Pranskevichus
Elvis Pranskevichus added the comment: I think that explicitly raising TypeError in __len__() is wrong in any case. I would argue something like NotImplementedError is a better choice to signal the absence of length. Which also makes me think that Python's exceptions are, maybe, too coarse

[issue1644987] ./configure --prefix=/ breaks, won't build C modules

2011-03-25 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +jcea, ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue10645] Remove egg-info files in stdlib

2011-03-25 Thread Éric Araujo
Éric Araujo added the comment: After a bit of exploring, I think that it’s possible that the existence of this file is not intentional. Python uses distutils.core.setup to build install most of its own extension modules, and the PyBuildInstall class used for the install command does not disa

[issue7440] distutils shows incorrect Python version in MSI installers

2011-03-25 Thread Martin v . Löwis
Martin v. Löwis added the comment: Yes, this is out of date since 2416f166de4b -- resolution: -> out of date status: open -> closed ___ Python tracker ___ __

[issue11340] test_distutils fails

2011-03-25 Thread Éric Araujo
Éric Araujo added the comment: Okay, verbose mode does not yield more info :) Is the compress program special on your system? -- ___ Python tracker ___

[issue11677] make test has horrendous performance on an ecryptfs

2011-03-25 Thread Barry A. Warsaw
New submission from Barry A. Warsaw : When your home directory is on a Linux (e.g. Ubuntu 10.10) ecryptfs, 'make test' and company can be horrendously slow. Of course, some performance hit should be expected, but depending on which combinations of tests I've run, I can see up to 25000x (!) sl

[issue11340] test_distutils fails

2011-03-25 Thread Westley Martínez
Westley Martínez added the comment: test_check_archive_formats (__main__.ArchiveUtilTestCase) ... ok test_compress_deprecated (__main__.ArchiveUtilTestCase) ... FAIL test_make_archive (__main__.ArchiveUtilTestCase) ... ok test_make_archive_cwd (__main__.ArchiveUtilTestCase) ... ok test_make_tarb

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

2011-03-25 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- priority: normal -> low versions: -Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2 ___ Python tracker ___ __

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

2011-03-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: A certain amount of exception masking is inherent is Python's design. We use TypeError for a lot of things, including the exception raised by "len(obj)" when obj doesn't have length. It may be possible to replace the TypeError check with test to set if __

[issue5845] rlcompleter should be enabled automatically

2011-03-25 Thread Martin v . Löwis
Changes by Martin v. Löwis : Added file: http://bugs.python.org/file21401/c43e264256e4.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue5845] rlcompleter should be enabled automatically

2011-03-25 Thread Martin v . Löwis
Changes by Martin v. Löwis : Removed file: http://bugs.python.org/file21398/c43e264256e4.diff ___ Python tracker ___ ___ Python-bugs-list maili

[issue7440] distutils shows incorrect Python version in MSI installers

2011-03-25 Thread Éric Araujo
Éric Araujo added the comment: Is this out of date? -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue11673] RawArray does not accept long

2011-03-25 Thread Robert Kern
Robert Kern added the comment: numpy.int is just an alias to the builtin int, left for historical reasons. The integer scalar type that has the same width as Python's int (numpy.int32 or numpy.int64, depending) will always pass the isinstance() check. Since it's the default integer type in nu

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

2011-03-25 Thread Daniel Stutzbach
Changes by Daniel Stutzbach : -- nosy: +stutzbach ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue11673] RawArray does not accept long

2011-03-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2d183b1dae5a by Mark Dickinson in branch '2.7': Issue #11673: Fix multiprocessing.[Raw]Array constructor to accept a size of type long. Thanks Robert Kern. http://hg.python.org/cpython/rev/2d183b1dae5a -- nosy: +python-dev __

[issue11675] multiprocessing Arrays not automatically zeroed.

2011-03-25 Thread Jesse Noller
Jesse Noller added the comment: I concur with Antoine. I think you're good to go Mark. -- ___ Python tracker ___ ___ Python-bugs-list

[issue11673] RawArray does not accept long

2011-03-25 Thread Mark Dickinson
Mark Dickinson added the comment: > The practical case I was thinking of was numpy integer scalar types Hmm, true. But at least numpy.int instances pass an isinstance(..., int) check, right? But that still leaves numpy.int as a problem on 32-bit systems and Windows, and similarly for 64-bit

[issue3851] IDLE: Pressing "Home" on Windows places cursor before ">>>" instead of after. Solution offered.

2011-03-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 500e48708470 by Kurt B. Kaiser in branch '2.7': toggle failing on Tk 8.5, causing IDLE exits. Issue 3851. http://hg.python.org/cpython/rev/500e48708470 -- ___ Python tracker

[issue11676] imp.load_module and submodules - doc issue, or bug?

2011-03-25 Thread Dave Peck
New submission from Dave Peck : If you use `import` to load a package and subpackage: import package import package.subpackage Then the `package` module instance will contain a `subpackage` attribute: assert "subpackage" in dir(sys.modules['package']), "This works." But if you

[issue11675] multiprocessing Arrays not automatically zeroed.

2011-03-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: +1 for predictable behaviour and therefore zeroing of uninitialized arrays. -- nosy: +pitrou ___ Python tracker ___ ___

[issue10745] setup.py install --user option undocumented

2011-03-25 Thread Éric Araujo
Éric Araujo added the comment: Thanks, I will work on that. See also #8617. -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue11675] multiprocessing Arrays not automatically zeroed.

2011-03-25 Thread Mark Dickinson
Mark Dickinson added the comment: Here's a patch that adds zeroing. -- keywords: +patch Added file: http://bugs.python.org/file21400/issue11675.patch ___ Python tracker ___

[issue5845] rlcompleter should be enabled automatically

2011-03-25 Thread Éric Araujo
Éric Araujo added the comment: Please ignore the generated patches, left here for Martin’s benefit, and review the manually attached fix-5845.diff. I have used read_init_file instead of hard-coding tab (it’s anyway the default for readline). I may have repeated the same info in too much doc

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

2011-03-25 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

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

2011-03-25 Thread Elvis Pranskevichus
Elvis Pranskevichus added the comment: The problem is that the call to __len__ is implicit. The Exception is simply swallowed by a list/tuple constructor. The main issue is that the original error is masked which makes it very hard to pinpoint the actual cause of the failure. Here's an ex

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

2011-03-25 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed status: open -> closed title: Test pydoc to display full help for named tuples -> Teach pydoc to display full help for named tuples ___ Python tracker __

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

2011-03-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset daa408ad7440 by Raymond Hettinger in branch '3.2': Issue #11666: Teach pydoc to display full help for named tuples http://hg.python.org/cpython/rev/daa408ad7440 New changeset 374982e17f36 by Raymond Hettinger in branch 'default': Issue #11666: Teac

[issue5845] rlcompleter should be enabled automatically

2011-03-25 Thread Éric Araujo
Changes by Éric Araujo : Added file: http://bugs.python.org/file21398/c43e264256e4.diff ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue5845] rlcompleter should be enabled automatically

2011-03-25 Thread Éric Araujo
Changes by Éric Araujo : -- keywords: +patch Added file: http://bugs.python.org/file21397/a5bded1b8db4.diff ___ Python tracker ___ ___

[issue11675] multiprocessing Arrays not automatically zeroed.

2011-03-25 Thread Mark Dickinson
Mark Dickinson added the comment: Since this behaviour seems to have been present since at least Python 2.6, it's tempting to call this a documentation bug. -- ___ Python tracker _

[issue8617] Better document user site-packages in site module doc

2011-03-25 Thread Éric Araujo
Éric Araujo added the comment: Tarek, if you don’t have time for a patch, I am interested in making one. -- nosy: +eric.araujo title: Non-existent variables documented -> Better document user site-packages in site module doc versions: +Python 3.3 -Python 2.6 __

[issue11675] multiprocessing Arrays not automatically zeroed.

2011-03-25 Thread Mark Dickinson
New submission from Mark Dickinson : The documentation for the multiprocessing module says: "If size_or_initializer is an integer, then it determines the length of the array, and the array will be initially zeroed. " But the part about the array being zeroed doesn't seem to be true: Python 3.

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

2011-03-25 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: _PyObject_LengthHint() does not define any exception; it simply calls PyObject_Size(), which is expected to raise TypeError for objects with no size (an opened file for example). Where is the problem exacty? Does the failing __len__ put the object in an

[issue11673] RawArray does not accept long

2011-03-25 Thread Robert Kern
Robert Kern added the comment: The practical case I was thinking of was numpy integer scalar types, which can crop up without explicitly requesting them, much like the long type. Although, now that I check, I see that single-element numpy arrays also pass index(). Ideally, there would be two

[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

[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

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

[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

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

[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

[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

  1   2   >