[issue19481] IDLE hangs while printing instance of Unicode subclass

2013-12-10 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Good suggestion Terry. And for unicode in 2.7 we can use 
unicode.__getslice__(s, None, None) (because there is no unicode.__unicode__).

--

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



[issue19481] IDLE hangs while printing instance of Unicode subclass

2013-12-10 Thread Roundup Robot

Roundup Robot added the comment:

New changeset df9596ca838c by Serhiy Storchaka in branch '2.7':
Issue #19481: print() of unicode, str or bytearray subclass instance in IDLE
http://hg.python.org/cpython/rev/df9596ca838c

New changeset d462b2bf875b by Serhiy Storchaka in branch '3.3':
Issue #19481: print() of string subclass instance in IDLE no more hangs.
http://hg.python.org/cpython/rev/d462b2bf875b

New changeset 1d68ea8148ce by Serhiy Storchaka in branch 'default':
Issue #19481: print() of string subclass instance in IDLE no more hangs.
http://hg.python.org/cpython/rev/1d68ea8148ce

--
nosy: +python-dev

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



[issue19928] Implement cell repr test

2013-12-10 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d98c5806c33c by Serhiy Storchaka in branch '2.7':
Issue #19928: Implemented a test for repr() of cell objects.
http://hg.python.org/cpython/rev/d98c5806c33c

New changeset 49eb895be796 by Serhiy Storchaka in branch '3.3':
Issue #19928: Implemented a test for repr() of cell objects.
http://hg.python.org/cpython/rev/49eb895be796

New changeset af9f3d737d4a by Serhiy Storchaka in branch 'default':
Issue #19928: Implemented a test for repr() of cell objects.
http://hg.python.org/cpython/rev/af9f3d737d4a

--
nosy: +python-dev

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



[issue19928] Implement cell repr test

2013-12-10 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


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

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



[issue19481] IDLE hangs while printing instance of Unicode subclass

2013-12-10 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


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

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



[issue19939] Deprecate portions or all of pkgutil module.

2013-12-10 Thread Nick Coghlan

Nick Coghlan added the comment:

Programmatic deprecation definitely isn't worth it - setuptools et al need this 
for cross-version compatibility with 2.x, and packaging tools are hard enough 
to write without us programatically deprecating things in 3.x releases.

Explicit documented deprecations where appropriate would be good, though.

--

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



[issue19717] resolve() fails when the path doesn't exist

2013-12-10 Thread Vajrasky Kok

Vajrasky Kok added the comment:

Thanks for the review, Antoine! Here is the updated patch. I haven't tested it 
on Windows yet because I want to clarify one thing.

Let's say we have this valid directory:

/tmp/@test123 = directory

And this directory only has one valid file:

/tmp/@test123/cutecat = file

We agree that pathlib.Path('/tmp/@test123/foo').resolve(False) = 
'/tmp/@test123/foo'.

But what about this case: 
pathlib.Path('/tmp/@test123/cutecat/foo').resolve(False)?

It should be /tmp/@test123/cutecat or /tmp/@test123/cutecat/foo?

--
Added file: 
http://bugs.python.org/file33075/add_non_strict_resolve_pathlib_v2.patch

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



[issue19914] help([object]) returns Not enough memory. on standard Python types, object and object functions

2013-12-10 Thread Mark Lawrence

Mark Lawrence added the comment:

I can confirm that code page 65001 is the problem using 3.3.3 on Windows 7.

--
nosy: +BreamoreBoy

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



[issue18996] unittest: more helpful truncating long strings

2013-12-10 Thread Vajrasky Kok

Vajrasky Kok added the comment:

Hello, Serhiy. Do you want to remove this debug messaging?

--

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



[issue19914] help([object]) returns Not enough memory. on standard Python types, object and object functions

2013-12-10 Thread STINNER Victor

STINNER Victor added the comment:

It looks like the issue comes from the more system command, used as a pager 
for the documentation. When the OEM code page is set to 65001 (ex: type chcp 
65001 in a Windows console), more document.txt does nothing (display nothing 
and exit).

Try commamands:
---
more document.txt
# works fine
chcp 65001
more document.txt
# no output
---

It might be related to this:
http://stackoverflow.com/questions/3401802/codepage-850-works-65001-fails-there-is-no-response-to-call-foo-cmd-interna

--

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



[issue19846] Python 3 raises Unicode errors with the C locale

2013-12-10 Thread STINNER Victor

STINNER Victor added the comment:

2013/12/10 Martin v. Löwis rep...@bugs.python.org:
 From what I read, it appears that the SO posting is plain wrong. Consider, 
 for example,

 https://developer.gnome.org/glib/stable/glib-Character-Set-Conversion.html#g-filename-to-utf8

 # Converts a string which is in the encoding used by GLib for filenames
 # into a UTF-8 string. Note that on Windows GLib uses UTF-8 for filenames;
 # on other platforms, this function indirectly depends on the current locale.

 The SO author might have misread the part where it says that glib uses UTF-8 
 *on Windows* (instead of the braindead ANSI encoding indirection).

I wrote some notes about glib here:
http://unicodebook.readthedocs.org/en/latest/libraries.html#the-glib-library

g_filename_from_utf8() uses the g_get_filename_charsets() encoding.
g_get_filename_charsets() is the ANSI code page on Windows and the
locale encoding on Linux, except if G_FILENAME_ENCODING or
G_BROKEN_FILENAMES environment variables are set.

glib has a nice g_filename_display_name() function.

--

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



[issue19017] selectors: towards uniform EBADF handling

2013-12-10 Thread STINNER Victor

STINNER Victor added the comment:

What is the status of this issue?

--

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



[issue19017] selectors: towards uniform EBADF handling

2013-12-10 Thread STINNER Victor

STINNER Victor added the comment:

The issue #19876 has been closed.

--

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



[issue19407] PEP 453: update the Installing Python Modules documentation

2013-12-10 Thread Nick Coghlan

Nick Coghlan added the comment:

After reviewing the Extending  Embedding docs recently, I think a 
disclaimer/redirect to the tool recommendations in the Python Packaging User 
Guide is appropriate there as well.

Marcus also added an issue to update the distutils docs themselves: 
https://bitbucket.org/pypa/python-packaging-user-guide/issue/29/modernize-distutils-docs

(The user guide tracker is currently serving as a metatracker for docs issues 
for all the core tools)

--
priority: deferred blocker - release blocker

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



[issue19941] python -m imports non-ASCII .py file without encoding declaration

2013-12-10 Thread Jakub Wilk

New submission from Jakub Wilk:

If you have a non-ASCII .py file without encoding declaration, then you can't 
normally import it:

$ python --version
Python 2.7.6

$ python -c 'import test'
Traceback (most recent call last):
  File string, line 1, in module
  File test.py, line 1
SyntaxError: Non-ASCII character '\xc2' in file test.py on line 1, but no 
encoding declared; see http://www.python.org/peps/pep-0263.html for details


However, python -m happily imports such files:

$ python -m test
¡Hello world!

--
files: test.py
messages: 205787
nosy: jwilk
priority: normal
severity: normal
status: open
title: python -m imports non-ASCII .py file without encoding declaration
versions: Python 2.7
Added file: http://bugs.python.org/file33076/test.py

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



[issue19941] python -m imports non-ASCII .py file without encoding declaration

2013-12-10 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@gmail.com:


--
nosy: +brett.cannon, haypo

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



[issue17762] platform.linux_distribution() should honor /etc/os-release

2013-12-10 Thread Jakub Wilk

Changes by Jakub Wilk jw...@jwilk.net:


--
nosy: +jwilk

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



[issue19907] gettext - Non ascii chars in header

2013-12-10 Thread Jakub Wilk

Jakub Wilk added the comment:

See also issue18128.
Date headers are not only for humans; I've seen software that parses them.

--
nosy: +jwilk

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



[issue19783] No SSL match_hostname() in nntplib

2013-12-10 Thread Jakub Wilk

Changes by Jakub Wilk jw...@jwilk.net:


--
nosy: +jwilk

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



[issue19407] PEP 453: update the Installing Python Modules documentation

2013-12-10 Thread Roundup Robot

Roundup Robot added the comment:

New changeset a9f91a38a265 by Nick Coghlan in branch '2.7':
Issue #19407: add Python Packaging User Guide notes
http://hg.python.org/cpython/rev/a9f91a38a265

--
nosy: +python-dev

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



[issue19693] make altinstall make install behaviour differs from make install

2013-12-10 Thread Donald Stufft

Donald Stufft added the comment:

Making this happen is a non trivial change to pip. Is this *required* for 
PEP453?

The problem is the pip dependency is already being seen as fulfilled so it's 
not reinstalling pip again with the new options picked. Likely the actual 
answer is a command in pip to regenerate the scripts but that will require some 
engineering.

--

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



[issue19728] PEP 453: enable pip by default in the Windows binary installers

2013-12-10 Thread Donald Stufft

Donald Stufft added the comment:

Is there anything left in this ticket to be done?

--

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



[issue19407] PEP 453: update the Installing Python Modules documentation

2013-12-10 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 16b7536e418b by Nick Coghlan in branch '3.3':
Issue #19407: add Python Packaging User Guide notes
http://hg.python.org/cpython/rev/16b7536e418b

New changeset bc21da9727ad by Nick Coghlan in branch 'default':
Issue #19407: merge PPUG notes from 3.3
http://hg.python.org/cpython/rev/bc21da9727ad

--

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



[issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie)

2013-12-10 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is updated patch. There is no more overhead in PyLong_As* functions. 
Simplified PyNumber_Index(). assertWarns() now used instead of 
support.check_warnings(). Added new tests.

--
Added file: http://bugs.python.org/file33077/issue17576_v3.patch

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



[issue19693] make altinstall make install behaviour differs from make install

2013-12-10 Thread Nick Coghlan

Nick Coghlan added the comment:

Fixing in pip 1.6/CPython 3.4.1 would be fine by me - that's why I only created 
it as high rather than release blocker

--

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



[issue19942] UTF-8 encoding not enforced

2013-12-10 Thread Jakub Wilk

