[issue16276] OrderedDict constructor do not keep items order

2012-10-22 Thread Antoine Dechaume

Antoine Dechaume added the comment:

I did read the docs before submitting, obviously my brain was not plugged in.
I am sorry for the noise.

--

___
Python tracker 

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



[issue16302] Fix ResourceWarning in Lib/test/test_urllib.py

2012-10-22 Thread Berker Peksag

Berker Peksag added the comment:

You are right, thanks Senthil.

--

___
Python tracker 

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



[issue16250] URLError invoked with reason as filename

2012-10-22 Thread Senthil Kumaran

Senthil Kumaran added the comment:

The change I had made for fixing the windows buildbot had not fixed it. I  am 
skipped (1f92315d9568) the test on windows, investigating the reason for 
windows behavior and I shall remove the skiptest on windows after fix.

--

___
Python tracker 

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



[issue16233] IDLE: conceptual problems with *Class browser*

2012-10-22 Thread Roger Serwy

Roger Serwy added the comment:

Attached is a quick patch to change the error message.

--
keywords: +patch
Added file: http://bugs.python.org/file27666/message_fix.patch

___
Python tracker 

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




[issue16233] IDLE: conceptual problems with *Class browser*

2012-10-22 Thread Roger Serwy

Roger Serwy added the comment:

Saving the shell to a file allows the class browser to function. However a 
class browser for a syntax-incorrect file due to prompts and stdout contents 
can also pose a conceptual problem.

I suggest that the error message be modified to include a corrective action: 
"This buffer has no associated filename. Please save this buffer to a file and 
try again."

--

___
Python tracker 

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



[issue16286] Optimize a==b and a!=b for bytes and str

2012-10-22 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Rather than see statistics, I'm curious about what circumstances where the 
optimization would kick in.   Interned strings are pre-hashed but they already 
benefit from an identity-implies-equality check.  Dicts and sets already 
incorporate a check-hash-before-equality check.

That raises the question of what strings ever have had their hash already 
computed if the string hasn't been interned or has been used in a dict or set?

P.S.  I rather like the optimization and don't want to discourage it.  I'm just 
curious about what the current optimizations are missing.

--
nosy: +rhettinger

___
Python tracker 

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



[issue16279] namedtuple should compare equality with field names taken into account

2012-10-22 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Nick, thanks for closing this one with a clear and accurate explanation.

--

___
Python tracker 

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



[issue16276] OrderedDict constructor do not keep items order

2012-10-22 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Thanks Ezio.

--
nosy: +rhettinger

___
Python tracker 

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



[issue16250] URLError invoked with reason as filename

2012-10-22 Thread Senthil Kumaran

Senthil Kumaran added the comment:

The change in 49de26395d1a addresses the buildbot failure. I have given a run 
again.

--

___
Python tracker 

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



[issue16302] Fix ResourceWarning in Lib/test/test_urllib.py

2012-10-22 Thread Senthil Kumaran

Senthil Kumaran added the comment:

Fixed in 478cda291bbc

Berker - 

 with urlopen(tmp_fileurl) as fobj:
self.assertTrue(fobj)

is enough when using context manager as the fobj gets closed automatically at 
exiting of context.

Thanks.

--
resolution:  -> fixed
status: open -> closed
versions:  -Python 3.3

___
Python tracker 

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



[issue16301] localhost() and thishost() in urllib/request.py

2012-10-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 478cda291bbc by Senthil Kumaran in branch 'default':
Fix the ResourceWarning in test_urllib.py due changes made for #16301. Patch by 
Berker Peksag
http://hg.python.org/cpython/rev/478cda291bbc

--

___
Python tracker 

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



[issue16116] Can not install C extension modules to inside a venv on Python 3.3.0 for Win32

2012-10-22 Thread Masami HIRATA

Masami HIRATA added the comment:

> Could well be a similar problem; I'll look into it.
Is there any progress?

--

___
Python tracker 

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



[issue8766] Segmentation fault with empty "encodings" subdirectory of directory in PYTHONPATH

2012-10-22 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis :


--
versions:  -Python 3.3

___
Python tracker 

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



