[issue1734] no effect if metaclass modifies dict

2008-01-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: When designing a metaclass, you should override __new__, not __init__: class MetaNode(type): def __new__(cls, name, bases, cdict): cdict['z'] = name return type.__new__(cls, name, bases, cdict) class Node(object): __metaclass__ =

[issue1735] tarfile.TarFile.extractall not setting directory permissions correctly

2008-01-04 Thread Eric Andresen
New submission from Eric Andresen: The tarfile.TarFile.extractall() method is [by default] silently failing to set directory permissions and times on all but the lexically-latest directory extracted. This is due to an unintentional re-use of the 'path' variable. The provided patch renames the

[issue1735] tarfile.TarFile.extractall not setting directory permissions correctly

2008-01-04 Thread Eric Andresen
Changes by Eric Andresen: -- type: - behavior __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1735 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue1733] Maybe PC/VS7.1/pythoncore.vcproj is missing Modules/md5module.c

2008-01-04 Thread Christian Heimes
Christian Heimes added the comment: Fixed in r59708 Thanks again! I don't have VC 6 and VS 7.1 on my machine to test the build directories and your fixes. I hope they are fine. It looks ok :) -- nosy: +tiran resolution: - fixed status: open - closed __

[issue1735] tarfile.TarFile.extractall not setting directory permissions correctly

2008-01-04 Thread Lars Gustäbel
Changes by Lars Gustäbel: -- assignee: - lars.gustaebel nosy: +lars.gustaebel __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1735 __ ___ Python-bugs-list mailing list

[issue1713] posixpath.ismount() claims symlink to a mountpoint is a mountpoint.

2008-01-04 Thread Christian Heimes
Christian Heimes added the comment: Fixed in r59709 (trunk) and r59710 (2.5) -- resolution: accepted - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1713 __

[issue1687] plistlib.py restricts integer to Python int when writing

2008-01-04 Thread lafcadio
lafcadio added the comment: tiran wrote: Should it be backported to 2.5? I'm sure to understand what 'backport' means. Of course it would be nice if in future 2.5 versions the read data could be written. But for me its not important. __ Tracker [EMAIL

[issue1735] tarfile.TarFile.extractall not setting directory permissions correctly

2008-01-04 Thread Lars Gustäbel
Lars Gustäbel added the comment: Committed to release25-maint branch as r59713. -- resolution: - accepted status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1735 __

[issue1739648] zipfile.testzip() using progressive file reads

2008-01-04 Thread Alan McIntyre
Alan McIntyre added the comment: This sort of change definitely needs to be made to avoid reading huge files into memory for testzip(). I've attached a modified patch as zipfile_testzip_amcintyre.diff; it didn't seem appropriate to have a module-level variable for the size of the test read, and

[issue1735] tarfile.TarFile.extractall not setting directory permissions correctly

2008-01-04 Thread Lars Gustäbel
Lars Gustäbel added the comment: Thanks for the patch. I added a testcase and applied it to the trunk, see r59712. Python 2.5 follows later on. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1735 __

[issue1727] VC6 build patch for python3000

2008-01-04 Thread Christian Heimes
Christian Heimes added the comment: I've applied a fraction of your patch in r59711 but the part for PC/VS6 didn't apply. It may be a newline problem. Can you send me the files in a zip or tar archive, please? -- nosy: +tiran __ Tracker [EMAIL PROTECTED]

[issue1735] tarfile.TarFile.extractall not setting directory permissions correctly

2008-01-04 Thread Christian Heimes
Changes by Christian Heimes: -- keywords: +patch priority: - high versions: +Python 3.0 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1735 __ ___ Python-bugs-list

[issue1687] plistlib.py restricts integer to Python int when writing

2008-01-04 Thread Christian Heimes
Changes by Christian Heimes: -- priority: - normal resolution: fixed - remind versions: -Python 2.6, Python 3.0 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1687 __

[issue1567] Patch for new API method _PyImport_ImportModuleNoLock(char *name)

2008-01-04 Thread Christian Heimes
Changes by Christian Heimes: -- resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1567 __ ___ Python-bugs-list mailing list

[issue1527] Problem with static libs on Windows

2008-01-04 Thread Christian Heimes
Christian Heimes added the comment: Already fixed in svn -- resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1527 __ ___

[issue1727] VC6 build patch for python3000

