[issue1526] DeprecationWarning in zipfile.py while zipping 113000 files

2008-01-06 Thread Alan McIntyre
Alan McIntyre added the comment: Here's a patch that just uses the mod 64k approach. If I get time to look at some other implementations, and find a better way to handle it, I'll submit an update. Otherwise, maybe on bug day people can try it out with a variety of archiving utilities to see if

[issue1591] popen2.Popen3 class (Unix) documentation misleading / confusing

2008-01-06 Thread Georg Brandl
Changes by Georg Brandl: -- assignee: - georg.brandl nosy: +georg.brandl __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1591 __ ___ Python-bugs-list mailing list

[issue932563] logging: need a way to discard Logger objects

2008-01-06 Thread Vinay Sajip
Vinay Sajip added the comment: There's probably no need. Fred's initial reason for wanting this (usage of connection-specific loggers, which would be an anti-pattern in my book) was later solved by him using an application-specific wrapper. Also, changes made to logging after this issue was

[issue1741] .pypirc not found on windows

2008-01-06 Thread Gerdus van Zyl
Changes by Gerdus van Zyl: -- components: Distutils nosy: gerdus severity: normal status: open title: .pypirc not found on windows versions: Python 2.5 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1741 __

[issue1741] .pypirc not found on windows

2008-01-06 Thread Gerdus van Zyl
New submission from Gerdus van Zyl: register.py and upload.py both can't find the .pypirc on my system since there is no HOME environment variable. currently: if os.environ.has_key('HOME'): rc = os.path.join(os.environ['HOME'], '.pypirc') if os.path.exists(rc): works for me if

[issue1682403] docutils clarification request for rest

2008-01-06 Thread Christian Heimes
Changes by Christian Heimes: -- components: +Distutils, Windows -Library (Lib) versions: +Python 2.5, Python 2.6 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1682403 _

[issue1696393] Remove redundant code in ntpath.walk()

2008-01-06 Thread Christian Heimes
Changes by Christian Heimes: -- type: - rfe versions: +Python 2.6 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1696393 _ ___ Python-bugs-list mailing list

[issue1439312] Patch for bug 1438185: os.renames deletes junction points

2008-01-06 Thread Christian Heimes
Christian Heimes added the comment: Martin, you are the Windows expert. Does it sound right to you? -- assignee: - loewis nosy: +loewis, tiran versions: +Python 2.5, Python 2.6 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1439312

[issue762963] timemodule.c: Python loses current timezone

2008-01-06 Thread Christian Heimes
Changes by Christian Heimes: -- versions: +Python 2.5, Python 2.6 Tracker [EMAIL PROTECTED] http://bugs.python.org/issue762963 ___ Python-bugs-list mailing list

[issue1529353] Squeezer - squeeze large output in the interpreter

2008-01-06 Thread Christian Heimes
Changes by Christian Heimes: -- assignee: - kbk versions: +Python 2.6 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1529353 _ ___ Python-bugs-list mailing list

[issue502236] Asynchronous exceptions between threads

2008-01-06 Thread Christian Heimes
Changes by Christian Heimes: -- versions: +Python 2.6 Tracker [EMAIL PROTECTED] http://bugs.python.org/issue502236 ___ Python-bugs-list mailing list Unsubscribe:

[issue1559549] ImportError needs attributes for module and file name

2008-01-06 Thread Christian Heimes
Changes by Christian Heimes: -- versions: +Python 2.6 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1559549 _ ___ Python-bugs-list mailing list Unsubscribe:

[issue1527597] New module: miniconf

2008-01-06 Thread Christian Heimes
Changes by Christian Heimes: -- components: +Library (Lib) -None versions: +Python 2.6 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1527597 _ ___

[issue1742] os.path.relpath fails when path == start

2008-01-06 Thread Jesse Towner
Changes by Jesse Towner: -- components: Library (Lib) nosy: townerj severity: major status: open title: os.path.relpath fails when path == start type: behavior versions: Python 3.0 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1742

[issue1742] os.path.relpath fails when path == start

