[issue6105] json.dumps doesn't respect OrderedDict's iteration order

2009-05-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: r72961 Fixed for Py3.1. Leaving open until backported to 2.7. -- priority: critical -> normal versions: +Python 3.1 ___ Python tracker ___ _

[issue6121] help('modules ') causes IndexError.

2009-05-26 Thread R. David Murray
New submission from R. David Murray : Here is a trivial patch for pydoc with a minimal test. -- components: +Library (Lib) keywords: +easy, patch nosy: +r.david.murray priority: -> low stage: -> patch review versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1, Python 3.2 Added fi

[issue6121] help('modules ') causes IndexError.

2009-05-26 Thread Thomas Heller
Changes by Thomas Heller : -- assignee: theller -> components: -ctypes nosy: -theller ___ Python tracker ___ ___ Python-bugs-list ma

[issue6074] .pyc files created readonly if .py file is readonly, python won't overwrite

2009-05-26 Thread Marco
Marco added the comment: TO pdsimanyi: chmod it's not appropriate to change the permissions as you made: 0666 et voilà. However, I don't understand if it can be a problem since you're using Cygwin (and Bash under Windows) or not. I think this because Windows is not POSIX compliant and under Wi

[issue6120] zipfile.ZipFile's extractall works inproperly under Windows

2009-05-26 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I cannot reproduce this. Can you upload problematic zip file? -- nosy: +ocean-city ___ Python tracker ___ ___

[issue6121] help('modules ') causes IndexError.

2009-05-26 Thread July
Changes by July : -- assignee: theller components: ctypes nosy: July, theller severity: normal status: open title: help('modules ') causes IndexError. type: behavior ___ Python tracker __

[issue6120] zipfile.ZipFile's extractall works inproperly under Windows

2009-05-26 Thread Wentao Han
New submission from Wentao Han : On Windows, if you extract all files from a zip file which containing subdirectories by zipfile.ZipFile's extractall method, a WindowsError will be raised. -- components: Library (Lib) messages: 88400 nosy: aerodonkey severity: normal status: open title

[issue6074] .pyc files created readonly if .py file is readonly, python won't overwrite

2009-05-26 Thread Peter Simanyi
Peter Simanyi added the comment: I realized that my patch, with a chmod(..., 0600), may not work under certain conditions where the original file is owned by a different user but the directory is group- or world-writable. A more likely correct fix would use chmod(..., 0666). At any rate: som

[issue6106] read_until

2009-05-26 Thread Jack Diederich
Changes by Jack Diederich : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue6106] read_until

2009-05-26 Thread Jack Diederich
Jack Diederich added the comment: Try using telnetlib.py from python3.1. It fixes issues in telnet out of band negotiations. http://svn.python.org/projects/python/branches/py3k/Lib/telnetlib.py Here is what I think is happening: HOST: b'User' + IAC + ECHO + DONT + b'name:\nPassword\n:' read

[issue6074] .pyc files created readonly if .py file is readonly, python won't overwrite

2009-05-26 Thread Peter Simanyi
Peter Simanyi added the comment: I have a fix for this. The code is Windows-only. It has been verified to work for attached test script showpycreadonlysleep.sh. It simply adds a "chmod" call. The issue is that the unlink() call silently fails if the file is readonly, but unlink() succeeds if

[issue6105] json.dumps doesn't respect OrderedDict's iteration order

2009-05-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: Skip, the json API for 2.7/3.1 includes an object_pairs_hook that allows an OrderedDict to be generated from a json file. The OP is pointing out that the latest C upgrade prevents round-tripping while preserving order. Use cases for that were discussed in t

[issue5272] OS X installer: fix makefile target changed for 3.x

2009-05-26 Thread Ronald Oussoren
Ronald Oussoren added the comment: Sure. Done in r72948. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

[issue6119] Confusing DeprecationWarning

2009-05-26 Thread Alejandro
Changes by Alejandro : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue6119] Confusing DeprecationWarning

2009-05-26 Thread Alejandro
New submission from Alejandro : Comparing a lambda and a built-in by equality ("==") raises a DeprecationWarning when the "-3" flag is used on Python 2.6.2: $ python2.6 -3 Python 2.6.2 (r262:71600, Apr 28 2009, 16:17:29) [GCC 4.3.2] on linux2 Type "help", "copyright", "credits" or "license" for