[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-10-22 Thread Ned Deily

Ned Deily added the comment:

Thanks for everyone's help on this.  To summarize, opening IDLE's Preferences 
menu when Python is dynamically linking to ActiveTcl 8.5.12.1 (at this writing, 
the most recent version) causes Tk to crash.  The committed patches here avoid 
the crash by changing Tk calls from IDLE.  These fixes will be released in the 
next set of maintenance releases: 2.7.4, 3.2.4, 3.3.1, and in 3.4.0.  Until 
they are installed, another workaround is to revert to an earlier version of 
ActiveTcl; 8.5.11.1 is recommended:

http://downloads.activestate.com/ActiveTcl/releases/8.5.11.1/

As always, http://www.python.org/download/mac/tcltk/ will be updated with 
current recommendations.

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



[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-10-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d089b8fb0f56 by Ned Deily in branch '2.7':
Issue #15853: Prevent IDLE crash on OS X when opening Preferences menu
http://hg.python.org/cpython/rev/d089b8fb0f56

New changeset a3d755eaf5fa by Ned Deily in branch '3.2':
Issue #15853: Prevent IDLE crash on OS X when opening Preferences menu
http://hg.python.org/cpython/rev/a3d755eaf5fa

New changeset 36e7da8d3059 by Ned Deily in branch '3.3':
Issue #15853: merge 3.2 -> 3.3
http://hg.python.org/cpython/rev/36e7da8d3059

New changeset 8f61d580aca6 by Ned Deily in branch 'default':
Issue #15853: merge 3.3 -> default
http://hg.python.org/cpython/rev/8f61d580aca6

--
nosy: +python-dev

___
Python tracker 

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



[issue6972] zipfile.ZipFile overwrites files outside destination path

2012-10-22 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Oh, I forgot docs.

--
Added file: http://bugs.python.org/file27665/zipfile_fix_arcname_2.patch

___
Python tracker 

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



[issue6972] zipfile.ZipFile overwrites files outside destination path

2012-10-22 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


Removed file: http://bugs.python.org/file27661/zipfile_fix_arcname_2.patch

___
Python tracker 

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



[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-10-22 Thread Roger Serwy

Roger Serwy added the comment:

The patch works with 3.3.0 and 2.7.3 on Windows 7.

+1

--

___
Python tracker 

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



[issue16250] URLError invoked with reason as filename

2012-10-22 Thread Antoine Pitrou

Antoine Pitrou added the comment:

This broke the Windows 7 buildbot:
http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.x/builds/850

--
nosy: +pitrou

___
Python tracker 

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



[issue10527] multiprocessing.Pipe problem: "handle out of range in select()"

2012-10-22 Thread Richard Oudkerk

Richard Oudkerk added the comment:

> This problem affects any single use of select(): instead of using an 
> ad-hoc wrapper in each module, it would probably make sense to add a 
> higher level selector class to the select module which would fallback on 
> the right syscall (i.e. poll() if available, or /dev/poll on Solaris-
> like).

Doesn't Solaris have poll()?  If so then I don't see why one would want to use 
/dev/poll in the single fd case.

--

___
Python tracker 

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



[issue10527] multiprocessing.Pipe problem: "handle out of range in select()"

2012-10-22 Thread Charles-François Natali

Charles-François Natali added the comment:

See also http://bugs.python.org/issue14635.
This problem affects any single use of select(): instead of using an ad-hoc 
wrapper in each module, it would probably make sense to add a higher level 
selector class to the select module which would fallback on the right syscall 
(i.e. poll() if available, or /dev/poll on Solaris-like).

--
nosy: +neologix

___
Python tracker 

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



[issue15966] concurrent.futures: Executor.submit keyword arguments may not be called 'fn' (or 'self')

2012-10-22 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

There are many other cases of such issue: collections.namedtuple, 
contextlib.contextmanager, profile.Profile.runcall, etc.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue12238] Readline module loading in interactive mode

2012-10-22 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I understand what happens. Python 3.3+ uses getdents(), not stat() for module 
search. Therefore stat() is not called for non-existed files.

> It stands that while the -S and -E option allow to disable any customization 
> a user might have done (which is necessary for e.g. suid scripts), the 
> automatic insertion of '' into sys.path has no way of being undone.

Python used not only for suid scripts.

--

___
Python tracker 

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



[issue10527] multiprocessing.Pipe problem: "handle out of range in select()"

2012-10-22 Thread Richard Oudkerk

Richard Oudkerk added the comment:

> Still not getting what you refer to when you talk about > 512 fds
> problem.

Whether you get back the original objects or only their fds will depend on 
whether some fd was larger than FD_SETSIZE.

--

___
Python tracker 

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



[issue10527] multiprocessing.Pipe problem: "handle out of range in select()"

2012-10-22 Thread Antoine Pitrou

Antoine Pitrou added the comment:

> Still not getting what you refer to when you talk about > 512 fds problem.

By 512 I mean FD_SETSIZE :)

--

___
Python tracker 

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



[issue10527] multiprocessing.Pipe problem: "handle out of range in select()"

2012-10-22 Thread Richard Oudkerk

Richard Oudkerk added the comment:

> Using poll() by default is controversial for 2 reasons, I think:
>
> #1 - a certain slowdown is likely to be introduced (I'll measure it)

With a single fd poll is a bit faster than select:

$ python -m timeit -s 'from select import select' 'select([0],[],[],0)'
10 loops, best of 3: 2.99 usec per loop

$ python -m timeit -s 'from select import poll, POLLIN' 
'p=poll();p.register(0,POLLIN);p.poll(0)'
10 loops, best of 3: 2.8 usec per loop

The single fd case is the most important one -- see below.

> #2 - current wait() implementation allows to specify a list of file
> descriptors and/or Connections objects. 
> select() can deal with both while poll() does not (it will return a 
> list of integers rather than a list of Connection instances).
>
> I'm not sure how "public" multiprocessing.connection.wait() is 
> considered and how much backward compatibility should matter in this > case.

It was introduced in Python 3.3 and is only really there to allow cross 
platform Windows/Unix multiplexing.  It is (now) also used internally by 
Connection.poll() and Queue.get() with a single fd.

In retrospect it would probably have been better to have implemented poll style 
multiplexing on Windows.

--

___
Python tracker 

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



[issue5803] email/quoprimime: encode and decode are very slow on large messages

2012-10-22 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

3.2+ already use StringIO, there is no nonlinearity. On 2.7 I couldn't find the 
nonlinearity with the texts of up to 100 MB.

Therefore the path outdated as bugfix.

However it shows 20-30x speedup on 2.7. It would be worth port it to 3.4. This 
will be a significant enhancement (if the patch can preserve the current 
semantics).

--
nosy: +serhiy.storchaka
stage: patch review -> needs patch
versions: +Python 3.4 -Python 2.7, 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



[issue10527] multiprocessing.Pipe problem: "handle out of range in select()"

2012-10-22 Thread Giampaolo Rodola'

Giampaolo Rodola' added the comment:

Still not getting what you refer to when you talk about > 512 fds problem.

--

___
Python tracker 

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



[issue10527] multiprocessing.Pipe problem: "handle out of range in select()"

2012-10-22 Thread Antoine Pitrou

Antoine Pitrou added the comment:

> Using poll() by default is controversial for 2 reasons, I think:
> 
> #1 - a certain slowdown is likely to be introduced (I'll measure it)

That sounds like premature optimization. If you are concerned about that
you could add some caching of the poll object.

> #2 - current wait() implementation allows to specify a list of file
> descriptors and/or Connections objects. 
> select() can deal with both while poll() does not (it will return a
> list of integers rather than a list of Connection instances).

Well, can't you just create a mapping of the fds to the objects?

Your patch already has that problem by the way, and it's even worse
since it will trigger in random conditions (when some fd is > 512).

--

___
Python tracker 

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



[issue10527] multiprocessing.Pipe problem: "handle out of range in select()"

2012-10-22 Thread Richard Oudkerk

Richard Oudkerk added the comment:

> A preliminary patch is in attachment.
> By default it uses select() but looks for ValueError (raised in case 
> FD_SETSIZE gets hit) and falls back on using poll().
>
> This is the failure I get when running tests on Linux.
> It is related to issue 3321 and I'm not sure what to do with it (remove > the 
> test maybe?).