2008-01-06 Thread Jesse Towner
New submission from Jesse Towner: os.path.relpath fails with an exception on both Windows and Unix systems (ntpath and posixpath modules) when the given path and the start path are equal. Better behavior here might be to return an empty string or perhaps os.path.curdir. os.path.relpath(test,

[issue1772673] Replacing char* with const char*

2008-01-06 Thread Christian Heimes
Changes by Christian Heimes: -- type: - rfe versions: +Python 2.6 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1772673 _ ___ Python-bugs-list mailing list

[issue1625576] add ability to specify name to os.fdopen

2008-01-06 Thread Christian Heimes
Christian Heimes added the comment: Where is the patch, Mark? Collin, does fdopen(fd[, mode[, bufsize[, msg=None]]]) and open file 'fdopen \d+ (msg)' sound good to you? -- assignee: - collinwinter nosy: +tiran versions: +Python 2.6 _ Tracker [EMAIL

[issue1245224] Time module is missing inverse of gmtime()

2008-01-06 Thread Christian Heimes
Changes by Christian Heimes: -- assignee: - tiran keywords: +patch nosy: +tiran type: - rfe versions: +Python 2.6 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1245224 _

[issue416670] MatchObjects not deepcopy()able

2008-01-06 Thread Christian Heimes
Changes by Christian Heimes: -- versions: +Python 2.6 Tracker [EMAIL PROTECTED] http://bugs.python.org/issue416670 ___ Python-bugs-list mailing list Unsubscribe:

[issue1745722] please add wsgi to SimpleXMLRPCServer

2008-01-06 Thread Christian Heimes
Changes by Christian Heimes: -- versions: +Python 2.6 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1745722 _ ___ Python-bugs-list mailing list Unsubscribe:

[issue1772794] Telnetlib dosn't accept u'only ascii'

2008-01-06 Thread Christian Heimes
Christian Heimes added the comment: The code should raise a proper unicode error. In general network code accepts only bytes, not unicode. -- components: +Library (Lib) -None nosy: +tiran priority: normal - low type: - rfe versions: +Python 2.6 _

[issue1757831] Allow opening just an editor window

2008-01-06 Thread Christian Heimes
Changes by Christian Heimes: -- assignee: - kbk versions: +Python 2.6 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1757831 _ ___ Python-bugs-list mailing list

[issue1753718] base64 legacy functions violate RFC 3548

2008-01-06 Thread Christian Heimes
Changes by Christian Heimes: -- versions: +Python 2.5, Python 2.6 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1753718 _ ___ Python-bugs-list mailing list

[issue1732367] Document the constants in the socket module

2008-01-06 Thread Christian Heimes
Changes by Christian Heimes: -- assignee: - georg.brandl versions: +Python 2.6 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1732367 _ ___ Python-bugs-list

[issue1100942] datetime.strptime constructor added

2008-01-06 Thread Christian Heimes
Changes by Christian Heimes: -- type: - rfe versions: +Python 2.6 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1100942 _ ___ Python-bugs-list mailing list

[issue1730372] Mesa with NPTL makes Python extensions crash with std::cerr

2008-01-06 Thread Christian Heimes
Christian Heimes added the comment: Please provide a failing test program or we have to close the bug. I can't reproduce it on my x86 machine with Python 2.5 and GCC 4.2 either. -- nosy: +tiran status: open - pending versions: +Python 2.5, Python 2.6

[issue634412] RFC 2112 in email package

2008-01-06 Thread Christian Heimes
Christian Heimes added the comment: What about Python 2.6 support? :) -- assignee: - barry components: +Interpreter Core -None nosy: +tiran versions: +Python 2.6 Tracker [EMAIL PROTECTED] http://bugs.python.org/issue634412

[issue1713877] Expose callback API in readline module

2008-01-06 Thread Christian Heimes
Changes by Christian Heimes: -- versions: +Python 2.6 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1713877 _ ___ Python-bugs-list mailing list Unsubscribe:

[issue1713877] Expose callback API in readline module

2008-01-06 Thread Christian Heimes
Christian Heimes added the comment: A patch is always welcome -- nosy: +tiran _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1713877 _ ___ Python-bugs-list

[issue1707753] get status output fix for Win32

2008-01-06 Thread Christian Heimes
Christian Heimes added the comment: Do you call 8 months a few days? *g* -- components: +Windows nosy: +tiran versions: +Python 2.6 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1707753 _

[issue1708316] doctest work with Windows PyReadline

2008-01-06 Thread Christian Heimes
Changes by Christian Heimes: -- keywords: +patch versions: +Python 2.5, Python 2.6 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1708316 _ ___ Python-bugs-list

[issue1743] IDLE fails to launch

2008-01-06 Thread Rich
New submission from Rich: Launching IDLE from the start menu has no effect, no windows open. Command line Python still works. Reinstalling Python does not fix the problem. I haven't changed my system configuration since everything was working. Any ideas for things to check to fix this on my

[issue932563] logging: need a way to discard Logger objects

2008-01-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, I have met this problem too some time ago, so could you please reopen the bug? Saying creating a lot of connection-bound logger objects is an antipattern doesn't help. It's the only simple way of doing something useful: have a logging target with

[issue1673203] add identity function

2008-01-06 Thread Christian Heimes
Christian Heimes added the comment: What's the conclusion of your discussion? Do you consent to close the feature request? -- nosy: +tiran _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1673203 _

[issue932563] logging: need a way to discard Logger objects

2008-01-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: s/in every logging class/in every logging call/, sorry. Tracker [EMAIL PROTECTED] http://bugs.python.org/issue932563 ___ Python-bugs-list

[issue1736792] dict reentrant/threading bug

2008-01-06 Thread Christian Heimes
Changes by Christian Heimes: -- components: +Interpreter Core -None type: - rfe versions: +Python 2.6, Python 3.0 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1736792 _

[issue1731706] tkinter memory leak problem

2008-01-06 Thread Christian Heimes
Changes by Christian Heimes: -- versions: +Python 2.6 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1731706 _ ___ Python-bugs-list mailing list Unsubscribe:

[issue1743] IDLE fails to launch

2008-01-06 Thread Christian Heimes
Christian Heimes added the comment: What's your OS and how did you install Python on your machine? -- nosy: +tiran __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1743 __

[issue1741] .pypirc not found on windows

2008-01-06 Thread Christian Heimes
Changes by Christian Heimes: -- priority: - normal type: - behavior versions: +Python 2.6 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1741 __ ___ Python-bugs-list

[issue1730372] Mesa with NPTL makes Python extensions crash with std::cerr

2008-01-06 Thread Gazi Alankus
Gazi Alankus added the comment: If by not being able to reproduce, you mean that you campiled Mesa with NPTL support and tried a Python extension that's using std::cerr (like the attached source in the other thread I linked to) and is linked to -lGL, then fine. Mesa with NPTL support is

[issue1256] subprocess Popen wait() function hangs when stdout is 20480

2008-01-06 Thread Christian Heimes
Christian Heimes added the comment: The docs should be updated, see #1606 -- nosy: +tiran resolution: - wont fix status: open - closed superseder: - Doc: subprocess wait() may lead to dead lock __ Tracker [EMAIL PROTECTED]

[issue1696393] Remove redundant code in ntpath.walk()

2008-01-06 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r59769. Thanks! -- assignee: rhettinger - georg.brandl nosy: +georg.brandl resolution: - fixed status: open - closed _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1696393

[issue1742] os.path.relpath fails when path == start

2008-01-06 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r59770. -- nosy: +georg.brandl resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1742 __

[issue1732367] Document the constants in the socket module

2008-01-06 Thread Georg Brandl
Georg Brandl added the comment: Be sure to use reST format now that we've switched to that. Much easier to type :) _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1732367 _

[issue1591] popen2.Popen3 class (Unix) documentation misleading / confusing

2008-01-06 Thread Georg Brandl
Georg Brandl added the comment: I clarified the docstring in r59771. I won't extend it, however, since most types don't announce their attributes in the docstring. For that you should always consult the code or the official docs. -- resolution: - fixed status: open - closed

[issue979658] Improve HTML documentation of a directory

2008-01-06 Thread Georg Brandl
Georg Brandl added the comment: Unassigning myself - I have no opinion on pydoc. -- assignee: georg.brandl - Tracker [EMAIL PROTECTED] http://bugs.python.org/issue979658

[issue1245224] Time module is missing inverse of gmtime()

2008-01-06 Thread Georg Brandl
Changes by Georg Brandl: -- resolution: - duplicate status: open - closed superseder: - Time zone-capable variant of time.localtime _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1245224 _

[issue1646] Make socket support TIPC.

2008-01-06 Thread Alberto Bertogli
Alberto Bertogli added the comment: On Sat, Jan 05, 2008 at 10:08:15PM -, Christian Heimes wrote: I'm still waiting for a new patch. Your feature patch has been accepted but I won't commit it without doc updates. I know, but holidays were not the best time to write documentation. I'll

[issue1683] Thread local storage and PyGILState_* mucked up by os.fork()

2008-01-06 Thread roudkerk
roudkerk added the comment: The included patch against python2.51 fixes the problem for me. -- versions: +Python 2.6, Python 3.0 Added file: http://bugs.python.org/file9076/fork-thread-patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1683

[issue1744] readline module - set/get quote delimiters

2008-01-06 Thread loic jeannin
New submission from loic jeannin: here is a patch against Modules/readline.c to add getter/setter for rl_completer_quote_characters. This is needed for advanced use of cmd.Cmd with completion. -- components: Extension Modules files: p2.5.1-readline.diff messages: 59380 nosy: loic

[issue1743] IDLE fails to launch

2008-01-06 Thread Rich
Rich added the comment: I'm on 32-bit Windows Vista, and I installed with the Python 2.5 msi. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1743 __ ___ Python-bugs-list mailing

[issue714469] Easy tutorial printing should be possible

2008-01-06 Thread Georg Brandl
Georg Brandl added the comment: Which is now done. -- resolution: - fixed status: open - closed Tracker [EMAIL PROTECTED] http://bugs.python.org/issue714469 ___

[issue1680] what is decimal.Context.get_manager()?

2008-01-06 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r59772. Thanks for the report! -- assignee: facundobatista - georg.brandl nosy: +georg.brandl resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1680

[issue1218] Restrict Google search to docs when in the docs subtree?

2008-01-06 Thread Georg Brandl
Changes by Georg Brandl: -- resolution: - invalid status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1218 __ ___ Python-bugs-list mailing list

[issue1755097] document default values for sort parameters

2008-01-06 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r59773. -- nosy: +georg.brandl resolution: - fixed status: open - closed _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1755097 _

[issue1501] 0 ** 0 documentation

2008-01-06 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r59774. -- assignee: facundobatista - georg.brandl nosy: +georg.brandl resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1501 __

[issue1702] Word alias used in confusing way to compare open() and file()

2008-01-06 Thread Georg Brandl
Georg Brandl added the comment: I had already cleaned this up in the trunk. -- resolution: - out of date status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1702 __

[issue759525] inspect.getmembers broken (?)

2008-01-06 Thread Georg Brandl
Georg Brandl added the comment: Added a doc clarification in r59775. -- nosy: +georg.brandl resolution: - fixed status: open - closed Tracker [EMAIL PROTECTED] http://bugs.python.org/issue759525

[issue1615275] tempfile.TemporaryFile differences between linux and windows

2008-01-06 Thread Georg Brandl
Georg Brandl added the comment: Documented in r59776. -- nosy: +georg.brandl resolution: - fixed status: open - closed title: tempile.TemporaryFile differences between linux and windows - tempfile.TemporaryFile differences between linux and windows

[issue1681] parameter name for optparse parse_args incorrect

2008-01-06 Thread Georg Brandl
Georg Brandl added the comment: Thanks for the report, this is already fixed in the SVN trunk. -- nosy: +georg.brandl resolution: - out of date status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1681

[issue1727024] subprocess: unreliability of returncode not clear from docs

2008-01-06 Thread Georg Brandl
Georg Brandl added the comment: Thanks for the report, fixed the documentation in r59777. -- assignee: - georg.brandl nosy: +georg.brandl resolution: - fixed status: open - closed _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1727024

[issue1745] Backport of PEP 3102 keyword-only arguments to 2.6

2008-01-06 Thread Robin Stocker
New submission from Robin Stocker: The attached patch ports the implementation of keyword-only arguments from revision 52491 back to trunk. This is the first time I've worked on the C internals, so here are some notes: - test_collections is the only test which fails, because it tries to call a

[issue1686390] csv sniff example

2008-01-06 Thread Georg Brandl
Georg Brandl added the comment: I edited the example a bit and added it to the docs in r59778. -- assignee: skip.montanaro - georg.brandl nosy: +georg.brandl resolution: - fixed status: open - closed _ Tracker [EMAIL PROTECTED]

[issue1559684] shutil.copyfile incomplete on NTFS

2008-01-06 Thread Georg Brandl
Georg Brandl added the comment: Clarified docs in r59779. -- nosy: +georg.brandl resolution: - fixed status: open - closed _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1559684 _

[issue1582] Documentation patch for reversed() and __reversed__()

2008-01-06 Thread Georg Brandl
Georg Brandl added the comment: Thanks, reformatted a bit and committed as r59780. -- resolution: - accepted status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1582 __

[issue602345] option for not writing .py[co] files

2008-01-06 Thread Georg Brandl
Georg Brandl added the comment: Does the flag name -R still make sense with the new env var name? Tracker [EMAIL PROTECTED] http://bugs.python.org/issue602345 ___

[issue602345] option for not writing .py[co] files

2008-01-06 Thread Christian Heimes
Christian Heimes added the comment: What do you think about PYTHONOMITPYC, --omit-pyc and sys.omit_pyc_creation? Tracker [EMAIL PROTECTED] http://bugs.python.org/issue602345 ___

[issue602345] option for not writing .py[co] files

2008-01-06 Thread Skip Montanaro
Changes by Skip Montanaro: -- nosy: -skip.montanaro Tracker [EMAIL PROTECTED] http://bugs.python.org/issue602345 ___ Python-bugs-list mailing list Unsubscribe:

[issue1325] zipimport.zipimporter.archive undocumented and untested

2008-01-06 Thread Georg Brandl
Georg Brandl added the comment: Added docs and tests in r59782. -- nosy: +georg.brandl resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1325 __

[issue1715] Make pydoc list submodules

2008-01-06 Thread Georg Brandl
Georg Brandl added the comment: This patch duplicates entries for package contents and submodules; this is not good. (E.g. for help(email): NAME email - A package for parsing, handling, and generating email messages. FILE /home/gbr/devel/python/Lib/email/__init__.py PACKAGE CONTENTS

[issue602345] option for not writing .py[co] files

2008-01-06 Thread Georg Brandl
Georg Brandl added the comment: Attaching new diff, with -B flag name, PYTHONDONTWRITEBYTECODE, and sys.dont_write_bytecode. Added file: http://bugs.python.org/file9079/no-pyc-flag.diff Tracker [EMAIL PROTECTED] http://bugs.python.org/issue602345

[issue683658] PyErr_Warn may cause import deadlock

2008-01-06 Thread Georg Brandl
Changes by Georg Brandl: -- status: open - pending Tracker [EMAIL PROTECTED] http://bugs.python.org/issue683658 ___ Python-bugs-list mailing list Unsubscribe:

[issue1439312] Patch for bug 1438185: os.renames deletes junction points

2008-01-06 Thread Martin v. Löwis
Martin v. Löwis added the comment: I'm skeptical. If you consider junction points similar to symlinks on POSIX, then it would be semantically correct to leave the junction point in place, independent of whether their target directory is empty or not - on Unix, rmdir fails if the target is a

[issue1743] IDLE fails to launch

2008-01-06 Thread Martin v. Löwis
Martin v. Löwis added the comment: Please open IDLE from the command line: 1. start cmd.exe 2. run path to python.exe path to python/Lib/idle/idle.py That should give you an error, please report it. -- nosy: +loewis __ Tracker [EMAIL PROTECTED]

[issue1744] readline module - set/get quote delimiters

2008-01-06 Thread Martin v. Löwis
Martin v. Löwis added the comment: As a new feature, it can't go into 2.5. Targetting for 2.6. -- nosy: +loewis versions: +Python 2.6 -Python 2.4, Python 2.5 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1744 __

[issue1744] readline module - set/get quote delimiters

2008-01-06 Thread Christian Heimes
Christian Heimes added the comment: Please provide a patch against the trunk. Don't forget to update the documentation and to add an unit test. -- keywords: +patch nosy: +tiran priority: - low __ Tracker [EMAIL PROTECTED]

[issue1622] zipfile hangs on certain zip files

2008-01-06 Thread Alan McIntyre
Alan McIntyre added the comment: Based on the ZIP spec (I'm using the one here: http://www.pkware.com/documents/casestudies/APPNOTE.TXT), I'm inclined to agree. There's a general note that says All fields unless otherwise noted are unsigned and stored in Intel low-byte:high-byte,

[issue1745] Backport of PEP 3102 keyword-only arguments to 2.6

2008-01-06 Thread Robin Stocker
Robin Stocker added the comment: Another note: Because the marshalling of code objects is changed, is there a version number of the format which has to be incremented? __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1745

[issue1772833] -q (quiet) option for python interpreter

2008-01-06 Thread Georg Brandl
Georg Brandl added the comment: Guido, ping? _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1772833 _ ___ Python-bugs-list mailing list Unsubscribe:

[issue1011893] Problems importing packages in ZIP file

2008-01-06 Thread Alan McIntyre
Alan McIntyre added the comment: I just tried out this test with the trunk and 2.5.2 from svn (on OS X, not sure if that might make a difference), and didn't get the reported error. Since the issue has apparently been fixed at some point, is there any reason not to close this issue? --

[issue774221] 2.3c1: zipfile.py confused by garbage at the very end of zip

2008-01-06 Thread Alan McIntyre
Alan McIntyre added the comment: Since there's no reply about where ZIP files with appended 'garbage' might come from, should this be closed? I agree with amk; it doesn't seem wise to ignore incorrectly formatted files without a good reason. On a related note, it seems that correctly formatted

[issue1668] -E command line parameter intent

2008-01-06 Thread Georg Brandl
Georg Brandl added the comment: This is a documentation issue, it seems. The new command-line document already says only PYTHON* vars are ignored. -- components: +Documentation -Interpreter Core nosy: +georg.brandl versions: +Python 2.6 __ Tracker [EMAIL

[issue1746] ZIP files with archive comments longer than 4k not recognized as valid by zipfile module

2008-01-06 Thread Alan McIntyre
New submission from Alan McIntyre: The current behavior of zipfile._EndRecData is to look in the last 4k of data in a file if it appears it might have an archive comment; this results in flagging proper ZIP files with comments longer than ~4074 bytes as not a ZIP file. I plan on posting a patch

[issue1747] isinstance(NotSubclassOfObject, InstanceOfAbcMeta) fails instead of returning False

2008-01-06 Thread Jeffrey Yasskin
New submission from Jeffrey Yasskin: Python 2.6a0 (trunk:59791M, Jan 6 2008, 12:22:37) [GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin Type help, copyright, credits or license for more information. import abc [30620 refs] class A: ... __metaclass__ = abc.ABCMeta ... [30650 refs]

[issue1748] contextlib.contextmanager does not use functools.wraps

2008-01-06 Thread Antoine Pitrou
New submission from Antoine Pitrou: The contextmanager function should call functools.wraps instead of having its own attribute copying code. Just something I noticed while reading the source. -- components: Library (Lib) messages: 59413 nosy: pitrou severity: minor status: open title:

[issue1750] Test: This is title

2008-01-06 Thread Martin v. Löwis
Martin v. Löwis added the comment: And another change message __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1750 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue1623] Implement PEP-3141 for Decimal

2008-01-06 Thread Jeffrey Yasskin
Jeffrey Yasskin added the comment: I think this reflects the consensus of http://mail.python.org/pipermail/python-dev/2008-January/075798.html. I haven't yet implemented Context.round() as I suggested at http://mail.python.org/pipermail/python-dev/2008-January/075920.html because there are more

[issue1750] Test: This is title

2008-01-06 Thread Martin v. Löwis
Martin v. Löwis added the comment: End of testing. -- status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1750 __ ___ Python-bugs-list mailing list

[issue1748] contextlib.contextmanager does not use functools.wraps

2008-01-06 Thread Georg Brandl
Changes by Georg Brandl: -- assignee: - ncoghlan nosy: +ncoghlan __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1748 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue1668] -E command line parameter intent

2008-01-06 Thread Guido van Rossum
Guido van Rossum added the comment: To resolve this, how about this patch (getenv.2.diff)? - change getenv(PYTHONCASEOK) - Py_GETENV() (inside #ifdef PYOS_OS2) - rename THREADDEBUG - PYTHONTHREADDEBUG and use Py_GETENV() Added file: http://bugs.python.org/file9081/getenv.2.diff

[issue602345] option for not writing .py[co] files

2008-01-06 Thread Guido van Rossum
Guido van Rossum added the comment: Looks good, please commit! (Christian: the problem with using PYC in the envar name is that it is ambiguous about what happens to PYO files...) -- resolution: - accepted Tracker [EMAIL PROTECTED]

[issue602345] option for not writing .py[co] files

2008-01-06 Thread Guido van Rossum
Guido van Rossum added the comment: PS the patch still has a problem: Python/pythonrun.c:177: error: ‘Py_ReadOnlyBytecodeFlag’ undeclared (first use in this function) Tracker [EMAIL PROTECTED] http://bugs.python.org/issue602345

[issue1747] issubclass(NotSubclassOfObject, InstanceOfAbcMeta) fails instead of returning False

2008-01-06 Thread Jeffrey Yasskin
Jeffrey Yasskin added the comment: This is certainly not the only way to fix this. Is it the best? -- keywords: +patch title: isinstance(NotSubclassOfObject, InstanceOfAbcMeta) fails instead of returning False - issubclass(NotSubclassOfObject, InstanceOfAbcMeta) fails instead of

[issue1682] Move Demo/classes/Rat.py to Lib/rational.py and fix it up.

2008-01-06 Thread Mark Dickinson
Mark Dickinson added the comment: Some random comments: take with a large pinch of salt (1) In __init__ I think you want something like: self._numerator = int(numerator)//g instead of self._numerator = int(numerator / g) and similarly for the denominator. At the moment I get, for

[issue1682] Move Demo/classes/Rat.py to Lib/rational.py and fix it up.

2008-01-06 Thread Mark Dickinson
Mark Dickinson added the comment: Two more questions: (1) should a Rational instance be hashable? (2) Should Rational(5,2) == Decimal('2.5') evaluate to True or False? If Rationals are hashable and 2.5 == Rational(5, 2) == Decimal('2.5') then the rule that objects that compare equal should

[issue1526] DeprecationWarning in zipfile.py while zipping 113000 files

2008-01-06 Thread Guido van Rossum
Guido van Rossum added the comment: I was about to check this in, when I noticed that the test runs for ~16 seconds on my state-of-the-arg hardware. I think that's too long. Perhaps it should only be run when -ulargefile is enabled? __ Tracker [EMAIL PROTECTED]

[issue1526] DeprecationWarning in zipfile.py while zipping 113000 files

2008-01-06 Thread Alan McIntyre
Alan McIntyre added the comment: Oh thanks, I meant to ask whether or not the run time was too long, but forgot. Only running when -ulargefile is enabled seems fine to me. I can tweak the patch for that if you'd like; moving it to test_zipfile64 should do that, right?

[issue1741] .pypirc not found on windows

2008-01-06 Thread Guido van Rossum
Guido van Rossum added the comment: Bug day candidate? 2.5.2 backport candidate. -- nosy: +gvanrossum __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1741 __ ___

[issue1745] Backport of PEP 3102 keyword-only arguments to 2.6

2008-01-06 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks for tackling this! What line in test_collections.py is calling a function with 255 args? I'm a bit surprised since this has always been disallowed AFAICT. I'd like to see everything related to keyword-only args included in one patch. Hopefully the

[issue1745] Backport of PEP 3102 keyword-only arguments to 2.6

2008-01-06 Thread Guido van Rossum
Changes by Guido van Rossum: -- keywords: +patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1745 __ ___ Python-bugs-list mailing list Unsubscribe:

  1   2   >