[issue5061] Inadequate documentation of the built-in function open

2009-04-27 Thread Georg Brandl

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

I've now split the mode table in two tables, one describing base modes,
and one the possible modifiers.  See r72000.

--
resolution:  - fixed
status: open - closed

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



[issue5851] Add a stream parameter to gc.set_debug

2009-04-27 Thread Nicolas Dumazet

New submission from Nicolas Dumazet nicd...@gmail.com:

Hello!

gc.set_debug is provided to help debugging a leaking program. That tool
can be very useful indeed. 

Debugging information, however, is written to sys.stderr, and there are
cases where this behavior can be a problem: chances are that stderr can
be already used to output other information.

Currently, to debug a verbose program writing to stderr, one has to
either first reduce/suppress the stderr output noise from its program
before activating set_debug, OR has to redirect the whole mixed stderr
output, and filter it afterwards. 

I'd like very much the possibility to configure myself where the gc
debugger will write its output.

My suggestion would be to have set_debug converted from set_debug(flags)
to set_debug(flags, stream=sys.stderr), stream being any valid file
object, but any solution allowing me to customize the output target of
the gc debugger would be welcome.

Thanks!

--
components: Extension Modules
messages: 86647
nosy: nicdumz
severity: normal
status: open
title: Add a stream parameter to gc.set_debug
type: feature request
versions: Python 2.7

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



[issue5852] can't use glog to find the path with square bracket

2009-04-27 Thread winterTTr

New submission from winterTTr winter...@gmail.com:

I want to list the file with glob .
The path( which is a directory ) is contain square bracket as [ab]xxx 
.  However , i can't find how to do it rightly with glob .

with the coding :

{{{
import glob
glob.glob('[ab]xxx' )
}}}

and with the path [ab]xxx really exits. 
result : []

Is there a way to do it rightly ?
Or it is a bug ?

--
components: Library (Lib), Regular Expressions, Windows
messages: 86648
nosy: winterTTr
severity: normal
status: open
title: can't use glog to find the path with square bracket
type: resource usage
versions: Python 2.5

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



[issue1588] str.format() wrongly formats complex() numbers (Py30a2)

2009-04-27 Thread Eric Smith

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

I agree this is a feature request. It comes down to:

What should the format specifier mini-language for complex numbers look
like?

Should it look like the existing mini-language for floats, but have the
format specified twice, with some sort of delimiter? Or just specified
once, and use that for both parts?

I'm sure python-ideas could argue over it for ages, but I don't see any
outcome that's much of an improvement over the suggested:
{0.real:.5f}{0.imag:+.5f}j.format(complex(1, -2/3))

--
type: behavior - feature request
versions: +Python 2.7 -Python 3.0

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



[issue5853] mimetypes.guess_type() hits recursion limit

2009-04-27 Thread djc

New submission from djc dirk...@ochtman.nl:

I've got hgweb (the Mercurial web app) crashing on guess_type() in
2.6.2, but not in 2.5.4. I'm passing in a filename like
'/home/djc/src/hg/crew/templates/static/hglogo.png'. Doesn't happen on
the REPL, but happens in side the hg serve web server.

Traceback (most recent call last):
  File /home/djc/src/hg/crew/mercurial/hgweb/server.py, line 67, in
do_POST
self.do_write()
  File /home/djc/src/hg/crew/mercurial/hgweb/server.py, line 60, in
do_write
self.do_hgweb()
  File /home/djc/src/hg/crew/mercurial/hgweb/server.py, line 124, in
do_hgweb
for chunk in self.server.application(env, self._start_response):
  File /home/djc/src/hg/crew/mercurial/hgweb/hgwebdir_mod.py, line 91,
in __call__
return self.run_wsgi(req)
  File /home/djc/src/hg/crew/mercurial/hgweb/hgwebdir_mod.py, line
132, in run_wsgi
return (staticfile(static, fname, req),)
  File /home/djc/src/hg/crew/mercurial/hgweb/common.py, line 73, in
staticfile
ct = mimetypes.guess_type(path)[0] or text/plain
  File /usr/lib/python2.6/mimetypes.py, line 244, in guess_type
return guess_type(url, strict)
(... snip ...)
  File /usr/lib/python2.6/mimetypes.py, line 244, in guess_type
return guess_type(url, strict)
RuntimeError: maximum recursion depth exceeded

--
components: Library (Lib)
messages: 86649
nosy: djc, georg.brandl
severity: normal
status: open
title: mimetypes.guess_type() hits recursion limit
versions: Python 2.6

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



[issue1588] str.format() wrongly formats complex() numbers (Py30a2)

2009-04-27 Thread Mark Dickinson

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

 What should the format specifier mini-language for complex numbers look
 like?
 Should it look like the existing mini-language for floats, but have
 the format specified twice, with some sort of delimiter?

This sounds clumsy to me.  I'd guess that in most uses you'd want the
same format for both pieces.

 Or just specified once, and use that for both parts?

That doesn't sound unreasonable.  But there might need to be some
thinking about exactly what a '+' modifier means, or how you pad with
zeros on the left when you've got two pieces to pad.

