[issue5752] xml.dom.minidom does not escape newline characters within attribute values

2009-05-12 Thread Francesco Sechi

Francesco Sechi  added the comment:

My position is: 
if you want to encode the newline character, this should be done by both
parseString and setAttribute methods. Otherwise, the behaviour is not
symmetric.
My patch translates the newline character with a whitespace in the
setAttribute method, because parseString already does it. If you want to
encode the newline in different manner, you should develop a patch that
introduces this kind of encoding in both parseString and setAttribute
methods.

--

___
Python tracker 

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



[issue6003] ZipFile.writestr "compression_type" argument

2009-05-12 Thread Ronald Oussoren

New submission from Ronald Oussoren :

Class zipfile.ZipFile has two methods for adding data to a zipfile: 
'write' and 'writestr'.

The former has a "compression_type" argument that can be used to specify 
the compression to be used. That latter doesn't have that argument.

Could a "compression_type" argument be added to "writestr" as well? I 
regularly create zipfiles from scratch using the writestr method to add 
content and currently have to modify the 'compression' attribute of the 
zipfile object to control compression and that leads to ugly code.

The other alternative is to use a ZipInfo object as the archive-name of 
the newly added file, but that leads to even uglier code.

--
messages: 87610
nosy: ronaldoussoren
severity: normal
stage: needs patch
status: open
title: ZipFile.writestr "compression_type" argument
type: feature request
versions: Python 2.7, 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



[issue6004] ZipFile.writestr "compression_type" argument

2009-05-12 Thread Ronald Oussoren

New submission from Ronald Oussoren :

Class zipfile.ZipFile has two methods for adding data to a zipfile: 
'write' and 'writestr'.

The former has a "compression_type" argument that can be used to specify 
the compression to be used. That latter doesn't have that argument.

Could a "compression_type" argument be added to "writestr" as well? I 
regularly create zipfiles from scratch using the writestr method to add 
content and currently have to modify the 'compression' attribute of the 
zipfile object to control compression and that leads to ugly code.

The other alternative is to use a ZipInfo object as the archive-name of 
the newly added file, but that leads to even uglier code.

--
messages: 87611
nosy: ronaldoussoren
severity: normal
stage: needs patch
status: open
title: ZipFile.writestr "compression_type" argument
type: feature request
versions: Python 2.7, 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



[issue6004] ZipFile.writestr "compression_type" argument

2009-05-12 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

Too impatient while submitting the report...

--
resolution:  -> duplicate
status: open -> closed

___
Python tracker 

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



[issue5995] unittest command line behaviour

2009-05-12 Thread Michael Foord

Michael Foord  added the comment:

This commit caused a regression in command line behavior of modules
using unittest.main(). Fixed in revision 72583.

--

___
Python tracker 

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



[issue1143] Update to latest ElementTree in Python 2.7

2009-05-12 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Fredrik, will this be able to go in before 3.1rc1?

--

___
Python tracker 

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



[issue6001] Test discovery for unittest

2009-05-12 Thread Michael Foord

Michael Foord  added the comment:

The usage information in TestProgram in this patch is not correct. 

If __name__ != __main__ it should be unchanged - the new usage message
should only be displayed if unittest is run as __main__.

--

___
Python tracker 

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



[issue2813] No float formatting in PyString_FromFormat

2009-05-12 Thread Eric Smith

Eric Smith  added the comment:

>From the code:

/* assume %f produces at most (L)DBL_DIG 
   digits before and after the decimal
   point, plus the latter plus a sign */

This is not correct. DBL_DIG is 15 on my x86 Linux machine.
printf("%.*f\n", DBL_DIG, 1e20) produces a string that's 37 characters
long. It might be best to use PyOS_double_to_string instead of snprintf,
although we don't support long double there. I'm not sure long double
support is all that important in practice (for Python), though.

It would be easier to review this if the %p change weren't also
included. That's looks like a good change, but it's a separate issue.

unicodeobject.c should also be modified. In 3.x, it's unicodeobject.c
and bytesobject.c that need to work.

--
nosy: +marketdickinson

___
Python tracker 

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



[issue1207] Load tests from path (patch included)

2009-05-12 Thread Michael Foord

Michael Foord  added the comment:

See issue 6001 for a patch implementing test discovery for unittest.

It would allow you to do:

python -m unittest discover

--

___
Python tracker 

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



[issue1513299] Clean up usage of map() in the stdlib

2009-05-12 Thread Daniel Diniz

Changes by Daniel Diniz :


--
stage:  -> patch review
type:  -> feature request
versions: +Python 2.7, Python 3.1 -Python 2.6

___
Python tracker 

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



[issue2118] smtplib.SMTP() raises socket.error rather than SMTPConnectError

2009-05-12 Thread Daniel Diniz

Changes by Daniel Diniz :


--
keywords: +patch
stage:  -> patch review
versions: +Python 3.1 -Python 2.5, Python 3.0

___
Python tracker 

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



[issue1569291] Speed-up in array_repeat()

2009-05-12 Thread Daniel Diniz

Changes by Daniel Diniz :


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

___
Python tracker 

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



[issue2958] update Lib/test/README

2009-05-12 Thread Daniel Diniz

Changes by Daniel Diniz :


--
nosy: +michael.foord
stage:  -> needs patch

