[issue11568] docstring of select.epoll.register() is wrong

2011-06-26 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Sun, Jun 26, 2011 at 03:12:30PM +, Sandro Tosi wrote: > The patch is fine: but would you be interested in trying to write a > unittest for select.epoll.register ? it would be really nice to This is covered in test_epoll.py -- nosy: +orsenthil

[issue11568] docstring of select.epoll.register() is wrong

2011-06-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset a6586cb660dc by Senthil Kumaran in branch '2.7': Fix closes issue 11568 - update select.epoll.register docstring with mention of correct behavior. http://hg.python.org/cpython/rev/a6586cb660dc -- ___ Py

[issue11568] docstring of select.epoll.register() is wrong

2011-06-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0610f70e6694 by Senthil Kumaran in branch '3.2': Fix closes issue 11568 - update select.epoll.register docstring with mention of correct behavior. http://hg.python.org/cpython/rev/0610f70e6694 -- nosy: +python-dev resolution: -> fixed sta

[issue6673] Uncaught comprehension SyntaxError eats up all memory

2011-06-26 Thread Nick Coghlan
Nick Coghlan added the comment: The acceptance of PEP 380 actually muddies the waters on this one - the expansion I cited as a syntax error now has a defined meaning. Specifically, list comprehensions containing yield expressions would become generators that return a list (set and dict compre

[issue2377] Replace __import__ w/ importlib.__import__

2011-06-26 Thread Andreas Stührk
Changes by Andreas Stührk : -- nosy: +Trundle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue2377] Replace __import__ w/ importlib.__import__

2011-06-26 Thread Brett Cannon
Brett Cannon added the comment: OK, so first step is to simply replace __import__ w/ importlib.__import__ using builtins.__import__ in order to make sure that all tests pass as expected. Can probably do this by doing the switch in Py_Initialize() somewhere. Next step after that will be seeing

[issue7620] Vim syntax highlight

2011-06-26 Thread Brett Cannon
Changes by Brett Cannon : -- dependencies: +Usefulness of the Misc/Vim/ files? ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue667770] import C API mess

2011-06-26 Thread Brett Cannon
Changes by Brett Cannon : -- dependencies: +Replace __import__ w/ importlib.__import__ ___ Python tracker ___ ___ Python-bugs-list ma

[issue8912] `make patchcheck` should check the whitespace of .c/.h files

2011-06-26 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: brett.cannon -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue8661] FAQ item 2.25 is unclear

2011-06-26 Thread Brett Cannon
Brett Cannon added the comment: This is out of date thanks to the rewrite of the FAQ for Mercurial. -- resolution: -> out of date status: open -> closed ___ Python tracker ___ _

[issue8745] zipimport is a bit slow

2011-06-26 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: brett.cannon -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue2377] Replace __import__ w/ importlib.__import__

2011-06-26 Thread Brett Cannon
Changes by Brett Cannon : -- title: Replace import.c with a pure Python implementation -> Replace __import__ w/ importlib.__import__ ___ Python tracker ___ __

[issue2377] Replace import.c with a pure Python implementation

2011-06-26 Thread Brett Cannon
Changes by Brett Cannon : -- hgrepos: +34 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue6531] atexit_callfuncs() crashing within Py_Finalize() when using multiple interpreters.

2011-06-26 Thread Graham Dumpleton
Graham Dumpleton added the comment: Segmentation fault. The original description explains the problem is dereferencing of a NULL pointer which has a tendency to invoke such behaviour. -- ___ Python tracker ___

[issue12416] packaging does not have hooks callable during distribution removal

2011-06-26 Thread Vinay Sajip
New submission from Vinay Sajip : In general it is possible for an installation to make certain system changes other than the record of files written during an installation (for example, under Windows, there may be distribution-specific Windows registry updates). There seems to be no hook that

[issue10760] tarfile doesn't handle sysfs well

2011-06-26 Thread Guy Rozendorn
Changes by Guy Rozendorn : -- nosy: +guyrozendorn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue12405] packaging does not record/remove directories it creates

2011-06-26 Thread Vinay Sajip
Vinay Sajip added the comment: More info on the problem (not Windows specific): if the installation creates a file several levels down a/b/c/file then during removal, only a/b/c is regarded as a candidate for removal; a/b and a are not considered as deletion candidates, and so never deleted,

[issue12405] packaging does not record/remove directories it creates

