[issue9638] remove dead code from py3k imaplib

2010-08-19 Thread Senthil Kumaran

Senthil Kumaran  added the comment:

Fixed in r84195 and r84196.

--
nosy: +orsenthil
resolution:  -> fixed
stage: patch review -> 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



[issue919238] Recursive variable definition causes sysconfig infinite loop

2010-08-19 Thread Mark Lawrence

Changes by Mark Lawrence :


--
stage:  -> patch review
versions: +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



[issue2001] Pydoc interactive browsing enhancement

2010-08-19 Thread René Liebscher

Changes by René Liebscher :


--
nosy: +r.liebscher

___
Python tracker 

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



[issue1046092] HTMLParser fix to accept mailformed tag attributes

2010-08-19 Thread Mark Lawrence

Mark Lawrence  added the comment:

The patch is a one line change to a compiled regex.  Would someone with html 
and/or regex knowledge like to comment, thanks, as I've no idea as to the 
implications.  I also agree with comments in msg81692 regarding better unit 
tests.  Please don't ask me! :)

--
nosy: +BreamoreBoy
stage: unit test needed -> patch review
versions: +Python 3.2 -Python 2.7

___
Python tracker 

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



[issue976613] socket timeout problems on Solaris

2010-08-19 Thread Mark Lawrence

Mark Lawrence  added the comment:

Is this still a problem on Solaris?

--
nosy: +BreamoreBoy
versions: +Python 2.7, Python 3.1, 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



[issue706263] print raises exception when no console available

2010-08-19 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc  added the comment:

I use Windows XP.
Note that nothing is displayed on screen. there is just a error.txt file in the 
current directory.

--

___
Python tracker 

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



[issue9639] urllib2's AbstractBasicAuthHandler is limited to 6 requests

2010-08-19 Thread Marcus Huewe

New submission from Marcus Huewe :

It seems that commit r81636 broke urllib2's AbstractBasicAuthHandler because 
the "retried" attribute isn't reset on success. Therefore it's limited to 6 
requests. The attached patch should fix this problem.

--
components: Library (Lib)
files: urllib2-AbstractBasicAuthHandler_reset_attr.diff
keywords: patch
messages: 114336
nosy: mhuewe
priority: normal
severity: normal
status: open
title: urllib2's AbstractBasicAuthHandler is limited to 6 requests
type: behavior
versions: Python 2.7
Added file: 
http://bugs.python.org/file18574/urllib2-AbstractBasicAuthHandler_reset_attr.diff

___
Python tracker 

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



[issue9636] {'key': 'value'}[b'key'] raises a BytesWarning

2010-08-19 Thread STINNER Victor

STINNER Victor  added the comment:

Oh. flox told me that there are other cases raising BytesWarning:

'abc' in {b'abc'}
'abc' in (b'xxx',)
'abc' in [b'xxx']

I suppose that the behaviour is different (only fail with same value / fail 
with different values) because set does first compare the hash (as dict), 
whereas tuple and list use a classic comparaison.

--

___
Python tracker 

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



[issue9636] {'key': 'value'}[b'key'] raises a BytesWarning

2010-08-19 Thread Florent Xicluna

Florent Xicluna  added the comment:

Various annoyances:

>>> some_set = {'oOO', b'oOO'}
BytesWarning: Comparison between bytes and string

>>> 'a' in {b'', ''}
BytesWarning: Comparison between bytes and string

>>> 'abc' in (b'def', 123)
BytesWarning: Comparison between bytes and string

>>> 'abc' in {b'abc', 123}
BytesWarning: Comparison between bytes and string

>>> {42: 'abc'} == {42: b'def'}
BytesWarning: Comparison between bytes and string

--
nosy: +flox

___
Python tracker 

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



[issue9636] {'key': 'value'}[b'key'] raises a BytesWarning

2010-08-19 Thread Florent Xicluna

Changes by Florent Xicluna :


--
type:  -> behavior

___
Python tracker 

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



[issue9639] urllib2's AbstractBasicAuthHandler is limited to 6 requests

2010-08-19 Thread Senthil Kumaran

Senthil Kumaran  added the comment:

The patch is fine.

--
assignee:  -> orsenthil
nosy: +orsenthil
resolution:  -> accepted

___
Python tracker 

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



[issue8595] Explain the default timeout in http-client-related libraries

2010-08-19 Thread Anders Sandvig

Changes by Anders Sandvig :


--
nosy: +anders.sandvig

___
Python tracker 

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



[issue9640] Improved doctest REPORT_*DIFFs with ELLIPSIS and/or NORMALIZE_WHITESPACE

2010-08-19 Thread W. Trevor King

New submission from W. Trevor King :

I had been struggling to find the failure-causing mismatch in a doctest with 
lots of output.  REPORT_UDIFF gave lots of false mismatches because I was also 
using NORMALIZE_WHITESPACE.  Looking through the doctest.py source, I saw a 
comment suggesting a nicer diff in the similar REPORT_*DIFF and ELLIPSIS 
situation.  So I went ahead and implemented one.  I'm not super happy with the 
cleanliness of the implementation, but it ended up being a bit trickier than 
I'd initially expected.

