[issue7061] Improve 24.5. turtle doc

2010-10-26 Thread Georg Brandl
Georg Brandl added the comment: If you do a full build, you'll get a warning; however, currently documents that reference a label will not be recognized as out of date when that label changes or is removed. -- status: pending -> open ___ Python tra

[issue10199] Move Demo/turtle under Lib/

2010-10-26 Thread Gregor Lingl
Gregor Lingl 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 because there are hundreds of th

[issue7061] Improve 24.5. turtle doc

2010-10-26 Thread Alexander Belopolsky
Alexander Belopolsky 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. -- resolution: -> accepted stage:

[issue7061] Improve 24.5. turtle doc

2010-10-26 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, Oct 26, 2010 at 3:32 PM, Georg Brandl 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 reference to an undefined label. Grep found a reference

[issue10204] exec string fails with trailing whitespace

2010-10-26 Thread R. David Murray
R. David Murray 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. -- ___ Python tra

[issue10118] Tkinter does not find font

2010-10-26 Thread mark saaltink
mark saaltink added the comment: I built the latest 2.7, with tk/tcl 8.5, and see the same problem. -- ___ Python tracker ___ ___ Pyt

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

2010-10-26 Thread John Nagle
John Nagle 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. "socketmodule.c" handles this right.

[issue10207] test_file2k crashes under Windows

2010-10-26 Thread David Bolen
David Bolen 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 backtrace the VS traces

[issue8777] Add threading.Barrier

2010-10-26 Thread Kristján Valur Jónsson
Kristján Valur Jónsson 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 perpetually increasing ind

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

2010-10-26 Thread STINNER Victor
New submission from STINNER Victor : 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 = env[b'PATH'] [''] You can see

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

2010-10-26 Thread STINNER Victor
STINNER Victor 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 a warning? For PyUnicode_E

[issue10201] Fix building of socket module under Solaris

2010-10-26 Thread Jesús Cea Avión
Jesús Cea Avión 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: http://openindiana.org/pipermail/openindiana-discuss/2010-Octo

[issue8423] tiger buildbot: test_pep277 failures

2010-10-26 Thread STINNER Victor
STINNER Victor added the comment: I opened the issue #10209: "Mac OS X: Decompose filenames on encode, and precompose filenames on decode". -- ___ Python tracker ___ ___

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

2010-10-26 Thread STINNER Victor
New submission from STINNER Victor : 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 utf-8. Qt library does this on

[issue10207] test_file2k crashes under Windows

2010-10-26 Thread David Bolen
David Bolen 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 chance that it appears

[issue10208] add mazovia.py to encodings/

2010-10-26 Thread Piotr Matuszewski
New submission from Piotr Matuszewski : 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) ) -- components: Library (Lib

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

2010-10-26 Thread Peter Ingebretson
Peter Ingebretson 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 ___ Python tr

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

2010-10-26 Thread Martin v . Löwis
Martin v. Löwis 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 shutdown from its ope

[issue10201] Fix building of socket module under Solaris

2010-10-26 Thread Antoine Pitrou
Antoine Pitrou 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). -- ___ Python tra

[issue10201] Fix building of socket module under Solaris

2010-10-26 Thread Jesús Cea Avión
Jesús Cea Avión 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 __

[issue7978] SocketServer doesn't handle syscall interruption

2010-10-26 Thread Kevin Chen
Changes by Kevin Chen : -- nosy: +kchen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/m

[issue10207] test_file2k crashes under Windows

2010-10-26 Thread Antoine Pitrou
New submission from Antoine Pitrou : 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 code -10737418

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

2010-10-26 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Ronald Oussoren wrote: > > Ronald Oussoren 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 > on my machines. If it also d

[issue10204] exec string fails with trailing whitespace

2010-10-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2010/10/26 R. David Murray : > > R. David Murray 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 bit of "feature", so it was in 2.7 and py3k. --

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

2010-10-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: It sounds more like an issue in socket.close(), right? -- nosy: +exarkun, loewis, pitrou ___ Python tracker ___ ___

[issue10195] Memory allocation fault-injection?

2010-10-26 Thread STINNER Victor
STINNER Victor 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 that it is the issue #807

[issue10204] exec string fails with trailing whitespace

2010-10-26 Thread R. David Murray
R. David Murray 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 ___ __

[issue10200] Documentation: "link use"?

2010-10-26 Thread Georg Brandl
Georg Brandl 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.) -- ___ Python tr

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

2010-10-26 Thread R. David Murray
Changes by R. David Murray : -- nosy: +giampaolo.rodola stage: -> unit test needed versions: -Python 2.5, Python 2.6, Python 3.3 ___ Python tracker ___

[issue10200] Documentation: "link use"?

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

[issue10204] exec string fails with trailing whitespace

