[issue11379] Remove "lightweight" from minidom description

2011-03-03 Thread Martin v . Löwis
Martin v. Löwis added the comment: > What about this phrasing then: > > """ MiniDOM has a smaller memory footprint than some of the other DOM > compliant implementations for Python (such as 4DOM), but uses about > 10x more memory than the faster and simpler xml.etree.cElementTree > module. """

[issue11379] Remove "lightweight" from minidom description

2011-03-03 Thread Stefan Behnel
Stefan Behnel added the comment: It's the tree based API most python users are parsing XML with, though. So I do not agree that it's comparing apples and oranges, not at all. It's comparing tree based XML libraries, only one of which is worth being called "light weight", and that's not the on

[issue10829] PyUnicode_FromFormatV() bugs with "%" and "%%" format strings

2011-03-03 Thread STINNER Victor
STINNER Victor added the comment: > Hi, haypo, would you mind modify your newly added parse_format_flags() > function so that it can diff the precision value of '%.0s' and > '%s'(Currently both of them return precision as 0)? You should update your patch attached to #7330. I hope that your patc

[issue11379] Remove "lightweight" from minidom description

2011-03-03 Thread Martin v . Löwis
Martin v. Löwis added the comment: > It's the tree based API most python users are parsing XML with, > though. So I do not agree that it's comparing apples and oranges, not > at all. It's comparing tree based XML libraries, only one of which is > worth being called "light weight", and that's not

[issue10833] Replace %.100s by %s in PyErr_Format(): the arbitrary limit of 500 bytes is outdated

2011-03-03 Thread STINNER Victor
STINNER Victor added the comment: I am working with Python since 5 years (and on Python since 3 years): I never seen any garbage string in error messages. My concern is to not truncate strings in error messages anymore. I consider that it is more important than using a hack to workaround some

[issue11377] Deprecate (remove?) platform.popen()

2011-03-03 Thread STINNER Victor
STINNER Victor added the comment: > Does subprocess work from inside Windows GUI applications? You mean: Python embedded in another program? I don't know. How can I test that? I never see any warning in subprocess documentation saying that subprocess doesn't work on Windows in some cases. sub

[issue7330] PyUnicode_FromFormat segfault

2011-03-03 Thread Ray.Allen
Ray.Allen added the comment: Here is the updated patch: 1, Work with function parse_format_flags() which is introduced in issue10829, and the patch is simpler and more clear than before. 2, Change parse_format_flags() to set precision value to -1 in the case of '%s' in order to differ with '%

[issue11377] Deprecate (remove?) platform.popen()

2011-03-03 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: STINNER Victor wrote: > > STINNER Victor added the comment: > >> Does subprocess work from inside Windows GUI applications? > > You mean: Python embedded in another program? I don't know. How can I test > that? Try to use platform from within IDLE or P

[issue11379] Remove "lightweight" from minidom description

2011-03-03 Thread Stefan Behnel
Stefan Behnel added the comment: > If that is a real concern, I'd rather reduce the memory footprint of > minidom than put actual performance figures into the documentation > that will likely outdate over time. Personally, I do not think it's worth putting much work into MiniDOM. I'd rather de

[issue10833] Replace %.100s by %s in PyErr_Format(): the arbitrary limit of 500 bytes is outdated

2011-03-03 Thread STINNER Victor
STINNER Victor added the comment: History of PyErr_Format(): - r7580 (13 years ago): creation of PyErr_Format() using a buffer of 500 bytes (fixed size buffer, allocated on the stack) - r17159 (10 years ago): PyErr_Format() allocates a dynamic buffer on the heap - r22722 (9 years ago): PyEr

[issue11377] Deprecate (remove?) platform.popen()

2011-03-03 Thread STINNER Victor
STINNER Victor added the comment: > Try to use platform from within IDLE ... I tried subprocess.call('calc.exec'): it works. I tried p=subprocess.Popen('echo hello', shell=True, stdout=subprocess.PIPE); p.communicate(): it works too (I get the output and there is no MS-DOS popup). > Hmm, but

