[issue7295] test_tarfile uses a hardcoded file name

2009-11-10 Thread Lars Gustäbel

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

I attached a patch that uses TESTFN. Please verify that it works and
then one of us checks it in.

--
keywords: +patch
Added file: http://bugs.python.org/file15304/issue7295.diff

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



[issue7296] OverflowError: signed integer is greater than maximum on mips64

2009-11-10 Thread Mark Dickinson

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

Thanks for filing the report!  Some questions:

If you configure with the --with-pydebug option, and also do whatever
else (if anything) is necessary to remove the -O2 flag from the
compilation steps, does the build failure still occur?

What's the minimal Python code required to cause the failure.  Is it
enough to launch the interpreter and then just do 'import sys'?

Judging by the error message, it looks as though the OverflowError is
being set in the 'convertsimple' function in Python/getargs.c:  the
relevant code looks something like:

case 'i': {/* signed int */
int *p = va_arg(*p_va, int *);
long ival;
if (float_argument_error(arg))
return converterr(integeri, arg, msgbuf, bufsize);
ival = PyInt_AsLong(arg);
if (ival == -1  PyErr_Occurred())
return converterr(integeri, arg, msgbuf, bufsize);
else if (ival  INT_MAX) {
PyErr_SetString(PyExc_OverflowError,
signed integer is greater than maximum);
return converterr(integeri, arg, msgbuf, bufsize);
}


But this code is part of Python's general argument parsing mechanism, so
is called from many many places; we really need some way of figuring out
where it's getting called from when the build fails.  Still with a
--with-pydebug build, could you try using gdb (or an equivalent) to set
a breakpoint on the PyErr_SetString line in the (ival  INT_MAX) branch,
then do whatever is required to trigger the failure and report the
backtrace at that breakpoint?

--
nosy: +mark.dickinson

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



[issue7298] reversed(range(x, -1, -1)) is empty when x 1

2009-11-10 Thread ledave123

New submission from ledave123 ledave...@yahoo.fr:

On python 2.4.4, reversed(range()) is correct :
 list(reversed(range(12,-1,-1)))
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]

However, on python 3.1.1 :
 list(reversed(range(12,-1,-1)))
[]
which is obviously wrong.

When step is positive, the result is okay on python 3.1.1 :
 list(reversed(range(13)))
[12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0]

--
components: Interpreter Core
messages: 95104
nosy: ledave123
severity: normal
status: open
title: reversed(range(x, -1, -1)) is empty when x  1
type: behavior
versions: Python 3.1

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



[issue7298] reversed(range(x, -1, -1)) is empty when x 1

2009-11-10 Thread Mark Dickinson

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

Nice catch!  Thanks for reporting this.

get_len_of_range in Objects/rangeobject.c only works for positive steps,
but is being called with a negative step here.

I think get_len_of_range should be changed to work with both positive
and negative steps.  It's only called from one other place, and that
place also has to deal with negative steps.  (And I'm not convinced that
this place is dealing with negative steps correctly either:  it uses
simply -step to negate the step, which can overflow if step == LONG_MIN.)

I'll put a patch together.

--
assignee:  - mark.dickinson
keywords: +easy
nosy: +mark.dickinson
priority:  - critical
versions: +Python 3.2

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



[issue7290] Update 'how do I set a global variable' faq entry

2009-11-10 Thread Ole Laursen

Ole Laursen o...@iola.dk added the comment:

As the reporter of issue 7276, I think it's a clear explanation of this 
phenomonen. I think that maybe you should remove the New Python 
programmers in

New Python programmers are often surprised when they get this error in 
previously working code when they modify it by adding an assignment 
statement somewhere in the body of a function.

so say something like

It can be a surprise to get this error in previously working code when it 
is modified by adding an assignment statement somewhere in a function 
body.

--
nosy: +olau

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



[issue7298] reversed(range(x, -1, -1)) is empty when x 1

2009-11-10 Thread Mark Dickinson

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

There's another problem with range_reverse:  it uses a short range (all
fields longs) if start, stop and step fit into a C long.  But it doesn't
check whether the length fits into a C long.  This leads to the following:

 list(reversed(range(-1, 2**63-1)))
[]

(this is on a 64-bit machine;  for a 32-bit machine the same failure
should occur with 2**31-1 in place of 2**63-1).

--

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



[issue755660] allow HTMLParser to continue after a parse error

2009-11-10 Thread Francesco Frassinelli

Francesco Frassinelli frap...@gmail.com added the comment:

Site: http://ftp.vim.org/pub/vim/unstable/patches/

Outuput without error customized function:
[...]
  File ./takeit.py, line 54, in inspect
