[issue4653] Patch to fix typos for Py3K

2008-12-18 Thread Johnny Lee
Johnny Lee added the comment: > It's difficult to really test such errors. When I can't control the called function, I usually step through the code in a debugger and change the result variable in question to the appropriate value to see if the code handles failed function calls correctly.

[issue4694] _call_method() in multiprocessing documentation

2008-12-18 Thread Benjamin Peterson
Benjamin Peterson added the comment: Thanks for the report! Fixed in r67849. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue4699] Typo in documentation of "signal"

2008-12-18 Thread Benjamin Peterson
Benjamin Peterson added the comment: Thanks for the report! Fixed in r67848. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue4017] Tkinter cannot find Tcl/Tk on Mac OS X

2008-12-18 Thread Don Braffitt
Don Braffitt added the comment: >I've uploaded a .dmg for 2.6.1 to >http://www.python.org/ftp/python/2.6.1/. Could you please test it? I installed the 2.6.1 .dmg on Mac OS X 10.5.5, and IDLE once again works fine. - Don ___ Python tracker

[issue4699] Typo in documentation of "signal"

2008-12-18 Thread Kurt Mueller
New submission from Kurt Mueller : in documentation of "signal" http://docs.python.org/library/signal.html - signal.SIG_DFL This is one of two standard signal handling options; it will simply perform the default function for the signal. For example, on most syste

[issue4688] GC optimization: don't track simple tuples and dicts

2008-12-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hello again, > Still, I think this patch does too much code duplication. There should > be only a single function that does the optional untracking; this then > gets called from multiple places. The point was to avoid slowing down the critical path of tuple cr

[issue4688] GC optimization: don't track simple tuples and dicts

2008-12-18 Thread Martin v. Löwis
Martin v. Löwis added the comment: > But what counts is where tuples can be created in massive numbers or > sizes: the eval loop, the tuple type's tp_new, and a couple of other > places. We don't need to optimize every single tuple created by the > interpreter or extension modules (and even the,

[issue4683] urllib2.HTTPDigestAuthHandler fails on third hostname?

2008-12-18 Thread Dan
Dan added the comment: Actually, this does look more like an urllib2 bug. According to RFC 2617, the nonce count should represent the number of requests sent with a particular nonce. But we don't reset the nonce count when we start using a new nonce. That discrepancy in nonce counts causes LJ to

[issue3860] GzipFile and BZ2File should support context manager protocol

2008-12-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks. The outcome of the StringIO discussion isn't clearly negative, although Guido does not see a big benefit in it. If some people are opposed to this, please stand up :) Otherwise I'll commit the patch to trunk. ___ Pyth

[issue4698] Solaris buildbot failure on trunk in test_hostshot

2008-12-18 Thread Antoine Pitrou
New submission from Antoine Pitrou : The Solaris buildbot seems to fail deterministically on trunk with the following message. == FAIL: test_logreader_eof_error (test.test_hotshot.HotShotTestCase) ---

[issue4697] Clarification needed for subprocess convenience functions in Python 3.0 documentation

2008-12-18 Thread Erik Sternerson
New submission from Erik Sternerson : There are two new convenience functions in the subprocess module since Python 3.0, getstatusoutput and getoutput. These are UNIX ONLY functions (as per note "# NB This only works (and is only relevant) for UNIX." in subprocess.py) I believe the documentation

[issue4683] urllib2.HTTPDigestAuthHandler fails on third hostname?

2008-12-18 Thread Dan
Dan added the comment: Reasonable idea, Daniel, but changing self.retried makes no difference. What does solve Chris' problem (which I can reproduce, btw) is preventing the nonce_count from incrementing. i.e. comment out the line : self.nonce_count += 1 in AbstractDigestAuthHandler.get_authori

[issue4696] email module does not fold headers

2008-12-18 Thread Ben Artin
New submission from Ben Artin : RFC 2822 allows for certain headers to be spread across multiple lines (section 2.2.3). In particular, subject, comments, and keywords headers behave this way (section 3.6.5). I think the email module should unfold such headers. See attached patch. --

[issue4695] Bad AF_PIPE address in multiprocessing documentation

2008-12-18 Thread David M. Beazley
New submission from David M. Beazley : In the "Address Formats" part of the "Listeners and Clients" section of the documentation for the multiprocessing module, AF_PIPE addresses are described as having this format: r'ServerName\\pipe\\PipeName' However, it is really this: r'\\ServerName

[issue4692] Framework build fails if OS X on case-sensitive file system

2008-12-18 Thread Mark Dickinson
Mark Dickinson added the comment: Fixed in r67844 (trunk), r67845 (2.6), r67846 (py3k) and r67847 (3.0). Thanks for the report and patch! -- nosy: +marketdickinson resolution: -> fixed status: open -> closed versions: +Python 2.7, Python 3.1 ___ Pyt

[issue4694] _call_method() in multiprocessing documentation

2008-12-18 Thread David M. Beazley
David M. Beazley added the comment: The _get_value() method is also in error. It's called "_getvalue()" in the source code. ___ Python tracker ___ __

[issue4694] _call_method() in multiprocessing documentation

2008-12-18 Thread David M. Beazley
New submission from David M. Beazley : The documentation for "Proxy Objects" in the multiprocessing module describes a method "_call_method" and gives various examples. The only problem is that the method is actually called "_callmethod" (i.e., no underscore between "call" and "method"). --

[issue3860] GzipFile and BZ2File should support context manager protocol

2008-12-18 Thread Benjamin Peterson
Benjamin Peterson added the comment: Here's the StringIO discussion: #1286 -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Pyth

[issue4017] Tkinter cannot find Tcl/Tk on Mac OS X

2008-12-18 Thread Joachim Strombergson
Joachim Strombergson added the comment: I downloaded the newly built 2.6.1 dmg and can confirm that, at least for me: (1) import Tkinter works. (2) Starting IDLE works. It looks like we have a winner, good job Benjamin! ___ Python tracker

[issue3860] GzipFile and BZ2File should support context manager protocol

2008-12-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch for the trunk. I'm waiting for the opinion other developers before deciding to commit or no. -- keywords: +patch nosy: +pitrou stage: -> patch review Added file: http://bugs.python.org/file12398/withgzip.patch _

[issue4017] Tkinter cannot find Tcl/Tk on Mac OS X

2008-12-18 Thread Benjamin Peterson
Benjamin Peterson added the comment: I've uploaded a .dmg for 2.6.1 to http://www.python.org/ftp/python/2.6.1/. Could you please test it? ___ Python tracker ___ __

[issue1068268] subprocess is not EINTR-safe

2008-12-18 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue1068268] subprocess is not EINTR-safe