___
Python tracker 

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



[issue1057417] New BaseSMTPServer module

2009-05-12 Thread Daniel Diniz

Changes by Daniel Diniz :


--
stage:  -> test needed
type:  -> feature request
versions: +Python 2.7, Python 3.2 -Python 2.4

___
Python tracker 

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



[issue2768] os.fstat and other os.f* methods should use PyObject_AsFileDescriptor

2009-05-12 Thread Daniel Diniz

Changes by Daniel Diniz :


--
nosy: +benjamin.peterson, pitrou
stage:  -> patch review
versions: +Python 2.7, Python 3.2 -Python 2.6, Python 3.0

___
Python tracker 

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



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

2009-05-12 Thread Daniel Diniz

Changes by Daniel Diniz :


--
components: +Library (Lib), Unicode
nosy: +haypo, loewis
priority:  -> normal
versions: +Python 2.6, Python 3.1 -Python 2.3, Python 2.4, Python 2.5

___
Python tracker 

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



[issue1724366] cPickle module doesn't work with universal line endings

2009-05-12 Thread Daniel Diniz

Daniel Diniz  added the comment:

Confirmed in trunk and py3k.

--
components: +IO
nosy: +ajaksu2, benjamin.peterson, pitrou
stage:  -> test needed
type:  -> behavior
versions: +Python 2.6, Python 3.1 -Python 2.4
Added file: http://bugs.python.org/file13969/pickletest_py3k.py

___
Python tracker 

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



[issue5265] StringIO can duplicate newlines in universal newlines mode

2009-05-12 Thread Jason R. Coombs

Jason R. Coombs  added the comment:

Perhaps I was wrong about 2.7.  However, I'm using stock builds of Python 2.6.2 
for Windows, both 32- and 64-bit, and I get the undesirable behavior.  
Apparently the problem is platform-specific.  Should this issue go under a new 
ticket?

--

___
Python tracker 

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



[issue2661] Mapping tests cannot be passed by user implementations

2009-05-12 Thread Daniel Diniz

Changes by Daniel Diniz :


--
components: +Tests
priority:  -> normal
versions: +Python 3.1 -Python 3.0

___
Python tracker 

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



[issue1724366] cPickle module doesn't work with universal line endings

2009-05-12 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Why would use a file in universal line endings mode for saving/loading
pickles? Pickles are binary data (even if version 0 pickles happens to
be human-readable), so you should open the files in binary mode (either
"rb" or "wb").

--
versions:  -Python 3.1

___
Python tracker 

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



[issue2768] os.fstat and other os.f* methods should use PyObject_AsFileDescriptor

2009-05-12 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Please produce a single patch comprising all changes. Also, there seem
to be some misindentations in the modified C code.

--

___
Python tracker 

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



[issue2661] Mapping tests cannot be passed by user implementations

2009-05-12 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +rhettinger

___
Python tracker 

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



[issue1511] csv input converts \r\n to \n but csv output does not when a field has internal line breaks

2009-05-12 Thread Daniel Diniz

Daniel Diniz  added the comment:

I get different behavior in py3k compared to trunk:

~/trunk-py$ ./python issue1511_py3k.py
[['foo', 'bar\r\nbaz\r\nbiff', 'boo']]
'foo,"bar\r\nbaz\r\nbiff",boo\r\n'

~/trunk-py$ ../py3k/python issue1511_py3k.py
[['foo', 'bar\nbaz\nbiff', 'boo']]
'foo,"bar\nbaz\nbiff",boo\n'

--
components: +IO
nosy: +ajaksu2, pitrou
stage:  -> test needed
versions: +Python 2.6 -Python 2.4
Added file: http://bugs.python.org/file13970/issue1511_py3k.py

___
Python tracker 

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



[issue6003] ZipFile.writestr "compression_type" argument

2009-05-12 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

This sounds like a good idea. Can you provide a patch (including tests)?

--
assignee:  -> ronaldoussoren
components: +Library (Lib)
nosy: +pitrou
priority:  -> normal

___
Python tracker 

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



[issue1672853] Error reading files larger than 4GB

2009-05-12 Thread Daniel Diniz

Changes by Daniel Diniz :


--
components: +IO
nosy: +benjamin.peterson, pitrou
stage:  -> test needed
versions: +Python 2.6, Python 3.1 -Python 2.5

___
Python tracker 

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



[issue2958] update Lib/test/README

2009-05-12 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

The README was so outdated that apparently it isn't in SVN anymore...

--
nosy: +pitrou
resolution:  -> out of date
status: open -> closed

___
Python tracker 

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



[issue5945] PyMapping_Check returns 1 for lists

2009-05-12 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
priority:  -> critical
versions: +Python 3.1

___
Python tracker 

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



[issue1621] Do not assume signed integer overflow behavior

2009-05-12 Thread Daniel Diniz

Changes by Daniel Diniz :


--
nosy: +haypo
stage:  -> patch review
versions: +Python 3.1

___
Python tracker 

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



[issue1621] Do not assume signed integer overflow behavior

2009-05-12 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +pitrou

___
Python tracker 

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



[issue1554] socketmodule cleanups: allow the use of keywords in socket functions

2009-05-12 Thread Daniel Diniz

Changes by Daniel Diniz :


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

___
Python tracker 

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