[issue11377] Deprecate (remove?) platform.popen()

2011-03-03 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: STINNER Victor wrote: > > STINNER Victor added the comment: > >> Try to use platform from within IDLE ... > > I tried subprocess.call('calc.exec'): it works. > > I tried p=subprocess.Popen('echo hello', shell=True, stdout=subprocess.PIPE); > p.communic

[issue7330] PyUnicode_FromFormat: implement width and precision for %s, %S, %R, %V, %U, %A

2011-03-03 Thread STINNER Victor
Changes by STINNER Victor : -- title: PyUnicode_FromFormat segfault -> PyUnicode_FromFormat: implement width and precision for %s, %S, %R, %V, %U, %A ___ Python tracker ___ _

[issue11382] some posix module functions

2011-03-03 Thread Charles-Francois Natali
Changes by Charles-Francois Natali : -- nosy: neologix priority: normal severity: normal status: open title: some posix module functions ___ Python tracker ___ __

[issue11382] some posix module functions unnecessarily release the GIL

2011-03-03 Thread Charles-Francois Natali
New submission from Charles-Francois Natali : Some posix module functions unnecessarily release the GIL. For example, posix_dup, posix_dup2 and posix_pipe all release the GIL, but those are non-blocking syscalls (the don't imply any I/O, only modifying the process file descriptors table). This

[issue11382] some posix module functions unnecessarily release the GIL

2011-03-03 Thread Eric Smith
Changes by Eric Smith : -- components: +Interpreter Core nosy: +eric.smith, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing

[issue11382] some posix module functions unnecessarily release the GIL

2011-03-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: On Windows at least, these functions call malloc() and DuplicateHandle(). -- nosy: +amaury.forgeotdarc ___ Python tracker ___ ___

[issue11383] compilation seg faults on insanely large expressions

2011-03-03 Thread Nick Coghlan
New submission from Nick Coghlan : ~/devel/py3k$ ./python -c "compile('1*'*10+'1', 'broken', 'eval')" Segmentation fault Going by the gdb stack trace we're blowing the stack due to the recursive descent in "compiler_visit_expr". -- messages: 129950 nosy: ncoghlan priority: normal s

[issue11379] Remove "lightweight" from minidom description

2011-03-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Agreed with Stefan's concern. -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing

[issue11383] compilation seg faults on insanely large expressions

2011-03-03 Thread Nick Coghlan
Nick Coghlan added the comment: Updated Lib/test/crashers/compiler_recursion.py to refer back to this issue. (As well as making it actually crash again on my system - apparently an expression nested 59k deep wasn't enough to kill the stack here, so I bumped it to 100k) -- __

[issue11377] Deprecate (remove?) platform.popen()

2011-03-03 Thread STINNER Victor
STINNER Victor added the comment: New patch deprecating platform.popen() and removing _popen. Marc-Andre: Do you agree to deprecate platform.popen() in favour of subprocess? -- Added file: http://bugs.python.org/file20984/platform_popen-2.patch ___

[issue11382] some posix module functions unnecessarily release the GIL

2011-03-03 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: I didn't even know that Windows had such calls. But anyway, if we start releasing the GIL around each malloc call, then it's going to get really complicated: static PyObject * posix_geteuid(PyObject *self, PyObject *noargs) { return PyLong_Fro

[issue11384] Deprecate, remove or document (correctly) os.popen

2011-03-03 Thread STINNER Victor
New submission from STINNER Victor : os.popen() was deprecated in Python 2.6 but it does still exist in Python 3.3. The function is no more documented: there is an entry in os documentation, but the entry is not in the index, and it has a reference to the "file object creation" section which d

[issue11384] Deprecate, remove or document (correctly) os.popen

2011-03-03 Thread Neil Muller
Neil Muller added the comment: See issue6490 , which covers much of the same ground. -- nosy: +Neil Muller ___ Python tracker ___ ___

[issue11384] Deprecate, remove or document (correctly) os.popen

2011-03-03 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> duplicate status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue11382] some posix module functions unnecessarily release the GIL

2011-03-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: What are you trying to achieve? Do you have loops which contain no other syscall than os.dup2()? -- ___ Python tracker ___ _

[issue6490] os.popen documentation in 2.6 is probably wrong

2011-03-03 Thread STINNER Victor
STINNER Victor added the comment: r55334 removed popen2, popen3 and popen4 from the os module from Python 3 (before the 3.0 release), but not os.popen. Python 3.2 has now convenience functions in subprocess to get the output of a program: - check_output() - getstatusoutput() - getoutput() T

[issue6490] os.popen documentation in 2.6 is probably wrong

2011-03-03 Thread STINNER Victor
STINNER Victor added the comment: The following documentation should also be updated to use the new convenience functions: http://docs.python.org/py3k/library/subprocess.html#replacing-os-popen-os-popen2-os-popen3 -- ___ Python tracker

[issue11377] Deprecate (remove?) platform.popen()

2011-03-03 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: STINNER Victor wrote: > > STINNER Victor added the comment: > > New patch deprecating platform.popen() and removing _popen. Patch looks good. > Marc-Andre: Do you agree to deprecate platform.popen() in favour of > subprocess? Yes. We can start the dep

[issue11382] some posix module functions unnecessarily release the GIL

2011-03-03 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: Well, those are contrived examples showing the effect of the convoy effect induced by those unneeded GIL release/acquire: releasing and re-acquiring the GIL comes with a cost (e.g. under Linux, futex are really fast in the uncontended case since hand

[issue11382] some posix module functions unnecessarily release the GIL

2011-03-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Well, those are contrived examples showing the effect of the convoy > effect induced by those unneeded GIL release/acquire: releasing and > re-acquiring the GIL comes with a cost (e.g. under Linux, futex are > really fast in the uncontended case since handled

[issue11377] Deprecate (remove?) platform.popen()

2011-03-03 Thread STINNER Victor
STINNER Victor added the comment: Commited to 3.3 (r88721). -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue8513] subprocess: support bytes program name (POSIX)

2011-03-03 Thread STINNER Victor
STINNER Victor added the comment: Oh, I forget subprocess.call(b'ls'): command as a byte string => fixed in Python 3.3 (r88720). -- ___ Python tracker ___ __

[issue11382] some posix module functions unnecessarily release the GIL

2011-03-03 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: > Do you want to propose a patch? Sure, if removing those calls to Py_BEGIN_ALLOW_THREADS/Py_END_ALLOW_THREADS seems reasonable (I might haved missed something obvious). Just to be clear, I'm not at all criticizing the current GIL implementation, the

[issue11382] some posix module functions unnecessarily release the GIL

2011-03-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Just to be clear, I'm not at all criticizing the current GIL > implementation, there's been a great work done on it. > I'm just saying that releasing and re-acquiring the GIL around fast > syscalls is probaly not a good idea. If these syscalls aren't likely t

[issue10197] subprocess.getoutput fails on win32

2011-03-03 Thread STINNER Victor
STINNER Victor added the comment: subprocess_getoutput.patch: patch subprocess.getstatusoutput() to use directly Popen, instead of os.popen, with stderr=subprocess.STDOUT instead of "2>&1" shell redirection. It strips also all trailing spaces and newlines, not just the last one. And finally,

[issue8972] subprocess.list2cmdline doesn't quote the & character

2011-03-03 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue11351] Mac OS X os.sendfile()

2011-03-03 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: > Giampaolo Rodola' added the comment: > > Please try to provide a patch which fixes (as in "makes the test pass") this > specific issue only. As for other changes such as the code restyling you can > open a separate ticket with another patch. Forza

[issue11265] asyncore does not check for EAGAIN and EPIPE errno

2011-03-03 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Fixed in r88722. I did not catch EAGAIN in connect() as it makes hang some tests. -- resolution: -> fixed status: open -> closed versions: -Python 2.6 ___ Python tracker

[issue11382] some posix module functions unnecessarily release the GIL

2011-03-03 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: 2011/3/3 Antoine Pitrou : > > Antoine Pitrou added the comment: > >> Just to be clear, I'm not at all criticizing the current GIL >> implementation, there's been a great work done on it. >> I'm just saying that releasing and re-acquiring the GIL around

[issue9723] Add shlex.quote

2011-03-03 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue10882] Add os.sendfile()

2011-03-03 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: OSX failure is tracked in issue 11351. Closing this out as fixed. -- resolution: accepted -> fixed status: open -> closed ___ Python tracker ___

[issue7839] Popen should raise ValueError if pass a string when shell=False or a list when shell=True

2011-03-03 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue11351] Mac OS X os.sendfile()