parser.feed(data.read().decode())
  File /home/frafra/Scrivania/takeit/html/parser.py, line 107, in feed
self.goahead(0)
  File /home/frafra/Scrivania/takeit/html/parser.py, line 163, in goahead
k = self.parse_declaration(i)
  File /usr/local/lib/python3.1/_markupbase.py, line 97, in
parse_declaration
decltype, j = self._scan_name(j, i)
  File /usr/local/lib/python3.1/_markupbase.py, line 387, in _scan_name
% rawdata[declstartpos:declstartpos+20])
  File /home/frafra/Scrivania/takeit/html/parser.py, line 122, in error
raise HTMLParseError(message, self.getpos())
html.parser.HTMLParseError: expected name token at '! gives an error
me', at line 153, column 48

Output with error customized function:
[...]
  File ./takeit.py, line 55, in inspect
parser.feed(data.read().decode())
  File /home/frafra/Scrivania/takeit/html/parser.py, line 107, in feed
self.goahead(0)
  File /home/frafra/Scrivania/takeit/html/parser.py, line 163, in goahead
k = self.parse_declaration(i)
  File /usr/local/lib/python3.1/_markupbase.py, line 97, in
parse_declaration
decltype, j = self._scan_name(j, i)
TypeError: 'NoneType' object is not iterable

--

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



[issue755660] allow HTMLParser to continue after a parse error

2009-11-10 Thread Francesco Frassinelli

Francesco Frassinelli frap...@gmail.com added the comment:

I'm using Python 3.1.1 and the patch (patch.txt, provided by smroid)
works very well. It's usefull, and I really need it, thanks :)
Without this patch, I can't parse: http://ftp.vim.org/pub/vim/ (due to a
fake tag, like u...@mail.com), and many others websites.

I hope this patch will be merged in Python 3.2 :)

--
nosy: +frafra

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



[issue7298] reversed(range(x, -1, -1)) is empty when x 1

2009-11-10 Thread Mark Dickinson

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

