[issue2931] optparse: various problems with unicode and gettext

2009-07-08 Thread Alexey Shamrin

Alexey Shamrin  added the comment:

More than a year passed since I reported this... Could someone suggest
how to move this forward? If needed, I can try to improve patch, test or
description of this issue. Should I, for example, split this into
separate issues?

--

___
Python tracker 

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



[issue6431] Fraction fails equality test with a user-defined type

2009-07-08 Thread Mark Dickinson

Mark Dickinson  added the comment:

Thanks.  Could you provide some tests?  (If you don't have time then 
that's fine: I'll probably get to this eventually, but it might take a 
while...)

--
assignee:  -> marketdickinson
priority:  -> normal
stage: needs patch -> test needed

___
Python tracker 

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



[issue6425] imaplib.IMAP4.fetch() is missing documentation for message_set parameter

2009-07-08 Thread Sjoerd

Sjoerd  added the comment:

Thanks, I missed that. I only read the documentation for the methods.

--

___
Python tracker 

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



[issue6426] imaplib.IMAP4 "command illegal in this state" is unhelpful error message

2009-07-08 Thread Sjoerd

Sjoerd  added the comment:

See http://bugs.python.org/issue1605192

--

___
Python tracker 

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



[issue6437] Personal invitation from Manas

2009-07-08 Thread Manas
http://www.w3.org/TR/html4/strict.dtd";>


UNYK





If you are not able to click these links, click the 
following: « Show content » and try again.
E-mail sent 7/8/2009 3:57:22 AM, by Manas Thapliyal:






Personal invitation from 
Manas


http://www.unyk.com/ml/354/66/?i=629FDC41B12F4673BBD647F7424EE0E3&s=15202900";>http://www.unyk.com/img/common/logo_131x76.gif";>






http://photos.unyk.com/img/common/avatar_H.gif"; border="0" />


Hello,

To keep all friends together

Finally, a smart and simple way to manage your 
contacts!

With UNYK, I put all my contacts together in one 
address book that is automatically updated. One of my contacts 
changes his or her information at UNYK.com: My address book is updated. I 
change information at UNYK.com: My contacts’ address books are updated. 
Simple, but life-changing!

Can I add you as one of my contacts? 
http://www.unyk.com/ml/354/66/?i=629FDC41B12F4673BBD647F7424EE0E3&s=15202900";>To
 accept, click here!

You too can create your own smart address book. 








Manas Thapliyal
UNYK : ASI 610







UNYK, the first smart address book that updates itself!





http://www.unyk.com/ml/354/79/?mid=9E96A4A47B7D839D&email=rep...@bugs.python.org&s=15202900";>Click
 here if you no longer wish to receive invitations from Manas Thapliyal to 
try UNYK! 

http://www.unyk.com/ml/354/67/?i=629FDC41B12F4673BBD647F7424EE0E3&s=15202900";>Click
 here if you no longer wish to receive invitations to try UNYK from your 
contacts!









http://www.w3.org/TR/html4/strict.dtd";>


UNYK





If you are not able to click these links, click the 
following: « Show content » and try again.
E-mail sent 7/8/2009 3:57:22 AM, by Manas Thapliyal:






Personal invitation from 
Manas


http://www.unyk.com/ml/354/66/?i=629FDC41B12F4673BBD647F7424EE0E3&s=15202900";>http://www.unyk.com/img/common/logo_131x76.gif";>






http://photos.unyk.com/img/common/avatar_H.gif"; border="0" />


Hello,

To keep all friends together

Finally, a smart and simple way to manage your 
contacts!

With UNYK, I put all my contacts together in one 
address book that is automatically updated. One of my contacts 
changes his or her information at UNYK.com: My address book is updated. I 
change information at UNYK.com: My contacts’ address books are updated. 
Simple, but life-changing!

Can I add you as one of my contacts? 
http://www.unyk.com/ml/354/66/?i=629FDC41B12F4673BBD647F7424EE0E3&s=15202900";>To
 accept, click here!

You too can create your own smart add

[issue6437] Personal invitation from Manas

2009-07-08 Thread Mark Dickinson

Changes by Mark Dickinson :


--
resolution:  -> invalid
status: open -> closed

___
Python tracker 

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



