[issue5135] Expose simplegeneric function in functools module

2009-02-04 Thread Paul Moore

Paul Moore p.f.mo...@gmail.com added the comment:

Well spotted! I missed that when I checked. I will add tests and
documentation.

I agree that generic is better. I only left it as it was because the
original intent was simply to move the existing code - but that's not a
particularly good reason for keeping a clumsy name. There shouldn't be a
clash, as any more general mechanism can either be in its own module or
the existing function can be extended in a compatible manner. I'll make
this change too.

Thanks for the feedback!

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



[issue5135] Expose simplegeneric function in functools module

2009-02-04 Thread Paul Moore

Paul Moore p.f.mo...@gmail.com added the comment:

Here's an updated patch.

Added file: http://bugs.python.org/file12936/generic.patch

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



[issue5150] IDLE to support reindent.py

2009-02-04 Thread Raymond Hettinger

New submission from Raymond Hettinger rhettin...@users.sourceforge.net:

Add rstrip() to the Format menu.

Python's svn repository no longer accepts files with trailing whitespace
and it is often necessary to run reindent.py before submitting.  It
would be nice to have this as a built-in formatting tool.

--
assignee: kbk
components: IDLE
messages: 81131
nosy: kbk, rhettinger
priority: normal
severity: normal
status: open
title: IDLE to support reindent.py
type: feature request
versions: Python 2.7, Python 3.1

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



[issue5128] compileall: consider ctime

2009-02-04 Thread Martin von Gagern

Martin von Gagern martin.vgag...@gmx.net added the comment:

Not being a regular Python programmer myself, I've never even heard of a
context manager before, but this latest patch should fit the bill.

As for tests, I believe that a few two-second sleeps (as FAT has only
two second resolution iirc) should avoid the kind of problem you
describe. This latest patch includes unit tests, where the test_backdate
fails for current implementation. The others are there to express even
more basic assumptions, and can be dropped if you worry about those
seconds spent running obvious tests. The tests are based on
test_dircache, from which I copied and adapted the infrastructure for
dealing with a temporary directory.

Added file: http://bugs.python.org/file12937/compileall-timestamp3.patch

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



[issue4804] Python on Windows disables all C runtime library assertions

2009-02-04 Thread Kristján Valur Jónsson

Kristján Valur Jónsson krist...@ccpgames.com added the comment:

FYI, Microsoft has responded to my query:
https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?
FeedbackID=409955

In short:
Comments
Hello,

Thanks for the report. We will probably not be able to address this in 
our current release, but we will reconsider for future versions of the 
CRT.

Pat Brenner
Visual C++ Libraries Development

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



[issue5139] Add combinatoric counting functions to the math module.

2009-02-04 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

 I suggested to include math.npermutations_with_repetitions for
 completeness,

Ezio, itertools currently has combinations with and without *replacement*, not 
repetition.  I think 
you're talking about something slightly different (repetitions in the 
*iterable*, rather than allowing 
repeated *drawings* of the same element).  itertools already has 
'permutations_with_replacement':  it's 
called 'product'.

combinations(it, r): select r elements from it, no replacement, no order
permutations(it, r): select r elements, no replacement, order is relevant
combinations_with_replacement(it, r): replacement, no order
product(it, repeat=r): replacement, order

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



[issue4947] sys.stdout fails to use default encoding as advertised

2009-02-04 Thread Qiangning Hong

Changes by Qiangning Hong hon...@gmail.com:


--
nosy: +hongqn

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



[issue4804] Python on Windows disables all C runtime library assertions

2009-02-04 Thread Kristján Valur Jónsson

Kristján Valur Jónsson krist...@ccpgames.com added the comment:

Checked in r69268, to check strftime() and fopen()

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



[issue5109] array.array constructor very slow when passed an array object.

2009-02-04 Thread Malcolm Purvis

Malcolm Purvis malc...@purvis.id.au added the comment:

It's true that memcpy won't work when the data type changes, but I would
assume (with no evidence to back me up) that the most common case for
passing an array into the array's constructor would be when data types
are the same.  That case would be case to detect especially and use
memcpy for.

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



[issue5135] Expose simplegeneric function in functools module

2009-02-04 Thread Nick Coghlan

Nick Coghlan ncogh...@gmail.com added the comment:

The reason I like the simplegeneric name is that that is exactly what
this feature is: a *simple* generic implementation that is deliberately
limited to dispatching on the first argument (because that is easily
explained to users that are already familiar with OOP and especially the
existing Python magic method dispatch mechanism.

So the name isn't just about avoiding name clashes, it's also about
setting appropriate expectations as to what is supported. Yes, the name
is a little clumsy but one thing I do *not* want to see happen is a
swathe of feature requests asking that this become an all-singing
all-dancing generic function mechanism like RuleDispatch.

Don't forget that actually *writing* generic functions (i.e. using the
@functools.simplegeneric decorator itself) should be far less common
than using the .register() method of existing generic functions.

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



[issue3166] Make conversions from long to float correctly rounded.

2009-02-04 Thread Mark Dickinson

Changes by Mark Dickinson dicki...@gmail.com:


--
assignee:  - marketdickinson
priority:  - normal

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



[issue962772] when both maintainer and author provided, author discarded

2009-02-04 Thread Akira Kitada

Akira Kitada akit...@gmail.com added the comment:


from distutils.core import setup
setup(name=foo, author=bar, maintainer=baz)

gives me

Metadata-Version: 1.0
Name: foo
Version: 0.0.0
Summary: UNKNOWN
Home-page: UNKNOWN
Author: baz
Author-email: UNKNOWN
License: UNKNOWN
Description: UNKNOWN
Platform: UNKNOWN


--
nosy: +akitada, tarek

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



[issue5135] Expose simplegeneric function in functools module

2009-02-04 Thread Paul Moore

Paul Moore p.f.mo...@gmail.com added the comment:

Fair comment. As Ryan said, it's a bit of a bikeshed issue. I prefer
generic, on the basis that I'd prefer to keep the simple name for the
simple use - something as complex as the RuleDispatch version could use
the name dispatch (if they want to keep it the name simple) or
multimethod (to emphasize that it dispatches on more than just one
argument).

If the consensus is for keeping it as simplegeneric, I'll go with
that, but I'll wait for other views first.

BTW, another option is simply to clarify the limitations in the
documentation. I can add something there if that would be enough for you.

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



[issue3959] Add Google's ipaddr.py to the stdlib

2009-02-04 Thread pmoody

pmoody pyt...@hda3.com added the comment:

 I could live with such a choice if the netaddr authors agree that it
 is the right choice (them being experts themselves in the domain).
 I don't want to be accused of drkjam's accusation of fast-tracking
 code just because it comes from Google (which would be a false
 accusation regardless, but there is no reason to make some Python
 users unhappy because they feel they are subject to political games).

in light of david's email, would you agree that the bar for buy-in has
been met or should I now start writing a PEP and preparing offerings
for the BDFL?

Cheers,
/peter

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



[issue962772] when both maintainer and author provided, author discarded

2009-02-04 Thread Tarek Ziadé

Tarek Ziadé ziade.ta...@gmail.com added the comment:

the Author metadata uses the maintainer field *or* the author field if
the maintainer is not provided.

What would be the rational to add a new maintainer field in the PKG-INFO ?

In the first place, I am wondering what is the rational, today, to use
the maintainer argument at all.

John, can you detail this ?

--
assignee:  - tarek
type:  - feature request
versions: +Python 2.7, Python 3.1

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



[issue4285] Use a named tuple for sys.version_info

2009-02-04 Thread Eric Smith

Eric Smith e...@trueblade.com added the comment:

The doc string for sys includes:
version_info -- version information as a tuple

