[issue19733] Setting image parameter of a button crashes with Cocoa Tk

2013-11-23 Thread Arfrever Frehtes Taifersar Arahesis

Arfrever Frehtes Taifersar Arahesis added the comment:

> New changeset 3912934e99ba by Serhiy Storchaka in branch '2.7':
> Issue #19733: Temporary disable test_image on MacOSX.
> http://hg.python.org/cpython/rev/3912934e99ba

This commit introduced SyntaxError in 
Lib/lib-tk/test/test_tkinter/test_widgets.py

--
nosy: +Arfrever

___
Python tracker 

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



[issue19734] venv and ensurepip are affected by pip environment variable settings

2013-11-23 Thread Nick Coghlan

Nick Coghlan added the comment:

test_venv appears to be green on all the stable buildbots now.

However, blocking PIP_REQUIRE_VIRTUALENV in the test probably isn't the right 
place  for workaround - resolution in venv or ensurepip would be more 
appropriate.

--
priority: release blocker -> deferred blocker
title: test_venv.test_with_pip() fails on "AMD64 Ubuntu LTS 3.x" buildbot -> 
venv and ensurepip are affected by pip environment variable settings

___
Python tracker 

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



[issue19700] Update runpy for PEP 451

2013-11-23 Thread Nick Coghlan

Nick Coghlan added the comment:

D'oh, I forgot there was a runpy API change I planned to offer as part of the 
PEP 451 integration: exposing a "target" parameter in both run_path and 
run_module.

http://www.python.org/dev/peps/pep-0451/#the-target-parameter-of-find-spec

I guess that slips to 3.5 now, since there's no way it will be in for feature 
freeze :(

--
nosy: +larry

___
Python tracker 

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



[issue3158] Doctest fails to find doctests in extension modules

2013-11-23 Thread Zachary Ware

Zachary Ware added the comment:

One-year-olds don't like productivity.  Committed, 3 hours after I said I would 
:).  I'll leave this open for a couple days just in case.

--
assignee:  -> zach.ware
resolution:  -> fixed
stage:  -> commit review
status: open -> pending

___
Python tracker 

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



[issue3158] Doctest fails to find doctests in extension modules

2013-11-23 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 95dc3054959b by Zachary Ware in branch 'default':
Issue #3158: doctest can now find doctests in functions and methods
http://hg.python.org/cpython/rev/95dc3054959b

--
nosy: +python-dev

___
Python tracker 

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



[issue19545] time.strptime exception context

2013-11-23 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
assignee:  -> serhiy.storchaka

___
Python tracker 

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



[issue19744] ensurepip should refuse to install pip if SSL/TLS is not available

2013-11-23 Thread Nick Coghlan

Nick Coghlan added the comment:

Also noting that the reason for the dummy ssl in the venv would be to provoke 
the "SSL/TLS not available" behaviour when running the tests in a Python that 
actually has those pieces (since the buildbots will have them available unless 
something goes wrong with the build)

--

___
Python tracker 

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



[issue19694] test_venv failing on one of the Ubuntu buildbots

2013-11-23 Thread Nick Coghlan

Nick Coghlan added the comment:

Using isolated mode addressed the warning noise, issue 19734 covers additional 
environment dependent problems in the test.

--

___
Python tracker 

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



[issue19734] test_venv.test_with_pip() fails on "AMD64 Ubuntu LTS 3.x" buildbot

2013-11-23 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 124e51c19e4f by Nick Coghlan in branch 'default':
Issue #19734: Also run pip version check in isolated mode
http://hg.python.org/cpython/rev/124e51c19e4f

--

___
Python tracker 

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



[issue19747] New failures in test_pickletools on 32-bit Windows Vista

2013-11-23 Thread Tim Peters

Tim Peters added the comment:

OK!  This went away after a68c303eb8dc was checked in.

--
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue19747] New failures in test_pickletools on 32-bit Windows Vista

2013-11-23 Thread Tim Peters

New submission from Tim Peters:

Alexandre, this started after your latest checkin (to finish the framing work):

==
FAIL: test_framing_large_objects (test.test_pickletools.OptimizedPickleTests) 
(proto=4)
--
Traceback (most recent call last):
  File "C:\Code\Python\lib\test\pickletester.py", line 1354, in 
test_framing_large_objects
self.assertGreaterEqual(n_frames, len(obj))
AssertionError: 1 not greater than or equal to 3

==
FAIL: test_framing_many_objects (test.test_pickletools.OptimizedPickleTests) 
(proto=4)
--
Traceback (most recent call last):
  File "C:\Code\Python\lib\test\pickletester.py", line 1342, in 
test_framing_many_objects
self.FRAME_SIZE_TARGET * 1)
AssertionError: 368886.0 not less than or equal to 65536

==
FAIL: test_optional_frames (test.test_pickletools.OptimizedPickleTests)
--
Traceback (most recent call last):
  File "C:\Code\Python\lib\test\pickletester.py", line 1392, in 
test_optional_frames
count_opcode(pickle.FRAME, pickled))
AssertionError: 1 not less than 1

--
Ran 82 tests in 4.034s

FAILED (failures=3)
test test_pickletools failed
1 test failed:
test_pickletools

--
assignee: alexandre.vassalotti
messages: 204180
nosy: alexandre.vassalotti, tim.peters
priority: normal
severity: normal
status: open
title: New failures in test_pickletools on 32-bit Windows Vista
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



[issue19734] test_venv.test_with_pip() fails on "AMD64 Ubuntu LTS 3.x" buildbot

2013-11-23 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 9186fdae7e1f by Nick Coghlan in branch 'default':
Issue #19734: Ensure test_venv ignores PIP_REQUIRE_VIRTUALENV
http://hg.python.org/cpython/rev/9186fdae7e1f

--

___
Python tracker 

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



[issue19734] test_venv.test_with_pip() fails on "AMD64 Ubuntu LTS 3.x" buildbot

2013-11-23 Thread Nick Coghlan

Nick Coghlan added the comment:

Confirmed:

$ PIP_REQUIRE_VIRTUALENV=true ./python -m test test_venv
[1/1] test_venv
test test_venv failed -- Traceback (most recent call last):
  File "/home/ncoghlan/devel/py3k/Lib/test/test_venv.py", line 298, in 
test_with_pip
self.run_with_capture(venv.create, self.env_dir, with_pip=True)
subprocess.CalledProcessError: Command '['/tmp/tmpo1fj4gy6/bin/python', '-Im', 
'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 3

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ncoghlan/devel/py3k/Lib/test/test_venv.py", line 304, in 
test_with_pip
self.fail(msg)
AssertionError: Command '['/tmp/tmpo1fj4gy6/bin/python', '-Im', 'ensurepip', 
'--upgrade', '--default-pip']' returned non-zero exit status 3

**Subprocess Output**
Could not find an activated virtualenv (required).


1 test failed:
test_venv

--

___
Python tracker 

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