[issue1724366] cPickle module doesn't work with universal line endings

2009-05-12 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Also, I don't understand how you confirmed this bug under py3k. Text
files under py3k forbid bytes input, which is what pickle produces:

>>> pickle.dump([], sys.stdout)
Traceback (most recent call last):
  File "", line 1, in 
  File "/home/antoine/py3k/__svn__/Lib/pickle.py", line 1333, in dump
Pickler(file, protocol).dump(obj)
TypeError: write() argument 1 must be str, not bytes

--

___
Python tracker 

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



[issue6003] ZipFile.writestr "compression_type" argument

2009-05-12 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

I will.

I guess it's too late to merge this into 3.1 (as the first beta has 
already been released).

--

___
Python tracker 

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



[issue1142] code sample showing errors reading large files with py 2.5/3.0

2009-05-12 Thread Daniel Diniz

Changes by Daniel Diniz :


--
components: +IO
nosy: +benjamin.peterson, pitrou
stage:  -> test needed
versions: +Python 2.6, Python 3.1 -Python 2.5

___
Python tracker 

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



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

2009-05-12 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Is it about 2.6 or 3.0/3.1? This problem should have been solved in 3.1,
by the way of special escaping for undecodable characters (that is,
os.listdir() will always return strings rather than bytes objects, but
some of those strings may have special escapes in them).

--
nosy: +pitrou

___
Python tracker 

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



[issue6003] ZipFile.writestr "compression_type" argument

2009-05-12 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> I guess it's too late to merge this into 3.1 (as the first beta has 
> already been released).

Since the change should be small and uncontroversial, I think it could
go in.
Benjamin has the final word.

--
nosy: +benjamin.peterson

___
Python tracker 

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



[issue6000] compile error - PyNumber_InPlaceOr(newfree, allfree) < 0

2009-05-12 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Hmm, PyNumber_InPlaceOr() returns a PyObject*, no wonder why the
compiler complains.
I suppose gcc and MSVC and /really/ laxist to let this error fall through.

--
keywords: +easy
nosy: +pitrou
priority:  -> critical
stage:  -> needs patch
title: compile error on AIX and HP-UX 11.00 - PyNumber_InPlaceOr(newfree, 
allfree) < 0 -> compile error - PyNumber_InPlaceOr(newfree, allfree) < 0

___
Python tracker 

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



[issue1511] csv input converts \r\n to \n but csv output does not when a field has internal line breaks

2009-05-12 Thread Skip Montanaro

Skip Montanaro  added the comment:

Daniel> Daniel Diniz  added the comment:

Daniel> I get different behavior in py3k compared to trunk:

Daniel> ~/trunk-py$ ./python issue1511_py3k.py
Daniel> [['foo', 'bar\r\nbaz\r\nbiff', 'boo']]
Daniel> 'foo,"bar\r\nbaz\r\nbiff",boo\r\n'

Daniel> ~/trunk-py$ ../py3k/python issue1511_py3k.py
Daniel> [['foo', 'bar\nbaz\nbiff', 'boo']]
Daniel> 'foo,"bar\nbaz\nbiff",boo\n'

Try adding newline='' to your open calls.  I believe that will preserve the
CRLF pairs.

Skip

--

___
Python tracker 

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



[issue1511] csv input converts \r\n to \n but csv output does not when a field has internal line breaks

2009-05-12 Thread Daniel Diniz

Daniel Diniz  added the comment:

You're right, sorry about the noise. Closing as out of date.

--
resolution:  -> out of date
stage: test needed -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue2142] naive use of ''.join(difflib.unified_diff(...)) results in bogus diffs with inputs that don't end with end-of-line char

2009-05-12 Thread Daniel Diniz

Changes by Daniel Diniz :


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

___
Python tracker 

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



[issue3061] time.strftime() always decodes result with UTF-8

2009-05-12 Thread Ezio Melotti

Changes by Ezio Melotti :


--
nosy: +ezio.melotti

___
Python tracker 

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



[issue6005] Bug in socket example

2009-05-12 Thread Mads Kiilerich

New submission from Mads Kiilerich :

http://docs.python.org/library/socket.html says about socket.send:
"Applications are responsible for checking that all data has been sent;
if only some of the data was transmitted, the application needs to
attempt delivery of the remaining data."

And about socket.sendall:
"Unlike send(), this method continues to send data from string until
either all data has been sent or an error occurs."

However, the examples on the same page uses plain conn.send(data)
without checking anything. That is misleading.

A solution could be to use conn.sendall(data) instead.

--
assignee: georg.brandl
components: Documentation
messages: 87633
nosy: georg.brandl, kiilerix
severity: normal
status: open
title: Bug in socket example
type: behavior
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



[issue4135] help("modules ftp") fails due to test modules

2009-05-12 Thread Daniel Diniz

Daniel Diniz  added the comment:

This is a duplicate of issue 4540.

--
nosy: +ajaksu2
resolution:  -> duplicate
stage:  -> committed/rejected
status: open -> closed
superseder:  -> typo in a module describes utf-8 as uft-8

___
Python tracker 

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



[issue1705520] pyunit should allow __unittest in locals to trim stackframes

2009-05-12 Thread Daniel Diniz

Changes by Daniel Diniz :


