[issue6017] Dict fails to notice addition and deletion of keys during iteration

2009-05-16 Thread Steven D'Aprano

Steven D'Aprano st...@pearwood.info added the comment:

I agree with Terry Reedy. I'm re-opening it as a documentation bug (if 
I can -- if I can't, I'll just request somebody who can do so).

--
components:  -Interpreter Core
status: closed - open

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



[issue5956] test_distutils fails for Python 3.1b1 on MacOS X

2009-05-16 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

Is it possible that Stuffit tries to unpack every compressed file found 
inside the tar file?
the wininst*.exe files are templates for installers. They likely contain  
part of the signature of a ZIP file, and Stuffit would handle them as an 
archive to unpack.

--

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



[issue5829] float('1e500') - inf, complex('1e500') - ValueError

2009-05-16 Thread Mark Dickinson

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

Patch against py3k.  If someone can review this I'll apply
it for 3.1;  otherwise, it can wait until 3.2.

--
keywords: +patch
priority:  - normal
stage: test needed - commit review
versions:  -Python 2.6, Python 3.0
Added file: http://bugs.python.org/file13993/issue5829.patch

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



[issue5829] float('1e500') - inf, complex('1e500') - ValueError

2009-05-16 Thread Mark Dickinson

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


--
components: +Interpreter Core

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



[issue5786] len(reversed([1,2,3])) does not work anymore in 2.6.2

2009-05-16 Thread Mark Dickinson

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

Is it okay with everyone to close this as wont fix?  (BTW, is there
some reason that the Resolution field isn't allowed to have an
apostrophe in it?)  There's nothing we can do about 2.6.2;  it appears
2.6.3 wasn't imminent, and as Raymond says it seems disruptive to
switch it back now.

--

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



[issue5786] len(reversed([1,2,3])) does not work anymore in 2.6.2

2009-05-16 Thread Mark Dickinson

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


--
status: open - pending

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



[issue5864] format(1234.5, '.4') gives misleading result

2009-05-16 Thread Mark Dickinson

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

Eric, any thoughts on whether this should be backported to 2.6 and 3.0?  
It looks like quite a lot of work.

--

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



[issue5864] format(1234.5, '.4') gives misleading result

2009-05-16 Thread Mark Dickinson

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


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

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



[issue5956] test_distutils fails for Python 3.1b1 on MacOS X

2009-05-16 Thread Antoine Pitrou

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

Ok, I was fearing some MacOS X-specific feature à la application bundles.
Thanks for reporting the problem anyway :)

--
resolution:  - invalid
status: open - closed

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



[issue5992] spurious space after opening parenthesis when auto-completing

2009-05-16 Thread Antoine Pitrou

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

This is with readline and rlcompleter enabled.
However, it actually does this with the installed system Python too, so
I fear some system-specific problem (perhaps a buggy readline library).

--

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



[issue6035] test_poplib Bus error with gcc-4.4 on OS X

2009-05-16 Thread Mark Dickinson

New submission from Mark Dickinson dicki...@gmail.com:

After building the py3k branch (r72674) with GCC 4.4 on OS X 10.5.7/x86
using:

CC=gcc-mp-4.4 ./configure --with-pydebug  make

test_poplib.py is crashing with a Bus error:

Macintosh-4:py3k dickinsm$ ./python.exe Lib/test/test_poplib.py
test_dele (__main__.TestPOP3Class) ... ok
test_exceptions (__main__.TestPOP3Class) ... ok
test_getwelcome (__main__.TestPOP3Class) ... ok
test_list (__main__.TestPOP3Class) ... ok
test_noop (__main__.TestPOP3Class) ... ok
test_pass_ (__main__.TestPOP3Class) ... ok
test_retr (__main__.TestPOP3Class) ... ok
test_rpop (__main__.TestPOP3Class) ... ok
test_stat (__main__.TestPOP3Class) ... ok
test_top (__main__.TestPOP3Class) ... ok
test_uidl (__main__.TestPOP3Class) ... ok
test_user (__main__.TestPOP3Class) ... ok
testTimeoutDefault (__main__.TestTimeouts) ... ok
testTimeoutNone (__main__.TestTimeouts) ... ok
testTimeoutValue (__main__.TestTimeouts) ... ok
test__all__ (__main__.TestPOP3_SSLClass) ... Bus error (core dumped)

gdb backtrace attached.

Setting priority to release blocker until we figure out that this isn't 
Python's fault.

--
components: Extension Modules
files: poplib_backtrace.txt
messages: 87866
nosy: marketdickinson
priority: release blocker
severity: normal
status: open
title: test_poplib Bus error with gcc-4.4 on OS X
type: crash
versions: Python 3.1
Added file: http://bugs.python.org/file13994/poplib_backtrace.txt

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



[issue6028] Interpreter crashes when chaining an infinite number of exceptions