[issue19734] test_venv.test_with_pip() fails on "AMD64 Ubuntu LTS 3.x" buildbot

2013-11-23 Thread Nick Coghlan

Nick Coghlan added the comment:

test_venv is now passing on 3.x OpenIndiana: 
http://buildbot.python.org/all/builders/x86%20OpenIndiana%203.x/builds/7129/steps/test/logs/stdio

Ubuntu LTS buildbot is still unhappy: 
http://buildbot.python.org/all/builders/AMD64%20Ubuntu%20LTS%203.x/builds/3221/steps/test/logs/stdio

And looking at the environment armed with the improved error details, this is 
likely the culprit:

  PIP_REQUIRE_VIRTUALENV=true

I'll hack the test to delete it from the subprocess invocation for now, but I 
think there's a pip bug here: -E (and, equivalently, -I) should likely cause 
pip to ignore *its* environment variables as well.

--

___
Python tracker 

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



[issue17810] Implement PEP 3154 (pickle protocol 4)

2013-11-23 Thread Tim Peters

Tim Peters added the comment:

[Alexandre Vassalotti]
> I've finalized the framing implementation in de9bda43d552.
>
> There will be more improvements to come until 3.4 final. However, feature-wise
> we are done. Thank you everyone for the help!

Woo hoo!  Thank YOU for the hard work - I know how much fun this is ;-)

--
nosy: +tim.peters

___
Python tracker 

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



[issue17810] Implement PEP 3154 (pickle protocol 4)

2013-11-23 Thread Alexandre Vassalotti

Alexandre Vassalotti added the comment:

I've finalized the framing implementation in de9bda43d552.

There will be more improvements to come until 3.4 final. However, feature-wise 
we are done. Thank you everyone for the help!

--
status: open -> closed

___
Python tracker 

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



[issue15397] Unbinding of methods

2013-11-23 Thread Alexandre Vassalotti

Changes by Alexandre Vassalotti :


--
resolution:  -> duplicate
status: open -> closed
superseder:  -> Implement PEP 3154 (pickle protocol 4)

___
Python tracker 

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



[issue3158] Doctest fails to find doctests in extension modules

2013-11-23 Thread Zachary Ware

Zachary Ware added the comment:

In the absence of input, I'm going to go ahead and commit this just in case in 
needs to be in before feature freeze, but I'll leave the issue open at "commit 
review" stage for a few days in case anyone does have something to say about it.

--

___
Python tracker 

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



[issue19742] pathlib group unittests can fail

2013-11-23 Thread Ned Deily

Ned Deily added the comment:

You should be able to find the group and group name using the "Directory 
Utility" app.  The easiest way to launch it is from a shell with:

open "/System/Library/CoreServices/Directory Utility.app"

There is a command line utility, dscl, but it is much more painful.

--
nosy: +ned.deily

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

2013-11-23 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



[issue19746] No introspective way to detect ModuleImportFailure

2013-11-23 Thread Robert Collins

New submission from Robert Collins:

https://bugs.launchpad.net/testtools/+bug/1245672 was filed on testtools 
recently. It would be easier to fix that if there was some way that something 
loading a test suite could check to see if there were import errors. The 
current code nicely works in the case where folk run the tests - so we should 
keep that behaviour, but also accumulate a list somewhere.

One possibility would be on the returned top level suite; another place would 
be on the loader itself. Or a new return type where we return a tuple of 
(suite, failures), but thats a more intrusive API change.

Any preference about how to solve this? I will work up a patch given some minor 
direction.

--
components: Library (Lib)
messages: 204172
nosy: michael.foord, rbcollins
priority: normal
severity: normal
status: open
title: No introspective way to detect ModuleImportFailure
type: enhancement
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



[issue19734] test_venv.test_with_pip() fails on "AMD64 Ubuntu LTS 3.x" buildbot

2013-11-23 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 7c080ee796a6 by Nick Coghlan in branch 'default':
Issue #19734: ctypes resource management fixes
http://hg.python.org/cpython/rev/7c080ee796a6

--

___
Python tracker 

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



[issue19744] ensurepip should refuse to install pip if SSL/TLS is not available

2013-11-23 Thread Christian Heimes

Changes by Christian Heimes :


--
nosy: +christian.heimes

___
Python tracker 

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



[issue16134] Add support for RTMP schemes to urlparse

2013-11-23 Thread Martin Panter

Martin Panter added the comment:

Looks like Issue 9374 already covers most of this, with fixes in 2.7, 3.2 and 
3.3.

$ python3.3
Python 3.3.2 (default, May 16 2013, 23:40:52) 
[GCC 4.6.3] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from urllib.parse import urlparse
>>> urlparse("protocol://servername:port/")
ParseResult(scheme='protocol', netloc='servername:port', path='/', params='', 
query='', fragment='')
>>> urlparse("rtmp://a.rtmp.youtube.com/videolive?ns=yt-live&id=123456&itag=35&signature=blahblahblah/yt-live.123456.35")
ParseResult(scheme='rtmp', netloc='a.rtmp.youtube.com', path='/videolive', 
params='', 
query='ns=yt-live&id=123456&itag=35&signature=blahblahblah/yt-live.123456.35', 
fragment='')

Now there are only the three unresolved aspects listed below, as I see it. 
Personally I think the first, for urljoin(), should be fixed (hopefully in a 
generic way without whitelists). I mentioned this in Issue 18828. I wonder if 
last two really matter?

* uses_relative: would allow urljoin() to work. Compare urljoin("rtmp://host/", 
"path") and urljoin("rtsp://host/", "path").
* uses_netloc: would affect urlunsplit(("rtmp", "", "/path", "", ""))
* uses_params: would affect urlparse("rtmp://host/;a=b")

--
nosy: +vadmium

___
Python tracker 

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



[issue19347] PEP 453 implementation tracking issue

2013-11-23 Thread Nick Coghlan

Nick Coghlan added the comment:

Issue 19744 covers better handling of the case where SSL/TLS support is not 
available in the current Python.

--

___
Python tracker 

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



[issue19744] ensurepip should refuse to install pip if SSL/TLS is not available

2013-11-23 Thread Nick Coghlan

Nick Coghlan added the comment:

Temporarily skipped the test to appease the build bots for the beta release, 
but this should be changed so that ensurepip refuses to bootstrap pip if 
SSL/TLS support is not available.

test_venv would then be updated to check for the appropriate behaviour (e.g. by 
inserting a dummy ssl.py that just raises import error into the venv)

--
priority: normal -> high
title: test_venv failing on 32-bit Windows Vista -> ensurepip should refuse to 
install pip if SSL/TLS is not available

___
Python tracker 

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



[issue19744] test_venv failing on 32-bit Windows Vista

2013-11-23 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 9891ba920f3c by Nick Coghlan in branch 'default':
Issue #19744 (temp workaround): without ssl, skip pip test
http://hg.python.org/cpython/rev/9891ba920f3c

--
nosy: +python-dev

___
Python tracker 

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



[issue19734] test_venv.test_with_pip() fails on "AMD64 Ubuntu LTS 3.x" buildbot

2013-11-23 Thread Nick Coghlan

Changes by Nick Coghlan :


--
nosy: +dstufft

___
Python tracker 

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



[issue19734] test_venv.test_with_pip() fails on "AMD64 Ubuntu LTS 3.x" buildbot

2013-11-23 Thread Nick Coghlan

Nick Coghlan added the comment:

OpenIndiana failure looks like a resource management issue in ctypes:
==
FAIL: test_with_pip (test.test_venv.EnsurePipTest)
--
Traceback (most recent call last):
  File 
"/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/test/test_venv.py", 
line 304, in test_with_pip
self.assertEqual(err, "")
AssertionError: "/export/home/buildbot/32bits/3.x.cea-ind[346 chars]):\n" != ''
- 
/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/ctypes/util.py:179: 
ResourceWarning: unclosed file <_io.TextIOWrapper name=5 encoding='646'>
-   for line in os.popen(cmd).readlines():
- 
/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/ctypes/util.py:179: 
ResourceWarning: unclosed file <_io.TextIOWrapper name=5 encoding='646'>
-   for line in os.popen(cmd).readlines():


Ubuntu LTS failure still puzzles me:

==
FAIL: test_with_pip (test.test_venv.EnsurePipTest)
--
Traceback (most recent call last):
  File "/opt/python/3.x.langa-ubuntu/build/Lib/test/test_venv.py", line 289, in 
test_with_pip
self.run_with_capture(venv.create, self.env_dir, with_pip=True)
subprocess.CalledProcessError: Command '['/tmp/tmpwsahapjn/bin/python', '-Im', 
'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 3

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/python/3.x.langa-ubuntu/build/Lib/test/test_venv.py", line 295, in 
test_with_pip
self.fail(msg)
AssertionError: Command '['/tmp/tmpwsahapjn/bin/python', '-Im', 'ensurepip', 
'--upgrade', '--default-pip']' returned non-zero exit status 3

**Subprocess Output**
Could not find an activated virtualenv (required).

--

___
Python tracker 

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



[issue19745] TEST_DATA_DIR for out-of-tree builds

2013-11-23 Thread Christian Heimes

New submission from Christian Heimes:

test.support declares a TEST_DATA_DIR directory inside the source tree of 
Python:

TEST_SUPPORT_DIR = os.path.dirname(os.path.abspath(__file__))
TEST_HOME_DIR = os.path.dirname(TEST_SUPPORT_DIR)
TEST_DATA_DIR = os.path.join(TEST_HOME_DIR, "data")

make distclean cleans up the very same directory, see r87481. This feature 
doesn't cope will with out-of-tree builds with a read-only source directory. It 
looks like this feature isn't used by any test module. Can I remove it?

--
components: Tests
messages: 204166
nosy: christian.heimes
priority: low
severity: normal
stage: needs patch
status: open
title: TEST_DATA_DIR for out-of-tree builds
type: behavior
versions: Python 3.3, Python 3.4

___
Python tracker 

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



[issue19744] test_venv failing on 32-bit Windows Vista

2013-11-23 Thread Tim Peters

Tim Peters added the comment:

FYI, here's the new output:

[1/1] test_venv
test test_venv failed -- Traceback (most recent call last):
  File "C:\Code\Python\lib\test\test_venv.py", line 289, in test_with_pip
self.run_with_capture(venv.create, self.env_dir, with_pip=True)
subprocess.CalledProcessError: Command 
'['C:\\Users\\Tim\\AppData\\Local\\Temp\\tmptw2_vda6\\Scripts\\python_d
.exe', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero 
exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Code\Python\lib\test\test_venv.py", line 295, in test_with_pip
self.fail(msg)
AssertionError: Command 
'['C:\\Users\\Tim\\AppData\\Local\\Temp\\tmptw2_vda6\\Scripts\\python_d.exe', 
'-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit 
status 1

**Subprocess Output**
Traceback (most recent call last):
  File "C:\Code\Python\lib\runpy.py", line 160, in _run_module_as_main
"__main__", fname, loader, pkg_name)
  File "C:\Code\Python\lib\runpy.py", line 73, in _run_code
exec(code, run_globals)
  File "C:\Code\Python\lib\ensurepip\__main__.py", line 66, in 
main()
  File "C:\Code\Python\lib\ensurepip\__main__.py", line 61, in main
default_pip=args.default_pip,
  File "C:\Code\Python\lib\ensurepip\__init__.py", line 92, in bootstrap
_run_pip(args + [p[0] for p in _PROJECTS], additional_paths)
  File "C:\Code\Python\lib\ensurepip\__init__.py", line 28, in _run_pip
import pip
  File 
"C:\Users\Tim\AppData\Local\Temp\tmpdkfwi7it\pip-1.5.rc1-py2.py3-none-any.whl\pip\__init__.py",
 line 10
, in 
  File 
"C:\Users\Tim\AppData\Local\Temp\tmpdkfwi7it\pip-1.5.rc1-py2.py3-none-any.whl\pip\util.py",
 line 17, in
 
  File 
"C:\Users\Tim\AppData\Local\Temp\tmpdkfwi7it\pip-1.5.rc1-py2.py3-none-any.whl\pip\_vendor\distlib\version.py",
 line 14, in 
  File 
"C:\Users\Tim\AppData\Local\Temp\tmpdkfwi7it\pip-1.5.rc1-py2.py3-none-any.whl\pip\_vendor\distlib\compat.py",
 line 66, in 
ImportError: cannot import name 'HTTPSHandler'


1 test failed:
test_venv

--

___
Python tracker 

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



[issue19713] Deprecate various things in importlib thanks to PEP 451

2013-11-23 Thread Nick Coghlan

Nick Coghlan added the comment:

I think we should definitely support them, I just haven't thought of a way
to do that yet which is cleaner than the status quo (it's only the loader
part of the API that isn't fully covered - the rest of the legacy APIs can
be deprecated happily). I may come up with an idea once we start work on
migrating extension module loading in 3.5.

--

___
Python tracker 

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



[issue19734] test_venv.test_with_pip() fails on "AMD64 Ubuntu LTS 3.x" buildbot

2013-11-23 Thread Nick Coghlan

Nick Coghlan added the comment:

That specific stack trace is from the commit where I inadvertently reverted the 
isolated mode fix - the pip installation test is always run with 
PYTHONWARNINGS=e now to make sure it will fail in non-isolated mode.

--

___
Python tracker 

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



[issue19734] test_venv.test_with_pip() fails on "AMD64 Ubuntu LTS 3.x" buildbot

2013-11-23 Thread Nick Coghlan

Nick Coghlan added the comment:

Christian, that was my original theory in issue 19694 (since that box runs with 
PYTHONWARNINGS=d set), but it doesn't look like it is the problem, since 
running in isolated mode didn't fix the issue (although it did suppress the 
warnings).

--

___
Python tracker 

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



[issue13244] WebSocket schemes in urllib.parse

2013-11-23 Thread Martin Panter

Martin Panter added the comment:

Suspect this is now fixed in a generic way by Issue 9374. The fix seems to be 
in 2.7, 3.2 and 3.3.

$ python3.3
Python 3.3.2 (default, May 16 2013, 23:40:52) 
[GCC 4.6.3] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from urllib.parse import urlparse
>>> urlparse("ws://example.com/somewhere?foo=bar#dgdg")
ParseResult(scheme='ws', netloc='example.com', path='/somewhere', params='', 
query='foo=bar', fragment='dgdg')

--
nosy: +vadmium

___
Python tracker 

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



[issue19734] test_venv.test_with_pip() fails on "AMD64 Ubuntu LTS 3.x" buildbot

2013-11-23 Thread Christian Heimes

Christian Heimes added the comment:

Could a deprecation warning cause the failing test?

Traceback (most recent call last):
  File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\runpy.py", line 160, 
in _run_module_as_main
"__main__", fname, loader, pkg_name)
  File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\runpy.py", line 73, in 
_run_code
exec(code, run_globals)
  File 
"C:\buildbot.python.org\3.x.kloth-win64\build\lib\ensurepip\__main__.py", line 
66, in 
main()
  File 
"C:\buildbot.python.org\3.x.kloth-win64\build\lib\ensurepip\__main__.py", line 
61, in main
default_pip=args.default_pip,
  File 
"C:\buildbot.python.org\3.x.kloth-win64\build\lib\ensurepip\__init__.py", line 
92, in bootstrap
_run_pip(args + [p[0] for p in _PROJECTS], additional_paths)
  File 
"C:\buildbot.python.org\3.x.kloth-win64\build\lib\ensurepip\__init__.py", line 
28, in _run_pip
import pip
  File "", line 2147, in _find_and_load
  File "", line 2136, in _find_and_load_unlocked
  File "", line 1178, in _load_unlocked
  File "", line 1140, in _load_backward_compatible
  File 
"C:\Users\Buildbot\AppData\Local\Temp\tmpi0kq8p59\pip-1.5.rc1-py2.py3-none-any.whl\pip\__init__.py",
 line 9, in 
  File "", line 2147, in _find_and_load
  File "", line 2136, in _find_and_load_unlocked
  File "", line 1178, in _load_unlocked
  File "", line 1140, in _load_backward_compatible
  File 
"C:\Users\Buildbot\AppData\Local\Temp\tmpi0kq8p59\pip-1.5.rc1-py2.py3-none-any.whl\pip\log.py",
 line 8, in 
  File "", line 2147, in _find_and_load
  File "", line 2136, in _find_and_load_unlocked
  File "", line 1178, in _load_unlocked
  File "", line 1140, in _load_backward_compatible
  File 
"C:\Users\Buildbot\AppData\Local\Temp\tmpi0kq8p59\setuptools-1.3.2-py2.py3-none-any.whl\pkg_resources.py",
 line 20, in 
  File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\imp.py", line 32, in 

PendingDeprecationWarning)
PendingDeprecationWarning: the imp module is deprecated in favour of importlib; 
see the module's documentation for alternative uses

--
nosy: +christian.heimes

___
Python tracker 

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



[issue19744] test_venv failing on 32-bit Windows Vista

2013-11-23 Thread Tim Peters

Tim Peters added the comment:

Ah, I didn't even notice the "S" in "HTTPS"!  I'm not building the SSL cruft on 
my box, so it's not surprising that anything requiring it would fail.  It is 
surprising that this is the only test that _does_ fail without it ;-)

--

___
Python tracker 

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



[issue19743] test_gdb failures

2013-11-23 Thread Larry Hastings

Larry Hastings added the comment:

The test passes if I turn on "--with-pydebug".  And Antoine told me in IRC that 
he sees the failure if he turns off "--with-pydebug".  So we're in business.

--

___
Python tracker 

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



[issue19743] test_gdb failures

2013-11-23 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Ok, it seems the failures are due to a non-pydebug build. I'll investigate 
tomorrow.

--

___
Python tracker 

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



[issue19734] test_venv.test_with_pip() fails on "AMD64 Ubuntu LTS 3.x" buildbot

2013-11-23 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 989de1a267b1 by Nick Coghlan in branch 'default':
Issue #19734: venv still needs isolated mode
http://hg.python.org/cpython/rev/989de1a267b1

--

___
Python tracker 

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



[issue19743] test_gdb failures

2013-11-23 Thread Larry Hastings

Larry Hastings added the comment:

That's correct, it is skipped.

--

___
Python tracker 

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



[issue19743] test_gdb failures

2013-11-23 Thread Antoine Pitrou

Antoine Pitrou added the comment:

If you go back one revision, test_gdb isn't run at all, right?
(it should be skipped)

--

___
Python tracker 

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



[issue19744] test_venv failing on 32-bit Windows Vista

2013-11-23 Thread Nick Coghlan

Nick Coghlan added the comment:

Interesting - this isn't *quite* a duplicate of the buildbot failures in issue 
19734 (at least, I don't think it is - the extra diagnostics I just checked in 
should tell us for sure).

Since pip isn't useful without HTTPS, we may want to add a check for ssl 
support to either venv or ensurepip itself.

--
nosy: +ncoghlan

___
Python tracker 

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



[issue9374] urlparse should parse query and fragment for arbitrary schemes

2013-11-23 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



[issue19743] test_gdb failures

2013-11-23 Thread Larry Hastings

Larry Hastings added the comment:

The first bad revision is:
changeset:   87426:9f2a0043396b
user:Antoine Pitrou 
date:Sat Nov 23 17:40:36 2013 +0100
files:   Lib/test/test_gdb.py Tools/gdb/libpython.py
description:
Issue #19308: fix the gdb plugin on gdbs linked with Python 3

--

___
Python tracker 

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



[issue19734] test_venv.test_with_pip() fails on "AMD64 Ubuntu LTS 3.x" buildbot

2013-11-23 Thread Roundup Robot

Roundup Robot added the comment:

New changeset cb598129837c by Nick Coghlan in branch 'default':
Issue 19734: better diagnostics for test_venv failures
http://hg.python.org/cpython/rev/cb598129837c

--
nosy: +python-dev

___
Python tracker 

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



[issue19744] test_venv failing on 32-bit Windows Vista

2013-11-23 Thread Tim Peters

New submission from Tim Peters:

With the current default branch, test_venv fails every time for me:

[1/1] test_venv
Traceback (most recent call last):
  File "C:\Code\Python\lib\runpy.py", line 160, in _run_module_as_main
"__main__", fname, loader, pkg_name)
  File "C:\Code\Python\lib\runpy.py", line 73, in _run_code
exec(code, run_globals)
  File "C:\Code\Python\lib\ensurepip\__main__.py", line 66, in 
main()
  File "C:\Code\Python\lib\ensurepip\__main__.py", line 61, in main
default_pip=args.default_pip,
  File "C:\Code\Python\lib\ensurepip\__init__.py", line 92, in bootstrap
_run_pip(args + [p[0] for p in _PROJECTS], additional_paths)
  File "C:\Code\Python\lib\ensurepip\__init__.py", line 28, in _run_pip
import pip
  File 
"C:\Users\Tim\AppData\Local\Temp\tmpjltqdgi8\pip-1.5.rc1-py2.py3-none-any.whl\pip\__init__.py",
 line 10
, in 
  File 
"C:\Users\Tim\AppData\Local\Temp\tmpjltqdgi8\pip-1.5.rc1-py2.py3-none-any.whl\pip\util.py",
 line 17, in
 
  File 
"C:\Users\Tim\AppData\Local\Temp\tmpjltqdgi8\pip-1.5.rc1-py2.py3-none-any.whl\pip\_vendor\distlib\versi
on.py", line 14, in 
  File 
"C:\Users\Tim\AppData\Local\Temp\tmpjltqdgi8\pip-1.5.rc1-py2.py3-none-any.whl\pip\_vendor\distlib\compat.py",
 line 66, in 
ImportError: cannot import name 'HTTPSHandler'
test test_venv failed -- Traceback (most recent call last):
  File "C:\Code\Python\lib\test\test_venv.py", line 288, in test_with_pip
self.run_with_capture(venv.create, self.env_dir, with_pip=True)
  File "C:\Code\Python\lib\test\test_venv.py", line 48, in run_with_capture
func(*args, **kwargs)
  File "C:\Code\Python\lib\venv\__init__.py", line 359, in create
builder.create(env_dir)
  File "C:\Code\Python\lib\venv\__init__.py", line 86, in create
self._setup_pip(context)
  File "C:\Code\Python\lib\venv\__init__.py", line 242, in _setup_pip
subprocess.check_output(cmd)
  File "C:\Code\Python\lib\subprocess.py", line 618, in check_output
raise CalledProcessError(retcode, process.args, output=output)
subprocess.CalledProcessError: Command 
'['C:\\Users\\Tim\\AppData\\Local\\Temp\\tmpt0ca1aqn\\Scripts\\python_d
.exe', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero 
exit status 1

1 test failed:
test_venv

All virtual Greek to me.

--
messages: 204149
nosy: tim.peters
priority: normal
severity: normal
status: open
title: test_venv failing on 32-bit Windows Vista
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



[issue19715] test_touch_common failure under Windows

2013-11-23 Thread Tim Peters

Tim Peters added the comment:

[MvL]
> A. t1=t2=1385161652120375500
> B. pygettimeofday truncates this to 1385161652.120375
> C. time.time() converts this to float, yielding
>   0x1.4a3f8ed07b439p+30 i.e.
>   (0.6450161580556887, 31)
>   1385161652.120375 (really .1203749566283776)
> D. _PyTime_ObjectToDenominator converts this to
>   1385161652.120374917
> E. time_t_to_FILE_TIME convert this to
>   1385161652.120374900

Got it.  It's not surprising we can't round-trip, but it's annoying we can't 
always round-trip even if there are no nanoseconds to lose at the start :-(  
The only part here that rounds is step C - everything else truncates.

For example, start with 1385161652120374000.  B is exact then, returning 
seconds 1385161652 and usecs 120374.

C doesn't do _much_ damage, returning

1385161652.120374 == 0x1.4a3f8ed07b435p+30

D. breaks that into
1385161652.0
and
0.12037396430969238
yielding seconds 1385161652 and numerator 120373964.  The last part is a little 
truncated, but the major loss comes in E, which chops off the final "64" - we 
end up changing

1385161652120374000 into
1385161652120373900

There's a reason C's time_t is almost always implemented as an integer type ;-) 
 I expect we'd be better off if we represented times internally as 64-bit ints, 
used double for the output of time.time(), and refused to accept doubles for 
any purpose - LOL ;-)

--
status: pending -> open

___
Python tracker 

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



[issue19734] test_venv.test_with_pip() fails on "AMD64 Ubuntu LTS 3.x" buildbot

2013-11-23 Thread Larry Hastings

Larry Hastings added the comment:

Nick: I get that gdb failure, bisecting now.  See #19743.

--

___
Python tracker 

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



[issue19734] test_venv.test_with_pip() fails on "AMD64 Ubuntu LTS 3.x" buildbot

2013-11-23 Thread Nick Coghlan

Nick Coghlan added the comment:

Bumping priority and adding Larry to the nosy list

Checking the latest results from the systems listed above:

Ubuntu LTS still failing due to this: 
http://buildbot.python.org/all/builders/AMD64%20Ubuntu%20LTS%203.x/builds/3213/steps/test/logs/stdio
 (added Łukasz to nosy list)

x86 OpenIndiana still failing due to this: 
http://buildbot.python.org/all/builders/x86%20OpenIndiana%203.x/builds/7123/steps/test/logs/stdio
 (added Jesús to the nosy list)

AMD64 OpenIndiana machine is still failing, but not due to this (test_tarfile 
failure): 
http://buildbot.python.org/all/builders/AMD64%20OpenIndiana%203.x/builds/6972/steps/test/logs/stdio

Windows 7 failure is in test_tarfile: 
http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.x/builds/3410/steps/test/logs/stdio

Windows XP failure was a build issue for the new _opcode module: 
http://buildbot.python.org/all/builders/x86%20XP-4%203.x/builds/9651/steps/test/logs/stdio

Solaris (not a stable buildbot) had slightly different symptoms and a few other 
errors: 
http://buildbot.python.org/all/builders/AMD64%20Solaris%2011%20%5BSB%5D%203.x/builds/2216/steps/test/logs/stdio

AIX has lots of issues, include some where features pip is relying on don't 
work: 
http://buildbot.python.org/all/builders/PPC64%20AIX%203.x/builds/1127/steps/test/logs/stdio

System Z just isn't happy with test_gdb: 
http://buildbot.python.org/all/builders/System%20Z%20Linux%203.x/builds/795/steps/test/logs/stdio

--
nosy: +jcea, larry, lukasz.langa -nick
priority: normal -> release blocker

___
Python tracker 

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



[issue19743] test_gdb failures

2013-11-23 Thread Larry Hastings

Larry Hastings added the comment:

Please see the attached output from the test run.  But here's a sample:

==
FAIL: test_lists (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of lists
--
Traceback (most recent call last):
  File "/home/larry/src/python/nodocstrings/Lib/test/test_gdb.py", line 258, in 
test_lists
self.assertGdbRepr(list(range(5)))
  File "/home/larry/src/python/nodocstrings/Lib/test/test_gdb.py", line 228, in 
assertGdbRepr
cmds_after_breakpoint)
  File "/home/larry/src/python/nodocstrings/Lib/test/test_gdb.py", line 196, in 