--
components: Library (Lib)
messages: 114340
nosy: labrat
priority: normal
severity: normal
status: open
title: Improved doctest REPORT_*DIFFs with ELLIPSIS and/or NORMALIZE_WHITESPACE
type: feature request
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



[issue9640] Improved doctest REPORT_*DIFFs with ELLIPSIS and/or NORMALIZE_WHITESPACE

2010-08-19 Thread W. Trevor King

W. Trevor King  added the comment:

Here's my patch, or pull from my Mercurial repository
  
http://www.physics.drexel.edu/~wking/code/hg/hgwebdir.cgi/python/rev/6638df20c1a4

--
keywords: +patch
Added file: http://bugs.python.org/file18575/doctest_diff.patch

___
Python tracker 

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



[issue9632] Remove sys.setfilesystemencoding()

2010-08-19 Thread STINNER Victor

STINNER Victor  added the comment:

New version of the patch: remove also _Py_SetFileSystemEncoding().

--
Added file: 
http://bugs.python.org/file18576/remove_sys_setfilesystemencoding-2.patch

___
Python tracker 

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



[issue9632] Remove sys.setfilesystemencoding()

2010-08-19 Thread STINNER Victor

Changes by STINNER Victor :


Removed file: 
http://bugs.python.org/file18565/remove_sys_setfilesystemencoding.patch

___
Python tracker 

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



[issue9641] httplib/ftplib: timeout parameter not applied correctly

2010-08-19 Thread Anders Sandvig

New submission from Anders Sandvig :

>From :

Consider the following code for retreieving a web page using httplib:

   def get_url(hostname, port, url, timeout=5):
   con = httplib.HTTPConnection(hostname, port, timeout)
   con.request("GET", url)
   res = con.getresponse()
   data = res.read()
   return res, data

As expected, this will raise a socket.error if the client is unable to
connect before the timeout has expired. However, once the connection
has been made, the timeout parameter no longer has any effect and
con.getresponse() will block forever if the server does not send any
data.

I think the reason for this is that the socket object created in
HTTPConnection.connect() has a default timeout of 0 (i.e. it is never
set explicitly):

   def connect(self):
   """Connect to the host and port specified in __init__."""
   self.sock = socket.create_connection((self.host,self.port),
self.timeout)


For now I have been able to work around this by manually setting the
timeout of the (private) socket object after calling con.request(),
like this:

   ...
   con.request("GET", url)
   con.sock.settimeout(timeout)
   res = con.getresponse()
   ...

However, I don't think this is a very good solution as it relies on
knowledge about the inner workings of httplib (and I had to read the
library source code to come up with it).

>From the top of my head, I can come up with three (four) ways of
properly solving the issue:

1) Documenting the timeout behavior and describing the above hack in
the httplib documentation.

2) Modify HTTPConnection.connect() to set the timeout on the socket
object after it has been  created (using the same timeout as given on
the HTTPConnection constructor).

3) Adding (optional) timeout parameters to
HTTPConnection.getresponse() and HTTPResponse.read() (and possibly
other functions with the same problem).

4) A combination of 2) and 3).

[...]

--
components: Library (Lib)
messages: 114343
nosy: anders.sandvig
priority: normal
severity: normal
status: open
title: httplib/ftplib: timeout parameter not applied correctly
type: behavior
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3

___
Python tracker 

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



[issue8622] Add PYTHONFSENCODING environment variable

2010-08-19 Thread STINNER Victor

STINNER Victor  added the comment:

Oh, I realized that PYTHONFSENCODING is ignored on Windows and Mac OS X. r84201 
and r84202 fix test_sys, and r84203 fixes the documentation and Python usage 
(hide PYTHONFSENCODING variable in Python help on Windows and Mac OS X).

We might allow to override the filesystem encoding on Windows, but I don't 
think that it is a good idea because third party libraries will use anyway the 
mbcs encoding.

--

___
Python tracker 

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



[issue901727] extra_path kwarg to setup() undocumented

2010-08-19 Thread Éric Araujo

Éric Araujo  added the comment:

The patch has some words missing (“to put between”), but I can add them. I’m 
also going to include the example that was in Bob’s message, since the bit of 
doc in the table alone is not enough to understand clearly what this does IMO.

I’m reassigning this to distutils2. distutils only gets bug fixes, and its doc 
is changed only when it says something that doesn’t work. This lets us put 
energy on distutils2.

I’ll get to it this week-end or later.

--
assignee: d...@python -> eric.araujo
components: +Distutils2 -Distutils, Documentation
nosy: +eric.araujo
versions: +Python 2.5, Python 2.6, Python 2.7 -Python 3.2

___
Python tracker 

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



[issue901727] extra_path kwarg to setup() undocumented

2010-08-19 Thread Éric Araujo

Changes by Éric Araujo :


--
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



[issue6822] Error calling .storlines from ftplib