2011-03-03 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: issue11351-5.patch no longer applies cleanly and I don't have an OSX box to test against at the moment. Could you please update your patch? If you tell me it's gonna fix the test I'm going to commit it assuming everything is fine. -- _

[issue11259] asynchat does not check if terminator is negative integer

2011-03-03 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Can you write an actual patch which includes tests? Also, I think the z.patch in attachment is targeted for python 2.x as it does not apply cleanly against the current trunk. -- ___ Python tracker

[issue10197] subprocess.getoutput fails on win32

2011-03-03 Thread STINNER Victor
STINNER Victor added the comment: > I tried to add a shell argument (to be able to disable the shell) and > to accept any Popen keyword, but I don't know how to implement > shell=False if the input is a list of arguments. list2cmdline() is > unsafe on UNIX (see #8972). Example of function to es

[issue11351] Mac OS X os.sendfile()

2011-03-03 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: > Giampaolo Rodola' added the comment: > > issue11351-5.patch no longer applies cleanly and I don't have an OSX box to > test against at the moment. > Could you please update your patch? If you tell me it's gonna fix the test > I'm going to commit it

[issue9922] subprocess.getstatusoutput can fail with utf8 UnicodeDecodeError

2011-03-03 Thread STINNER Victor
STINNER Victor added the comment: I think that it is now too late to change getstatusoutput() output type (str->bytes). I prefer Unicode and I think that most users will have to decode bytes to Unicode anyway. So the right solution is to be able to configure encoding and errors used by TextIO