I'm not sure changing this to ... as a structseq makes it any more
useful, but it's more correct. Does anyone have a preference? I'd use
the same wording as float_info, but that's missing from the doc string
(and I'll deal with that as a separate issue).

Other than that, this all looks good to me. I also tested that the docs
build. I'll check it in once I get or invent new wording for the doc string.

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



[issue1019715] distutils ignores configure's --includedir

2009-02-04 Thread Tarek Ziadé

Changes by Tarek Ziadé ziade.ta...@gmail.com:


--
assignee:  - tarek
versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1

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



[issue1019715] distutils ignores configure's --includedir

2009-02-04 Thread Akira Kitada

Changes by Akira Kitada akit...@gmail.com:


--
type:  - behavior

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



[issue5151] extractall method for TarFile objects not setting owner:group on directories

2009-02-04 Thread Nicholas Patterson

New submission from Nicholas Patterson nicholas_patter...@agilent.com:

Used the TarFile object to create a bzip2 compressed tar file (seems to
have worked fine).  Then used the extractall method to restore the
archive in a new location.  All the files appear to have the same
permissions and owner:group as before, but most of the directories
('state' is only exception) have different permissions and the
owner:group are set to the UID that was running the script in this case
root:root.

Partial original location listing
/opt/fallback ls -l /opt/agilent/ipcore/02.01/config
total 112
drwxrwxrwx 2 agilent agilent  4096 Feb  3 14:07 dist
-rwxrwxrwx 1 agilent agilent   208 Feb  3 14:07 hostnameCache.xml
-rwxrwxrwx 1 agilent agilent  1000 Feb  3 14:07 hostnamecache.xsd
drwxr-xr-x 4 agilent agilent  4096 Feb  3 14:08 inuse
-rwxrwxrwx 1 agilent agilent  4019 Feb  3 14:07 log4cxx.properties
-rwxrwxrwx 1 agilent agilent  9437 Feb  3 14:07 log4cxx.xml_template
drwxrwxrwx 3 agilent agilent  4096 Feb  3 14:07 mebs
-rwxrwxrwx 1 agilent agilent  4283 Feb  3 14:07 protocol.xml
-rwxrwxrwx 1 agilent agilent  8339 Feb  3 14:07 registry.ini
drwxrwxrwx 2 agilent agilent  4096 Feb  3 14:07 state
-rwxrwxrwx 1 agilent agilent   886 Feb  3 14:07 trunknamecache.xsd

Partial new location listing
/opt/fallback ll config
total 120
drwxr-xr-x 6 rootroot 4096 Feb  3 16:38 ./
drwxrwxr-x 8 agilent agilent  4096 Feb  3 16:38 ../
drwxr-xr-x 2 rootroot 4096 Feb  3 16:38 dist/
-rwxrwxrwx 1 agilent agilent   208 Feb  3 14:07 hostnameCache.xml*
-rwxrwxrwx 1 agilent agilent  1000 Feb  3 14:07 hostnamecache.xsd*
drwxr-xr-x 4 rootroot 4096 Feb  3 16:38 inuse/
-rwxrwxrwx 1 agilent agilent  4019 Feb  3 14:07 log4cxx.properties*
-rwxrwxrwx 1 agilent agilent  9437 Feb  3 14:07 log4cxx.xml_template*
drwxr-xr-x 3 rootroot 4096 Feb  3 16:38 mebs/
-rwxrwxrwx 1 agilent agilent  4283 Feb  3 14:07 protocol.xml*
-rwxrwxrwx 1 agilent agilent  8339 Feb  3 14:07 registry.ini*
drwxrwxrwx 2 agilent agilent  4096 Feb  3 14:07 state/

--
components: None
messages: 81143
nosy: npatters
severity: normal
status: open
title: extractall method for TarFile objects not setting owner:group on 
directories
type: behavior
versions: Python 2.5

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



[issue808129] Change --changelog to accept files

2009-02-04 Thread Akira Kitada

Changes by Akira Kitada akit...@gmail.com:


--
type:  - feature request
versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1 -Python 2.3

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



[issue809163] Can't add files with spaces

2009-02-04 Thread Akira Kitada

Changes by Akira Kitada akit...@gmail.com:


--
type:  - behavior
versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1 -Python 2.3

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



[issue828336] Allow set swig include dirs in setup.py

2009-02-04 Thread Akira Kitada

Changes by Akira Kitada akit...@gmail.com:


--
nosy: +tarek
type:  - feature request
versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1 -Python 2.3

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



[issue901727] extra_path kwarg to setup() undocumented

2009-02-04 Thread Akira Kitada

Changes by Akira Kitada akit...@gmail.com:


--
assignee:  - georg.brandl
components: +Documentation
nosy: +georg.brandl, tarek
versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1

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



[issue828336] Allow set swig include dirs in setup.py

2009-02-04 Thread Tarek Ziadé

Changes by Tarek Ziadé ziade.ta...@gmail.com:


--
assignee:  - tarek

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



[issue4577] distutils: -3 warnings (apply)

2009-02-04 Thread Akira Kitada

Changes by Akira Kitada akit...@gmail.com:


--
nosy: +tarek
type:  - compile error

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



[issue3976] pprint._safe_repr is not general enough in one instance

2009-02-04 Thread Robert Kern

Changes by Robert Kern robert.k...@gmail.com:


--
nosy: +robert.kern

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



[issue3959] Add Google's ipaddr.py to the stdlib

2009-02-04 Thread Guido van Rossum

Guido van Rossum gu...@python.org added the comment:

I don't think a PEP is needed, and I do think ipaddr.py is ready for
inclusion.  All that you really need is a core developer to champion the
inclusion.

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



[issue3959] Add Google's ipaddr.py to the stdlib

2009-02-04 Thread David Moss

Changes by David Moss drk...@gmail.com:


--
nosy:  -drkjam

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



[issue3959] Add Google's ipaddr.py to the stdlib

2009-02-04 Thread Jean-Paul Calderone

Changes by Jean-Paul Calderone exar...@divmod.com:


--
nosy:  -exarkun

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



[issue2204] document ConfigParser behaviour when a file has same section multiple times

2009-02-04 Thread Yannick Gingras

Yannick Gingras yging...@ygingras.net added the comment:

The attached patch is a proof of concept for throwing an exception.

As discussed on the mailing list [1], it has some shortcomings that
should be addressed before it is merged.

[1]: http://mail.python.org/pipermail/python-dev/2009-

--
keywords: +patch
nosy: +ygingras
Added file: http://bugs.python.org/file12938/no-dups-configparser.diff

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



[issue3959] Add Google's ipaddr.py to the stdlib

2009-02-04 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Probably it has already been said, but for the record: is ipaddr's
current API ok for other libraries (mainly: netaddr) to build upon it
and provide compatible extensions or replacements, or would netaddr
become an incompatible alternative to the stdlib-provided ipaddr? The
latter would be a shame.

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



[issue3959] Add Google's ipaddr.py to the stdlib

2009-02-04 Thread Duncan McGreggor

Duncan McGreggor duncan.mcgreg...@gmail.com added the comment:

Antione,

We're (netaddr) going to try to use ipaddr if possible, but there are 
operations which we are providing to API users that aren't directly
supported by ipaddr. We haven't yet determined the level of effort
involved in trying to work with ipaddr's base classes in supporting
these, but it may be more effort (and code) than it's worth (the
benefits of using ipaddr may be lost).

