[issue7143] get_payload(decode=True) eats last newline

2009-10-16 Thread Ehsan Amiri
Changes by Ehsan Amiri ehsanam...@gmail.com: -- nosy: +esam ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7143 ___ ___ Python-bugs-list mailing

[issue7149] 2.6.4rc1 regression: test_urllib2 fails on OS X with UnboundLocalError

2009-10-16 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: I've attached a patch for the trunk that fixes the issue and passes test_urllib.py on the trunk. What I haven't done yet is write some unittests that actually test different proxy configurations, that would require changing the

[issue7044] urllib.urlopen crashes when used on Mac OS 10.6.1 through a proxy

2009-10-16 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: I've posted a patch for this in Issue7149. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7044 ___

[issue7149] 2.6.4rc1 regression: test_urllib2 fails on OS X with UnboundLocalError

2009-10-16 Thread Ned Deily
Ned Deily n...@acm.org added the comment: I'll test it on 2.6 later today. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7149 ___ ___

[issue7147] Remove WITHOUT_COMPLEX from 3.x trunk

2009-10-16 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I think this patch should be applied, on the basis that: - the WITHOUT_COMPLEX macro doesn't appear to be documented, or linked to any existing configure option - there aren't enough developer and/or buildbot cycles to keep obscure

[issue7150] datetime operations spanning MINYEAR give bad results

2009-10-16 Thread mark.leander
New submission from mark.leander mark.lean...@oikku.net: The datetime module documentation would imply that operations that cause dates to fall outside the MINYEAR--MAXYEAR range should raise OverflowError. The interpreter session below shows that this is not always the case, and that such

[issue6721] Locks in python standard library should be sanitized on fork

2009-10-16 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I was suggesting reinitialize, rather than release. That is, create a new lock (mutex, semaphore, etc.) and let the old one die (or occupy some tiny bit of memory). -- ___ Python tracker

[issue7146] [PATCH] platform.uname()[4] returns 'amd64' on Windows and 'x86-64' on Linux

2009-10-16 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Zooko O'Whielacronx wrote: Looking at http://bugs.python.org/setuptools/issue1 and reading the source of Lib/platform.py, it appears to me that uname() returns different strings identifying the amd64 architecture depending on what

[issue6721] Locks in python standard library should be sanitized on fork

2009-10-16 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: no need for that. the problem is that they're held by a thread that does not exist in the newly forked child process so they will never be released in the new process. example: if you fork while another thread is in the middle of logging

[issue1285440] Digest Authentication not working in all cases

2009-10-16 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: I am inclined to reject this issue and close it as: 1) Digest Authentication does with urllib2 2) This is specific with some domain, which does not give enough details to reproduce it. 3) The report is way old (2005). If there are any new

[issue7149] 2.6.4rc1 regression: test_urllib2 fails on OS X with UnboundLocalError

2009-10-16 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: Agreed this is a release blocker for 2.6.4rc2. I plan on tagging the release some time Saturday, probably around 1600 UTC. Do you think you can add a test and apply the patch by then? -- ___

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2009-10-16 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: Making this a deferred blocker so as not to clutter 2.6.4 release. -- nosy: +barry priority: release blocker - deferred blocker ___ Python tracker rep...@bugs.python.org

[issue7120] logging depends on multiprocessing

2009-10-16 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Fix checked into trunk and py3k (r75445). -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7120 ___

[issue7149] 2.6.4rc1 regression: test_urllib2 fails on OS X with UnboundLocalError

2009-10-16 Thread jweber
Changes by jweber ja...@jacobweber.com: -- nosy: +jweber ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7149 ___ ___ Python-bugs-list mailing list

[issue4120] Do not embed manifest files in *.pyd when compiling with MSVC

2009-10-16 Thread Nick Touran
Nick Touran n...@partofthething.com added the comment: Just to share my recent experience with this issue: I was attempting to get Python 2.6 working with py4mpi, matplotlib, and pymssql on a 64-bit Windows Vista based HPC cluster via x-copy deployment without the charm of administrative

[issue7077] SysLogHandler can't handle Unicode

2009-10-16 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: According to information from Martin von Löwis - see http://mail.python.org/pipermail/python-dev/2009-October/092825.html - UTF-8 should always be used, with a BOM, when sending Unicode (according to RFC 5424). The fix will use this

[issue5753] CVE-2008-5983 python: untrusted python modules search path

2009-10-16 Thread Dave Malcolm
Changes by Dave Malcolm dmalc...@redhat.com: -- nosy: +dmalcolm ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5753 ___ ___ Python-bugs-list

[issue2054] add ftp-tls support to ftplib - RFC 4217

2009-10-16 Thread Giampaolo Rodola'
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment: From a quick look at the patch, if you call login() twice, the socket will be wrapped twice as well? Perhaps auth_tls() should have a protection against this. You're right. Done. In prot_p() and prot_c(), it seems that

[issue2054] add ftp-tls support to ftplib - RFC 4217

2009-10-16 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' billiej...@users.sourceforge.net: Removed file: http://bugs.python.org/file15146/ftplib.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2054 ___

[issue2054] add ftp-tls support to ftplib - RFC 4217

2009-10-16 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' billiej...@users.sourceforge.net: Added file: http://bugs.python.org/file15147/ftplib.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2054 ___

[issue7151] regrtest -j sometimes fails if output gets written to stderr by a test

2009-10-16 Thread R. David Murray
New submission from R. David Murray rdmur...@bitdance.com: In certain circumstances output written to stderr during a test comes after the json result string the -j code is expecting to see at the end of the returned subprocess output. This causes that regrtest worker thread to fail. This

[issue7152] urllib2.build_opener() skips ProxyHandler

2009-10-16 Thread Barry A. Warsaw
New submission from Barry A. Warsaw ba...@python.org: Try this: from urllib2 import build_opener build_opener().handlers In Python 2.4, you will see ProxyHandler as the first handler, but this handler is missing from the list in Python 2.5, 2.6, and 2.7, despite this text in the

[issue7153] add start arg to max and min functions

2009-10-16 Thread paul rubin
New submission from paul rubin p...@users.sourceforge.net: Lots of times I want to find the largest element of a list or sequence, defaulting to 0 if the list or sequence is empty. max(seq) throws an exception if seq is empty, so I end up using reduce(max, seq, 0). That is a standard

[issue6941] Socket error when launching IDLE

2009-10-16 Thread adgprogramming
adgprogramming knd_a...@yahoo.com added the comment: Thanks so much! It works perfect! There was a process running that had to do with pythonw.exe and idle.bat. My firewall also blocked access to those same programs. Thanks! -- status: pending - open

[issue7153] add start arg to max and min functions

2009-10-16 Thread paul rubin
Changes by paul rubin p...@users.sourceforge.net: -- type: - feature request ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7153 ___ ___

[issue7153] add start arg to max and min functions

2009-10-16 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- assignee: - rhettinger nosy: +rhettinger versions: +Python 2.7, Python 3.2 -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7153

[issue7153] add start arg to max and min functions

2009-10-16 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: In case you don't remember it, this thread from python-ideas is relevant: http://mail.python.org/pipermail/python-ideas/2009-April/004107.html I can't tell from rereading the thread whether the support was for the 'initial' version, or

[issue6717] Some problem with recursion handling

2009-10-16 Thread Gregor Lingl
Gregor Lingl gregorli...@users.sourceforge.net added the comment: I've written and appended with this message a small script using tkinter, that produces the same crash as described earlier with turtle.py: tkinter_recursion_31.py It occurs when heavily and fast dragging the red square. So the

[issue6975] symlinks incorrectly resolved on Linux

2009-10-16 Thread Marco Buccini
Marco Buccini marcu...@gmail.com added the comment: I've provided a patch. I've also added a new test, and it passes. -- keywords: +patch nosy: +markon Added file: http://bugs.python.org/file15150/issue6975.patch ___ Python tracker

[issue7152] urllib2.build_opener() skips ProxyHandler

2009-10-16 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: This may end up being just a documentation issue. If the environment has http_proxy set, you do get a ProxyHandler automatically. import os os.environ['http_proxy'] = 'localhost' from urllib2 import build_opener build_opener().handlers