[issue11365] Integrate Buildroot patches (cross-compilation)

2011-03-03 Thread Roumen Petrov
Roumen Petrov added the comment: All is duplicate on already posted patches . It is not work to review limited functionality posted here. -- nosy: +rpetrov ___ Python tracker _

[issue11351] Mac OS X os.sendfile()

2011-03-03 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue11351] Mac OS X os.sendfile()

2011-03-03 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: It's ok, but for the statistics: 16:59 ~/arena/code.extern.repos/py3k.hg $ hg identify e79364a6bed8 (py3k) tip 16:59 ~/arena/code.extern.repos/py3k.hg $ hg slog -r tip Changeset: 10021:e79364a6bed8 branch: py3k tag: tip user:giam

[issue11351] Mac OS X os.sendfile()

2011-03-03 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: > I'm at e79364a6bed8/[svn r88726]. > issue11351-5.patch applies and the test is ok, at least in respect > to sendfile: Sorry, I'm still not used to the whole svn/mercurial change. I applied your patch in r88729. Let's see how the buildbot goes. --

[issue11365] Integrate Buildroot patches (cross-compilation)

2011-03-03 Thread STINNER Victor
STINNER Victor added the comment: A quick search gives me: - #1006238 - #1597850 - #3754 - #5404 - #3871 Are they the same patches from Buildroot? -- ___ Python tracker ___ ___

[issue11351] Mac OS X os.sendfile()

2011-03-03 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: > Giampaolo Rodola' added the comment: > Let's see how the buildbot goes. Italian Espressi are the best! (Our local classical radio station plays Respighi's "Pini di Roma" almost every day ...) -- ___ Pyth

[issue11351] Mac OS X os.sendfile()

2011-03-03 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: =) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue11381] pretending the "not" operator is a function behaves surprisingly