I guess the patch could do

if any(x[1] & POLLNVAL for x in ret):
raise ValueError('invalid file descriptor')

Also, I don't think there is any need to unregister the fds since you are just 
removing entries from an internal dict which will be garbage collected.

I don't know if patching 2.7, 3.2, 3.3 to use/fallback on poll() would be 
allowed as a bug fix.  When, if ever, will the next 2.7 release happen?

--

___
Python tracker 

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



[issue10527] multiprocessing.Pipe problem: "handle out of range in select()"

2012-10-22 Thread Giampaolo Rodola'

Giampaolo Rodola' added the comment:

Using poll() by default is controversial for 2 reasons, I think:

#1 - a certain slowdown is likely to be introduced (I'll measure it)

#2 - current wait() implementation allows to specify a list of file descriptors 
and/or Connections objects. 
select() can deal with both while poll() does not (it will return a list of 
integers rather than a list of Connection instances).

I'm not sure how "public" multiprocessing.connection.wait() is considered and 
how much backward compatibility should matter in this case.


> behaviour might change subtly when the fd becomes > 512

What do you mean?

--

___
Python tracker 

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



[issue12238] Readline module loading in interactive mode

2012-10-22 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Regardless, I'm not sure what we should do about this issue. Loading readline 
is obviously provided as a convenience to make the interpreter prompt easier to 
use. Several of us would probably like to go a bit further and also add 
tab-completion (see issue5845).

It stands that while the -S and -E option allow to disable any customization a 
user might have done (which is necessary for e.g. suid scripts), the automatic 
insertion of '' into sys.path has no way of being undone.

--
nosy: +loewis

___
Python tracker 

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



[issue12238] Readline module loading in interactive mode

2012-10-22 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Serhiy, I don't think it's fixed in 3.3, or perhaps I'm misunderstanding what 
you mean by "fixed". If you create readline.cpython-33m.so in your cwd and then 
run python, the fake readline will still be loaded instead of the real one.

For example (here with 3.4):

$ touch readline.cpython-34dm.so
$ ./python
Python 3.4.0a0 (default:2a0c9472c89c, Oct 21 2012, 23:24:06) 
[GCC 4.5.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import readline
Traceback (most recent call last):
  File "", line 1, in 
ImportError: ./readline.cpython-34dm.so: file too short

--
versions: +Python 3.3, Python 3.4

___
Python tracker 

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



[issue16136] Removal of VMS support

2012-10-22 Thread Christian Heimes

Christian Heimes added the comment:

We don't have any box that is capable of running VMS. Even Trent's Snakebit 
setup doesn't have VMS although he has lots of exotic hardware and OS, even 
HP-UX on a PA-RISC machine.

It seems to be possible to run VMS on a cluster of RaspberryPi machines [1]. 
The PSF might help out if you need some official contacts to acquire licenses.

[1] 
http://www.electronicsweekly.com/blogs/gadget-master/2012/07/raspberry-pi-emulates-vax-comp.html

--
type:  -> enhancement

___
Python tracker 

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



[issue10527] multiprocessing.Pipe problem: "handle out of range in select()"

2012-10-22 Thread Antoine Pitrou

Antoine Pitrou added the comment:

By the way, I think this is a bug rather than a performance issue.

--
type: performance -> behavior
versions: +Python 3.2, Python 3.4

___
Python tracker 

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



[issue10527] multiprocessing.Pipe problem: "handle out of range in select()"

2012-10-22 Thread Antoine Pitrou

Antoine Pitrou added the comment:

I don't like this patch since it makes the implementation poorly testable. 
Moreover, behaviour might change subtly when the fd becomes > 512. I think that 
instead the code should always use poll() on platforms where it is available.

--

___
Python tracker 

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



[issue16136] Removal of VMS support

2012-10-22 Thread Christian Heimes

Changes by Christian Heimes :


--
nosy: +christian.heimes

___
Python tracker 

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



[issue16136] Removal of VMS support

2012-10-22 Thread Sandeep Mathew

Sandeep Mathew added the comment:

Hi ,

I love VMS very much, I could not concentrate actively on python
because other work commitments ate up most of my time. I have
left my job at HP and am now a PhD student and university of Nevada ,
Reno .  Now that I do not have any professional commitments , I should
be able to work on it in a more timely manner. I had used python for
an internal project in HP.


The problem now I have is that I need access to a VMS  machine. I was
not able to setup a build bot because buildbot needed some ports to be
open , the machine provided HP did not give privilleges to do that.
Another thing was that they wanted me to use gnv to compile python in
VMS . I however did not really agree with it , gnv is buggy and you
need to enable millions to of hacks to gets programs to compile.
Programs written for VMS should be written the VMS way not the unix
way. I was able to get Python 3.x to compile using gnv finally but it would not 
run properly. Is it possible for anyone to provide a VMS box with C Compiler 
and tools ( MMS) so that I can start working on it again. I will try asking HP 
, whether they would allow me to start working on it on the old VMS cluster 
they provided.


--Thomas

--
nosy: +sandman101

___
Python tracker 

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



[issue15966] concurrent.futures: Executor.submit keyword arguments may not be called 'fn' (or 'self')

2012-10-22 Thread Mark Dickinson

Mark Dickinson added the comment:

> Did you actually bang into this?

No directly, no:  I'd hit a similar problem in some of our own code, leading to 
a signature change from "def do_later(fn, *args, **kwargs)" to "def 
do_later(fn, arg, kwargs)".  Then it occurred to me to wonder how 
Executor.submit handled the issue.

The workaround seems fine;  feel free to close as "won't fix".

--

___
Python tracker 

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



[issue16298] httplib.HTTPResponse.read could potentially leave the socket opened forever

2012-10-22 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +orsenthil, pitrou
stage:  -> needs patch
versions: +Python 3.2, Python 3.3, Python 3.4

___
Python tracker 

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



[issue10527] multiprocessing.Pipe problem: "handle out of range in select()"

2012-10-22 Thread Giampaolo Rodola'

Giampaolo Rodola' added the comment:

A preliminary patch is in attachment.
By default it uses select() but looks for ValueError (raised in case FD_SETSIZE 
gets hit) and falls back on using poll().

This is the failure I get when running tests on Linux.
It is related to issue 3321 and I'm not sure what to do with it (remove the 
test maybe?).


