[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 there's any
compatibility issues.

Added file: http://bugs.python.org/file9075/zipfile_lotsafiles.diff

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1526
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 created make it
easier to include context information (e.g. connection IDs) in logging
calls.

So: I don't think it is good behaviour for any application to create a
large (= potentially unbounded) set of loggers. The number of loggers
created should be dependent on the granularity of logging which the
application developer wants to use. If this approach is followed, the
number of loggers is unlikely to lead to memory hogging by the logging
package. So, I propose to close this ticket now, but anyone can of
course reopen it if they think there is still an issue here which needs
addressing.

I will review the docs to see if I need to clarify that loggers should
not be created on a per-connection (or analogous) basis.

--
resolution:  - out of date
status: open - closed


Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue932563

___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 changed to:
rc = os.path.expanduser('~/.pypirc') 
if os.path.exists(rc):

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1741
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, test)
Traceback (most recent call last):
  File pyshell#40, line 1, in module
os.path.relpath(test, test)
  File C:\Program Files\Python3K\Lib\ntpath.py, line 495, in relpath
return join(*rel_list)
TypeError: join() takes at least 1 positional argument (0 given)

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1742
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 PROTECTED]
http://bugs.python.org/issue1625576
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1772794
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1730372
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 system would be much 
appreciated!

--
components: IDLE
messages: 59364
nosy: richjtd
severity: normal
status: open
title: IDLE fails to launch
versions: Python 2.5

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1743
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 different messages based on IP
address (or whatever else, e.g. user name).

Also, when you say changes made to logging after this issue was created
make it easier to include context information (e.g. connection IDs) in
logging calls, that doesn't address the problem, because you have to
include that context information in every logging class while what you
really want to do is to include it once in the call to getLogger()...


Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue932563

___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 compiled with 

# Add '-DGLX_USE_TLS' to ARCH_FLAGS to enable TLS support.

as quoted from configuration files in config/ directory of Mesa source 
tree.

I use Gentoo, if you believe it matters.

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1730372
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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]
http://bugs.python.org/issue1256
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1591
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 probably send you the updated patch sometime this week; thanks for
the ping =)

Thanks,
Alberto

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1646
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
severity: normal
status: open
title: readline module - set/get quote delimiters
type: rfe
versions: Python 2.4, Python 2.5
Added file: http://bugs.python.org/file9077/p2.5.1-readline.diff

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1744
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1615275
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 function with more than 255 arguments, which results in a
SyntaxError because of the following added code in Python/ast.c. What
should be done about it?

if (nposargs + nkwonlyargs  255) {
ast_error(n, more than 255 arguments);
return NULL;
}

- The patch only adds what's in revision 52491. There is at least one
more change involving keyword-only arguments, for example issue1573. Are
there others? Should they be included in this patch or in a separate one?

- There are some changes which were generated, like Python/Python-ast.c
(which needs to be checked in separately).

- Is there documentation which needs to be updated?

--
components: Interpreter Core
files: backport-keyword-only-arguments.patch
messages: 59391
nosy: robin.stocker
severity: normal
status: open
title: Backport of PEP 3102 keyword-only arguments to 2.6
type: behavior
versions: Python 2.6
Added file: 
http://bugs.python.org/file9078/backport-keyword-only-arguments.patch

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1745
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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]
http://bugs.python.org/issue1686390
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
_parseaddr
base64mime
charset
encoders
errors
feedparser
generator
header
iterators
message
mime (package)
parser
quoprimime
test (package)
utils

SUBMODULES
_parseaddr
base64mime
charset
email
encoders
errors
feedparser
generator
header
iterators
message
mime
parser
quoprimime
sys
utils
)

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1715
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 symlink.

Given the documentation, I think the removedirs function does exactly do
what the documentation specifies as the algorithm (i.e. recursively
rmdir until an error occurs). The promise (remove all empty
intermediate directories) is not held: on POSIX, it would stop at a
symlink even if that symlink was the only entry in the directory, and on
Windows, the junction point is removed even if the target directory is
not empty. I would rather fix this in the documentation than change
something in the implementation.

If the behavior is to be changed, the documentation needs to be updated.
The patch does introduce a significant behavior change: if the last
directory is not empty, it now silently returns; previously, it would
raise OSError.

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1439312
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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]
http://bugs.python.org/issue1743
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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]
http://bugs.python.org/issue1744
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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,
low-word:high-word order. I can't find any explicit mention of any
fields that should be signed.

Since I find myself poking around in the ZIP file format today, I may
try changing all the format strings to unsigned, and writing up some
tests to check cases that can be run in a reasonable amount of time.  If
I get anything usable I'll post a patch.

--
nosy: +alanmcintyre

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1622
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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?