2009-05-16 Thread Antoine Pitrou

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

 The code you posted causes an infinite loop in the 2.x branch as well.
 Anyway, I do not see how crashing is a desired result.

I do not see what the desired result is in your example. The code is
obviously wrong. Did you get hit by that in production code or is it
just a proof-of-concept?

Also, this is not an actual crash (as in segmentation fault). It is
the interpreter /trying to protect itself from a crash/ which would be
caused by a stack overflow, and your code is trying to circumvent that
protection.

The fact that some errors cannot be recovered from is an unavoidable
fact of life. We may try to fix this particular case, but it will do
nothing for the more general case, so we might as well not fix it.

--

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



[issue5786] len(reversed(

2009-05-16 Thread Antoine Pitrou

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

 Is it okay with everyone to close this as wont fix?  (BTW, is there
 some reason that the Resolution field isn't allowed to have an
 apostrophe in it?)  There's nothing we can do about 2.6.2;  it appears
 2.6.3 wasn't imminent, and as Raymond says it seems disruptive to
 switch it back now.

Well, the harm is done, unfortunately, and both resolutions have
analogous downsides, so we might indeed close it.

--
status: pending - open
title: len(reversed([1,2,3])) does not work anymore in 2.6.2 - len(reversed(

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



[issue5786] len(reversed(

2009-05-16 Thread Antoine Pitrou

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

Oh, answering by e-mail reopened the bug for some unknown reason.

--
status: open - pending

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



[issue6033] LOOKUP_METHOD and CALL_METHOD optimization

2009-05-16 Thread Antoine Pitrou

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

Can you give results of the richards benchmark?

--
nosy: +pitrou

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



[issue6036] test_posixpath.py

2009-05-16 Thread Philipp Hagemeister

New submission from Philipp Hagemeister phi...@phihag.de:

At line 300 (version 72674) there is the following interesting construction:

if hasattr(os, symlink):
 if hasattr(os, symlink):
  (...)
 (...)

hasattr is idempotent.

Additionally, test_posixpath.py is missing the shebang and the
svn:executable property.

--
components: Tests
files: test_posixpath-cleanup.diff
keywords: patch
messages: 87871
nosy: phihag
severity: normal
status: open
title: test_posixpath.py
versions: Python 2.7, Python 3.2
Added file: http://bugs.python.org/file13995/test_posixpath-cleanup.diff

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



[issue6036] Clean up test_posixpath.py

2009-05-16 Thread Philipp Hagemeister

Changes by Philipp Hagemeister phi...@phihag.de:


--
title: test_posixpath.py - Clean up test_posixpath.py

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



[issue6017] Dict fails to notice addition and deletion of keys during iteration

2009-05-16 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

I don't think it would be better to change the documentation to will
raise a RuntimeError or result in undefined behavior.  It already tells
you not to do this strongly enough.

--
status: open - closed

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



[issue6039] cygwin compilers should not check compiler versions

2009-05-16 Thread Cournapeau David

New submission from Cournapeau David da...@ar.media.kyoto-u.ac.jp:

cygwin compiler modules in distutils check versions of the toolchain,
and break is the version is not a released one.

I can't see the rationale for such a behavior, and it is particularly
annoying since it cannot be bypassed AFAIK. As it is the only toolchain
to use those version checks, I suggest to just remove them. This affects
every python version from 2.4 to 2.6, and possibly the 3.* versions as well.

--
assignee: tarek
components: Distutils
messages: 87876
nosy: cdavid, tarek
severity: normal
status: open
title: cygwin compilers should not check compiler versions

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



[issue6040] bdist_msi does not deal with pre-release version

2009-05-16 Thread Cournapeau David

New submission from Cournapeau David da...@ar.media.kyoto-u.ac.jp:

If bdist_msi is used on a package which has a non released version
(defined from StrictVersion), it refuses to build the package. The code
for the bdist_msi mentions that pre-release is not supported. Knowing
nothing about msi, I don't know what shall be done for it to work.

--
messages: 87877
nosy: cdavid
severity: normal
status: open
title: bdist_msi does not deal with pre-release version
versions: Python 2.4, Python 2.5, Python 2.6

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



[issue6034] Fix object.__reversed__ doc

2009-05-16 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Thanks, fixed in r72675.

--
resolution:  - fixed
status: open - closed

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



[issue6025] documentation of xml.dom.minidom.parse signature is wrong

2009-05-16 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Thanks, fixed in r72676.

--
resolution:  - fixed
status: open - closed

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



[issue6009] optparse docs say 'default' keyword is deprecated but uses it in most examples

2009-05-16 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

I agree with you, and have removed the deprecation notice in r72677.

--
resolution:  - fixed
status: open - closed

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



[issue2856] os.listdir doc should mention that Unicode decoding can fail

2009-05-16 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Fixed in r72678.

--
resolution:  - fixed
status: open - closed

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



[issue5987] Broken link to Curses Programming with Python

2009-05-16 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Yes, we're only maintaining the docs for maintained branches, and 2.5 is
now in security-fix-only status.  I've clarified the reporting bugs
document in the current docs now.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5987
___
___
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-05-16 Thread kxroberto

kxroberto kxrobe...@users.sourceforge.net added the comment:

A first thing would be to select a suitable prefix name for the Array
API. Because the Numpy people have 'stolen' PyArray_ instead of staying
home with PyNDArray_ or so ;-)

In case sb goes into this:
Other than PyList_ like stuff and existing members, think for speedy
access (like in Cython array.pxd) a direct resizing, the buffer pointer,
and something handy like this should be directly exposed:

int 
PyArr_ExtendFromBuffer(PyObject *arr, void* stuff, Py_ssize_t items)

--

___
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



[issue6035] test_poplib Bus error with gcc-4.4 on OS X

2009-05-16 Thread Mark Dickinson

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

More information:  gcc-mp-4.4 is GCC 4.4 from macports.  For
some reason the macports version of gcc is having problems, but
not the regular Apple version.

When I compile with gcc-4.2 from Apple, test_poplib.py passes.
When I compile with gcc-4.2 from macports, test_poplib.py fails as above.

Here's a small script, cut down from test_poplib.py, that generates the 
Bus error.  I'm still trying to work out whether the bug is in gcc, 
Python, or libssl.


import socket, ssl
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
ssl_sock = ssl.wrap_socket(s)
ssl_sock.connect(('www.verisign.com', 443))
file = ssl_sock.makefile('rb')
file.close()
ssl_sock.close()

--

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



[issue6025] documentation of xml.dom.minidom.parse signature is wrong

2009-05-16 Thread Philipp Hagemeister

Philipp Hagemeister phi...@phihag.de added the comment:

The patch has been applied to trunk, but not branches/py3k. Sorry for
that, I should really get into the habit of providing patches for both
branches.

--
status: closed - open

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



[issue5864] format(1234.5, '.4') gives misleading result

2009-05-16 Thread Eric Smith

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

I don't see any point in backporting to 3.0 at this point.

While it's definitely a problem in 2.6, it seems like a big change to
make in a bugfix release. I guess I'm +0 on it.

--

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



[issue6039] cygwin compilers should not check compiler versions

2009-05-16 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

The cygwincompiler module has many workarounds for problems with cygwin 
and mingw32.

Can you please show where the error is, and what is the error version of 
the tools you use?

--
nosy: +amaury.forgeotdarc

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



[issue3058] Let SimpleXMLRPCServer pass client_address to called functions.

2009-05-16 Thread samwyse

samwyse samw...@gmail.com added the comment:

A more general solution would be to pass the RequestHandler instance as
a parameter to the dispatch function.  This would allow the function to
pick out more than just the client address.  To avoid breaking
pre-existing code, this should be made optional, perhaps by adding a
keyword to the register_function method.  Something like this:

  def __init__(...):
self._include_request = set()
  def register_function(..., include_request=False):
self._include_request.add(method)

Later, the dispatch function would be invoked like this:
  kwds = {}
  if method in self._include_request:
kwds.update(request=self)
  [...]
  return self.instance._dispatch(method, params, **kwds)
  [...]
  return func(client_address, *params, **kwds)

--
nosy: +samwyse

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



[issue6033] LOOKUP_METHOD and CALL_METHOD optimization

2009-05-16 Thread Benjamin Peterson

Benjamin Peterson benja...@python.org added the comment:

With the patch:

Richards benchmark (Python) starting... [function entry_point at 0x63b430]
finished.
Total time for 10 iterations: 8.49 secs
Average time per iteration: 848.90 ms

Without:

Richards benchmark (Python) starting... [function entry_point at 0x637530]
finished.
Total time for 10 iterations: 10.46 secs
Average time per iteration: 1045.88 ms

--

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



[issue6037] MutableSequence.__iadd__ should return self

2009-05-16 Thread Benjamin Peterson

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


--
assignee:  - rhettinger
nosy: +rhettinger

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



[issue6028] Interpreter crashes when chaining an infinite number of exceptions

2009-05-16 Thread Yury

Yury yury.sobo...@gmail.com added the comment:

I knew that python handles infinite recursion and gracefully errors out,
and I knew that exception chaining was new to 3.0, so I wanted to see if
they would work together. Apparently, they do not. Yet, the code works
fine in the 2.x branch. So, the 3.0 branch introduces a bug. I am not
sure how much clearer I can make this.

The code is in no way trying to circumvent anything. If there is about
to be a stack overflow, an exception show be raised. It should then
float up the stack. This is the desired result. In fact, this is the
only sane result. In an operating system, a program should not be able
to crash the entire system. In X, a client should not be able to crash
the server. Same principle applies here.

I am sorry I simply do not see your point. This seems so obvious. There
is a correct way of handling this error. You can safely recover from it.
If you insist on a general case, I have outlined it above.

I am not terribly thrilled about your attitude of we might as well
leave it broken. Why bother working on the project at all?

--

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



[issue6028] Interpreter crashes when chaining an infinite number of exceptions

2009-05-16 Thread Antoine Pitrou

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

While we seem to disagree on whether this a real bug (and I'll leave it
at that), I'll just stress once again that a fatal error is totally
different from an uncontrolled crash like a segmentation fault -- as I
explained and although you don't seem to understand, the fatal error
mechanism is there /precisely/ to avoid uncontrolled crashes. Also, your
analogy with processes crashing an X server is flawed. You should be in
control of all the code running in your own program; Python doesn't
offer any mechanism to protect good code from badly written code when
running in the same address space -- any such expectation is misguided.

(for various ways of producing fatal errors, please search for
Py_FatalError() in the source tree)

--

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



[issue1182143] making builtin exceptions more informative

2009-05-16 Thread Antoine Pitrou

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

Beware that making exceptions hold on arbitrary objects increases the
possibility of delayed collection and reference cycles, though.
(especially in trunk where the current exception can last after the
end of an except block)

--
nosy: +pitrou

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



[issue6017] Dict fails to notice addition and deletion of keys during iteration

2009-05-16 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

The precisionist in me insists that at a minimum 'will' should be changed
to 'may'.  Otherwise either the docs are lying or the implementation
has a bug.

Or perhaps we could add a footnote about the intentionally divergent
behavior of the CPython implementation?

(As Terry pointed out these docs may be used by other implementors as a
prescriptive guide, just as the language reference is.)

--
nosy: +r.david.murray

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



[issue6025] documentation of xml.dom.minidom.parse signature is wrong

2009-05-16 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

No, you shouldn't :) It will be merged automatically.

--
status: open - closed

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



[issue6017] Dict fails to notice addition and deletion of keys during iteration

2009-05-16 Thread Steven D'Aprano

Steven D'Aprano st...@pearwood.info added the comment:

With respect Georg, given that the behaviour won't be changed, the 
documentation is simply *wrong*. It's not a matter of telling 
people don't do this -- somebody, somewhere, is going to rely on the 
documented behaviour. The docs make the clear promise that, and I 
quote, Using iteritems() while adding or deleting entries in the 
dictionary will raise a RuntimeError, but that's not what happens. 
The actual behaviour is undefined.

--

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



[issue6033] LOOKUP_METHOD and CALL_METHOD optimization

2009-05-16 Thread Antoine Pitrou

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

Similar results here.
With the patch:

Richards benchmark (Python) starting... [function entry_point at
0x7fc15b3f5848]
finished.
Total time for 4 iterations: 1.78 secs
Average time per iteration: 443.90 ms

Without the patch:

Richards benchmark (Python) starting... [function entry_point at
0x7f8b9fb20848]
finished.
Total time for 4 iterations: 2.02 secs
Average time per iteration: 503.79 ms

--

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



[issue6035] test_poplib Bus error with gcc-4.4 on OS X

2009-05-16 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
nosy: +pitrou

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



[issue6035] test_poplib Bus error with gcc-4.4 on OS X

2009-05-16 Thread Antoine Pitrou

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

Even stranger is that the crash happens in debug mode, i.e. without
optimizations.

--

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



[issue6028] Interpreter crashes when chaining an infinite number of exceptions

2009-05-16 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

 You should be in control of all the code running in your own program
This is not the case with applications that embed Python to provide 
users a way to script the application.
All the usages of Py_FatalError I've seen detect programming errors at 
the C level, or at interpreter startup.
I still take the rule that no python code should be able to crash the 
program unexpectedly.

--

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



[issue6017] Dict fails to notice addition and deletion of keys during iteration

2009-05-16 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

I wouldn't call it *wrong* as much as *not the whole truth*.  It is true
that if just one key is added or removed, a RuntimeError will be raised.
 There are probably lots of places in our docs where the whole truth
isn't told, but in a way that works if you do the sensible thing.

In this case I can neither see anyone relying on RuntimeError being
raised (except for dict's own test suite), nor an implementor looking
only at these docs, not the source, to implement one of Python's most
crucial object types.

Anyway, if you find a new wording that isn't too clumsy, I'll change it.

--

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



[issue6038] Should collections.Counter check for int?

2009-05-16 Thread Georg Brandl

Changes by Georg Brandl ge...@python.org:


--
assignee:  - rhettinger
nosy: +rhettinger

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



[issue5956] test_distutils fails for Python 3.1b1 on MacOS X

2009-05-16 Thread Jean Brouwers

Jean Brouwers mrje...@gmail.com added the comment:

Possible, I do not know and had never seen this before.

Also, I just installed the latest (free) version 13.0.3 (Intel Build 
165) of Stuffit Expander and the problem does *not* occur.  

But the older Stuffit 11.0.2 (Intel Build 627) still creates 2 files for 
each of these wininst-*.exe file, an empty directory called wininst-
X.exe and a file called wininst-X.1.exe.  And only for these particular 
wininst-*.exe files.  For other *.exe files, empry ones, binaries and 
even files named wininst-X.exe, Stuffit 11 creates only the single file.

--

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



[issue5956] test_distutils fails for Python 3.1b1 on MacOS X

2009-05-16 Thread Ned Deily

Ned Deily n...@acm.org added the comment:

Another good reason not to install Stuffit or Stuffit Expander.  These 
days OS X expands the standard open formats (i.e. .gz, .zip, .tar, etc) 
all by itself, and there are the standard command line tools as well.  
If you need Stuffit for actual stuffit archives, I think there is (or 
was) a preference in Stuffit Expander and Stuffit so you can restrict 
which formats they should process.

--
nosy: +nad

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



[issue6035] test_poplib Bus error with gcc-4.4 on OS X

2009-05-16 Thread Mark Dickinson

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

 I'm still trying to work out whether the bug is in gcc, 
 Python, or libssl.

It was, of course, none of the above.  It was a PEBCAK error.
I had two versions of openssl:  one from macports and one from
OS X, and I was using the include files from one version and
linking against the other.

Sorry for the noise.

--
resolution:  - invalid
status: open - closed

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



[issue1884] msilib.SetProperty(msilib.PID_CODEPAGE, '1252') raises 0x65d = type mismatch

2009-05-16 Thread Daniel Diniz

Changes by Daniel Diniz aja...@gmail.com:


--
stage:  - test needed
versions: +Python 2.6, Python 3.1 -Python 2.5

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



[issue1855] Codepage unset in msilib.init_database()

2009-05-16 Thread Daniel Diniz

Changes by Daniel Diniz aja...@gmail.com:


--
dependencies: +msilib.SetProperty(msilib.PID_CODEPAGE, '1252') raises 0x65d = 
type mismatch
priority: normal - low
stage:  - test needed
type: resource usage - feature request
versions: +Python 2.7, Python 3.2 -Python 2.5

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



[issue6028] Interpreter crashes when chaining an infinite number of exceptions

2009-05-16 Thread Benjamin Peterson

Benjamin Peterson benja...@python.org added the comment:

Well, perhaps something like #1195571 should be added.

--
nosy: +benjamin.peterson

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



[issue2609] Tests fail if ./@test is not writeable

2009-05-16 Thread Daniel Diniz

Changes by Daniel Diniz aja...@gmail.com:


--
nosy: +r.david.murray
priority:  - normal
versions: +Python 3.1

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



[issue2931] optparse: various problems with unicode and gettext

2009-05-16 Thread Daniel Diniz

Changes by Daniel Diniz aja...@gmail.com:


--
nosy: +ezio.melotti, haypo, loewis
priority:  - normal
stage:  - patch review
type:  - behavior
versions: +Python 2.6 -Python 2.5

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



[issue3001] RLock's are SLOW

2009-05-16 Thread Daniel Diniz

Changes by Daniel Diniz aja...@gmail.com:


--
stage:  - patch review

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



[issue4256] optparse: provide a simple way to get a programmatically useful list of options

2009-05-16 Thread Daniel Diniz

Changes by Daniel Diniz aja...@gmail.com:


--
keywords: +easy
priority:  - normal
stage:  - test needed
versions: +Python 2.7, Python 3.2 -Python 2.5

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



[issue1778] SyntaxError.offset sometimes wrong

2009-05-16 Thread Daniel Diniz

Daniel Diniz aja...@gmail.com added the comment:

Confirmed in trunk and py3k.

--
nosy: +ajaksu2
stage:  - test needed
versions: +Python 2.6, Python 3.1 -Python 2.4, Python 2.5

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



[issue1827] svnversion_init() doesn't support svn urls in sandbox/trunk

2009-05-16 Thread Daniel Diniz

Daniel Diniz aja...@gmail.com added the comment:

I'm setting as 'behavior' because ISTM that a bogus svnversion making
Python fail to start is a bug.

--
nosy: +ajaksu2
priority: normal - low
stage:  - test needed
type:  - behavior
versions: +Python 3.1 -Python 3.0

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



[issue1838] Ctypes C-level infinite recursion

2009-05-16 Thread Daniel Diniz

Daniel Diniz aja...@gmail.com added the comment:

Confirmed in trunk and py3k. Maybe we should treat ctypes segfaults that
don't involve external C code more strictly as bugs?

--
nosy: +ajaksu2
stage:  - test needed
versions: +Python 3.1

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



[issue1943] improved allocation of PyUnicode objects

2009-05-16 Thread Daniel Diniz

Daniel Diniz aja...@gmail.com added the comment:

Collin,
Can you test this patch with Unladen Swallow's benchmarks?

--
components: +Unicode
nosy: +ajaksu2, collinwinter, ezio.melotti, haypo
stage:  - test needed
versions: +Python 3.2 -Python 3.0

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



[issue2027] Module containing C implementations of common text algorithms

2009-05-16 Thread Daniel Diniz

Changes by Daniel Diniz aja...@gmail.com:


--
components: +Extension Modules, Unicode -Library (Lib)
priority: normal - low
stage:  - test needed
versions: +Python 2.7, Python 3.2 -Python 2.6

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



[issue2122] mmap.flush does not check for errors on windows

2009-05-16 Thread Daniel Diniz

Changes by Daniel Diniz aja...@gmail.com:


--
priority:  - high
stage:  - test needed
versions: +Python 3.1 -Python 2.5, Python 3.0

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



[issue2295] cPickle corner case - docs or bug?

2009-05-16 Thread Daniel Diniz

Changes by Daniel Diniz aja...@gmail.com:


--
priority:  - normal
stage:  - test needed
versions: +Python 2.6, Python 3.1 -Python 2.5

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



[issue2423] test_smtplib.py no longer butt slow

2009-05-16 Thread Daniel Diniz

Daniel Diniz aja...@gmail.com added the comment:

What platform is that? I'm sure I don't get such a long runtime for
test_smtplib on Linux. Maybe this was fixed by changes in socket or
smtplib itself?

--
nosy: +ajaksu2
versions: +Python 2.7, Python 3.2 -Python 2.6

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



[issue2489] Patch for bugs in pty.py

2009-05-16 Thread Daniel Diniz

Daniel Diniz aja...@gmail.com added the comment:

Fergus,
Can you provide a test for the _copy loop bug? IIUC, the spawn change is
an RFE and shouldn't land on the maintenance branches (or 3.1).

--
nosy: +ajaksu2
priority:  - normal
stage:  - test needed
versions: +Python 3.1 -Python 2.5, Python 3.0

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



[issue2528] Change os.access to check ACLs under Windows

2009-05-16 Thread Daniel Diniz

Changes by Daniel Diniz aja...@gmail.com:


--
components: +Windows
priority:  - normal
stage:  - patch review
type:  - feature request
versions: +Python 2.7, Python 3.2 -Python 2.6

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



[issue2690] Precompute range length

2009-05-16 Thread Daniel Diniz

Changes by Daniel Diniz aja...@gmail.com:


--
stage:  - patch review
versions: +Python 3.2 -Python 3.1

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



[issue2857] add codec for java modified utf-8

2009-05-16 Thread Daniel Diniz

Changes by Daniel Diniz aja...@gmail.com:


--
components: +Unicode
nosy: +ezio.melotti, haypo
priority:  - normal
stage:  - test needed
type:  - feature request
versions: +Python 2.7, Python 3.2 -Python 2.5

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



[issue2921] enable embedding: declare/#define only py* symbols in #includes

2009-05-16 Thread Daniel Diniz

Daniel Diniz aja...@gmail.com added the comment:

Would this break existing code? Are the benefits worth it?

--
nosy: +ajaksu2
priority:  - normal
versions: +Python 2.7, Python 3.2 -Python 2.6

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



[issue2973] _ssl compiler warnings

2009-05-16 Thread Daniel Diniz

Daniel Diniz aja...@gmail.com added the comment:

Would HEADER_ASN1_MAC_H or IMPLEMENT_ASN1_ENCODE_FUNCTIONS_const_fname help?

--
nosy: +ajaksu2

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



[issue3030] compiler warning on HP-UX

2009-05-16 Thread Daniel Diniz

Changes by Daniel Diniz aja...@gmail.com:


--
priority:  - low
type:  - behavior

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



[issue2122] mmap.flush does not check for errors on windows

2009-05-16 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
nosy: +ocean-city

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



[issue1943] improved allocation of PyUnicode objects

2009-05-16 Thread Collin Winter

Collin Winter coll...@gmail.com added the comment:

Daniel, which patch? freelists2.patch or unialloc4.patch? If these are
targeted py3k (judging by the Versions selector above), none of
Unladen Swallow's benchmarks work under 3k (we're focusing on 2.x).

--

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



[issue1424152] urllib/urllib2: HTTPS over (Squid) Proxy fails

2009-05-16 Thread Alexander Solovyov

Changes by Alexander Solovyov pira...@piranha.org.ua:


--
nosy: +piranha

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



[issue1943] improved allocation of PyUnicode objects

2009-05-16 Thread Antoine Pitrou

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

 Daniel, which patch? freelists2.patch or unialloc4.patch? If these are
 targeted py3k (judging by the Versions selector above), none of
 Unladen Swallow's benchmarks work under 3k (we're focusing on 2.x).

They target py3k indeed. Also, they need updating (at least the
uniallocX patch which is the interesting part here).

--

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



[issue6042] Document and slightly simplify lnotab tracing

2009-05-16 Thread Jeffrey Yasskin

New submission from Jeffrey Yasskin jyass...@gmail.com:

lnotab-based tracing is very complicated and isn't documented very well.
There were at least 3 comment blocks purporting to document co_lnotab,
and none did a very good job. This patch unifies them into
Objects/lnotab_notes.txt which tries to completely capture the current
state of affairs.  I'm posting this here so that people can check that I
got it right. Thanks!

I also discovered that we've attached 2 layers of patches to the basic
tracing scheme. The first layer avoids jumping to instructions that
don't start a line, to avoid problems in if statements and while loops.
The second layer discovered that jumps backward do need to trace at
instructions that don't start a line, so it added extra lnotab entries
for 'while' and 'for' loops, and added a special case for backward jumps
within the same line. I replaced these patches by treating forward and
backward jumps differently.

I could simplify this slightly more by changing PyCode_CheckLineNumber.
 It doesn't appear to be used outside of the core, but since it doesn't
start with an _, I want to double-check that changing its interface is ok.

--
components: Interpreter Core
files: lnotab.patch
keywords: needs review, patch
messages: 87919
nosy: jyasskin
severity: normal
stage: patch review
status: open
title: Document and slightly simplify lnotab tracing
versions: Python 2.7, Python 3.2
Added file: http://bugs.python.org/file13996/lnotab.patch

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



[issue3401] wsgiref can't handle unicode environments

2009-05-16 Thread Daniel Diniz

Changes by Daniel Diniz aja...@gmail.com:


--
stage:  - test needed

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



[issue3071] The ValueError raised by failing to unpack sequence should have more information.

2009-05-16 Thread Daniel Diniz

Daniel Diniz aja...@gmail.com added the comment:

What would happen with infinite iterables?

import itertools 
[foo] = itertools.count()

--
nosy: +ajaksu2
stage:  - test needed
versions: +Python 2.7, Python 3.2 -Python 2.3, Python 2.4, Python 2.5

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



[issue3132] implement PEP 3118 struct changes

2009-05-16 Thread Daniel Diniz

Daniel Diniz aja...@gmail.com added the comment:

Travis,
Do you think you can contribute for this to actually land in 3.2? Having
a critical issue slipping from 3.0 to 3.3 would be bad...

Does this supersede issue 2395 or is this a subset of that one.?

--
nosy: +ajaksu2
stage:  - test needed
versions: +Python 3.2 -Python 3.1

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



[issue2395] [Py3k] struct module changes of PEP 3118

2009-05-16 Thread Daniel Diniz

Daniel Diniz aja...@gmail.com added the comment:

We're in 3.1 beta. Can you review the status of this implementation?

--
dependencies: +implement PEP 3118 struct changes
nosy: +ajaksu2
priority:  - normal
stage:  - test needed
versions: +Python 3.1 -Python 3.0

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



[issue2397] Backport 3.0 struct module changes to 2.6

2009-05-16 Thread Daniel Diniz

Daniel Diniz aja...@gmail.com added the comment:

This risks missing 2.x if nobody adopts the implementation of PEP 3118
in 3.x: 2.7 might be the last 2.x release.

--
nosy: +ajaksu2
priority:  - low
stage:  - test needed
type:  - feature request
versions: +Python 2.7 -Python 2.6

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



[issue3163] module struct support for ssize_t and size_t

2009-05-16 Thread Daniel Diniz

Changes by Daniel Diniz aja...@gmail.com:


--
priority:  - normal
stage:  - patch review
versions: +Python 3.2

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



[issue3232] Wrong str-bytes conversion in Lib/encodings/idna.py

2009-05-16 Thread Daniel Diniz

Changes by Daniel Diniz aja...@gmail.com:


--
priority:  - normal
stage:  - test needed
versions: +Python 3.1 -Python 3.0

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



[issue3243] Support iterable bodies in httplib

2009-05-16 Thread Daniel Diniz

Changes by Daniel Diniz aja...@gmail.com:


--
priority:  - normal
stage:  - test needed
versions: +Python 3.2

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



[issue3246] configure: WARNING: sys/socket.h: present but cannot be compiled

2009-05-16 Thread Daniel Diniz

Daniel Diniz aja...@gmail.com added the comment:

ric,
Can you confirm this for 2.6?

--
nosy: +ajaksu2
priority:  - normal
stage:  - test needed
versions: +Python 2.6 -Python 2.5

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



[issue3293] incorrect comments for PyObject_ReleaseBuffer

2009-05-16 Thread Daniel Diniz

Daniel Diniz aja...@gmail.com added the comment:

Travis,
How should code, comment and PEP be reconciled?

--
nosy: +ajaksu2
stage:  - test needed
type:  - behavior

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



[issue3338] cPickle segfault with deep recursion

2009-05-16 Thread Daniel Diniz

Changes by Daniel Diniz aja...@gmail.com:


--
dependencies: +test_cpickle crash on AMD64 Windows build
priority:  - normal
versions: +Python 2.6 -Python 2.4

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



[issue3353] make built-in tokenizer available via Python C API

2009-05-16 Thread Daniel Diniz

Changes by Daniel Diniz aja...@gmail.com:


--
priority:  - normal
stage:  - test needed
versions: +Python 3.2 -Python 2.6, Python 3.0

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



[issue3354] Improve error reporting for the argument parsing API

2009-05-16 Thread Daniel Diniz

Changes by Daniel Diniz aja...@gmail.com:


--
stage:  - test needed
versions: +Python 3.2 -Python 3.1

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



[issue3356] some tests fail with 'make EXTRA_CFLAGS=-DPy_DEBUG' (test_distutils, test_set)

2009-05-16 Thread Daniel Diniz

Changes by Daniel Diniz aja...@gmail.com:


--
components: +Build
priority: high - low
title: some tests fail with Py_DEBUG (test_distutils, test_set) - some tests 
fail with 'make EXTRA_CFLAGS=-DPy_DEBUG' (test_distutils, test_set)
versions: +Python 3.1 -Python 3.0

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



[issue3435] trace.py tries to get coverage data from non Python files

2009-05-16 Thread Daniel Diniz

Changes by Daniel Diniz aja...@gmail.com:


--
priority:  - normal
stage:  - test needed
versions: +Python 2.6, Python 3.1 -Python 2.5

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



[issue5380] pty.read raises IOError when slave pty device is closed

2009-05-16 Thread Antoine Pitrou

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

Uh, a file descriptor returned by openpty() doesn't satisfy S_ISFIFO().
It's just reported as a character device by fstat (st_mode is 0o20666).
Perhaps the best thing is to just let the error propagate, since after
all the user tries to read more bytes than are available.

--
assignee: pitrou - 

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



[issue3293] incorrect comments for PyObject_ReleaseBuffer

2009-05-16 Thread Antoine Pitrou

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

PyObject_ReleaseBuffer() is dead actually.

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

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



[issue3471] PyObject_GetAttr() to get special methods

2009-05-16 Thread Daniel Diniz

Daniel Diniz aja...@gmail.com added the comment:

This snippet is fixed (returns False), see issue 2325:

import abc
isinstance(5, abc.ABCMeta)

The general PyObject_GetAttr issue should be reviewed.

--
components: +Interpreter Core
nosy: +ajaksu2, benjamin.peterson
priority:  - normal
stage:  - test needed
type:  - behavior
versions: +Python 2.6, Python 3.1

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



[issue3486] bytes.join does not accept a sequence of bytearrays

2009-05-16 Thread Daniel Diniz

Daniel Diniz aja...@gmail.com added the comment:

How about adding a note on this to 2.6 docs and be done with it?

--
nosy: +ajaksu2

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



[issue3489] add rotate{left,right} methods to bytearray

2009-05-16 Thread Daniel Diniz

Changes by Daniel Diniz aja...@gmail.com:


--
stage:  - test needed
versions: +Python 3.2 -Python 3.1

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



[issue3451] Asymptotically faster divmod and str(long)

2009-05-16 Thread Daniel Diniz

Changes by Daniel Diniz aja...@gmail.com:


--
nosy: +haypo
stage:  - patch review
versions: +Python 3.2

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



[issue3527] Py_WIN_WIDE_FILENAMES removal

2009-05-16 Thread Daniel Diniz

Changes by Daniel Diniz aja...@gmail.com:


--
components: +Windows
priority:  - normal
stage:  - patch review
type:  - feature request
versions: +Python 2.7, Python 3.1 -Python 2.5, Python 2.6, Python 3.0

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



[issue3532] bytes.tohex method

2009-05-16 Thread Daniel Diniz

Daniel Diniz aja...@gmail.com added the comment:

Looks like transform/untransform went nowhere?

--
nosy: +ajaksu2, lemburg
priority:  - normal
stage:  - patch review
versions: +Python 3.2 -Python 3.1

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



[issue3527] Py_WIN_WIDE_FILENAMES removal

2009-05-16 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
nosy: +loewis

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



[issue3541] bsddb memory leak on ubuntu

2009-05-16 Thread Daniel Diniz

Daniel Diniz aja...@gmail.com added the comment:

Confirmed in trunk.

--
nosy: +ajaksu2, jcea
priority:  - normal
stage:  - test needed
versions: +Python 2.6 -Python 2.5

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



  1   2   >