==
FAIL: test_invalid_handles (__main__.TestInvalidHandle)
--
Traceback (most recent call last):
  File "Lib/test/test_multiprocessing.py", line 2852, in test_invalid_handles
self.assertRaises((ValueError, IOError), conn.poll)
AssertionError: (, ) not raised by poll

--
Added file: http://bugs.python.org/file27664/issue10527.patch

___
Python tracker 

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



[issue12238] Readline module loading in interactive mode

2012-10-22 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

This issue was fixed in 3.3, but not in 2.7 or 3.2.

$ strace ./python -i &1 | grep readline
stat64("/home/serhiy/py/cpython3.3/build/lib.linux-i686-3.3/readline.cpython-33m.so",
 {st_mode=S_IFREG|0755, st_size=52511, ...}) = 0
open("/home/serhiy/py/cpython3.3/build/lib.linux-i686-3.3/readline.cpython-33m.so",
 O_RDONLY) = 4
open("/lib/libreadline.so.6", O_RDONLY) = 4

--
components: +Interpreter Core
nosy: +ncoghlan, serhiy.storchaka
versions:  -Python 2.6, Python 3.1, Python 3.3

___
Python tracker 

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



[issue16300] Windows raises ValueError for file:///file/not/exists instead of URLError

2012-10-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 49de26395d1a by Senthil Kumaran in branch 'default':
Issue #16301: Fix the localhost verification in urllib/request.py for file://. 
Modify tests to use localhost for local temp files, which could make Windows 
Buildbot (#16300) happy
http://hg.python.org/cpython/rev/49de26395d1a

--
nosy: +python-dev

___
Python tracker 

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



[issue16301] localhost() and thishost() in urllib/request.py

2012-10-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 49de26395d1a by Senthil Kumaran in branch 'default':
Issue #16301: Fix the localhost verification in urllib/request.py for file://. 
Modify tests to use localhost for local temp files, which could make Windows 
Buildbot (#16300) happy
http://hg.python.org/cpython/rev/49de26395d1a

--
nosy: +python-dev

___
Python tracker 

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



[issue14892] 'import readline' hangs when launching with '&' on BSD and OS X

2012-10-22 Thread olivier-mattelaer

olivier-mattelaer added the comment:

Thanks a lot Ronald.

Cheers,

Olivier

--
status: pending -> open

___
Python tracker 

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



[issue16301] localhost() and thishost() in urllib/request.py

2012-10-22 Thread Senthil Kumaran

Senthil Kumaran added the comment:

Serhiy: Yes. I stand corrected. That snippet suggestion was my mistake.
I think, wrapping the test is better than changing the return of localhost. It 
would always return a single value. Thanks.

--

___
Python tracker 

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



[issue16302] Fix ResourceWarning in Lib/test/test_urllib.py

2012-10-22 Thread Berker Peksag

Berker Peksag added the comment:

Thanks for the suggestion, Serhiy.

Attached a new patch.

--
Added file: 
http://bugs.python.org/file27663/resourcewarning_urllib_test_v2.patch

___
Python tracker 

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



[issue8766] Segmentation fault with empty "encodings" subdirectory of directory in PYTHONPATH

2012-10-22 Thread anatoly techtonik

anatoly techtonik added the comment:

Oh, sorry. I am just testing Python 3.3 and there are so many issues that 
hardly can test and fill them all.

--

___
Python tracker 

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



[issue16301] localhost() and thishost() in urllib/request.py

2012-10-22 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

This is wrong too.

>>> tuple('abc')
('a', 'b', 'c')

Use ((localhost(),) + thishost()))

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue16302] Fix ResourceWarning in Lib/test/test_urllib.py