2008-12-18 Thread Matteo Bertini
Matteo Bertini added the comment: Python 2.5.3 is near but the I think the fix in http://svn.python.org/view?rev=65475&view=rev is not enough, there are a lot of other places where EINTR can cause and error. -- versions: +Python 2.5.3 ___ Python tra

[issue4583] segfault when mutating memoryview to array.array when array is resized

2008-12-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Fixed in r67840. No need to backport to 2.x since the array object there doesn't support the new buffer protocol. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue4685] IDLE will not open (2.6.1 on WinXP pro)

2008-12-18 Thread Ilan
Ilan added the comment: It didn't work. "cd c:\python26" successfully prompted "C:\Python26>", But then entering "python Lib\idlelib\idle.py" did not work, the message is too long to enter in this reply but here are some of the lines in the body: "Unhandled server exception! Thread: SockThrea

[issue4693] Idle for Python 3.0 is default even without doing make fullinstall

2008-12-18 Thread Senthil
New submission from Senthil : I am not sure, if this is intentional. But if you look at Python 3k and 3.1 installation. changing mode of /usr/local/bin/pydoc to 755 changing mode of /usr/local/bin/idle to 755 changing mode of /usr/local/bin/2to3 to 755 changing mode of /usr/local/bin/smtpd.py to

[issue4615] de-duping function in itertools

2008-12-18 Thread David W. Lambert
David W. Lambert added the comment: (but of course with imap in version 2.7 and with something else in version 3.x) -- nosy: +LambertDW ___ Python tracker ___ ___

[issue4683] urllib2.HTTPDigestAuthHandler fails on third hostname?

2008-12-18 Thread Daniel Diniz
Daniel Diniz added the comment: Hmm, notice that AbstractDigestAuthHandler handles retries: class AbstractDigestAuthHandler: def __init__(self, passwd=None): ... self.retried = 0 ... def reset_retry_count(self): self.retried = 0 def http_error_auth_

[issue4683] urllib2.HTTPDigestAuthHandler fails on third hostname?

2008-12-18 Thread Chris Boyle
Chris Boyle added the comment: When I say a given instance, I mean an HTTPDigestAuthHandler object. If I take the three lines before my loop (authhandler=, opener=, install_opener) and move them into the loop, the problem goes away, whereas moving only the latter two of those doesn't help. So, c

[issue4217] Add file comparisons to the unittest library

