[issue7511] msvc9compiler.py: ValueError: [u'path']

2010-08-19 Thread Éric Araujo

Éric Araujo  added the comment:

Stefan (sorry for the misattribution in my previous message), can you test with 
3.2 and 3.1 and adjust versions if needed?

--

___
Python tracker 

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



[issue7511] msvc9compiler.py: ValueError: [u'path']

2010-08-19 Thread Éric Araujo

Changes by Éric Araujo :


--
Removed message: http://bugs.python.org/msg113641

___
Python tracker 

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



[issue9199] distutils upload command crashes when displaying server response

2010-08-19 Thread Éric Araujo

Éric Araujo  added the comment:

Confirmed in 3.1, 3.2 and distutils2. I’ll fix it shortly.

--
assignee: tarek -> eric.araujo
components: +Distutils2
nosy: +eric.araujo
title: distutil upload command crashes when displaying server response -> 
distutils upload command crashes when displaying server response
type:  -> 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



[issue9648] 2to3 doesn't convert "file" usage to an "open" equivalent

2010-08-19 Thread Brian Curtin

New submission from Brian Curtin :

"""
with file("sample.py", "r") as f:
pass
"""

The above code comes out of 2to3 with no modifications suggested. "file" is 
gone in 3.x and could be substituted with "open" usage in most cases. We would 
also have to handle or otherwise notify the user about code like "isinstance(x, 
file)".

--
messages: 114417
nosy: brian.curtin
priority: normal
severity: normal
stage: needs patch
status: open
title: 2to3 doesn't convert "file" usage to an "open" equivalent
type: behavior
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



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

2010-08-19 Thread Itai

Itai  added the comment:

You are right, ofcourse... I haven't got the time for doing the right thing,
But I've found another workaround that helped me though and might be helpful
to others.

(not sure its for this thread though but...) Windows on default limits the
amount of memory
for 32 bit processes to 2GB. There's a bit in the PE image which tells 64
bit windows
to give it 4GB (on 32 bit windows PAE needs to be enabled too) which is
called
IMAGE_FILE_LARGE_ADDRESS_AWARE. There's a post-build way to enable
it with the editbin.exe utility which comes with visual studio like this:
editbin.exe /LARGEADDRESSAWARE python.exe

It works for me since it gives me x2 memory on my 64 bit os.
I have to say it could be dangerous since it essentially says no where in
python code
pointers are treated as negative numbers. I figured this should be right
since there's a 64 bit
version of python...

On Wed, Aug 18, 2010 at 9:27 PM, Martin v. Löwis wrote:

>
> Martin v. Löwis  added the comment:
>
> Anybody *really* interested in this issue: somebody will need to write a
> PEP, get it accepted, and provide an implementations. Open source is about
> scratching your own itches: the ones affected by a problems are the ones
> which are also expected to provide solutions.
>
> --
>
> ___
> Python tracker 
> 
> ___
>

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

___
Python tracker 

___You are right, ofcourse... I haven't got the time for doing 
the right thing,But I've found another workaround that helped me though 
and might be helpful to others.(not sure its for this thread though 
but...) Windows on default limits the amount of memory 
for 32 bit processes to 2GB. There's a bit in the PE image which tells 64 
bit windowsto give it 4GB (on 32 bit windows PAE needs to be enabled too) 
which is called IMAGE_FILE_LARGE_ADDRESS_AWARE. There's a post-build 
way to enable
it with the editbin.exe utility which comes with visual studio like 
this:editbin.exe /LARGEADDRESSAWARE python.exeIt works for me since 
it gives me x2 memory on my 64 bit os. I have to say it could be dangerous 
since it essentially says no where in python code 
pointers are treated as negative numbers. I figured this should be right since 
there's a 64 bit version of python...On Wed, Aug 18, 2010 at 9:27 PM, Martin v. Löwis rep...@bugs.python.org> 
wrote:

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

Anybody *really* interested in this issue: somebody will need to write a PEP, 
get it accepted, and provide an implementations. Open source is about 
scratching your own itches: the ones affected by a problems are the ones which 
are also expected to provide solutions.


--

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

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



[issue1654367] [PATCH] Debuggers need a way to change the locals of a frame

2010-08-19 Thread Fabio Zadrozny

Fabio Zadrozny  added the comment:

I agree that it'd be cleaner making the frame locals a dict-like object with 
write access, but I wouldn't be able to do that because of time constraints 
(and I'd have to research more how to do it and it'd be much more intrusive I 
guess).