[issue5272] OS X installer: fix makefile target changed for 3.x

2009-05-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2009/5/26 Ronald Oussoren : > > Ronald Oussoren added the comment: > > You've got a point there. > > Benjamin: should the removal of smtpd.py from the list of installed > scripts be listed in the NEWS file? Yes, do you want to do that? --

[issue5272] OS X installer: fix makefile target changed for 3.x

2009-05-26 Thread Ronald Oussoren
Ronald Oussoren added the comment: You've got a point there. Benjamin: should the removal of smtpd.py from the list of installed scripts be listed in the NEWS file? -- nosy: +benjamin.peterson ___ Python tracker

[issue5653] OS X Installer: by default install versioned-only links in /usr/local/bin for 3.x

2009-05-26 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue5653] OS X Installer: by default install versioned-only links in /usr/local/bin for 3.x

2009-05-26 Thread Ronald Oussoren
Ronald Oussoren added the comment: Checked in a fix for this in r72947. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue6074] .pyc files created readonly if .py file is readonly, python won't overwrite

2009-05-26 Thread Peter Simanyi
Peter Simanyi added the comment: I may have a reason to analyze that would explain why this fails on Windows: the non-Windows code path in import.c's open_exclusive() contians an unlink(filename), but the Windows path does not. I'm going to try to build Python on Windows and add an unlink for

[issue6074] .pyc files created readonly if .py file is readonly, python won't overwrite

2009-05-26 Thread Peter Simanyi
Peter Simanyi added the comment: Re: Ubuntu: I can't reproduce the problem. At this point, I consider this problem Windows XP-only. Re: Windows & bash: I decided to verify that this problem occurs even if running outside of Bash in the native (and wonderful) shell CMD.EXE. It *does* occur. H

[issue6074] .pyc files created readonly if .py file is readonly, python won't overwrite

2009-05-26 Thread Peter Simanyi
Peter Simanyi added the comment: Oops, I was not accurate in reporting behavior: I now believe that this fails on Windows XP, but may work fine on Linux. Below are my results, showing reproducible failure on XP. The most important thing about this is: on XP, once the .pyc file is "broken", P

[issue1064] Test issue

2009-05-26 Thread Daniel's Test
Daniel's Test added the comment: > Testing a bug: does mentioning version 123123123123 or issue > 123123123123 make this issue unable to be displayed? Yes, it does :( See http://psf.upfronthosting.co.za/roundup/meta/issue285 for a patch that contains the fix. -- nosy: +dtuser2 __

[issue1064] Test issue

2009-05-26 Thread Daniel Diniz
Daniel Diniz added the comment: Testing a bug: does mentioning version 123123123123 or issue 123123123123 make this issue unable to be displayed? -- nosy: +ajaksu2 ___ Python tracker ___

[issue5653] OS X Installer: by default install versioned-only links in /usr/local/bin for 3.x

2009-05-26 Thread Ronald Oussoren
Ronald Oussoren added the comment: Good point, especially because the file in /usr/local/bin seem to be how a lot of users still use the framework. I'm committing a patch later today (which will include properly installing 2to3 in a framework build) -- __

[issue6110] IDLE has two "Preferences..." menu's on OSX

2009-05-26 Thread Ronald Oussoren
Ronald Oussoren added the comment: Supporting multiple versions of Tk sucks, and that's without trying to support Tk 8.5 as well (at least not in the binary installers) Appearently support for the Cocoa port of Tk requires even more specialcasing... --

[issue6110] IDLE has two "Preferences..." menu's on OSX

2009-05-26 Thread Ronald Oussoren
Ronald Oussoren added the comment: This was caused by code in macosxSupport.py that picked the branch for the wrong Tk release because "[8, 4, 21] < (8, 4, 21)". Committed a fix in r72946 -- resolution: -> fixed status: open -> closed ___ Python t

[issue6110] IDLE has two "Preferences..." menu's on OSX

2009-05-26 Thread Ned Deily
Ned Deily added the comment: Apparently, also caused by using the newer Tcl 8.4 in /Library/Frameworks/Tcl. -- nosy: +nad ___ Python tracker ___

[issue6111] Impossible to change preferences in IDLE