2011-06-26 Thread Vinay Sajip
Vinay Sajip added the comment: I see that there's code to do this in install.py, but for some reason it seems not to be working in Windows. Investigating. -- ___ Python tracker ___

[issue6673] Uncaught comprehension SyntaxError eats up all memory

2011-06-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: With 32bit winxp Windows Task Manager open to Processes, sorted by Men Usage, I verified expanding memory usage in 3.2.0 (and stopped at 200 mb versus normal <20Mb). While we do not expect compiler to catch while True: pass, it would be nice if this was, with

[issue11253] autodocument first appearance of ctypes.wintypes constants

2011-06-26 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Sun, Jun 26, 2011 at 10:44:59AM +, Mark Mc Mahon wrote: > So we need a doc patch? Should we update the older 'What's new in > Python 2.x' for added attribs? The Documentation patch may be applied only 2.7 and 3.2/3.3 releases now. What's new is updated

[issue4765] IDLE fails to "Delete Custom Key Set" properly

2011-06-26 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.2, Python 3.3 -Python 2.6, Python 3.0, Python 3.1 ___ Python tracker ___ ___ Python-

[issue6531] atexit_callfuncs() crashing within Py_Finalize() when using multiple interpreters.

2011-06-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: What did you mean by 'crash'? An exception or a segfault or equivalent? I believe the finalization code was reworked a bit last fall, so could you determine whether or not there is still a problem in 3.2.1? Do not bother with 3.1.4 unless you think this is a

[issue12326] Linux 3: tests should avoid using sys.platform == 'linux2'

2011-06-26 Thread Charles-François Natali
Charles-François Natali added the comment: > That would be incorrect for some systems. For example, FreeBSD does > change sets of symbolic constants across system releases (mostly > additions, but sometimes also removals). Back then, SunOS 4 and SunOS > 5 were completely unrelated systems. > We

[issue11197] information leakage with SimpleHTTPServer

2011-06-26 Thread Senthil Kumaran
Senthil Kumaran added the comment: The module documentation for the SimpleHTTPServer class says that. """ This class serves files from the current directory and below, directly mapping the directory structure to HTTP requests. """ As it is already documented. Nothing else needs to be d

[issue5999] compile error on HP-UX 11.22 ia64 - 'mbstate_t' is used as a type, but has not been defined as a type

2011-06-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Sridhar, is there still a problem with current 3.2/3? If you are no longer working on this, I think we should close as languishing/postponed. -- nosy: +terry.reedy versions: +Python 3.2 -Python 3.1 ___ Python track

[issue6396] '' % object() raises TypeError

2011-06-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: The original bug claim is invalid. But the following (3.2.0, winxp) strike me as a bug, hence the title change >>> class A: pass >>> '' % A() '' >>> '' % object() ... TypeError: not all arguments converted during string formatting More difference: >>> '%(a)

[issue12352] multiprocessing.Value() hangs

2011-06-26 Thread Charles-François Natali
Charles-François Natali added the comment: Here's a patch based on the second approach. -- Added file: http://bugs.python.org/file22490/heap_gc_deadlock_lockless.diff ___ Python tracker __

[issue11870] test_3_join_in_forked_from_thread() of test_threading hangs 1 hour on "x86 Ubuntu Shared 3.x"

2011-06-26 Thread Charles-François Natali
Changes by Charles-François Natali : Removed file: http://bugs.python.org/file22468/test_threading_fork.diff ___ Python tracker ___ ___ Python

[issue11870] test_3_join_in_forked_from_thread() of test_threading hangs 1 hour on "x86 Ubuntu Shared 3.x"

2011-06-26 Thread Charles-François Natali
Charles-François Natali added the comment: Patch attached. -- Added file: http://bugs.python.org/file22489/test_threading_fork.diff ___ Python tracker ___diff -r fca745bc70be L

[issue12303] expose sigwaitinfo() and sigtimedwait() in the signal module

2011-06-26 Thread STINNER Victor
STINNER Victor added the comment: > @Victor, you've had some experience with fixing signals > on the FreeBSD 6 buildbot... It's not exactly that I had some experience, it's just that I have a SSH access to the buildbot. The following code hangs for (exactly?) 30 seconds on sigwaitinfo():

[issue5308] cannot marshal objects with more than 2**31 elements

2011-06-26 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> needs patch versions: +Python 3.2, Python 3.3 -Python 3.1 ___ Python tracker ___ ___ Python-b