2010-10-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: That's because it's fixed. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue10199] Move Demo/turtle under Lib/

2010-10-26 Thread Georg Brandl
Changes by Georg Brandl : -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

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

2010-10-26 Thread R. David Murray
New submission from R. David Murray : 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 quote spews spaces to

[issue10200] Documentation: "link use"?

2010-10-26 Thread Georg Brandl
Georg Brandl 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 _

[issue10204] exec string fails with trailing whitespace

2010-10-26 Thread R. David Murray
R. David Murray added the comment: I can reproduce this on 3.1 but not py3k trunk. -- nosy: +benjamin.peterson, r.david.murray ___ Python tracker ___ ___

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

2010-10-26 Thread Étienne BERSAC
New submission from Étienne BERSAC : 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 = Element(QName('http://www.w3.org/1999/

[issue7061] Improve 24.5. turtle doc

2010-10-26 Thread Georg Brandl
Georg Brandl added the comment: LGTM, if you verified that the label "debugger" is not in use at the moment. -- ___ Python tracker ___ ___

[issue10200] Documentation: "link use"?

2010-10-26 Thread Georg Brandl
Changes by Georg Brandl : -- priority: normal -> low ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue2775] Implement PEP 3108

2010-10-26 Thread Georg Brandl
Georg Brandl 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 cProfile.py, obvious

[issue10204] exec string fails with trailing whitespace

2010-10-26 Thread Eric Promislow
New submission from Eric Promislow : 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 "", line 1, in File "", line 4 SyntaxError: invalid syntax >>> This is

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

2010-10-26 Thread Paul Sokolovsky
Changes by Paul Sokolovsky : -- versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

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

2010-10-26 Thread Paul Sokolovsky
New submission from Paul Sokolovsky : 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 ListStore, model = gtk

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

2010-10-26 Thread John Nagle
New submission from John Nagle : "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" module does sending by

[issue10199] Move Demo/turtle under Lib/

2010-10-26 Thread Raymond Hettinger
Raymond Hettinger 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

[issue10195] Memory allocation fault-injection?

2010-10-26 Thread Antoine Pitrou
Antoine Pitrou 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. Well, thi

[issue10199] Move Demo/turtle under Lib/

2010-10-26 Thread R. David Murray
R. David Murray 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 _

[issue10200] Documentation: "link use"?

2010-10-26 Thread Boštjan Mejak
Boštjan Mejak 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 copy&paste the reports to d...@python.org. Just please fix them. Thanks. -- ___ Python tracker

[issue10200] Documentation: "link use"?

2010-10-26 Thread Éric Araujo
Éric Araujo 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 current stable vers

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 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 with this). > > Well,

[issue7061] Improve 24.5. turtle doc

2010-10-26 Thread Éric Araujo
Éric Araujo 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 and backport the

[issue10200] Documentation: "link use"?

2010-10-26 Thread Boštjan Mejak
Boštjan Mejak added the comment: Please fix all of those things. Thanks. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue10200] Documentation: "link use"?

2010-10-26 Thread Boštjan Mejak
Boštjan Mejak added the comment: There's also a possible typo here: http://docs.python.org/library/string.html#format-specification-mini-language format_spec ::= >>>[<<<[fill>>>]<<>>|<< ___ __

[issue7061] Improve 24.5. turtle doc

2010-10-26 Thread Alexander Belopolsky
Alexander Belopolsky 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: -> commit review Added file: http

[issue10199] Move Demo/turtle under Lib/

2010-10-26 Thread Terry J. Reedy
Terry J. Reedy 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, logging, tkinte

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

2010-10-26 Thread Ned Deily
Ned Deily 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 superseder: ->

[issue10200] Documentation: "link use"?

2010-10-26 Thread Boštjan Mejak
Boštjan Mejak 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". -- ___

[issue10200] Documentation: "link use"?

2010-10-26 Thread Boštjan Mejak
Changes by Boštjan Mejak : -- 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
Changes by Boštjan Mejak : Removed file: http://bugs.python.org/file19370/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue10195] Memory allocation fault-injection?

2010-10-26 Thread Dave Malcolm
Dave Malcolm 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 afterwards. I used this t

[issue2775] Implement PEP 3108

2010-10-26 Thread Brett Cannon
Brett Cannon 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

[issue10199] Move Demo/turtle under Lib/