2009-05-26 Thread Ned Deily
Ned Deily added the comment: Removing the newer 8.4 /Library/Frameworks/Tcl.framework/ at runtime makes the problem go away. (Also the official 3.0.1 python wasn't linked with the newer Tcl in place so it doesn't exhibit these symptoms). -- nosy: +nad ___

[issue6111] Impossible to change preferences in IDLE

2009-05-26 Thread Ronald Oussoren
Ronald Oussoren added the comment: The fact that it seems to work on the trunk is accidental, another bug causes the code to go into a branch for a "old" version of Tk even when running on a newer one. The code in the "new" branch triggers the bug. I've committed a fix in r72945, although I'm

[issue6107] Subprocess.Popen output fails on Windows

2009-05-26 Thread Alex James
Alex James added the comment: Um, nevermind. I completely missed cwd=os.path.split(sys.argv[0])[0] so the shell command wasn't operating in the same relative path as the script. And that never mattered on Unix because we always ran from commandline, not IDLE, so the shell inherited the comm

[issue6118] urllib.parse.quote_plus ignores optional arguments

2009-05-26 Thread Georg Brandl
Georg Brandl added the comment: Thanks, applied in r72943. -- nosy: +georg.brandl resolution: -> accepted status: open -> closed ___ Python tracker ___ _

[issue6116] frame.f_locals keeps references to things for too long

2009-05-26 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue6107] Subprocess.Popen output fails on Windows

2009-05-26 Thread Alex James
Alex James added the comment: >>> import subprocess >>> fileName = 'test_a5.py.out' >>> locator = 'step 5200 ' >>> p = subprocess.Popen('findstr /O /B /C:"' + locator + '" '+ fileName, stdout=subprocess.PIPE, shell=True) >>> print p.stdout.read() >>> print p.communicate()[0] And stderr is also

[issue4859] pwd, spwd, grp functions vulnerable to denial of service

2009-05-26 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- assignee: -> loewis priority: -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue5794] pickle/cPickle of recursive tuples create pickles that cPickle can't load

2009-05-26 Thread Collin Winter
Collin Winter added the comment: Fixed in r72930 (trunk), r72931 (2.6), r72942 (py3k). -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker __

[issue2142] naive use of ''.join(difflib.unified_diff(...)) results in bogus diffs with inputs that don't end with end-of-line char (same with context_diff)

2009-05-26 Thread Trent Mick
Trent Mick added the comment: Here is a new patch that also fixes the same issue in difflib.context_diff() and adds a couple test cases. -- stage: test needed -> patch review title: naive use of ''.join(difflib.unified_diff(...)) results in bogus diffs with inputs that don't end with e

[issue6117] Fix O(n**2) performance problem in socket._fileobject

2009-05-26 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: the filter() is rendundant, really. There is no reason to drop those empty strings at this stage. -- ___ Python tracker ___ __

[issue6115] Header and doc related to PyNumber_Divide and PyNumber_InPlaceDivide should be removed in py3k

2009-05-26 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r72941. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

[issue6117] Fix O(n**2) performance problem in socket._fileobject

2009-05-26 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: The patch looks good to me. Be careful for the 3.0 port: filter() returns an iterator. -- nosy: +amaury.forgeotdarc ___ Python tracker ___

[issue6111] Impossible to change preferences in IDLE

2009-05-26 Thread Ronald Oussoren
Ronald Oussoren added the comment: Wrt. the question about tracebacks, I get the following exception when I click on the Apply button: /Applications/Python\ 3.1/IDLE.app/Contents/MacOS/IDLE Exception in Tkinter callback Traceback (most recent call last): File "/Library/Frameworks/Python.fr

[issue6111] Impossible to change preferences in IDLE

2009-05-26 Thread Ronald Oussoren
Ronald Oussoren added the comment: The same problem is also present in IDLE 3.0. -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue6074] .pyc files created readonly if .py file is readonly, python won't overwrite