--
nosy: +michael.foord
stage:  -> test needed
versions: +Python 2.7, Python 3.2 -Python 2.6

___
Python tracker 

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



[issue2537] re.compile(r'((x|y+)*)*') should fail

2009-05-12 Thread Ezio Melotti

Changes by Ezio Melotti :


--
nosy: +ezio.melotti

___
Python tracker 

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



[issue1693050] \w not helpful for non-Roman scripts

2009-05-12 Thread Ezio Melotti

Changes by Ezio Melotti :


--
nosy: +ezio.melotti

___
Python tracker 

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



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

2009-05-12 Thread Jan Kaliszewski

Jan Kaliszewski  added the comment:

The matter had been discussed (and not once...), IMO without 
satisfactory conclusion -- see:

* http://bugs.python.org/issue612627 (the feature added)
* http://bugs.python.org/issue1214889 (another feature rejected)
* http://bugs.python.org/issue1099364 (problems reported)
* http://bugs.python.org/issue967986 (problems reported)
* http://mail.python.org/pipermail/python-list/2008-December/693601.html
* http://mail.python.org/pipermail/python-dev/2008-December/084362.html
* and probably in many other places...

Anyway, it's definitely a bug -- either in the language/implementation 
or in the documentation.

--
nosy: +zuo

___
Python tracker 

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



[issue5201] Using LDFLAGS='-rpath=\$$LIB:/some/other/path' ./configure breaks the build

2009-05-12 Thread Floris Bruynooghe

Floris Bruynooghe  added the comment:

Oh, sorry about the super() that is why the ar test failed then.  Sorry,
I got a little confused by the conflicting update on that file while
working on this patch and must have merged it badly.

--

___
Python tracker 

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



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

2009-05-12 Thread Jan Kaliszewski

Jan Kaliszewski  added the comment:

PS. The main problem is not a lack of feature but that inconsistency, 
and that's not documented if File type docs:

print >>my_file, my_unicode  # <- is encoded with my_file.encoding
my_file.write(my_unicode)  # <- is encoded with my_file.encoding

# and on the other hand:
print my_unicode -- works  # <- is encoded with my_file.encoding
sys.stdout.write(my_unicode)  # <- is encoded with what is returned by 
sys.getdefaultencoding()

--
versions: +Python 2.4

___
Python tracker 

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



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

2009-05-12 Thread Jan Kaliszewski

Jan Kaliszewski  added the comment:

s / if File / in File
s / -- works  # <- is encoded with my_file.encoding /  # <- is encoded 
with sys.stdout.encoding

(sorry, too little sleep)

--

___
Python tracker 

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



[issue1552] fromfd() and socketpair() should return wrapped sockets

2009-05-12 Thread Daniel Diniz

Changes by Daniel Diniz :


--
stage:  -> patch review
type: behavior -> feature request
versions: +Python 2.7, Python 3.2 -Python 2.5, Python 2.6

___
Python tracker 

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



[issue6000] compile error - PyNumber_InPlaceOr(newfree, allfree) < 0

2009-05-12 Thread Mark Dickinson

Mark Dickinson  added the comment:

The error's also in 3.0.

--
nosy: +marketdickinson
versions: +Python 3.0

___
Python tracker 

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



[issue4050] inspect.findsource() returns binary data for shared library modules

2009-05-12 Thread Daniel Diniz

Daniel Diniz  added the comment:

This bug seems to break help(C-module) in py3k after rev 70587:

>>> import pickle
>>> help(pickle)
Traceback (most recent call last):
  File "", line 1, in 
  File "~/py3k/Lib/site.py", line 429, in __call__
return pydoc.help(*args, **kwds)
  File "~/py3k/Lib/pydoc.py", line 1709, in __call__
self.help(request)
  File "~/py3k/Lib/pydoc.py", line 1755, in help
else: doc(request, 'Help on %s:')
  File "~/py3k/Lib/pydoc.py", line 1505, in doc
pager(render_doc(thing, title, forceload))
  File "~/py3k/Lib/pydoc.py", line 1500, in render_doc
return title % desc + '\n\n' + text.document(object, name)
  File "~/py3k/Lib/pydoc.py", line 320, in document
if inspect.ismodule(object): return self.docmodule(*args)
  File "~/py3k/Lib/pydoc.py", line 1086, in docmodule
contents.append(self.document(value, key, name))
  File "~/py3k/Lib/pydoc.py", line 321, in document
if inspect.isclass(object): return self.docclass(*args)
  File "~/py3k/Lib/pydoc.py", line 1131, in docclass
doc = getdoc(object)
  File "~/py3k/Lib/pydoc.py", line 81, in getdoc
result = inspect.getdoc(object) or inspect.getcomments(object)
  File "~/py3k/Lib/inspect.py", line 581, in getcomments
lines, lnum = findsource(object)
  File "~/py3k/Lib/inspect.py", line 524, in findsource
lines = linecache.getlines(file, module.__dict__)
  File "~/py3k/Lib/linecache.py", line 41, in getlines
return updatecache(filename, module_globals)
  File "~/py3k/Lib/linecache.py", line 130, in updatecache
lines = fp.readlines()
  File "~/py3k/Lib/codecs.py", line 300, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf8' codec can't decode byte 0x80 in position 24:
unexpected code byte


brodierao's patch fixes it.