2010-10-26 Thread Ned Deily
Ned Deily 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 ".py" files (

[issue4111] Add Systemtap/DTrace probes

2010-10-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: (my last message was about building on OpenSolaris) -- ___ Python tracker ___ ___ Python-bugs-list m

[issue4111] Add Systemtap/DTrace probes

2010-10-26 Thread Antoine Pitrou
Antoine Pitrou 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 syntax for s

[issue10199] Move Demo/turtle under Lib/

2010-10-26 Thread Alexander Belopolsky
Alexander Belopolsky 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 "", line 1, in File "", line 1, in forward .. TypeError: can't multiply sequence by non

[issue10199] Move Demo/turtle under Lib/

2010-10-26 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, Oct 26, 2010 at 12:31 PM, Guido van Rossum 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 some things harder for novices, e.g. trackebacks and j

[issue10201] Fix building of socket module under Solaris

2010-10-26 Thread Antoine Pitrou
Antoine Pitrou 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
Changes by Alexander Belopolsky : -- nosy: +glingl, gregorlingl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10193] Simplify instrospection used by turtle module

2010-10-26 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- assignee: -> belopolsky resolution: -> accepted stage: -> commit review ___ Python tracker ___ ___

[issue10199] Move Demo/turtle under Lib/

2010-10-26 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue10199] Move Demo/turtle under Lib/

2010-10-26 Thread Guido van Rossum
Guido van Rossum 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 __init__.py (and mos

[issue10199] Move Demo/turtle under Lib/

2010-10-26 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, Oct 26, 2010 at 12:00 PM, Guido van Rossum 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 your reasons? I don't necessarily disagree, but want

[issue10201] Fix building of socket module under Solaris

2010-10-26 Thread Antoine Pitrou
New submission from Antoine Pitrou : 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: /home/antoine/py3k/gcc/Modules/socketmodule.c: In fu

[issue10200] Documentation: "link use"?

2010-10-26 Thread Boštjan Mejak
New submission from Boštjan Mejak : 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 invoke gettext() or d

[issue10199] Move Demo/turtle under Lib/

2010-10-26 Thread Guido van Rossum
Guido van Rossum 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 some demo when inv

[issue10199] Move Demo/turtle under Lib/

2010-10-26 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : On Tue, Oct 26, 2010 at 11:18 AM, Guido van Rossum wrote: > On Tue, Oct 26, 2010 at 8:13 AM, Alexander Belopolsky > wrote: >> The one demo that I want to find a better place for is Demo/turtle. > > Sure, go for it. It is a special case because the turt

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

2010-10-26 Thread Bruce Sherwood
Bruce Sherwood 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 parallel to python3.1 fi

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

2010-10-26 Thread David Barnett
David Barnett 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

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

2010-10-26 Thread David Barnett
New submission from David Barnett : 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. -- components: Library (Lib) messa

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

2010-10-26 Thread Peter Ingebretson
Peter Ingebretson added the comment: Thanks, I've started a thread on python-dev to discuss the patch. -- ___ Python tracker ___ ___

[issue10197] subprocess.getoutput fails on win32

2010-10-26 Thread Brian Curtin
Changes by Brian Curtin : -- components: +Windows nosy: +brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue10197] subprocess.getoutput fails on win32

2010-10-26 Thread R. David Murray
R. David Murray 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 isn't documented, but tha

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

2010-10-26 Thread R. David Murray
R. David Murray 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 __

[issue10197] subprocess.getoutput fails on win32

2010-10-26 Thread jldm
New submission from jldm : 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 workaround by changing in t

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

2010-10-26 Thread R. David Murray
R. David Murray 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 ___

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

2010-10-26 Thread R. David Murray
R. David Murray 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. Attached is a patch that

[issue10195] Memory allocation fault-injection?

2010-10-26 Thread Antoine Pitrou
Antoine Pitrou 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 ___ __

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

2010-10-26 Thread R. David Murray
Changes by R. David Murray : -- Removed message: http://bugs.python.org/msg119601 ___ Python tracker ___ ___ Python-bugs-list mailing

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

2010-10-26 Thread R. David Murray
R. David Murray 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. Attached is a patch that

[issue10195] Memory allocation fault-injection?

2010-10-26 Thread STINNER Victor
STINNER Victor added the comment: Don't you know http://www.nongnu.org/failmalloc/? -- ___ Python tracker ___ ___ Python-bugs-list ma

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

2010-10-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: Is it still reproduceable with 2.7, 3.1 or 3.2? -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue2775] Implement PEP 3108

2010-10-26 Thread Antoine Pitrou
Antoine Pitrou 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

[issue6269] threading documentation makes no mention of the GIL

2010-10-26 Thread Ray.Allen
Ray.Allen 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 just give this link i

[issue5178] Add context manager for temporary directory

2010-10-26 Thread Nick Coghlan
Nick Coghlan 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 object only closes t

[issue10195] Memory allocation fault-injection?

2010-10-26 Thread Antoine Pitrou
Antoine Pitrou 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 ___ Python tracker

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

2010-10-26 Thread Antoine Pitrou
Antoine Pitrou 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 __

[issue10176] telnetlib.Telnet.read_very_eager() performance

2010-10-26 Thread ptz
ptz 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 network programming sho