2012-10-22 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

You can use contextlib.closing() context manager (if urlopen() already does not 
return a context manager).

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue16300] Windows raises ValueError for file:///file/not/exists instead of URLError

2012-10-22 Thread Senthil Kumaran

Senthil Kumaran added the comment:

The problem is here:

if url[:2] == '//' and url[2:3] != '/' and url[2:12].lower() != 'localhost/':
raise ValueError("file:// scheme is supported only on localhost")

On Unix like systems url[2:3] == '/', that is path starts with '/' and this 
ValueError is escaped.

--

___
Python tracker 

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



[issue16299] __build__ as a temp build directory for setup.py

2012-10-22 Thread Christian Heimes

Christian Heimes added the comment:

The bug tracker is the wrong place to discuss your proposal. Please join the 
distutils-sig [1]. The group coordinates all efforts.

[1] http://www.python.org/community/sigs/current/distutils-sig/

--
assignee: eric.araujo -> 
nosy: +christian.heimes
status: open -> closed
type:  -> enhancement
versions: +Python 3.4 -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



[issue16302] Fix ResourceWarning in Lib/test/test_urllib.py

2012-10-22 Thread Senthil Kumaran

Senthil Kumaran added the comment:

thanks for the bug-report/patch.

--
nosy: +orsenthil

___
Python tracker 

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



[issue13504] Meta-issue for "Invent with Python" IDLE feedback

2012-10-22 Thread Berker Peksag

Changes by Berker Peksag :


--
nosy:  -berker.peksag

___
Python tracker 

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



[issue16302] Fix ResourceWarning in Lib/test/test_urllib.py

2012-10-22 Thread Berker Peksag

New submission from Berker Peksag:

See the output:

test_file_notexists (test.test_urllib.urlopen_HttpTests) ... 
file:///tmp/tmpmlmjhf
/home/berker/hacking/cpython/Lib/test/test_urllib.py:284: ResourceWarning: 
unclosed file <_io.BufferedReader name='/tmp/tmpmlmjhf'>
  self.assertTrue(urlopen(tmp_fileurl))
ok

--
components: Tests
files: resourcewarning_urllib_test.patch
keywords: patch
messages: 173532
nosy: berker.peksag
priority: normal
severity: normal
status: open
title: Fix ResourceWarning in Lib/test/test_urllib.py
versions: Python 3.3, Python 3.4
Added file: http://bugs.python.org/file27662/resourcewarning_urllib_test.patch

___
Python tracker 

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



[issue16299] __build__ as a temp build directory for setup.py

2012-10-22 Thread anatoly techtonik

anatoly techtonik added the comment:

Another difference from C sources that it is very convenient to use Python 
packages directly from source. In this case this unrelated 'build' dir will be 
the source of confusion if user previously tried to install the package.

--
status: pending -> open

___
Python tracker 

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



[issue16301] localhost() and thishost() in urllib/request.py

2012-10-22 Thread Senthil Kumaran

New submission from Senthil Kumaran:

localhost() returns a string and thishost() returns tuple. In 
urllib/request.py, for file:// protocol, there is a verification to check to if 
the host is in the localhost and check happens:

socket.gethostbyname(host) in (localhost() + thishost())):

This is clearly wrong for the above mentioned reason. It should be changed to 
this, wrapping localhost with tuple() or making localhost return a tuple, which 
will be consistent with thishost

socket.gethostbyname(host) in (tuple(localhost()) + thishost())):

--
assignee: orsenthil
messages: 173530
nosy: orsenthil
priority: normal
severity: normal
status: open
title: localhost() and thishost() in urllib/request.py
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4

___
Python tracker 

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



[issue16299] __build__ as a temp build directory for setup.py

2012-10-22 Thread anatoly techtonik

anatoly techtonik added the comment:

RDM> 'build' is pretty much universally understood to be something that can be 
blown away

That's not true anymore in 2012. Why follow the bad practice?

I also want to know what open source software project are you referring to. 
From my experience 'build' directory name is an ancient legacy from Unix C 
compilers of previous century. Java doesn't use it, MSVC never did it, CMake 
doesn't have it, Go seems to build everything in temp dir.

--
status: closed -> pending

___
Python tracker 

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



[issue16297] make csv.DictReader.__init__ use self.fieldnames

2012-10-22 Thread R. David Murray

R. David Murray added the comment:

I think it is not an invalid request.  However, what is the use case?  Normally 
a class will manipulate the "real" variable, and the getter/setter is the 
public API.  Without a good use case it doesn't seem worth changing that bit of 
the init method.

--
nosy: +r.david.murray

___
Python tracker 

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



[issue16297] make csv.DictReader.__init__ use self.fieldnames

2012-10-22 Thread Berker Peksag

Berker Peksag added the comment:

I think this is an invalid request.

See the usage of property decorator: 
http://docs.python.org/py3k/library/functions.html#property

--
nosy: +berker.peksag

___
Python tracker 

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



[issue6972] zipfile.ZipFile overwrites files outside destination path

2012-10-22 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is a patch based on patch for issue10905. Test included (I have removed 
some old tests as new one supersede them). Please test on Windows.

".." components, leading slashes, drive letter, etc are just dropped, as in 
unzip or 7-Zip. Thanks Zhigang Wang for original patch and research.

--
keywords: +needs review
stage: needs patch -> 
versions: +Python 3.4
Added file: http://bugs.python.org/file27661/zipfile_fix_arcname_2.patch

___
Python tracker 

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



[issue10905] zipfile: fix arcname with leading '///' or '..'