--
nosy: +haypo
priority: normal -> release blocker
versions: +Python 3.1

___
Python tracker 

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



[issue821862] ftplib: Strict RFC 959 (telnet in command channel)

2009-05-12 Thread Daniel Diniz

Changes by Daniel Diniz :


--
stage:  -> test needed
type:  -> behavior
versions: +Python 2.6, Python 3.1 -Python 2.4

___
Python tracker 

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



[issue1576598] ftplib doesn't follow standard

2009-05-12 Thread Daniel Diniz

Changes by Daniel Diniz :


--
dependencies: +ftplib: Strict RFC 959 (telnet in command channel)
status: pending -> open

___
Python tracker 

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



[issue1574310] os.popen with os.close gives error message

2009-05-12 Thread Daniel Diniz

Changes by Daniel Diniz :


--
resolution:  -> invalid
stage: test needed -> committed/rejected
status: pending -> closed

___
Python tracker 

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



[issue1543469] test_subprocess fails on cygwin

2009-05-12 Thread Daniel Diniz

Changes by Daniel Diniz :


--
resolution:  -> wont fix
stage: test needed -> committed/rejected
status: pending -> closed

___
Python tracker 

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



[issue1676121] Problem linking to readline lib on x86(64) Solaris

2009-05-12 Thread Daniel Diniz

Changes by Daniel Diniz :


--
resolution:  -> duplicate
stage: test needed -> committed/rejected
status: pending -> closed
superseder:  -> documentation for new SSL module

___
Python tracker 

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



[issue831574] Solaris term.h needs curses.h

2009-05-12 Thread Daniel Diniz

Daniel Diniz  added the comment:

Closing on lack of feedback.

--
resolution:  -> rejected
stage:  -> committed/rejected
status: pending -> closed

___
Python tracker 

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



[issue6006] ffi.c compile failures on AIX 5.3 with xlc

2009-05-12 Thread Ely Eshel

New submission from Ely Eshel :

Building Python 3.0.1 with xlc on AIX 5.3, The following compiler 
errros come up:
/home11/eeshel/dev/python/Python-
3.0.1/Modules/_ctypes/libffi/src/powerpc/ffi.c", line 141.25: 1506-045 
(S) Undeclared identifier FFI_LINUX_SOFT_FLOAT.
"/home11/eeshel/dev/python/Python-
3.0.1/Modules/_ctypes/libffi/src/powerpc/ffi.c", line 601.19: 1506-045 
(S) Undeclared identifier FFI_LINUX_SOFT_FLOAT.
"/home11/eeshel/dev/python/Python-
3.0.1/Modules/_ctypes/libffi/src/powerpc/ffi.c", line 604.19: 1506-045 
(S) Undeclared identifier FFI_LINUX64.
"/home11/eeshel/dev/python/Python-
3.0.1/Modules/_ctypes/libffi/src/powerpc/ffi.c", line 668.23: 1506-045 
(S) Undeclared identifier FFI_SYSV.
"/home11/eeshel/dev/python/Python-
3.0.1/Modules/_ctypes/libffi/src/powerpc/ffi.c", line 902.10: 1506-045 
(S) Undeclared identifier FFI_SYSV.
"/home11/eeshel/dev/python/Python-
3.0.1/Modules/_ctypes/libffi/src/powerpc/ffi.c", line 902.10: 1506-051 
(S) Case expression must be a valid integral constant.
"/home11/eeshel/dev/python/Python-
3.0.1/Modules/_ctypes/libffi/src/powerpc/ffi.c", line 903.10: 1506-045 
(S) Undeclared identifier FFI_GCC_SYSV.
"/home11/eeshel/dev/python/Python-
3.0.1/Modules/_ctypes/libffi/src/powerpc/ffi.c", line 903.10: 1506-051 
(S) Case expression must be a valid integral constant.
"/home11/eeshel/dev/python/Python-
3.0.1/Modules/_ctypes/libffi/src/powerpc/ffi.c", line 904.10: 1506-045 
(S) Undeclared identifier FFI_LINUX.
"/home11/eeshel/dev/python/Python-
3.0.1/Modules/_ctypes/libffi/src/powerpc/ffi.c", line 904.10: 1506-051 
(S) Case expression must be a valid integral constant.
"/home11/eeshel/dev/python/Python-
3.0.1/Modules/_ctypes/libffi/src/powerpc/ffi.c", line 905.10: 1506-045 
(S) Undeclared identifier FFI_LINUX_SOFT_FLOAT.
"/home11/eeshel/dev/python/Python-
3.0.1/Modules/_ctypes/libffi/src/powerpc/ffi.c", line 905.10: 1506-051 
(S) Case expression must be a valid integral constant.
"/home11/eeshel/dev/python/Python-
3.0.1/Modules/_ctypes/libffi/src/powerpc/ffi.c", line 1027.26: 1506-045 
(S) Undeclared identifier FFI_SYSV.
"/home11/eeshel/dev/python/Python-
3.0.1/Modules/_ctypes/libffi/src/powerpc/ffi.c", line 1152.27: 1506-045 
(S) Undeclared identifier FFI_LINUX_SOFT_FLOAT.