2010-08-19 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> I do not agree with Antoine.  For binary transfer, another method is
> called, and it does work fine.  However, storelines would be called
> for ASCII mode, in which encoding and decoding should be done by the
> FTP program.  ASCII mode would translate files, so a file loaded on a
> PC may not be identical to the same file when loaded on a Mac.

Well if it's really "ASCII" mode, it should refuse any character > 127,
in which case I would agree to hardcode ascii as an encoding.

But, in any case, storing "lines" has a meaning in binary mode, as
witnessed by the fact that binary files in Python 3 have a readline()
method. This means storlines should still succeed for binary input, even
if it is made compatible with text input.

I would personally argue that the text transfer mode in FTP is an
ill-conceived feature from the start and ftplib should do whatever is
reasonable nowadays, rather than what looked reasonable 30 years ago.

--

___
Python tracker 

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



[issue9641] httplib/ftplib: timeout parameter not applied correctly

2010-08-19 Thread Anders Sandvig

Anders Sandvig  added the comment:

The best (and simplest) solution seems to be option 2).

Affected methods are found to be HTTPConnection.connect() and
HTTPSConnection.connect() in Lib/httplib.py (Lib/http/client.py for 3.x) and
FTP.connect() and FTP.ntransfercmd() in Lib/ftplib.py.

It appears the issue can be fixed by simply adding a call to settimeout() on
socket objects returned by socket.create_connection(), but this should of course
be verified by appropriate tests.

--

___
Python tracker 

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



[issue9635] Add Py_BREAKPOINT and sys.breakpoint hooks

2010-08-19 Thread Éric Araujo

Changes by Éric Araujo :


--
title: RFE(patch): add Py_BREAKPOINT and sys.breakpoint hooks -> Add 
Py_BREAKPOINT and sys.breakpoint hooks

___
Python tracker 

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



[issue9630] Reencode filenames when setting the filesystem encoding

2010-08-19 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc  added the comment:

I would rename the feature to something like "redecode-modules": the filenames 
were decoded with the wrong encoding, and must be decoded again.

--
nosy: +amaury.forgeotdarc

___
Python tracker 

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



[issue9630] Reencode filenames when setting the filesystem encoding

2010-08-19 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc  added the comment:

Some thoughts: since the modules were successfully imported, surely it means 
that their filenames where correctly computed and encoded? So why is the 
__filename__ attribute wrong?

--

___
Python tracker 

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



[issue9642] #ifdef and mbcs: don't check for defined(HAVE_USABLE_WCHAR_T)

2010-08-19 Thread STINNER Victor

New submission from STINNER Victor :

mbcs codec functions are surrounded by:

#if defined(MS_WINDOWS) && defined(HAVE_USABLE_WCHAR_T)
(especially in unicodeobject.c and _codecsmodule.c)

or

#ifdef MS_WIN32
(in unicodeobject.h)

or

#if defined(MS_WINDOWS) && !defined(__BORLANDC__)
(in timemodule.c)

I think that all of these tests are wrong. We should just check that we are 
compiling under Windows: mbcs functions don't use the wchar_t type. And it's 
better to use the same test in all tests (MS_WIN32 vs MS_WINDOWS).

Attached patch replaces all #ifdef (except the one in timemodule.c because I 
don't know what to do with the BORLAND check, does anyone use this compiler?).

I suppose that my patch doesn't change anything in pratice because mbcs is used 
in many places and noboby complained that mbcs encoding was missing on Windows.

--
components: Unicode, Windows
files: ifdef_mbcs.patch
keywords: patch
messages: 114350
nosy: brian.curtin, haypo, tim.golden
priority: normal
severity: normal
status: open
title: #ifdef and mbcs: don't check for defined(HAVE_USABLE_WCHAR_T)
versions: Python 3.2
Added file: http://bugs.python.org/file18577/ifdef_mbcs.patch

___
Python tracker 

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



[issue901727] extra_path kwarg to setup() undocumented

2010-08-19 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

I don't understand why distutils won't even get documentation updates.

Bob's report is about undocumented functionality that is used in real life and 
was the best way to install python distributions in a self-contained way before 
setuptools was invented.

AFAIK The "options" argument to setup is also not documented an that one is 
also used (both py2exe and py2app mention this feature in their documentation).

--

___
Python tracker 

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



[issue9630] Reencode filenames when setting the filesystem encoding

2010-08-19 Thread STINNER Victor

STINNER Victor  added the comment:

> since the modules were successfully imported, surely it means that
> their filenames where correctly computed and encoded? So why is the
> __filename__ attribute wrong?

Python starts with 'utf-8' encoding. If the new encoding is "smaller" (unable 
to encode as much characters as utf-8), PyUnicode_EncodeFS() and os.fsencode() 
will raise UnicodeEncodeError.

Eg. your Python setup is installed in a directory called b'py3k\xc3\xa9' and 
your locale is C (ascii encoding). At startup, the directory name is decoded to 
'py3ké' (using the defautlt encoding, utf-8). initfsencoding() sets the 
encoding to ascii: 'py3ké' cannot be encoded to the filesystem encoding (ascii) 
anymore.

--