[issue1067702] urllib fails with multiple ftp transfers

2011-06-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset a4d418e8010d by Senthil Kumaran in branch '2.7': Fix closes issue1067702 The problem with close multiple ftp transfers were due cases where sockets/file were not closed immediately. Tightned those cases and failure is no longer observed. http://h

[issue3635] pickle.dumps cannot save instance of dict-derived class that overrides __getattribute__

2011-06-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Should this be closed for the same reason #1730480 was? If not, would this effectively be a feature request and have to wait for a new version (3.3)? -- nosy: +alexandre.vassalotti, pitrou, terry.reedy versions: +Python 2.7, Python 3.2 -Python 2.6, Pyt

[issue12328] multiprocessing's overlapped PipeConnection on Windows

2011-06-26 Thread sbt
sbt added the comment: I have noticed a few more problems. * Because poll() isn't thread safe on Windows, neither is Queue.empty(). Since a queue's pipe will never contain empty messages, this can be fixed easily by using (a wrapper for) win32.PeekNamedPipe(). * PipeListener/PipeClient have

[issue3435] 3rd party program calls trace.py on non Python files

2011-06-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: The patch adds this check: + if not filename.endswith((".pyc", ".pyo", ".py")): +continue This is not valid. A Python file is a text file with python code. In spite of import conventions, they are not required to have any particular

[issue12392] pthread_kill() doesn't work on the main thread on FreeBSD6

2011-06-26 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue12328] multiprocessing's overlapped PipeConnection on Windows

2011-06-26 Thread sbt
sbt added the comment: sigint_event.patch is a patch to make _multiprocessing.win32.WaitForMultipleObjects interruptible. It applies directly on to default. The patch also adds functions _PyOS_SigintEvent and _PyOS_IsMainThread which are implemented in signalmodule.c and declared in intrcheck.

[issue5895] socketmodule.c on HPUX ia64 without _XOPEN_SOURCE_EXTENDED compiles incorrectly

2011-06-26 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Martin: PEP 11 lists platforms no-longer supported, but does not list > those that are. You mean, "doesn't list the platforms that are still supported"? That's on purpose: the point of PEP 11 is to warn current users about forthcoming changes, not to track

[issue5895] socketmodule.c on HPUX ia64 without _XOPEN_SOURCE_EXTENDED compiles incorrectly

2011-06-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Naoyuki, unless you can confirm that Daniel's patch works, we will have to close this as out-of-date. Martin: PEP 11 lists platforms no-longer supported, but does not list those that are. For writing/reviewing patches like this, it would be helpful if it did

[issue12406] msi.py needs updating for Python 3.3

2011-06-26 Thread Martin v . Löwis
Martin v. Löwis added the comment: > BTW I made those Tcl/Tk changes because the instructions point to > getting the files from the svn repository (using svn export), and > they unpack into directories with a hyphen before the "8". Yes, that's unfortunate. These instructions are not correct (th

[issue12413] make faulthandler dump traceback of child processes

2011-06-26 Thread STINNER Victor
STINNER Victor added the comment: > > In which case is Python the leader of the group? ... > > Yes, it's the case by default when you launch a process through a shell. subprocess doesn't use a shell by default, and I don't think that multiprocessing uses a shell to start Python. > > The subpr

[issue12326] Linux 3: tests should avoid using sys.platform == 'linux2'

2011-06-26 Thread Martin v . Löwis
Martin v. Löwis added the comment: > I can't speak, as I've never used those. But can't those directories > be renamed to Lib/plat-? That would be incorrect for some systems. For example, FreeBSD does change sets of symbolic constants across system releases (mostly additions, but sometimes also

[issue12414] getsizeof() on code objects is wrong

2011-06-26 Thread Martin v . Löwis
Martin v. Löwis added the comment: For composite objects, getsizeof should only return the memory of the object itself, and not that of other objects it refers to. "the object itself" definitely includes the struct of the object, and also definitely includes non-PyObject blocks uniquely refer

[issue1662] [patch] assert tp_traverse in PyType_GenericAlloc()

2011-06-26 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.2, Python 3.3 -Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue12406] msi.py needs updating for Python 3.3

2011-06-26 Thread Vinay Sajip
Vinay Sajip added the comment: BTW I made those Tcl/Tk changes because the instructions point to getting the files from the svn repository (using svn export), and they unpack into directories with a hyphen before the "8". -- ___ Python tracker