2012-10-22 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I'm going to close this issue as a duplicate of issue6972. Issue6972 is older 
and has a larger discussion.

Thank you for patch and research, Zhigang Wang. I will use it for the new patch.

--
resolution:  -> duplicate
status: open -> pending
superseder:  -> zipfile.ZipFile overwrites files outside destination path

___
Python tracker 

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



[issue16053] "strict" parameter is not documented in csv module

2012-10-22 Thread Éric Araujo

Éric Araujo added the comment:

Because I lack time.  Feel free to do it.

--

___
Python tracker 

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



[issue16299] __build__ as a temp build directory for setup.py

2012-10-22 Thread R. David Murray

R. David Murray added the comment:

I see no reason to make this change.  'build' is pretty much universally 
understood to be something that can be blown away, and I think that making 
Python's naming convention different than that used by other open source 
software projects in similar contexts would be much more confusing than helpful.

--
nosy: +r.david.murray
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



[issue16300] Windows raises ValueError for file:///file/not/exists instead of URLError

2012-10-22 Thread Senthil Kumaran

New submission from Senthil Kumaran:

>From the Buildbot failure - 
>http://buildbot.python.org/all/builders/x86%20XP-4%203.x/builds/7573/steps/test/logs/stdio

I remember that we restricted the access for file:// scheme to localhost only 
for Windows/Cygwin. In terms of exception raised it could either be consistent 
with other platforms and raise URLError or it could be for good reasons, the 
tests may need to be tweaked for windows.

--
assignee: orsenthil
keywords: easy
messages: 173522
nosy: orsenthil
priority: normal
severity: normal
status: open
title: Windows raises ValueError for file:///file/not/exists instead of URLError
type: behavior
versions: Python 3.2, Python 3.3, Python 3.4

___
Python tracker 

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



[issue16297] make csv.DictReader.__init__ use self.fieldnames

2012-10-22 Thread Ramchandra Apte

Changes by Ramchandra Apte :


--
title: small fix to csv.DictReader.__init__ -> make csv.DictReader.__init__ use 
self.fieldnames

___
Python tracker 

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



[issue16297] small fix to csv.DictReader.__init__

2012-10-22 Thread Ramchandra Apte

Changes by Ramchandra Apte :


--
title: csv.DictReader -> small fix to csv.DictReader.__init__
versions: +Python 3.3

___
Python tracker 

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



[issue16299] __build__ as a temp build directory for setup.py

2012-10-22 Thread anatoly techtonik

New submission from anatoly techtonik:

Currently distutils builds files in a temporary directory named 'build' in 
current dir if not specified otherwise. It will be pythonic to name this 
directory to be __build__ be default to distinguish it from project specific 
directories and clarify that this one can be safely removed (much like 
__pycache__).

--
assignee: eric.araujo
components: Distutils, Distutils2
messages: 173521
nosy: alexis, eric.araujo, tarek, techtonik
priority: normal
severity: normal
status: open
title: __build__ as a temp build directory for setup.py
versions: 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



[issue8766] Segmentation fault with empty "encodings" subdirectory of directory in PYTHONPATH

2012-10-22 Thread Christian Heimes

Christian Heimes added the comment:

I agree with Victor.

--
nosy: +christian.heimes

___
Python tracker 

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



[issue13376] readline: pre_input_hook not getting called

2012-10-22 Thread Ronald Oussoren

Ronald Oussoren added the comment:

1) Issue is still present with libedit on OSX 10.8

2) Libedit on OSX doesn't call rl_pre_input_hook when using the '#if 
defined(HAVE_RL_CALLBACK) && defined(HAVE_SELECT)' branch in the readline 
extension (that is, not calling readline(3), but using rl_callback_read_char).

3) When I patch pyconfig.h to enable the code patch that does use readline the 
callback gets called, but that doesn't affect the readline buffer.

Manually ensuring that the pre_input_hook is called at the right time is easy 
enough, but I don't have time to research why readline.insert_text (and/or 
readline.redisplay) doesn't work. The source code at 
 
looks fine.

--

___
Python tracker 

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



[issue8766] Segmentation fault with empty "encodings" subdirectory of directory in PYTHONPATH

2012-10-22 Thread STINNER Victor

STINNER Victor added the comment:

> This is still an issue for Windows.

See my message on python-dev: your issue (with an invalid PYTHONHOME,
Python exits with abort) is not related to this one, and it's not a
bug (abort is not a bug).

--

___
Python tracker 

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



[issue15772] Unresolved symbols in Windows 64-bit python

2012-10-22 Thread Martin v . Löwis

Martin v. Löwis added the comment:

Closing as works-for-me then.

--
resolution:  -> works for me
status: open -> closed

___
Python tracker 

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



[issue8766] Segmentation fault with empty "encodings" subdirectory of directory in PYTHONPATH

2012-10-22 Thread anatoly techtonik

anatoly techtonik added the comment:

This is still an issue for Windows.

--
nosy: +techtonik
versions: +Python 3.3

___
Python tracker 

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



[issue15633] httplib.response is not closed after all data has been read

2012-10-22 Thread Piotr Dobrogost

Piotr Dobrogost added the comment:

@Nikolaus
Issue 16298 was raised today describing what could be the cause of what you 
observe.

--

___
Python tracker 

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



[issue15633] httplib.response is not closed after all data has been read

2012-10-22 Thread Nikolaus Rath

Nikolaus Rath added the comment:

This is just a heads-up that I'm still trying to debug this. So far, the 
problem doesn't seem to have shown up again (for reference, the original report 
for this is http://code.google.com/p/s3ql/issues/detail?id=358).

--