2008-01-04 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Thank you. This file is zipped file. Added file: http://bugs.python.org/file9059/PC_VC6.zip __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1727 __

[issue889544] win32 raw socket support

2008-01-04 Thread Christian Heimes
Christian Heimes added the comment: I've implemented the WSAIoctl wrapper myself and added a working example for a network sniffer. IPPROTO_RAW is wrong, it must be IPPROTO_IP. -- nosy: +tiran resolution: - fixed status: open - closed Tracker

[issue1736] Three bugs of FCICreate (PC/_msi.c)

2008-01-04 Thread Christian Heimes
Changes by Christian Heimes: -- assignee: - loewis components: +Windows keywords: +patch, py3k nosy: +loewis priority: - normal __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1736 __

[issue846388] Check for signals during regular expression matches

2008-01-04 Thread Christian Heimes
Changes by Christian Heimes: -- type: - rfe versions: +Python 2.5, Python 2.6 -Python 2.4 Tracker [EMAIL PROTECTED] http://bugs.python.org/issue846388 ___

[issue1243] option.dest not set when callback called with optparse

2008-01-04 Thread Raghuram Devarakonda
Raghuram Devarakonda added the comment: I was under the impression that no change is necessary but I will take a closer look and will see if something needs to be done. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1243

[issue1737] Windows installer issue (ObjectBrowser.py)

2008-01-04 Thread Christian Heimes
Changes by Christian Heimes: -- assignee: - loewis nosy: +loewis __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1737 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue1727] VC6 build patch for python3000

2008-01-04 Thread Christian Heimes
Christian Heimes added the comment: Committed in 59720 Thanks Hiro! I still wonder why you are still using VS6 :) -- resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1727

[issue1737] Windows installer issue (ObjectBrowser.py)

2008-01-04 Thread Dariusz Suchojad
New submission from Dariusz Suchojad: Hello, for some reasons I cannot install Python 2.5.1 using the default MSI package which may be found here http://www.python.org/ftp/python/2.5.1/python-2.5.1.msi. This only happens on two of my PC's at work but I cannot reproduce it at home. The only

[issue798876] windows sys.path contains nonexistant directory

2008-01-04 Thread Joseph Armbruster
Joseph Armbruster added the comment: If I look at Lib/plat-win back at rev 16910, winreg.py could be found there. Everything I see in the tree referencing plat-win is documentation, except the PYTONPATH define itself. It looks like Lib/plat-win was removed back in revision 16911 [Aug 20,2000].

[issue1089358] need siginterrupt() on Linux - impossible to do timeouts

2008-01-04 Thread Christian Heimes
Christian Heimes added the comment: Next time please give the patch a more meaningful name than patch :) -- components: +Interpreter Core keywords: +patch nosy: +tiran versions: +Python 2.5, Python 2.6 _ Tracker [EMAIL PROTECTED]

[issue1700463] VC6 build patch for trunk