[issue1068268] subprocess is not EINTR-safe

2009-10-16 Thread Dave Malcolm
Changes by Dave Malcolm dmalc...@redhat.com: -- nosy: +dmalcolm ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1068268 ___ ___ Python-bugs-list

[issue4216] subprocess.Popen hangs at communicate() when child exits

2009-10-16 Thread Dave Malcolm
Changes by Dave Malcolm dmalc...@redhat.com: -- nosy: +dmalcolm ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4216 ___ ___ Python-bugs-list

[issue7153] add start arg to max and min functions

2009-10-16 Thread paul rubin
paul rubin p...@users.sourceforge.net added the comment: David, I'm not on that mailing list so hadn't seen the earlier discussion. I sympathasize with Raymond's YAGNI argument because I'm comfortable with reduce(max,seq,0); but then I remember there was once a movement to remove the reduce

[issue7149] 2.6.4rc1 regression: test_urllib2 fails on OS X with UnboundLocalError

2009-10-16 Thread Ned Deily
Ned Deily n...@acm.org added the comment: The supplied patch looks good and applies cleanly to 2.6 as well. I built and tested it with both 2.6 and trunk and the tests now all pass as expected. -- versions: +Python 2.7 ___ Python tracker

[issue7154] urllib.request system proxy configuration lookup broken for OS X in Python 3

2009-10-16 Thread Ned Deily
New submission from Ned Deily n...@acm.org: On OS X, urllib.request in Python 3 is supposed to use the operating system's proxy configuration by default, unless overridden by environment variables or by the caller providing an explicit proxy configuration. In Python 2, urllib (and,

[issue5475] urllib2.getproxies not documented

2009-10-16 Thread Ned Deily
Ned Deily n...@acm.org added the comment: In Python 2, urllib2.getproxies is one of a number of helper functions imported from urllib. It's not externally documented there, either, and likely not intended to be used externally. -- nosy: +ned.deily

[issue7155] urllib2 and python 3 urllib do not document default use of system proxy configuration

2009-10-16 Thread Ned Deily
New submission from Ned Deily n...@acm.org: Several issues with urllib/urllib2 documentation regarding proxy usage: 1. The Macintosh proxy description in section 21.5.1 is out-of-date: In a Macintosh environment, urlopen() will retrieve proxy information from Internet Config.

[issue7149] 2.6.4rc1 regression: test_urllib2 fails on OS X with UnboundLocalError

2009-10-16 Thread Ned Deily
Ned Deily n...@acm.org added the comment: BTW, I did test manually changing the system proxy configuration via the Network preference panel and verified that urllib/urllib2 used the default proxy settings. I suppose it would be possible to set up some tests using the OS X scutil command but

[issue7156] curses can't find _curses

2009-10-16 Thread Archon
Changes by Archon mddek...@bendbroadband.com: -- components: Library (Lib) nosy: Archon severity: normal status: open title: curses can't find _curses type: crash versions: Python 3.1 ___ Python tracker rep...@bugs.python.org

[issue7156] curses can't find _curses

2009-10-16 Thread Archon
New submission from Archon mddek...@bendbroadband.com: When I try to import curses, it returns the error: Traceback (most recent call last): File C:\Python31\Lib\curses\__init__.py, line 15, in module from _curses import * ImportError: No module named _curses --

[issue7157] Fix Download Current Documentation link

2009-10-16 Thread Ryan Leslie
New submission from Ryan Leslie ryle...@gmail.com: http://docs.python.org/download.html shows this: Download Python 2.6.4c1 Documentation We don't package the documentation for development releases for download. Downloads will be available for the final release. This is not really

[issue7156] curses can't find _curses

2009-10-16 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: I tried with several versions of Python and Windows and I got the same error on all, so I think it's normal. The documentation is not clear about that though, so it should be added a paragraph that explain why it doesn't work and if/how it's

[issue7157] Fix Download Current Documentation link

2009-10-16 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti priority: - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7157 ___

[issue6975] symlinks incorrectly resolved on Linux

2009-10-16 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti priority: - normal stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6975 ___