2009-05-26 Thread Marco
Marco added the comment: Which version are you using? I've seen the source code of import.c (2.5 and 2.6) and it seems that in the 2.6 some bugfixes/features have been added. However, I've just used the version 2.7 and it works fine (as 2.6, since they have the same code (at least in import.c)

[issue6118] urllib.parse.quote_plus ignores optional arguments

2009-05-26 Thread Matt Giuca
New submission from Matt Giuca : urllib.parse.quote_plus will ignore its encoding and errors arguments if its input string has a space in it. Intended behaviour: >>> urllib.parse.quote_plus("\xa2\xd8 \xff", encoding='latin-1') '%A2%D8+%FF' Observed behaviour: >>> urllib.parse.quote_plus("\xa2\xd

[issue1712522] urllib.quote throws exception on Unicode URL

2009-05-26 Thread Matt Giuca
Matt Giuca added the comment: The issue of urllib.quote was discussed at extreme length in issue 3300, which was specific to Python 3. http://bugs.python.org/issue3300 In the end, I rewrote the entire family of urllib.quote and unquote functions; they're now Unicode compliant and accept additio

[issue6117] Fix O(n**2) performance problem in socket._fileobject

2009-05-26 Thread Kristján Valur Jónsson
New submission from Kristján Valur Jónsson : the socket._fileobject._wbuf is a list of strings to output. This patch keeps the length of this buffer as a separate member variable, rather than computing it dynamically, which sums to a O(n**2) operation as the buffer is filled up. Significant

[issue6116] frame.f_locals keeps references to things for too long

2009-05-26 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone : When a frame's f_locals attribute is accessed, one of two things happens: * If this is the first access, a new dictionary is created and it is populated with the locals from the frame (since they are not stored internally as a dictionary). The diction

[issue6109] IDLE rendering issue with oriental characters on OSX

2009-05-26 Thread Ronald Oussoren
Ronald Oussoren added the comment: Switching to Tcl/Tk 8.5 fixes the issue for IDLE as well. I'm leaving this bug open for future reference, and because this affects the binary installer for python. The big question: how to fix this in Python itself. I see the following options: 1) Ignore t

[issue6109] IDLE rendering issue with oriental characters on OSX

2009-05-26 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is definitly an Tk issue, the issue seems to be fixed in Tcl/Tk 8.5. That is, when I install Tk 8.5 and rerun the Tcl scriptlet I posted earlier the problem goes away. I'm currently rebuilding a version of the tkinter extension that links to Tk 8.5 to c

[issue6109] IDLE rendering issue with oriental characters on OSX

2009-05-26 Thread Ronald Oussoren
Ronald Oussoren added the comment: The attached file is an example of text that works fine in Textmate but renders incorrectly in IDLE. -- Added file: http://bugs.python.org/file14079/Chinese.txt ___ Python tracker

[issue6054] tarfile normalizes arcname

2009-05-26 Thread Lars Gustäbel
Lars Gustäbel added the comment: Apparently, the .deb file format is not explicit about that, but it seems to be common practice to have all files prefixed with './'. normpath is used all over tarfile, crucial are the occurrences in TarFile.add() and TarInfo.get_info(). As you're using a unix-l

[issue6060] PYTHONHOME should be more flexible (and controllable by --libdir)

2009-05-26 Thread Martin v. Löwis
Martin v. Löwis added the comment: > PYTHONHOME should point to the Python installation root, period. And indeed, it does. After your proposed, changed, it wouldn't anymore. The Python installation root is *not* the directory where the Python library lives, but the parent directory in which bot

[issue1983] Return from fork() is pid_t, not int

2009-05-26 Thread Martin v. Löwis
Martin v. Löwis added the comment: The patch looks fine to me, please apply. -- resolution: -> accepted ___ Python tracker ___ ___ Py

[issue6093] Ambiguous locale.strxfrm

2009-05-26 Thread Martin v. Löwis
Martin v. Löwis added the comment: Thanks for the report. Fixed in r72844 and r72845 -- nosy: +loewis resolution: -> accepted status: open -> closed ___ Python tracker ___ _

[issue6083] Reference counting bug in setrlimit

2009-05-26 Thread Martin v. Löwis
Changes by Martin v. Löwis : -- assignee: loewis -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue6083] Reference counting bug in setrlimit

2009-05-26 Thread Martin v. Löwis
Martin v. Löwis added the comment: IMO, any refcounting bug has the potential as a security risk. So I think we should deprecate this with a warning, and eventually remove it, as billm proposes. It's probably debatable whether to backport the warning to 2.6 or earlier; I think we shouldn't, as

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2009-05-26 Thread Martin v. Löwis
Martin v. Löwis added the comment: > The first warning might be a problem. I understand from the docs > (http://msdn.microsoft.com/en-us/library/aa363866.aspx) that all I need > to do is include windows.h, which is already included... but still the > function prototype isn't present. This migh

[issue6071] no longer possible to hash arrays

2009-05-26 Thread Martin v. Löwis
Martin v. Löwis added the comment: exarkun: would you like to propose a patch? -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs

[issue6065] bdist_msi.py failed assert when including extension modules

2009-05-26 Thread Martin v. Löwis
Changes by Martin v. Löwis : -- assignee: tarek -> loewis nosy: +loewis priority: -> release blocker ___ Python tracker ___ ___ Python

[issue6070] Pyhon 2.6 makes .pyc/.pyo bytecode files executable

2009-05-26 Thread Martin v. Löwis
Martin v. Löwis added the comment: Would you like to provide a patch? -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mai

[issue6067] make error

2009-05-26 Thread Martin v. Löwis
Martin v. Löwis added the comment: > please help my! Please understand that the Python bug tracker is not a place to obtain help. Instead, it is a place for you to help Python. Please find out a) whether mbstate_t is defined in your system, and (if so) b) what header file needs to be included