Configuration command was:
configure --prefix=/home/eeshel/bin/python/python-3.0.1 --exec-
prefix=/home/eeshel/bin/python/python-3.0.1/ibm --with-
gcc="/bb/util/version10-022009/usr/vacpp/bin/xlc_r -Wl,-G" --with-
cxx="/bb/util/version10-022009/usr/vacpp/bin/xlc_r -Wl,-G" --disable-
ipv6 --disable-shared --with-threads

--
assignee: theller
components: ctypes
messages: 87642
nosy: elyeshel, theller
severity: normal
status: open
title: ffi.c compile failures on AIX 5.3 with xlc
versions: Python 3.0

___
Python tracker 

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



[issue1729930] 2.5.1 latest svn fails test_curses and test_timeout

2009-05-12 Thread Daniel Diniz

Changes by Daniel Diniz :


--
components: +Tests
stage:  -> test needed
type:  -> behavior
versions: +Python 2.6 -Python 2.5

___
Python tracker 

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



[issue3872] Python 2.6rc2: Tix ComboBox error

2009-05-12 Thread Krzysztof Klimonda

Krzysztof Klimonda  added the comment:

I still get this error using "Python 2.6.2 (release26-maint, Apr 19
2009, 01:58:18)" on Ubuntu 9.04:
https://bugs.launchpad.net/bugs/371720
Also test_combotix.py doesn't work.

--
nosy: +kklimonda

___
Python tracker 

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



[issue1260171] subprocess: more general (non-buffering) communication

2009-05-12 Thread Daniel Diniz

Changes by Daniel Diniz :


--
keywords: +patch
stage:  -> test needed
versions: +Python 2.7, Python 3.2 -Python 2.6

___
Python tracker 

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



[issue1195] Problems on Linux with Ctrl-D and Ctrl-C during raw_input

2009-05-12 Thread Daniel Diniz

Daniel Diniz  added the comment:

Confirmed in trunk, doesn't seem to affect py3k.

--
keywords: +patch
nosy: +ajaksu2
stage:  -> test needed
versions: +Python 2.6 -Python 2.5

___
Python tracker 

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



[issue706392] faster _socket.connect variant desired

2009-05-12 Thread Daniel Diniz

Changes by Daniel Diniz :


--
stage:  -> test needed
versions: +Python 2.7, Python 3.2 -Python 2.6, Python 3.0

___
Python tracker 

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



[issue3872] Python 2.6rc2: Tix ComboBox error

2009-05-12 Thread Krzysztof Klimonda

Krzysztof Klimonda  added the comment:

It is probably related to the old version of Tix that both Debian and
Ubuntu ship.

--

___
Python tracker 

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



[issue706406] fix bug #685846: raw_input defers signals

2009-05-12 Thread Daniel Diniz

Changes by Daniel Diniz :


--
stage:  -> test needed
type:  -> behavior
versions: +Python 2.6
Added file: http://bugs.python.org/file13971/test.py

___
Python tracker 

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



[issue730473] Add Py_AtInit() startup hook for extenders

2009-05-12 Thread Daniel Diniz

Changes by Daniel Diniz :


--
stage:  -> test needed
versions: +Python 2.7, Python 3.2 -Python 2.6

___
Python tracker 

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



[issue6000] compile error - PyNumber_InPlaceOr(newfree, allfree) < 0

2009-05-12 Thread Benjamin Peterson

Changes by Benjamin Peterson :


--
assignee:  -> benjamin.peterson
nosy: +benjamin.peterson
priority: critical -> release blocker

___
Python tracker 

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



[issue5999] compile error on HP-UX 11.22 ia64 - 'mbstate_t' is used as a type, but has not been defined as a type

2009-05-12 Thread Sridhar Ratnakumar

Sridhar Ratnakumar  added the comment:

Adding Martin to the nosy list as this is related to his change:
http://svn.python.org/view/python/branches/py3k/Modules/python.c?view=annotate#l17

--
nosy: +loewis

___
Python tracker 

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



[issue706406] fix bug #685846: raw_input defers signals

2009-05-12 Thread Michael Stone

Michael Stone  added the comment:

ajaksu2 has uploaded a file called "test.py" that seems to have nothing 
to do with this issue, unless I'm misunderstanding something.  I don't 
see any call to readline in the uploaded file at all.  Perhaps the file 
you meant to upload, was the one from issue 1113?
http://bugs.python.org/file8392/test.py

--

___
Python tracker 

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



[issue706406] fix bug #685846: raw_input defers signals

2009-05-12 Thread Michael Stone

Changes by Michael Stone :


--
nosy: +ajaksu2

___
Python tracker 

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



[issue706406] fix bug #685846: raw_input defers signals

2009-05-12 Thread Daniel Diniz

Changes by Daniel Diniz :


Removed file: http://bugs.python.org/file13971/test.py

___
Python tracker 

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



[issue706406] fix bug #685846: raw_input defers signals

2009-05-12 Thread Daniel Diniz

Daniel Diniz  added the comment:

Oops, sorry! I should know better than to name scripts test.py: the
upload failed and when I realized that (after some time), test.py was
already something else.

Thanks for catching this instance of PEBKAC, Michael :)

--
Added file: http://bugs.python.org/file13972/test_raw_input_signal.py

___
Python tracker 

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



[issue5977] distutils build_ext.get_outputs returns wrong result (patch)

2009-05-12 Thread Daniel Diniz