It seems simplest just to tell people to format the real and imaginary
parts by hand.  As it isn't totally obvious how to do this (e.g.,
remembering the '+' for the imaginary part), perhaps there should be a
recipe in the docs somewhere?

--

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



[issue5852] can't use glog to find the path with square bracket

2009-04-27 Thread Amaury Forgeot d'Arc

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

The bug tracker is not here to get help.
Please ask this kind of question on the comp.lang.python newsgroup.
(they will tell you that [ is a special character for glob(), and how to
escape it)

--
nosy: +amaury.forgeotdarc
resolution:  - invalid
status: open - closed

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



[issue5854] logging module's __all__ attribute not in sync with documentation

2009-04-27 Thread R. David Murray

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

The addition of __all__ was made by raymond.hettinger in r60851. 'from
xxx import *' is not a recommended style, but irregardless of that
__all__ certainly should list all of the public APIs.

--
keywords: +easy
nosy: +r.david.murray, rhettinger
priority:  - normal
stage:  - needs patch
versions: +Python 2.7, Python 3.0, Python 3.1

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



[issue5853] mimetypes.guess_type() hits recursion limit

2009-04-27 Thread djc

djc dirk...@ochtman.nl added the comment:

georg.brandl remarked it might be due to demandimport. That doesn't seem
to be the case:

 from mercurial import demandimport
 demandimport.enable()
 import mimetypes

mimetypes.guess_type('/home/djc/src/hg/crew/templates/static/hglogo.png')
('image/png', None)

--

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



[issue5854] logging module's __all__ attribute not in sync with documentation

2009-04-27 Thread Floris Bruynooghe

New submission from Floris Bruynooghe floris.bruynoo...@gmail.com:

The logging module in Python 2.6 has started to use the __all__ method.
 However it does not list all the symbols that are described in the
documentation.  Most notably the getLogger function is not in the
__all__ list, but there are others like addLevelName, getLoggerClass,
setLoggerClass, ...

This does break code that does from logging import * which suddenly
can't use getLogger etc anymore.

--
components: Library (Lib)
messages: 86653
nosy: flub
severity: normal
status: open
title: logging module's __all__ attribute not in sync with documentation
type: behavior
versions: Python 2.6

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



[issue1588] str.format() wrongly formats complex() numbers (Py30a2)

2009-04-27 Thread Eric Smith

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

Mark Dickinson wrote:
 What should the format specifier mini-language for complex numbers look
 like?
 Should it look like the existing mini-language for floats, but have
 the format specified twice, with some sort of delimiter?
 
 This sounds clumsy to me.  I'd guess that in most uses you'd want the
 same format for both pieces.

I agree, and mostly I was just trying to spark some discussion and show 
how (absurdly) far we can take this.

 Or just specified once, and use that for both parts?
 
 That doesn't sound unreasonable.  But there might need to be some
 thinking about exactly what a '+' modifier means, or how you pad with
 zeros on the left when you've got two pieces to pad.

How about this:
- we have a single specifier with the same format as floats
- we force the sign on the imaginary part to be '+', no
   matter what was specified
- we add a 'j' after the imaginary part
- we ignore any width specified (and therefor any alignment
   and padding)

 It seems simplest just to tell people to format the real and imaginary
 parts by hand.  As it isn't totally obvious how to do this (e.g.,
 remembering the '+' for the imaginary part), perhaps there should be a
 recipe in the docs somewhere?

When we document the above approach, we note the way to get full control 
as mentioned in a prior message.

I guess we should put the docs in with string formatting (since that's 
where the other builtin types are documented), although really it 
belongs in complex.__format__ by itself. But I doubt anyone would find 
it there. Maybe we could to add a pointer from the string formatting to 
complex.__format__.

--

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



[issue5854] logging module's __all__ attribute not in sync with documentation

2009-04-27 Thread Benjamin Peterson

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


--
assignee:  - vsajip
nosy: +vsajip

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



[issue5835] Deprecate PyOS_ascii_formatd

2009-04-27 Thread Eric Smith

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

Checked in for trunk (r71938) and py3k (r71989).

--
resolution:  - accepted
status: open - closed

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



[issue1588] str.format() wrongly formats complex() numbers (Py30a2)

2009-04-27 Thread Eric Smith

Changes by Eric Smith e...@trueblade.com:


--
assignee:  - eric.smith

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



[issue5855] Perhaps exponential performance of sum(listoflists, [])

2009-04-27 Thread sjohn

New submission from sjohn sebastianj...@gmx.net:

To flatten lists of lists, e.g. [[0], [1], [2], ...], I found the short
and quite python-like one-liner sum(listoflists, []). This, however,
has absolutely awful performance: while the equivalent way of iterating
by hand and extending a flat list is longer and uglier, it performs fast
and in linear time. The sum() variant takes unacceptably long. I do not
know why this should behave worse-than-linear...

--
components: Interpreter Core
files: testsumflat.py
messages: 86658
nosy: sjohn
severity: normal
status: open
title: Perhaps exponential performance of sum(listoflists, [])
type: performance
versions: Python 2.4, Python 2.5
Added file: http://bugs.python.org/file13795/testsumflat.py

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