[issue5875] test_distutils failing on OpenSUSE 10.3, Py3k

2011-06-26 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.2 -Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5700] io.FileIO calls flush() after file closed

2011-06-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: The original snippet works the same on 3.2.0. Was their any conclusion as to whether or not a change should be made? -- nosy: +terry.reedy versions: +Python 3.2, Python 3.3 -Python 3.1 ___ Python tracker

[issue12291] file written using marshal in 3.2 can be read by 2.7, but not 3.2 or 3.3

2011-06-26 Thread Vinay Sajip
Vinay Sajip added the comment: I've incorporated Engelbert's two patches into test_marshal.py in my sandbox fix branch. I coalesced them into a single additional test in the existing BugsTestCase. -- type: -> behavior ___ Python tracker

[issue12382] [msilib] Obscure exception message when trying to open a non-existent MSI database

2011-06-26 Thread Martin v . Löwis
Martin v. Löwis added the comment: I'd add them to msierror, with no inclusion of the file name. If you want the file name in the exception, you should uniformly apply this to all errors in OpenDatabase, and then subclass MSIError to, say, MSIOpenError which includes a .filename attribute. -

[issue12291] file written using marshal in 3.2 can be read by 2.7, but not 3.2 or 3.3

2011-06-26 Thread Vinay Sajip
Changes by Vinay Sajip : Added file: http://bugs.python.org/file22487/0feab4e7b27f.diff ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue12406] msi.py needs updating for Python 3.3

2011-06-26 Thread Vinay Sajip
Vinay Sajip added the comment: Thanks, Martin. I've realised there are more additions due to packaging - for example there is a whole set of "wininst-X.Y[-amd64].exe" files in Lib/packaging/command. I won't commit anything just yet - I've made the changes I need to my local branch for testing

[issue5722] settimer / gettimer functionality on FreeBSD 6.3 (not 7.x)

2011-06-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am following Andrew's suggestion. This issue can serve as 'don't do that' doc. The 3.2 README has been edited and slimmed down by Georg Brandl. It is limited to general build instructions. It would not be the place for such a nit. It does say "You can pass

[issue12406] msi.py needs updating for Python 3.3

2011-06-26 Thread Martin v . Löwis
Martin v. Löwis added the comment: This looks fine, except for the Tk changes, which should not be made. -- ___ Python tracker ___ __

[issue4591] 32-bits unsigned user/group identifier

2011-06-26 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue4591] 32-bits unsigned user/group identifier

2011-06-26 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.2, Python 3.3 -Python 3.0, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list ma

[issue5619] Pass MS CRT debug flags into subprocesses

2011-06-26 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.2, Python 3.3 -Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue5661] asyncore should catch EPIPE while sending() and receiving()

2011-06-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am not marking 'test needed' since the problem is 'hardly reproducible'. -- nosy: +stutzbach, terry.reedy -josiah.carlson stage: -> patch review versions: +Python 3.2, Python 3.3 -Python 2.6, Python 3.0, Python 3.1 __

[issue978604] wait_variable hangs at exit

2011-06-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: In 3.2, winxp, (with Tkinter => tkinter), I get invalid command name "12277720callit" while executing "12277720callit" ("after" script) and no new prompt and ^C ineffective. Had to kill command window. With IDLE, get nothing and have to kill with Task Ma

[issue5375] Unified locals/consts array + register-based instructions

2011-06-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: This a type of feature request and such a change would only go into a new version. Given the absence of response from djc, perhaps this should be closed as languishing-postponed? -- nosy: +terry.reedy versions: +Python 3.3 -Python 2.7, Python 3.1 ___

[issue5225] OS X "Update Shell Profile" may not update $PATH if run more than once

2011-06-26 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue5225] OS X "Update Shell Profile" may not update $PATH if run more than once

2011-06-26 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.2, Python 3.3 -Python 3.0, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list ma

[issue5159] Indicating packages to be loaded when a Tcl interpreter is created in tkinter

2011-06-26 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- type: -> feature request versions: +Python 3.3 -Python 2.7, Python 3.1 ___ Python tracker ___ ___ Pytho

[issue4672] Distutils SWIG support blocks use of SWIG -outdir option

2011-06-26 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.2 -Python 2.6, Python 3.0, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list ma

[issue4924] gc.collect() won't always collect as expected

2011-06-26 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue4924] gc.collect() won't always collect as expected

2011-06-26 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.2, Python 3.3 -Python 3.0, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list ma