___
Python tracker 

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



[issue672115] Assignment to __bases__ of direct object subclasses

2012-10-22 Thread Krzysztof Jurewicz

Changes by Krzysztof Jurewicz :


--
nosy: +krzysiekj

___
Python tracker 

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



[issue16298] httplib.HTTPResponse.read could potentially leave the socket opened forever

2012-10-22 Thread Piotr Dobrogost

Changes by Piotr Dobrogost :


--
nosy: +piotr.dobrogost

___
Python tracker 

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



[issue15968] Incorporate Tcl/Tk/Tix into the Windows build process

2012-10-22 Thread Jeremy Kloth

Changes by Jeremy Kloth :


--
nosy: +brian.curtin, loewis, tim.golden

___
Python tracker 

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



[issue15968] Incorporate Tcl/Tk/Tix into the Windows build process

2012-10-22 Thread Jeremy Kloth

Changes by Jeremy Kloth :


--
keywords: +patch
Added file: http://bugs.python.org/file27660/029d1cdf6422.diff

___
Python tracker 

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



[issue16295] With VS2010 the select extension links against wsock32 instead of ws2_32

2012-10-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset daad150b4670 by Kristjan Valur Jonsson in branch '3.3':
Issue #16295: Link "select" with ws2_32.lib, the winsock2 stub library.
http://hg.python.org/cpython/rev/daad150b4670

New changeset a2cd25d434b3 by Kristjan Valur Jonsson in branch 'default':
Merge with 3.3: Issue #16295: Link "select" with ws2_32, the winsock2 lib.
http://hg.python.org/cpython/rev/a2cd25d434b3

--
nosy: +python-dev

___
Python tracker 

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



[issue16274] test_asyncore failing on Solaris 10 2.7 (nitrogen/s10)

2012-10-22 Thread Giampaolo Rodola'

Giampaolo Rodola' added the comment:

Yes, now that I think of it that is how accept() is supposed to be used in 2.7 
(back then I did also update doc examples in order to enforce this use case) so 
this is a test suite issue.

--

___
Python tracker 

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



[issue16274] test_asyncore failing on Solaris 10 2.7 (nitrogen/s10)

2012-10-22 Thread Giampaolo Rodola'

Giampaolo Rodola' added the comment:

This should do it:

diff --git a/Lib/test/test_asyncore.py b/Lib/test/test_asyncore.py
--- a/Lib/test/test_asyncore.py
+++ b/Lib/test/test_asyncore.py
@@ -484,8 +484,9 @@
 return self.socket.getsockname()[:2]
 
 def handle_accept(self):
-sock, addr = self.accept()
-self.handler(sock)
+pair = self.accept()
+if pair is not None:
+self.handler(pair[0])
 
 def handle_error(self):
 raise

--

___
Python tracker 

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



[issue16274] test_asyncore failing on Solaris 10 2.7 (nitrogen/s10)

2012-10-22 Thread Jesús Cea Avión

Jesús Cea Avión added the comment:

Keeping the issue open until Trent can commit a new patch, according to 
msg173256.

--

___
Python tracker 

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



[issue16295] With VS2010 the select extension links against wsock32 instead of ws2_32

2012-10-22 Thread Martin v . Löwis

Martin v. Löwis added the comment:

LGTM

--

___
Python tracker 

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



[issue16231] pickle persistent_id return value

2012-10-22 Thread Jesús Cea Avión

Changes by Jesús Cea Avión :


--
nosy: +jcea

___
Python tracker 

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



[issue16295] With VS2010 the select extension links against wsock32 instead of ws2_32

2012-10-22 Thread Kristján Valur Jónsson

Kristján Valur Jónsson added the comment:

See this patch.

--
keywords: +patch
Added file: http://bugs.python.org/file27659/select.patch

___
Python tracker 

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



[issue16292] Cross compilation fixes (general)

2012-10-22 Thread Jesús Cea Avión

Changes by Jesús Cea Avión :


--
nosy: +jcea

___
Python tracker 

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



[issue15483] CROSS: initialise include and library paths in setup.py

2012-10-22 Thread Jesús Cea Avión

Changes by Jesús Cea Avión :


--
nosy: +jcea

___
Python tracker 

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



[issue15484] CROSS: use _PYTHON_PROJECT_BASE in distutils sysconfig

2012-10-22 Thread Jesús Cea Avión

Changes by Jesús Cea Avión :


--
nosy: +jcea

___
Python tracker 

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



[issue16291] Enable darwin-host cross compilation. Tested with build=linux, host=darwin

2012-10-22 Thread Jesús Cea Avión

Changes by Jesús Cea Avión :


--
nosy: +jcea

___
Python tracker 

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



[issue16290] PyComplex_AsCComplex should allow __complex__ to return float.

2012-10-22 Thread Jesús Cea Avión

Changes by Jesús Cea Avión :


--
nosy: +jcea

___
Python tracker 

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



[issue16053] "strict" parameter is not documented in csv module

2012-10-22 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

If the patch is good, why not commit it?

--

___
Python tracker 

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



[issue16102] uuid._netbios_getnode() is outdated

2012-10-22 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

As I see in pywin32 sources status.adapter_address is bytes in Python 3.

Here is a trivial patch.

--
keywords: +patch
Added file: http://bugs.python.org/file27658/uuid_netbios_getnode.patch

___
Python tracker 

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



[issue16298] httplib.HTTPResponse.read could potentially leave the socket opened forever

2012-10-22 Thread Eran Rundstein

New submission from Eran Rundstein:

When calling HTTPResponse.read() on a response that is:
a. not chunked
b. contains no content-length header
the underlying socket (referenced by self.fp) will never get closed (through 
self.close())

The offending code is at the bottom of the read() function:
s = self.fp.read(amt)
if self.length is not None:
self.length -= len(s)
if not self.length:
self.close()
return s
As seen, if self.length is None, even when the server closes the connection 
(causing self.fp.read to return ''), the socket will not get closed.

btw, this may be the cause of Issue15633 (http://bugs.python.org/issue15633)

--
components: Library (Lib)
messages: 173505
nosy: eranrund
priority: normal
severity: normal
status: open
title: httplib.HTTPResponse.read could potentially leave the socket opened 
forever
type: behavior
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



[issue16291] Enable darwin-host cross compilation. Tested with build=linux, host=darwin

2012-10-22 Thread Ray Donnelly

Ray Donnelly added the comment:

> A small question about the patch, why this case in the cross_arch function:

>From a real Mac Book Pro:

$ uname -a
Darwin MACBOOKPRO.local 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 
16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64
$ /usr/bin/arch
i386
$ uname -m
x86_64

It would seem arch on OS X can only be used to determine PPC vs Intel (which is 
all that configure uses it for anyway).

> Why is cross-compiling to OSX useful at all?

Cross compiling is always useful for build engineers who have to target 
multiple hosts. 

> You still have to test if the output of the compilation works, and for that 
> you need an OSX system.

Ideally yes, or a Virtual Machine with OSX on it or confidence based on the 
results of a previous test built with the same sources or maloader (...though 
maybe not, I've never personally tried maloader).

> The patch will only help with cross-compiling C code, it won't compile 
> resource files (like the NIB file in Python Launcher)

My personal interest is for having Python embedded in other things (GDB) and 
using it from the command-line. Python Launcher is not part of the scope.

> This will make support harder, I already get support questions where the 
> answer depends on the way Python was build and that will likely get worse 
> with cross-compiling.

I'd be happy to do whatever I can to help out with this. If we could identify 
in the build that it was built via cross compilation somehow or have my email 
address in the help would that make it more palatable?

> * Where would users get the SDK? I'm not a lawyer (or even familiar with US 
> law), but the Xcode license seems to indicate that it can only be used on 
> Apple systems.

The users would get the SDK from being registered as a developer with Apple. As 
for the license, while also not being a lawyer, my interpretation is this:

In the Xcode License.rtf file (and the Command Line tools license), the 
relevant part is "you are granted a limited, non-exclusive license to use the 
Developer Software on Apple-branded computers to develop and test application 
and other software". This doesn't say anything about the OS that's running on 
said Apple-branded computer, and my interpretation is that you could install a 
Linux distro on an Apple computer or on a VM on an Apple computer and still be 
compliant with that license.

--

___
Python tracker 

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



[issue16294] 8 space indent in tutorial

2012-10-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 1a3f48c6ef16 by Jesus Cea in branch '2.7':
Closes #16294: 8 space indent in tutorial
http://hg.python.org/cpython/rev/1a3f48c6ef16

New changeset 2015db05d954 by Jesus Cea in branch '3.2':
Closes #16294: 8 space indent in tutorial
http://hg.python.org/cpython/rev/2015db05d954

New changeset 3344c8208662 by Jesus Cea in branch '3.3':
MERGE: Closes #16294: 8 space indent in tutorial
http://hg.python.org/cpython/rev/3344c8208662

New changeset 4ca40082461c by Jesus Cea in branch 'default':
MERGE: Closes #16294: 8 space indent in tutorial
http://hg.python.org/cpython/rev/4ca40082461c

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



[issue16294] 8 space indent in tutorial

2012-10-22 Thread Jesús Cea Avión

Changes by Jesús Cea Avión :


--
versions: +Python 3.4 -Python 3.1

___
Python tracker 

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



[issue16294] 8 space indent in tutorial

2012-10-22 Thread Jesús Cea Avión

Jesús Cea Avión added the comment:

I take care of this. Thanks for pointing it out.

--
assignee: docs@python -> jcea
nosy: +jcea

___
Python tracker 

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



[issue14892] 'import readline' hangs when launching with '&' on BSD and OS X

2012-10-22 Thread Ronald Oussoren

Ronald Oussoren added the comment:

I've just tested this on OSX 10.8.2 and the problem is not present there (that 
is, 'python -c "import deadline" &' does not hang)

The problem is present on OSX 10.6.8, and when using ksh(1) you can see why the 
process is stopped:

[1] + Stopped(SIGTTOU) python -c 'import readline' &

That signal is generated when the program generates output to a tty and the 
TOSTOP option of stty is active.  Whether or not that option is active is OS 
configuration (and can be changed using the stty command).

Reading the option:

import termios
lflags = termios.tcgetattr(0)[3]
print (lflags & termios.TOSTOP) != 0

Oddly enough the option off on both OSX 10.6 and 10.8, which point to a bug in 
OSX 10.6 (or to a misunderstanding of low-level tty programming details on my 
part which would not be unlikely)

Anyway, there is an easy workaround: before importing readline add:

import signal
signal.signal(signal.SIGTTOU, signal.SIG_IGN)

This ignores the SIGTTOU option and allows me to import readline on the 
background.

IMHO This issue can be closed because this behavior is not a Python bug but a 
platform feature.

--
resolution:  -> invalid
status: open -> pending

___
Python tracker 

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



[issue15633] httplib.response is not closed after all data has been read

2012-10-22 Thread Piotr Dobrogost

Changes by Piotr Dobrogost :


--
nosy: +piotr.dobrogost

___
Python tracker 

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



  1   2   >