If we set the default filesystem encoding to ascii (#8725), it will work but 
the filenames will be full of surrogates characters. Eg. you Python setup is 
installed in b'py3k\xc3\xa9' and your locale encoding is utf-8: b'py3k\xc3\xa9' 
will be decoded to 'py3k\udcc3\udca9' and leaved unchanged by initfsencoding(). 
Surrogates characters are not pratical: you have to escape them to display 
them. Print a filename with surrogates in a terminal raise a UnicodeEncodeError 
(even with utf-8 encoding).

--

___
Python tracker 

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



[issue8622] Add PYTHONFSENCODING environment variable

2010-08-19 Thread Marc-Andre Lemburg

Marc-Andre Lemburg  added the comment:

STINNER Victor wrote:
> 
> STINNER Victor  added the comment:
> 
> Oh, I realized that PYTHONFSENCODING is ignored on Windows and Mac OS X. 
> r84201 and r84202 fix test_sys, and r84203 fixes the documentation and Python 
> usage (hide PYTHONFSENCODING variable in Python help on Windows and Mac OS X).

This has to be changed: The env var needs to be respected on all
platforms.

--

___
Python tracker 

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



[issue9642] #ifdef and mbcs: don't check for defined(HAVE_USABLE_WCHAR_T)

2010-08-19 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc  added the comment:

It's true that for now, MS_WINDOWS implies HAVE_USABLE_WCHAR_T and 
PyUnicodeObject directly used as a WCHAR array.

I'd prefer a new symbol though. Why not something like HAVE_MBCS_CODEC?

--
nosy: +amaury.forgeotdarc

___
Python tracker 

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



[issue894936] Have a split corresponding with os.path.join

2010-08-19 Thread R. David Murray

R. David Murray  added the comment:

It is, however, clearly languishing for want of an implementer...

--
status: open -> languishing

___
Python tracker 

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



[issue9636] {'key': 'value'}[b'key'] raises a BytesWarning

2010-08-19 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



[issue805194] Inappropriate error received using socket timeout

2010-08-19 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

I'm not sure in what way the error is inappropriate. Python simply propagates 
whatever errno the C library sets on failure.

As for the comment that connect() shouldn't be called twice, this was fixed in 
2.6 by r60101.

--
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



[issue9636] {'key': 'value'}[b'key'] raises a BytesWarning

2010-08-19 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Well, that's what BytesWarning is for. I agree it is annoying in normal use, 
but it is meant to ease porting of 2.x code. That's why it is only enabled when 
you use the corresponding command-line switch.

The warning in the dict case is especially important: otherwise it is easy to 
get a dict with duplicate bytes and unicode keys (say b"xxx" and "xxx"), and 
potentially different values.

--
nosy: +pitrou
resolution:  -> 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



[issue8622] Add PYTHONFSENCODING environment variable

2010-08-19 Thread STINNER Victor

STINNER Victor  added the comment:

> > Oh, I realized that PYTHONFSENCODING is ignored on Windows and Mac OS X.
> > r84201 and r84202 fix test_sys, and r84203 fixes the documentation and
> > Python usage (hide PYTHONFSENCODING variable in Python help on Windows
> > and Mac OS X).
> 
> This has to be changed: The env var needs to be respected on all
> platforms.

I don't think so.

On Mac OS X, you cannot create a file with an invalid utf-8 name. The VFS uses 
utf-8:
http://developer.apple.com/mac/library/qa/qa2001/qa1173.html

Use a different encoding will raise error for the first non-ascii filename.

--

About Windows, Python3 uses the wide character API of Windows, except in some 
functions using third party libraries only providing a bytes API (eg. 
openssl). filenames are stored as unicode, even on removable media like CD-Rom 
or USB keys. I don't get the usecase here. Why would you like to change the 
filesystem encoding on Windows?

--

___
Python tracker 

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



[issue706263] print raises exception when no console available

2010-08-19 Thread Mark Lawrence

Mark Lawrence  added the comment:

Ah I was misreading things, I too can confirm that it is still a problem.

--

___
Python tracker 

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



[issue5127] Use Py_UCS4 instead of Py_UNICODE in unicodectype.c

2010-08-19 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc  added the comment:

Committed with r84177.

--
resolution:  -> fixed
stage: patch review -> 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



[issue8595] Explain the default timeout in http-client-related libraries

2010-08-19 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> That way, if _HTTP_DEFAULT_TIMEOUT is never set, it will use the the
> socket timeout. Admittedly I'd rather see all uses of module globals go 
> away, but I think this would be a good compromise.

Why not provide {httplib,urllib}.{set,get}defaulttimeout() instead?

--
nosy: +pitrou

___
Python tracker 

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



[issue8595] Explain the default timeout in http-client-related libraries

2010-08-19 Thread Eric Smith

Eric Smith  added the comment:

On 8/19/2010 9:14 AM, Antoine Pitrou wrote:
> Why not provide {httplib,urllib}.{set,get}defaulttimeout() instead?

Yes, I'm assuming that's how _HTTP_DEFAULT_TIMEOUT would be set and queried.

--

___
Python tracker 

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



[issue9641] httplib/ftplib: timeout parameter not applied correctly

2010-08-19 Thread Anders Sandvig

Anders Sandvig  added the comment:

socket.create_connection() does in fact set the timeout of the resulting socket 
object, so the issue is not an issue after all.

The problems I experienced was a result of sending the timeout as the third 
parameter to the HTTPConnection() constructor instead of a named parameter, 
i.e.:

  con = httplib.HTTPConnection(hostname, port, timeout)

should have been:

  con = httplib.HTTPConnection(hostname, port, timeout=timeout)

--
status: open -> closed

___
Python tracker 

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



[issue9636] {'key': 'value'}[b'key'] raises a BytesWarning

2010-08-19 Thread Mark Dickinson

Mark Dickinson  added the comment:

> The warning in the dict case is especially important

It's worth noting that this warning is dependent on hash() producing the same 
values for 'equivalent' bytes and str instances.  This seems a bit fragile, and 
is something that could potentially change in the future---with bytes and str 
comparing unequal, there's no reason for the hashes to correspond.

(It might even make sense to deliberately change the hash for either  bytes or 
str so that it doesn't match the other, just to expose any bugs that rely on 
the hashes being identical.)

--
nosy: +mark.dickinson

___
Python tracker 

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



[issue979407] urllib2 digest auth totally broken

2010-08-19 Thread Mark Lawrence

Changes by Mark Lawrence :


--
versions: +Python 2.7, Python 3.1, 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



[issue979658] Improve HTML documentation of a directory

2010-08-19 Thread Mark Lawrence

Changes by Mark Lawrence :


--
nosy: +ron_adam
versions: +Python 3.2 -Python 2.7

___
Python tracker 

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



[issue984870] curses: getmaxyx() breaks when the window shrinks

2010-08-19 Thread Mark Lawrence

Changes by Mark Lawrence :


--
versions: +Python 2.7, Python 3.1, 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



[issue9576] logging.addLevelName in file-based configurations

2010-08-19 Thread Vinay Sajip

Vinay Sajip  added the comment:

While custom levels are supported for the rare cases where they're needed, 
they're not really encouraged. For example, if third-party libraries each set 
their own custom logging levels, it would be a headache to integrate them into 
an application's overall logging scheme.

So I'm not in favour of making it easier to define custom levels via 
configuration - it's not (meant to be) a common use case.

--
resolution:  -> wont fix
status: open -> pending

___
Python tracker 

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



[issue989712] Support using Tk without a mainloop

2010-08-19 Thread Mark Lawrence

Mark Lawrence  added the comment:

There were no comments in reply to msg84306, anyone got any comments now?  If 
not could someone take a look at the patch and if happy get it committed.

--
nosy: +BreamoreBoy
stage: unit test needed -> patch review
versions: +Python 3.2 -Python 2.7

___
Python tracker 

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



[issue991266] Cookie.py does not correctly quote Morsels

2010-08-19 Thread Mark Lawrence

Mark Lawrence  added the comment:

Can we have this committed please, msg82420 says the patches are ok.

--

___
Python tracker 

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



[issue992389] attribute error after non-from import

2010-08-19 Thread Mark Lawrence

Changes by Mark Lawrence :


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

___
Python tracker 

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



[issue993766] bdist_dumb and --relative on Windows fails

2010-08-19 Thread Mark Lawrence

Changes by Mark Lawrence :


--
stage:  -> needs patch
type:  -> behavior
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



[issue995907] memory leak with threads and enhancement of the timer class

2010-08-19 Thread Mark Lawrence

Changes by Mark Lawrence :


--
versions: +Python 3.2 -Python 2.7

___
Python tracker 

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



[issue979407] urllib2 digest auth totally broken

2010-08-19 Thread Anders Sandvig

Changes by Anders Sandvig :


--
nosy: +anders.sandvig

___
Python tracker 

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



[issue999444] compiler module doesn't support unicode characters in laiter

2010-08-19 Thread Mark Lawrence

Mark Lawrence  added the comment:

The compiler package has been removed from py3k.

--
nosy: +BreamoreBoy
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



[issue1005895] curses for win32

2010-08-19 Thread Mark Lawrence

Mark Lawrence  added the comment:

Brian or Tim any interest in this?

I consider #2889 to be a duplicate of this and not the other way around.

--
nosy: +BreamoreBoy, brian.curtin, tim.golden
stage:  -> patch review
type:  -> feature request
versions: +Python 3.2 -Python 2.7

___
Python tracker 

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



[issue5689] please support lzma compression as an extension and in the tarfile module

2010-08-19 Thread Eysteinn Torfi Kristinsson

Changes by Eysteinn Torfi Kristinsson :


--
nosy: +eysispeisi

___
Python tracker 

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



[issue2889] curses for windows (alternative patch)

2010-08-19 Thread Mark Lawrence

Mark Lawrence  added the comment:

Brian or Tim any interest in this?

--
nosy: +BreamoreBoy, brian.curtin, tim.golden
stage:  -> patch review

___
Python tracker 

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



[issue1007223] SGI (IRIX6.5.24) Problems building nismodule.c

2010-08-19 Thread Mark Lawrence

Mark Lawrence  added the comment:

Closed as no reply to msg82076.

--
nosy: +BreamoreBoy
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



[issue1005895] curses for win32

2010-08-19 Thread Brian Curtin

Brian Curtin  added the comment:

I have zero knowledge and experience when it comes to curses so I'm afraid I 
can't really provide much here.

One thing I can say is that this patch would have to be converted to be 
compiled by MSVC rather than MinGW. That was an early issue with #2889 but it 
appears that patch was converted.

--

___
Python tracker 

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



[issue992389] attribute error after non-from import

2010-08-19 Thread Guido van Rossum

Changes by Guido van Rossum :


--
nosy:  -gvanrossum

___
Python tracker 

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



[issue1015254] Create cgi.FieldStorage._get_new_instance method as factory

2010-08-19 Thread Mark Lawrence

Mark Lawrence  added the comment:

I'll close in a couple of weeks unless anyone objects.

--
nosy: +BreamoreBoy
status: open -> pending

___
Python tracker 

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



[issue1016626] distutils support for swig is under par

2010-08-19 Thread Mark Lawrence

Changes by Mark Lawrence :


--
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



[issue2624] swig support in distutils should use the build and temp dirs

2010-08-19 Thread Mark Lawrence

Changes by Mark Lawrence :


--
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



[issue1018492] Solaris: reentrancy issues

2010-08-19 Thread Mark Lawrence

Mark Lawrence  added the comment:

No reply to msg82073.

--
nosy: +BreamoreBoy
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



[issue1020188] Use Py_CLEAR where necessary to avoid crashes

2010-08-19 Thread Mark Lawrence

Mark Lawrence  added the comment:

Any interest in this or can it be closed?

--
nosy: +BreamoreBoy
stage:  -> patch review
type:  -> behavior
versions: +Python 2.7, Python 3.1, 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



[issue1021318] PyThreadState_Next not thread safe?

2010-08-19 Thread Mark Lawrence

Mark Lawrence  added the comment:

No reply to msg82072.

--
nosy: +BreamoreBoy
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



[issue1027206] unicode DNS names in socket, urllib, urlopen

2010-08-19 Thread Mark Lawrence

Changes by Mark Lawrence :


--
stage: unit test needed -> patch review
versions:  -Python 2.7, Python 3.3

___
Python tracker 

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



[issue1028088] Cookies without values are silently ignored (by design?)

2010-08-19 Thread Mark Lawrence

Mark Lawrence  added the comment:

Any interest in this?

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue1038591] Python 2.3+ socket._fileobject handles EAGAIN with data loss