Daniel Diniz  added the comment:

Tarek,
It looks like all buildbots are red because setup.py doesn't work with
this change:

running build
running build_ext
Traceback (most recent call last):
  File "./setup.py", line 1896, in 
main()
  File "./setup.py", line 1891, in main
'Lib/smtpd.py']
  File
"/home2/buildbot/slave/trunk.loewis-sun/build/Lib/distutils/core.py",
line 149, in setup
dist.run_commands()
  File
"/home2/buildbot/slave/trunk.loewis-sun/build/Lib/distutils/dist.py",
line 974, in run_commands
self.run_command(cmd)
  File
"/home2/buildbot/slave/trunk.loewis-sun/build/Lib/distutils/dist.py",
line 994, in run_command
cmd_obj.run()
  File
"/home2/buildbot/slave/trunk.loewis-sun/build/Lib/distutils/command/build.py",
line 132, in run
self.run_command(cmd_name)
  File
"/home2/buildbot/slave/trunk.loewis-sun/build/Lib/distutils/cmd.py",
line 326, in run_command
self.distribution.run_command(command)
  File
"/home2/buildbot/slave/trunk.loewis-sun/build/Lib/distutils/dist.py",
line 994, in run_command
cmd_obj.run()
  File
"/home2/buildbot/slave/trunk.loewis-sun/build/Lib/distutils/command/build_ext.py",
line 348, in run
self.build_extensions()
  File "./setup.py", line 103, in build_extensions
missing = self.detect_modules()
  File "./setup.py", line 302, in detect_modules
add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
AttributeError: 'NoneType' object has no attribute 'library_dirs'
[31295 refs]
*** Error code 1
The following command caused the error:
case $MAKEFLAGS in \
*s*)  CC='gcc' LDSHARED='gcc -shared' OPT='-g -Wall -Wstrict-prototypes'
./python -E ./setup.py -q build;; \
*)  CC='gcc' LDSHARED='gcc -shared' OPT='-g -Wall -Wstrict-prototypes'
./python -E ./setup.py build;; \
esac
make: Fatal error: Command failed for target `sharedmods'
program finished with exit code 1

--
nosy: +ajaksu2
priority:  -> critical
status: closed -> open
Added file: http://bugs.python.org/file13973/build_ext._compiler.diff

___
Python tracker 

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



[issue6001] Test discovery for unittest

2009-05-12 Thread Gregory P. Smith

Changes by Gregory P. Smith :


--
nosy: +gregory.p.smith

___
Python tracker 

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



[issue917120] imaplib: incorrect quoting in commands

2009-05-12 Thread Dave Baggett

Dave Baggett  added the comment:

I'm not sure this causes the behavior reported here, but I believe there
really is a bug in imaplib.

In particular, it seems wrong to me that this line:

mustquote = re.compile(r"[^\w!#$%&'*+,.:;<=>?^`|~-]")

has \w in it. Should that be \s?

I found this when I noticed that SELECT commands on mailboxes with
spaces in their names failed.

--
nosy: +dmbaggett

___
Python tracker 

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



[issue917120] imaplib: incorrect quoting in commands

2009-05-12 Thread Dave Baggett

Dave Baggett  added the comment:

OK, I missed the initial caret in the regex. The mustquote regex is
listing everything that needn't be quoted, and then negating. I still
think it's wrong, though. According to BNF given in the Formal Syntax
section of RFC 3501, you must must quote atom-specials, which are
defined thus:

atom-specials   = "(" / ")" / "{" / SP / CTL / list-wildcards /
  quoted-specials / resp-specials
list-wildcards  = "%" / "*"
quoted-specials = DQUOTE / "\"
resp-specials   = "]"

So I think this regex should do it:

mustquote = re.compile(r'[()\s%*"]|"{"|"\\"|"\]"')

Changing status to bug.

--
type: feature request -> behavior

___
Python tracker 

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



[issue5265] StringIO can duplicate newlines in universal newlines mode

2009-05-12 Thread Alexandre Vassalotti

Alexandre Vassalotti  added the comment:

> Should this issue go under a new ticket?

Yes, it would be preferable as the issue is probably not specific to
io.StringIO. Also, make sure that you include the result of this test-case:

open("testnl.txt", "wb").write("foo\r\nbar\r\n")
open("testnl.txt", "rU").read()

--

___
Python tracker 

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



[issue730473] Add Py_AtInit() startup hook for extenders

2009-05-12 Thread Patrick Miller

Patrick Miller  added the comment:

Thanks... I'll submit patches for 2.6, 2.7, and 3.2

On Tue, May 12, 2009 at 2:07 PM, Daniel Diniz  wrote:
>
> Changes by Daniel Diniz :
>
>
> --
> stage:  -> test needed
> versions: +Python 2.7, Python 3.2 -Python 2.6
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue6000] compile error - PyNumber_InPlaceOr(newfree, allfree) < 0

2009-05-12 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

Fixed in r72589.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue6007] distutils tricks you into thinking you can build extensions with mingw

2009-05-12 Thread Jean-Paul Calderone

New submission from Jean-Paul Calderone :

Per issue3308, it is not really possible to build Python extensions with
MinGW anymore (as far as I can tell).  The distutils documentation is
misleading in this regard, as is the continued existence of the
build_ext --compiler=mingw32 option.  The result of using this feature
is a dll which cannot actually be loaded.

