[issue10107] Quitting IDLE on Mac doesn't save unsaved code

2010-10-26 Thread Ned Deily
Ned Deily n...@acm.org added the comment: The attached patches implement an exit callback for IDLE on OS X that ensures IDLE will not terminate from an application Quit command without giving the opportunity to save files. -- assignee: ned.deily - ronaldoussoren components: +Macintosh

[issue10107] Quitting IDLE on Mac doesn't save unsaved code

2010-10-26 Thread Ned Deily
Changes by Ned Deily n...@acm.org: Added file: http://bugs.python.org/file19367/issue10107-27.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10107 ___

[issue10107] Quitting IDLE on Mac doesn't save unsaved code

2010-10-26 Thread Ned Deily
Ned Deily n...@acm.org added the comment: BTW, the patched IDLEs were tested on 2.7 and py3k (3.2a3+) on 10.4, 10.5, and 10.6 with the Apple-supplied Tk 8.4 (all), the Apple-supplied Tk 8.5 (available only in 10.6), ActiveState Tk 8.4 (all), and ActiveState 8.5 (all). And the patches have no

[issue10176] telnetlib.Telnet.read_very_eager() performance

2010-10-26 Thread ptz
ptz ppt...@gmail.com added the comment: As David suggested, it indeed seems to be a case of timing. When telnetlib.Telnet(...) returns, the server still doesn't have the data cooked, and read_very_eager() fetches nothing. So nothing here fails as such, it's just that my 0 experience in

[issue10194] Add gc.remap() function to the gc module.

2010-10-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Agreed with Benjamin. There is already a visible issue with the patch: it breaks compatibility because the Py_VISIT() argument must now be an lvalue. -- ___ Python tracker rep...@bugs.python.org

[issue10195] Memory allocation fault-injection?

2010-10-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Unless we want to test manually each memory allocation in the interpreter, the only reasonable way seems to be some kind of fuzzing (perhaps using a reproducible random seed). -- nosy: +haypo ___

[issue5178] Add context manager for temporary directory

2010-10-26 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Merging the interfaces for mkdtemp and TemporaryDirectory isn't going to happen. mkstemp/mkdtemp are for when the user wants to control the lifecycle of the filesystem entries themselves. (Note that context management on a regular file-like

[issue6269] threading documentation makes no mention of the GIL

2010-10-26 Thread Ray.Allen
Ray.Allen ysj@gmail.com added the comment: Agree with Jesse, the description in the patch is not quite correct. I think detailed description of the GIL has been given in C API documentation: http://docs.python.org/c-api/init.html#thread-state-and-the-global-interpreter-lock. How about

[issue2775] Implement PEP 3108

2010-10-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Shouldn't this be closed? Most of this has been done and we can't do the rest anyway, without breaking backwards compatibility. -- nosy: +pitrou status: open - pending ___ Python tracker

[issue3362] locale.getpreferredencoding() gives bus error on Mac OS X 10.4.11 PPC

2010-10-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Is it still reproduceable with 2.7, 3.1 or 3.2? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3362 ___

[issue10195] Memory allocation fault-injection?

2010-10-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Don't you know http://www.nongnu.org/failmalloc/? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10195 ___

[issue10189] SyntaxError: no binding for nonlocal doesn't contain a useful traceback

2010-10-26 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Yes, but in that particular case the exact line referenced is involved in the error, since it that error is that the symbol is both nonlocal and an argument, and the error points to the head of the block which is the 'def' statement.

[issue10189] SyntaxError: no binding for nonlocal doesn't contain a useful traceback

2010-10-26 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- Removed message: http://bugs.python.org/msg119601 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10189 ___

[issue10195] Memory allocation fault-injection?

2010-10-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Don't you know http://www.nongnu.org/failmalloc/? This doesn't answer the question of what and how to test. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10195

[issue10189] SyntaxError: no binding for nonlocal doesn't contain a useful traceback

2010-10-26 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Yes, but in that particular case the exact line referenced is involved in the error, since it that error is that the symbol is both nonlocal and an argument, and the error points to the head of the block which is the 'def' statement.

[issue10189] SyntaxError: no binding for nonlocal doesn't contain a useful traceback

2010-10-26 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Ah, I hadn't noticed Benjamin assigned this to himself when I submitted that patch. Well, maybe it will be marginally useful anyway :) -- ___ Python tracker rep...@bugs.python.org