2008-01-04 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I zipped PC/VC6/* as files. Added file: http://bugs.python.org/file9062/vc6-trunk-ver4c.zip _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1700463 _

[issue1700463] VC6 build patch for trunk

2008-01-04 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I zipped PC/VC6/* as files. Added file: http://bugs.python.org/file9061/vc6-trunk-ver4c.zip _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1700463 _

[issue1700463] VC6 build patch for trunk

2008-01-04 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Oops, sorry for double post. My network provider now stucks somehow... _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1700463 _ ___

[issue1243] option.dest not set when callback called with optparse

2008-01-04 Thread Guido van Rossum
Guido van Rossum added the comment: Hm, perhaps I misinterpreted the discussion. If no patch is necessary, please close as won't fix or invalid. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1243 __

[issue1243] option.dest not set when callback called with optparse

2008-01-04 Thread Raghuram Devarakonda
Raghuram Devarakonda added the comment: Hm, perhaps I misinterpreted the discussion. If no patch is necessary, please close as won't fix or invalid. I spent some time looking at optparse code and OP's request. _check_dest has a clear comment that says dest will be set iff a store action is

[issue1089358] need siginterrupt() on Linux - impossible to do timeouts

2008-01-04 Thread Guido van Rossum
Guido van Rossum added the comment: Looks okay, but needs docs. -- nosy: +gvanrossum _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1089358 _ ___

[issue1442] pythonstartup addition of minor error checking

2008-01-04 Thread Joseph Armbruster
Joseph Armbruster added the comment: Backport to 2.6a0 and tested with: Python 2.6a0 (trunk:59710M, Jan 4 2008, 11:36:45) [MSC v.1500 32 bit (Intel)] on win32 Added file: http://bugs.python.org/file9063/pythonstartup.patch __ Tracker [EMAIL PROTECTED]

[issue846388] Check for signals during regular expression matches

2008-01-04 Thread Facundo Batista
Facundo Batista added the comment: Couldn't apply cleanly the patch, as it appears to be a diff in other format. Anyway, applied it by hand, and now I attach the correct svn diff. The test cases run ok with this change, and the problem is solved. Regarding the delay introduced, I tested it

[issue1734] documentation on metaclasses is incomplete and misleading

2008-01-04 Thread L. Peter Deutsch
L. Peter Deutsch added the comment: Please reopen this issue as a documentation bug. The documentation for __new__ in section 3.4.1 says: __new__() is intended mainly to allow subclasses of immutable types (like int, str, or tuple) to customize instance creation. The documentation for

[issue1243] option.dest not set when callback called with optparse

2008-01-04 Thread Raghuram Devarakonda
Raghuram Devarakonda added the comment: FWIW, the change to _check_dest to always set 'dest' breaks quite a few tests. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1243 __ ___

[issue482531] python directory not added to PATH

2008-01-04 Thread Christian Heimes
Christian Heimes added the comment: This bug is about 6 years old. Please discuss the matter on the python dev mailing list if you are still interested in the problem. -- nosy: +tiran resolution: - wont fix status: open - closed Tracker [EMAIL

[issue1243] option.dest not set when callback called with optparse

2008-01-04 Thread Guido van Rossum
Guido van Rossum added the comment: Then let's leave well enough alone. I believe Greg Ward doesn't usually respond to queries about optparse, but I'm assigning it to him anyway in case his interest is piqued. But for now, let's close this. -- assignee: - gward nosy: +gward

[issue846388] Check for signals during regular expression matches

2008-01-04 Thread Ralf Schmitt
Ralf Schmitt added the comment: ./python Lib/timeit.py -n 100 -s import re;r=re.compile('a?a?a?a?a?a') r.match('a') gives me for Trunk: 100 loops, best of 3: 3.02 usec per loop 100 loops, best of 3: 2.99 usec per loop 100 loops, best of 3: 3.01 usec per loop Patched:

[issue770280] PyMarshal_ReadLastObjectFromFile

2008-01-04 Thread Paul Felix
Paul Felix added the comment: Maybe not. With the addition of thread.stack_size([size]), it's fairly easy to get around the problem by bumping up the stack size. It would be nice if PyMarshal_ReadLastObjectFromFile didn't allocate a small file buffer on the stack (think of the impact when

[issue490264] Portable compiler option specification

2008-01-04 Thread Christian Heimes
Christian Heimes added the comment: This bug is about 6 years old. Please discuss the matter on the python dev mailing list if you are still interested in the problem and come up with a patch. -- nosy: +tiran resolution: - out of date status: open - closed

[issue734115] Packaging without disturbing an existing installation

2008-01-04 Thread Christian Heimes
Christian Heimes added the comment: This patch should be considered for Python 2.6 and newer. -- keywords: +patch nosy: +tiran priority: normal - low versions: +Python 2.6, Python 3.0 Tracker [EMAIL PROTECTED] http://bugs.python.org/issue734115

[issue699594] refcount problem involving debugger

2008-01-04 Thread Christian Heimes
Christian Heimes added the comment: The bug report is about 5 years old and probably outdated. Please open a new one if you see the bug again. -- nosy: +tiran resolution: - out of date status: open - closed Tracker [EMAIL PROTECTED]

[issue706392] faster _socket.connect variant desired

2008-01-04 Thread Christian Heimes
Christian Heimes added the comment: Consider and discuss the patch for Python 2.6 or close it. -- keywords: +patch nosy: +tiran priority: normal - low versions: +Python 2.6, Python 3.0 Tracker [EMAIL PROTECTED] http://bugs.python.org/issue706392

[issue1009929] PyErr_Clear() vs. AsynchronousException

2008-01-04 Thread Christian Heimes
Christian Heimes added the comment: The problem was solved with the new BaseException class -- nosy: +tiran resolution: - fixed status: open - closed _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1009929

[issue990749] os constants missing

2008-01-04 Thread Christian Heimes
Christian Heimes added the comment: The docs claim are wrong. -- nosy: +tiran resolution: - fixed status: open - closed Tracker [EMAIL PROTECTED] http://bugs.python.org/issue990749

[issue812369] module shutdown procedure based on GC

2008-01-04 Thread Christian Heimes
Christian Heimes added the comment: Consider this patch for 2.6 and discuss it at the bug day. -- nosy: +tiran versions: +Python 2.6, Python 3.0 -Python 2.4 Tracker [EMAIL PROTECTED] http://bugs.python.org/issue812369

[issue813922] Zero Configuration Networking?

2008-01-04 Thread Christian Heimes
Christian Heimes added the comment: I agree with Jack! Please work on an extension package and provide patches if you need extra socket code in the core. -- nosy: +tiran resolution: - out of date status: open - closed Tracker [EMAIL PROTECTED]

[issue618593] Windows binary missing IPv6 support

2008-01-04 Thread Christian Heimes
Christian Heimes added the comment: Python 2.5 and newer support IPv6 on Windows. -- nosy: +tiran resolution: - fixed status: open - closed Tracker [EMAIL PROTECTED] http://bugs.python.org/issue618593

[issue452144] How to install some stuff to /usr/sbin

2008-01-04 Thread Christian Heimes
Christian Heimes added the comment: The feature request is several years old. Please create a new request with a working patch if you still want to get the feature into Python 2.6+ -- nosy: +tiran resolution: - out of date status: open - closed

[issue842171] Digital Unix build fails to create ccpython.o

2008-01-04 Thread Christian Heimes
Christian Heimes added the comment: Digital Unix is no longer officially supported. If somebody needs Python on the system please open a new bug and provide some patches. -- nosy: +tiran resolution: - out of date status: open - closed Tracker

[issue759525] inspect.getmembers broken (?)

2008-01-04 Thread Christian Heimes
Changes by Christian Heimes: -- components: +Documentation versions: +Python 2.5, Python 2.6, Python 3.0 Tracker [EMAIL PROTECTED] http://bugs.python.org/issue759525

[issue1738] filecmp.dircmp does exact match only

2008-01-04 Thread Oliver Nelson
New submission from Oliver Nelson: dircmp's ignore and hide list only take exact files to ignore, not unix filename pattern's. This means you can't hide/ignore *.bak or something similar. Changing the _filter function adds this: def newfilter(flist, skip): for pattern in skip: flist =

[issue1738] filecmp.dircmp does exact match only

2008-01-04 Thread Oliver Nelson
Changes by Oliver Nelson: -- components: None nosy: flxkid severity: normal status: open title: filecmp.dircmp does exact match only type: behavior versions: Python 2.5 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1738

[issue846388] Check for signals during regular expression matches

2008-01-04 Thread Guido van Rossum
Guido van Rossum added the comment: Mind if I assign this to Facundo? Facundo, if you wish to pass this on, just unassign it. -- assignee: effbot - facundobatista nosy: +gvanrossum Tracker [EMAIL PROTECTED] http://bugs.python.org/issue846388

[issue1738] filecmp.dircmp does exact match only

2008-01-04 Thread Guido van Rossum
Guido van Rossum added the comment: I'm sorry, but can you rephrase that in the form of a patch? I can't quite figure out what you're trying to say, except that it sounds like it's scratching an itch of yours. -- nosy: +gvanrossum __ Tracker [EMAIL

[issue1472] Small bat files to build docs on Windows

2008-01-04 Thread Joseph Armbruster
Joseph Armbruster added the comment: I tested this out out in the trunk (59706). Placed builddoc.bat in /Doc and ran the following commands: builddoc checkout builddoc html builddoc htmlhelp builddoc web All appeared to work fine on my system. -- nosy: +JosephArmbruster

[issue1656] Make math.{floor,ceil}(float) return ints per PEP 3141

2008-01-04 Thread Guido van Rossum
Guido van Rossum added the comment: looks good. -- assignee: gvanrossum - jyasskin resolution: - accepted __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1656 __ ___

[issue1737] Windows installer issue (ObjectBrowser.py)

2008-01-04 Thread Martin v. Löwis
Martin v. Löwis added the comment: Can you please run msiexec /i msifile /l*v python.log then compress python.log, and attach it to the report? Thanks. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1737 __

[issue1725] -1e-1000 converted incorrectly

2008-01-04 Thread Guido van Rossum
Guido van Rossum added the comment: Committed revision 59725. Thanks for the fix, Mark! This issue is a great example of how our development process works well. I propose not to backport this to 2.5.2, it's a rather minor issue and who knows what user code might depend on the existing buggy

[issue1725] -1e-1000 converted incorrectly

2008-01-04 Thread Guido van Rossum
Guido van Rossum added the comment: PS. I reformatted some long lines in the patch. In general, I like to keep all lines 80 chars, in both C and Python code. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1725 __

[issue683910] zipfile should have a tarfile-like API

2008-01-04 Thread Alan McIntyre
Alan McIntyre added the comment: I just posted a patch on issue 467924 (http://bugs.python.org/issue467924) that adds extract and extractall methods. Recommend closing this issue unless the patch over there is insufficient for some reason. -- nosy: +alanmcintyre

[issue1722225] Build on QNX 6

2008-01-04 Thread Guido van Rossum
Guido van Rossum added the comment: I think it's fine to accept this (once the remaining issues are resolved) -- it's a remarkably small patch. Regarding TCGETA, perhaps the issue is that it isn't defined unless sys/termio.h is included? While Python doesn't USE it, it exports it fro the

[issue467924] Improve the ZipFile Interface

2008-01-04 Thread Alan McIntyre
Alan McIntyre added the comment: I attached a patch with the following changes (as zipfile_extract.diff): (1) Add a note to the docs (under writestr) about how the compression is selected if a ZipInfo is passed as the zinfo_or_arcname parameter. If anybody thinks it's a good idea to add a

[issue1381] cmath is numerically unsound

2008-01-04 Thread Mark Dickinson
Mark Dickinson added the comment: Here's an updated patch for cmath, complete with tests and documentation changes. There's an extra file, Lib/test/cmath.ctest, containing test values for the various functions; these test values were obtained using MPFR and interval arithmetic, and (modulo

[issue467924] Improve the ZipFile Interface

2008-01-04 Thread Alan McIntyre
Alan McIntyre added the comment: Are the method renames/additions suggested in the original issue worth doing? When I first started using this module, I found the documentation easy and thorough enough to understand how to use it, so I would vote for just leaving the ZipFile interface the way

[issue1698] urlparse and usernames containing @

2008-01-04 Thread Guido van Rossum
Guido van Rossum added the comment: Committed revision 59726. This is in the trunk (2.6). Do you need this backported to 2.5.2 as well? -- keywords: +patch status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1698

[issue1738] filecmp.dircmp does exact match only

2008-01-04 Thread Oliver Nelson
Oliver Nelson added the comment: Patch attached (sorry, this is my first bug report on an os project). dircmp has a list of files to ignore and hide. These lists right now are compared to the left and right lists using __contains__ to filter out the ignore/hide lists. This patch adds the

[issue1738] filecmp.dircmp does exact match only

2008-01-04 Thread Oliver Nelson
Oliver Nelson added the comment: sorry...jacked up the patch file...new one attached Added file: http://bugs.python.org/file9068/filecmp.py.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1738 __

[issue1692] Syntax Error exception dosen't print string; not informative

2008-01-04 Thread Kurt B. Kaiser
Kurt B. Kaiser added the comment: This short patch appears to fix the problem, please review. -- keywords: +patch Added file: http://bugs.python.org/file9069/pythonrun.c.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1692

[issue1692] Syntax Error exception dosen't print string; not informative

2008-01-04 Thread Guido van Rossum
Guido van Rossum added the comment: Yup, thanks! Can you submit it and close this? __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1692 __ ___ Python-bugs-list mailing list

[issue1692] Syntax Error exception dosen't print string; not informative

2008-01-04 Thread Kurt B. Kaiser
Kurt B. Kaiser added the comment: r59729 -- assignee: gvanrossum - kbk resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1692 __

[issue1663329] subprocess/popen close_fds perform poor if SC_OPEN_MAX is hi

2008-01-04 Thread Mike Klaas
Mike Klaas added the comment: Updated patch, now with documentation and test. Patch is against 2.6trunk, but probably will apply against 3.0 as well -- components: +Library (Lib) -Interpreter Core versions: +Python 2.6 -Python 2.5 Added file: