[issue17896] Move Windows external libs from \..\ to \externals

2015-02-08 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 7d22dbf3a0dc by Martin v. Löwis in branch '3.4':
Issue #17896: Update msi.py to new externals dir.
https://hg.python.org/cpython/rev/7d22dbf3a0dc

--

___
Python tracker 

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



[issue23418] Keep http.server.__all__ up to date

2015-02-08 Thread Martin Panter

New submission from Martin Panter:

Here is a patch that adds the Simple/CGIHTTPRequestHandler classes to __all__, 
and a test case that should help keep it up to date in the future.

--
components: Library (Lib)
files: http.server-all.patch
keywords: patch
messages: 235594
nosy: vadmium
priority: normal
severity: normal
status: open
title: Keep http.server.__all__ up to date
type: behavior
Added file: http://bugs.python.org/file38051/http.server-all.patch

___
Python tracker 

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



[issue23415] add-to-pydotorg does not support .exe installers for Windows

2015-02-08 Thread Georg Brandl

Georg Brandl added the comment:

Can you attach the diff you made?

--

___
Python tracker 

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



[issue23417] Windows 8.1 and Windows Server 2012 R2 are not displayed properly

2015-02-08 Thread George Schizas

New submission from George Schizas:

Python on Windows can now can understand that it's on Windows 8.1 and Windows 
Server 2012 R2, but platform.py hasn't been updated, and claims it's on 
"post2012Server":

>>> import platform
>>> print(platform.win32_ver())
('post2012Server', '6.3.9600', '', 'Multiprocessor Free')

The function win32_ver (which most of the platform library relies upon) should 
be changed, to include Windows 8.1 and Windows Server 2012 R2. I've attached a 
patch file that does that

--
components: Library (Lib), Windows
files: Python 3.5a1 - platform.py.patch
keywords: patch
messages: 235592
nosy: gschizas, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Windows 8.1 and Windows Server 2012 R2 are not displayed properly
type: behavior
versions: Python 3.5
Added file: http://bugs.python.org/file38050/Python 3.5a1 - platform.py.patch

___
Python tracker 

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



[issue23072] 2.7.9 multiprocessing compile conflict

2015-02-08 Thread Davin Potts

Davin Potts added the comment:

It's a little unclear if one or more of the following is true:
(1) you are having trouble getting the multiprocessing module to build properly 
on Solaris 2.8;
(2) you are having trouble getting your own code to build in a similar way to 
the multiprocessing module;
(3) you have indeed found a workaround that works for your situation;
(4) you are requesting a change to the multiprocessing module to better support 
builds on Solaris 2.8.

Could you help clarify?  If you have found a workaround that would better 
support builds on Solaris 2.8 then might you also be able to propose a patch?  
If not, could you clarify what steps are required to reproduce the issue?

--
nosy: +davin

___
Python tracker 

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



[issue23328] urllib2 fails for proxy credentials that contain a '/' character

2015-02-08 Thread Martin Panter

Martin Panter added the comment:

The relevant code looks like it is _parse_proxy() at Lib/urllib/request.py:693. 
It has custom code to search for a slash (/), so it wouldn’t be hard to make it 
search after the last at (@) symbol. (I previously assumed it would use 
urlsplit() or similar, which would be harder to adjust.)

Even Curl seems to require an @ symbol in the username or password to be 
encoded, i.e. the following doesn’t work, so you still need to encode the 
fields in general to work with Curl.

http_proxy=http://a@x:b@localhost curl . . .
http_proxy=http://a:b@x@localhost curl . . .

--

___
Python tracker 

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



[issue21429] Input.output error with multiprocessing

2015-02-08 Thread Davin Potts

Davin Potts added the comment:

The provided links to the relevant code are unfortunately pointing at the 
master branch's copy of those files and not a specific version of the code 
making it that much harder to now discern where the issue arises.  (A number of 
things have changed in the master branch since this issue was first reported.)

Can Mikaela or Valentin or others provide a minimal piece of code that can 
still reproduce the issue?

Without more information, it appears it will be very difficult to try to 
reproduce or effectively investigate this issue further.  If the issue is no 
longer reproducible, such an update would also very much be appreciated.

--
nosy: +davin

___
Python tracker 

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



[issue23328] urllib2 fails for proxy credentials that contain a '/' character

2015-02-08 Thread Andy Reitz

Andy Reitz added the comment:

The proxy credentials are supplied by our sysadmin. My understanding is that 
the http_proxy env variable doesn't require URI encoding. In addition, the same 
credentials work fine with curl.

--

___
Python tracker 

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



[issue23328] urllib2 fails for proxy credentials that contain a '/' character

2015-02-08 Thread Martin Panter

Martin Panter added the comment:

Related: Issue 18140. The slash character is meant to be a reserved character 
in URLs, so why hasn’t it been encoded? Where does the environment variable 
come from?

--
nosy: +vadmium

___
Python tracker 

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



[issue18140] urlparse.urlsplit confused to fragment when password include #

2015-02-08 Thread Martin Panter

Martin Panter added the comment:

Possibly related: Issue 23328. I would have thought any special characters in 
the password etc field should be encoded. Where do such unencoded URLs come 
from?

It seems that this would change the behaviour of parsing a URL such as

http://host/path/with/unencoded/@/character

Is one of these scenarios more valid than the other?

--
nosy: +vadmium

___
Python tracker 

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



[issue15009] urlsplit can't round-trip relative-host urls.

2015-02-08 Thread Martin Panter

Martin Panter added the comment:

Fixing Issue 22852 or Issue 5843 should help fixing this.

--

___
Python tracker 

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



[issue23416] Make urllib.parse.SplitResult etc arguments optional

2015-02-08 Thread Martin Panter

New submission from Martin Panter:

This would be a simple API enhancement and would allow easier building of URLs, 
like

>>> SplitResult("rtp", address, query=urlencode(query)).geturl()
"rtp://localhost:5004?rtcpport=5005"

It seems the best way to do this at the moment is annoyingly verbose:

SplitResult("rtp", address, path="", query=urlencode(query), 
fragment="").geturl()

The way hinted by the documentation can leave an ugly empty query string:

>>> query = ()
>>> "rtp://%s?%s" % (address, urlencode(query))
"rtp://localhost:5004?"

This enhancement would also allow easy parsing of usernames, ports, etc:

>>> SplitResult(netloc="[::1]:0").hostname
"::1"
>>> SplitResult(netloc="[::1]:0").port
0

Looking at the code, I think this could be implemented by adding an explicit 
constructor to each of the concrete classes, with arguments defaulting to "" or 
b"" as appropriate.

--
components: Library (Lib)
messages: 235584
nosy: vadmium
priority: normal
severity: normal
status: open
title: Make urllib.parse.SplitResult etc arguments optional
type: enhancement

___
Python tracker 

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



[issue10697] host and port attributes not documented well in function urllib.parse.urlparse and urlsplit

2015-02-08 Thread Martin Panter

Martin Panter added the comment:

I don’t understand where the work needs to be done for this one. Even in the 
3.1 and 2.7 documentation, the urlparse() and urlsplit() entries both list 
“port” as one of the returned attributes, and urlparse() has example code for 
it.

--
nosy: +vadmium

___
Python tracker 

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



[issue22852] urllib.parse wrongly strips empty #fragment

2015-02-08 Thread Martin Panter

Martin Panter added the comment:

I also liked the idea of returning None to distinguish a missing URL component 
from an empty-but-present component, and it would make them more consistent 
with the “username” and “password” fields. But I agree it would break backwards 
compabitility too much. The idea of “has_fragment” etc flags might work. The 
ParseResult etc class signatures could be expanded like this:

SplitResult(scheme, netloc, path, query, fragment, *, has_netloc=None, 
has_query=None, has_fragment=None)

>>> url1 = SplitResult("http", "localhost", "/path", query="", fragment="")
>>> url1.has_netloc
True
>>> url1.has_fragment
False
>>> url2 = SplitResult("http", "localhost", "/path", query="", fragment="", 
>>> has_fragment=True)
>>> url2.has_fragment
True
>>> url2.has_query
False
>>> url2.geturl()
"http://localhost/path#";

Is it also worth adding “has_params” for urlparse()?

--

___
Python tracker 

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



[issue12955] urllib.request example should use "with ... as:"

2015-02-08 Thread Martin Panter

Martin Panter added the comment:

Here is a patch to change the urlopen() examples to use context managers where 
appropriate.

There were also a few examples of handling HTTPError which I didn’t touch, 
because the whole file object versus exception object thing is probably a 
separate can of worms.

--
keywords: +patch
Added file: http://bugs.python.org/file38049/urlopen-with.patch

___
Python tracker 

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



[issue12955] urllib.request example should use "with ... as:"

2015-02-08 Thread Martin Panter

Martin Panter added the comment:

Issue 22755 is about the example arms race for contextlib.closing().

--
nosy: +vadmium

___
Python tracker 

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



[issue5843] Normalization error in urlunparse

2015-02-08 Thread Martin Panter

Martin Panter added the comment:

Looks like this duplicates Issue 22852, which has a patch, although its author 
had second thoughts on the implementation

--
nosy: +vadmium

___
Python tracker 

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



[issue17911] traceback: add a new thin class storing a traceback without storing local variables

2015-02-08 Thread Antoine Pitrou

Antoine Pitrou added the comment:

You can also switch back to a single constructor, taking either an
exception instance or an exception triple. That way everyone is happy -
except perhaps if you are ideologically opposed to polymorphic
signatures :-)

Switching to python-dev would probably be overkill for this.

--

___
Python tracker 

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



[issue3647] urlparse - relative url parsing and joins to be RFC3986 compliance

2015-02-08 Thread Martin Panter

Changes by Martin Panter :


--
nosy: +vadmium

___
Python tracker 

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



[issue22235] httplib: TypeError with file() object in ssl.py

2015-02-08 Thread Etienne Robillard

Etienne Robillard added the comment:

hg push worked like a charm... but for some reasons i get another
error trying to install things with setuptools:

erob@nguns:~/Desktop/pyaml-14.12.10$ sudo python setup.py install 
--prefix=/usr/local

Processing dependencies for pyaml==14.12.10
Searching for PyYAML
Reading http://pypi.python.org/simple/PyYAML/
Download error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed 
(_ssl.c:581) -- Some packages may not be found!
Couldn't find index page for 'PyYAML' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
Download error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed 
(_ssl.c:581) -- Some packages may not be found!
No local packages or download links found for PyYAML

Is setuptools still working with this ssl.py module ?

--
resolution: fixed -> 

___
Python tracker 

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



[issue20680] Pickle socket enums by names

2015-02-08 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

For the socket module constants there is even better way, which supports 
forward compatibility, i.e. SOCK_STREAM pickled in 3.5 could be unpickled on 
3.3 (replacing ints with enums breaks forward compatibility). Here is a patch.

--
Added file: http://bugs.python.org/file38048/socket_enums_pickle_by_name_2.patch

___
Python tracker 

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



[issue22235] httplib: TypeError with file() object in ssl.py

2015-02-08 Thread Etienne Robillard

Etienne Robillard added the comment:

problem is fixed with python 2.7.9. it seem ssl.py module has been greatly 
improved with this release. Thanks!

--
resolution:  -> fixed

___
Python tracker 

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



[issue17911] traceback: add a new thin class storing a traceback without storing local variables

2015-02-08 Thread Nick Coghlan

Nick Coghlan added the comment:

Escalating to python-dev for API design feedback is the usual path forward
if we reach an impasse in the tracker comments.

I'll make one more attempt at persuading Antoine here though: the fact that
we're being tempted to add "do not use this API the way you would normally
expect to use a Python API, even though it works exactly as you might
expect" to the docs is a big red flag for me :)

There's a split between the "low level API that exposes implementation
details" (the exception state triple) and "high level API that hides them"
in the current patch, and Antoine is entirely correct that we previously
omitted the latter. It doesn't follow for me that we should also hide the
fact that the higher level convenience API is implemented in terms of the
lower level more implementation oriented one.

--

___
Python tracker 

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



[issue23415] add-to-pydotorg does not support .exe installers for Windows

2015-02-08 Thread Larry Hastings

Larry Hastings added the comment:

I should add, adding the files by hand worked fine.  (Which means that if you 
experiment with the script, when it blows away the files and re-adds them, 
you'll be blowing away the files I added by hand.  So if you do so, it's up to 
you to ensure the files are restored when you're done... one way or another.)

--

___
Python tracker 

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



[issue23414] seek(count, whence) accepts bogus whence on windows, python2.7

2015-02-08 Thread eryksun

eryksun added the comment:

The whence argument is used in a switch statement that handles SEEK_END and 
SEEK_CUR. It doesn't raise an error for an invalid whence value. It just falls 
through to the fsetpos call.

_portable_fseek
https://hg.python.org/cpython/file/648dcafa7e5f/Objects/fileobject.c#l692

0:000> k 3
Child-SP  RetAddr   Call Site
`0021fa68 `1e0ac84f MSVCR90!fsetpos
`0021fa70 `1e0aeea3 python27!_portable_fseek+0x6f
`0021faa0 `1e0c3d09 python27!file_seek+0x123

Why does it manually handle whence and call fgetpos/fsetpos instead of calling 
_fseeki64?

fseek, _fseeki64
https://msdn.microsoft.com/en-us/library/75yw9bf3%28v=vs.90%29.aspx

--
nosy: +eryksun

___
Python tracker 

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



[issue23415] add-to-pydotorg does not support .exe installers for Windows

2015-02-08 Thread Larry Hastings

New submission from Larry Hastings:

Steve is using new technology to make the installers for Windows.  He generates 
four installers now:

* .exe for Win32
* -amd64.exe for Win64
* -webinstall.exe for Win32 web-based installers
* -amd64-webinstall.exe for Win64 web-based installers

add-to-pydotorg does not recognize these.

I attempted to hack it up to add support for them.  All I did was modify the 
"file_descriptions" structure, adding new lines for each of the four new types. 
 I believe my edits worked fine, but it failed to add three of the four 
installers.  The first .exe it processed worked (the plain ".exe", the Win32 
non-web-based installer).  But the last three failed with the error message:

Sorry, this request could not be processed. Please try again later.

--
assignee: georg.brandl
components: Build
messages: 235571
nosy: georg.brandl, larry, steve.dower
priority: normal
severity: normal
stage: needs patch
status: open
title: add-to-pydotorg does not support .exe installers for Windows
type: behavior
versions: Python 3.5

___
Python tracker 

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



[issue17911] traceback: add a new thin class storing a traceback without storing local variables

2015-02-08 Thread Robert Collins

Robert Collins added the comment:

Nick, Antoine - I'm now stuck between you. Options going forward:

 - I can JFDI realising you won't both be happy :)
 - you two can reach consensus!

I could cripple __init__ by switching to __new__, but I think thats massive 
overcomplication and not needed.

I can of course add more text to the pydoc prose saying 'do not use __init__' 
if that would address Nicks concern.

--

___
Python tracker 

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



[issue17911] traceback: add a new thin class storing a traceback without storing local variables

2015-02-08 Thread Robert Collins

Robert Collins added the comment:

Sorry xonatius I wasn't clear: AFAICT your patch is going to require changes to 
the traceback tests, and this issue is changing the implementation 
substantially: I was suggesting that you make sure your patch applies on top of 
this issue, not that you merge them :)

--

___
Python tracker 

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



[issue23414] seek(count, whence) accepts bogus whence on windows, python2.7

2015-02-08 Thread mattip

New submission from mattip:

f=open('abc.txt', 'w+')
f.seek(0, 42)

does not raise an exception on windows, python2.7

--
components: Windows
messages: 235568
nosy: mattip, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: seek(count, whence) accepts bogus whence on windows, python2.7
type: behavior
versions: Python 2.7

___
Python tracker 

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



[issue10320] printf %qd is nonstandard

2015-02-08 Thread Mark Lawrence

Mark Lawrence added the comment:

As VMS is not supported I doubt that people here are too bothered about what is 
needed to build the _ctypes module on it.

--
nosy: +BreamoreBoy
versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2

___
Python tracker 

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



[issue10320] printf %qd is nonstandard

2015-02-08 Thread John Malmberg

John Malmberg added the comment:

OpenVMS needs %lld or "%" PY_FORMAT_LONG_LONG "d" in order to build the _ctypes 
module.

--
nosy: +John.Malmberg

___
Python tracker 

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



[issue23413] Incorrect division result

2015-02-08 Thread Benjamin Peterson

Benjamin Peterson added the comment:

https://docs.python.org/3/tutorial/floatingpoint.html

--
nosy: +benjamin.peterson
resolution:  -> not a bug
status: open -> closed

___
Python tracker 

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



[issue23413] Incorrect division result

2015-02-08 Thread Martynas Brijunas

New submission from Martynas Brijunas:

Dear Python team,

when dividing 3 by 7, I expect to get the following result:

0.428571428571428571428571428571428571428571428571428571428571...

What I am getting in the Python interpreter is this:

>>> 3 / 7
0.42857142857142855

Which in my opinion is incorrect.

--
messages: 235564
nosy: Martynas.Brijunas
priority: normal
severity: normal
status: open
title: Incorrect division result
type: behavior
versions: Python 3.4

___
Python tracker 

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



[issue23103] Reduce memory usage for ipaddress object instances

2015-02-08 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Synchronized with tip.

--
Added file: http://bugs.python.org/file38047/ipaddress_lightweight_4.patch

___
Python tracker 

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



[issue20680] Pickle socket enums by names

2015-02-08 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

> If you attempt to unpickle a 3.4 _PickleByNameIntEnum on a 3.3 system,
> what's going to happen?

The same as if you attempt to unpickle a 3.4 IntEnum on a 3.3 system -- 
AttributeError.

--

___
Python tracker 

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



[issue20680] Pickle socket enums by names

2015-02-08 Thread Ethan Furman

Ethan Furman added the comment:

An IntEnum is just a fancy int.  You can add them, subtract them, multiply 
them, all that kind of thing.

If you attempt to unpickle a 3.4 _PickleByNameIntEnum on a 3.3 system, what's 
going to happen?

--

___
Python tracker 

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



[issue21793] httplib client/server status refactor

2015-02-08 Thread Ethan Furman

Ethan Furman added the comment:

Without having looked at the code I would guess the fix is as simple as 
changing a %s to a %d.

Having said that, it would be nice if the name was also in the log -- something 
like:

  127.0.0.1 - - [08/Feb/2015 05:05:28] "GET / HTTP/1.1" 200 (OK) -

--

___
Python tracker 

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



[issue23412] importlib sometimes fails to import a recently created module

2015-02-08 Thread SilentGhost

Changes by SilentGhost :


--
versions: +Python 3.5

___
Python tracker 

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



[issue23412] importlib sometimes fails to import a recently created module

2015-02-08 Thread SilentGhost

SilentGhost added the comment:

Looks like some sort of race condition. Sleeping for a second before 
import_module seem to solve the problem.

--
components: +Interpreter Core
nosy: +SilentGhost, brett.cannon, eric.snow, ncoghlan

___
Python tracker 

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



[issue23397] PEP 431 implementation

2015-02-08 Thread Berker Peksag

Changes by Berker Peksag :


--
nosy: +lregebro

___
Python tracker 

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



[issue23411] Update urllib.parse.__all__

2015-02-08 Thread Senthil Kumaran

Senthil Kumaran added the comment:

Thanks for the tests. Reviewed the patch and looks good to me.

--
nosy: +orsenthil
stage:  -> commit review

___
Python tracker 

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



[issue23412] importlib sometimes fails to import a recently created module

2015-02-08 Thread Richard Dymond

New submission from Richard Dymond:

importlib.import_module() sometimes fails to import a module that has just been 
written to the filesystem, aborting with an ImportError.

Example output when executing the attached file with Python 3.3 or 3.4:

Wrote tmpwbzb35.py
  Successfully imported tmpwbzb35
Wrote tmp34c6qs.py
Traceback (most recent call last):
  File "importerror.py", line 12, in 
importlib.import_module(modname)
  File "/home/rjd/Python/Python3.3/lib/python3.3/importlib/__init__.py", line 
88, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 1577, in _gcd_import
  File "", line 1558, in _find_and_load
  File "", line 1522, in _find_and_load_unlocked
ImportError: No module named 'tmp34c6qs'

I have been unable to reproduce this behaviour with Python 2.7 or Python 3.2.

--
files: importerror.py
messages: 235557
nosy: rjdymond
priority: normal
severity: normal
status: open
title: importlib sometimes fails to import a recently created module
type: behavior
versions: Python 3.3, Python 3.4
Added file: http://bugs.python.org/file38046/importerror.py