[issue3541] bsddb memory leak on ubuntu

2009-05-26 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: I can *not* reproduce the problem with Python 2.6 (with its stock bsddb version) and Berkeley DB 4.7.25 (the current one). I can reproduce the issue if I use Berkeley DB 4.6.21. Seems to be a (solved) problem in the library. Berkeley DB 4.7.25 is known to sol

[issue6077] Unicode issue with tempfile on Windows

2009-05-26 Thread Ugra Dániel
New submission from Ugra Dániel : Opening a file with tempfile.TemporaryFile using "wt+" mode, then reading content back, will cause reading to stop (without any exception) when encountering byte '0x1a' (aka. Ctrl+Z) on Windows even tough UTF-16 encoding is used. When using built-in open with the

[issue6054] tarfile normalizes arcname

2009-05-26 Thread Lars Gustäbel
Lars Gustäbel added the comment: So, what exactly are trying to accomplish? Why do you need that? -- ___ Python tracker ___ ___ Python

[issue6057] sqlite3 error classes should be documented

2009-05-26 Thread Gerhard Häring
Gerhard Häring added the comment: At the very start of the module's documentation it reads: """ pysqlite was written by Gerhard Häring and provides a SQL interface compliant with the DB-API 2.0 specification described by PEP 249. """ Where "PEP 249" is a link to the Database API 2.0 specificat

[issue6062] build_ext fails to build in the right directory using the package option

2009-05-26 Thread Tarek Ziadé
Tarek Ziadé added the comment: done in r72781 -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue6062] build_ext fails to build in the right directory using the package option

2009-05-26 Thread Tarek Ziadé
New submission from Tarek Ziadé : all in the title. currently working to fix this. -- assignee: tarek components: Distutils messages: 88080 nosy: tarek severity: normal status: open title: build_ext fails to build in the right directory using the package option versions: Python 2.6, Pyth

[issue6058] Add cp65001 to encodings/aliases.py

2009-05-26 Thread Χρήστος Γεωργίου (Christos g...@psf.upfronthosting.co.za, eorgiou)
Changes by Χρήστος Γεωργίου (Christos Georgiou) : Added file: http://bugs.python.org/file14014/alias_cp65001.diff ___ Python tracker ___ ___ Py

[issue6058] Add cp65001 to encodings/aliases.py

2009-05-26 Thread Χρήστος Γεωργίου (Christos g...@psf.upfronthosting.co.za, eorgiou)
Changes by Χρήστος Γεωργίου (Christos Georgiou) : Removed file: http://bugs.python.org/file14013/alias_cp65001.diff ___ Python tracker ___ ___

[issue6058] Add cp65001 to encodings/aliases.py

2009-05-26 Thread Χρήστος Γεωργίου (Christos g...@psf.upfronthosting.co.za, eorgiou)
Changes by Χρήστος Γεωργίου (Christos Georgiou) : -- components: +Windows ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue6058] Add cp65001 to encodings/aliases.py

2009-05-26 Thread Χρήστος Γεωργίου (Christos g...@psf.upfronthosting.co.za, eorgiou)
New submission from Χρήστος Γεωργίου (Christos Georgiou) : Add 'cp65001' (Microsoft term for UTF-8) as an alias to 'utf_8' -- components: Library (Lib), Unicode files: alias_cp65001.diff keywords: patch messages: 88060 nosy: tzot severity: normal status: open title: Add cp65001 to encod