2010-08-19 Thread Mark Lawrence

Mark Lawrence  added the comment:

Is this still valid?

--
nosy: +BreamoreBoy
versions: +Python 2.7, Python 3.1, 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



[issue1038909] pydoc method documentation lookup enhancement

2010-08-19 Thread Mark Lawrence

Changes by Mark Lawrence :


--
nosy: +ron_adam

___
Python tracker 

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



[issue1043134] mimetypes.guess_extension('text/plain') == '.ksh' ???

2010-08-19 Thread Mark Lawrence

Mark Lawrence  added the comment:

I'll close this in a couple of weeks unless someone wants it kept open.

--
nosy: +BreamoreBoy
status: open -> pending

___
Python tracker 

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



[issue9636] {'key': 'value'}

2010-08-19 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> It's worth noting that this warning is dependent on hash() producing
> the same values for 'equivalent' bytes and str instances.  This seems
> a bit fragile, and is something that could potentially change in the
> future---with bytes and str comparing unequal, there's no reason for
> the hashes to correspond.
> 
> (It might even make sense to deliberately change the hash for either
> bytes or str so that it doesn't match the other, just to expose any
> bugs that rely on the hashes being identical.)

Actually, no, the "consistency" of hashes is necessary for the
BytesWarning to be useful with dicts. Because the situations it is meant
to uncover are those where e.g. you have "A" as a key and you are
looking up b"A".

