[issue24270] PEP 485 (math.isclose) implementation

2015-06-01 Thread Roundup Robot

Roundup Robot added the comment:

New changeset bbb3a3129c12 by Serhiy Storchaka in branch '3.5':
Moved Misc/NEWS entry (issue #24270) to correct section.
https://hg.python.org/cpython/rev/bbb3a3129c12

New changeset ff1938d12240 by Serhiy Storchaka in branch 'default':
Moved Misc/NEWS entry (issue #24270) to correct section.
https://hg.python.org/cpython/rev/ff1938d12240

--
nosy: +python-dev

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



[issue24259] tar.extractall() does not recognize unexpected EOF

2015-06-01 Thread Lars Gustäbel

Lars Gustäbel added the comment:

@Martin:

This is actually a nice idea that I hadn't thought of. I updated the Python 3 
patch to use a seek() that moves to one byte before the next header block, 
reads the remaining byte and raises an error if it hits eof. The code looks 
rather clean compared to the previous patch, and it should perform like it 
always did.

I am not quite sure about which exception type to use, ReadError is used in 
tarfile's header parsing code, but OSError is already used in 
tarfile.copyfileobj() and might be more like what the user expects.

--
Added file: http://bugs.python.org/file39579/issue24259-3.x-2.diff

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



[issue24259] tar.extractall() does not recognize unexpected EOF

2015-06-01 Thread Lars Gustäbel

Changes by Lars Gustäbel l...@gustaebel.de:


Added file: http://bugs.python.org/file39580/issue24259-2.x-2.diff

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



[issue24344] Overlap display issue in windows installer

2015-06-01 Thread Ionel Cristian Mărieș

New submission from Ionel Cristian Mărieș:

It appears that the  new installer has some overlap issue when displaying 
progress info. Attached a screenshot.

--
components: Installation
files: installer-display-bug.png
messages: 244579
nosy: ionelmc, steve.dower
priority: normal
severity: normal
status: open
title: Overlap display issue in windows installer
versions: Python 3.5
Added file: http://bugs.python.org/file39584/installer-display-bug.png

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



[issue24339] iso6937 encoding missing

2015-06-01 Thread John Helour

John Helour added the comment:

I've rewrote the iso6937 codec into Python 3. 

Could someone check it please?

--
Added file: http://bugs.python.org/file39583/iso6937.py

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



[issue24343] Installing 3.4.3 gives error codes 2503 and 2502 on windows 8

2015-06-01 Thread R. David Murray

R. David Murray added the comment:

I doubt there's much we can do without access to the OPs, but at least we can 
make sure the windows devs are aware and let them close it (I added the 
'windows' component, which will auto-nosy them).

--
components: +Windows
nosy: +r.david.murray, steve.dower, tim.golden, zach.ware

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



[issue16991] Add OrderedDict written in C

2015-06-01 Thread Stefan Krah

Changes by Stefan Krah ste...@bytereef.org:


Added file: http://bugs.python.org/file39582/crash-2.py

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



[issue16991] Add OrderedDict written in C

2015-06-01 Thread Stefan Krah

Stefan Krah added the comment:

crash-1.py is due to an unchecked return value from _odictnode_VALUE().

We should probably use PyDict_GetItemWithError(), also in other
places.

I normally try to steer clear of stylistic remarks, but the
_odictnode* macros are hiding too many things.  As of now,
they were hiding that an assert() is always true and that a
return value was unchecked.

Also, they're very inconvenient in a debugger.

--

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



[issue24340] co_stacksize estimate can be highly off

2015-06-01 Thread Antoine Pitrou

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


--
stage:  - needs patch
type:  - resource usage
versions: +Python 3.6

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



[issue16991] Add OrderedDict written in C

2015-06-01 Thread Stefan Krah

Changes by Stefan Krah ste...@bytereef.org:


Added file: http://bugs.python.org/file39581/crash-1.py

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



[issue24343] Installing 3.4.3 gives error codes 2503 and 2502 on windows 8

2015-06-01 Thread Laura Creighton

New submission from Laura Creighton:

This came in to webmaster, i.e. I don't have the machine with the
problem and cannot test it.  Two different people reported the
same thing.  One of them was able to get things working by running as Admin. 
The other was not.  He was able to get things working by
running in compatibility mode.  When he reached that error, he got
a popup, and the popup asked if he wanted to troubleshoot.  He said
yes.  Then things silently ran, the installation suceeded and nothing
was mentioned that needed troubleshooting.

Thought you would like to know.

--
components: Installation
messages: 244573
nosy: lac
priority: normal
severity: normal
status: open
title: Installing 3.4.3 gives  error codes 2503 and 2502  on windows 8
versions: Python 3.4

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



[issue16991] Add OrderedDict written in C

2015-06-01 Thread Stefan Krah

Stefan Krah added the comment:

crash-2.py is due to the fact that _PyDict_Pop() deletes a reference
to 'key' in _odict_popkey().

The INCREF(key) in popitem should take place before calling _odict_popkey().


Again, I don't see the point of INCREF/DECREF *inside* of _odict_popkey().

--

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



[issue24345] Py_tp_finalize is missing

2015-06-01 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 5a354de919aa by Benjamin Peterson in branch '3.5':
add Py_tp_finalize slot (closes #24345)
https://hg.python.org/cpython/rev/5a354de919aa

New changeset 959e998aa167 by Benjamin Peterson in branch 'default':
merge 3.5 (#24345)
https://hg.python.org/cpython/rev/959e998aa167

--
nosy: +python-dev
resolution:  - fixed
stage:  - resolved
status: open - closed

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



[issue24346] TypeError at List in Tuple concatenation

2015-06-01 Thread stf

Changes by stf steff...@gmail.com:


--
title: Key Error at List in Tuple concatenation - TypeError at List in Tuple 
concatenation

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



[issue24342] coroutine wrapper reentrancy

2015-06-01 Thread Yury Selivanov

Yury Selivanov added the comment:

  why wouldn't it be good enough in this case?

Because it's highly non-obvious, it took me a while to understand what's 
*actually* going on.

--

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



[issue24343] Installing 3.4.3 gives error codes 2503 and 2502 on windows 8

2015-06-01 Thread R. David Murray

R. David Murray added the comment:

No, components is a multiselect.  In my browser that means I hold ctl and click 
to add a second component, don't know what it looks like your browser.  (I've 
added installation back.)

--
components: +Installation

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



[issue24303] OSError 17 due to _multiprocessing/semaphore.c assuming a one-to-one Pid - process mapping.

2015-06-01 Thread Davin Potts

Davin Potts added the comment:

Triggering it regularly in a build farm indeed sounds like genuine pain.

@Paul or @vapier: In tracking down this issue, did you already create a 
convenient way to repro the misbehavior that could be used in testing?  Any 
finalized patch that we make will need some form of test.

--
assignee:  - davin
components: +Library (Lib)
type: enhancement - behavior

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



[issue24349] Null pointer dereferences in C OrderedDict

2015-06-01 Thread Eric Snow

New submission from Eric Snow:

(from msg244587 in issue16991)

Coverity has found an issue in odict, too:

*** CID 1302699:  Null pointer dereferences  (NULL_RETURNS)
/Objects/odictobject.c: 1316 in odict_copy()
1310 od_copy = PyObject_CallFunctionObjArgs((PyObject 
*)Py_TYPE(od), NULL);
1311 if (od_copy == NULL)
1312 return NULL;
1313 
1314 if (PyODict_CheckExact(od)) {
1315 _odict_FOREACH(od, node) {
 CID 1302699:  Null pointer dereferences  (NULL_RETURNS)
 Dereferencing a pointer that might be null PyDict_GetItem((PyObject 
 *)(PyObject *)od, node-key) when calling PyODict_SetItem.
1316 int res = PyODict_SetItem((PyObject *)od_copy,
1317   _odictnode_KEY(node),
1318   _odictnode_VALUE(node, od));
1319 if (res != 0)
1320 goto fail;
1321 }

--
assignee: eric.snow
components: Library (Lib)
messages: 244599
nosy: christian.heimes, eric.snow
priority: release blocker
severity: normal
stage: needs patch
status: open
title: Null pointer dereferences in C OrderedDict
type: crash
versions: Python 3.5, Python 3.6

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



[issue24350] dict({'a':'aa'}, a='bb') raises segmentation fault on Mac

2015-06-01 Thread Graham Klyne

Graham Klyne added the comment:

Oops, (RETURN) submitted before comments done...

I think the example interactive python script is self-explanatory.

I know my version of Python is a bit out of date, but I couldn't see anything 
in the issue list that indicated this problem had been seen and fixed.  I had 
previously experienced some segment fault crashes while doing dictionary 
manipulation, but could not isolate the cause.

--

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



[issue24348] incorrect decref in C OrderedDict

2015-06-01 Thread Eric Snow

New submission from Eric Snow:

(from msg244575 in issue16991)

crash-2.py is due to the fact that _PyDict_Pop() deletes a reference
to 'key' in _odict_popkey().

The INCREF(key) in popitem should take place before calling _odict_popkey().


Again, I don't see the point of INCREF/DECREF *inside* of _odict_popkey().

--
assignee: eric.snow
components: Library (Lib)
files: crash-2.py
messages: 244598
nosy: eric.snow, skrah
priority: release blocker
severity: normal
stage: needs patch
status: open
title: incorrect decref in C OrderedDict
type: crash
versions: Python 3.5, Python 3.6
Added file: http://bugs.python.org/file39589/crash-2.py

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



[issue24342] coroutine wrapper reentrancy

2015-06-01 Thread Skip Montanaro

Skip Montanaro added the comment:

This is a bit off topic, but why did my reply to Yuri's ticket by email change 
the title? I didn't mess with the subject in my mail.

--

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



[issue24342] coroutine wrapper reentrancy

2015-06-01 Thread Eric Snow

Eric Snow added the comment:

@Skip, because roundup will change the title to the subject of the email and 
the title had been changed after the message to which you replied.

--

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



[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax

2015-06-01 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 1e9e0664ee9b by Yury Selivanov in branch '3.5':
Issue 24017: Make PyEval_(Set|Get)CoroutineWrapper private
https://hg.python.org/cpython/rev/1e9e0664ee9b

New changeset 6fcb64097b1c by Yury Selivanov in branch 'default':
Issue 24017: Make PyEval_(Set|Get)CoroutineWrapper private
https://hg.python.org/cpython/rev/6fcb64097b1c

--

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



[issue16991] Add OrderedDict written in C

2015-06-01 Thread Eric Snow

Eric Snow added the comment:

I've opened the following issues to address the 3 last comments:

issue24347
issue24348
issue24349

I'll be opening a separate issue for outstanding review comments.

--
status: open - closed

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



[issue24350] dict({'a':'aa'}, a='bb') raises segmentation fault on Mac

2015-06-01 Thread Graham Klyne

Graham Klyne added the comment:

I just tried the same on a Python 2.7.5 installation and it worked as expected 
(no crash).  So I now assume this is fixed. Sorry for the noise.

--
resolution:  - out of date
status: open - closed

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



[issue24346] Key Error at List in Tuple concatenation

2015-06-01 Thread stf

New submission from stf:

 a = ([1,2],)
 a[0] += [3]

this raises an Type Error but adds the Elements to a.
So a is ([1, 2, 3],) afterwards.

This Problem doesn't occur, when you use a[0].append(3)

--

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



[issue24346] Key Error at List in Tuple concatenation

2015-06-01 Thread stf

Changes by stf steff...@gmail.com:


Removed file: http://bugs.python.org/file39587/bug.txt

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



[issue24347] unchecked return value in C OrderedDict

2015-06-01 Thread Yury Selivanov

Changes by Yury Selivanov yseliva...@gmail.com:


--
nosy: +yselivanov

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



[issue24349] Null pointer dereferences in C OrderedDict

2015-06-01 Thread Yury Selivanov

Changes by Yury Selivanov yseliva...@gmail.com:


--
nosy: +yselivanov

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



[issue24348] incorrect decref in C OrderedDict

2015-06-01 Thread Yury Selivanov

Changes by Yury Selivanov yseliva...@gmail.com:


--
nosy: +yselivanov

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



[issue24350] dict({'a':'aa'}, a='bb') raises segmentation fault on Mac

2015-06-01 Thread Graham Klyne

New submission from Graham Klyne:

conina:~ graham$ python
Python 2.7.3 (v2.7.3:70274d53c1dd, Apr  9 2012, 20:52:43)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type help, copyright, credits or license for more information.
 dict({'a':'aa'},b='bb')
{'a': 'aa', 'b': 'bb'}
 dict({'a':'aa'},a='bb')
Segmentation fault: 11
conina:~ graham$



From the docs:
[[
If keyword arguments are given, the keyword arguments and their values are 
added to the dictionary created from the positional argument. If a key being 
added is already present, the value from the keyword argument replaces the 
value from the positional argument.
]]

--
components: Macintosh
messages: 244601
nosy: Graham Klyne, ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: dict({'a':'aa'},a='bb') raises segmentation fault on Mac
type: crash
versions: Python 2.7

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



[issue24346] TypeError at List in Tuple concatenation

2015-06-01 Thread R. David Murray

R. David Murray added the comment:

https://docs.python.org/3/faq/programming.html#why-does-a-tuple-i-item-raise-an-exception-when-the-addition-works

--
nosy: +r.david.murray
resolution:  - not a bug
stage:  - resolved
status: open - closed

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



[issue24344] Overlap display issue in windows installer

2015-06-01 Thread Steve Dower

Steve Dower added the comment:

Already fixed this in issue24293, which is what caused it. Unfortunately, I 
didn't get it done in time for beta 2.

Thanks for the report though.

--
resolution:  - duplicate
stage:  - resolved
status: open - closed
superseder:  - Windows installer unreadable with std/custom themes

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



[issue24345] Py_tp_finalize is missing

2015-06-01 Thread Petr Viktorin

New submission from Petr Viktorin:

PEP 442 added the tp_finalize member for objects, but there's no corresponding 
Py_tp_finalize slot. This means that types defined using PyType_FromSpec (and 
in particular, extensions using the stable ABI) can't take advantage of the new 
GC finalization mechanism.

--
components: Extension Modules, Interpreter Core
files: add-py-tp-finalize.patch
keywords: patch
messages: 244581
nosy: encukou
priority: normal
severity: normal
status: open
title: Py_tp_finalize is missing
versions: Python 3.4, Python 3.5, Python 3.6
Added file: http://bugs.python.org/file39585/add-py-tp-finalize.patch

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



[issue24346] Key Error at List in Tuple concatenation

2015-06-01 Thread stf

Changes by stf steff...@gmail.com:


--
components: Interpreter Core
nosy: stf
priority: normal
severity: normal
status: open
title: Key Error at List in Tuple concatenation
type: behavior
versions: Python 3.4

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



[issue24343] Installing 3.4.3 gives error codes 2503 and 2502 on windows 8

2015-06-01 Thread Laura Creighton

Laura Creighton added the comment:

Arggh!

Components seems to be a radio box here?  As in I can select 
Windows or Installation but not both?  And by selecting installation
again, I killed David's selection of Windows?

Added this to put Windows back, but, well, if this is what we have
it it time to make a small change to the bug tracker ...

--
components: +Windows -Installation

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



[issue24342] coroutine wrapper reentrancy

2015-06-01 Thread Eric Snow

Eric Snow added the comment:

Changing the title back. :)

--
nosy: +eric.snow
title: coroutine wrapper recursion - coroutine wrapper reentrancy

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



[issue24346] Key Error at List in Tuple concatenation

2015-06-01 Thread stf

Changes by stf steff...@gmail.com:


Added file: http://bugs.python.org/file39587/bug.txt

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



[issue16991] Add OrderedDict written in C

2015-06-01 Thread Christian Heimes

Christian Heimes added the comment:

Coverity has found an issue in odict, too:

*** CID 1302699:  Null pointer dereferences  (NULL_RETURNS)
/Objects/odictobject.c: 1316 in odict_copy()
1310 od_copy = PyObject_CallFunctionObjArgs((PyObject 
*)Py_TYPE(od), NULL);
1311 if (od_copy == NULL)
1312 return NULL;
1313 
1314 if (PyODict_CheckExact(od)) {
1315 _odict_FOREACH(od, node) {
 CID 1302699:  Null pointer dereferences  (NULL_RETURNS)
 Dereferencing a pointer that might be null PyDict_GetItem((PyObject 
 *)(PyObject *)od, node-key) when calling PyODict_SetItem.
1316 int res = PyODict_SetItem((PyObject *)od_copy,
1317   _odictnode_KEY(node),
1318   _odictnode_VALUE(node, od));
1319 if (res != 0)
1320 goto fail;
1321 }

--
nosy: +christian.heimes

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



[issue16991] Add OrderedDict written in C

2015-06-01 Thread Eric Snow

Eric Snow added the comment:

@Jim and Stefan, Thanks for thorough reviews!

@Stefan, I'll take a look at those crashers and other suggestions ASAP.  I 
really appreciate you taking the time.  Now that the patch has been landed, 
would you mind opening new issues for each problem you find?  That will help 
keep individual problems from getting lost.  Thanks!

--

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



[issue18003] lzma module very slow with line-oriented reading.

2015-06-01 Thread Martin Panter

Martin Panter added the comment:

This bug was originally raised against Python 3.3, and the speed has improved a 
lot since then. Perhaps this bug can be closed as it is, or maybe people would 
like to consider my decomp-optim.patch which squeezes a bit more speed out. I 
don’t actually have a strong opinion either way.

Python 3.4 was apparently much faster than 3.3 courtesy of Issue 16034. In 
Python 3.5, all three decompression modules (LZMA, gzip and bzip) now use a 
BufferedReader internally, due to my work in Issue 23529. The modules delegate 
method calls to the internal BufferedReader, rather than returning an instance 
directly, for backwards compatibility.

I found that bypassing the readline() delegation speeds things up 
significantly, and adding a custom “closed” property on the underlying raw 
reader class also helps. However, I did not think it would be wise to bypass 
the locking in the “bz2” module, I didn’t bypass BZ2File.readline() in the 
patch. Timing results and a test script I used to investigate different options 
below:

 lzma gzip  bz2
 ===    
Unpatched3.2 s2.513 s   5.180 s
Custom __iter__()1.31 s   1.317 s   2.433 s
__iter__() and closed0.53 s*  0.543 s*  1.650 s
closed change only  4.047 s*
External BufferedReader  0.64 s   0.597 s   1.750 s
Direct from BytesIO  0.33 s   0.370 s   1.280 s
Command-line tool0.063 s  0.053 s   0.993 s

* Option implemented in decomp-optim.patch

---

import lzma, io
filename = pacman.log.xz  # 256206 lines; 389 kB - 13 MB

# Basic case
reader = lzma.LZMAFile(filename)  # 3.2 s

# Add __iter__() optimization
def lzma_iter(self):
self._check_can_read()
return iter(self._buffer)
lzma.LZMAFile.__iter__ = lzma_iter  # 1.31 s

# Add “closed” optimization
def decompressor_closed(self):
return self._decompressor is None
import _compression
_compression.DecompressReader.closed = property(decompressor_closed)  # 0.53 s

#~ # External BufferedReader baseline
#~ reader = io.BufferedReader(lzma.LZMAFile(filename))  # 0.64 s

#~ # Direct from BytesIO baseline
#~ with open(filename, rb) as file:
#~ data = file.read()
#~ reader = io.BytesIO(lzma.decompress(data))  # 0.33 s

for line in reader:
pass

--
keywords: +patch
versions: +Python 3.5, Python 3.6 -Python 3.4
Added file: http://bugs.python.org/file39586/decomp-optim.patch

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



[issue24340] co_stacksize estimate can be highly off

2015-06-01 Thread Armin Rigo

Changes by Armin Rigo ar...@users.sourceforge.net:


--
nosy:  -arigo

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



[issue23767] Library and include paths not added when cross-compiling on localized system

2015-06-01 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever
title: Library and include paths not added when cross compiling on localized 
sytem - Library and include paths not added when cross-compiling on localized 
system

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



[issue24350] dict({'a':'aa'}, a='bb') raises segmentation fault on Mac

2015-06-01 Thread Ned Deily

Changes by Ned Deily n...@acm.org:


--
resolution: out of date - duplicate
stage:  - resolved
superseder:  - python.org Interactive interpreter linked with libedit can 
segfault on future OS X

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



[issue16991] Add OrderedDict written in C

2015-06-01 Thread Steve Dower

Changes by Steve Dower steve.do...@microsoft.com:


--
nosy:  -steve.dower

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



[issue24342] coroutine wrapper reentrancy

2015-06-01 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

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



[issue24348] incorrect decref in C OrderedDict

2015-06-01 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

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



[issue24349] Null pointer dereferences in C OrderedDict

2015-06-01 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

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



[issue24347] unchecked return value in C OrderedDict

2015-06-01 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

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



[issue23968] rename the platform directory from plat-$(MACHDEP) to plat-$(PLATFORM_TRIPLET)

2015-06-01 Thread Arfrever Frehtes Taifersar Arahesis

Arfrever Frehtes Taifersar Arahesis added the comment:

What Lib/plat-$(PLATFORM_TRIPLET) directories will be introduced?

This patch would make situation worse on rarely used architectures (these 
without Lib/plat-$(PLATFORM_TRIPLET) distributed in repository of CPython) if 
patch for bug #12619 is not applied.

--
nosy: +Arfrever

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



[issue24347] unchecked return value in C OrderedDict

2015-06-01 Thread Eric Snow

Eric Snow added the comment:

Regarding the macros, my intent was to limit leaking the details of the linked 
list implementation and make it easier to change the linked list implementation 
later.  However, if that results in problems then I'm open to changing it.  
What would you recommend?

--

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



[issue24336] Allow arbitrary keywords to @contextmanager functions

2015-06-01 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

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



[issue24340] co_stacksize estimate can be highly off

2015-06-01 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

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



[issue24341] Test suite emits many DeprecationWarnings about sys.exc_clear() when -3 is enabled

2015-06-01 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

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



[issue24329] __qualname__ and __slots__

2015-06-01 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

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



[issue24352] Provide a way for assertLogs to optionally not hide the logging output

2015-06-01 Thread R. David Murray

New submission from R. David Murray:

In my test framework I have a 'verbose' flag that causes the logging output to 
be written to the console[*], which helps greatly during debugging.  However, 
if assertLogs is used, the logging is suppressed, and when debugging logging 
failures it is really helpful to see the full logging output :).

Ideally there would be a unittest-supported 'verbose' flag that assertLogs 
could look at and not suppress existing logging when it is at level 2 or 
greater.  Or perhaps a flag specific to logging output would be better?  I 
don't really care what the API is as long as I can arrange to set it from the 
CLI as part of running individual tests.

--
components: Library (Lib)
messages: 244608
nosy: r.david.murray
priority: normal
severity: normal
status: open
title: Provide a way for assertLogs to optionally not hide the logging output
type: enhancement
versions: Python 3.6

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



[issue24351] string.Template documentation incorrectly references identifiers

2015-06-01 Thread July Tikhonov

New submission from July Tikhonov:

Documentation of Template says:

$identifier names a substitution placeholder matching a mapping key of 
identifier. By default, identifier must spell a Python identifier. The 
first non-identifier character after the $ character terminates this 
placeholder specification.


While it was true when these lines were written, Python 3 has greatly extended 
identifier character set, and it no longer matches the set of characters used 
by Template:

 Template('$foo123щъ').substitute(foo=1, foo123=2, foo123щъ=3)
'2щъ'

I propose clarifying documentation.

Actually extending character set is backward-incompatible, although it won't be 
if restricted to ${identifier} syntax.

--
assignee: docs@python
components: Documentation
messages: 244607
nosy: docs@python, july
priority: normal
severity: normal
status: open
title: string.Template documentation incorrectly references identifiers
versions: Python 3.4, Python 3.5, Python 3.6

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



[issue24353] NameError: name 'path_separators' is not defined

2015-06-01 Thread R. David Murray

R. David Murray added the comment:

You have a mixture of python2 and python3 involved there, and unless I 
misunderstand something about pip, that's not going to work.  I think this 
should be reported to the pip bug tracker, but it may be an error at the python 
installation level or virtual environment creation level.

--
nosy: +r.david.murray

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



[issue24353] NameError: name 'path_separators' is not defined

2015-06-01 Thread Ionel Cristian Mărieș

New submission from Ionel Cristian Mărieș:

I get this:

Traceback (most recent call last):
  File 
c:\Python27\lib\site-packages\virtualenv\_wheels\pip-7.0.1-py2.py3-none-any.whl\pip\basecommand.py,
 line 223, in main
status = self.run(options, args)
  File 
c:\Python27\lib\site-packages\virtualenv\_wheels\pip-7.0.1-py2.py3-none-any.whl\pip\commands\install.py,
 line 297, in run
root=options.root_path,
  File 
c:\Python27\lib\site-packages\virtualenv\_wheels\pip-7.0.1-py2.py3-none-any.whl\pip\req\req_set.py,
 line 622, in install
**kwargs
  File 
c:\Python27\lib\site-packages\virtualenv\_wheels\pip-7.0.1-py2.py3-none-any.whl\pip\req\req_install.py,
 line 808, in install
self.move_wheel_files(self.source_dir, root=root)
  File 
c:\Python27\lib\site-packages\virtualenv\_wheels\pip-7.0.1-py2.py3-none-any.whl\pip\req\req_install.py,
 line 1003, in move_wheel_files
isolated=self.isolated,
  File 
c:\Python27\lib\site-packages\virtualenv\_wheels\pip-7.0.1-py2.py3-none-any.whl\pip\wheel.py,
 line 266, in move_wheel_files
compileall.compile_dir(source, force=True, quiet=True)
  File C:\Program Files\Python 3.5\lib\compileall.py, line 88, in compile_dir
legacy, optimize):
  File C:\Program Files\Python 3.5\lib\compileall.py, line 126, in 
compile_file
cfile = importlib.util.cache_from_source(fullname)
  File frozen importlib._bootstrap_external, line 267, in cache_from_source
  File frozen importlib._bootstrap_external, line 58, in _path_split
NameError: name 'path_separators' is not defined

Any idea what's going on? Should I try to make a minimal reproducing example?

--
components: Interpreter Core
messages: 244609
nosy: ionelmc
priority: normal
severity: normal
status: open
title: NameError: name 'path_separators' is not defined
versions: Python 3.5

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



[issue8232] webbrowser.open incomplete on Windows

2015-06-01 Thread Brandon Milam

Brandon Milam added the comment:

Forgive me the excessive number of patch submissions as I am still getting my 
feet wet in contributing to Python. I'm posting another patch that is not 
functionally different from the last patch but should better adhere to the PEP8 
style guide.

Please let me know of any additional changes that need to be made or if a 
different functionality is preferred.

--
Added file: http://bugs.python.org/file39590/webbrowserfix4.patch

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



[issue24355] Provide a unittest api for controlling verbosity in tests

2015-06-01 Thread R. David Murray

New submission from R. David Murray:

The python regression test suite has a 'verbose' flag in its test.support that 
some tests and test fixtures (asserts, helper methods, etc) use to control how 
much additional information they output.  unittest has a -v command line flag 
which controls the verbosity of the test runner (or whatever it is that prints 
out which tests have been run).  It would be very helpful if the verbosity 
level specified on the unittest command line were accessible to test code so 
that the verbosity level of the test output can also be affected from the 
unittest command line (I, for example, would use this to control printing 
logging output to the console while using tests to do debugging).  See also 
issue 24352.

--
components: Library (Lib)
messages: 244613
nosy: r.david.murray
priority: normal
severity: normal
status: open
title: Provide a unittest api for controlling verbosity in tests
type: enhancement
versions: Python 3.6

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



[issue24354] Requests Library get issue

2015-06-01 Thread R. David Murray

R. David Murray added the comment:

Requests is not part of the python standard library. Please report the issue to 
the requests bug tracker.

--
nosy: +r.david.murray
resolution:  - third party
stage:  - resolved
status: open - closed

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



[issue24355] Provide a unittest api for controlling verbosity in tests

2015-06-01 Thread R. David Murray

R. David Murray added the comment:

Ah!  I *thought* an issue for this already existed, but I couldn't find it.  
That one has two enhancements in it, maybe we can use this one to diverge the 
two.

--

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



[issue24354] Requests Library get issue

2015-06-01 Thread loginname

New submission from loginname:

requests.get fails to get the website http://www.merrickbank.com/;
just doesn't get the website, and it freezes up quite a bit

--
messages: 244611
nosy: loginname
priority: normal
severity: normal
status: open
title: Requests Library get issue
type: behavior
versions: Python 2.7

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



[issue24351] string.Template documentation incorrectly references identifiers

2015-06-01 Thread Serhiy Storchaka

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


--
stage:  - needs patch

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



[issue24355] Provide a unittest api for controlling verbosity in tests

2015-06-01 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

See also issue22197.

--
nosy: +serhiy.storchaka

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



[issue4753] Faster opcode dispatch on gcc

2015-06-01 Thread David Bolen

David Bolen added the comment:

The 2.7 back-ported version of this patch appears to have broken compilation on 
the Windows XP buildbot, during the OpenSSL build process, when the newly built 
Python is used to execute the build_ssl.py script.

After this patch, when that stage executes, and prior to any output from the 
build script, the python_d process goes to 100% CPU and sticks there until the 
build process times out 1200s later and kills it.

I don't think it's really ssl related though, as after doing some debugging the 
exact same thing happens if I simply run python_d (I never see a prompt - it 
just sits there burning CPU).  So I think build_ssl.py is just the first use of 
the generated python_d during the build process.

I did try attaching to the CPU-stuck version of python_d from VS, and so far 
from what I can see, the process never gets past the Py_Initialize() call in 
Py_Main().  It's all over the place in terms of locations if I try interrupting 
it, but it's always stuck inside that first Py_Initialize call.

I'm not sure if it's something environmental on my slave, or a difference with 
a debug vs. production build (I haven't had a chance to try building a release 
version yet).

-- David

--
nosy: +db3l

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



[issue4753] Faster opcode dispatch on gcc

2015-06-01 Thread David Bolen

David Bolen added the comment:

I ran a few more tests, and the generated executable hangs in both release and 
debug builds.  The closest I can get at the moment is that it's stuck importing 
errno from the import sys, errno line in os.py - at least no matter how long 
I wait after starting a process before breaking out, output with -v looks like:

 python_d -v
# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
# D:\cygwin\home\db3l\test\python2.7\lib\site.pyc matches 
D:\cygwin\home\db3l\test\python2.7\lib\site.py
import site # precompiled from D:\cygwin\home\db3l\test\python2.7\lib\site.pyc
# D:\cygwin\home\db3l\test\python2.7\lib\os.pyc matches 
D:\cygwin\home\db3l\test\python2.7\lib\os.py
import os # precompiled from D:\cygwin\home\db3l\test\python2.7\lib\os.pyc
import errno # builtin
Traceback (most recent call last):
  File D:\cygwin\home\db3l\test\python2.7\lib\site.py, line 62, in module
import os
  File D:\cygwin\home\db3l\test\python2.7\lib\os.py, line 26, in module
import sys, errno
KeyboardInterrupt
# clear __builtin__._
# clear sys.path
# clear sys.argv
# clear sys.ps1
# clear sys.ps2
# clear sys.exitfunc
# clear sys.exc_type
# clear sys.exc_value
# clear sys.exc_traceback
# clear sys.last_type
# clear sys.last_value
# clear sys.last_traceback
# clear sys.path_hooks
# clear sys.path_importer_cache
# clear sys.meta_path
# clear sys.flags
# clear sys.float_info
# restore sys.stdin
# restore sys.stdout
# restore sys.stderr
# cleanup __main__
# cleanup[1] zipimport
# cleanup[1] errno
# cleanup[1] signal
# cleanup[1] exceptions
# cleanup[1] _warnings
# cleanup sys
# cleanup __builtin__
[8991 refs]
# cleanup ints: 6 unfreed ints
# cleanup floats

I never have a problem interrupting the process, so KeyboardInterrupt is 
processed normally - it just looks like it gets stuck in an infinite loop 
during startup.

-- David

--

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



[issue24356] venv documentation incorrect / misleading

2015-06-01 Thread Graham Oliver

Graham Oliver added the comment:

See also
https://groups.google.com/d/msg/comp.lang.python/BUmyc_hzAsA/Nx5QgT1gzYEJ

--

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



[issue12020] Attribute error with flush on stdout,stderr

2015-06-01 Thread Brandon Milam

Brandon Milam added the comment:

I've been looking over the issue and the error is just raised by the stdout 
change not the stderr change (when the stdout line is commented out in the 
setAutoFlush function no error is raised). The flush method doesn't seem to be 
required as Serhiy pointed out since the script still is able to run. This is 
the cause for the error, however and I think that the required subset of 
methods for stdout objects to avoid errors could be clarified in the 
documentation. This documentation addition I think would be best under the 
sys.stdout info rather than under io.TextIOBase since the error can be raised 
without going through this class at all like in the original post.

I would like to add this documentation under sys.stdout as required subset of 
methods that must be defined and was wondering if there were any other methods 
than flush() that would need to be defined.

--
nosy: +jbmilam

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



[issue24356] venv documentation incorrect / misleading

2015-06-01 Thread Graham Oliver

New submission from Graham Oliver:

See my question here
https://groups.google.com/forum/#!topic/comp.lang.python/BUmyc_hzAsA
In particular Carl Meyer's response
https://groups.google.com/d/msg/comp.lang.python/BUmyc_hzAsA/-cT-N-g_LL4J

I am not sure what is possible with venv but I would suggest that the statement 
'allowing creation of environments with various Python versions' needs to be 
clarified and / or altered.

Thanks
Graham

--
assignee: docs@python
components: Documentation
messages: 244618
nosy: Graham.Oliver, docs@python
priority: normal
severity: normal
status: open
title: venv documentation incorrect / misleading
versions: Python 3.3

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



[issue24342] coroutine wrapper reentrancy

2015-06-01 Thread Nick Coghlan

Nick Coghlan added the comment:

Making sure I'm following the issue correctly here:

1. wrapper is a normal function, so there's no change for 
set_couroutine_wrapper() to detect anything might be amiss

2. any async def statement will call the registered coroutine wrapper to wrap 
the created function and turn it into a coroutine

3. this means any coroutine wrapper that directly or indirectly includes an 
async def statement will fail with RecursionError, without the problem being 
at all obvious

4. Yury's proposed patch effectively detects the use of async def inside a 
coroutine wrapper definition

I like the idea in principle, I don't like the error message in the current 
patch (since it only makes sense if you already understand the chain of 
reasoning above).

While it's a little verbose, I suggest an error like: Coroutine wrapper %r 
attempted to recursively wrap %r, passing in the currently registered 
coroutine wrapper, and the code object we're attempting to wrap, respectively.

The latter repr gives the name, filename and line number of the offending code 
object, while the former should give the qualname of the registered wrapper.

The docs for set_coroutine_wrapper() should also be tweaked to note the 
constraint that the wrapper function cannot itself define new asynchronous 
functions (neither directly nor indirectly).

--

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



[issue24258] BZ2File objects do not have name attribute

2015-06-01 Thread Cliff Dyer

Cliff Dyer added the comment:

I've got a fix for this now.  In working on it, I've discovered that not all 
file-like objects have a .name attribute.  io.BytesIO (which is used all over 
the test suite) does not.  I've written a patch that always creates a .name 
attribute on BZ2File, but sets it to None if the associated file-like object 
has no .name.

See the linked branch

--
hgrepos: +311

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



[issue24258] BZ2File objects do not have name attribute

2015-06-01 Thread Cliff Dyer

Cliff Dyer added the comment:

It's probably too late for this to get into 3.5, since we're already in betas.  
Pushing back to 3.6.

--
versions: +Python 3.6 -Python 3.5

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




[issue24353] NameError: name 'path_separators' is not defined

2015-06-01 Thread Ionel Cristian Mărieș

Ionel Cristian Mărieș added the comment:

Ooops, sorry for the noise, I had some weird breakage in my virtualenv.

--
resolution:  - not a bug
status: open - closed

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



[issue24356] venv documentation incorrect / misleading

2015-06-01 Thread Carol Willing

Carol Willing added the comment:

David,

Sounds good to me. I'll submit a patch with Graham's suggested text and move 
the See also box up right after the PEP reference.

Thanks,
Carol

--

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



[issue22442] Deprecate PIPE with subprocess.check_call() and call()

2015-06-01 Thread Martin Panter

Martin Panter added the comment:

I agree with the deprecation idea. The parameter checking logic doesn’t seem 
right though; see Reitveld. Also, I would have made the warning specify exactly 
what is deprecated, in case the stack trace doesn’t identify the function, 
which I think would always happen with check_call(). Also be less specific 
about future changes, unless there is clear consensus to make this change in 
3.6. Maybe something like:

Passing PIPE to call() and check_call() is deprecated; use DEVNULL instead to 
discard output or provide empty input

Since 3.5 is now in the beta phase, would adding this deprecation be allowed, 
or should it be deferred to the 3.6 branch? Also, I’m not sure what the policy 
is for Python 2. Maybe it would be acceptable as a Python 3 compatibility 
warning, triggered by the “python2 -3” option; I dunno.

--
components:  -Windows
nosy: +vadmium
stage:  - needs patch
title: subprocess.check_call hangs on large PIPEd data. - Deprecate PIPE with 
subprocess.check_call() and call()

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



[issue11549] Build-out an AST optimizer, moving some functionality out of the peephole optimizer

2015-06-01 Thread Nick Coghlan

Changes by Nick Coghlan ncogh...@gmail.com:


--
versions: +Python 3.6 -Python 3.4

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



[issue24347] unchecked return value in C OrderedDict

2015-06-01 Thread Eric Snow

Eric Snow added the comment:

Using PyDict_GetItemWithError() is a good idea.  Also, raising KeyError when 
the value is NULL (and no errors set) eliminates the crash.  Here's a patch 
that fixes the problem.  Unless there are any objections, I'll commit it in a 
couple hours.

--
stage: test needed - patch review
Added file: http://bugs.python.org/file39591/issue24347.dif

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



[issue24358] Should compression file-like objects provide .fileno(), misleading subprocess?

2015-06-01 Thread Josh Rosenberg

Josh Rosenberg added the comment:

Apparently similar issue occurs when tarfile assumes a GzipFile can have its 
fileno() fstat-ed (see #22468). An awful lot of libraries seem to assume that 
fileno() will provide useful information about the data you'd read from the 
file-like object itself, but all the compressed file-like objects violate that 
expectation.

--

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



[issue2771] Test issue

2015-06-01 Thread Ezio Melotti

Ezio Melotti added the comment:

test message via email

--

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



[issue24357] Change socket.getaddrinfo example to show IPv6 connectivity

2015-06-01 Thread Ned Deily

Ned Deily added the comment:

We decided to use google.com as an example instead.  (And I tested the tracker 
upgrade by fixing the wrong initial typo that I had made.)

--
resolution:  - fixed
stage: needs patch - resolved
status: open - closed

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



[issue24347] unchecked return value in C OrderedDict

2015-06-01 Thread Eric Snow

Changes by Eric Snow ericsnowcurren...@gmail.com:


--
resolution:  - fixed
stage: patch review - resolved
status: open - closed

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



[issue24357] Change socket.getaddrinfo example to show IPv6 connectivity

2015-06-01 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b461d900fdb5 by Ned Deily in branch '3.4':
Issue #24357: Change host in socket.getaddrinfo example to one that
https://hg.python.org/cpython/rev/b461d900fdb5

New changeset 22b77f859521 by Ned Deily in branch '3.5':
Issue #24357: merge from 3.4
https://hg.python.org/cpython/rev/22b77f859521

New changeset 7c7b1fffafdf by Ned Deily in branch 'default':
Issue #24357: merge from 3.5
https://hg.python.org/cpython/rev/7c7b1fffafdf

New changeset 30da21d2fa4f by Ned Deily in branch '2.7':
Issue #24357: Change host in socket.getaddrinfo example to one that
https://hg.python.org/cpython/rev/30da21d2fa4f

--
nosy: +python-dev

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



[issue12020] Attribute error with flush on stdout,stderr

2015-06-01 Thread Martin Panter

Martin Panter added the comment:

I wouldn’t expect to see a message for stderr because there is nowhere else to 
send the message. However with my patch for Issue 5319, at least we get a 
non-zero exit status.

Brandon: I agree this should be under sys.stdin/out/err; I wasn’t saying to put 
it under the io.TextIOBase documentation. What I meant was one option would be 
to refer to that class as a duck-typing API. Say something like: “sys.stdout 
[etc] may be replaced with other objects, as long as they implement [the 
write-only parts, etc of] the TextIOBase API [optionally ‘buffer’ etc]”. Exact 
details to be determined.

--

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



[issue24359] C OrderedDict needs to check for changes during iteration

2015-06-01 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 141eb4d1b766 by Eric Snow in branch '3.5':
Issue #24359: Check for changed OrderedDict size during iteration.
https://hg.python.org/cpython/rev/141eb4d1b766

--
nosy: +python-dev

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



[issue24359] C OrderedDict needs to check for changes during iteration

2015-06-01 Thread Eric Snow

Changes by Eric Snow ericsnowcurren...@gmail.com:


--
resolution:  - fixed
stage: needs patch - resolved
status: open - closed

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



[issue24349] Null pointer dereferences in C OrderedDict

2015-06-01 Thread Eric Snow

Eric Snow added the comment:

Correct me if I'm wrong, but this is a duplicate of the bug Stefan reported in 
issue24347.

--
resolution:  - duplicate
stage: needs patch - resolved
status: open - closed
superseder:  - unchecked return value in C OrderedDict

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



[issue2771] Test issue

2015-06-01 Thread Ezio Melotti

Ezio Melotti added the comment:

test after roundup upgrade

--

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



[issue24357] Change socket.getaddrinfo example to show IPv6 connectivity

2015-06-01 Thread Roundup Robot

Roundup Robot added the comment:

New changeset acf4dbd99d11 by Ned Deily in branch '3.4':
Issue #24357: fix typo
https://hg.python.org/cpython/rev/acf4dbd99d11

New changeset fcb415e5b40b by Ned Deily in branch '3.5':
Issue #24357: merge from 3.4
https://hg.python.org/cpython/rev/fcb415e5b40b

New changeset 74ff057c2c83 by Ned Deily in branch 'default':
Issue #24357: merge from 3.5
https://hg.python.org/cpython/rev/74ff057c2c83

--

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



[issue24357] www.python.org lost IPv6 connectivity

2015-06-01 Thread Paul Marks

New submission from Paul Marks:

Python's web servers were formerly reachable from IPv6 clients, as evidenced by 
this example code for socket.getaddrinfo():

https://docs.python.org/3/library/socket.html#socket.getaddrinfo

But today, www.python.org is IPv4-only:

 import socket
 socket.getaddrinfo(www.python.org, 80, proto=socket.IPPROTO_TCP)
[(AddressFamily.AF_INET: 2, SocketType.SOCK_STREAM: 1, 6, '', 
('23.235.40.223', 80))]

Please either restore IPv6 connectivity to www.python.org, or accept the shame 
and defeat of pointing the documentation to someone else's domain.

--
assignee: docs@python
components: Documentation
messages: 244625
nosy: Paul Marks, docs@python
priority: normal
severity: normal
status: open
title: www.python.org lost IPv6 connectivity

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



[issue24353] NameError: name 'path_separators' is not defined

2015-06-01 Thread R. David Murray

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


--
stage:  - resolved

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



[issue24357] Change socket.getaddrinfo example to show IPv6 connectivity

2015-06-01 Thread Ned Deily

Ned Deily added the comment:

Thanks for the report. According to the PSF Infrastructure Team, www.python.org 
currently does not support IPv6 because the Content Delivery Network that we 
now use does not support it yet.  One Python URL that does support IPv6:

 socket.getaddrinfo(hg.python.org, 80, proto=socket.IPPROTO_TCP)
[(AddressFamily.AF_INET6: 10, SocketType.SOCK_STREAM: 1, 6, '', 
('2001:4802:7901:0:e60a:1375:0:4', 80, 0, 0)), (AddressFamily.AF_INET: 2, 
SocketType.SOCK_STREAM: 1, 6, '', ('104.130.43.97', 80))]

--
keywords: +easy
nosy: +ned.deily
stage:  - needs patch
title: www.python.org lost IPv6 connectivity - Change socket.getaddrinfo 
example to show IPv6 connectivity
versions: +Python 2.7, Python 3.4, Python 3.5, Python 3.6

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



[issue24356] venv documentation incorrect / misleading

2015-06-01 Thread R. David Murray

R. David Murray added the comment:

Hmm.  We don't in general mention 2.7 in the python3 docs (in fact I found only 
one mention of it, in the logging package docs).  I suppose this might be 
confusing enough to warrant it.  But it might be better to rewrite that 
sentence to make it clear that the python binary you get in your virtual 
environment is the one that the venv command comes from.  That should make it 
pretty clear you can't use it with 2.7, since 2.7 doesn't include venv.

--
nosy: +r.david.murray

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



[issue24357] Change socket.getaddrinfo example to show IPv6 connectivity

2015-06-01 Thread Roundup Robot

Roundup Robot added the comment:

New changeset fb12d742b70c by Ned Deily in branch '3.4':
Issue #24357: fix real typo
https://hg.python.org/cpython/rev/fb12d742b70c

New changeset 5bfa78bf0607 by Ned Deily in branch '3.5':
Issue #24357: merge from 3.4
https://hg.python.org/cpython/rev/5bfa78bf0607

New changeset 421847aa0b22 by Ned Deily in branch 'default':
Issue #24357: merge from 3.5
https://hg.python.org/cpython/rev/421847aa0b22

--

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



[issue24356] venv documentation incorrect / misleading

2015-06-01 Thread R. David Murray

R. David Murray added the comment:

I think Graham's formulation provides more information.  venv already has a 
new in python 3.3 at the top (just before that sentence), so putting that in 
the text feels redundant.

On the other hand, the current placement of the 'see also' box looks odd, 
unless the packaging authority doesn't mention virtual environments on Windows 
(and if it doesn't, it should!).  I agree that moving that up to just after the 
PEP reference is probably a good idea.

--

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



[issue24348] incorrect decref in C OrderedDict

2015-06-01 Thread Eric Snow

Changes by Eric Snow ericsnowcurren...@gmail.com:


--
resolution:  - fixed
stage: needs patch - resolved
status: open - closed

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



[issue24348] incorrect decref in C OrderedDict

2015-06-01 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 8631b88c23f6 by Eric Snow in branch '3.5':
Issue #24348: Drop superfluous increfs/decrefs.
https://hg.python.org/cpython/rev/8631b88c23f6

--
nosy: +python-dev

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



[issue24358] Should compression file-like objects provide .fileno(), misleading subprocess?

2015-06-01 Thread Josh Rosenberg

New submission from Josh Rosenberg:

subprocess, when accepting objects for stdin, stdout, and stderr, assumes that 
possessing a .fileno() means it's a legitimate object for use with the forked 
process; that the file descriptor is interchangeable with the object itself. 
But gzip, bz2 and lzma file-like objects all violate this rule; they provide 
.fileno(), but it's unadorned. Providing .fileno() on these objects is 
misleading, since they produce the uncompressed data (likely useless) which 
causes subprocess to pass the wrong data to the subprocess, or write 
uncompressed data from the process (the exception being processes that expect 
compressed data from stdin or write compressed data to stdout, but that usually 
just means the compressor utilities themselves).

Is subprocess's assumption about fileno() (that you can read equivalent data 
from it, modulo issues with flushing/seeking) intended? If so, should .fileno() 
be removed from the compressed file interfaces? If not, should subprocess 
attempt to perform further checking, document this wart, or something else?

--
components: IO
messages: 244626
nosy: josh.r
priority: normal
severity: normal
status: open
title: Should compression file-like objects provide .fileno(), misleading 
subprocess?
versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6

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



[issue24356] venv documentation incorrect / misleading

2015-06-01 Thread Carol Willing

Carol Willing added the comment:

Current version
Each virtual environment has its own Python binary (allowing creation of 
environments with various Python versions) and can have its own independent set 
of installed Python packages in its site directories.

Another suggested revision
Since its introduction in Python 3.3, venv may be used to create a virtual 
environment with its own Python binary and optionally its own independent set 
of installed Python packages in its site directories. Multiple virtual 
environments permit various Python versions to exist on a system.

David and Graham,
Perhaps moving the see also box (see also Python Packaging User Guide: 
Creating and using virtual environments) closer to the top, perhaps under the 
pep reference, would be helpful for the user.

Virtual environments are confusing for those new to Python since there are many 
envs such as venv, pyvenv, virtualenv, virtualenvwrapper, pyenv tool, and 
myenv used in many examples.

Carol

--
nosy: +willingc

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



  1   2   >