--
nosy: +alanmcintyre

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1011893
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 ZIP files with
comments longer than 4k will not be recognized as a ZIP file by the
zipfile module.  There's some comment about not looking at more than the
last 4k of the file for efficiency reasons, but failing to interpret a
correct file seems to override the efficiency concern of
reading/searching another 60k of data.  I'll open a separate tracker
item for this, since it's not strictly related to the original issue.

--
nosy: +alanmcintyre


Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue774221

___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 PROTECTED]
http://bugs.python.org/issue1668
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 for this later, but figured this should be
documented in case I don't get around to it.

--
components: Library (Lib)
messages: 59411
nosy: alanmcintyre
severity: normal
status: open
title: ZIP files with archive comments longer than 4k not recognized as valid 
by zipfile module
type: behavior
versions: Python 2.6

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1746
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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]
 class B:
...   pass
... 
[30659 refs]
 issubclass(B, A)
Traceback (most recent call last):
  File stdin, line 1, in module
  File /Users/jyasskin/src/python/trunk-abc/Lib/abc.py, line 191, in
__subclasscheck__
if cls in subclass.__mro__:
AttributeError: class B has no attribute '__mro__'
[30701 refs]
 


This causes Decimal to break in interesting ways when I make it subclass
numbers.Real. test_abc doesn't catch it because it declares
__metaclass__=type at the top level. :-(

This looks relatively easy to fix, so I'll work on a patch.

--
assignee: jyasskin
components: Library (Lib)
messages: 59412
nosy: gvanrossum, jyasskin
severity: normal
status: open
title: isinstance(NotSubclassOfObject, InstanceOfAbcMeta) fails instead of 
returning False
versions: Python 2.6

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1747
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: contextlib.contextmanager does not use functools.wraps
versions: Python 2.6

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1748
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 details to discuss, and I don't want to sidetrack
the discussion about basic PEP 3141 support.

The test currently fails due to issue 1747. I'll double-check that it
passes once that's fixed.

--
dependencies: +isinstance(NotSubclassOfObject, InstanceOfAbcMeta) fails instead 
of returning False
Added file: http://bugs.python.org/file9080/decimal-3141.patch

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1623
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1668
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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]
http://bugs.python.org/issue602345

___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 returning False
Added file: http://bugs.python.org/file9082/subclass_oldstyle.patch

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1747
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 example:

 Rational(10**23)
rational.Rational(1611392,1)

(2) What's the reason for repr of a Rational being rational.Rational(...), 
while repr 
of a Decimal is just Decimal(...)?  I'm not suggesting that either is wrong;  
just 
wondering whether there's some sort of guiding principle that would suggest one 
or the 
other.

(3) My first thought on looking at the _gcd function was:  Shouldn't there be 
an abs() 
somewhere in there; since the gcd of two (possibly negative) integers is often 
(usually?) defined as the largest *nonnegative* common divisor.  But on closer 
examination it's clear that the result of _gcd(a, b) has the same sign as that 
of b 
(unless b == 0).  So _gcd very cleverly chooses exactly the right sign so that 
the 
denominator after rescaling is positive.  I'm not sure whether this is a happy 
accident 
or clever design, but either way it probably deserves a comment.

(4) the __ceil__ operation could be spelt more neatly as

  return -(-a.numerator // a.denominator)

...but perhaps that just amounts to obfuscation :)

(5) It looks as though two-argument round just truncates when the second 
argument is 
negative.  Presmably this isn't what's wanted here?

 round(Rational(26), -1)  # expecting Rational(30, 1)
rational.Rational(20,1)

(6) The behaviour of the equality test is questionable when floats are 
involved.  For 
example:

 10**23 == float(10**23)  # expect False
False
 Rational(10**23) == float(10**23)  # I'd also expect False here
True

Ideally, if x is a Rational and y is a float then I'd suggest that x == y 
should return 
True only when the numeric values really are equal.  Coding this could be quite 
tricky, 
though.  One option would be to convert the float to an (exactly equal) 
Rational first--
-there's code to do this in the version of Rational.py in the sandbox.

(7) For purely selfish reasons, I for one will be very happy if/when this makes 
it into 
2.6/3.0:  I use Python a lot for teaching (geometry, number theory, linear 
algebra, 
...); it's natural to work with rational numbers in this context; and it'll be 
much 
easier to tell an interested student to just download Python than to tell them 
they also 
need gmp and gmpy, or some other third party package, just to try out the code 
examples 
I've given them.

--
nosy: +marketdickinson

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1682
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 have equal hash is going to make 
life *very* interesting...

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1682
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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]
http://bugs.python.org/issue1526
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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?

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1526
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 unittests and/or svn history will give you an idea
of what to do.

There should be docs in the reference manual.  Maybe Georg knows where.

Don't worry about the generated Python-ast.c patch.

The version number you're looking for is MAGIC in Python/import.c.

--
nosy: +georg.brandl, gvanrossum

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1745
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   >