2011-03-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: I concur with Georg. -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue9100] test_sysconfig fails (test_user_similar)

2011-03-03 Thread Zsolt Cserna
Zsolt Cserna added the comment: No, I think it's not the duplicate of any of the bugs you've specified. Meanwhile I've installed to another location and it's now python 2.7.1, but the problem still present: My configure parameters are: --prefix=//ms/dist/python/PROJ/core/2.7.1-1/common --exec

[issue10833] Replace %.100s by %s in PyErr_Format(): the arbitrary limit of 500 bytes is outdated

2011-03-03 Thread Eric Smith
Eric Smith added the comment: I don't feel strongly one way or the other about it. I was just relaying the reason I heard when I asked the question about why it's done the way it is. I suggest mentioning that you're going to commit this change on python-dev, since this seems like an issue tha

[issue11306] mailbox should test for errno.EROFS

2011-03-03 Thread R. David Murray
R. David Murray added the comment: Committed to py3k in r88730, 3.2 in r88731, and 2.7 in r88732. I tested it by hand; mbox open failed before patch, succeeded (read-only) after patch. I also changed two other cases of EACCES tests without testing them; I don't see how it could hurt to add E

[issue10516] Add list.clear() and list.copy()

2011-03-03 Thread Eli Bendersky
Eli Bendersky added the comment: Committed the bytearray methods in revision 88733. Closing this issue. Will handle wrong exception and MutableSequence ABC method addition in separate issues. -- status: open -> closed ___ Python tracker

[issue11385] TextTestRunner methods are not documented

2011-03-03 Thread anatoly techtonik
New submission from anatoly techtonik : TextTestRunner has a run method, which is not documented. It is also is not clear how to add suite to TextTestRunner to be executed later by unittest.main() -- assignee: docs@python components: Documentation, Tests messages: 129988 nosy: docs@pyth

[issue11386] Fix exception thrown by bytearray.pop() for empty bytearrays

2011-03-03 Thread Eli Bendersky
New submission from Eli Bendersky : bytearray.pop() currently throws OverflowError when popping an empty bytearray, instead of IndexError. See Issue #10516 for reference discussion. -- assignee: rhettinger components: Interpreter Core keywords: easy, needs review messages: 129989 nosy:

[issue11387] Tkinter, callback functions

2011-03-03 Thread Nikolay Fomichev
New submission from Nikolay Fomichev : A simple code: class App(): def __init__(self): self.root = tk.Tk() self.btn = tk.Button(self.root, text='Click me') self.btn.pack() self.btn.bind('', self.click) self.root.mainloop() def

[issue11265] asyncore does not check for EAGAIN and EPIPE errno

2011-03-03 Thread Марк Коренберг
Марк Коренберг added the comment: > I did not catch EAGAIN in connect() as it makes hang some tests. maybe incorrect tests? which test(s) failed ? mmarkk@fad:/usr/include$ fgrep EWOULDB -r . ./asm-generic/errno.h:#define EWOULDBLOCK EAGAIN /* Operation would block */ So not catching EA

[issue11386] Fix exception thrown by bytearray.pop() for empty bytearrays

2011-03-03 Thread Eli Bendersky
Eli Bendersky added the comment: The attached patch changes the exception thrown to IndexError, as well as aligning the error message to the one thrown by list. -- keywords: +patch Added file: http://bugs.python.org/file20986/issue11386.1.patch ___

[issue9795] nntplib.NNTP should support the context protocol

2011-03-03 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Committed in r88734. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ P

[issue11388] Implement MutableSequence.clear()