[issue6395] Infinite Recursion during Unpickling a codecs Object

2009-07-08 Thread ThomasH

ThomasH  added the comment:

Sounds good to me. The main intention of this bug is not to make codecs
objects pickleable by all means (I don't know if this would be sensible
and/or possible), but at least to have them degrade gracefully during
pickling, particularly without infinite recursion. I've changed the bug
title to reflect this.

--
title: Add Pickle Support to the codecs Module -> Infinite Recursion during 
Unpickling a codecs Object

___
Python tracker 

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



[issue5329] os.popen2 and os.popen3 in python 2.6 incompatible with os.popen* in python 2.5

2009-07-08 Thread Max Bowsher

Changes by Max Bowsher :


--
nosy: +maxb

___
Python tracker 

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



[issue5329] os.popen2 and os.popen3 in python 2.6 incompatible with os.popen* in python 2.5

2009-07-08 Thread Max Bowsher

Max Bowsher  added the comment:

With or without tests, this is a regression from Python 2.5 - shouldn't
something be done about that?

--

___
Python tracker 

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



[issue6438] cygwincompiler regular expressions broken

2009-07-08 Thread Tarek Ziadé

New submission from Tarek Ziadé :

The regular expressions used in distutils to build a extension using the
mingw32 compiler are messed up because they try to work with bytes
(since Popen behavior changed) using string patterns.

I have to cleanup these regular expressions before any new 3.x release

--
assignee: tarek
components: Distutils
messages: 90260
nosy: tarek
priority: critical
severity: normal
status: open
title: cygwincompiler regular expressions broken
versions: Python 3.0, Python 3.1, Python 3.2

___
Python tracker 

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



[issue6434] buffer overflow in Zipfile when wrinting more than 2gig file

2009-07-08 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc  added the comment:

I don't see how it can be a buffer overflow. Or is it an exception
raised by the struct.pack function?

--
nosy: +amaury.forgeotdarc

___
Python tracker 

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



[issue1448934] urllib2+https+proxy not working

2009-07-08 Thread Peter Funk

Peter Funk  added the comment:

I stumbled about this here because of testing the Ubuntuone project:

http://en.oreilly.com/oscon2009/public/schedule/detail/8843

The client for the ubuntuone cloud computing suffers from being
unable to connect through a HTTPS proxy.  May be some of the folks
at Canonical are now willing to spend some time on this issue here?
It is recorded in the Ubuntu tracker as:
https://bugs.launchpad.net/ubuntu/+source/python2.6/+bug/94130

I think a lot of the corporate Ubuntu Linux users behind restrictive 
firewalls are affected by this problem.

--
nosy: +pefu

___
Python tracker 

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



[issue1448934] urllib2+https+proxy not working

2009-07-08 Thread Senthil

Senthil  added the comment:

I noticed this one yesterday. There is a similar issue Issue1424152, the
fix for which is available in Py2.7. Would you try to that patch?

--
versions: +Python 3.1, Python 3.2

___
Python tracker 

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



[issue1448934] urllib2+https+proxy not working

2009-07-08 Thread Senthil

Changes by Senthil :


--
assignee:  -> orsenthil

___
Python tracker 

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



[issue6422] timeit called from within Python should allow autoranging

2009-07-08 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc  added the comment:

You can still upload available patches to this tracker.

--
nosy: +amaury.forgeotdarc

___
Python tracker 

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



[issue6431] Fraction fails equality test with a user-defined type

2009-07-08 Thread Mark Dickinson

Mark Dickinson  added the comment:

A good solution should ensure that all 6 comparison operators behave in 
the same way for the same input types:  that is, if x == y returns 
NotImplemented for some particular Python objects x and y, then x < y, x 
<= y, etc. should also return NotImplemented, and vice versa.

--

___
Python tracker 

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



[issue5329] os.popen2 and os.popen3 in python 2.6 incompatible with os.popen* in python 2.5

2009-07-08 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc  added the comment:

The test is the proof the the regression, and shows the change in
behavior and the purpose of the development.
There happens to be a test for os.popen3 (in Lib/test/test_popen2.py)
which passes a list; this one at least passes.

os.popen3() accepts a sequence, except that since 2.6, the first item is
the whole command string, and additional items are treated as additional
shell arguments!