In a sense, it would be a shame. But on the other hand, we have examples
where 3-rd party web frameworks don't use the built-in HTTP server, and
that hasn't been a problem. In many ways, netaddr is evolving into an IP
manipulation framework. Those that need its features can use it; those
that just need the basics will be able to get that in the stdlib.

In any case, it will be in our best interest to provide some
compatibility layer between the two :-)

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



[issue4285] Use a named tuple for sys.version_info

2009-02-04 Thread Brett Cannon

Brett Cannon br...@python.org added the comment:

On Wed, Feb 4, 2009 at 05:56, Eric Smith rep...@bugs.python.org wrote:

 Eric Smith e...@trueblade.com added the comment:

 The doc string for sys includes:
 version_info -- version information as a tuple

 I'm not sure changing this to ... as a structseq makes it any more
 useful, but it's more correct. Does anyone have a preference?

Does ... as a named tuple make sense?

-Brett

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



[issue4285] Use a named tuple for sys.version_info

2009-02-04 Thread Eric Smith

Eric Smith e...@trueblade.com added the comment:

... as a named tuple works for me. I'll go with that. Thanks!

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



[issue3959] Add Google's ipaddr.py to the stdlib

2009-02-04 Thread Guido van Rossum

Guido van Rossum gu...@python.org added the comment:

If changes to ipaddr could make things easier for netaddr's support of
advanced features, please do propose those changes!

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



[issue3959] Add Google's ipaddr.py to the stdlib

2009-02-04 Thread Martin v. Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

 in light of david's email, would you agree that the bar for buy-in has
 been met or should I now start writing a PEP and preparing offerings
 for the BDFL?

Yes, I think it can be integrated now. I'll look into it, unless
somebody is faster (it could well take some weeks until I find some
time)

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



[issue5151] extractall method for TarFile objects not setting owner:group on directories

2009-02-04 Thread Martin v. Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

Does the problem exist in 2.6 still? If you can't determine that easily,
can you please provide a reproducible test case (e.g. some tar(1)
created tar file plus a Python script)

--
nosy: +loewis

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



[issue5152] Add a JSON-RPC module

2009-02-04 Thread Raymond Hettinger

New submission from Raymond Hettinger rhettin...@users.sourceforge.net:

Add a JSON analogue to xmlrpclib.  See: 
 http://en.wikipedia.org/wiki/JSON-RPC

In some ways, it is much nicer than its XML cousin with bi-directional
communication, faster/simpler parsing, and ability to use TCP/IP
directly (not requiring HTTP transport).

--
assignee: rhettinger
messages: 81153
nosy: rhettinger
priority: normal
severity: normal
status: open
title: Add a JSON-RPC module
type: feature request
versions: Python 2.7, Python 3.1

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



[issue4124] Patch for adding default to itemgetter and attrgetter

2009-02-04 Thread Raymond Hettinger

Changes by Raymond Hettinger rhettin...@users.sourceforge.net:


--
priority:  - low

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



[issue5153] Extra ) in optparse sample

2009-02-04 Thread Adam Vandenberg