get_gdb_repr
import_site=import_site)
  File "/home/larry/src/python/nodocstrings/Lib/test/test_gdb.py", line 179, in 
get_stack_trace
self.assertEqual(unexpected_errlines, [])
AssertionError: Lists differ: ["Python Exception  'utf-8' codec can't decode byte 
0xfc in position 1: invalid start byte: 

+ []
- ["Python Exception  'utf-8' codec can't decode "
-  'byte 0xfc in position 1: invalid start byte: ',
-  "Python Exception  'utf-8' codec can't decode "
-  'byte 0xfc in position 1: invalid start byte: ']

--

___
Python tracker 

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



[issue19743] test_gdb failures

2013-11-23 Thread Antoine Pitrou

Antoine Pitrou added the comment:

> test_gdb started failing on me within the past few days

Can you please bisect to find the offending changeset?

--

___
Python tracker 

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



[issue19545] time.strptime exception context

2013-11-23 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue19743] test_gdb failures

2013-11-23 Thread Larry Hastings

New submission from Larry Hastings:

test_gdb started failing on me within the past few days.  (I would have 
reported it sooner but I figured the omniscient CPython core dev community 
already knew about it.)

The machine it's failing on is Ubuntu 13.10, 64-bit.

--
components: Tests
files: gdb_test_failure
messages: 204143
nosy: larry, pitrou
priority: normal
severity: normal
stage: needs patch
status: open
title: test_gdb failures
type: behavior
versions: Python 3.4
Added file: http://bugs.python.org/file32816/gdb_test_failure

___
Python tracker 

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



[issue19691] Weird wording in RuntimeError doc

2013-11-23 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



[issue19742] pathlib group unittests can fail

2013-11-23 Thread Guido van Rossum

New submission from Guido van Rossum:

When running test_pathlib on my OSX (10.8) laptop I get these errors:

==
ERROR: test_group (test.test_pathlib.PathTest)
--
Traceback (most recent call last):
  File "/Users/guido/cpython/Lib/test/test_pathlib.py", line 1332, in test_group
name = grp.getgrgid(gid).gr_name
KeyError: 'getgrgid(): gid not found: 849048494'

==
ERROR: test_group (test.test_pathlib.PosixPathTest)
--
Traceback (most recent call last):
  File "/Users/guido/cpython/Lib/test/test_pathlib.py", line 1332, in test_group
name = grp.getgrgid(gid).gr_name
KeyError: 'getgrgid(): gid not found: 849048494'

--

This is probably some kind of OSX quirk where st_gid is set to a group that's 
not in /etc/groups, because (except briefly during the reboot process) on OS X 
the /etc configuration files for users/groups do not provide the whole truth.

Sadly I don't know what API to use to get the group name.   "ls -l" doesn't 
seem to know either.  My home dir has that gid too, so it's not an isolated 
anomaly. It may well be some kind of corporate thing (it's not really "my" 
laptop. :-)

--
assignee: pitrou
messages: 204141
nosy: gvanrossum, pitrou
priority: normal
severity: normal
status: open
title: pathlib group unittests can fail
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



[issue19742] pathlib group unittests can fail

2013-11-23 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Well, the KeyError is legitimate then (it's even in the docs :-)).
The test will probably have to be skipped in this case.

--

___
Python tracker 

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



[issue19740] test_asyncio problems on 32-bit Windows

2013-11-23 Thread Tim Peters

Tim Peters added the comment:

@sbt, this is reproducible every time for me, so if there's anything you'd like 
me to try, let me know.  I don't know anything about this code, and gave up 
after half an hour of trying to find out _where_ `False` was coming from - too 
convoluted for this old brain ;-)

--

___
Python tracker 

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



[issue19726] BaseProtocol is not an ABC

2013-11-23 Thread Antoine Pitrou

Antoine Pitrou added the comment:

> Well, it *is* abstract because it has no implementations and all the
> methods raise NotImplementedError. We can do better in the .rst docs though.

I didn't know what to do with it, so I didn't mention it at all in
the .rst docs :-)

--

___
Python tracker 

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



[issue19726] BaseProtocol is not an ABC

2013-11-23 Thread Guido van Rossum

Guido van Rossum added the comment:

Well, it *is* abstract because it has no implementations and all the
methods raise NotImplementedError. We can do better in the .rst docs though.

--

___
Python tracker 

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



[issue19726] BaseProtocol is not an ABC

2013-11-23 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Well, IMHO it's better spelt "base class" if it isn't technically an ABC. At 
least I was personally a bit surprised at first.

--

___
Python tracker 

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



[issue13477] tarfile module should have a command line

2013-11-23 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 70b9d22b900a by Serhiy Storchaka in branch 'default':
Build a list of supported test tarfiles dynamically for CLI "test" command
http://hg.python.org/cpython/rev/70b9d22b900a

--

___
Python tracker 

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



[issue18987] distutils.utils.get_platform() for 32-bit Python on a 64-bit machine

2013-11-23 Thread Gregory P. Smith

Changes by Gregory P. Smith :


--
title: distutils.utils.get_platform() for 32-bit Python on  a   64-bit 
machine -> distutils.utils.get_platform() for 32-bit Python on a 64-bit machine

___
Python tracker 

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



[issue18987] distutils.utils.get_platform() for 32-bit Python on a 64-bit machine

2013-11-23 Thread David Jones

David Jones added the comment:

Has there been any progress made on fixing this? I ran into this trying to 
install numpy via pip, 32-bit python installation on 64-bit Centos 6.4. It 
get's the compile flags right, but not the linker:

C compiler: gcc -pthread -fno-strict-aliasing -g -O2 -m32 -DNDEBUG -g -fwrapv 
-O3 -Wall -Wstrict-prototypes -fPIC
compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core 
-Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath 
-Inumpy/core/src/npysort -Inumpy/core/include 
-I/opt/python/ia32/include/python2.7 -c'
gcc: _configtest.c
gcc -pthread _configtest.o -o _configtest
_configtest.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status

Someone worked around this by changing ccompiler.py, line 693 to:
runtime_library_dirs=None, debug=0, extra_preargs=['-m32'],

See: 
http://stackoverflow.com/questions/11265057/how-do-i-install-a-32-bit-version-of-numpy

I tried using the setarch command, which alters the output of uname, but it 
didn't change anything:
setarch i686 pip install numpy

This changes the output of uname from
Linux centos63-vm 2.6.32-358.23.2.el6.x86_64 #1 SMP Wed Oct 16 18:37:12 UTC 
2013 x86_64 x86_64 x86_64 GNU/Linux

to 

Linux centos63-vm 2.6.32-358.23.2.el6.x86_64 #1 SMP Wed Oct 16 18:37:12 UTC 
2013 i686 i686 i386 GNU/Linux