(you don't really care, on the other hand, if you are looking up b"A" in
a dict which has only "B"; and, yes, I know there will still be false
positives :-))

--
title: {'key': 'value'}[b'key'] raises a BytesWarning -> {'key': 'value'}

___
Python tracker 

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



[issue9639] urllib2's AbstractBasicAuthHandler is limited to 6 requests

2010-08-19 Thread Senthil Kumaran

Senthil Kumaran  added the comment:

Fixed in r84207(release27-maint).

--

___
Python tracker 

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



[issue1047397] cgitb failures

2010-08-19 Thread Mark Lawrence

Mark Lawrence  added the comment:

Anyone interested in running with this as it's still a problem in all versions?

--
nosy: +BreamoreBoy
stage: unit test needed -> patch review
versions: +Python 2.7, Python 3.1, 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



[issue1047540] Turtle.py hangs Idle

2010-08-19 Thread Mark Lawrence

Changes by Mark Lawrence :


--
versions: +Python 2.7, Python 3.1, 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



[issue9636] {'key': 'value'}

2010-08-19 Thread Mark Dickinson

Mark Dickinson  added the comment:

> Actually, no, the "consistency" of hashes is necessary for the
> BytesWarning to be useful with dicts.

Yes.  That's precisely the point I was trying to make.  (Probably badly.)
That's why I was calling the usefulness of BytesWarning with dicts 'fragile'.