New submission from Jakub Wilk:

I created a Python file which contained a non-UTF-8 string literal (but no 
Unicode literals), and added UTF-8 encoding declaration to it. I expected 
that Python will raise SyntaxError when importing such module, but it doesn't:

$ python --version
Python 2.7.6

$ python -c 'import test1'  echo ok
ok


Curiously enough, if I change the declaration to UTF8, then the exception is 
raised as expected:

$ sed -e 's/UTF-8/UTF8/'  test1.py  test2.py
$ python -c 'import test2'
Traceback (most recent call last):
  File string, line 1, in module
  File test2.py, line 2
SyntaxError: 'utf8' codec can't decode byte 0xa1 in position 5: invalid start 
byte

--
messages: 205795
nosy: jwilk
priority: normal
severity: normal
status: open
title: UTF-8 encoding not enforced
versions: Python 2.7

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



[issue19942] UTF-8 encoding not enforced

2013-12-10 Thread Jakub Wilk

Changes by Jakub Wilk jw...@jwilk.net:


Added file: http://bugs.python.org/file33078/test1.py

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



[issue19728] PEP 453: enable pip by default in the Windows binary installers

2013-12-10 Thread Nick Coghlan

Nick Coghlan added the comment:

Yes, it still needs to be integrated into the installer and the default state 
of the feature changed.

I expect MvL will look into that before creating the beta 2 installer.