Further investigations show that range_iter has the same problem.  :-(

 for x in range(-1, 2**63-1): print(x)
...
(no output)

This really needs to be fixed.  Upgrading to release blocker, and
removing the easy flag.

--
keywords:  -easy
priority: critical - release blocker

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



[issue7298] reversed(range(x, -1, -1)) is empty when x 1

2009-11-10 Thread Eric Smith

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


--
nosy: +eric.smith

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



[issue7299] setup.py install doesn't honor PYTHONUSERBASE

2009-11-10 Thread Matthias Klose

New submission from Matthias Klose d...@debian.org:

Got an user report about setup.py install not honoring PYTHONUSERBASE.
Is this by design? If not, the attached patch seems to implement this
functionality.

--
assignee: tarek
components: Distutils
files: userbase.diff
keywords: patch, patch
messages: 95111
nosy: doko, tarek
severity: normal
status: open
title: setup.py install doesn't honor PYTHONUSERBASE
type: feature request
versions: Python 2.7
Added file: http://bugs.python.org/file15305/userbase.diff

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



[issue7299] setup.py install doesn't honor PYTHONUSERBASE

2009-11-10 Thread Tarek Ziadé

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

install_userbase is using USER_BASE which is in site.py.

This value is initialized when Python starts, and does check for
PYTHONUSERBASE in the environ. (if ENABLE_USER_SITE is true)

If this doesn't happen, this is most likely because the user can't write
to its .local.

If he can, you need to debug the Python starting process (site.main())
to see why it's not used.

--

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



[issue7267] format method: c presentation type broken

2009-11-10 Thread Eric Smith

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

 so str.format() might raise an OverflowError for values = 128 (or =
256?)

Maybe, but the issue you reported is in unicode.format() (not
str.format()), and I think that should be fixed. I'm trying to think of
how best to address it.

As for the second issue you raise (which I think is that str.format()
can't take a unicode argument), would you mind opening a separate issue
for this and assigning it to me? Thanks.

--

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



[issue7267] format method: c presentation type broken

2009-11-10 Thread Walter Dörwald

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

Done: issue 7300.

--

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



[issue7300] Unicode arguments in str.format()

2009-11-10 Thread Walter Dörwald

New submission from Walter Dörwald wal...@livinglogic.de:

str.format() doesn't handle unicode arguments:

Python 2.6.4 (r264:75706, Oct 27 2009, 15:18:04) 
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type help, copyright, credits or license for more information.
 '{0}'.format(u'\u3042')
Traceback (most recent call last):
  File stdin, line 1, in module
UnicodeEncodeError: 'ascii' codec can't encode character u'\u3042' in
position 0: ordinal not in range(128)

Unicode arguments should be treated in the same way as the % operator
does it: by promoting the format string to unicode:

 '%s' % u'\u3042'
u'\u3042'

--
assignee: eric.smith
components: Interpreter Core
messages: 95114
nosy: doerwalter, eric.smith
severity: normal
status: open
title: Unicode arguments in str.format()
type: behavior
versions: Python 2.6

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



[issue7298] reversed(range(x, -1, -1)) is empty when x 1

2009-11-10 Thread Mark Dickinson

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

Here are some tests.

--
keywords: +patch
stage:  - needs patch
Added file: http://bugs.python.org/file15306/issue7298_test.patch

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



[issue7301] Add environment variable $PYTHONWARNINGS

2009-11-10 Thread Barry A. Warsaw

New submission from Barry A. Warsaw ba...@python.org:

It would be very useful to have an environment variable $PYTHONWARNINGS,
tied to the -W option for silencing various warnings (most importantly,
DeprecationWarnings).

Use case: a test suite running many subprocesses, testing that those
subproc output is clean.  DeprecationWarnings cannot easily be
suppressed by passing -W flags all around or using liberally sprinkled
filterwarnings().  Setting $PYTHONWARNINGS once and for all to silence
all processes would be very useful.

--
components: Library (Lib)
messages: 95117
nosy: barry
severity: normal
status: open
title: Add environment variable $PYTHONWARNINGS
type: feature request
versions: Python 2.7, Python 3.2

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



[issue7296] OverflowError: signed integer is greater than maximum on mips64

2009-11-10 Thread jasper

jasper jas...@humppa.nl added the comment:

After properly compiling with -O0, it actually gets a lot further in the
build. It crashes elsewhere though:

PYTHONPATH=/usr/obj/ports/Python-2.6.3/fake-sgi/usr/local/lib/python2.6
   ./python -Wi -tt
/usr/obj/ports/Python-2.6.3/fake-sgi/usr/local/lib/python2.6/compileall.py
 -d /usr/local/lib/python2.6 -f  -x 'bad_coding|badsyntax|site-packages'
/usr/obj/ports/Python-2.6.3/fake-sgi/usr/local/lib/python2.6
Floating point exception (core dumped)

Attached is the full build log with the backtrace of that core file.

--
Added file: http://bugs.python.org/file15307/Debug_build.log

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



[issue2422] Automatically disable pymalloc when running under valgrind

2009-11-10 Thread Dave Malcolm

Changes by Dave Malcolm dmalc...@redhat.com:


--
nosy: +dmalcolm

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



[issue2399] Patches for Tools/msi

2009-11-10 Thread Rene Dudfield

Rene Dudfield ill...@users.sourceforge.net added the comment:

Adding distutils to components for this old msi patch.

These seem like useful things for those making msi packages with distutils.

--
components: +Distutils
nosy: +illume

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



[issue7296] OverflowError: signed integer is greater than maximum on mips64

2009-11-10 Thread Mark Dickinson

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

Hmm.  I don't understand that backtrace at all.  It seems to say that
the conversion of this particular double value (2.34e17) to long is
causing some kind of arithmetic exception.  I'd assume overflow, except
that the configure script says sizeof(long) == 8, and a 64-bit long
should be plenty large enough to hold the result of the conversion.

Is it possible that the configure script is somehow ending up with the
wrong value for SIZEOF_LONG?  Or do C longs definitely have width 64 on
this platform?

--

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



[issue7296] OverflowError: signed integer is greater than maximum on mips64

2009-11-10 Thread jasper

jasper jas...@humppa.nl added the comment:

this little test program:
#include unistd.h
int main(int argc, char*argv[])
{
  printf(short = %d\n, sizeof(short));
  printf(int = %d\n, sizeof(int));
  printf(float = %d\n, sizeof(float));
  printf(long = %d\n, sizeof(long));
  printf(double = %d\n, sizeof(double));
  printf(long long = %d\n, sizeof(long long));
  printf(double long = %d\n, sizeof(double long));
  return 0;
}
gives the following values on mips64:
short = 2
int = 4
float = 4
long = 8
double = 8
long long = 8
double long = 16

is there any other thing I should check?

--

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



[issue1235] CGIHTTPRequestHandler.run_cgi() does not run on Windows if sys.executable contains blanks

2009-11-10 Thread Senthil Kumaran

Senthil Kumaran orsent...@gmail.com added the comment:

drukker: I verified your patch. Looks fine for changes made to the
subprocess call. 

You mentioned: I've also unified the Unix and Windows portions in
run_cgi.  Both now use subprocess.
I don't see it in the patch. Was it that you assumed changing the
variable to from cmdline to 'args' makes it unified for windows and
linux? But it does not.

Irrespective, this report can be addressed by the changes you suggested.

--
assignee:  - orsenthil
nosy: +orsenthil

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



[issue7296] OverflowError: signed integer is greater than maximum on mips64

2009-11-10 Thread Mark Dickinson

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

Sorry, I'm running out of ideas.  The traceback is truly baffling.

I'm not sure why you're configuring with --with-fpectl.  Does removing 
this make any difference?

Maybe you could also try copying _PyHash_Double into a small test program, 
calling it with an input of 2.34e17 (get rid of the Python-specific calls 
in the if-branch, which I believe isn't taken in this case anyway) and see 
if you can reproduce the FP signal there.

--

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



[issue6393] OS X: python3 from python-3.1.dmg crashes at startup

2009-11-10 Thread Ned Deily

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

The missing return result in the else case has been subsequently fixed in 
r75539 (py3k) and r75541 (3.0) so this issue should be re-closed.

--

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



[issue7302] Wrong link to Python Language Mapping Specification

2009-11-10 Thread Egon Frerich

New submission from Egon Frerich e.frer...@nord-com.net:

There is a wrong link in
 
http://docs.python.org/library/xml.dom.html#domimplementation-objects

Python Language Mapping Specification
is linked to
http://www.omg.org/docs/formal/02-11-05.pdf

but I assume it should be

http://www.omg.org/spec/PYTH/1.2/PDF

--
assignee: georg.brandl
components: Documentation
messages: 95126
nosy: efrerich, georg.brandl
severity: normal
status: open
title: Wrong link to Python Language Mapping Specification

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



[issue7072] isspace(0xa0) is true on Mac OS X

2009-11-10 Thread Ned Deily

Changes by Ned Deily n...@acm.org:


--
assignee:  - ronaldoussoren
components: +Macintosh
nosy: +ronaldoussoren
versions:  -Python 3.0

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



[issue1235] CGIHTTPRequestHandler.run_cgi() does not run on Windows if sys.executable contains blanks

2009-11-10 Thread Derk Drukker

Changes by Derk Drukker derk.druk...@gmail.com:


Removed file: http://bugs.python.org/file15181/fix-issue1235-py3k.patch

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



[issue1235] CGIHTTPRequestHandler.run_cgi() does not run on Windows if sys.executable contains blanks

2009-11-10 Thread Derk Drukker

Derk Drukker derk.druk...@gmail.com added the comment:

orsenthil: I reverted the changes that make Windows and Unix use the
same code in Patch Set 3, and briefly mentioned the reason for that in
the Rietveld app.  I should have mentioned it here too.

It was because it actually makes the implementation on Unix worse, since
the Windows implementation reads all data in memory.  (The subprocess
module documentation has this note: The data read is buffered in
memory, so do not use this method if the data size is large or unlimited.)

I tried replacing subprocess.PIPE with rfile/wfile, but it turns out
that that won't work, because on Windows socket.fileno() cannot be used
where file descriptors can be used, as the socket module documentation
states.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1235
___
___
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-11-10 Thread Antoine Pitrou

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

I've committed the latest patch in r76189. Thanks for the reviews, everyone.

--
resolution:  - fixed
status: open - closed

___
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



[issue7290] Update 'how do I set a global variable' faq entry

2009-11-10 Thread R. David Murray

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

Committed, with your suggested rewording, in r76190.

--
resolution:  - accepted
stage: patch review - committed/rejected
status: open - closed

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



[issue7197] test_multiprocessing crashes under Windows when run in verbose mode

2009-11-10 Thread Antoine Pitrou

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

Ok, if nobody objects, I will commit it since it's simple enough and
blocks any attempt at diagnosing test_multiprocessing under Windows.

--

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



[issue7197] test_multiprocessing crashes under Windows when run in verbose mode

2009-11-10 Thread Jesse Noller

Jesse Noller jnol...@gmail.com added the comment:

Please do; I've been swamped - I'm sorry

--

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



[issue2399] Patches for Tools/msi

2009-11-10 Thread Martin v . Löwis

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

Strictly speaking, they apply to Tools/msi only (IIUC). So adjusting
them to msilib is likely extra work.

--

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



[issue7303] pkgutil lacks documentation for useful functions

2009-11-10 Thread ulrik

New submission from ulrik ulrik.sverd...@gmail.com:

The module pkgutil has no documentation of functions added after its
introduction, in the official python documentation collection.

http://docs.python.org/dev/py3k/library/pkgutil.html

The module is well documented with docstrings.

I assume the module's exposed functions, some very useful, are open for
public use, for example pkgutil.iter_modules and .walk_packages.

Is all that is required copying the docstrings into the documentation?
If someone believes only Python insight and knowledge of reST sytax is
enough to make some passable documentation from the existing docstrings,
I could submit a patch for that.

--
assignee: georg.brandl
components: Documentation
messages: 95132
nosy: englabenny, georg.brandl
severity: normal
status: open
title: pkgutil lacks documentation for useful functions
type: feature request
versions: Python 3.2

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



[issue7304] email.message.Message.set_payload and as_string given charset 'us-ascii' plus 8bit data produces invalid message

2009-11-10 Thread R. David Murray

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

The following produces a non-conformant message, since the us-ascii
charset is strictly 7bit:

 import email.message
 m = email.message.Message()
 m.set_payload(A few lines
... of 8-bit text
...
... One high bit character: ².
... , 'us-ascii')
 print m.as_string()
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 8bit

A few lines
of 8-bit text

One high bit character: ².



--
components: Library (Lib)
messages: 95133
nosy: r.david.murray
priority: normal
severity: normal
stage: test needed
status: open
title: email.message.Message.set_payload and as_string given charset 'us-ascii' 
plus 8bit data produces invalid message
type: behavior
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2

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



[issue7301] Add environment variable $PYTHONWARNINGS

2009-11-10 Thread Philip Jenvey

Changes by Philip Jenvey pjen...@underboss.org:


--
nosy: +pjenvey

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



[issue7291] urllib2 cannot handle https with proxy requiring auth

2009-11-10 Thread Tatsuhiro Tsujikawa

Changes by Tatsuhiro Tsujikawa tsujik...@gp.hitachi.co.jp:


--
versions: +Python 2.7

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



[issue1235] CGIHTTPRequestHandler.run_cgi() does not run on Windows if sys.executable contains blanks

2009-11-10 Thread Senthil Kumaran

Senthil Kumaran orsent...@gmail.com added the comment:

Committed revision 76208 in trunk.  Shall look at the output of windows
buildbots and merge the changes to other codelines.

--

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



[issue7303] pkgutil lacks documentation for useful functions

2009-11-10 Thread Benjamin Peterson

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


--
nosy: +pje

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



[issue7190] Problems running threaded Tkinter program under OS X IDLE

2009-11-10 Thread Ned Deily

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

The test program depends on an external third-party module graphics.  
From the problem description and a web search, I assume the file is:

   http://mcsp.wartburg.edu/zelle/python/graphics.py

Can you confirm that?

Using that module, target.py runs on 10.5 invoking python2.6 directly 
with Apple-supplied Tk 8.4.7 or under idle2.6.  However, with a 
python2.6 using ActiveState Tk 8.4.19 installed on 10.5 or 10.6, 
target.py fails with:
Tk_MacOSXSetupTkNotifier: first [load] of TkAqua has to occur in the 
main thread!

As of 10.6(.2), attempts to run with a Tkinter linked to the Apple-
suppled Tk 8.5.7 hang (similar problems noted with other apps).

I was not able to reproduce the error message your report but there are 
certainly known and/or suspected issues with Tkinter and Apple's Tk 
8.4.7, even more likely running under IDLE which uses Tkinter itself.  

I'm not sure what action to recommend with this issue.  Perhaps it makes 
the most sense to leave it open until Tkinter with Apple Tk 8.5 is 
working reliably and then retest.

BTW, the message IDLE can't bind TCP/IP port 8833 most likely 
indicates one of the IDLE processes has aborted leaving another waiting 
for the socket to close.  Ideally, that shouldn't happen.

Thanks for the problem report.

--
nosy: +ned.deily
title: TCP/IP? - Problems running threaded Tkinter program under OS X IDLE

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



[issue1235] CGIHTTPRequestHandler.run_cgi() does not run on Windows if sys.executable contains blanks

2009-11-10 Thread Senthil Kumaran

Senthil Kumaran orsent...@gmail.com added the comment:

Committed revision 76209 - release26-maint
Committed revision 76210 - py3k
Committed revision 76211 - release31-maint

Thanks Derk for the patch.

--
resolution:  - fixed
status: open - closed

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



[issue7190] Problems running threaded Tkinter program under OS X IDLE

2009-11-10 Thread Ronald Oussoren

Ronald Oussoren ronaldousso...@mac.com added the comment:

The graphics module runs Tk in a separate thread, which means it 
accesses the Apple GUI frameworks from a thread that is not the main 
thread. 

This is AFAIK not supported by Apple, which would explain why it doesn't 
work.

I'll look for a link to the relevant Apple documentation before closing 
this.

--

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