2011-03-03 Thread Eli Bendersky
New submission from Eli Bendersky : Now that both list and bytearray support the clear() method (see issue #10516), MutableSequence.clear() has to be implemented. This is pending on commit for issue #11386, which fixes the exception thrown by bytearray.pop() when the bytearray is empty. -

[issue11259] asynchat does not check if terminator is negative integer

2011-03-03 Thread Марк Коренберг
Changes by Марк Коренберг : Added file: http://bugs.python.org/file20987/z31.patch ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue11259] asynchat does not check if terminator is negative integer

2011-03-03 Thread Марк Коренберг
Марк Коренберг added the comment: > actual patch which includes tests I do not understand you. Probably I can not write that patch. Do not know how to. Sorry :( -- ___ Python tracker _

[issue11386] Fix exception thrown by bytearray.pop() for empty bytearrays

2011-03-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: The patch looks fine. Please apply and backport. Also, please search all other pop() methods in the standard library to see if this bug occurred anywhere else. Popping from an empty container should be a LookupError, either IndexError for sequences or Ke

[issue11388] Implement MutableSequence.clear()

2011-03-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: s/has to be/could be/ But yes, this would be a worthwhile addition to MutableSequence :-) -- nosy: +stutzbach ___ Python tracker ___ __

[issue11388] Implement MutableSequence.clear()

2011-03-03 Thread Georg Brandl
Georg Brandl added the comment: +1. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue11259] asynchat does not check if terminator is negative integer

2011-03-03 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: By "writing a test" I mean adding a unittest-based test case in Lib/test/test_asynchat.py which fails before fixing Lib/asynchat.py and succeeds afterwards. Now, I'm not even sure I properly understood your bug exactly. I've never used negative terminators

[issue11388] Implement MutableSequence.clear()

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

[issue11382] some posix module functions unnecessarily release the GIL

2011-03-03 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: Attached is a patch removing useless calls to Py_BEGIN_ALLOW_THREADS/Py_END_ALLOW_THREADS for several posix functions. It's straigthforward, but since I only have Linux boxes, I couldn't test it under Windows. -- keywords: +patch Added file: ht

[issue11389] unittest: no way to control verbosity of doctests from cmd

2011-03-03 Thread anatoly techtonik
New submission from anatoly techtonik : I can't find a way to execute DocTests contained in a separate README.txt file using unittest.main() function. That doesn't allow to control verbosity for debugging. I am doing it this way in the tests.py import doctest import unittest if __name__ == '_

[issue11390] doctest: add cmdline parameters

2011-03-03 Thread anatoly techtonik
New submission from anatoly techtonik : doctest module need to parse -h/--help parameters, and accept flags like ELLIPSIS from command line. Otherwise it very hard to debug tests like contained in the attached README. It is also worth to make it parameter compatible with unittest.main() Usage

[issue11351] Mac OS X os.sendfile()

2011-03-03 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: Buildbot ok, i hope it's ok for you all that i close this heavy-load issue. More fun further on up the road ... from a non-MQ user. -- ___ Python tracker _

[issue11351] Mac OS X os.sendfile()

2011-03-03 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue11351] Mac OS X os.sendfile()

2011-03-03 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- resolution: -> fixed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue11351] Mac OS X os.sendfile()

2011-03-03 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Thanks. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue11351] Mac OS X os.sendfile()

2011-03-03 Thread Ned Deily
Ned Deily added the comment: Looks good to me and the test does now run successfully. Note that sendfile() was introduced with OS X 10.5 so, like a number of other similar calls, os.sendfile() will not be present on 32-bit-only OS X installer builds which are built with a minimum deployment t

[issue9922] subprocess.getstatusoutput can fail with utf8 UnicodeDecodeError

2011-03-03 Thread Ned Deily
Ned Deily added the comment: I don't have a strong feeling about it but it seems to me that getstatusoutput is broken now so something should needs to be changed. If I understand your suggestion, adding a universal_newlines option to getstatusoutput similar to Popen, with a True (default) to

[issue10592] pprint module doesn't work well with OrderedDicts

2011-03-03 Thread Craig McQueen
Changes by Craig McQueen : -- nosy: +cmcqueen1975 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue1661754] ftplib passive ftp problem on multihomed clients