Bumping the priority accordingly, though (I originally set it to high when we 
weren't sure if we were going to fix it for 3.4)

--
nosy: +larry
priority: high - release blocker

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



[issue19942] UTF-8 encoding not enforced

2013-12-10 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
components: +Unicode
nosy: +ezio.melotti, haypo
type:  - behavior

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



[issue18996] unittest: more helpful truncating long strings

2013-12-10 Thread Roundup Robot

Roundup Robot added the comment:

New changeset a0c687dc0039 by Serhiy Storchaka in branch 'default':
Remove commented out debugging code (remnants of issue #18996).
http://hg.python.org/cpython/rev/a0c687dc0039

--

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



[issue18996] unittest: more helpful truncating long strings

2013-12-10 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Oh, thank you Vajrasky.

--

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



[issue19941] python -m imports non-ASCII .py file without encoding declaration

2013-12-10 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
nosy: +loewis, serhiy.storchaka
type:  - behavior

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



[issue19943] typo: unkown → unknown

2013-12-10 Thread Jakub Wilk

New submission from Jakub Wilk:

There's a typo in Lib/lib2to3/fixes/fix_import.py:
unkown → unknown

--
components: Library (Lib)
messages: 205799
nosy: jwilk
priority: normal
severity: normal
status: open
title: typo: unkown → unknown

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



[issue19942] UTF-8 encoding not enforced

2013-12-10 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
nosy: +loewis, serhiy.storchaka

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



[issue19940] ssl.cert_time_to_seconds() returns wrong results if local timezone is not UTC

2013-12-10 Thread Tim Golden

Changes by Tim Golden m...@timgolden.me.uk:


--
versions:  -Python 2.6, Python 3.1, Python 3.2

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



[issue19943] typo: unkown → unknown

2013-12-10 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b96a6493cecf by Ezio Melotti in branch '2.7':
#19943: fix typo noticed by Jakub Wilk.
http://hg.python.org/cpython/rev/b96a6493cecf

New changeset 9f38bbd4e041 by Ezio Melotti in branch '3.3':
#19943: fix typo noticed by Jakub Wilk.
http://hg.python.org/cpython/rev/9f38bbd4e041

New changeset a3bdbe220f8a by Ezio Melotti in branch 'default':
#19943: merge with 3.3.
http://hg.python.org/cpython/rev/a3bdbe220f8a

--
nosy: +python-dev

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



[issue19943] typo: unkown → unknown

2013-12-10 Thread Ezio Melotti

Ezio Melotti added the comment:

Fixed, thanks for the report!

--
assignee:  - ezio.melotti
nosy: +ezio.melotti
resolution:  - fixed
stage:  - committed/rejected
type:  - enhancement
versions: +Python 2.7, Python 3.3, Python 3.4

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



[issue12029] Catching virtual subclasses in except clauses

2013-12-10 Thread Jakub Wilk

Changes by Jakub Wilk jw...@jwilk.net:


--
nosy: +jwilk

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



[issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie)

2013-12-10 Thread Nick Coghlan

Nick Coghlan added the comment:

Took me a while to figure out that one of the code paths was being deleted as 
redundant because the type machinery will always fill in nb_int for int 
subclasses, but Serhiy's patch looks good to me.

--
assignee: mark.dickinson - serhiy.storchaka

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



[issue19940] ssl.cert_time_to_seconds() returns wrong results if local timezone is not UTC

2013-12-10 Thread gudge

gudge added the comment:

Will work on this.
Please assign the issue to me.

Instructions before proceeding by Tim Golden(python mailing list):

Having just glanced at that issue, I would point out that there's been a
lot of development around the ssl module for the 3.4 release, so you
definitely want to confirm the issue against the hg tip to ensure it
still applies.

--
nosy: +gudge

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



[issue5996] abstract class instantiable when subclassing dict

2013-12-10 Thread Jakub Wilk

Changes by Jakub Wilk jw...@jwilk.net:


--
nosy: +jwilk

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



[issue19944] Make importlib.find_spec load packages as needed

2013-12-10 Thread Nick Coghlan

New submission from Nick Coghlan:

In implementing the runpy module updates for PEP 451 I ran into the fact that 
importlib.find_spec had copied the find_loader behaviour where it doesn't 
handle dotted names automatically - you have to explicitly pass in the __path__ 
from the parent module for it to work.

For find_loader, runpy used pkgutil.get_loader instead. The patch on issue 
19700 currently includes a runpy._fixed_find_spec function that handles walking 
the module name components, loading packages as necessary.

I believe it would be better to move the current thin wrapper around 
importlib._bootstrap._find_spec to importlib.find_spec_on_path (which will only 
search for the specified module name directly on the given path without 
breaking it up into components), with find_spec itself changed to *not* take a 
path argument, and instead always doing the full lookup (as implemented in 
the issue 19700 patch _fixed_find_spec function)

--
components: Library (Lib)
messages: 205804
nosy: ncoghlan
priority: normal
severity: normal
status: open
title: Make importlib.find_spec load packages as needed
versions: Python 3.4

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



[issue16104] Use multiprocessing in compileall script

2013-12-10 Thread Claudiu.Popa

Claudiu.Popa added the comment:

Hello!

Here's a draft patch. It adds a new *processes* parameter to *compile_dir* and 
a new command line parameter as well.

--
keywords: +patch
nosy: +Claudiu.Popa
Added file: http://bugs.python.org/file33079/compileall_v1.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16104
___
___
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-12-10 Thread Nick Coghlan

Nick Coghlan added the comment:

Issue 19944 now covers moving the current importlib.find_spec to 
importlib.find_spec_on_path and having importlib.find_spec behave like 
runpy._fixed_find_spec in my patch.

--

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



[issue15963] Improve ./configure's support for 32/64-bit debug|release|profiled builds w/ vendor (non-gcc) compilers on proprietary UNIX systems (Solaris/HP-UX/AIX et al).

2013-12-10 Thread Stefan Krah

Stefan Krah added the comment:

Trent, did the HPUX CFLAGS/LDFLAGS change on the buildbots?  I think
_decimal used to compile on the PA-RISC bot, but now there is an error.

Perhaps -AC99 or something like that is missing.

--

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



[issue19945] os.path.split starting with two slashes

2013-12-10 Thread Toilal

New submission from Toilal:

Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on 
win32
Type help, copyright, credits or license for more information.
 from os.path import split
 split('//computer/share')
('//computer', 'share')


Python 3.3.3 (v3.3.3:c3896275c0f6, Nov 18 2013, 21:18:40) [MSC v.1600 32 bit 
(Intel)] on win32
Type help, copyright, credits or license for more information.
 from os.path import split
 split('//computer/share')
('//computer/share', '')

Result from 2.7.6 and 3.3.3 is different. Is it a bugfix from 2.7.6 to 3.3.3, 
or a regression in 3.3.3 ?

Same issue occurs with backslashes.

--
components: Library (Lib)
messages: 205808
nosy: Toilal
priority: normal
severity: normal
status: open
title: os.path.split starting with two slashes
type: behavior
versions: Python 3.3

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



[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2013-12-10 Thread Martin Miller

Martin Miller added the comment:

Answering Serhiy Storchaka's question: Yes it's still reproducible with 2.7.6.

--
nosy: +martinmiller

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



[issue19946] multiprocessing crash with forkserver or spawn when run from a non .py ending script

2013-12-10 Thread Olivier Grisel

New submission from Olivier Grisel:

Here is a simple python program that uses the new forkserver feature introduced 
in 3.4b1:


name: checkforkserver.py

import multiprocessing
import os


def do(i):
print(i, os.getpid())


def test_forkserver():
mp = multiprocessing.get_context('forkserver')
mp.Pool(2).map(do, range(3))


if __name__ == __main__:
test_forkserver()


When running this using the python check_forkserver.py command everything 
works as expected.

When running this using the nosetests launcher (nosetests -s 
check_forkserver.py), I get:


Traceback (most recent call last):
  File string, line 1, in module
  File /opt/Python-HEAD/lib/python3.4/multiprocessing/forkserver.py, line 
141, in main
spawn.import_main_path(main_path)
  File /opt/Python-HEAD/lib/python3.4/multiprocessing/spawn.py, line 252, in 
import_main_path
methods.init_module_attrs(main_module)
  File frozen importlib._bootstrap, line 1051, in init_module_attrs
AttributeError: 'NoneType' object has no attribute 'loader'


Indeed, the spec variable in multiprocessing/spawn.py's import_main_path
function is None as the nosetests script is not a regular python module: in 
particular is does not have a .py extension.

If I copy or symlink or renamed the nosetests script as nosetests.py in the 
same folder, this works as expected. I am not familiar enough with the 
importlib machinery to suggest a fix for this bug.

Also there is a typo in the comment: causing a psuedo fork bomb = causing a 
pseudo fork bomb.

Note: I am running CPython head updated today.

--
components: Library (Lib)
messages: 205810
nosy: Olivier.Grisel
priority: normal
severity: normal
status: open
title: multiprocessing crash with forkserver  or spawn  when run from a non 
.py ending script
versions: Python 3.4

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



[issue19946] multiprocessing crash with forkserver or spawn when run from a non .py ending script

2013-12-10 Thread Olivier Grisel

Changes by Olivier Grisel olivier.gri...@ensta.org:


--
type:  - crash

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



[issue19828] test_site fails with -S flag

2013-12-10 Thread Zachary Ware

Zachary Ware added the comment:

The real issue here is that the test used to determine whether -S was passed or 
not is outdated: instead of checking sys.flags.no_site, it checks whether 
'site' is in sys.modules.  This is no longer a valid test, since site's side 
effects are contained within site.main, which is only run if no_site is False.  
In fact, distutils imports symbols from site unconditionally, as do a couple of 
test modules; hence why test_site currently fails running `python -S Lib/test`: 
test_distutils (and others) run before test_site and cause site to be present 
in sys.modules.

I think we should move away from a toplevel SkipTest, though; some of the tests 
may be applicable whether -S is passed or not, though of course the 
ImportSideEffectTests would not be.

--

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



[issue19945] os.path.split starting with two slashes

2013-12-10 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

ntpath.split() in 2.7 doesn't work with UNC names. This is not a bug, this is 
just a lack of feature.

Python 3 is correct.

--
nosy: +serhiy.storchaka

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



[issue19940] ssl.cert_time_to_seconds() returns wrong results if local timezone is not UTC

2013-12-10 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
nosy: +christian.heimes, giampaolo.rodola, janssen, pitrou
versions:  -Python 2.7, Python 3.3, Python 3.5

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



[issue19940] ssl.cert_time_to_seconds() returns wrong results if local timezone is not UTC

2013-12-10 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
assignee: docs@python - 
components:  -Documentation

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



[issue19940] ssl.cert_time_to_seconds() returns wrong results if local timezone is not UTC

2013-12-10 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Indeed the example in the docs is wrong, and so is the current behaviour.

The example shows round-tripping using ssl.cert_time_to_seconds() and then 
time.ctime(), except that it is bogus as it takes a GMT time and ctime() 
returns a local time (Convert a time expressed in seconds since the epoch to 
a string representing local time).

Still, we should only fix it in 3.4, as code written for prior versions may 
rely on the current (bogus) behaviour.

--
stage:  - needs patch

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



[issue19766] test_venv: test_with_pip() failed on AMD64 Fedora without threads 3.x buildbot: urllib3 dependency requires the threading module

2013-12-10 Thread Donald Stufft

Donald Stufft added the comment:

Vinay, I've verified that the current default branch of distlib works without 
threading when vendored in pip and these tests pass.

--

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



[issue18885] handle EINTR in the stdlib

2013-12-10 Thread Yongzhi Pan

Changes by Yongzhi Pan fossi...@users.sourceforge.net:


--
nosy: +fossilet

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



[issue19940] ssl.cert_time_to_seconds() returns wrong results if local timezone is not UTC

2013-12-10 Thread Antoine Pitrou

Antoine Pitrou added the comment:

gudge, your contribution is welcome! If you need guidance about how to write a 
patch, you can read the developer's guide: http://docs.python.org/devguide/

Also you will have to sign a contributor's agreement: 
http://www.python.org/psf/contrib/

--

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



[issue19946] multiprocessing crash with forkserver or spawn when run from a non .py ending script

2013-12-10 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@gmail.com:


--
nosy: +pitrou, sbt

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



[issue19945] os.path.split starting with two slashes

2013-12-10 Thread Toilal

Changes by Toilal toilal@gmail.com:


--
resolution:  - remind
status: open - closed

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



[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2013-12-10 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

What are values of Tkinter.wantobjects, Tkinter._support_default_root, 
Tkinter._default_root, Tkinter._default_root.wantobjects()? Before and after 
calling tkFileDialog.askopenfilenames().

--

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



[issue19945] os.path.split starting with two slashes

2013-12-10 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
resolution: remind - invalid
stage:  - committed/rejected

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



[issue19744] test_venv fails if SSL/TLS is not available

2013-12-10 Thread Donald Stufft

Donald Stufft added the comment:

Can this be solved in ensurepip for now? I've been banging away at this but 
it's going to require some refactoring in pip to make it reasonably work. The 
move to distlib and requests made this harder to do than the old PR against pip 
could handle.

--

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



[issue19947] Inspect module broken

2013-12-10 Thread Jimmy Merrild Krag

New submission from Jimmy Merrild Krag:

I have been having issues like the below all day:

C:\JMK\CurrentWork\CPH-3516python airport_code_downloader.py
Traceback (most recent call last):
  File airport_code_downloader.py, line 4, in module
import inspect
  File C:\Python33\lib\inspect.py, line 53, in module
from dis import COMPILER_FLAG_NAMES as _flag_names
  File C:\Python33\lib\dis.py, line 13, in module
_have_code = (types.MethodType, types.FunctionType, types.CodeType, type)
AttributeError: 'module' object has no attribute 'MethodType'

C:\JMK\CurrentWork\CPH-3516

It seems to be a problem with the types module. All the types seem non-existing.

--
messages: 205818
nosy: beruic
priority: normal
severity: normal
status: open
title: Inspect module broken
versions: Python 3.3

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



[issue19948] POSIX semantics of PATH search in execvpe is not respected

2013-12-10 Thread Stéphane Glondu

New submission from Stéphane Glondu:

Hello,

According to [1],

In the cases where the other members of the exec family of functions would 
fail and set errno to [ENOEXEC], the execlp() and execvp() functions shall 
execute a command interpreter and the environment of the executed command shall 
be as if the process invoked the sh utility using execl() as follows:

execl(shell path, arg0, file, arg1, ..., (char *)0);

This is not the case with os.execvp which keeps looking in PATH for other 
executables. To reproduce:

 1. pick some executable that exists in /usr/bin (let's say curl)
 2. prepend to PATH a directory where you put an executable file with name 
curl and some random shell commands, without the #! line
 3. run os.execvp(curl, [curl])

Instead of running the #!-less shell script, /usr/bin/curl is executed. With 
GNU libc's execvp(), the shell script is executed. According to my 
interpretation of POSIX, the shell script should be executed.

[1] 
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_09_01_01

Cheers,

-- 
Stéphane

--
components: Library (Lib)
messages: 205819
nosy: glondu
priority: normal
severity: normal
status: open
title: POSIX semantics of PATH search in execvpe is not respected
type: behavior
versions: Python 2.7

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



[issue19941] python -m imports non-ASCII .py file without encoding declaration

2013-12-10 Thread R. David Murray

R. David Murray added the comment:

Well, we aren't going to change 2.7 to have this case start throwing an error, 
since someone may be depending on it.  So I'm not sure there's anything to do 
here.

--
nosy: +ncoghlan, r.david.murray

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



[issue18864] Implementation for PEP 451 (importlib.machinery.ModuleSpec)

2013-12-10 Thread Brett Cannon

Brett Cannon added the comment:

LGTM

--

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



[issue19932] Missing spaces in import.h?

2013-12-10 Thread Brett Cannon

Brett Cannon added the comment:

So it sounds like this specific issue is fixed. If you keep having build 
issues, Ziyuan, feel free to open another issue with the new problems.

--
resolution:  - fixed
status: open - closed

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



[issue19939] Deprecate portions or all of pkgutil module.

2013-12-10 Thread Brett Cannon

Brett Cannon added the comment:

I think programmatic deprecation is actually fine since that only comes up when 
running under -W which would be a bit odd for any tool to be run under except 
when testing. E.g. I had no personal issue deprecating imp for Python 3.4 even 
though that's the only way to do 2/3 programmatic import craziness as its use 
should be discouraged as much as possible since it's now fundamentally the 
wrong paradigm. And the tools can simply silence the deprecation if they 
actually find it noisy.

I do agree it should just be a PendingDeprecationWarning and not expect to 
remove it until either Python 4 or when the community has heavily shifted to 
Python 3. But when there are semantic replacements I think not doing a 
programmatic deprecation with warnings off by default is a disservice.

--

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



[issue19941] python -m imports non-ASCII .py file without encoding declaration

2013-12-10 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

There are several bugs in processing encoding declaration (issue18961, 
issue18873) and yet several were fixed last time. Perhaps this issue or 
issue19942 relate to them.

--

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



[issue19947] Inspect module broken

2013-12-10 Thread Zachary Ware

Zachary Ware added the comment:

I suspect you may have a file shadowing the standard library's types.py; you 
can test with the following command:

python -c import types;print(types.__file__)

If the output from that is not C:\Python33\lib\types.py, then you have 
another file shadowing it, which would best be renamed.

--
nosy: +zach.ware
status: open - pending

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



[issue19944] Make importlib.find_spec load packages as needed

2013-12-10 Thread Brett Cannon

Brett Cannon added the comment:

Another option would be to add a keyword-only use_parent_path flag to 
importlib.find_spec() which is True by default. If use_parent is True, 'path' 
is provided, and there is no parent, then 'path' can act as a fallback.

Which makes me wonder if also adding a keyword-only import_parents keyword to 
implicitly import any parent packages as necessary would be helpful. It would 
imply use_parent_path as true. Might also be useful to add to import_module() 
to get rid of that annoyance inherited from __import__.

--
nosy: +brett.cannon

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



[issue19942] UTF-8 encoding not enforced

2013-12-10 Thread Benjamin Peterson

Benjamin Peterson added the comment:

Yes, this is a silly bug where we shortcut decoding of utf-8 files by not 
checking if its valid UTF-8. However, this behavior has been around for a long 
time, so I'm not going to change it in 2.7.x.

--
nosy: +benjamin.peterson
resolution:  - wont fix
status: open - closed

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



[issue19947] Inspect module broken

2013-12-10 Thread Jimmy Merrild Krag

Jimmy Merrild Krag added the comment:

Just figured that out my self. Holy mother of ¤%#%/! I'm stupid!

--
resolution:  - rejected
status: pending - closed

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



[issue19948] POSIX semantics of PATH search in execvpe is not respected

2013-12-10 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
nosy: +r.david.murray

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



[issue19947] Inspect module broken

2013-12-10 Thread Zachary Ware

Zachary Ware added the comment:

People are bitten by this kind of thing all the time, but usually only once ;)

--
resolution: rejected - invalid

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



[issue12029] Catching virtual subclasses in except clauses

2013-12-10 Thread Guido van Rossum

Guido van Rossum added the comment:

I remembered we already run arbitrary code at roughly this point in the eval 
loop, as we have to invoke __iter__ to get the exceptions to check when an 
iterable is used in except clause.

Are you sure?  IIRC the except clause only accept exceptions and tuples of 
exceptions, not iterators.

--

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



[issue19946] multiprocessing crash with forkserver or spawn when run from a non .py ending script

2013-12-10 Thread Antoine Pitrou

Antoine Pitrou added the comment:

This sounds related to the ModuleSpec changes.

--
nosy: +brett.cannon, eric.snow, ncoghlan

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



[issue19946] multiprocessing crash with forkserver or spawn when run from a non .py ending script

2013-12-10 Thread Brett Cannon

Brett Cannon added the comment:

The returning of None means that importlib.find_spec() didn't find the 
spec/loader for the specified module. So the question is exactly what module is 
being passed to importlib.find_spec() and why isn't it finding a spec/loader 
for that module.

Did this code work in Python 3.3?

--

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



[issue19946] multiprocessing crash with forkserver or spawn when run from a non .py ending script

2013-12-10 Thread Brett Cannon

Brett Cannon added the comment:

I see Oliver says he is testing a new forkserver feature from 3.4b1, so it 
might not necessarily be importlib's fault then. Does using the old 
importlib.find_loader() approach work?

--

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



[issue19878] bz2.BZ2File.__init__() cannot be called twice with non-existent file

2013-12-10 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 3337298f5c75 by Nadeem Vawda in branch '2.7':
Skip test for #19878 on Windows.
http://hg.python.org/cpython/rev/3337298f5c75

--

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



[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express

2013-12-10 Thread Justin Foo

Justin Foo added the comment:

The speedups extension for MarkupSafe (which has a pure Python fallback) on 
Python 3.3.3 64-bit was happily compiled with `pip install markupsafe` after 
applying Steve's patch and Li Wah's definition for KEY_BASE.

--
nosy: +jfoo

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



[issue19572] Report more silently skipped tests as skipped

2013-12-10 Thread Zachary Ware

Zachary Ware added the comment:

Here's a new 2.7 patch.  It addresses Serhiy's review comments and doesn't 
change test_xpickle, which I will be opening a new issue for.

--
Added file: 
http://bugs.python.org/file33080/skiptest_not_return_or_pass.v5-2.7.diff

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



[issue19949] Explicitly skip or mask skipped/disabled tests in test_xpickle

2013-12-10 Thread Zachary Ware

New submission from Zachary Ware:

The attached patch moves test_xpickle away from using alternately defined empty 
TestCases to skip the backward compatibility tests to using a skip decorator.  
Also, several disabled tests are moved from defining empty tests to setting the 
test name to None.  Also, the have_python_version function's test has its 
quotes swapped between ' and ; this made it possible to test the changes on 
Windows.

--
components: Tests
files: test_xpickle_cleanup.diff
keywords: patch
messages: 205837
nosy: zach.ware
priority: normal
severity: normal
stage: patch review
status: open
title: Explicitly skip or mask skipped/disabled tests in test_xpickle
versions: Python 2.7
Added file: http://bugs.python.org/file33081/test_xpickle_cleanup.diff

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



[issue19572] Report more silently skipped tests as skipped

2013-12-10 Thread Zachary Ware

Zachary Ware added the comment:

I missed the comments on test_bsddb; I'll either post a new patch here or open 
a new issue depending on how big that diff becomes.

--

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



[issue19572] Report more silently skipped tests as skipped

2013-12-10 Thread Zachary Ware

Zachary Ware added the comment:

This patch includes Serhiy's suggestions.  Oops!

--
Added file: 
http://bugs.python.org/file33082/skiptest_not_return_or_pass.v6-2.7.diff

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



[issue18874] Add a new tracemalloc module to trace memory allocations

2013-12-10 Thread Jesús Cea Avión

Changes by Jesús Cea Avión j...@jcea.es:


--
nosy: +jcea

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



[issue19818] tracemalloc: comments on the doc

2013-12-10 Thread Jesús Cea Avión

Changes by Jesús Cea Avión j...@jcea.es:


--
nosy: +jcea

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



[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2013-12-10 Thread Martin Miller

Martin Miller added the comment:

Requested information:

Before  
Tkinter.wantobjects: 1  
Tkinter._support_default_root: 1
Tkinter._default_root: None 
Tkinter._default_root has no attribute 'wantobjects'

After   
Tkinter.wantobjects: 1  
Tkinter._support_default_root: 1
Tkinter._default_root: .
Tkinter._default_root.wantobjects(): True

--
Added file: http://bugs.python.org/file33083/python_issue_5712.py

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



[issue504219] locale.resetlocale is broken

2013-12-10 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 3.3, Python 3.4 -Python 3.1, Python 3.2

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



[issue16595] Add resource.prlimit

2013-12-10 Thread Giampaolo Rodola'

Giampaolo Rodola' added the comment:

Just received this report on psutil bug tracker:
https://code.google.com/p/psutil/issues/detail?id=455
It seems os.prlimit() is affected by the same problem:

 import resource
 resource.RLIM_INFINITY
-1


--
resolution: fixed - 
status: closed - open

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



[issue16595] Add resource.prlimit

2013-12-10 Thread Giampaolo Rodola'

Giampaolo Rodola' added the comment:

s/os.prlimit/resource.prlimit

--

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



[issue16595] Add resource.prlimit

2013-12-10 Thread Antoine Pitrou

Antoine Pitrou added the comment:

How is that a problem? In any case, this shouldn't have anything to do with 
prlimit(), please open another issue.

--
resolution:  - fixed
status: open - closed

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



[issue19572] Report more silently skipped tests as skipped

2013-12-10 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

$ ./python -3 -m test.regrtest test_builtin
test_builtin
test test_builtin crashed -- type 'exceptions.AssertionError': filter ('.+ is 
renamed to imp.reload', DeprecationWarning) did not catch any warning
1 test failed:
test_builtin

Rest of the skiptest_not_return_or_pass.v6-2.7.diff patch LGTM.

--

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



[issue19661] AIX: Python: RuntimeError invalid slot offset when importing a module in _ssl module

2013-12-10 Thread dellair jie

dellair jie added the comment:

Folks,

I am closing this bug as it seems to be fixed with a with a redownload of 
original package.

Thanks for sharing the ideas.

Br,
Li

--
resolution:  - fixed
status: open - closed

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



[issue19943] typo: unkown → unknown

2013-12-10 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
status: open - closed

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



[issue19100] Use backslashreplace in pprint

2013-12-10 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

In new patch wrapping stream is moved to PrettyPrinter constructor.

--
Added file: http://bugs.python.org/file33084/pprint_unencodable_2.patch

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



[issue19946] multiprocessing crash with forkserver or spawn when run from a non .py ending script

2013-12-10 Thread Olivier Grisel

Olivier Grisel added the comment:

 So the question is exactly what module is being passed to 
 importlib.find_spec() and why isn't it finding a spec/loader for that module.

The module is the `nosetests` python script. module_name == 'nosetests' in this 
case. However, nosetests is not considered an importable module because of the 
missing '.py' extension in the filename.

 Did this code work in Python 3.3?

This code did not exist in Python 3.3.

--

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



[issue19846] Python 3 raises Unicode errors with the C locale

2013-12-10 Thread Toshio Kuratomi

Toshio Kuratomi added the comment:

Looking at the glib code, this looks like the SO post is closer to the truth.  
The API documentation for g_filename_to_utf8() is over-simplified to the point 
of confusion.  This section of the glib API document is closer to what the code 
is doing: 
https://developer.gnome.org/glib/stable/glib-Character-Set-Conversion.html#file-name-encodings

* When encoding matters, glib and gtk functions will assume that char*'s that 
you pass to them point to strings which are encoded in utf-8.
* When char* are not utf8 you are responsible for converting them to utf8 to be 
used by the glib functions (if encoding matters).
* glib provides g_filename_to_utf8() for the special case of transforming 
filenames into the encoding that glib expects.  (Presumably because glib and 
gtk deal with non-utf8 unicode filenames more often than the equivalent 
environment variables, command line switches, etc).
* Contrary to the API docs for g_filename_to_utf8(), g_filename_to_utf8() will 
simply return a copy of the byte string it was passed unless 
G_FILENAME_ENCODING or G_BROKEN_FILENAMES is set.  If those are set, then the 
value of G_FILENAME_ENCODING might be used to attempt to decode the filename or 
the encoding specified in the user's locale might be used.

@haypo, I'm pretty sure from reading the code for g_get_filename_charsets() 
that you have the conditionals reversed.  What I'm seeing is:

if G_FILENAME_ENCODING:
charset = the first charset listed in G_FILENAME_ENCODING
if charset == '@locale':
charset = charset of user's locale
elif G_BROKEN_FILENAMES:
charset = charset of user's locale
else:
charset = 'UTF-8'

--

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



[issue19940] ssl.cert_time_to_seconds() returns wrong results if local timezone is not UTC

2013-12-10 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' g.rod...@gmail.com:


--
nosy:  -giampaolo.rodola

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



[issue19572] Report more silently skipped tests as skipped

2013-12-10 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 423e09aedf79 by Zachary Ware in branch '2.7':
Issue #19572: More silently skipped tests explicitly skipped.
http://hg.python.org/cpython/rev/423e09aedf79

--

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



  1   2   >