So if get_platform really depends on uname, then why doesn't this work?

--
nosy: +djones

___
Python tracker 

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



[issue19737] Documentation of globals() and locals() should be improved

2013-11-23 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



[issue13477] tarfile module should have a command line

2013-11-23 Thread Roundup Robot

Roundup Robot added the comment:

New changeset a5b6c8cbc473 by Serhiy Storchaka in branch 'default':
Issue #13477: Added command line interface to the tarfile module.
http://hg.python.org/cpython/rev/a5b6c8cbc473

--
nosy: +python-dev

___
Python tracker 

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



[issue19741] tracemalloc: tracemalloc_log_alloc() doesn't check _Py_HASHTABLE_SET() return value

2013-11-23 Thread Christian Heimes

Christian Heimes added the comment:

The functions can't signal an error because it has void as return type.

--

___
Python tracker 

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



[issue19738] pytime.c loses precision under Windows

2013-11-23 Thread STINNER Victor

STINNER Victor added the comment:

> I think the best choice would be a decimal object--which, now that we have 
> decimal in C, is probably sufficiently performant for serious consideration.

This idea was rejected: see the PEP 410 :-)

--

___
Python tracker 

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



[issue19741] tracemalloc: tracemalloc_log_alloc() doesn't check _Py_HASHTABLE_SET() return value

2013-11-23 Thread STINNER Victor

New submission from STINNER Victor:

Christian posted me this warning on IRC:

** CID 1131947:  Unchecked return value  (CHECKED_RETURN) 
/Modules/_tracemalloc.c: 462 in tracemalloc_log_alloc()

--
messages: 204131
nosy: christian.heimes, haypo
priority: normal
severity: normal
status: open
title: tracemalloc: tracemalloc_log_alloc() doesn't check _Py_HASHTABLE_SET() 
return value
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



[issue19740] test_asyncio problems on 32-bit Windows

2013-11-23 Thread Richard Oudkerk

Richard Oudkerk added the comment:

It would be nice to try this on another Vista machine - the WinXP, Win7, 
Windows Server 2003 and Windows Server 2008 buildbots don't seem to show this 
failure.

It looks as though the TimerOrWaitFired argument passed to the callback 
registered with RegisterWaitForSingleObject() is wrong.

This might be fixable by doing an additional zero-timeout wait with 
WaitForSingleObject() to test whether the handle is signalled.  (But this will 
prevent us from using wait_for_handle() with things like locks and semaphores 
where a succesful wait changes the state of the object represented by the 
handle.)

--

___
Python tracker 

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



[issue19674] Add introspection information for builtins

2013-11-23 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 78ec18f5cb45 by Larry Hastings in branch 'default':
Issue #19674: inspect.signature() now produces a correct signature
http://hg.python.org/cpython/rev/78ec18f5cb45

--
nosy: +python-dev

___
Python tracker 

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



[issue19674] Add introspection information for builtins

2013-11-23 Thread Larry Hastings

Changes by Larry Hastings :


--
resolution:  -> fixed
stage: patch review -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue19737] Documentation of globals() and locals() should be improved

2013-11-23 Thread Zahari Dim

Zahari Dim added the comment:

I am looking at the docs of the built-in functions:

http://docs.python.org/2/library/functions.html

--

___
Python tracker 

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



[issue19358] Integrate "Argument Clinic" into CPython build

2013-11-23 Thread Larry Hastings

Larry Hastings added the comment:

Fixed.  By the way, this checkin also added a tiny new feature to Argument 
Clinic: if the file hasn't changed, it doesn't bother to rewrite it (or touch 
it in any way).

--
assignee:  -> larry
resolution:  -> fixed
stage: patch review -> commit review
status: open -> closed

___
Python tracker 

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



[issue19358] Integrate "Argument Clinic" into CPython build

2013-11-23 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 29370c25e0f1 by Larry Hastings in branch 'default':
Issue #19358: "make clinic" now runs the Argument Clinic preprocessor
http://hg.python.org/cpython/rev/29370c25e0f1

--
nosy: +python-dev

___
Python tracker 

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



[issue19726] BaseProtocol is not an ABC

2013-11-23 Thread Guido van Rossum

Guido van Rossum added the comment:

I'm not sure that "ABC" implies "an instance of abc.ABC". It's still an 
abstract base class (in the usual definition of that concept) even if it 
doesn't enforce anything.

I propose to close this as wontfix.

--

___
Python tracker 

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



[issue19730] Clinic fixes: add converters with length, version directive, "self converter"

2013-11-23 Thread Larry Hastings

Changes by Larry Hastings :


--
resolution:  -> fixed
stage: patch review -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue19730] Clinic fixes: add converters with length, version directive, "self converter"

2013-11-23 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 760ccd78e874 by Larry Hastings in branch 'default':
Issue #19730: Argument Clinic now supports all the existing PyArg
http://hg.python.org/cpython/rev/760ccd78e874

--
nosy: +python-dev

___
Python tracker 

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



[issue19726] BaseProtocol is not an ABC

2013-11-23 Thread Antoine Pitrou

Antoine Pitrou added the comment:

I don't think it's necessary either. They don't *need* to be ABCs, but if they 
aren't the docstring should be fixed :)

--

___
Python tracker 

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



[issue19722] Expose stack effect calculator to Python

2013-11-23 Thread Larry Hastings

Changes by Larry Hastings :


--
resolution:  -> fixed
stage: patch review -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue19722] Expose stack effect calculator to Python

2013-11-23 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 5fe72b9ed48e by Larry Hastings in branch 'default':
Issue #19722: Added opcode.stack_effect(), which accurately
http://hg.python.org/cpython/rev/5fe72b9ed48e

--
nosy: +python-dev

___
Python tracker 

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



[issue16203] Proposal: add re.fullmatch() method

2013-11-23 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
status: open -> closed

___
Python tracker 

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



[issue19738] pytime.c loses precision under Windows

2013-11-23 Thread Larry Hastings

Larry Hastings added the comment:

Martin: I think the best choice would be a decimal object--which, now that we 
have decimal in C, is probably sufficiently performant for serious 
consideration.

--
nosy: +larry

___
Python tracker 

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



[issue19674] Add introspection information for builtins

2013-11-23 Thread Larry Hastings

Larry Hastings added the comment:

Fresh patch attached.  pydoc now uses inspect.signature instead of 
inspect.getfullargspec to generate the arguments for the function, and supports 
builtins.  That's everything :D

Planning on checking this in pretty soon, to get it in for beta (which 
hopefully still gets tagged today).

--
Added file: 
http://bugs.python.org/file32815/larry.introspection.for.builtins.patch.4.txt

___
Python tracker 

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



[issue19465] selectors: provide a helper to choose a selector using constraints

2013-11-23 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
assignee:  -> docs@python
components: +Documentation
nosy: +docs@python

___
Python tracker 

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



[issue19465] selectors: provide a helper to choose a selector using constraints