Your patch is correct. A unit test could be:
w, r, e = os.popen3(['echo', 'hello'])
assert r.read() == 'hello\n'
And should be disabled on non-posix platforms.

--
keywords: +needs review
nosy: +amaury.forgeotdarc

___
Python tracker 

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



[issue6439] Demo/embed/demo.c use of PySys_SetArgv() is invalid

2009-07-08 Thread Campbell Barton

New submission from Campbell Barton :

in python 3.2 (current rev 73893)
Demo/embed/demo.c passes a 'char **' to PySys_SetArgv rather then a
'wsize_t **'

Im also confused as to how this conversion should be made in a portable
way, without copying some farily large static functions from python's code.

--
components: Demos and Tools
messages: 90267
nosy: ideasman42
severity: normal
status: open
title: Demo/embed/demo.c use of PySys_SetArgv() is invalid
versions: Python 3.2

___
Python tracker 

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



[issue6439] Demo/embed/demo.c use of PySys_SetArgv() is invalid

2009-07-08 Thread Campbell Barton

Changes by Campbell Barton :


--
type:  -> compile error

___
Python tracker 

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



[issue6440] 2to3: convert deprecated string.maketrans to str.maketrans

2009-07-08 Thread Eric Eisner

New submission from Eric Eisner :

string.maketrans has been deprecated in 3.x in favor of the more
specific bytes.maketrans and str.maketrans (see issue5675). It would be
nice if 2to3 would automatically translate this to one of those two
(probably str.maketrans).

I briefly looked at lib2to3/fixes/fix_renames.py, but this only seems to
convert things of the form module.X to module.Y. Is there another script
that deals with these jumping-around functions?

--
components: 2to3 (2.x to 3.0 conversion tool)
messages: 90268
nosy: ede
severity: normal
status: open
title: 2to3: convert deprecated string.maketrans to str.maketrans
type: feature request

___
Python tracker 

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



[issue6441] Tkinter cannot find *64 bit* Tcl/Tk on Mac OS X

2009-07-08 Thread Adam Ginsburg

New submission from Adam Ginsburg :

While it is possible to compile 64 bit python on Mac OS X, the default
tcl/tk is NOT 64 bit.  If you do install a 64 bit version of tcl/tk,
python still will not find it - lines 1503-1515 prevent it:

if 'x86_64' in archs or 'ppc64' in archs:
try:
archs.remove('x86_64')
except ValueError:
pass
try:
archs.remove('ppc64')
except ValueError:
pass

for a in archs:
frameworks.append('-arch')
frameworks.append(a)


I was able to successfully get 64 bit tkinter working by commenting out
these lines as suggested by Ned Deily.

Ronald Oussoren suggests:
"BTW. The correct fix would be to add a probe to setup.py that detects
if Tcl/Tk was build with 64-bit support or not."

--
components: Tkinter
messages: 90269
nosy: keflavich, nad, ronaldoussoren
severity: normal
status: open
title: Tkinter cannot find *64 bit* Tcl/Tk on Mac OS X
type: crash
versions: Python 2.6

___
Python tracker 

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



[issue6441] Tkinter cannot find *64 bit* Tcl/Tk on Mac OS X

2009-07-08 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

Adam: where can I download a 64-bit version of Tcl/Tk?

--

___
Python tracker 

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



[issue6441] Tkinter cannot find *64 bit* Tcl/Tk on Mac OS X

2009-07-08 Thread Adam Ginsburg

Adam Ginsburg  added the comment:

Sorry Ronald, I had misinterpreted your last message.

Look at these posts:
http://buffalothedestroyer.blogspot.com/2009/07/installing-64-bit-tcltk-on-mac-os-x.html
http://www.nabble.com/Error-compiling-tk-8.5.7-on-Mac-OS-X-10.5-td23790967.html

or try this script:
curl -O
'http://osdn.dl.sourceforge.net/sourceforge/tcl/t{cl,k}8.5.7-src.tar.gz'
for f in t*8.5.7*.gz; do tar zxf $f; done
cd tcl8.5.7/unix/
./configure --enable-framework --enable-64-bit
cd tk8.5.7/unix/
./configure --enable-framework --enable-64-bit
make -j 4 -C tcl8.5.7/unix
make -j 4 -C tk8.5.7/unix
sudo make install -C tcl8.5.7/unix
sudo make install -C tk8.5.7/unix