[issue1467929] %-formatting and dicts

2009-04-27 Thread Eric Smith

Changes by Eric Smith e...@trueblade.com:


--
assignee: jafo - eric.smith
versions: +Python 2.7 -Python 2.6

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



[issue5855] Perhaps exponential performance of sum(listoflists, [])

2009-04-27 Thread Antoine Pitrou

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

No wonder it's quadratic (rather than exponential), since summing will
invoke the + operator and therefore produce a new list object at every
iteration.
If you use f = f + l in your explicit version, it becomes quadratic too.

--
nosy: +pitrou
resolution:  - invalid
status: open - closed

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



[issue5845] rlcompleter should be enabled automatically

2009-04-27 Thread Antoine Pitrou

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

He, adding completion is also something I find myself adding on every
box on which I use Python...

--
nosy: +pitrou

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



[issue1777398] IDLE Freezes After Running Scripts

2009-04-27 Thread Ross Peoples

Ross Peoples deejr...@users.sourceforge.net added the comment:

I just did a fresh install of Ubuntu Jaunty in a virtual machine, copied
and pasted the code. It ran the first time without a problem. But the
second time I ran it, the application would not exit and IDLE is frozen.
So I still have to force quit. This is with Python 2.6.

--

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



[issue5856] Minor typo in traceback example

2009-04-27 Thread Niels de Vos

New submission from Niels de Vos niels.de...@wincor-nixdorf.com:

The last example of traceback (found on
http://docs.python.org/library/traceback.html release 2.6.2) contains
a typo.

   theError = IndexError('tuple indx out of range')
   traceback.format_exception_only(type(theError), theError)
  ['IndexError: tuple index out of range\n']

IndexError('tuple indx out of range') should be IndexError('tuple index
out of range').

--
assignee: georg.brandl
components: Documentation
messages: 86662
nosy: georg.brandl, nielsdevos
severity: normal
status: open
title: Minor typo in traceback example
versions: Python 2.6

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



[issue5854] logging module's __all__ attribute not in sync with documentation

2009-04-27 Thread Vinay Sajip

Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:

Fix checked in to trunk, release26-maint and py3k.

--
resolution:  - fixed
status: open - closed

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



[issue5853] mimetypes.guess_type() hits recursion limit

2009-04-27 Thread djc

djc dirk...@ochtman.nl added the comment:

This could well be due to the SocketServer.ThreadingMixIn that's being
used by the hg serve built-in web server (since it doesn't show on REPL
or, as far as I can see, when used from within Apache + mod_wsgi).

--

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



[issue5853] mimetypes.guess_type() hits recursion limit

2009-04-27 Thread Antoine Pitrou

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

The function monkeypatching hack should be replaced with something more
robust.
(what might happen here is that init() is first called from another
thread, sets `inited` to True and then crashes for whatever reason, so
guess_type() isn't actually monkeypatched)

--
nosy: +pitrou
priority:  - normal
stage:  - needs patch
type:  - behavior
versions: +Python 2.7, Python 3.0, Python 3.1

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



[issue5853] mimetypes.guess_type() hits recursion limit

2009-04-27 Thread Antoine Pitrou

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

The plan is to replace init() with something like:

_db = None

def init():
global _db
db = ...   
# initialize database
# set it to global only when it's fully ready
_db = db

and guess_type() with:

def guess_type():
if _db is None:
   init()
return _db.guess_type()

(same for other functions)

--

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



[issue5853] mimetypes.guess_type() hits recursion limit

2009-04-27 Thread Antoine Pitrou

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

In the meantime, hgweb could probably call mimetypes.init() at the
beginning (before spawning threads).

--

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



[issue5793] Rationalize isdigit / isalpha / tolower / ... uses throughout Python source

2009-04-27 Thread Eric Smith

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

I'll implement this by adding a pyctype.h and pyctype.c, mimicking
ctype.h. I'll essentially copy and rename the methods in
bytes_methods.[ch], then change bytes_methods.h to refer to the new
versions, for backward compatibility.

--
assignee:  - eric.smith

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



[issue5856] Minor typo in traceback example

2009-04-27 Thread DSM

DSM dsm...@users.sourceforge.net added the comment:

There's more than a typo wrong with the example there-- import
traceback doesn't bring format_list into scope, and so it should be
traceback.format_list.

Patch attached which turns the example into something which passes a
doctest.

--
keywords: +patch
nosy: +dsm001
Added file: http://bugs.python.org/file13796/traceback.example.patch

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



[issue1496032] test_float segfaults with SIGFPE on FreeBSD 6.0 / Alpha

2009-04-27 Thread Mark Dickinson

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

Bob, can you still reproduce the originally reported SIGFPE?

--

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



[issue1467929] %-formatting and dicts

2009-04-27 Thread Eric Smith

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

The patch incorrectly raises an exception for:
'%(a)s %%' % {'a':'xyz'}

I'll look into fixing it.

--

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



[issue1496032] test_float segfaults with SIGFPE on FreeBSD 6.0 / Alpha

2009-04-27 Thread Mark Dickinson

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


--
assignee:  - marketdickinson

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



[issue1496032] test_float segfaults with SIGFPE on FreeBSD 6.0 / Alpha

2009-04-27 Thread Bob Ippolito

Bob Ippolito b...@redivi.com added the comment:

I don't even recall where I had access to a FreeBSD 6.0 Alpha machine, 
sorry.

--

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



[issue5856] Minor typo in traceback example

2009-04-27 Thread Georg Brandl

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

Fixed in r72007, thanks!

--
resolution:  - fixed
status: open - closed

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



[issue2572] 3.0 pickle docs -- what about old-style classes?

2009-04-27 Thread Georg Brandl

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

Okay, as the original submitter I withdraw this request.

--
resolution:  - rejected
status: open - closed

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



[issue5019] Specifying common controls DLL in manifest

2009-04-27 Thread Robin Dunn

Robin Dunn ro...@alldunn.com added the comment:

Update:  I finally worked out what needed to be done for wxPython and
while simply changing Python's manifest would have been immensely easier
what I have does seem to work well so I thought I should give some info
here for posterity.

I went back and experimented again with creating an Activation Context
in the C code that loads a proper manifest, and found that it seemed to
work in some situations and not in others.  I eventually narrowed it
down to the fact that any UI object created from within a timer event
handler would always use the processes' default context instead of any
other activated context.  (In this case that means that it would always
use the manifest embedded in python.exe instead of any other manifest,
programatically loaded or otherwise.)  Since the main frame in
wxPython's demo is loaded via a timer (when the splash screen times out)
then this made it appear that all of my prior experiments had failed,
when in fact some of them probably at least partially succeeded.

After further experimentation I found that switching wxTimer to use a
hidden window for catching and processing timer events, instead of using
a TimerProc callback, solves the problem with the new activation context
being ignored.  So I guess we can call this a microsoft bug and move on.

More details are in this thread:
http://lists.wxwidgets.org/pipermail/wxpython-dev/2009-April/004199.html

--
status: open - closed

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



[issue1496032] test_float segfaults with SIGFPE on FreeBSD 6.0 / Alpha

2009-04-27 Thread Mark Dickinson

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

No problem!  I'll close this as out of date, then.

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

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



[issue5836] Clean up float parsing code for nans and infs

2009-04-27 Thread Mark Dickinson

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

Done in r71967 (py3k), r71969 (trunk).

--
resolution:  - fixed
status: open - closed

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



[issue1492860] Integer bit operations performance improvement.

2009-04-27 Thread Mark Dickinson

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

I agree issue 1087418 is related, but why is it marked as a dependency for 
this issue?  It seems to me that either of these feature requests could be 
implemented independently of the other:  this one applies only to 2.x 
ints, while issue 1087418 applies only to 2.x longs and 3.x ints.

--

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



[issue1588] str.format() wrongly formats complex() numbers (Py30a2)

2009-04-27 Thread Mark Dickinson

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

 How about this:

 - we have a single specifier with the same format as floats
 - we force the sign on the imaginary part to be '+', no
matter what was specified
 - we add a 'j' after the imaginary part

This sounds good to me.  I assume a '+' would still affect
the sign of the real part?

 - we ignore any width specified (and therefor any alignment
and padding)

I don't see any problem with dealing with width, alignment
and padding with a user-specified fill character;  I think we
should keep these if possible.  It's just zero padding where
it's not clear what should happen.

For the bits that are disabled (e.g., zero padding), should
there be a ValueError raised, or do those bits just get
silently ignored?

--

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



[issue1588] str.format() wrongly formats complex() numbers (Py30a2)

2009-04-27 Thread Eric Smith

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

 I don't see any problem with dealing with width, alignment
 and padding with a user-specified fill character;  I think we
 should keep these if possible.  It's just zero padding where
 it's not clear what should happen.

You're correct. It's just zero padding that would be disabled.

 For the bits that are disabled (e.g., zero padding), should
 there be a ValueError raised, or do those bits just get
 silently ignored?

I think a ValueError would be best. That way if we decide to give it some
meaning in the future, we know it won't change any working code.

--

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



[issue1588] str.format() wrongly formats complex() numbers (Py30a2)

2009-04-27 Thread Mark Dickinson

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

More specifically, how about allowing widths, and the
'', '' and '^' alignment specifiers, but not '=', or
'0' for zero-padding.

I suppose that thousands separators should be permitted
here too?  Though it's difficult to imagine anyone actually
using them.  If we allow ',' but not '0' then we avoid
the crazy zero-padding--thousands-separators interaction.

--

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



[issue1588] str.format() wrongly formats complex() numbers (Py30a2)

2009-04-27 Thread Eric Smith

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

 This sounds good to me.  I assume a '+' would still affect
 the sign of the real part?

Forgot to reply to this part.

Yes, a '+', '-', or ' ' would still affect the real part, but the
imaginary part would always use '+'.

--

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



[issue1588] str.format() wrongly formats complex() numbers (Py30a2)

2009-04-27 Thread Mark Dickinson

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

 I think a ValueError would be best. That way if we decide to give it
 some meaning in the future, we know it won't change any working code.

Agreed.  It also fits with the way that other non-numeric types seem to 
behave, as in:

 format(boris, 030s)
Traceback (most recent call last):
  File stdin, line 1, in module
ValueError: '=' alignment not allowed in string format specifier

--

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



[issue5848] Minor unittest doc patch

2009-04-27 Thread Georg Brandl

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

Committed as r72036.

--
nosy: +georg.brandl
resolution:  - accepted
status: open - closed

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



[issue5850] Full example for emulating a container type

2009-04-27 Thread Raymond Hettinger

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

I think we've got this covered with the examples for the collections
module ABCs.  We have one for ListBasedSet and are adding a link for to
an OrderedSet recipe.   The ABCs themselves provide a clear path on how
to implement major container types.  The UserDict, UserList, and
UserString classes are also worked-out examples.

--
assignee: georg.brandl - rhettinger
nosy: +rhettinger

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



[issue1588] str.format() wrongly formats complex() numbers (Py30a2)

2009-04-27 Thread Eric Smith

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

 More specifically, how about allowing widths, and the
 '', '' and '^' alignment specifiers, but not '=', or
 '0' for zero-padding.

That sounds correct.

 I suppose that thousands separators should be permitted
 here too?  Though it's difficult to imagine anyone actually
 using them.  If we allow ',' but not '0' then we avoid
 the crazy zero-padding--thousands-separators interaction.

That was my thinking, too.

--

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



[issue5846] Deprecate obsolete functions in unittest

2009-04-27 Thread Georg Brandl

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

I guess adding a standard DeprecationWarning is fine in these cases.

--
nosy: +georg.brandl

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



[issue5840] Thread State and the Global Interpreter Lock section of the docs doesn't cover TLS APIs

2009-04-27 Thread Georg Brandl

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

Committed init.rst.diff in r72037.  Next step: document TLS APIs.

--

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



[issue4385] Py_Object_HEAD_INIT in Py3k

2009-04-27 Thread Georg Brandl

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

Actually, seeing that other macro docs do that as well, I'm okay with it.

--

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



[issue4685] IDLE will not open (2.6.1 on WinXP pro)

2009-04-27 Thread Ilan

Ilan idji...@yahoo.com added the comment:

I basically have been running IDLE without the subprocess.

(In C:\Python24\Lib\idlelib\PyShell.py and at line 1272 change

use_subprocess = True

to

use_subprocess = False

Save PyShell.py, restart IDLE, and you will see a message in the shell
window that IDLE is now running without the subprocess.)

It has been running fine since.

--

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



[issue5857] Return namedtuples from tokenize token generator

2009-04-27 Thread Vaibhav Mallya

New submission from Vaibhav Mallya mally...@umich.edu:

Returning an anonymous 5-tuple seems like a suboptimal interface since
it's so easy to accidentally confuse, for example, the indices of start
and end. I've used tokenize.py for several scripts in the past few weeks
and I've always ended up writing some sort of wrapper function for
generate_tokens that names the returned tuple's fields to help me avoid
mistakes like this.

I'd like to propose the following patch that simply decorates the
generate_token function and names its return values' fields. Since it's
a namedtuple, it should be fully backwards compatible with the existing
interface, but also allow member access via 

next_token.type
next_token.string
next_token.start.row, next_token.start.col
next_token.end.row, next_token.end.col
next_token.line

If this seems like a reasonable way to do things, I'd be happy to submit
relevant doc patches as well as the corresponding patch for 3.0.

--
components: Library (Lib)
files: mallyvai_tokenize.patch
keywords: patch
messages: 86691
nosy: mallyvai
severity: normal
status: open
title: Return namedtuples from tokenize token generator
type: feature request
versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1
Added file: http://bugs.python.org/file13797/mallyvai_tokenize.patch

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



[issue5858] Make complex repr and str more like float repr and str

2009-04-27 Thread Mark Dickinson

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

In all current versions of Python, the str or repr of a float always 
includes *either* an exponent, or a decimal point and at least one digit 
after the decimal point.

I propose making the str or repr of a complex number behave in the same 
way.  That is, instead of

 2+4j
(2+4j)

we'd have:

 2+4j
(2.0+4.0j)

The aims are to make complex representation more consistent with float 
representation, retain the visual reminder that the pieces of a complex 
number are floats (to me, 2+4j looks like a Gaussian integer rather than 
a complex number), simplify the implementation a little, and remove the 
ugliness where floats switch from normal to exponential notation at 
1e11, but complex numbers switch at 1e12.

See

http://mail.python.org/pipermail/python-dev/2009-April/089030.html

for some additional discussion.

--
assignee: marketdickinson
components: Interpreter Core
messages: 86692
nosy: eric.smith, marketdickinson
priority: high
severity: normal
stage: needs patch
status: open
title: Make complex repr and str more like float repr and str
type: feature request
versions: Python 3.1

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



[issue5859] Remove implicit '%f' - '%g' switch from float formatting.

2009-04-27 Thread Mark Dickinson

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

Currently, Python switches from %f to %g formatting at 1e50.  This 
applies both to the old-style percent formatting, and to the newer PEP 
3101-style formatting:

 '%f' % 2.**166
'93536104789177786765035829293842113257979682750464.00'
 '%f' % 2.**167
'1.87072e+50'

 format(2.**166, 'f')
'93536104789177786765035829293842113257979682750464.00'
 format(2.**167, 'f')
'1.87072e+50'

The main reason for the switch seems to have been implementation 
convenience:  it makes it possible to use a fixed-size buffer in
the float formatting routines.

I propose removing this feature for Python 3.1, but leaving it in place 
for 2.7.

See

http://mail.python.org/pipermail/python-dev/2009-April/089030.html

for additional discussion.

--
assignee: marketdickinson
components: Interpreter Core
messages: 86693
nosy: eric.smith, marketdickinson
priority: high
severity: normal
stage: needs patch
status: open
title: Remove implicit '%f' - '%g' switch from float formatting.
type: feature request
versions: Python 3.1

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



[issue5858] Make complex repr and str more like float repr and str

2009-04-27 Thread Raymond Hettinger

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

This should probably be discussed somewhat that all the numpy/numeric
folks can see it (since they likely comprise the largest group of users
of complex numbers).

Also note that any changes to representations tend to break peoples
doctests.  Those are particularly susceptible to this change because
of people using whole numbers for hand entered test inputs.

FWIW, Octave starts with 2+4j style formatting but if either component
has a decimal, then both switch 2.1000 + 4.000j.

My own tastes prefer the current form, but I would probably adapt quickly.

--
nosy: +rhettinger

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



[issue5853] mimetypes.guess_type() hits recursion limit

2009-04-27 Thread Antoine Pitrou

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

For the record, here is a test script showcasing the problem.

--
Added file: http://bugs.python.org/file13798/mimetest.py

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



[issue5853] mimetypes.guess_type() hits recursion limit

2009-04-27 Thread Antoine Pitrou

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

Committed a fix in r72045. Thanks for the report!

--
resolution:  - fixed
status: open - closed

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



[issue5858] Make complex repr and str more like float repr and str

2009-04-27 Thread Mark Dickinson

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

 This should probably be discussed somewhat that all the numpy/numeric
 folks can see it.

Good point; I'll post something to the numpy/scipy mailing list and see if 
I can get some reactions.

 Also note that any changes to representations tend to break peoples
 doctests.

This is the biggest minus right now for me, and it's the reason that I'm 
only proposing this for 3.1, not for 2.7.  (I guess 3.0 would have been 
better.)  My main motivation for this change came from seeing the extra 
gymnastics required to special-case complex numbers in Eric's new 
formatting code; the rest is just personal taste, I guess.

--

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



[issue5793] Rationalize isdigit / isalpha / tolower / ... uses throughout Python source

2009-04-27 Thread Eric Smith

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

Checked in to trunk (rr72040) and py3k (r72044).

Windows buildbots look okay, closing.

--
resolution:  - accepted
status: open - closed

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



[issue5857] Return namedtuples from tokenize token generator

2009-04-27 Thread Raymond Hettinger

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

Comments on the earlier patch:
* No need for an inner row/col namedtuple.  That would add little value.
* The name Token is already used in the module for a different purpose.
* The wrapper is nice looking, but it is better to in-line this patch.

Attaching an alternate patch.

--
keywords: +needs review -patch
nosy: +rhettinger
versions:  -Python 2.6, Python 3.0
Added file: http://bugs.python.org/file13799/tokenize.diff

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



[issue5860] TextIOWrapper: bad error reporting when write() is forbidden

2009-04-27 Thread Antoine Pitrou

New submission from Antoine Pitrou pit...@free.fr:

Opening an existing file in read-only text mode and trying to write to it:

 f = open(LICENSE)
 f.write()
Traceback (most recent call last):
  File stdin, line 1, in module
SystemError: null argument to internal routine

Binary files get it right though:

 f = open(LICENSE, rb)
 f.write()
Traceback (most recent call last):
  File stdin, line 1, in module
io.UnsupportedOperation: write

--
components: IO
messages: 86700
nosy: pitrou
priority: critical
severity: normal
status: open
title: TextIOWrapper: bad error reporting when write() is forbidden
type: behavior
versions: Python 3.1

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



[issue5857] Return namedtuples from tokenize token generator

2009-04-27 Thread Vaibhav Mallya

Vaibhav Mallya mally...@umich.edu added the comment:

Well, the reason I put in the inner row/col namedtuple initially was
because the first mistake I made with the original module was mixing up
the row/col indices for a particular case. It certainly caused all sorts
of weird headaches. :o)

I mean, it seems like there's no real reason it should be (row,col)
instead of (col,row) in the returned tuple; that is, it feels like the
ordering is arbitrary in and of itself.

I really feel that allowing for start.row and start.col would make the
interface completely explicit and valid semantically.

Agreed with the other two points, however.

Also, I take it there's going to be a need for an addendum to the test
suite, since the interface is being modified?

--

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



[issue5322] Python 2.6 object.__new__ argument calling autodetection faulty

2009-04-27 Thread Trundle

Trundle andy-pyt...@hammerhartes.de added the comment:

See also issue #1694663.

--

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



[issue5857] Return namedtuples from tokenize token generator

2009-04-27 Thread Raymond Hettinger

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

I strongly prefer that there not be inner named tuples.  That is going
overboard.  FWIW, row/col order is very common convention especially
when the row refers to a line number in a text block and column refers
to a character position within the row.

--

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



[issue5844] internal error on write while reading

2009-04-27 Thread Daniel Diniz

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


--
priority: normal - critical
stage: test needed - needs patch

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



[issue5860] TextIOWrapper: bad error reporting when write() is forbidden

2009-04-27 Thread DSM

DSM dsm...@users.sourceforge.net added the comment:

See also http://bugs.python.org/issue5844 , which contains a patch to test.

--
nosy: +dsm001

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



[issue5860] TextIOWrapper: bad error reporting when write() is forbidden

2009-04-27 Thread Benjamin Peterson

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


--
resolution:  - duplicate
status: open - closed

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



[issue1734234] Fast path for unicodedata.normalize()

2009-04-27 Thread Antoine Pitrou

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

Committed in r72054, r72055. Thanks for the patch!

--
resolution: accepted - fixed
status: open - closed

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



[issue1755841] Patch for [ 735515 ] urllib2 should cache 301 redir

2009-04-27 Thread Daniel Diniz

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


--
nosy: +jjlee
stage:  - patch review
type:  - feature request
versions: +Python 2.7 -Python 2.6

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



[issue735515] urllib / urllib2 should cache 301 redirections

2009-04-27 Thread Daniel Diniz

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

Patch in issue 1755841.

--
dependencies: +Patch for [ 735515 ] urllib2 should cache 301 redir
nosy: +ajaksu2
versions: +Python 2.7

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



[issue1266570] PEP 349: allow str() to return unicode

2009-04-27 Thread Daniel Diniz

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

Maybe something useful for 2.7?

--
components: +Unicode -None
nosy: +ajaksu2, ezio.melotti, haypo
stage:  - test needed
type:  - feature request
versions: +Python 2.7

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



[issue1662] [patch] assert tp_traverse in PyType_GenericAlloc()

2009-04-27 Thread Daniel Diniz

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

Bryan: can you provide a test case without external dependencies? If
not, confirming this is still valid in 2.6 would also help.

--
nosy: +ajaksu2
stage:  - test needed

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



[issue1522] pyvm module patch

2009-04-27 Thread Daniel Diniz

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

Could this be useful for the make other Python implementors lives
easier plan?

--
nosy: +ajaksu2
stage:  - test needed
type:  - feature request
versions: +Python 2.7, Python 3.1 -Python 3.0

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



[issue1522] pyvm module patch

2009-04-27 Thread Benjamin Peterson

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

I'm afraid it's too late for this.

--
nosy: +benjamin.peterson
resolution:  - rejected
status: open - closed

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




[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2009-04-27 Thread Daniel Diniz

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


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

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



[issue1602] windows console doesn't print utf8 (Py30a2)

2009-04-27 Thread Daniel Diniz

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


--
nosy: +ezio.melotti, haypo
stage:  - test needed
versions: +Python 3.1

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



[issue1524938] PEP MemoryError with a lot of available memory gc not called

2009-04-27 Thread Daniel Diniz

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


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

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



[issue1763] Winpath module - easy access to Windows directories like My Documents

2009-04-27 Thread Daniel Diniz

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


--
stage:  - patch review
versions: +Python 2.7, Python 3.1 -Python 2.6

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



[issue1707753] get status output fix for Win32

2009-04-27 Thread Daniel Diniz

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


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

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



[issue481171] Hang using files named prn.txt, etc

2009-04-27 Thread Daniel Diniz

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

Cannot reproduce the hang in 2.6.2 (Windows XP) for nul (opening and
reading returns an empty string), prn or coml. Reading from con.xxx
hangs, but it looks like it's waiting for data and Ctrl+C interrupts it.

--
nosy: +ajaksu2
priority: normal - low
stage:  - test needed
versions: +Python 2.7, Python 3.1 -Python 2.6

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



[issue2091] file accepts 'rU+' as a mode

2009-04-27 Thread Daniel Diniz

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


--
components: +IO
stage:  - patch review
versions: +Python 3.1 -Python 2.5

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



[issue2091] file accepts 'rU+' as a mode

2009-04-27 Thread Daniel Diniz

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


--
nosy: +benjamin.peterson, pitrou

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



[issue2223] regrtest.py -R not working

2009-04-27 Thread Daniel Diniz

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


--
nosy: +michael.foord
stage:  - patch review

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



[issue1755841] Patch for [ 735515 ] urllib2 should cache 301 redir

2009-04-27 Thread Skip Montanaro

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


--
nosy:  -skip.montanaro

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



[issue1662] [patch] assert tp_traverse in PyType_GenericAlloc()

2009-04-27 Thread Bryan Silverthorn

Bryan Silverthorn bc...@cornell.edu added the comment:

Well, there's no Python bug per se, hence no test case; this patch just
adds a single additional assert that might catch a particular extension
implementation mistake. It was prompted by tracking down the bug in
pygtk mentioned above.

I've attached an updated patch against r72055. It's a trivial change,
but I would suggest that someone more familiar with the Python core sign
off on it regardless.

--
Added file: http://bugs.python.org/file13800/bcs_assert_tp_traverse_r72055.patch

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



[issue1662] [patch] assert tp_traverse in PyType_GenericAlloc()

2009-04-27 Thread Bryan Silverthorn

Changes by Bryan Silverthorn bc...@cornell.edu:


Removed file: http://bugs.python.org/file8998/bcs_typeobject_assert.patch

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



[issue5861] test_urllib fails on windows

2009-04-27 Thread Hirokazu Yamamoto

New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp:

Hello. I noticed test_urllib fails on windows.

==
ERROR: test_copy (__main__.urlretrieve_FileTests)
--
Traceback (most recent call last):
  File test_urllib.py, line 241, in test_copy
test_support.TESTFN), second_temp)
  File e:\python-dev\trunk\lib\urllib.py, line 94, in urlretrieve
return _urlopener.retrieve(url, filename, reporthook, data)
  File e:\python-dev\trunk\lib\urllib.py, line 238, in retrieve
fp = self.open(url, data)
  File e:\python-dev\trunk\lib\urllib.py, line 206, in open
return getattr(self, name)(url)
  File e:\python-dev\trunk\lib\urllib.py, line 464, in open_file
return self.open_local_file(url)
  File e:\python-dev\trunk\lib\urllib.py, line 478, in open_local_file
raise IOError(e.errno, e.strerror, e.filename)
IOError: [Errno 22] ネットワークに到達できません。ネットワークのトラブル
シューテ
ィングについては、Windows ヘルプを参照してください。:
'\\E|\\python-dev\\tru
nk\\lib\\tes...@test'

(snip)

This happens since r71780. Workaround is to add | to safe list of 
  fullurl = quote(fullurl, safe=%/:=?~#+!$,;'@()*[])

# I don't know | is really safe.

--
components: Library (Lib)
messages: 86713
nosy: ocean-city
severity: normal
status: open
title: test_urllib fails on windows
versions: Python 2.7

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



[issue5861] test_urllib fails on windows

2009-04-27 Thread Hirokazu Yamamoto

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

Python 2.7a0 (trunk, Apr 28 2009, 10:23:56) [MSC v.1200 32 bit (Intel)]
on win32

Type help, copyright, credits or license for more information.
 import urllib
 urllib.pathname2url(c:/foo)
'///C|//foo'

When | above is quoted, urllib.urlopen cannot handle quoted url.

--

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



[issue5861] test_urllib fails on windows

2009-04-27 Thread Hirokazu Yamamoto

Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp:


--
dependencies: +urllib doesn't correct server returned urls

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



[issue5862] multiprocessing 'using a remote manager' example errors and possible 'from_address' code leftover

2009-04-27 Thread R. David Murray

New submission from R. David Murray rdmur...@bitdance.com:

The 'Using a remote manager' section of the multiprocessing docs has an
example of calling the (documented) 'from_address' class method of
BaseManager.  However, no such method appears to exist. I don't know if
this is a doc bug or a code bug. The __reduce__ method of BaseManager
calls type(self).from_address, and that and a similar pickle-related
call in sharedctypes are the only places it is mentioned in the module.
 It is not mentioned in the test suite.

In any case, the example does not work as written, and there appear to
be multiple errors in the another client (the read client) example.  I
haven't played with the local client example at all.

--
assignee: georg.brandl
components: Documentation, Library (Lib)
messages: 86715
nosy: georg.brandl, jnoller, r.david.murray
priority: normal
severity: normal
stage: needs patch
status: open
title: multiprocessing 'using a remote manager' example errors and possible 
'from_address' code leftover
type: behavior
versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1

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



[issue5857] Return namedtuples from tokenize token generator

2009-04-27 Thread Raymond Hettinger

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


--
assignee:  - rhettinger

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



[issue5862] multiprocessing 'using a remote manager' example errors and possible 'from_address' code leftover

2009-04-27 Thread Benjamin Peterson

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


--
assignee: georg.brandl - jnoller

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



[issue5863] bz2.BZ2File should accept other file-like objects.

2009-04-27 Thread MizardX

New submission from MizardX miza...@gmail.com:

bz2.BZ2File should, like gzip.GzipFile, accept a fileobj argument.

If implemented, you could much more easily pipe BZ2-data from other 
sources, such as stdin or a socket.

--
components: IO, Library (Lib)
messages: 86716
nosy: MizardX
severity: normal
status: open
title: bz2.BZ2File should accept other file-like objects.
type: feature request

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