[issue7145] UTF-16 BOM is not written by socket.makefile (but is expected by read)

2009-10-16 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7145 ___ ___ Python-bugs-list

[issue7127] regrtest -j fails when tests write to stderr

2009-10-16 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7127 ___ ___ Python-bugs-list

[issue1378] fromfd() and dup() for _socket on WIndows

2009-10-16 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: On Sun, Oct 04, 2009 at 05:39:26PM +, Preston Landers wrote: I'm curious what happened with this issue. It says closed+accepted but it doesn't appear to be checked in. If you see the report, the last message indicates that it is

[issue2897] include structmember.h in Python.h

2009-10-16 Thread Patrick Näf
Changes by Patrick Näf herzb...@herzbube.ch: -- nosy: +herzbube ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2897 ___ ___ Python-bugs-list

[issue1673007] urllib2 requests history + HEAD support

2009-10-16 Thread Senthil Kumaran
Changes by Senthil Kumaran orsent...@gmail.com: -- assignee: - orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1673007 ___ ___

[issue7155] urllib2 and python 3 urllib do not document default use of system proxy configuration

2009-10-16 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: I have attached a docs patch against the trunk. Please provide your review comments. If its okay, I can commit it and have the information (urllib2.rst) for the Python 3k too. -- assignee: georg.brandl - orsenthil keywords: +patch

[issue7155] urllib2 and python 3 urllib do not document default use of system proxy configuration

2009-10-16 Thread Ned Deily
Ned Deily n...@acm.org added the comment: One comment: + :envvar:`protocol_proxy`. In a Windows environment, if no proxy + environment variables are set, proxy settings are obtained from the + registry's Internet Settings section. In a Mac OS X environment, proxy + information is

[issue5625] test_urllib2 fails - urlopen error file not on local host

2009-10-16 Thread Ned Deily
Ned Deily n...@acm.org added the comment: While you're poking around in urllib2, perhaps I can interest you in looking at these patches. -- nosy: +orsenthil versions: +Python 3.2 -Python 3.0 ___ Python tracker rep...@bugs.python.org

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

2009-10-16 Thread Ehsan Amiri
Changes by Ehsan Amiri ehsanam...@gmail.com: -- nosy: +esam ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4688 ___ ___ Python-bugs-list mailing

[issue4715] optimize bytecode for conditional branches

2009-10-16 Thread Ehsan Amiri
Changes by Ehsan Amiri ehsanam...@gmail.com: -- nosy: +esam ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4715 ___ ___ Python-bugs-list mailing

[issue7153] add start arg to max and min functions

2009-10-16 Thread Ehsan Amiri
Changes by Ehsan Amiri ehsanam...@gmail.com: -- nosy: +esam ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7153 ___ ___ Python-bugs-list mailing

[issue7153] add start arg to max and min functions

2009-10-16 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Sorry, that in case you don't remember' was directed at Raymond, not you. Since Raymond took ownership of this issue I don't think he's dismissing it (at least not yet :) I think his YAGNI was for the 'default' version, which is not what

[issue3366] Add gamma function, error functions and other C99 math.h functions to math module

2009-10-16 Thread Ned Deily
Ned Deily n...@acm.org added the comment: FYI, approximately 20 of the gamma test cases fail on PPC Macs. Attached are snippets from regrtest runs with trunk and with py3k, both on a G4 ppc (32-bit) running OS X 10.5. Identical failures for trunk (did not try py3k) were observed on a G3 ppc

[issue3366] Add gamma function, error functions and other C99 math.h functions to math module

2009-10-16 Thread Tim Peters
Tim Peters tim.pet...@gmail.com added the comment: FYI, mysterious numeric differences on PPC are often due to the C compiler generated code to use the fused multiply-add HW instruction. In which case, find a way to turn that off :-) -- nosy: +tim_one

[issue7158] os.path.basename/split fails

2009-10-16 Thread Tom Kuiper
New submission from Tom Kuiper kui...@jpl.nasa.gov: Normal behavior: from os import path filename = /home/kuiper/Projects/microdischarges/Observing/2009-09-01/STATS_NP2000_VSR1A.1W1.09-244-193632 print filename