___
Python tracker 

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



[issue17023] Subprocess does not find executable on Windows if it is PATH with quotes

2015-02-08 Thread Tim Golden

Changes by Tim Golden :


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

___
Python tracker 

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



[issue23411] Update urllib.parse.__all__

2015-02-08 Thread Martin Panter

Changes by Martin Panter :


Removed file: http://bugs.python.org/file38044/urllib.parse-all.patch

___
Python tracker 

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



[issue23411] Update urllib.parse.__all__

2015-02-08 Thread Martin Panter

Changes by Martin Panter :


Added file: http://bugs.python.org/file38045/urllib.parse-all.patch

___
Python tracker 

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



[issue23411] Update urllib.parse.__all__

2015-02-08 Thread Martin Panter

New submission from Martin Panter:

+"DefragResult", "ParseResult", "SplitResult",
+"DefragResultBytes", "ParseResultBytes", "SplitResultBytes"]

Also adds test case.

--
components: Library (Lib)
files: urllib.parse-all.patch
keywords: patch
messages: 235556
nosy: vadmium
priority: normal
severity: normal
status: open
title: Update urllib.parse.__all__
type: behavior
Added file: http://bugs.python.org/file38044/urllib.parse-all.patch

___
Python tracker 

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



[issue11734] Add half-float (16-bit) support to struct module

2015-02-08 Thread Mark Dickinson

Mark Dickinson added the comment:

Refreshed and updated patch, cleaning up some style issues, fixing a failure to 
return -1 on exception in np_halffloat, and removing some 
endianness-determining casty expressions in favour of using PY_LITTLE_ENDIAN.

--
Added file: http://bugs.python.org/file38043/cpython-struct-float16-v7.patch

___
Python tracker 

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



[issue3213] "pydoc -p" should listen to [::] if IPv6 is supported

2015-02-08 Thread Martin Panter

Changes by Martin Panter :


--
nosy: +vadmium

___
Python tracker 

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



[issue23410] Document more BaseHTTPRequestHandler attributes

2015-02-08 Thread Martin Panter

Changes by Martin Panter :


--
keywords: +patch
Added file: http://bugs.python.org/file38042/http-attributes.patch

___
Python tracker 

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



[issue23410] Document more BaseHTTPRequestHandler attributes

2015-02-08 Thread Martin Panter

New submission from Martin Panter:

[Padding to avoid Error: 'utf8' codec can't decode bytes in position 189-190: 
invalid continuation byte]

This is a patch to document two attributes of 
http.server.BaseHTTPRequestHandler: “close_connection” and “requestline”. 
Normally these are set by the handle_one_request() method, but when overriding 
that method, you need to know to set these attributes.

--
assignee: docs@python
components: Documentation
messages: 235554
nosy: docs@python, vadmium
priority: normal
severity: normal
status: open
title: Document more BaseHTTPRequestHandler attributes
type: enhancement

___
Python tracker 

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



[issue17896] Move Windows external libs from \..\ to \externals

2015-02-08 Thread Martin v . Löwis

Martin v. Löwis added the comment:

I noticed this issue today when trying to make the 3.4.3rc1 build; this broke 
Tools/msi.py, which fails to find the license files and the tcltk files.

--

___
Python tracker 

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



[issue23408] Pickle tests use incorrect test data

2015-02-08 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

Pickle tests use incorrect test data for protocols 0-2. This data is not 
compatible with Python 2 because refers to Python 3 modules builtins and 
copyreg (instead of __builtin__ and copy_reg). Proposed patch fixes this (data 
was regenerated by pythontester). Allso corrected dissassembly dumps.

--
components: Tests
files: test_pickle_data.patch
keywords: patch
messages: 235551
nosy: alexandre.vassalotti, pitrou, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Pickle tests use incorrect test data
type: behavior
versions: Python 3.4, Python 3.5
Added file: http://bugs.python.org/file38040/test_pickle_data.patch

___
Python tracker 

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



[issue23096] Implementation-depended pickling floats with protocol 0

2015-02-08 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is a patch.

--
keywords: +patch
stage:  -> patch review
versions:  -Python 2.7, Python 3.4
Added file: http://bugs.python.org/file38039/pickle_float_repr.patch

___
Python tracker 

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