2011-03-03 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Patch in attachment updates the previous one which no longer applies cleanly in py 3.3. The control connection address is used for *both* passive (PASV) and active (PORT) connections, which is the same approach I used in pyftpdlib. Removed test_source_addr

[issue1661754] ftplib passive ftp problem on multihomed clients

2011-03-03 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- assignee: -> giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-03-03 Thread Dave Malcolm
Changes by Dave Malcolm : -- nosy: +dmalcolm ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue11391] mmap write segfaults if PROT_WRITE bit is not set in prot

2011-03-03 Thread Charles-Francois Natali
New submission from Charles-Francois Natali : $ cat /tmp/test_mmap.py import mmap m = mmap.mmap(-1, 1024, prot=mmap.PROT_READ|mmap.PROT_EXEC) m[0] = 0 $ ./python /tmp/test_mmap.py Segmentation fault When trying to perform a write, is_writable is called to check that we can indeed write to th

[issue1661754] ftplib passive ftp problem on multihomed clients

2011-03-03 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: > we do not want that the same (host, port) is used for > both control and data connections. I meant *port*, not (host, port). -- ___ Python tracker

[issue11391] mmap write segfaults if PROT_WRITE bit is not set in prot

2011-03-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Patch looks mostly good. Why do you use ~PROT_WRITE instead of PROT_READ|PROT_EXEC as in your example? (I'm unsure whether a POSIX implementation could refuse such a value) -- nosy: +pitrou stage: -> patch review type: -> crash versions: +Python 2.7,

[issue9173] logger statement not guarded in shutil._make_tarball

2011-03-03 Thread v_peter
v_peter added the comment: I think it would be nice to get this test in. -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue11392] Turtle - better explain 'chaos' demo

2011-03-03 Thread Sandro Tosi
New submission from Sandro Tosi : Following up http://mail.python.org/pipermail/docs/2011-January/002786.html I prepared this patch to - correct Verhulst name - explain that the results can be against common sense Also, what's exactly related to "world coordinates" in this example? --

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-03 Thread STINNER Victor
New submission from STINNER Victor : << Fault handler for SIGSEGV, SIGFPE, SIGBUS and SIGILL signals: display the Python backtrace and restore the previous handler. Allocate an alternate stack for this handler, if sigaltstack() is available, to be able to allocate memory on the stack, even on sta

[issue11393] Integrate faulthandler module into Python 3.3

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

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-03 Thread STINNER Victor
STINNER Victor added the comment: I tested faulthandler on Linux, FreeBSD and Windows XP: it works well. I suppose that it works on any operating systems. You can also try it on know crashers: Lib/test/crashers/ (you have to modify the files to add: import faulthandler; faulthandler.enable())

[issue11266] asyncore does not handle EINTR in recv, send, connect, accept,

2011-03-03 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Again, it's not clear to me what you are complaining about. Please try to be more clear and/or provide a patch. -- nosy: +giampaolo.rodola ___ Python tracker __

[issue11266] asyncore does not handle EINTR in recv, send, connect, accept,

2011-03-03 Thread Florian Mayer
Changes by Florian Mayer : -- nosy: +segfaulthunter ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue11373] Fix 2 new typos in the docs

2011-03-03 Thread STINNER Victor
Changes by STINNER Victor : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue11342] ResourceWarning: unclosed file <_io.TextIOWrapper

2011-03-03 Thread LW
LW added the comment: so i downloaded the python-3.2 source again, applied the .diff file. still getting _io.TextIOWrapper open file error. then ran the major 5 individual make test_ files errors. hope u can find from these: ===

[issue11373] Fix 2 new typos in the docs

2011-03-03 Thread Bob Wintemberg
Bob Wintemberg added the comment: The following is a patch to fix this documentation issue in release27-maint. -- keywords: +patch nosy: +rwinte Added file: http://bugs.python.org/file20993/patch-27.diff ___ Python tracker

  1   2   >