2008-12-18 Thread Senthil
Changes by Senthil : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue4683] urllib2.HTTPDigestAuthHandler fails on third hostname?

2008-12-18 Thread Daniel Diniz
Daniel Diniz added the comment: Chris, Is there a chance that this is some sort of protection on LJ's side? Does a given instance mean the same connection being reused? What happens with longer sleeps? -- nosy: +ajaksu2 ___ Python tracker

[issue4690] asyncore calls handle_write() on closed sockets when use_poll=True

2008-12-18 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola, josiah.carlson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue4621] zipfile returns string but expects binary

2008-12-18 Thread Eddie
Eddie added the comment: Sorry, my bad. I did tried it but with the wrong version (2.5). And it worked perfectly. So sorry again for my mistake. Anyways, I've found the error. The problem is caused by different encodings used when zipping. In open, the method is comparing b't\x82st.xml' agai

[issue4688] GC optimization: don't track simple tuples and dicts

2008-12-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch which combines the alternate approach (untrack simple objects when doing a GC collection) for tuples and dicts. I'm surprised by the results: after a full regression test suite, there are roughly 55000 tracked objects (measured with len(gc.get_ob

[issue2183] optimize list comprehensions

2008-12-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed to py3k in r67839. -- resolution: accepted -> fixed status: open -> closed ___ Python tracker ___

[issue4685] IDLE will not open (2.6.1 on WinXP pro)

2008-12-18 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Can you start it from a command prompt (cmd.exe): > cd c:\python26 > python Lib\idlelib\idle.py The console may display interesting error messages. -- nosy: +amaury.forgeotdarc ___ Python tracker

[issue4688] GC optimization: don't track simple tuples and dicts

2008-12-18 Thread Antoine Pitrou
Changes by Antoine Pitrou : Added file: http://bugs.python.org/file12396/tupleopts-alt.patch ___ Python tracker ___ ___ Python-bugs-list mailin

[issue4688] GC optimization: don't track simple tuples and dicts

2008-12-18 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file12395/tupleopts-alt.patch ___ Python tracker ___ ___ Python-bugs-list mail

[issue4688] GC optimization: don't track simple tuples and dicts

2008-12-18 Thread Antoine Pitrou
Changes by Antoine Pitrou : Added file: http://bugs.python.org/file12395/tupleopts-alt.patch ___ Python tracker ___ ___ Python-bugs-list mailin

[issue4688] GC optimization: don't track simple tuples and dicts

2008-12-18 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file12394/dictopts2.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue4688] GC optimization: don't track simple tuples and dicts

2008-12-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is an alternate patch which does the tuple optimization in the GC. I don't like it a lot, first because it puts some type-specific code in gcmodule, second because it invalidates the dict optimization (since tuples are untracked only when walked by the GC,

[issue4691] IDLE Code Caching Windows

2008-12-18 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: You are using IDLE with the "-n" option, so the same interpreter session is reused each time you hit F5. The second run works because the Struct from the first run is still present - but disappears of course when you restart IDLE. It's not really caching

[issue2183] optimize list comprehensions

2008-12-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: Recommend having both MAP_ADD and STORE_MAP. The latter is repeated often in a typical dict literal so it needs to be compact and fast. The former needs the flexibility of the offset argument to be workable in a dict comprehension. I also like that MAP_ADD

[issue4688] GC optimization: don't track simple tuples and dicts

2008-12-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > I'd rather see that integrated into collection: e.g. when iterating over > > survivors of a collection, check whether they can be untracked. > > That's what I had tried at first, but it crashes. To be clearer, I tried adding it to the tp_traverse method of

[issue4688] GC optimization: don't track simple tuples and dicts

2008-12-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le jeudi 18 décembre 2008 à 06:12 +, Martin v. Löwis a écrit : > I think this approach is difficult to maintain, and also may miss some > objects. But what counts is where tuples can be created in massive numbers or sizes: the eval loop, the tuple type's tp

[issue4692] Framework build fails if OS X on case-sensitive file system

2008-12-18 Thread Ned Deily
New submission from Ned Deily : In the main python Makefile.pre.in, the frameworkinstallextras target, only used on OS X, has a bogus "Make" command instead of "$(MAKE)" as in other targets. Traditionally and by default, the OS X root file system is case-insensitive, in which case "Make" coin

[issue4615] de-duping function in itertools

2008-12-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: My inclination is to not include this as a basic C coded itertool because it holds potentially all of the data in memory (generally, not a characteristic of an itertool) and because I don't see it as a basic building block (itertools are intended to be elemen