If my understanding of the issue is correct, then the mingw32 compiler
should be removed from distutils and the documentation corrected to
indicate the lack of support for this compiler toolchain.

--
assignee: tarek
components: Distutils, Documentation, Library (Lib), Windows
messages: 87660
nosy: exarkun, tarek
severity: normal
status: open
title: distutils tricks you into thinking you can build extensions with mingw
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



[issue6007] distutils tricks you into thinking you can build extensions with mingw

2009-05-12 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

(or perhaps an announcement can be made on distutils-sig in the hope
that someone step up and fix mingw support?)

--
nosy: +pitrou

___
Python tracker 

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



[issue5977] distutils build_ext.get_outputs returns wrong result (patch)

2009-05-12 Thread Daniel Diniz

Daniel Diniz  added the comment:

Tarek,
Sorry about breaking the compiler option, I was aware that passing None
there would have that risk.

I think anything that breaks people's setup.py shouldn't go into
release26-maint without a really important motivation.

Is there a way to keep self.compiler as an attribute and make
new_compiler work correctly with it?

--
priority: critical -> normal

___
Python tracker 

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



[issue5716] Overzealous deprecation of BaseException.message

2009-05-12 Thread Francis Devereux

Changes by Francis Devereux :


--
nosy: +frankoid

___
Python tracker 

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



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

2009-05-12 Thread Jan Kaliszewski

Changes by Jan Kaliszewski :


--
assignee:  -> georg.brandl
components: +Documentation
nosy: +georg.brandl

___
Python tracker 

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



[issue6008] Idle should be installed as `idle3.1` and not `idle3`

2009-05-12 Thread Sridhar Ratnakumar

New submission from Sridhar Ratnakumar :

In Python2.x, Idle is installed as idle2.x. This is the case with Linux
and Mac.

However, in Py3.1b2, Idle is installed as `idle3`. 

Expected script name is `idle3.1`.

--
components: IDLE
messages: 87664
nosy: srid
severity: normal
status: open
title: Idle should be installed as `idle3.1` and not `idle3`
versions: Python 3.1

___
Python tracker 

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



[issue2972] arguments and default path not set in site.py and sitecustomize.py

2009-05-12 Thread Hari Krishna Dara

Hari Krishna Dara  added the comment:

I hit exactly this same problem today trying to customize sys.path. We
conventionally use .pth file under site-packages to add our custom
library paths, but this is not convenient in development while switching
between branches/checkout directories, so I would like something like
this to work:

def updateADPath(dir):
""" Determine the root of the AD code given the specific sub
directory and update sys.path. Returns 0 on success. """
pass

# First try the current directory. If not found, try the main script's
directory.
if updateADPath(os.getcwd()):
# If not absolute path, the script is in the current dir anyway,
which we have already tried.
if len(sys.argv) > 0 and sys.argv[0] != '-c' and
os.path.isabs(sys.argv[0]):
   updateADPath(os.path.split(sys.argv[0])[0])

It works quite well as long as I run when the CWD is with in the branch
directory, but if it is outside (such as when running from a windows
shortcut) there is no way to determine the root. Is there an alternative
means to access the raw command-line arguments, it would help me provide
a partial workaround for this problem.

--
nosy: +haridsv

___
Python tracker 

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



[issue5964] WeakSet cmp methods

2009-05-12 Thread Robert Schuppenies

Changes by Robert Schuppenies :


--
stage: needs patch -> patch review

___
Python tracker 

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



[issue2622] Import errors in email.message.py

2009-05-12 Thread Zach Hirsch

Zach Hirsch  added the comment:

I'm not sure if this is the same problem, but it seems related.  I can
get the same ImportError without involving py2exe or modulefinder:

Python 2.5.4 (r254:67916, Feb 18 2009, 03:00:47) 
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> import email.message
>>> sys.modules = sys.modules.copy()
>>> msg = email.message.Message()
>>> msg['From'] = 'f...@bar.com'
>>> msg.as_string()
Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/lib/python2.5/email/message.py", line 128, in as_string
from email.Generator import Generator
  File "/usr/lib/python2.5/email/__init__.py", line 80, in __getattr__
mod = sys.modules[self.__name__]
KeyError: 'email.generator'

If the "sys.modules = sys.modules.copy()" line is left out, everything
works as expected.

--
nosy: +zhirsch

___
Python tracker 

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



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

2009-05-12 Thread Vaibhav Mallya

New submission from Vaibhav Mallya :

The first example, and several subsequent examples later on in the
optparse docs, use 'default' as an argument, even though it's apparently
deprecated in favor of set_defaults. At the risk of overstating the
obvious, this seems to be inconsistent. Even the section on defaults
http://docs.python.org/library/optparse.html#default-values uses the
'default' keyword without stressing its deprecation. It might make more
sense to leave it out of all of the examples altogether, replacing it
with the appropriate set_defaults invocations.

--
assignee: georg.brandl
components: Documentation, Library (Lib)
messages: 87668
nosy: georg.brandl, mallyvai
severity: normal
status: open
title: optparse docs say 'default' keyword is deprecated but uses it in most 
examples
type: behavior
versions: Python 2.6, Python 2.7, 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