[issue11726] linecache becomes specific to Python scripts in Python 3

2011-06-26 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue1475523] gettext breaks on plural-forms header

2011-06-26 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.3 -Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue1669349] make install fails if no previous Python installation

2011-06-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am closing this because none of the reports are for current versions (2.7,3.2) -- nosy: +terry.reedy resolution: -> out of date status: open -> closed versions: +Python 3.3 -Python 3.1 ___ Python tracker

[issue8743] set() operators don't work with collections.Set instances

2011-06-26 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.3 -Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6717] Some problem with recursion handling

2011-06-26 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.3 -Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2011-06-26 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue12303] expose sigwaitinfo() and sigtimedwait() in the signal module

2011-06-26 Thread Ross Lagerwall
Ross Lagerwall added the comment: >From the FreeBSD 6.4 buildbot: """ [172/356/2] test_signal error: 'NoneType' object has no attribute 'si_signo' error: False is not true test test_signal failed -- multiple errors occurred; run in verbose mode for details Re-running test test_signal in verbose

[issue12255] A few changes to .*ignore

2011-06-26 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Sat, Jun 25, 2011 at 08:38:04PM +, Senthil Kumaran wrote: > As I am not affected by remains of .rej and .orig (neither have I > found their usefulness (yet)), so my concerns can be stepped over. Just a side-note. I wondered why is my case so, and I r

[issue10583] Encoding issue with chm help in 2.7.1

2011-06-26 Thread flashk
flashk added the comment: Yes, I still notice this issue with the 2.7.2 release. As I mentioned earlier, I did not notice this problem with 2.7. Were there any significant changes to the docs between 2.7 and 2.7.1? Considering the bug with HTML Help pointed out by Kristian, I'm thinking there

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

2011-06-26 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- nosy: +petri.lehtinen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue5950] Make zipimport work with zipfile containing comments

2011-06-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Brett, Nick, this could be considered a patch to the import machinery as the bugs shows with a import statement. In any case, no one is signed up for zipimport specifically. -- nosy: +brett.cannon, ncoghlan versions: +Python 3.3 -Python 3.2 _

[issue12211] Better document math.copysign behavior.

2011-06-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree with adding '(absolute value)'. I think the following covers the NaN behavior. "NaN acts as a positive value that cannot be negated." This should be added to both doc and docstring. I do not think we generally specify the nan behavior for each functio

[issue12038] assertEqual doesn't display newline differences quite well

2011-06-26 Thread mouad
mouad added the comment: I took on consideration the two suggestion that was in the issue and create this patch that basically show only until the last character that differ and truncate the rest. I just included one test case, other test case if they should be included (and if my solution g

[issue11302] Add more tests to test_ast.py

2011-06-26 Thread Sandro Tosi
Sandro Tosi added the comment: Hi Benjamin, we know have rietveld directly integrated in the tracker, so it might be time to add you comments? If you still can remember them, given it passed some time :) -- nosy: +sandro.tosi stage: -> patch review __

[issue11568] docstring of select.epoll.register() is wrong

2011-06-26 Thread Sandro Tosi
Sandro Tosi added the comment: The patch is fine: but would you be interested in trying to write a unittest for select.epoll.register ? it would be really nice to start having 'select' tested (oh no, don't ask me how to test select since I have no idea :)). -- nosy: +sandro.tosi stage

[issue5950] Make zipimport work with zipfile containing comments

2011-06-26 Thread engelbert gruber
engelbert gruber added the comment: +1*4 -- nosy: +grubert ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue1067702] urllib fails with multiple ftp transfers

2011-06-26 Thread Stefan Schwarzer
Stefan Schwarzer added the comment: The traceback and its context for the exception raised in Python 2.7 is: ... ### 99 %

[issue1067702] urllib fails with multiple ftp transfers

2011-06-26 Thread Stefan Schwarzer
Stefan Schwarzer added the comment: After running the adapted test script three times for Python 3 tip (changeset c5b0585624ef), I didn't get an error message / exception. -- Added file: http://bugs.python.org/file22485/urllibftpbug-non-interactive-py3.py _

[issue11469] Fix resource warning in test_trailers

2011-06-26 Thread Sandro Tosi
Sandro Tosi added the comment: This has been fixed by Brett in 9050675cb94e . -- nosy: +sandro.tosi resolution: -> accepted stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue8890] Use tempfile instead of /tmp in examples

2011-06-26 Thread engelbert gruber
engelbert gruber added the comment: Assumption: /tmp is used in examples so the examples work because /tmp is always writeable module tempfile is for creating temporary files, the name of which is unimported, when a user is trying code from documentation it might be hard on him/her to a

[issue12134] json.dump much slower than dumps

2011-06-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: As Antoine and Eric stated, the module is working as intended and we don't document implementation details and generally stay away from talking about performance in the docs. -- resolution: -> rejected status: open -> closed _

[issue12211] Better document math.copysign behavior.

2011-06-26 Thread Sandro Tosi
Sandro Tosi added the comment: well, what I actually meant is to describe the behavior in case one (or both) of the arguments is NaN (so not cut&pasting the code), while the example was just provided as a quick reference. -- ___ Python tracker

[issue1067702] urllib fails with multiple ftp transfers

2011-06-26 Thread Stefan Schwarzer
Stefan Schwarzer added the comment: I can confirm the bug for the Python 2.7 tip (changeset b11e7bc76d07) after using the script urllibftpbug-non-interactive.py. -- ___ Python tracker __

[issue12384] difflib.SequenceMatcher and Match: code and doc bugs

2011-06-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: Go head an patch the first self.matching_blocks to also return a named tuple. Also, correct any doctests or examples using these. The docs could also mention that list of namedtuples with fields a, b, and size is returned by get_matching_blocks(). --

[issue1067702] urllib fails with multiple ftp transfers

2011-06-26 Thread Stefan Schwarzer
Stefan Schwarzer added the comment: > I converted the script to be executable with manual intervention (see > attachment). This should have been "without manual intervention". :) -- ___ Python tracker

[issue1067702] urllib fails with multiple ftp transfers

2011-06-26 Thread Stefan Schwarzer
Stefan Schwarzer added the comment: I was able to get some error output with the code of the OP. However, I only saw the "opposite" message, such as: Retrieval of 'ftp://ftp.gnome.org/pub/debian/dists/stable/main/source/Sources.bz2' failed with error: [Errno ftp error] 200 Switching to Binar

[issue11895] pybench prep_times calculation error

2011-06-26 Thread Sandro Tosi
Changes by Sandro Tosi : -- nosy: +sandro.tosi resolution: -> accepted stage: -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue8890] Use tempfile instead of /tmp in examples

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

[issue8890] Use tempfile instead of /tmp in examples

2011-06-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1ed71544fceb by Raymond Hettinger in branch '3.2': Issue #8890: Remove /tmp from examples. http://hg.python.org/cpython/rev/1ed71544fceb New changeset fcf242243d46 by Raymond Hettinger in branch 'default': Issue #8890: Remove /tmp from examples. ht

[issue11689] sqlite: Incorrect unit test fails to detect failure

2011-06-26 Thread Sandro Tosi
Sandro Tosi added the comment: I've commented on the Rietveld review page - forgive me if I missed something and didn't get the patch meaning right. -- nosy: +sandro.tosi stage: -> patch review versions: +Python 3.2 ___ Python tracker

[issue8890] Use tempfile instead of /tmp in examples

2011-06-26 Thread Dave King
Dave King added the comment: Spotted another use of /tmp/ in the logging howto. Attached a diff. -- nosy: +davbo Added file: http://bugs.python.org/file22483/tmp_logging_howto.diff ___ Python tracker __

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

2011-06-26 Thread Nick Coghlan
Nick Coghlan added the comment: I should also note that if memoryview ends up growing enough state to cope correctly with numpy-style multi-dimensional slicing, I'm actually OK with that. You could get a long way just using the array module to allocate a large chunk of memory and then a suita

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

2011-06-26 Thread Nick Coghlan
Nick Coghlan added the comment: The idea of PyManagedBuffer is for it to be an almost completely passive object that *just* acts as a refcounted wrapper around the Py_buffer structure, so it doesn't care about the actual contents. The only supplemental functionality I think it should provide

[issue4608] urllib.request.urlopen does not return an iterable object

2011-06-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the patch. -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list maili

[issue4608] urllib.request.urlopen does not return an iterable object

2011-06-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset c0a68b948f5d by Raymond Hettinger in branch '3.2': Issue #4608: urllib.request.urlopen does not return an iterable object http://hg.python.org/cpython/rev/c0a68b948f5d New changeset d4aeeddf72e3 by Raymond Hettinger in branch 'default': Issue #4608

  1   2   >