--
assignee:  -> ronaldoussoren
components: +Macintosh

___
Python tracker 

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



[issue1008086] socket.inet_aton returns 8 bytes on LP64 platforms

2009-07-08 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc  added the comment:

Ping?
This has been merged to py3k with r69560 and is present in 3.1, what
about 2.6?

--
nosy: +amaury.forgeotdarc

___
Python tracker 

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



[issue6422] timeit called from within Python should allow autoranging

2009-07-08 Thread Scott David Daniels

Changes by Scott David Daniels :


--
keywords: +patch
Added file: http://bugs.python.org/file14472/timeit.patch

___
Python tracker 

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



[issue6399] Error reporting by logging.config.fileConfig()

2009-07-08 Thread Mike

Mike  added the comment:

Hi Vinay,
I will bow to your greater expertise on this and will let this go.
It looks like it will be far more easier and robust just to invent my
own logging config file format and read it myself.
Thanks for your help.
Mike.

--
status: open -> closed

___
Python tracker 

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



[issue6377] distutils compiler switch ignored

2009-07-08 Thread Jean-Paul Calderone

Jean-Paul Calderone  added the comment:

It looks like this change may have broken some parts of distutils.  For
example, Twisted's setup.py now produces this output when running the
build_ext command:

$ ~/Projects/python/trunk/python setup.py build_ext
running build_ext
Traceback (most recent call last):
  File "setup.py", line 97, in 
main(sys.argv[1:])
  File "setup.py", line 92, in main
setup(**setup_args)
  File "./twisted/python/dist.py", line 47, in setup
return core.setup(**get_setup_args(**kw))
  File "/home/exarkun/Projects/python/trunk/Lib/distutils/core.py", line
149, in setup
dist.run_commands()
  File "/home/exarkun/Projects/python/trunk/Lib/distutils/dist.py", line
926, in run_commands
self.run_command(cmd)
  File "/home/exarkun/Projects/python/trunk/Lib/distutils/dist.py", line
945, in run_command
cmd_obj.run()
  File
"/home/exarkun/Projects/python/trunk/Lib/distutils/command/build_ext.py", line
380, in run
self.build_extensions()
  File "./twisted/python/dist.py", line 327, in build_extensions
self.prepare_extensions()
  File "./twisted/python/dist.py", line 318, in prepare_extensions
if x.condition(self)]
  File "twisted/runner/topfiles/setup.py", line 14, in 
condition=lambda builder: builder._check_header("rpc/rpc.h")),
  File "./twisted/python/dist.py", line 359, in _check_header
self.compiler.announce("checking for %s ..." % header_name, 0)
AttributeError: 'NoneType' object has no attribute 'announce'

And PyCrypto produces this output:

running build_ext
Traceback (most recent call last):
  File "setup.py", line 163, in 
core.setup(**kw)
  File "/tmp/python-buildbot/local/lib/python2.7/distutils/core.py",
line 149, in setup
dist.run_commands()
  File "/tmp/python-buildbot/local/lib/python2.7/distutils/dist.py",
line 926, in run_commands
self.run_command(cmd)
  File "/tmp/python-buildbot/local/lib/python2.7/distutils/dist.py",
line 945, in run_command
cmd_obj.run()
  File
"/tmp/python-buildbot/local/lib/python2.7/distutils/command/install.py",
line 580, in run
self.run_command('build')
  File "/tmp/python-buildbot/local/lib/python2.7/distutils/cmd.py", line
326, in run_command
self.distribution.run_command(command)
  File "/tmp/python-buildbot/local/lib/python2.7/distutils/dist.py",
line 945, in run_command
cmd_obj.run()
  File
"/tmp/python-buildbot/local/lib/python2.7/distutils/command/build.py",
line 132, in run
self.run_command(cmd_name)
  File "/tmp/python-buildbot/local/lib/python2.7/distutils/cmd.py", line
326, in run_command
self.distribution.run_command(command)
  File "/tmp/python-buildbot/local/lib/python2.7/distutils/dist.py",