New submission from Adam Vandenberg fla...@gmail.com:

In the Callback example 6: variable arguments section of the optparse
documentation, the example code has an extra ) at the end of the last
line of the function:

setattr(parser.values, option.dest, value))

--
assignee: georg.brandl
components: Documentation
messages: 81154
nosy: adamvan, georg.brandl
severity: normal
status: open
title: Extra ) in optparse sample
versions: Python 2.6, Python 2.7

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



[issue3783] dbm.sqlite proof of concept

2009-02-04 Thread Raymond Hettinger

Raymond Hettinger rhettin...@users.sourceforge.net added the comment:

FWIW, I put an alternative in the sandbox /dbm_sqlite/alt/dbdict.py and
am attaching a copy here.  The idea is to emulate gdbm's fast mode and
delay all writes until closing.  That lets us subclass from dict and get
high-speed lookups, sets, and deletions.  Freeing ourselves from an DB
also gets us a choice of ultra-portable file formats (json, csv, pickle,
eval).

--
priority:  - low
Added file: http://bugs.python.org/file12939/dbdict.py

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



[issue5135] Expose simplegeneric function in functools module

2009-02-04 Thread Walter Dörwald

Walter Dörwald wal...@livinglogic.de added the comment:

The patch looks fine to me. Tests pass.

I have no opinion about the name. Both simplegeneric and generic are
OK to me.

I wonder if being able to use register() directly instead of as a
decorator should be dropped.

Also IMHO the Python 2.3 backwards compatibility (__name__ isn't
setable) can be dropped.

--
nosy: +doerwalter

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



[issue5152] Add a JSON-RPC module

2009-02-04 Thread Martin v. Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

I think this feature request is out of scope for this bug tracker. To
fulfill the request, one not only has to *add* the module, but to
*implement* it first.

Since there is no inherent need for such a module to be provided with
the standard library, somebody implementing it should well first publish
it on PyPI, build a community, have it used for some time, and then
propose it for inclusion (e.g. through this bug tracker). That's the
same route that the XML-RPC implementation took.

If nobody volunteers to implement such a module, chances are high that
it is because nobody actually needs a Python implementation of a
JSON-RPC client module.

--
nosy: +loewis

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



[issue5148] gzip.open breaks with 'U' flag

2009-02-04 Thread Skip Montanaro

Skip Montanaro s...@pobox.com added the comment:

Seems like this should be fairly easy to do right.  'U' needs to be
removed from the flags but then applied to the lines read from the
stream.

--
keywords: +easy
nosy: +skip.montanaro
stage:  - needs patch

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



[issue2527] Pass a namespace to timeit

2009-02-04 Thread Raymond Hettinger

Changes by Raymond Hettinger rhettin...@users.sourceforge.net:


--
priority:  - normal
versions: +Python 2.7, Python 3.1 -Python 2.6

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



[issue3783] dbm.sqlite proof of concept

2009-02-04 Thread Jean-Paul Calderone

Changes by Jean-Paul Calderone exar...@divmod.com:


--
nosy:  -exarkun

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



[issue4804] Python on Windows disables all C runtime library assertions

2009-02-04 Thread Hirokazu Yamamoto

Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:

Here is the patch implementing msg81093. (check_fd.patch)
I tested this on VC6. (test_os passed) I hope this also works on VC9 as
well.

Added file: http://bugs.python.org/file12942/check_fd.patch

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



[issue5151] extractall method for TarFile objects not setting owner:group on directories

2009-02-04 Thread Lars Gustäbel

Lars Gustäbel l...@gustaebel.de added the comment:

This is probably a duplicate of issue1735, which was fixed in r59713,
i.e. between 2.5.1 and 2.5.2. Are you by any chance using Python 2.5.1?

--
assignee:  - lars.gustaebel
nosy: +lars.gustaebel

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



[issue5151] extractall method for TarFile objects not setting owner:group on directories

2009-02-04 Thread Nicholas Patterson

Nicholas Patterson nicholas_patter...@agilent.com added the comment:

Using 2.5.0 on SLES 10 servers and 2.5.1 on Solaris 10 servers.  Have only 
tested SLES so far since that's our main platform.

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



[issue5151] extractall method for TarFile objects not setting owner:group on directories

2009-02-04 Thread Lars Gustäbel

Lars Gustäbel l...@gustaebel.de added the comment:

Could you try to do a test with the patch from issue1735? It is rather
trivial to apply.

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



[issue5151] extractall method for TarFile objects not setting owner:group on directories

2009-02-04 Thread Nicholas Patterson

Nicholas Patterson nicholas_patter...@agilent.com added the comment:

Yep that fixed it, sorry to have used up your time.  Still a bit new to the 
search feature on the site, didn't notice the form defaulted to only searching 
on open bugs/issues.

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



[issue5151] extractall method for TarFile objects not setting owner:group on directories

2009-02-04 Thread Lars Gustäbel

Lars Gustäbel l...@gustaebel.de added the comment:

Never mind! Thank you anyway for your report.

--
resolution:  - duplicate
status: open - closed

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



[issue4753] Faster opcode dispatch on gcc

2009-02-04 Thread Gabriel Genellina

Gabriel Genellina gagsl-...@yahoo.com.ar added the comment:

 Might I suggest that the TARGET and TARGET_WITH_IMPL macros not 
 include the trailing colon? 

Yes, please!

--
nosy: +gagenellina

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



[issue5015] The Py_SetPythonHome C API function is undocumented

2009-02-04 Thread Gabriel Genellina

Changes by Gabriel Genellina gagsl-...@yahoo.com.ar:


--
nosy: +gagenellina

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



[issue3959] Add Google's ipaddr.py to the stdlib

2009-02-04 Thread Duncan McGreggor

Duncan McGreggor duncan.mcgreg...@gmail.com added the comment:

 If changes to ipaddr could make things easier for netaddr's support
 of advanced features, please do propose those changes!

Thanks, Guido -- we will :-) We'll be watching closely for that and
participating as much as possible.

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



[issue1079] decode_header does not follow RFC 2047

2009-02-04 Thread Gabriel Genellina

Changes by Gabriel Genellina gagsl-...@yahoo.com.ar:


--
nosy: +gagenellina

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



[issue5141] C API for appending to arrays

2009-02-04 Thread Gabriel Genellina

Gabriel Genellina gagsl-...@yahoo.com.ar added the comment:

Arrays already support the buffer interface

--
nosy: +gagenellina

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



[issue5125] Strange locale problem with Python 3

2009-02-04 Thread Gabriel Genellina

Changes by Gabriel Genellina gagsl-...@yahoo.com.ar:


--
nosy: +gagenellina

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



[issue4285] Use a named tuple for sys.version_info

2009-02-04 Thread Christian Heimes

Christian Heimes li...@cheimes.de added the comment:

Technically it's not a named tuple. Calling it named tuple may cause
confusing. http://docs.python.org/library/os.html#os.stat calls it a
structure.

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



[issue3871] cross and native build of python for mingw32 with distutils

2009-02-04 Thread Roumen Petrov

Roumen Petrov bugtr...@roumenpetrov.info added the comment:

attached patch for trunk-20090204:
- removed patch from issue4587 (not relevant for mingw) ;
- improved static build now succeed (use --disable-shared). this is
follow-up of issue4494 + ... (don't expect loadable modules to work on
windows) ;
- restore win32.S removed in r69260. thanks thomas.

Added file: http://bugs.python.org/file12943/python-trunk-20090204-MINGW.patch

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



[issue3871] cross and native build of python for mingw32 with distutils

2009-02-04 Thread Roumen Petrov

Changes by Roumen Petrov bugtr...@roumenpetrov.info:


Removed file: http://bugs.python.org/file11665/python-trunk-MINGW.patch

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



[issue3871] cross and native build of python for mingw32 with distutils

2009-02-04 Thread Roumen Petrov

Changes by Roumen Petrov bugtr...@roumenpetrov.info:


Removed file: http://bugs.python.org/file12272/python-trunk-MINGW.patch

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



[issue4285] Use a named tuple for sys.version_info

2009-02-04 Thread Raymond Hettinger

Raymond Hettinger rhettin...@users.sourceforge.net added the comment:

 Eric Smith e...@trueblade.com added the comment:
 ... as a named tuple works for me. I'll go with that. Thanks!

+1 

Remember, named tuple is a concept, not a class.  It is anything that
provides attribute access as an alternative to indexed access (see the
definition in the glossary where time.struct_time is given as an
example).  Running the collections.named_tuple() factory function
creates a new class with named tuple features, but it is just one of
several ways of creating named tuples.

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



[issue2942] mingw/cygwin do not accept asm file as extension source

2009-02-04 Thread Roumen Petrov

Roumen Petrov bugtr...@roumenpetrov.info added the comment:

Hi shura_zam,
I test this patch in issue3871 but without success - setup.py don't try
to build ctypes module. May I ask you to post a sample.

--
nosy: +rpetrov

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



[issue5154] OSX broken poll testing doesn't work

2009-02-04 Thread Martin v. Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

In what specific way is poll() broken?

--
nosy: +loewis

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