So, if it's guaranteed that it'll be accepted I can provide a patch (changing 
the clear to 1) of the savelocals() version.

I guess I don't agree this falls in the language moratorium, but if that's the 
case I can wait 1 or 2 more years before submitting the patch :)

--

___
Python tracker 

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



[issue1111130] tkSimpleDialog broken on MacOS X (Aqua Tk)

2010-08-19 Thread Ned Deily

Ned Deily  added the comment:

The test case supplied fails as described on OS 10.4 using a current 2.6 build 
(2.6.6rc1) when using the Apple-supplied Aqua Tk 8.4 in 10.4 but the same build 
and test case works correctly when used with a current ActiveState Tk 8.4.19 in 
/Library/Frameworks.  The test case also works correctly when run on older 
Pythons (for example, the python.org OS X 10.5.4) using the Apple-supplied Aqua 
Tk 8.4 on OS X 10.6.

Suggest this issue be closed as an Aqua Tk problem.

--
nosy: +ned.deily

___
Python tracker 

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



[issue7077] SysLogHandler can't handle Unicode

2010-08-19 Thread Vinay Sajip

Vinay Sajip  added the comment:

Updated implementation so that  + BOM + message is sent, for py3k branch 
only (r84218). Please verify fix in your environment.

--
status: open -> pending

___
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 Stefan Krah

Changes by Stefan Krah :


--
status: pending -> open

___
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 Michael Hudson

Michael Hudson  added the comment:

I think it makes sense to close this; if problems remain they should be 
reported in more targeted tickets.

--
status: open -> closed

___
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 Martin v . Löwis

Martin v. Löwis  added the comment:

> mbcs functions don't use the wchar_t type.

That's not true. MultiByteToWideChar use LPWSTR, which is a typedef for
wchar_t*.

These functions assume that Py_UNICODE is the same type as WCHAR.

> We should just check that we are compiling under Windows:

-1, see above. In the long run, it would be really good if Python
supported a four-byte Py_UNICODE on Windows - people keep asking for it.

I have been meaning to provide versions of the mbcs codecs for years
that work for UCS-4, but haven't found the time yet to implement them.

--
nosy: +loewis
title: #ifdef and mbcs: don't check for defined(HAVE_USABLE_WCHAR_T) -> #ifdef 
and mbcs: don't check fordefined(HAVE_USABLE_WCHAR_T)

___
Python tracker 

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



[issue843590] 'macintosh' encoding alias for 'mac_roman'

2010-08-19 Thread Marc-Andre Lemburg

Marc-Andre Lemburg  added the comment:

Mark Lawrence wrote:
> 
> Mark Lawrence  added the comment:
> 
> @Marc-Andre as there's no comments since your last post would you like to 
> take this forward, cheers.

I'm fine with adding the alias, but currently don't have any cycles
left to actually do the checkins, add the Misc/NEWS entry, update
the docs, etc.

--

___
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 Marc-Andre Lemburg

Marc-Andre Lemburg  added the comment:

While you're right that adjusting the FS encoding long after Python has already 
started is probably not such a good idea, I do think that we need to provide a 
way to set the FS encoding from within Python without having to rely on 
external settings.

Think of e.g. embedded Python interpreters or py2exe-style applications running 
on Linux or other systems that don't use Unicode APIs for FS-interaction or 
have fixed FS-encodings.

--

___
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.
> 
> 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?

Ok, point taken.

Just please make sure that on other platforms such as BSD, Solaris,
AIX, etc. that don't have this special Python support
the env vars are honored.

--

___
Python tracker 

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



[issue6715] xz compressor support

2010-08-19 Thread John Reese

Changes by John Reese :


--
nosy: +jreese

___
Python tracker 

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



[issue9606] logging filter is not applied to messages from descendant loggers

2010-08-19 Thread Vinay Sajip

Vinay Sajip  added the comment:

The following paragraph has been added to the documentation for Filter objects 
in py3k and release27-maint branches (r84212):

"Note that filters attached to handlers are consulted whenever an event is 
emitted by the handler, whereas filters attached to loggers are consulted 
whenever an event is logged to the handler (using debug(), info(), etc.) This 
means that events which have been generated by descendant loggers will not be 
filtered by a logger's filter setting, unless the filter has also been applied 
to those descendant loggers."

--
nosy: +vinay.sajip
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



[issue1117601] os.path.exists returns false negatives in MAC environments.

2010-08-19 Thread Mark Lawrence

Mark Lawrence  added the comment:

Previous comments suggest there is no agreement as to whether or not this is an 
oustanding bug.

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



[issue1113244] Please add do-while guard to Py_DECREF etc.

2010-08-19 Thread Benjamin Peterson

Changes by Benjamin Peterson :


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



[issue9646] Mutable default function parameter warning

2010-08-19 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

Please post to python-ideas first.

--
nosy: +benjamin.peterson
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




[issue1113244] Please add do-while guard to Py_DECREF etc.

2010-08-19 Thread Mark Lawrence

Mark Lawrence  added the comment:

Can this be closed now, do the committs need porting to other versions or what?

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue1112955] move_file()'s return value when dry_run=1 unclear

2010-08-19 Thread Mark Lawrence

Changes by Mark Lawrence :


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



[issue1111130] tkSimpleDialog broken on MacOS X (Aqua Tk)

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



[issue1109963] bdist_wininst ignores build_lib from build command

2010-08-19 Thread Mark Lawrence

Changes by Mark Lawrence :


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



[issue1109658] distutils dry-run breaks when attempting to bytecompile

2010-08-19 Thread Mark Lawrence

Changes by Mark Lawrence :


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



[issue1105770] null source chars handled oddly by tokenize

2010-08-19 Thread Mark Lawrence

Changes by Mark Lawrence :


--
stage: unit test needed -> needs patch
title: null source chars handled oddly -> null source chars handled oddly by 
tokenize
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



[issue1055864] HTMLParser not compliant to XHTML spec

2010-08-19 Thread Fred L. Drake, Jr.

Fred L. Drake, Jr.  added the comment:

Indeed it is.  Closing, won't fix.

HTMLParser tries to deal with XHTML constructs only so much as HTML ends up 
with that stuff, not because it's trying to handle everything.

(The claimed example appears not to have been attached, anyway.)

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

___
Python tracker 

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



[issue9580] os.confstr() doesn't decode result according to PEP 383

2010-08-19 Thread David Watson

David Watson  added the comment:

I wrote this patch to make confstr() return bytes (with code
similar to 2.x), and document the change in "Porting to Python
3.2" and elsewhere, but it then occurred to me that you might
have been talking about making a separate bytes API like
os.environb.  Which did you have in mind?

There is another option for a str API, which is to decode the
value as ASCII with the surrogateescape error handler.  The
returned string will then round-trip correctly through
PyUnicode_FSConverter(), etc., as long as the file system
encoding is compatible with ASCII, which PEP 383 requires it to
be.  This is how undecodable command line arguments are currently
handled when mbrtowc() is unavailable.

--
Added file: http://bugs.python.org/file18582/confstr-bytes-3.2.diff

___
Python tracker 

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



[issue1104021] wishlist: os.feed_urandom(input)

2010-08-19 Thread Mark Lawrence

Mark Lawrence  added the comment:

Closed in response to comment in msg59331.

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



[issue9579] In 3.x, os.confstr() returns garbage if value is longer than 255 bytes

2010-08-19 Thread David Watson

David Watson  added the comment:

I've opened a separate issue for the changing-length problem
(issue #9647; it affects 2.x as well).  Here is a patch that
fixes the 255-byte issue only, and has similar results to the 2.x
code if the value changes length between calls (except that it
could raise a UnicodeError if the string is truncated inside a
multibyte character encoding).

--
Added file: http://bugs.python.org/file18581/confstr-minimal.diff

___
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 Tim Golden

Tim Golden  added the comment:

I'll pick it up for the moment to shepherd it along because I'm reasonably keen 
to see a Windows curses in the stdlib. However, I'm no expert in curses and I 
don't promise to do anything immediate with it.

--
assignee:  -> tim.golden

___
Python tracker 

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



[issue1103350] send/recv SEGMENT_SIZE should be used more in socketmodule

2010-08-19 Thread Mark Lawrence

Mark Lawrence  added the comment:

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



[issue1005895] curses for win32

2010-08-19 Thread Tim Golden

Tim Golden  added the comment:

It looks as though issue2889 has a better chance of getting into the VS build 
than this one, which appears to be MingW-based (at a quick glance). I'm loosely 
keen to see it in, although I have no knowledge of curses as such. I'll assign 
it to myself so it appears on my to-do queue but I'm not promising to do 
anything with it immediately. Anyone who feels up to the task, feel free to 
take it off me.

Mark: why do you consider issue1005895 the master, so to speak? I can see more 
mileage in pursuing the other?

--

___
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



[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



[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



[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

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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



  1   2   >