line 945, in run_command
cmd_obj.run()
  File
"/tmp/python-buildbot/local/lib/python2.7/distutils/command/build_ext.py",
line 380, in run
self.build_extensions()
  File "setup.py", line 115, in build_extensions
self.detect_modules()
  File "setup.py", line 119, in detect_modules
lib_dirs = self.compiler.library_dirs + ['/lib', '/usr/lib']
AttributeError: 'NoneType' object has no attribute 'library_dirs'

--
nosy: +exarkun

___
Python tracker 

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



[issue6422] timeit called from within Python should allow autoranging

2009-07-08 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

I would like to look at this in context of all the other proposed build-
outs to timeit.

--
assignee:  -> rhettinger
nosy: +rhettinger

___
Python tracker 

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



[issue6377] distutils compiler switch ignored

2009-07-08 Thread Marc-Andre Lemburg

Marc-Andre Lemburg  added the comment:

Tarek, the .compiler attribute is needed by bdist_ext, so cannot just be
removed or renamed to .compiler_obj. There's a lot of bdist_ext
distutils code out there relying on having the .compiler object available.

A much better fix would be to map the option to a new attribute in
build_ext, e.g. .compiler_name or to remove the option altogether and
always inherit the setting from the global dist option --compiler.

In general, when making such changes, please test these against a few
well-known packages such as twisted, pycrypto or egenix-mx-base which do
include C extensions.

Thanks.

--
nosy: +lemburg

___
Python tracker 

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



[issue6377] distutils compiler switch ignored

2009-07-08 Thread Marc-Andre Lemburg

Marc-Andre Lemburg  added the comment:

Note that the config command also uses a .compiler instance for actually
doing work, rather than as command option.

--

___
Python tracker 

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



[issue6377] distutils compiler switch ignored

2009-07-08 Thread Marc-Andre Lemburg

Marc-Andre Lemburg  added the comment:

Added Python 2.7 since it fails there as well.

--
versions: +Python 2.7

___
Python tracker 

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



[issue6377] distutils compiler switch ignored

2009-07-08 Thread Marc-Andre Lemburg

Marc-Andre Lemburg  added the comment:

Marc-Andre Lemburg wrote:
> Tarek, the .compiler attribute is needed by bdist_ext, so cannot just be
> removed or renamed to .compiler_obj. There's a lot of bdist_ext
> distutils code out there relying on having the .compiler object available.

Sorry, the above should have read build_ext, not bdist_ext...

> A much better fix would be to map the option to a new attribute in
> build_ext, e.g. .compiler_name or to remove the option altogether and
> always inherit the setting from the global dist option --compiler.

--

___
Python tracker 

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



[issue6377] distutils compiler switch ignored

2009-07-08 Thread Roumen Petrov

Roumen Petrov  added the comment:

Trunk may be is not affected. I successfully cross-compile with GNU
compiler for windows (see issue 3871).

--
nosy: +rpetrov

___
Python tracker 

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



[issue6439] Demo/embed/demo.c use of PySys_SetArgv() is invalid

2009-07-08 Thread Martin v . Löwis

Changes by Martin v. Löwis :


--
nosy: +loewis

___
Python tracker 

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



[issue6377] distutils compiler switch ignored

2009-07-08 Thread Marc-Andre Lemburg

Marc-Andre Lemburg  added the comment:

Roumen Petrov wrote:
> Roumen Petrov  added the comment:
> 
> Trunk may be is not affected. I successfully cross-compile with GNU
> compiler for windows (see issue 3871).

It is affected in the sense that .compile was changed
to .compile_obj and that change breaks 3rd party setup.py
code which uses the compiler instance to run its own
compilations or needs to tweak the setup by e.g. adding
more libs or dirs to its configuration.

--

___
Python tracker 

___
___
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-07-08 Thread Philipp

Changes by Philipp :


--
nosy: +Phil

___
Python tracker 

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



[issue6441] Tkinter cannot find *64 bit* Tcl/Tk on Mac OS X

2009-07-08 Thread Kevin Walzer

Changes by Kevin Walzer :


--
nosy: +wordtech

___
Python tracker 

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



[issue6434] buffer overflow in Zipfile when wrinting more than 2gig file