[issue5154] OSX broken poll testing doesn't work

2009-02-04 Thread Ben Bangert

Ben Bangert b...@groovie.org added the comment:

I don't know specifically, Phil Jenvey probably would as he's the one
that told me it is. Apple apparently knows this an turns it off in their
version of Python that is supplied.

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



[issue5154] OSX broken poll testing doesn't work

2009-02-04 Thread Martin v. Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

 I don't know specifically, Phil Jenvey probably would as he's the one
 that told me it is. Apple apparently knows this an turns it off in their
 version of Python that is supplied.

That's not a sufficient reason to copy their work-around. A problem must
be understood fully before any solution is attempted. I'm -1 on
work-arounds.

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



[issue5135] Expose simplegeneric function in functools module

2009-02-04 Thread Paul Moore

Paul Moore p.f.mo...@gmail.com added the comment:

Agreed about the compatibility. It's there from pkgutil, where to be
honest, it's even less necessary, as simplegeneric was for internal use
only, there. I'm certainly not aware of any backward compatibility
requirements for functools.

Assuming nobody speaks up to the contrary, I'll rip out the
compatibility bits in the next version of the patch.

I'm unsure about the non-decorator version of register. I can imagine
use cases for it - consider pprint, for example, where you might want to
register str as the overload for your particular type. But it's not a
big deal either way.

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



[issue5154] OSX broken poll testing doesn't work

2009-02-04 Thread Ben Bangert

Ben Bangert b...@groovie.org added the comment:

Ah, sorry, misunderstanding. I'm not recommending that Python copy
Apple's patch. I was pointing out that the HAVE_BROKEN_POLL test
apparently doesn't work, and that *all* manually compiled copies of
Python done on OSX will suffer this socket 35 error without having
HAVE_POLL commented out.

As I mention in the original message, I'm not sure of the most
appropriate fix. :)

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



[issue1520877] Distutils bugfix: Read $AR from the environment/Makefile.

2009-02-04 Thread Akira Kitada

Changes by Akira Kitada akit...@gmail.com:


--
nosy: +tarek
type:  - behavior
versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1 -Python 2.5

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



[issue1276768] dirutils.mkpath (verbose option does not work)

2009-02-04 Thread Akira Kitada

Akira Kitada akit...@gmail.com added the comment:

Still present in 2.6/3.0

--
nosy: +akitada, tarek
type: feature request - behavior
versions: +Python 2.7, Python 3.0, Python 3.1

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



[issue2236] Distutils' mkpath implementation ignoring the mode parameter

2009-02-04 Thread Akira Kitada

Akira Kitada akit...@gmail.com added the comment:

Still present in 2.6/3.0

--
nosy: +akitada, tarek
type: resource usage - behavior
versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1 -Python 2.5

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



[issue3766] socket.socket.recv broken (unbearably slow)

2009-02-04 Thread Sam

Sam samsli...@gmail.com added the comment:

I know this bug is closed, but I too am experiencing it under Linux 
2.6.24-22 and Python 2.5.2.

I'm using urllib2, and it's just spending an obscene amount of cpu time 
in {method 'recv' of '_socket.socket' objects}

Anyone have any ideas?

Would switching to httplib2 help?

--
nosy: +samslists

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



[issue691291] codecs.open(filename, 'U', 'UTF-16') corrupts text

2009-02-04 Thread And Clover

And Clover a...@doxdesk.com added the comment:

 The problem is that codecs.open() forces binary mode on the underlying
file object, and this defeats the U mode.

Actually the problem is it doesn't defeat it!

The function is documented to force binary, but it actually only does
mode = mode + 'b', which can leave you with a mode of 'rUb'. This mode
should be invalid but in practice the 'U' wins out, and causes the
expected problems for UTF-16 and some East Asian codecs.

Until such time as text/universal mode is supported at the overlying
decoded stream level, I suggest that 'U' should be .replace()d out of
the mode as well as 'b' being added, as the documentation would imply.

--
nosy: +aclover

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



[issue5155] Multiprocessing.Queue created by subprocess fails when used in sub-sub-process

2009-02-04 Thread Beau Butler

New submission from Beau Butler beau.but...@gmail.com:

(Note: This issue only happens on linux - on Windows things work fine.)

Please see the attached script.

The script creates a process (TestProcess()). That process runs and
creates a sub-process (TestSubProcess()). When TestSubProcess tries to
access a Queue created by TestProcess, the .get() call fails with the
following stack trace:

Process Process-1:1:
Traceback (most recent call last):
  File /opt/python2.6/lib/python2.6/multiprocessing/process.py, line