2013-11-23 Thread Charles-François Natali

Charles-François Natali added the comment:

> Antoine Pitrou added the comment:
>
> I think this is more of a documentation issue. People who don't want a new fd 
> can hardcode PollSelector (poll has been POSIX for a long time).

That's also what I now think.
I don't think that the use case is common enough to warrant a
"factory", a default selector is fine.

--

___
Python tracker 

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



[issue19738] pytime.c loses precision under Windows

2013-11-23 Thread Tim Peters

Tim Peters added the comment:

I agree overall with Martin, although time.time() could be made a little better 
on Windows by getting the Windows time directly (instead of "needlessly" losing 
info by going thru pygettimeofday).

--

___
Python tracker 

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



[issue19738] pytime.c loses precision under Windows

2013-11-23 Thread Martin v . Löwis

Martin v. Löwis added the comment:

I think this issue can be resolved by reducing the loss to the maximum 
available precision; it's about time.time(), after all.

I don't think pygettimeofday can change; gettimeofday traditionally has only 
µs. So the issue really is that it is used in implementing time.time().

As for whether an integer-returning current-time function in Python is needed: 
-1 (but then, I voiced the same concern when the ns-filestamp APIs where 
added). Adding an API will "force" people to rewrite their code, with no real 
improvement for practical improvement. The "force" comes from the mere 
availability of the API, and any emerging claims that using the time_ns() 
function is "more correct".

I really wish Python would have a 128-bit floating point type that could be 
used to represent a time stamp. Until such a type is available (perhaps in 
2025), I propose that we live with limitations of 64-bit floating point. 
Anybody *really* needing the Windows system time can use ctypes (or pywin32) 
already.

--

___
Python tracker 

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



[issue19740] test_asyncio problems on 32-bit Windows

2013-11-23 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +sbt

___
Python tracker 

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



[issue19740] test_asyncio problems on 32-bit Windows

2013-11-23 Thread Tim Peters

New submission from Tim Peters:

With current default branch, test_asyncio always fails on my 32-bit Windows 
Vista box, in test_wait_for_handle:

test test_asyncio failed -- Traceback (most recent call last):
  File "C:\Code\Python\lib\test\test_asyncio\test_windows_events.py", line 122, 
in test_wait_for_handle
self.assertTrue(f.result())
AssertionError: False is not true

If I comment out that line, the rest of the test passes.

There's also a pile of annoying warnings:

C:\Code\Python\lib\test\test_asyncio\test_events.py:195: ResourceWarning: 
unclosed 
  gc.collect()
C:\Code\Python\lib\test\test_asyncio\test_events.py:195: ResourceWarning: 
unclosed 
  gc.collect()
C:\Code\Python\lib\test\test_asyncio\test_events.py:195: ResourceWarning: 
unclosed 
  gc.collect()
C:\Code\Python\lib\test\test_asyncio\test_events.py:195: ResourceWarning: 
unclosed 
  gc.collect()
C:\Code\Python\lib\test\test_asyncio\test_events.py:195: ResourceWarning: 
unclosed 
  gc.collect()
C:\Code\Python\lib\test\test_asyncio\test_events.py:195: ResourceWarning: 
unclosed 
  gc.collect()
C:\Code\Python\lib\test\test_asyncio\test_events.py:195: ResourceWarning: 
unclosed 
  gc.collect()
C:\Code\Python\lib\unittest\case.py:571: ResourceWarning: unclosed 

  testMethod()

--
assignee: gvanrossum
messages: 204116
nosy: gvanrossum, tim.peters
priority: normal
severity: normal
status: open
title: test_asyncio problems on 32-bit Windows
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



[issue19730] Clinic fixes: add converters with length, version directive, "self converter"

2013-11-23 Thread Larry Hastings

Larry Hastings added the comment:

Attached is a fresh patch.  I added a third new feature: the "self converter", 
which allows you to change the type of (or rename) self.  For an example of its 
use, check out dbm.dbm.get in Modules/_dbmmodule.c.

--
title: Clinic fixes: add converters with length, version directive -> Clinic 
fixes: add converters with length, version directive, "self converter"
Added file: 
http://bugs.python.org/file32814/larry.misc.clinic.fixes.diff.3.patch

___
Python tracker 

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



[issue19738] pytime.c loses precision under Windows

2013-11-23 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Perhaps we need a time_ns() method? (returning an integer timestamp in 
nanoseconds)

--

___
Python tracker 

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



[issue19736] posixmodule.c: Add flags for statvfs.f_flag to constant list

2013-11-23 Thread Christian Heimes

Christian Heimes added the comment:

LGTM

The patch has no doc updates, though.

--
nosy: +christian.heimes

___
Python tracker 

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



[issue19722] Expose stack effect calculator to Python

2013-11-23 Thread Larry Hastings

Larry Hastings added the comment:

Attached is revision 3 of the patch.  I'm gonna check it in pretty soon, so as 
to make beta (and feature freeze).  I changed the API so the oparg is optional, 
and it raises if it gets one it shouldn't have or didn't get one when it should.

--
Added file: 
http://bugs.python.org/file32813/larry.expose.stack.effect.patch.3.diff

___
Python tracker 

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



[issue19738] pytime.c loses precision under Windows

2013-11-23 Thread Tim Peters

Tim Peters added the comment:

Just noting for the record that a C double (time.time() result) isn't quite 
enough to hold a full-precision Windows time regardless:

>>> from datetime import date
>>> d = date.today() - date(1970, 1, 1)
>>> s = int(d.total_seconds())  # seconds into "the epoch"
>>> s *= 10**7  # number of 100ns into the epoch
>>> s.bit_length()
54
>>> 54 > 53  # QED ;-)
True

--

___
Python tracker 

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



[issue19735] ssl._create_stdlib_context

2013-11-23 Thread Christian Heimes

Christian Heimes added the comment:

Thanks Antoine!

--
resolution:  -> fixed
stage: patch review -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue19735] ssl._create_stdlib_context

2013-11-23 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 03cc1b55faae by Christian Heimes in branch 'default':
Issue #19735: Implement private function ssl._create_stdlib_context() to
http://hg.python.org/cpython/rev/03cc1b55faae

--
nosy: +python-dev

___
Python tracker 

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



[issue19736] posixmodule.c: Add flags for statvfs.f_flag to constant list

2013-11-23 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +loewis

___
Python tracker 

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



[issue19465] selectors: provide a helper to choose a selector using constraints

2013-11-23 Thread Antoine Pitrou

Antoine Pitrou added the comment:

I think this is more of a documentation issue. People who don't want a new fd 
can hardcode PollSelector (poll has been POSIX for a long time).

--
nosy: +pitrou

___
Python tracker 

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



[issue16203] Proposal: add re.fullmatch() method

2013-11-23 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
resolution:  -> fixed
stage: patch review -> committed/rejected

___
Python tracker 

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



  1   2   3   >