2009-07-08 Thread segfault42

segfault42  added the comment:

yes it's zinfo.file_size which is bigger than the long specify in the 
struct.pack

There's must have a solution with the extra header because a lot of tools 
can zip big file and these zip file can be open by zipfile.py

it's easy to reproduice with a big file of 3 gig.

i think that the problem come from that the write methode do not take 
care of the flag allowZip64

--

___
Python tracker 

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



[issue4660] multiprocessing.JoinableQueue task_done() issue

2009-07-08 Thread Brian

Brian  added the comment:

Cool., let me know if there is anything I can do to help.

On Mon, Jun 29, 2009 at 7:46 AM, Jesse Noller wrote:

>
> Jesse Noller  added the comment:
>
> I'm leaning towards the properly protecting JoinableQueue.put() fix, I'm
> not a terribly big fan of removing error checking. I'm trying to carve off
> time this week to beat on my bug queue, so I'm hoping to be able to commit
> something (once I have docs+tests) this week.
>
> --
>
> ___
> Python tracker 
> 
> ___
>

--
Added file: http://bugs.python.org/file14473/unnamed

___
Python tracker 

___Cool., let me know if there is anything I can do to help.On Mon, Jun 29, 2009 at 7:46 AM, Jesse Noller rep...@bugs.python.org> 
wrote:


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

I'm leaning towards the properly protecting JoinableQueue.put() fix, 
I'm
not a terribly big fan of removing error checking. I'm trying to carve 
off
time this week to beat on my bug queue, so I'm hoping to be able to 
commit
something (once I have docs+tests) this week.

--

___
Python tracker rep...@bugs.python.org>
http://bugs.python.org/issue4660>
___

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



[issue6377] distutils compiler switch ignored

2009-07-08 Thread Tarek Ziadé

Tarek Ziadé  added the comment:

I'll set back the compiler attribute when compiler_obj is set too, 
so third-party code will be able to work with it as before.

The current code will deprecate this usage, by displaying a deprecation
warning:

- if the compiler is set to anything else than a string.
- if the compiler is get and happens to be a compiler instance.

so we can keep "compiler" as its initial purpose.

And I'll test it on twisted and egenix. Thanks for the feedback

--
status: closed -> open

___
Python tracker 

___
___
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-07-08 Thread Ned Deily

Ned Deily  added the comment:

This is a side effect of the fix for Issue6202.  Prior to r73268, 
locale.getpreferredencoding always returned "mac-roman" regardless of the 
setting of LANG, so this wasn't a problem in py3k (or 3.0.x builds) up 
through 3.1rc1.  I can reproduce it on current py3k and release31-maint.

--
nosy: +nad

___
Python tracker 

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



[issue6440] 2to3: convert deprecated string.maketrans to str.maketrans

2009-07-08 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

Doesn't that create an issue depending on whether your 2-to-3 target is
3.0 or 3.1?  I don't think minor release changes should be conflated
with the major release changes.

--
nosy: +rhettinger

___
Python tracker 

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



[issue6333] logging: ValueError: I/O operation on closed file

2009-07-08 Thread Sridhar Ratnakumar

Sridhar Ratnakumar  added the comment:

I have attached a script that repros this bug. Run it using py.test 
(instructions inside the file).

Workaround is by uncommenting the last few lines ('flush' method).

--
Added file: http://bugs.python.org/file14474/issue6333repro.py

___
Python tracker 

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



[issue6333] logging: ValueError: I/O operation on closed file

2009-07-08 Thread Sridhar Ratnakumar

Sridhar Ratnakumar  added the comment:

Note: It appears that py.test assigns a temporary file to sys.std[out|
err].

--

___
Python tracker 

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



[issue6377] distutils compiler switch ignored

2009-07-08 Thread Tarek Ziadé

Tarek Ziadé  added the comment:

done in r73895, r73896. (and tested with twisted trunk).

--

___
Python tracker 

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



[issue6442] Backwards __contains__/has_key in xml/sax/xmlreader.py

2009-07-08 Thread Corbin Simpson

New submission from Corbin Simpson :

Not a big deal, but these two methods were backwards in AttributesImpl
in xml/sax/xmlreader.py, and it was causing fun little problems in some
of my code on Python 2.6.0, so I decided to whip up a patch.