[issue1602] windows console doesn't print utf8 (Py30a2)

2009-05-26 Thread Χρήστος Γεωργίου (Christos g...@psf.upfronthosting.co.za, eorgiou)
Χρήστος Γεωργίου (Christos Georgiou) added the comment: Just in case it helps, this behaviour is on Win XP Pro, Python 2.5.1: First, I added an alias for 'cp65001' to 'utf_8' in Lib/encodings/aliases.py . Then, I opened a command prompt with a bitmap font. c:\windows\system32>python Python 2

[issue6054] tarfile normalizes arcname

2009-05-26 Thread Martin v. Löwis
Changes by Martin v. Löwis : -- assignee: -> lars.gustaebel nosy: +lars.gustaebel ___ Python tracker ___ ___ Python-bugs-list mailing

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2009-05-26 Thread Martin v. Löwis
Martin v. Löwis added the comment: > I would appreciate if someone could review the patch and comment on the > technique. There are a few minor issues; overall, it looks correct: - the test for "this is windows" should just use MS_WINDOWS. - don't declare variables in the middle of a block; we

[issue6053] distutils error on windows

2009-05-26 Thread Martin v. Löwis
Martin v. Löwis added the comment: > 2. I got tar error. This happens because tar command I'm using cannot > recognize path with drive letter. For example, "tar -cf r:/foo ." fails > with error. I'm using http://gnuwin32.sourceforge.net/packages/gtar.htm I don't think this is a bug in distutils

[issue3541] bsddb memory leak on ubuntu

2009-05-26 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Python 2.5 is in security maintenance mode only. Please, upgrade to Python 2.6. If you can not upgrade Python, install a recent bsddb release from http://www.jcea.es/programacion/pybsddb.htm If you can still reproduce the problem, let me know. -- ass

[issue6053] distutils error on windows

2009-05-26 Thread Tarek Ziadé
Tarek Ziadé added the comment: ok done, thanks for the patch; -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list ma

[issue6053] distutils error on windows

2009-05-26 Thread Tarek Ziadé
Tarek Ziadé added the comment: (and also fix the test in 2.6 for this case) -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue6053] distutils error on windows

2009-05-26 Thread Tarek Ziadé
Tarek Ziadé added the comment: I am currently working on the removal of 'tar' in favor of the usage of tarinfo, so I'll get back to you in this issue when it's ready -- ___ Python tracker __

[issue4174] Performance optimization for min() and max() over lists

2009-05-26 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Perhaps not. I had however written a general list locking system, generalizing the way sort() locks a list for direct manipulation, and rewritten min and max to be able to use that. Perhaps that approach would be of interest? --

[issue6046] test_distutils.py fails on VC6(Windows)

2009-05-26 Thread Tarek Ziadé
Tarek Ziadé added the comment: Thanks Roumen,that was it. I've commited the change and added a test to verify the produced file has the right extension. Thanks for the feedback Hirokazu -- status: open -> closed ___ Python tracker

[issue6050] zipfile: Extracting a directory that already exists generates an OSError

2009-05-26 Thread Martin v. Löwis
Changes by Martin v. Löwis : -- assignee: -> loewis nosy: +loewis priority: -> release blocker ___ Python tracker ___ ___ Python-bugs

[issue6049] str.strip() and " behaviour expected?

2009-05-26 Thread Martin v. Löwis
Changes by Martin v. Löwis : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue6045] Fix dbm interfaces

2009-05-26 Thread Martin v. Löwis
Martin v. Löwis added the comment: > Would inheriting from MutableMapping fix this problem? In principle: some of it, yes. These types are written in C, so I'm not sure how exactly it would work. Also, it still wouldn't provide all methods, e.g. copy(), fromkeys(), get(), values(), items() woul

[issue6048] make distutils use the tarinfo command

2009-05-26 Thread Tarek Ziadé
New submission from Tarek Ziadé : Currently Distutils uses the "tar" command to build tarballs. It's better to use the tarinfo module, so Distutils does not depend on the "tar" program anymore. -- assignee: tarek components: Distutils messages: 87994 nosy: tarek severity: normal status

[issue6045] Fix dbm interfaces