[issue10197] subprocess.getoutput fails on win32

2010-10-26 Thread jldm
New submission from jldm j_l_domen...@yahoo.com: Hi, first of all sorry for my English. On windows XP SP3, the following code: import subprocess subprocess.getoutput(dir) returns '{ is not recognized as an internal or external command,\noperable program or batch file.' I made a

[issue7761] telnetlib Telnet.interact fails on Windows but not Linux

2010-10-26 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Committed to py3k in r85846, 3.1 in r85847. -- resolution: - fixed stage: unit test needed - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue10197] subprocess.getoutput fails on win32

2010-10-26 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Oddly, the test suite skips getoutput and getstatusoutput on windows with the comment that the source says it is relevant only for posix, but the documentation does not have 'availability: unix' tags. (It is also odd that getoutput

[issue10197] subprocess.getoutput fails on win32

2010-10-26 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- components: +Windows nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10197 ___ ___

[issue10194] Add gc.remap() function to the gc module.

2010-10-26 Thread Peter Ingebretson
Peter Ingebretson pinge...@yahoo.com added the comment: Thanks, I've started a thread on python-dev to discuss the patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10194 ___

[issue10198] wave module writes corrupt wav file for zero-length writeframes

2010-10-26 Thread David Barnett
New submission from David Barnett davidbarne...@gmail.com: If the first call to writeframes happens to take an empty string as the data to write, then the next call to writeframes writes a 2nd header into the file, and forever after fails to patch the data length correctly. --

[issue10198] wave module writes corrupt wav file for zero-length writeframes

2010-10-26 Thread David Barnett
David Barnett davidbarne...@gmail.com added the comment: This patch against the python 2.6 version fixes the problem for me. -- keywords: +patch Added file: http://bugs.python.org/file19369/fix_double_header.patch ___ Python tracker

[issue10196] distutils.get_python_lib() returns /usr/local/python3/dist-packages on Ubuntu 10.10

2010-10-26 Thread Bruce Sherwood
Bruce Sherwood bruce.sherw...@gmail.com added the comment: Correction: distutils.get_python_lib() returns /usr/lib/python3/dist-packages (which does exist), while distutils.get_python_inc() returns /usr/include/python3.1. I don't understand the shadowy existence of some python3 files that are

[issue10199] Move Demo/turtle under Lib/

2010-10-26 Thread Alexander Belopolsky
New submission from Alexander Belopolsky belopol...@users.sourceforge.net: On Tue, Oct 26, 2010 at 11:18 AM, Guido van Rossum gu...@python.org wrote: On Tue, Oct 26, 2010 at 8:13 AM, Alexander Belopolsky alexander.belopol...@gmail.com wrote: The one demo that I want to find a better place for

[issue10199] Move Demo/turtle under Lib/

2010-10-26 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: IMO converting turtle.py into a package, unless that's already planned anyway, is not a good project to undertake right now. (OTOH the demo itself already is a package, less an __init__.py file.) Note that the turtle module already runs

[issue10200] Documentation: link use?

2010-10-26 Thread Boštjan Mejak
New submission from Boštjan Mejak bostjan.me...@gmail.com: There's a bug in the docs at http://docs.python.org/library/locale.html#access-to-message-catalogs in a statement before the last. A known exception to this rule are applications that link use additional C libraries which internally

[issue10201] Fix building of socket module under Solaris

2010-10-26 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: Sun/Oracle uses the following patch to fix building of the socket module, since on Solaris netpacket/packet.h is incompatible with its Linux counterpart. Otherwise, it fails with the following messages:

[issue10199] Move Demo/turtle under Lib/

2010-10-26 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Tue, Oct 26, 2010 at 12:00 PM, Guido van Rossum rep...@bugs.python.org wrote: .. IMO converting turtle.py into a package, unless that's already planned anyway, is not a good project to undertake right now. What are

[issue10199] Move Demo/turtle under Lib/

2010-10-26 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: I would like Gregor Lingl's approval of turning turtle.py into a package. It might make some things harder for novices, e.g. trackebacks and just browsing the source code. Also many people don't expect to find any code in a file named

[issue10199] Move Demo/turtle under Lib/

2010-10-26 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10199 ___ ___ Python-bugs-list

[issue10193] Simplify instrospection used by turtle module

2010-10-26 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- assignee: - belopolsky resolution: - accepted stage: - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10193

[issue10199] Move Demo/turtle under Lib/

2010-10-26 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- nosy: +glingl, gregorlingl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10199 ___

[issue10201] Fix building of socket module under Solaris

2010-10-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Here is a working patch for py3k. Tested under OpenSolaris with both gcc and Sun C. -- keywords: +patch nosy: +laca Added file: http://bugs.python.org/file19371/buildsocket.patch ___ Python tracker

[issue10199] Move Demo/turtle under Lib/

2010-10-26 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Tue, Oct 26, 2010 at 12:31 PM, Guido van Rossum rep...@bugs.python.org wrote: .. I would like Gregor Lingl's approval of turning turtle.py into a package. Me too. :-) I added him to the nosy list.  It might make

[issue10199] Move Demo/turtle under Lib/

2010-10-26 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I thought this email-to-roundup bug was fixed some time ago. The mangled sample session was: turtle.forward('5 miles') Traceback (most recent call last): File stdin, line 1, in module File string, line 1, in forward

[issue4111] Add Systemtap/DTrace probes

2010-10-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: For the record, replacing /dev/null with conftest.out in the configure test solves the detection problem (and allows Python to build cleanly). However, there is then a problem in test_systemtap (even when replacing stap with dtrace) since the

[issue4111] Add Systemtap/DTrace probes

2010-10-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: (my last message was about building on OpenSolaris) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4111 ___

[issue10199] Move Demo/turtle under Lib/

2010-10-26 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Just an FYI: the python.org installers for Mac OS X install the demos including the turtle demo (which is probably the most useful of the bunch these days) in /Applications/Python m.n/Extras/Demo. Depending on the default application association for

[issue2775] Implement PEP 3108

2010-10-26 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: profile and cProfile could still conceivably be merged, even if it is under a new name if someone found the time to do the compatibility work. -- status: pending - open ___ Python tracker

[issue10195] Memory allocation fault-injection?

2010-10-26 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: Attached is a new approach to doing this, based on Out-Of-Memory Testing within http://sqlite.org/testing.html This reads environment variables, and injects a fault at the given value of serialno, and (optionally) ongoing failures

[issue10200] Documentation: link use?

2010-10-26 Thread Boštjan Mejak
Changes by Boštjan Mejak bostjan.me...@gmail.com: Removed file: http://bugs.python.org/file19370/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10200 ___

[issue10200] Documentation: link use?

2010-10-26 Thread Boštjan Mejak
Changes by Boštjan Mejak bostjan.me...@gmail.com: -- assignee: - d...@python components: +Documentation nosy: +d...@python versions: +3rd party, Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker

[issue10200] Documentation: link use?

2010-10-26 Thread Boštjan Mejak
Boštjan Mejak bostjan.me...@gmail.com added the comment: ...Also, please fix a typo here: http://docs.python.org/library/string.html#string.Formatter.parse This is used by vformat() to break the string in to either literal text, or replacement fields. Please fix in to to into. --

[issue3362] locale.getpreferredencoding() gives bus error on Mac OS X 10.4.11 PPC

2010-10-26 Thread Ned Deily
Ned Deily n...@acm.org added the comment: This was fixed by the changes for Issue6202: 2.7 (r73270) and 3.1 (r73268). They removed the use of the obsolete MacOS encoding APIs and now use standard POSIX detection. -- nosy: +ned.deily resolution: - duplicate status: open - closed

[issue10199] Move Demo/turtle under Lib/

2010-10-26 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Various comments: I usually expect things in stdlib to be usefully importable. Idlelib is clearly an exception. Also many people don't expect to find any code in a file named __init__.py (and most of the time I agree with this). Well,

[issue7061] Improve 24.5. turtle doc

2010-10-26 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Attached patch, issue7061.diff, drops for Tk from turtle module title and move its doc section under frameworks. I also fixed a couple of markup issues that affected TOC rendering. -- keywords: +patch stage: -

[issue10200] Documentation: link use?

2010-10-26 Thread Boštjan Mejak
Boštjan Mejak bostjan.me...@gmail.com added the comment: There's also a possible typo here: http://docs.python.org/library/string.html#format-specification-mini-language format_spec ::= [[fill]align][sign][#][0][width][,][.precision][type] Don't you mean

[issue10200] Documentation: link use?

2010-10-26 Thread Boštjan Mejak
Boštjan Mejak bostjan.me...@gmail.com added the comment: Please fix all of those things. Thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10200 ___

[issue7061] Improve 24.5. turtle doc

2010-10-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Looks good. Remember to adjust the number of signs making the reST title markup. Nice that you’re fixing the ToC; I noticed a handful of issues some days ago and thought about making a patch in a week or two. I’d open another report for them

Re: [issue10199] Move Demo/turtle under Lib/

2010-10-26 Thread Raymond Hettinger
On Oct 26, 2010, at 10:05 AM, Alexander Belopolsky wrote: Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Tue, Oct 26, 2010 at 12:31 PM, Guido van Rossum Also many people don't expect to find any code in a file named __init__.py (and most of the time I agree

[issue10200] Documentation: link use?

2010-10-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Hi Boštjan, thanks for the reports and suggestions. A tip about versions. This field is used to mark the versions in which the bug will be fixed, not all versions where the bug is found. 2.5 and 2.6 only get security fixes; 2.7 and 3.1, the

[issue10200] Documentation: link use?

2010-10-26 Thread Boštjan Mejak
Boštjan Mejak bostjan.me...@gmail.com added the comment: I am terribly sorry for the red alarm. I didn't mean to. But since the typos are all listed here, I don't want to copypaste the reports to d...@python.org. Just please fix them. Thanks. --

[issue10199] Move Demo/turtle under Lib/

2010-10-26 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Yeah, I wish unittest hadn't been split up, and I really dislike the organization of the email package, though I think I understand how it came about historically. So I vote for flat :) -- nosy: +r.david.murray

[issue10195] Memory allocation fault-injection?

2010-10-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Doing so would imply running each test many tens of thousands of times, so perhaps we could run -c pass to establish at what serialno the interpreter has fully started up, then use that as a starting point when testing other scripts/modules.

[issue10199] Move Demo/turtle under Lib/

2010-10-26 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: I think it a mistake that tkinter.__init__ is huge, about as big as the other 13 modules added together. It makes it really hard to dive into the code That is certainly *not* a best practice. -- nosy: +rhettinger

[issue10202] ftplib doesn't check close status after sending file

2010-10-26 Thread John Nagle
New submission from John Nagle na...@users.sourceforge.net: ftplib doesn't check the status on socket close after writing. This can lead to silently truncated files when sending files with ftplib. A report of truncated files on comp.lang.python led me to check the source code. The ftplib

[issue10203] sqlite3.Row doesn't support sequence protocol

2010-10-26 Thread Paul Sokolovsky
New submission from Paul Sokolovsky pfal...@users.sourceforge.net: sqlite.Row class doesn't implement sequence protocol, which is rather unfortunate, because it is described and expected to work like a tuple, with extra mapping-like functionality. Specific issue I hit: Adding rows to PyGTK

[issue10203] sqlite3.Row doesn't support sequence protocol

2010-10-26 Thread Paul Sokolovsky
Changes by Paul Sokolovsky pfal...@users.sourceforge.net: -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10203 ___ ___

[issue10204] exec string fails with trailing whitespace

2010-10-26 Thread Eric Promislow
New submission from Eric Promislow er...@activestate.com: The following code throws an exception in Python 3.1 (and 3.2 alpha), but runs with 2.x: exec('if True:\nprint(Hello)\n\n') Traceback (most recent call last): File stdin, line 1, in module File string, line 4

[issue2775] Implement PEP 3108

2010-10-26 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I will have a go at the profiler situation. I imagine the following: deprecate the cProfile module, and provide both profiler classes from the profile module -- e.g. as PythonProfile and CProfile, and provide Profile = PythonProfile. (From

[issue10200] Documentation: link use?

2010-10-26 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- priority: normal - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10200 ___ ___ Python-bugs-list

[issue7061] Improve 24.5. turtle doc

2010-10-26 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: LGTM, if you verified that the label debugger is not in use at the moment. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7061 ___

[issue10205] Can't have two tags with the same QName

2010-10-26 Thread Étienne BERSAC
New submission from Étienne BERSAC bersac...@gmail.com: Hi, Here is the code to reproduce and the unexcpected behaviour : 21:37:41 bers...@st-francois-de-sales:~/Bureau/$ cat bug.py from xml.etree.ElementTree import QName, ElementTree, Element, SubElement import sys head =

[issue10204] exec string fails with trailing whitespace

2010-10-26 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I can reproduce this on 3.1 but not py3k trunk. -- nosy: +benjamin.peterson, r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10204

[issue10200] Documentation: link use?

2010-10-26 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed in r85849, r85850, and the third one isn't a typo. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10200

[issue10206] python program starting with unmatched quote spews spaces to stdout

2010-10-26 Thread R. David Murray
New submission from R. David Murray rdmur...@bitdance.com: To reproduce: python -c ' (Hint: don't do this on a slow terminal) -- messages: 119646 nosy: r.david.murray priority: critical severity: normal stage: needs patch status: open title: python program starting with unmatched

[issue10199] Move Demo/turtle under Lib/

2010-10-26 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10199 ___ ___ Python-bugs-list

[issue10204] exec string fails with trailing whitespace

2010-10-26 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: That's because it's fixed. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10204 ___

[issue10200] Documentation: link use?

2010-10-26 Thread Boštjan Mejak
Boštjan Mejak bostjan.me...@gmail.com added the comment: I forgot to mention to remove the comma in the text This is used by vformat()http://docs.python.org/library/string.html#string.Formatter.vformat to break the string into either literal text, or replacement fields. found at

[issue10202] ftplib doesn't check close status after sending file

2010-10-26 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +giampaolo.rodola stage: - unit test needed versions: -Python 2.5, Python 2.6, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10202

[issue10200] Documentation: link use?

2010-10-26 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I don't think that comma is an error; it's more a stylistic issue. You could write it with and without, and both are correct. (Remember that TOOWTDI does absolutely not apply to natural languages.) --

[issue10204] exec string fails with trailing whitespace

2010-10-26 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: The fix is not something that can be backported to 3.1? (This is a regression relative to 2.x). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10204

[issue10195] Memory allocation fault-injection?

2010-10-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: ... every call to PyRun_InteractiveOneFlags immediately returns (the PyUnicode_FromString(stdin) in within PySys_GetObject() fails to allocate memory); this leads to a tight loop sending the total refcount to stderr: I think

[issue10202] ftplib doesn't check close status after sending file

2010-10-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: It sounds more like an issue in socket.close(), right? -- nosy: +exarkun, loewis, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10202

[issue10204] exec string fails with trailing whitespace

2010-10-26 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: 2010/10/26 R. David Murray rep...@bugs.python.org: R. David Murray rdmur...@bitdance.com added the comment: The fix is not something that can be backported to 3.1?  (This is a regression relative to 2.x). No, it's not. The fix was a

[issue9047] Python 2.7rc2 includes -isysroot twice on each gcc command line

2010-10-26 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Ronald Oussoren wrote: Ronald Oussoren ronaldousso...@mac.com added the comment: Marc-Andre: does the current HEAD of the 2.7 and 3.2 branches work for you? The build still has duplicate flags, but that doesn't seem to cause problems

[issue10207] test_file2k crashes under Windows

2010-10-26 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: This recurrent crash appeared recently under the XP-4 buildbot, between r85816 and r85819. But none of these revisions looks related to potential file issues. Each time the test just finishes with: [...] test_file2k program finished with exit

[issue7978] SocketServer doesn't handle syscall interruption

2010-10-26 Thread Kevin Chen
Changes by Kevin Chen kc...@mit.edu: -- nosy: +kchen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7978 ___ ___ Python-bugs-list mailing list

[issue10201] Fix building of socket module under Solaris

2010-10-26 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: This is not a problem under Solaris 10. I guess it is a problem with OpenSolaris/OpenIndiana/Illumos. Can you confirm?. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10201

[issue10201] Fix building of socket module under Solaris

2010-10-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: This is not a problem under Solaris 10. I guess it is a problem with OpenSolaris/OpenIndiana/Illumos. Can you confirm?. It's with the most recent OpenSolaris development build (build 134). -- ___

[issue10202] ftplib doesn't check close status after sending file

2010-10-26 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I don't quite understand the problem. How exactly do you manage to lose data? The ftp server should send a 226 status code to indicate success over the control connection, and presumably it will do so only after receiving the proper TCP

[issue10194] Add gc.remap() function to the gc module.

2010-10-26 Thread Peter Ingebretson
Peter Ingebretson pinge...@yahoo.com added the comment: Closing due to general lack of support on python-dev. Some portion of this implementation may come back as part of a PEP reference implementation. -- resolution: - rejected status: open - closed

[issue10208] add mazovia.py to encodings/

2010-10-26 Thread Piotr Matuszewski
New submission from Piotr Matuszewski pythl...@farmatex.com.pl: mazovia is an old encoding for Polish language, it's modified cp437 (more info at http://en.wikipedia.org/wiki/Mazovia_encoding and (in Polish, but tables are useful anyway) http://pl.wikipedia.org/wiki/Mazovia_(kod) ) --

[issue10207] test_file2k crashes under Windows

2010-10-26 Thread David Bolen
David Bolen db3l@gmail.com added the comment: Can't really say why it's just hitting now more consistently but the failure is an internal CRT exception during a file close, when it is handed what appears to be an invalid FILE * (the internal structure has bad data). I think it's more

[issue10209] Mac OS X: Decompose filenames on encode, and precompose filenames on decode

2010-10-26 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: PyUnicode_EncodeFSDefault() and os.fsencode() should decompose the filename (NFD) before encoding it to utf-8. PyUnicode_DecodeFSDefault(AndSize)() and os.fsdecode() should precompose the filename (NFC) after decoding it from

[issue8423] tiger buildbot: test_pep277 failures

2010-10-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I opened the issue #10209: Mac OS X: Decompose filenames on encode, and precompose filenames on decode. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8423

[issue10201] Fix building of socket module under Solaris

2010-10-26 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Could this to be considered a bug in OpenSolaris?. If not, I think this fix should be backported to 2.5/2.6/2.7/3.1. Just for the record, I am asking for help to get a buildbot under OpenIndiana:

[issue10209] Mac OS X: Decompose filenames on encode, and precompose filenames on decode

2010-10-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Patch for os.fsencode/fsdecode importing unicodedata in the function (instead of a global import). unicodedata module is not builtin and is dynamically loaded. We should maybe ignore ImportError if the module is not available? With

[issue10210] os.get_exec_path() should not produce any warning

2010-10-26 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: Using -b command line option, os.get_exec_path() always produce a warning. Example: $ ./python -b import os: os.get_exec_path({'PATH': ''}) .../Lib/os.py:395: BytesWarning: Comparison between bytes and string path_listb =

[issue8777] Add threading.Barrier

2010-10-26 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Okay, here is a new submission. I've redesigned it to be more reminiscent of the Java version, by allowing the barrier to have a Broken state and raising a BrokenBarrierError. I've also redesigned the mechanism from a simple

[issue10207] test_file2k crashes under Windows

2010-10-26 Thread David Bolen
David Bolen db3l@gmail.com added the comment: Ok, when it fails, the failure always appears to be one of the FileThreadingTests tests, with the affected close() call occurring within _close_file, called from _close_and_reopen_file, called from _test_close_open_io. It seems tough to

[issue10202] ftplib doesn't check close status after sending file

2010-10-26 Thread John Nagle
John Nagle na...@users.sourceforge.net added the comment: Proper behavior for ftplib when sending is to send all desired data, then call sock.shutdown(socket.SHUT_RDWR). This indicates that no more data will be sent, and blocks until the receiver has acknowledged all their data.

[issue10118] Tkinter does not find font

2010-10-26 Thread mark saaltink
mark saaltink platonic.liq...@gmail.com added the comment: I built the latest 2.7, with tk/tcl 8.5, and see the same problem. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10118 ___

[issue10204] exec string fails with trailing whitespace

2010-10-26 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I thought I tested this on 2.6, but I forgot that my system has now made 2.7 the default python. And now that you mention it, I vaguely remember this feature getting added. Sorry for the noise. --

[issue7061] Improve 24.5. turtle doc

2010-10-26 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Tue, Oct 26, 2010 at 3:32 PM, Georg Brandl rep...@bugs.python.org wrote: .. LGTM, if you verified that the label debugger is not in use at the moment. Good point. I naively hoped that Sphinx would warn me about a

[issue7061] Improve 24.5. turtle doc

2010-10-26 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Committed in revision 85853. Terry, please chime in if I missed anything that you would consider part of this issue. Note that the speed vs. delay may not be just a doc issue. I opened issue 10170 for that. --

[issue10199] Move Demo/turtle under Lib/

2010-10-26 Thread Gregor Lingl
Gregor Lingl gregorli...@users.sourceforge.net added the comment: First of all: I'd not like to see turtle.py converted into a package. I think with the turtle module things should be as simple as possible and I don't see any need to put approx. 100kB of code into an __init__.py and be it only