[issue12499] textwrap.wrap: add control for fonts with different character widths

2011-07-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: About the patch: the function should not be passed to the constructor, it could be a regular method that can be overridden in subclasses. -- nosy: +amaury.forgeotdarc ___ Python tracker

[issue12492] Inconsistent Python find() behavior

2011-07-05 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I suspect this is a problem where url is reassigned to an integer somewhere in code that isn't shown to us. Please post the whole function and the whole traceback if you still think this is a valid bug. -- nosy: +georg.brandl

[issue12469] test_faulthandler failures on FreeBSD 6

2011-07-05 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: When signals are unblocked, pending signal ared delivered in the reverse order of their number (also on Linux, not only on FreeBSD 6). I don't like this. POSIX doesn't make any guarantee about signal delivery order, except for

[issue12469] test_faulthandler failures on FreeBSD 6

2011-07-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: When signals are unblocked, pending signal ared delivered in the reverse order of their number (also on Linux, not only on FreeBSD 6). I don't like this. POSIX doesn't make any guarantee about signal delivery order, except

[issue12149] Segfault in _PyObject_GenericGetAttrWithDict

2011-07-05 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12149 ___ ___

[issue12500] support.transient_internet(): catch also Windows socket errors

2011-07-05 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: == ERROR: test_non_blocking_connect_ex (test.test_ssl.NetworkedTests) -- Traceback (most recent

[issue12149] Segfault in _PyObject_GenericGetAttrWithDict

2011-07-05 Thread Senthil Kumaran
Changes by Senthil Kumaran sent...@uthcode.com: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12149 ___ ___ Python-bugs-list

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-07-05 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Nick, Pauli, thanks for all the comments. I'm busy implementing the easy changes; then it'll be easier to deal with the flags issues. Pauli: Does numpy use the (undocumented) smalltable array in the Py_buffer structure? We would

[issue10883] urllib: socket is not closed explicitly

2011-07-05 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: With the patch applied, test_urllib2net fails at test_ftp test case when a valid and invalid url are presented in sequence. I think test needs a change or a further look is needed at the patch. --

[issue9611] FileIO not 64-bit safe under Windows

2011-07-05 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 6abbc5f68e20 by Victor Stinner in branch '2.7': Issue #9611, #9015: FileIO.read(), FileIO.readinto(), FileIO.write() and http://hg.python.org/cpython/rev/6abbc5f68e20 -- nosy: +python-dev

[issue12431] urllib2.Request.get_full_url() broken in newer versions of Python

2011-07-05 Thread Stephen White
Stephen White stephen-python@randomstuff.org.uk added the comment: Just to confirm that it was a release, but 2.7.1 so not the current. Doesn't appear to happen in Python 2.7 (as shipped with Fedora Core 14) or in Python 2.7.2. C:\\Python27\python.exe Python 2.7.1 (r271:86832, Nov 27

[issue9611] FileIO not 64-bit safe under Windows

2011-07-05 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 7acdf9f5eb31 by Victor Stinner in branch '3.2': Issue #9611, #9015: FileIO.read() clamps the length to INT_MAX on Windows. http://hg.python.org/cpython/rev/7acdf9f5eb31 New changeset e8646f120330 by Victor Stinner in branch

[issue9015] f.write(s) for s 2GB hangs in win64 (and win32?)

2011-07-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: This issue is a duplicate of #9611. -- resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9015

[issue9611] FileIO not 64-bit safe under Windows

2011-07-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I backported fixes to 2.7, and also add a new fix to FileIO.read(). I don't see anything else to do on this issue, so I close it. Note: read() and write() methods the file object in 2.7 are 64-bit safe on any OS. They use fread()

[issue9611] FileIO not 64-bit safe under Windows

2011-07-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Issue #9015 has been marked as a duplicate of this issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9611 ___

[issue12469] test_faulthandler failures on FreeBSD 6

2011-07-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I close this issue because test_signal pass on FreeBSD 6 buildbots (3.2 and 3.x). I will reopen it if test_faulthandler fails or if test_signal fails again, or maybe open new issues. -- resolution: - fixed status: open -

[issue8716] test_tk/test_tkk_guionly fails on OS X if run from buildbot slave daemon -- crashes Python

2011-07-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: New changeset ea02eca122b5 by Ned Deily in branch '2.7': Issue #8716: Avoid crashes caused by Aqua Tk on OSX when attempting to run http://hg.python.org/cpython/rev/ea02eca122b5 New changeset 06cb0d602468 by Ned Deily in branch

[issue11468] Improve unittest basic example in the doc

2011-07-05 Thread Florian Preinstorfer
Florian Preinstorfer nbl...@archlinux.us added the comment: I tried to implement the improvements suggested by Ezio Melotti and updated the documentation accordingly. -- keywords: +patch nosy: +notizblock Added file: http://bugs.python.org/file22576/issue-11468.patch

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-07-05 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: Added file: http://bugs.python.org/file22577/718801740bde.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10181 ___

[issue11439] subversion keyword breakage

2011-07-05 Thread Neil Muller
Neil Muller drnlmuller+b...@gmail.com added the comment: SVN_Revision.diff replaces the remaining $Revision$ keywords in 2.7 with the values from the last SVN checkout I have. This seems the correct minimal fix for the issues caused by code parsing the revision tag in Python 2. I've left the

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-07-05 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I've uploaded a revised version that addresses several suggestions. I think we have agreement on those now: - Officially ditch smalltable. - Comment static storage fields inside PyMemoryViewObject. - Improve refcounting in

[issue11439] subversion keyword breakage

2011-07-05 Thread Neil Muller
Neil Muller drnlmuller+b...@gmail.com added the comment: This patch removes or replaces a number SVN keywords which aren't buried in comments. I've removed '__revision__ = $Id$' cases - mainly present in distutils - as no-one appears to using these. I've replaced values in tarfile.py, but

[issue12494] subprocess: check_output() doesn't close pipes on error

2011-07-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: subprocess_check_output-2.patch is a more complete patch: fix (?) call(), check_output() and getstatusoutput(). These functions kill the process if an exception occurs to not hang on wait() in Popen.__exit__(). Because of the

[issue8716] test_tk/test_tkk_guionly fails on OS X if run from buildbot slave daemon -- crashes Python

2011-07-05 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: python2.7 has MacOS.WMAvailable(). When that function returns False the Tkinter tests should be disabled. The function is not available in Python 3, but is easy enough to implement using ctypes. --

[issue6721] Locks in python standard library should be sanitized on fork

2011-07-05 Thread Tomaž Šolc
Tomaž Šolc tomaz.s...@tablix.org added the comment: Except for multiprocessing, does anyone know of any other module in the standard library that uses fork() and threads at the same time? After some grepping through the source I couldn't find any other cases. I'm still in favor of just

[issue12500] support.transient_internet(): catch also Windows socket errors

2011-07-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: You don't need to add WSAECONNREFUSED, it's already there as ECONNREFUSED: errno.ECONNREFUSED 10061 errno.WSAECONNREFUSED 10061 As for (WSA)ENOTCONN, I don't want to add it before knowing what happens. It may signal a programming error.

[issue6721] Locks in python standard library should be sanitized on fork

2011-07-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Except for multiprocessing, does anyone know of any other module in the standard library that uses fork() and threads at the same time? After some grepping through the source I couldn't find any other cases. It's quite common to launch a

[issue12501] callable(): remove the deprecation warning from Python 2.7

2011-07-05 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: Python 2.7 emits a DeprecationWarning warning if callable() is called and python has the -3 option. callable() was removed in Python 3.0, but it was also added again in Python 3.2 (issue #10518). $ ./python -bb -3 -Werror

[issue12500] support.transient_internet(): catch also Windows socket errors

2011-07-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: You don't need to add WSAECONNREFUSED, it's already there as ECONNREFUSED Oh ok. Here is a patch for test_ssl.test_connect_ex() ignoring ECONNREFUSED error. -- Added file: http://bugs.python.org/file22582/test_ssl.patch

[issue12489] email.errors.HeaderParseError if base64url is used

2011-07-05 Thread Thomas Guettler
Thomas Guettler guet...@thomas-guettler.de added the comment: I received this email. Here is the creator: X-Mailer: CommuniGate Pro MAPI Connector 1.52.53.10/1.53.10.1 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12489

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-07-05 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I'm slightly confused about the implication chain in the flags. PyBUF_STRIDES seem to allow for discontiguous arrays, yet STRIDES - ND - C_CONTIGUOUS. PyBUF_FULL[_RO]

[issue12500] support.transient_internet(): catch also Windows socket errors

2011-07-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Oh ok. Here is a patch for test_ssl.test_connect_ex() ignoring ECONNREFUSED error. IMO you also want to test for the other errnos in transient_internet. Also, it should skip the test if the connection is refused. --

[issue6721] Locks in python standard library should be sanitized on fork

2011-07-05 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Except for multiprocessing, does anyone know of any other module in the standard library that uses fork() and threads at the same time? After some grepping through the source I couldn't find any other cases. The same problem

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-07-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I'm slightly confused about the implication chain in the flags. PyBUF_STRIDES seem to allow for discontiguous arrays, yet STRIDES - ND - C_CONTIGUOUS. To be honest I have never understood anything about these flags, and I doubt anyone without

[issue12493] subprocess: Popen.communicate() doesn't handle EINTR in some cases

2011-07-05 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset dcfacc2d93b4 by Victor Stinner in branch '3.2': Issue #12493: subprocess: communicate() handles EINTR http://hg.python.org/cpython/rev/dcfacc2d93b4 New changeset 42e23db3ddfc by Victor Stinner in branch 'default': (merge 3.2) Issue

[issue12493] subprocess: Popen.communicate() doesn't handle EINTR in some cases

2011-07-05 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12493 ___

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-07-05 Thread Pauli Virtanen
Pauli Virtanen p...@iki.fi added the comment: The flags don't seem to be meant to describe the properties of the buffer, only what the exporter is required to fill in. STRIDES does not imply necessarily discontinuous, only that the `strides` field is present. The C_/F_/ANY_CONTIGUOUS flags

[issue12500] support.transient_internet(): catch also Windows socket errors

2011-07-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Updated patch: add support.transient_errors tuple. -- Added file: http://bugs.python.org/file22583/test_ssl-2.patch ___ Python tracker rep...@bugs.python.org

[issue12500] support.transient_internet(): catch also Windows socket errors

2011-07-05 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file22575/transient_internet_windows.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12500 ___

[issue12500] support.transient_internet(): catch also Windows socket errors

2011-07-05 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file22582/test_ssl.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12500 ___

[issue12500] Skip test_ssl.test_connect_ex() on connection error

2011-07-05 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- title: support.transient_internet(): catch also Windows socket errors - Skip test_ssl.test_connect_ex() on connection error ___ Python tracker rep...@bugs.python.org

[issue12426] packaging.tests.test_command_install_dist.InstallTestCase failure

2011-07-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I didn't see this failure recently. Because packaging module (and tests) changed after the failure, I suppose that the bug is already fixed. -- resolution: - invalid status: open - closed

[issue12364] Deadlock in test_concurrent_futures

2011-07-05 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- title: Timeout (1 hour) in test_concurrent_futures.tearDown() on sparc solaris10 gcc 3.x - Deadlock in test_concurrent_futures ___ Python tracker rep...@bugs.python.org

[issue12451] open: avoid the locale encoding when possible

2011-07-05 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 8b62f5d722f4 by Victor Stinner in branch '3.2': Issue #12451: pydoc: html_getfile() now uses tokenize.open() to support Python http://hg.python.org/cpython/rev/8b62f5d722f4 New changeset 2fbfb7ea362f by Victor Stinner in branch

[issue8695] Issue while installing Python 2.6.5 in IBM AIX 6.1

2011-07-05 Thread abdeljalil chehaibou
Changes by abdeljalil chehaibou abdeljalil.chehai...@gmail.com: -- nosy: +abdeljalil.chehaibou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8695 ___

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-07-05 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: It took me a bit of thinking, but I figured out why the contiguous flags imply STRIDES. A quick recap of all the flags: WRITABLE - error if can't support write access FORMAT - request format info in Py_buffer struct. Should never error, but

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-07-05 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: At least, that's the explanation based on the PEP - not sure where CONTIG as an alias for ND (N-dimensional) comes from. But then, smalltable was an undocumented novelty, too :) -- ___ Python

[issue12493] subprocess: Popen.communicate() doesn't handle EINTR in some cases

2011-07-05 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 807921ba241d by Victor Stinner in branch '3.2': Issue #12493: skip test_communicate_eintr() if signal.SIGALRM is missing http://hg.python.org/cpython/rev/807921ba241d New changeset 4928cf093a11 by Victor Stinner in branch 'default':

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-07-05 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: To address the should PyManagedBuffer be public? question: yes, I think so. Given the amount of grief the raw PEP 3118 API has caused the memoryview implementation, I expect the easier lifecycle management provided by the PyObject based API

[issue6721] Locks in python standard library should be sanitized on fork

2011-07-05 Thread Tomaž Šolc
Tomaž Šolc tomaz.s...@tablix.org added the comment: We can't do that, it would break existing code. I would argue that such code is already broken. What do you mean by helper threads? multiprocessing uses threads behind the scenes to handle queue traffic and such for individual forked

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-07-05 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Regarding the Reitveld cc field: I tend not to add anyone to that and instead post comments to the tracker item to say that I've finished a review in Reitveld. If people want to see details they can go look at the review itself (or remove

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-07-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Regarding the Reitveld cc field: I tend not to add anyone to that and instead post comments to the tracker item to say that I've finished a review in Reitveld. If people want to see details they can go look at the review itself (or remove

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-07-05 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: I don't think that's a bug, it's a missing feature in the integration (there's a request on the metatracker to add automatic notifications of new reviews on the bug itself). I did mention the review above but it would have been easy to miss

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-07-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I don't think that's a bug, it's a missing feature in the integration (there's a request on the metatracker to add automatic notifications of new reviews on the bug itself). It is a bug, actually. People on the nosy list are also on the

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-07-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: (and so, for the record, I've added my own small review :)) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10181 ___

[issue10608] Add a section to Windows FAQ explaining os.symlink

2011-07-05 Thread Adam Woodbeck
Changes by Adam Woodbeck adam.woodb...@gmail.com: -- nosy: +adam.woodbeck ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10608 ___ ___

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-07-05 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Moving this discussion out of the review comments: Antoine is wanting to make release() nondeterministic by having the underlying buffer only released when all views using it either have release() called or are no longer referenced. I

[issue10647] scrollbar crash in non-US locale format settings

2011-07-05 Thread Hans Bering
Hans Bering hans.ber...@arcor.de added the comment: I'm sorry, but it seems the issue described in my previous edit (msg139566) is perhaps not related to the original Scrollbar problem. I had thought they were because of the superficial resemblance (i.e., crashes due to locale-dependent float

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-07-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Antoine is wanting to make release() nondeterministic by having the underlying buffer only released when all views using it either have release() called or are no longer referenced. That's not nondeterministic if everyone calls release(). Less

[issue2506] Line tracing of continue after always-taken if is incorrect

2011-07-05 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2506 ___ ___ Python-bugs-list

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-07-05 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Antoine Pitrou rep...@bugs.python.org wrote: My issue is that until now sliced memoryviews are independent objects and are not affected by the releasing of the original memoryview. With this patch, they are, and that's why I'm

[issue12043] Update shutil documentation

2011-07-05 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I will commit the rest of the patch. -- assignee: docs@python - eric.araujo priority: low - high ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12043

[issue12499] textwrap.wrap: add control for fonts with different character widths

2011-07-05 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Amaury, do you think it’s more common to subclass TextWrapper than just instantiate it? I find the proposed API (an argument to __init__) very intuitive. -- keywords: +needs review nosy: +eric.araujo, georg.brandl stage: - patch

[issue12485] textwrap.wrap: new argument for more pleasing output

2011-07-05 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: xrange does not exist in Python 3, it’s called range. You should have seen yesterday that I changed the versions: as a new feature, this cannot go into stable releases, only into the next one. I’m adding Georg to nosy per

[issue12501] callable(): remove/amend the deprecation warning in Python 2.7

2011-07-05 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: What about this change instead: -if (PyErr_WarnPy3k(callable() not supported in 3.x; +if (PyErr_WarnPy3k(callable() not supported in 3.1; -- nosy: +eric.araujo title: callable(): remove the deprecation warning from Python 2.7 -

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-07-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I thought the rationale for the release() method was to allow sequences like: b = bytearray() m1 = memoryview(b) m1.release() - must call releasebuffer instantly. b.resize(10) - this might fail otherwise if the garbage collection is too

[issue7231] Windows installer does not add \Scripts folder to the path

2011-07-05 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Duplicate of #9093 (or is it the reverse?) -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7231 ___

[issue7231] Windows installer does not add \Scripts folder to the path

2011-07-05 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- Removed message: http://bugs.python.org/msg139884 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7231 ___

[issue7231] Windows installer does not add \Scripts folder to the path

2011-07-05 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Duplicate of #3561 (or maybe the reverse) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7231 ___

[issue11123] problem with packaged dependency extracter script, pdeps

2011-07-05 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Looks good. I suggest you test again and commit. -- nosy: +eric.araujo stage: - patch review type: crash - behavior versions: +Python 3.3 -Python 3.1 ___ Python tracker rep...@bugs.python.org

[issue12492] Inconsistent Python find() behavior

2011-07-05 Thread Juan Gonzalez
Juan Gonzalez juan.gonza...@ti.com added the comment: Today I tried to use parse() instead of find() and I found out the following response: tony@ubuntu:~/auto/sel/scripts$ python wtfibmdom Traceback (most recent call last): File wtfibmdom, line 22, in module if url.parse(str) 0:

[issue12492] Inconsistent Python find() behavior

2011-07-05 Thread Juan Gonzalez
Juan Gonzalez juan.gonza...@ti.com added the comment: Hi Georg, This is the python code listing: from RSS import ns, CollectionChannel, TrackingChannel #Create a tracking channel, which is a data structure that #Indexes RSS data by item URL tc = TrackingChannel() str =

[issue11394] Tools/demo, etc. are not installed

2011-07-05 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Explicit request for inclusion? What kind of bureaucracy are you up to? This probably means: bug reports. The Tools directory may or may not be included in UNIX tarballs, Mac OS X installers or Windows installers. It is not documented

[issue12492] Inconsistent Python find() behavior

2011-07-05 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: Can you post some example code or a test case? -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12492 ___

[issue6931] dreadful performance in difflib: ndiff and HtmlDiff

2011-07-05 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The patch by Filip does not add new features, so I’m adjusting versions. I cannot review the patch only by reading it, but if someone gives me a timeit command I can post a benchmark for my Debian machine. -- nosy: +eric.araujo

[issue10318] make altinstall installs many files with incorrect shebangs

2011-07-05 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: This 3.2 patch updates UNIX rights and shebangs in Tools/scripts. I also edited mailerdaemon, which used a string exception. -- versions: -Python 3.1 Added file: http://bugs.python.org/file22584/tools-scripts.diff

[issue12492] Inconsistent Python find() behavior

2011-07-05 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Put the failing code inside a try, and wrote in the except: print repr(url). I am pretty sure your url can be, actually, a number. Or print url just before the 'faulty' line. I guess you will be surprised. --

[issue12499] textwrap.wrap: add control for fonts with different character widths

2011-07-05 Thread Tyler Romeo
Tyler Romeo tylerro...@gmail.com added the comment: Normally I would have just added it as a function to be overloaded, but because of the nature of the textwrap.wrap function (all kwargs are passed to the TextWrapper constructor) I thought it made a lot more sense to keep it as an argument

[issue9860] Building python outside of source directory fails

2011-07-05 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I am working on a patch to make patchcheck use os.path.join(sysconfig.get_config_var('srcdir'), etc.) to look for the .hg dir and open files (to do its checks) with the right paths. -- ___ Python

[issue12492] Inconsistent Python find() behavior

2011-07-05 Thread Brian Curtin
Changes by Brian Curtin br...@python.org: -- stage: - committed/rejected status: open - closed type: crash - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12492 ___

[issue6721] Locks in python standard library should be sanitized on fork

2011-07-05 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: We can't do that, it would break existing code. I would argue that such code is already broken. - that's not necessarily true, if your code is carefully designed - we can't forbid fork() in a multi-threaded application while it's

[issue12492] Inconsistent Python find() behavior

2011-07-05 Thread Juan Gonzalez
Juan Gonzalez juan.gonza...@ti.com added the comment: I print 1 before the faulty line and like Jesús says I'm surprised I get a 1 Description: Build passed 1 Traceback (most recent call last): File wtfibmdom, line 23, in module if url.find(str) 0: AttributeError: 'int' object has no

[issue12502] 100% cpu usage when using asyncore with UNIX socket

2011-07-05 Thread Алексей Агапитов
New submission from Алексей Агапитов marwinx...@gmail.com: When using asyncore server with UNIX socket, I got 100% CPU usage. I run modified code example from asyncore doc page. This code was tested on two systems: Ubuntu 10.04 2.6.32-32-generic #62-Ubuntu SMP with two versions of Python:

[issue12502] 100% cpu usage when using asyncore with UNIX socket

2011-07-05 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12502 ___ ___ Python-bugs-list

[issue12502] 100% cpu usage when using asyncore with UNIX socket

2011-07-05 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: It's looping in Lib/asyncore.py:poll select(4, [3], [3], [3], {30, 0}) = 1 (out [3], left {29, 94}) select(4, [3], [3], [3], {30, 0}) = 1 (out [3], left {29, 94}) select(4, [3], [3], [3], {30, 0}) = 1 (out

[issue12502] 100% cpu usage when using asyncore with UNIX socket

2011-07-05 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: Looks good, the patch seems to fix the problem. This section of code indicates that the accepting socket shouldn't be in the write set... def handle_write_event(self): if self.accepting: # Accepting sockets shouldn't get a

[issue12459] time.sleep(-1.0) behaviour

2011-07-05 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 0e5485634817 by Victor Stinner in branch 'default': Issue #12459: time.sleep() now raises a ValueError if the sleep length is http://hg.python.org/cpython/rev/0e5485634817 -- nosy: +python-dev

[issue12459] time.sleep(-1.0) behaviour

2011-07-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Tim Lesher agreed to raise an exception (That makes sense. Better to be consistent within the time API--I know the different semantics of time.clock() have confused people around here.), so I think that everybody agreed to raise

[issue12494] subprocess: check_output() doesn't close pipes on error

2011-07-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: See also issue #12044 which changed the context manager to call the wait() method. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12494

[issue12044] subprocess.Popen.__exit__ doesn't wait for process end

2011-07-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: See also issue #12494: subprocess: check_output() doesn't close pipes on error. -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12044

[issue8716] test_tk/test_tkk_guionly fails on OS X if run from buildbot slave daemon -- crashes Python

2011-07-05 Thread Ned Deily
Ned Deily n...@acm.org added the comment: That's puzzling. That particular segfault failure is on test_ttk_guionly but test_tk apparently passed earlier in the run and it seems that this buildbot is being run with a window manager connection available (the changes that I added did not raise

[issue8716] test_tk/test_tkk_guionly fails on OS X if run from buildbot slave daemon -- crashes Python

2011-07-05 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 18ce15f841cf by Ned Deily in branch '2.7': Issue #8716: Add temporary code for 2.7 to help diagnose buildbot failure. http://hg.python.org/cpython/rev/18ce15f841cf -- ___ Python tracker

[issue10883] urllib: socket is not closed explicitly

2011-07-05 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: The failure seems to occur sporadically. I'm looking into it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10883 ___

[issue12149] Segfault in _PyObject_GenericGetAttrWithDict

2011-07-05 Thread Davide Rizzo
Davide Rizzo sor...@gmail.com added the comment: Looking through Antoine's example code. When garbage is collected, the subtype and its tp_dict are cleared before the instance object itself. When the dict is cleared as part of the garbage collection, the methods get deallocated but the method

[issue12149] Segfault in _PyObject_GenericGetAttrWithDict

2011-07-05 Thread Andreas Stührk
Changes by Andreas Stührk andy-pyt...@hammerhartes.de: -- nosy: +Trundle ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12149 ___ ___

[issue12482] input() not working correctly on Mac OS X

2011-07-05 Thread Dmitriy Gorbachev
Dmitriy Gorbachev dgorbac...@yahoo.com added the comment: Hello Ned Thank you very much for your time and for your advice where to post questions like mine. I apologise for my mistake: instead of input() there was raw_input() function in the book, which works as expected on all platforms.

[issue5342] packaging: add tests for old versions cleanup on update

2011-07-05 Thread Thomas Holmes
Changes by Thomas Holmes tho...@devminded.com: -- nosy: +thomas.holmes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5342 ___ ___ Python-bugs-list

[issue11512] adding test suite for cgitb

2011-07-05 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 7e0102ec95d4 by Brian Curtin in branch 'default': Fix #11512. Add an initial test suite for the cgitb, providing 75% coverage. http://hg.python.org/cpython/rev/7e0102ec95d4 New changeset f362f0053eab by Brian Curtin in branch

[issue12482] input() not working correctly on Mac OS X

2011-07-05 Thread Dmitriy Gorbachev
Dmitriy Gorbachev dgorbac...@yahoo.com added the comment: Hi Amaury, Thank you very much for your email. Actually what happedded is that I mistakenly used input() function in place of raw_input() as it is in the book. raw_input correctly inputs bob and 'bob', while input() inputs correctly

[issue10883] urllib: socket is not closed explicitly

2011-07-05 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: The problem seems to be that CacheFTPHandler inherits ftp_open() from FTPHandler - FTPHandler.ftp_open() marks the ftpwrapper object to be closed as soon as the current transfer is complete. So CacheFTPHandler's cache ends up full of closed

  1   2   >