231, in _bootstrap
self.run()
  File /opt/python2.6/lib/python2.6/multiprocessing/process.py, line
88, in run
self._target(*self._args, **self._kwargs)
  File queue_test.py, line 7, in TestSubProcess
item = q.get()# Fails with IOError if queue
created in TestProcess
  File /opt/python2.6/lib/python2.6/multiprocessing/queues.py, line
91, in get
res = self._recv()
IOError: [Errno 9] Bad file descriptor

If the same queue is created by main (top level), TestSubProcess
accesses it with no errors. This behavior can be stimulated by
uncommenting the q = multiprocessing.Queue() line in TestProcess.


Tested using:
Python 2.6.1 (r261:67517, Dec  4 2008, 16:51:00) [MSC v.1500 32 bit
(Intel)] on win32
(Installed using binary installer, windows XPSP2)

*No problems*

Python 2.6.1 (r261:67515, Jan  6 2009, 15:23:19) [GCC 4.2.4 (Ubuntu
4.2.4-1ubuntu3)] on linux2
(Compiled from source due to ubuntu 8.04 (Hardy) not having python2.6 yet)

*Fails on q.get() in TestSubProcess*

--
components: Library (Lib)
files: queue_test.py
messages: 81183
nosy: bbutler
severity: normal
status: open
title: Multiprocessing.Queue created by subprocess fails when used in 
sub-sub-process
type: crash
versions: Python 2.6
Added file: http://bugs.python.org/file12944/queue_test.py

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



[issue5155] Multiprocessing.Queue created by sub-process fails when used in sub-sub-process

2009-02-04 Thread Beau Butler

Changes by Beau Butler beau.but...@gmail.com:


--
title: Multiprocessing.Queue created by subprocess fails when used in 
sub-sub-process - Multiprocessing.Queue created by sub-process fails when used 
in sub-sub-process

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



[issue5155] Multiprocessing.Queue created by sub-process fails when used in sub-sub-process (bad file descriptor in q.get())

2009-02-04 Thread Beau Butler

Changes by Beau Butler beau.but...@gmail.com:


--
title: Multiprocessing.Queue created by sub-process fails when used in 
sub-sub-process - Multiprocessing.Queue created by sub-process fails when used 
in sub-sub-process (bad file descriptor in q.get())

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



[issue5155] Multiprocessing.Queue created by sub-process fails when used in sub-sub-process (bad file descriptor in q.get())

2009-02-04 Thread Beau Butler

Beau Butler beau.but...@gmail.com added the comment:

Also reproduced in Python3.0 on OSX 10.5

--
versions: +Python 3.0

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



[issue5148] gzip.open breaks with 'U' flag

2009-02-04 Thread Skip Montanaro

Skip Montanaro s...@pobox.com added the comment:

Here's a patch against trunk.  Extra test case and minor doc tweak
included.

--
keywords: +patch
Added file: http://bugs.python.org/file12945/gzipU.diff

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



[issue5155] Multiprocessing.Queue created by sub-process fails when used in sub-sub-process (bad file descriptor in q.get())

2009-02-04 Thread Benjamin Peterson

Changes by Benjamin Peterson benja...@python.org:


--
assignee:  - jnoller
nosy: +jnoller

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



[issue5135] Expose simplegeneric function in functools module

2009-02-04 Thread Ryan Freckleton

Ryan Freckleton ryan.freckle...@gmail.com added the comment:

I think that registering existing functions is an important use case, so
I vote for keeping the non-decorator version of register.

Another thing that we may want to document is that [simple]generic
doesn't dispatch based on registered abstract base classes.

 class A:
... pass
...
 class C:
... __metaclass__ = abc.ABCMeta
...
 C.register(A)
 @generic
... def pprint(obj):
... print str(obj)
...
 @pprint.register(C)
... def pprint_C(obj):
... print Charlie, obj
...
 pprint(C())
Charlie __main__.C object at 0xb7c5336c
 pprint(A())
__main__.A instance at 0xb7c5336c

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



[issue5148] gzip.open breaks with 'U' flag

2009-02-04 Thread Skip Montanaro

Changes by Skip Montanaro s...@pobox.com:


--
keywords: +needs review
stage: needs patch - patch review

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



[issue1757126] [PATCH] Fix ptcp154 encoding cyrillic_asian alias

2009-02-04 Thread Philip Jenvey

Changes by Philip Jenvey pjen...@users.sourceforge.net:


--
title: Fix ptcp154 encoding cyrillic_asian alias - [PATCH] Fix ptcp154 
encoding cyrillic_asian alias

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