2009-05-26 Thread Martin v. Löwis
Martin v. Löwis added the comment: >> I disagree that this is release-critical. I think it is desirable to >> say that the dbm modules support most of a dict-style interface, >> and I also think that it is factually correct to claim that they >> currently do. > > Supporting only __getitem__, __

[issue6045] Fix dbm interfaces

2009-05-26 Thread Martin v. Löwis
Martin v. Löwis added the comment: > So, either we remove the claim that they have a dict-style interface > beyond __*item__() and keys(), or we do something about it. I disagree that this is release-critical. I think it is desirable to say that the dbm modules support most of a dict-style inte

[issue6012] enhance getargs O& to accept cleanup function

2009-05-26 Thread Martin v. Löwis
Martin v. Löwis added the comment: > Well, convert_to_unicode used to use O& before I don't understand. Where does it use it? Before your patch, convert_to_unicode was a regular one-argument function, not a ParseTuple O& function. Only your patch makes it one. -- _

[issue6046] test_distutils.py fails on VC6(Windows)

2009-05-26 Thread Tarek Ziadé
Tarek Ziadé added the comment: Ok done. can you check on your side ? Don't we have a win32+MVCS6 buildslave somewhere ? That would be nice to have. I am running 3 differents VMs already when I work on these files. It would be great to have buildbot making regression tests over all compiler f

[issue6046] test_distutils.py fails on VC6(Windows)

2009-05-26 Thread Tarek Ziadé
Tarek Ziadé added the comment: When I made this change I checked it under VC9, so it should work on this version. I'll have to create a VM with VC6 to track it down. Until then I'll deactivate this test when it's VC6 -- ___ Python tracker

[issue6012] enhance getargs O& to accept cleanup function

2009-05-26 Thread Martin v. Löwis
Martin v. Löwis added the comment: Modifying convert_to_unicode is incorrect; this function is not an O& converter. Instead, PyUnicode_FSConverter needs to change. Attached is a patch that does that, and also uses the O& approach. It also adjusts the patch to use capsules. -- Added fil

[issue4856] Remove checks for win NT

2009-05-26 Thread Martin v. Löwis
Martin v. Löwis added the comment: The patch is slightly out of date; if updated, it is fine to apply after 3.1. I think Py_GetFileAttributesExA can also be removed. -- ___ Python tracker _

[issue6012] enhance getargs O& to accept cleanup function

2009-05-26 Thread Martin v. Löwis
Changes by Martin v. Löwis : -- priority: normal -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue4126] remove not decodable environment variables

2009-05-26 Thread Martin v. Löwis
Martin v. Löwis added the comment: This patch is out of date with PEP 383 -- resolution: -> out of date status: open -> closed ___ Python tracker ___ ___

[issue3527] Py_WIN_WIDE_FILENAMES removal

2009-05-26 Thread Martin v. Löwis
Martin v. Löwis added the comment: Looks fine to me, please apply. -- assignee: -> ocean-city resolution: -> accepted ___ Python tracker ___ ___

[issue1621] Do not assume signed integer overflow behavior

2009-05-26 Thread Martin v. Löwis
Martin v. Löwis added the comment: > I don't see why. There's nothing in -Wall -Wextra -Wsigned-overflow > that asks for warnings for code that might overflow. Ah, right. I misunderstood (rather, didn't bother checking) what -Wsigned-overflow really does. -- _

[issue6041] change sdist and register command so they use check

2009-05-26 Thread Tarek Ziadé
Tarek Ziadé added the comment: done in r72681, r72683 -- dependencies: +add a new command called "check" into Distutils status: open -> closed ___ Python tracker ___

[issue5732] add a new command called "check" into Distutils

2009-05-26 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- dependencies: +change sdist and register command so they use check ___ Python tracker ___ ___ Python-bugs-l

[issue5732] add a new command called "check" into Distutils

2009-05-26 Thread Tarek Ziadé
Tarek Ziadé added the comment: closing (created a new ticket #6041 for sdist and register inclusion) -- status: open -> closed ___ Python tracker ___

[issue6041] change sdist and register command so they use check

2009-05-26 Thread Tarek Ziadé
Tarek Ziadé added the comment: the old check_metadata method, duplicated in sdist and register, will be marked with a PendingDeprecationWarning. -- ___ Python tracker ___ ___

  1   2   >