--

___
Python tracker 

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



[issue1049450] Solaris: EINTR exception in select/socket calls in telnetlib

2010-08-19 Thread Mark Lawrence

Changes by Mark Lawrence :


--
versions: +Python 2.7, Python 3.1, 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



[issue1050268] rfc822.parseaddr is broken, breaks sendmail call in smtplib

2010-08-19 Thread Mark Lawrence

Changes by Mark Lawrence :


--
versions: +Python 2.7, Python 3.1, 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



[issue9636] BytesWarning annoyances {'key': 'value'}.get(b'key')

2010-08-19 Thread Florent Xicluna

Changes by Florent Xicluna :


--
title: {'key': 'value'} -> BytesWarning annoyances {'key': 'value'}.get(b'key')

___
Python tracker 

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



[issue1052827] filelist.findall should not fail on dangling symlinks

2010-08-19 Thread Mark Lawrence

Changes by Mark Lawrence :


--
type:  -> behavior
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



[issue1053365] nntplib: add support for NNTP over SSL

2010-08-19 Thread Mark Lawrence

Mark Lawrence  added the comment:

Can someone provide an updated unit test to accompany the code patch.

--
nosy: +BreamoreBoy
versions: +Python 3.2 -Python 2.7

___
Python tracker 

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



[issue1053687] PyOS_InputHook not called in IDLE subprocess

2010-08-19 Thread Mark Lawrence

Changes by Mark Lawrence :


--
nosy: +gpolo

___
Python tracker 

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



[issue1054041] Python doesn't exit with proper resultcode on SIGINT

2010-08-19 Thread Mark Lawrence

Mark Lawrence  added the comment:

I'll close this in a couple of weeks unless someone wants it kept open.

--
nosy: +BreamoreBoy
status: open -> pending
type: feature request -> behavior
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



[issue9643] urllib2 - Basic, Digest Auth Handlers Retry will give 401 code instead of 407

2010-08-19 Thread Senthil Kumaran

New submission from Senthil Kumaran :

The retry logic and code used by ProxyBasicAuthHandler and 
ProxyDigestAuthHandler are same as normal authentication handlers. While this 
reuse is good, there is a problem that, on authentication failure, the 
HTTPError code is hardcoded to 401, whereas for Proxy cases it should have been 
407.

The problematic line is this:


def http_error_auth_reqed(self, auth_header, host, req, headers):
...
raise HTTPError(req.full_url, 401, "digest auth failed",
headers, None)

can be changed by:
- Passing the errcode as arg.
- Or getting it from headers.

--
assignee: orsenthil
messages: 114386
nosy: orsenthil
priority: normal
severity: normal
status: open
title: urllib2 - Basic,Digest Auth Handlers Retry will give 401 code instead of 
407
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



[issue9639] urllib2's AbstractBasicAuthHandler is limited to 6 requests

2010-08-19 Thread Senthil Kumaran

Senthil Kumaran  added the comment:

Fixed in py3k (r84210) and release31-maint(r84211). I discovered a new problem 
while fixing this. It will be taken care in issue9643.

--
resolution: accepted -> fixed
stage:  -> 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



[issue9643] urllib2 - Basic, Digest Proxy Auth Handlers failure will give 401 code instead of 407

2010-08-19 Thread Senthil Kumaran

Changes by Senthil Kumaran :


--
title: urllib2 - Basic,Digest Auth Handlers Retry will give 401 code instead of 
407 -> urllib2 - Basic,Digest Proxy Auth Handlers failure will give 401 code 
instead of 407

___
Python tracker 

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



[issue1055864] HTMLParser not compliant to XHTML spec

2010-08-19 Thread Mark Lawrence

Mark Lawrence  added the comment:

I think this should be closed as it's similar to #1051840, agreed?

--
nosy: +BreamoreBoy

___
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

2010-08-19 Thread Mark Lawrence

Mark Lawrence  added the comment:

I can't see this being accepted as it's not had public exposure, at least not 
that I'm aware of.  Other opinions welcomed.

--
nosy: +BreamoreBoy
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



[issue1058305] HTMLParser.locatestartagend regex too stringent

2010-08-19 Thread Mark Lawrence

Mark Lawrence  added the comment:

I'll close this in a couple of weeks unless anyone objects.

--
nosy: +BreamoreBoy
status: open -> pending
versions: +Python 3.2 -Python 2.7

___
Python tracker 

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



[issue1059244] distutil bdist hardcodes the python location

2010-08-19 Thread Mark Lawrence

Changes by Mark Lawrence :


--
stage:  -> needs patch
type:  -> behavior
versions: +Python 3.1, 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



[issue1062277] Pickle breakage with reduction of recursive structures

2010-08-19 Thread Mark Lawrence

Changes by Mark Lawrence :


--
type: feature request -> behavior
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



