[issue11395] print(s) fails on Windows with long strings

2011-03-03 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc : -- nosy: +pitrou priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailing list U

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

2011-03-03 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: > Patch looks mostly good. Why do you use ~PROT_WRITE instead of > PROT_READ|PROT_EXEC as in your example? Because I'm not sure that PROT_EXEC is supported by all platforms. See http://pubs.opengroup.org/onlinepubs/007908799/xsh/mmap.html : "The imple

[issue11368] Document why xml.etree.ElementTree.Element has no reference to parent

2011-03-03 Thread Georg Brandl
Changes by Georg Brandl : -- title: xml.etree.ElementTree.Element should have a reference to parent -> Document why xml.etree.ElementTree.Element has no reference to parent ___ Python tracker _

[issue11368] xml.etree.ElementTree.Element should have a reference to parent

2011-03-03 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: -> docs@python components: +Documentation -XML nosy: +docs@python ___ Python tracker ___ ___ P

[issue11388] Implement MutableSequence.clear()

2011-03-03 Thread Georg Brandl
Georg Brandl added the comment: Creating a minimal concrete subclass and testing with that would be the obvious thing. -- ___ Python tracker ___ ___

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

2011-03-03 Thread Eli Bendersky
Eli Bendersky added the comment: Committed to release27-maint, revision 88741 -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue11395] print(s) fails on Windows with long strings

2011-03-03 Thread Case Van Horsen
New submission from Case Van Horsen : Python 3.2 fails when printing long strings. C:\Python32>python Python 3.2 (r32:88445, Feb 20 2011, 21:30:00) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> print("a"*66000) Traceback (most re

[issue11394] No Tools/demo on Windows

2011-03-03 Thread anatoly techtonik
anatoly techtonik added the comment: See also #10502. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

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

2011-03-03 Thread Eli Bendersky
Eli Bendersky added the comment: Indeed it does - good catch :-) I'll backport to 2.7 soon -- ___ Python tracker ___ ___ Python-bugs-

[issue10502] Add unittestguirunner to Tools/

2011-03-03 Thread anatoly techtonik
anatoly techtonik added the comment: Not present on Windows. See also issue #11394 -- nosy: +techtonik ___ Python tracker ___ ___ Pyt

[issue11394] No Tools/demo on Windows

2011-03-03 Thread anatoly techtonik
New submission from anatoly techtonik : Changelog for Python 3.2 contains this paragraph: "- Issue #7962: The Demo directory is gone. Most of the old and unmaintained demos have been removed, others integrated in documentation or a new Tools/demo subdirectory." However, there is no "demo" ins

[issue11388] Implement MutableSequence.clear()

2011-03-03 Thread Eli Bendersky
Eli Bendersky added the comment: Committed in revision 88740 The non-abstract methods of MutableSequence and other classes currently seem to have no unit-tests. Any ideas about the best testing strategy for them? -- ___ Python tracker

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

2011-03-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: Does Python 2.7 have an issue? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

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

2011-03-03 Thread Eli Bendersky
Eli Bendersky added the comment: Can't find other instances of this bug, so I'm closing the issue. -- status: open -> closed ___ Python tracker ___ _

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

2011-03-03 Thread Eli Bendersky
Eli Bendersky added the comment: Committed into release32-maint, revision 88739 -- ___ Python tracker ___ ___ Python-bugs-list mailin

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

2011-03-03 Thread Eli Bendersky
Eli Bendersky added the comment: Committed into py3k, revision 88735 -- assignee: eli.bendersky -> rhettinger resolution: accepted -> versions: -Python 3.2 ___ Python tracker

[issue11357] Add support for PEP 381 -- Mirror Authenticity

2011-03-03 Thread Kelsey
Kelsey added the comment: Based on the feedback I have updated my patch, please review. An updated patch attached. Link to my distutils2 mq below: https://bitbucket.org/khightower/distutils2-patch-queue/qseries?apply=t&qs_apply=mirror-authenticity -- Added file: http://bugs.python.org

[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 py3k. -- Added file: http://bugs.python.org/file20994/patch-3k.diff ___ Python tracker

[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

[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 STINNER Victor
Changes by STINNER Victor : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[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

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

[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())

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

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

[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

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

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

[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

[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

[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

[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

[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

[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

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

[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

[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__ == '_

[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

[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

[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 Georg Brandl
Georg Brandl added the comment: +1. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

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

[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

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

[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

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

[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

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

[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

[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

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

[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

[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

[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

[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

[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

[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

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

[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

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

[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 Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

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

[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

[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

[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

[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

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

[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

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

[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

[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

[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

[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

[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

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

[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

[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

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

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

[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

[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

[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

[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

[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

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

[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

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

[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

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

[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) -- __

[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

  1   2   >