(Of course, this is fixed in Py3k since has_key() got nuked.)

~ C.

--
components: Library (Lib)
files: temp.patch
keywords: patch
messages: 90290
nosy: MostAwesomeDude
severity: normal
status: open
title: Backwards __contains__/has_key in xml/sax/xmlreader.py
type: behavior
versions: Python 2.6
Added file: http://bugs.python.org/file14475/temp.patch

___
Python tracker 

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



[issue6358] os.popen exit code inconsistent

2009-07-08 Thread Retro

Retro  added the comment:

os.popen is deprecated. Use the subprocess module.

--
nosy: +Retro

___
Python tracker 

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



[issue6333] logging: ValueError: I/O operation on closed file

2009-07-08 Thread Vinay Sajip

Vinay Sajip  added the comment:

Perhaps it's a py.test issue. Have you tried with unittest and nose?
Remember, py.test has had little love for a while and so perhaps has a
few rougher edges (though I hear in the blogosphere that the project may
be rejuvenated shortly).

--

___
Python tracker 

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



[issue6399] Error reporting by logging.config.fileConfig()

2009-07-08 Thread Vinay Sajip

Vinay Sajip  added the comment:

Mike,

That's just fine. Sorry if I appear unhelpful, but in the open source
world we mostly scratch our own itches. I believe I have a reasonable
record on accepting patches from the community (though I don't of course
accept everything), and I unfortunately don't have much time to spend on
this because of other, more pressing itches :-( 

Best of luck with it.

--

___
Python tracker 

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



[issue6333] logging: ValueError: I/O operation on closed file

2009-07-08 Thread Sridhar Ratnakumar

Sridhar Ratnakumar  added the comment:

Perhaps there is an issue with py.test.

My understanding is that: if the logging module is designed to let 
users implement their own custom handlers (like I did with 
ConsoleHandler), is it not expected that they may do whatever they want 
with it including closing the file (in this case - sys.stdout is a 
temporary file that is obviously closed at one stage)? Shouldn't the 
logging module be reliable in such cases?

I will point holger (author of py.test) to this issue in case if he has 
any comments.

Anyways, this is a very low-prio bug for me .. especially when there is 
a workaround.

--

___
Python tracker 

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



[issue6440] 2to3: convert deprecated string.maketrans to str.maketrans

2009-07-08 Thread R. David Murray

R. David Murray  added the comment:

I think 2to3 should target 3.1.  We don't expect/want people to use 3.0
in production.

--
nosy: +r.david.murray
priority:  -> normal
stage:  -> test needed

___
Python tracker 

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



[issue6440] 2to3: convert deprecated string.maketrans to str.maketrans

2009-07-08 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

It's the users wants not yours that matter.  If someone already has 3.0
in production and is maintaining code in both 2.6 and 3.0, then this
change will break their build.

Also, it is not a necessary change.  We already have a warning in-place
to alert anyone who is interested and the removal of the feature doesn't
take place until 3.2.  

It is feature creep to start retargeting the 2-to-3 tool.  This is just
a normal difference between minor versions and is outside the scope of
that tool.

--
status: open -> closed

___
Python tracker 

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



[issue6435] logging: cache the traceback text on formatter, instead of record

2009-07-08 Thread Sridhar Ratnakumar

Sridhar Ratnakumar  added the comment:

A real-life recipe where this bug showed up: 

  http://code.activestate.com/recipes/576836/

--

___
Python tracker 

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



[issue6440] 2to3: convert deprecated string.maketrans to str.maketrans

2009-07-08 Thread R. David Murray

R. David Murray  added the comment:

Ah, I missed the fact that this was a 3.2 change.  Somehow I thought it
was a 3.1 thing.  So you are right, IMO, this would be feature creap.

--

___
Python tracker 

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



[issue6377] distutils compiler switch ignored

2009-07-08 Thread Jean-Paul Calderone

Jean-Paul Calderone  added the comment:

Cool, thanks.  PyCrypto also works again now.

--

___
Python tracker 

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



[issue6443] _winreg.QueryValueEx confused on double null terminated strings

2009-07-08 Thread Andrew Ziem

New submission from Andrew Ziem :

QueryValueEx only returns one string when the contents are double null
terminated, yet QueryValueEx works when the string is singly null
terminated.

In Python 2.5.4 on Windows XP Sp3, the first key-value only returns the
first part up to \0\0.
---
C:\>reg query "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager" /v
Pending
FileRenameOperations

! REG.EXE VERSION 3.0

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager
PendingFileRenameOperations REG_MULTI_SZ\??\C:\Documents and
Settings\All Users\Application Data\McAfee\Common
Framework\UpdateDir\0\0\??\C:\Program
Files\Google\GoogleToolbarNotifier\5.2.4204.1700\0\0\??\C:\Documents and
Settings\All Users\Application Data\McAfee\Common
Framework\UpdateDir\0\0\??\C:\Documents and Settings\All
Users\Application Data\McAfee\Common
Framework\UpdateDir\0\0\??\C:\Documents and Settings\All
Users\Application Data\McAfee\Common
Framework\UpdateDir\0\0\??\C:\Documents and Settings\All
Users\Application Data\McAfee\Common
Framework\UpdateDir\0\0\??\C:\Documents and Settings\All
Users\Application Data\McAfee\Common
Framework\UpdateDir\0\0\??\C:\Documents and Settings\All Users\A
pplication Data\McAfee\Common Framework\UpdateDir\0\0\??\C:\Documents
and Settings\All Users\Application Data\McAfee\Common
Framework\UpdateDir\0\0\0

C:\>reg query "HKLM\SYSTEM\CurrentControlSet\Services\Browser" /v 
DependOnService

! REG.EXE VERSION 3.0

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Browser
DependOnService REG_MULTI_SZLanmanWorkstation\0LanmanServer\0\0

--
components: Windows
messages: 90300
nosy: AndrewZiem
severity: normal
status: open
title: _winreg.QueryValueEx confused on double null terminated strings
type: behavior
versions: Python 2.5

___
Python tracker 

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



[issue6443] _winreg.QueryValueEx confused on double null terminated strings

2009-07-08 Thread Andrew Ziem

Andrew Ziem  added the comment:

The bug is noted in the Python source code in file PC/_winreg.c in in
function fixupMultiSZ() where it admits Python does not mimic Microsoft
regedit.exe

--

___
Python tracker 

___
___
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-07-08 Thread Ned Deily

Ned Deily  added the comment:

Note, you can produce the same error on OS X or linux by setting 
PYTHONIOENCODING="", which effectively overrides the value returned 
nl_langinfo(CODESET).  In pythonrun.c, create_stdio passes 
PYTHONENCODING, if set, on as the "encoding" value to TextIOWrapper.  If 
no encoding was specified, TextIOWrapper uses the value returned by 
locale.getpreferrencoding().  It then calls PyCodec_IncrementalDecoder 
and the unknown (or empty) encoding is finally detected.

That raises the question of how far python should go in protecting the 
user.  One *could* add a check in pythonrun.c to substitute some 
suitable default (UTF-8) if nl_langinfo(CODESET) returns an empty value.  
Or perhaps just abort there with a more meaningful error message.

--

___
Python tracker 

___
___
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-07-08 Thread Ned Deily

Ned Deily  added the comment:

"... create_stdio passes PYTHONIOENCODING ..."

--

___
Python tracker 

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



[issue6435] logging: cache the traceback text on formatter, instead of record

2009-07-08 Thread Vinay Sajip

Vinay Sajip  added the comment:

I fail to follow your logic, in the following respects:

1. The exception text cannot be cached in the formatter because a
formatter will format lots and lots of records. Formatters live for a
long time, records do not.
2. The exception text needs to be stored in the record, because in some
instances (e.g. pickling and sending over a socket) this information
will not be available at the other end in any other way.
3. The way it works now, if you have multiple formatters attached to
multiple handlers (e.g. with ISO time for log files, with no ISO time
for console output), then the traceback is only converted to text once.
4. There's nothing stopping you from overriding Formatter.format, is
there? the base version uses the cache, you can override format in your
custom formatter and ignore the cache altogether if you like.

Are you sure you've thought this through? ;-)

--
assignee:  -> vsajip
resolution:  -> invalid
status: open -> closed

___
Python tracker 

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