[issue1067702] urllib fails with multiple ftps

2010-08-19 Thread Mark Lawrence

Changes by Mark Lawrence :


--
versions: +Python 2.7, Python 3.1, 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



[issue1067702] urllib fails with multiple ftps

2010-08-19 Thread Senthil Kumaran

Changes by Senthil Kumaran :


--
assignee:  -> orsenthil

___
Python tracker 

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



[issue1069092] segfault on printing nested sequences of None/Ellipsis

2010-08-19 Thread Mark Lawrence

Mark Lawrence  added the comment:

FYI the generic solution mentioned in msg75364 can now be found at #8863

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue1074333] input from numeric pad always dropped when numlock off

2010-08-19 Thread Mark Lawrence

Changes by Mark Lawrence :


--
versions: +Python 2.7, Python 3.1, 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



[issue1075356] exceeding obscure weakproxy bug

2010-08-19 Thread Mark Lawrence

Changes by Mark Lawrence :


--
versions: +Python 2.7, Python 3.1, 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



[issue9644] PEP 383: os.statvfs() does not accept surrogateescape arguments

2010-08-19 Thread David Watson

New submission from David Watson :

The statvfs() function still converts its argument with the "s"
format; the attached patch (for 3.2) fixes it to use
PyUnicode_FSConverter().

--
components: Extension Modules
files: statvfs-pep383-3.2.diff
keywords: patch
messages: 114392
nosy: baikie
priority: normal
severity: normal
status: open
title: PEP 383: os.statvfs() does not accept surrogateescape arguments
type: behavior
versions: Python 3.1, Python 3.2
Added file: http://bugs.python.org/file18578/statvfs-pep383-3.2.diff

___
Python tracker 

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



[issue9645] PEP 383: os.pathconf() does not accept surrogateescape arguments

2010-08-19 Thread David Watson

New submission from David Watson :

The pathconf() function still converts its argument with the "s"
format; the attached pathconf-pep383-3.2.diff fixes it to use
PyUnicode_FSConverter() (in 3.2).  Also attaching
pathconf-cleanup.diff to clean up the indentation, which
otherwise makes the code rather confusing to look at.

--
components: Extension Modules
files: pathconf-pep383-3.2.diff
keywords: patch
messages: 114393
nosy: baikie
priority: normal
severity: normal
status: open
title: PEP 383: os.pathconf() does not accept surrogateescape arguments
type: behavior
versions: Python 3.1, Python 3.2
Added file: http://bugs.python.org/file18579/pathconf-pep383-3.2.diff

___
Python tracker 

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



[issue9646] Mutable default function parameter warning

2010-08-19 Thread Sérgio Surkamp

New submission from Sérgio Surkamp :

The documentation states that the default value of function parameter, if 
mutable, can change it's default value at runtime due to be evaluated only once 
on function object creation.

I would like to suggest the inclusion of an default language warning when this 
kind of construction is used, as it's Python specific behavior and can lead to 
"strange behavior" or misuse by programmers that are migrating from other 
languages to Python.

Documentation reference:
http://docs.python.org/reference/compound_stmts.html#function

--
components: None
messages: 114394
nosy: surkamp
priority: normal
severity: normal
status: open
title: Mutable default function parameter warning
type: behavior
versions: Python 2.5, Python 2.6, Python 2.7

___
Python tracker 

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



[issue9645] PEP 383: os.pathconf() does not accept surrogateescape arguments

2010-08-19 Thread David Watson

Changes by David Watson :


Added file: http://bugs.python.org/file18580/pathconf-cleanup.diff

___
Python tracker 

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



[issue1103213] Adding the missing socket.recvall() method

2010-08-19 Thread Mark Lawrence

Mark Lawrence  added the comment:

@Irmen if you do proceed with this it should be against the py3k trunk.

--
nosy: +BreamoreBoy
versions: +Python 3.2 -Python 2.7

___
Python tracker 

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



[issue9647] os.confstr() does not handle value changing length between calls

2010-08-19 Thread David Watson

New submission from David Watson :

This came up in relation to issue #9579; there is some discussion
of it there.  Basically, if os.confstr() has to call confstr()
twice because the buffer wasn't big enough the first time, the
existing code assumes the string is the same length that the OS
reported in the first call instead of using the length from the
second call and resizing the buffer if necessary.  This means the
returned value will be truncated or contain trailing garbage if
the string changed its length betweeen calls.

I don't know of an actual environment where configuration strings
can change at runtime, but it's not forbidden by POSIX as far as
I can see (the strings are described as "variables", after all,
and sysconf() values such as CHILD_MAX can change at runtime).
Implementations can also provide additional confstr() variables
not specified by POSIX.

The patch confstr-long-result.diff at issue #9579 would fix this
(for 3.x), but Victor Stinner has expressed concern that a buggy
confstr() could create a near-infinite loop with that patch
applied.

--
components: Extension Modules
messages: 114396
nosy: baikie
priority: normal
severity: normal
status: open
title: os.confstr() does not handle value changing length between calls
type: behavior
versions: Python 2.6, 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



  1   2   >