[issue27019] Reduce marshal stack depth for 2.7 on Windows debug build

2016-07-06 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 6230ead06f65 by Benjamin Peterson in branch '2.7':
reduce marshal stack size in debug mode on windows (closes #27019)
https://hg.python.org/cpython/rev/6230ead06f65

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

___
Python tracker 

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



[issue27248] Possible refleaks in PyType_Ready in error condition

2016-07-06 Thread Roundup Robot

Roundup Robot added the comment:

New changeset f1fcf60863f8 by Benjamin Peterson in branch '3.5':
fix refleaks in PyDict_SetItem error cases (closes #27248)
https://hg.python.org/cpython/rev/f1fcf60863f8

New changeset 370b2985d462 by Benjamin Peterson in branch '2.7':
fix refleaks in PyDict_SetItem error cases (closes #27248)
https://hg.python.org/cpython/rev/370b2985d462

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

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

___
Python tracker 

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



[issue27220] Add a pure Python version of 'collections.defaultdict'

2016-07-06 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
assignee:  -> rhettinger

___
Python tracker 

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



[issue27380] IDLE: add base Query dialog with ttk widgets

2016-07-06 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Next patch should finish issue except for a couple of minor questions.

--
stage: test needed -> commit review
Added file: http://bugs.python.org/file43651/query-helpsource.diff

___
Python tracker 

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



[issue23591] Add IntFlags

2016-07-06 Thread Ethan Furman

Ethan Furman added the comment:

Reviewing...

--

___
Python tracker 

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



[issue24459] Mention PYTHONFAULTHANDLER in the man page

2016-07-06 Thread Joshua Jay Herman

Joshua Jay Herman added the comment:

ping

--

___
Python tracker 

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



[issue27137] Python implementation of `functools.partial` is not a class

2016-07-06 Thread Nick Coghlan

Nick Coghlan added the comment:

I should be able to take a look at the updated patch this coming weekend.

--
stage: patch review -> commit review

___
Python tracker 

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



[issue27400] Datetime NoneType after calling Py_Finalize and Py_Initialize

2016-07-06 Thread Nick Coghlan

Nick Coghlan added the comment:

Aye, skipping the caching entirely would be an even simpler solution - the only 
thing it is saving in the typical case is a dictionary lookup in the modules 
cache.

--

___
Python tracker 

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



[issue27448] Race condition in subprocess.Popen which causes a huge memory leak

2016-07-06 Thread Gregory P. Smith

Gregory P. Smith added the comment:

ah, okay, that makes much more sense and is indeed a bug.

Recommendation given that most people won't be using a python 2.7 version that 
has this and tons of other subprocess from a threaded process bugs fixed: Use 
subprocess32 where this isn't a problem.

--
assignee:  -> gregory.p.smith

___
Python tracker 

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



[issue27400] Datetime NoneType after calling Py_Finalize and Py_Initialize

2016-07-06 Thread Ammar Askar

Ammar Askar added the comment:

Is there any particular reason that datetime.strptime caches the imported 
module like that? 

>From a quick search, these two other examples don't bother with any caching: 

https://github.com/python/cpython/blob/2d264235f6e066611b412f7c2e1603866e0f7f1b/Modules/timemodule.c#L709

https://github.com/python/cpython/blob/64fe35c9fee088f7fec4dd2d760cb0026ac54ec8/Python/traceback.c#L277

--
nosy: +ammar2

___
Python tracker 

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



[issue19489] move quick search box above TOC

2016-07-06 Thread Ammar Askar

Ammar Askar added the comment:

It looks like this can be fixed by us. Since sphinx 1.0 there is this handy 
config parameter: 
http://www.sphinx-doc.org/en/stable/config.html#confval-html_sidebars

I've attached a patch which pins the searchbox as the first thing on every page.

--
keywords: +patch
nosy: +ammar2
Added file: http://bugs.python.org/file43650/searchbar.diff

___
Python tracker 

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



[issue23710] C API doc for PyObject_HEAD is outdated

2016-07-06 Thread Ammar Askar

Ammar Askar added the comment:

This diff amends the documentation to point out that PyObject_HEAD includes the 
ob_base field, gives a brief overview of it and points to the 
PyObject/structures page for more information.

It also changes the semicolon part to a warning for clarity.

--
keywords: +patch
nosy: +ammar2
Added file: http://bugs.python.org/file43649/capidocs.diff

___
Python tracker 

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



[issue27242] Make the docs for NotImplemented & NotImplementedError unambiguous

2016-07-06 Thread Emanuel Barry

Emanuel Barry added the comment:

New patch with proper indenting, should be good as far as formatting is 
concerned :)

--
Added file: 
http://bugs.python.org/file43648/NotImplemented_exceptions_wording_5.patch

___
Python tracker 

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



[issue26267] UUID docs should say how to get "standard form"

2016-07-06 Thread Ammar Askar

Ammar Askar added the comment:

This patch adds documentation for the str(uuid) operator along with documenting 
the fact that UUID instances support comparisons with `>` and `<`.

It also indents the attributes and descriptions to emphasize that they are part 
of the UUID instance, not the uuid module. 

I followed https://docs.python.org/3/library/stdtypes.html#set for documenting 
the operators, hope it's fine.

--
keywords: +patch
nosy: +ammar2
Added file: http://bugs.python.org/file43647/uuiddocs.diff

___
Python tracker 

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



[issue26823] Shrink recursive tracebacks

2016-07-06 Thread Emanuel Barry

Emanuel Barry added the comment:

Sorry for the delay, but here's a patch with updated tests after Nick's 
suggestions. It should be ready to merge now.

(I'm having some failures in test_traceback, but they fail even without my 
patch)

--
Added file: http://bugs.python.org/file43646/short_tracebacks_4.patch

___
Python tracker 

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



[issue23085] update internal libffi copy to 3.2.1

2016-07-06 Thread Chi Hsuan Yen

Chi Hsuan Yen added the comment:

Oops the proglem of clang on ARM is not completely fixed in libffi 3.2.1. This 
commit [1] fixes only one `stmeqia` but not another.

[1] 
https://github.com/libffi/libffi/commit/6eff9ff9e72463b9783be2514f944b6f05692054#diff-c6400d42bf23866ded49558ca9a54205R220

--

___
Python tracker 

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



[issue23085] update internal libffi copy to 3.2.1

2016-07-06 Thread Zachary Ware

Changes by Zachary Ware :


--
versions: +Python 3.6 -Python 3.4

___
Python tracker 

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



[issue23085] update internal libffi copy to 3.2.1

2016-07-06 Thread Chi Hsuan Yen

Chi Hsuan Yen added the comment:

+1 for this. Cross-compile CPython for ARM with clang fails in _ctypes due to 
https://llvm.org/bugs/show_bug.cgi?id=20595. This bug is already fixed in 
libffi.

By the way, I can't apply libffi.patch to the default branch. Some hunks are 
rejcted. Is there something wrong?

issue26942 may also be relevant. I did't test it as I'm not sure how to update 
CPython's internal libffi.

--
nosy: +Chi Hsuan Yen

___
Python tracker 

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



[issue27455] Fix tkinter examples to be PEP8 compliant

2016-07-06 Thread John Hagen

John Hagen added the comment:

@Berker, thanks for the tip! I've fixed it up.

I think this latest patch covers everything Berker and Terry have commented 
about.

--
Added file: http://bugs.python.org/file43645/Fix-tkinter-docs-PEP8.diff

___
Python tracker 

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



[issue27455] Fix tkinter examples to be PEP8 compliant

2016-07-06 Thread John Hagen

Changes by John Hagen :


Removed file: http://bugs.python.org/file43641/0001-Fix-tkinter-docs-PEP8.diff

___
Python tracker 

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



[issue27220] Add a pure Python version of 'collections.defaultdict'

2016-07-06 Thread Emanuel Barry

Emanuel Barry added the comment:

Raymond, do you have any interest/time to review this? I can ask someone else, 
if you prefer.

--

___
Python tracker 

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



[issue27458] Allow subtypes of unicode/str to hit the optimized unicode_concatenate block

2016-07-06 Thread STINNER Victor

STINNER Victor added the comment:

I close the issue.

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

___
Python tracker 

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



[issue27458] Allow subtypes of unicode/str to hit the optimized unicode_concatenate block

2016-07-06 Thread Ammar Askar

Ammar Askar added the comment:

> We really don't want to encourage any reliance on this optimization.  It was 
> put there only to help mitigate the performance impact of a common mistake.

Aah, I didn't realize the extra context behind why the unicode_concatenate path 
actually exists in ceval. Makes sense though since it was the only exceptional 
case that popped out in ceval.

> It would be interesting to see an example showing the benefit of this change

I'm no expert at benchmarking but I threw together a quick script to compare 
the different ways of string concatenation and it seems like an INPLACE_ADD is 
the fastest. (which makes sense because it avoids the overhead of having a list 
object that ''.join brings in, not sure why StringIO is slower than both 
though, maybe that would be a better place to improve?)

Either way if you guys think this adds too much complexity on top of an 
existing hack, this is fine to close.


Benchmarking results:

  INPLACE_ADD short ascii
0.4307783489348367
  ''.join short ascii
0.6934443039353937
  StringIOshort ascii
0.9447220619767904

  INPLACE_ADD short unicode
0.4411839219974354
  ''.join short unicode
0.666951927007176
  StringIOshort unicode
0.9783720930572599

  INPLACE_ADD long ascii
3.6157665309729055
  ''.join long ascii
6.938268916099332
  StringIOlong ascii
5.279585674987175

  INPLACE_ADD long unicode
3.7768358619650826
  ''.join long unicode
4.641092017991468
  StringIOlong unicode
7.6051657549105585

--
Added file: http://bugs.python.org/file43644/bench.py

___
Python tracker 

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



[issue27442] expose the Android API level in sysconfig.get_config_vars()

2016-07-06 Thread STINNER Victor

STINNER Victor added the comment:

+@unittest.skipIf(sysconfig.get_config_var('ANDROID_API_LEVEL') == 0,
+ "not an android platform")

Hum, sysconfig.get_config_var() returns None for unknown variable. Why checking 
==0?

@Xavier: Are you generating the patch using "hg diff"? I don't see the base 
revision in your patch, and so there is no [Review] link on your patch.

--

___
Python tracker 

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



[issue27051] Create PIP gui

2016-07-06 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Window stacking order can be queried with tcl calls: 
https://stackoverflow.com/questions/10343759/determining-what-tkinter-window-is-currently-on-top/10391659#10391659.
  I do not if there is the equivalent for frames.  Note that uses can change 
window stack order, hence the need for a query, but not frame stack order.

https://stackoverflow.com/questions/35690249/tkinter-is-it-possible-to-change-the-stacking-order-of-placed-frames
 claims that frames are initially stacked in order created. Verify if you want. 
After that, keep track of how you change the order.

--

___
Python tracker 

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



[issue27434] cross-building python 3.6 with an older interpreter fails

2016-07-06 Thread STINNER Victor

STINNER Victor added the comment:

restrict_interp_2.patch: LGTM.

not ... == '...' can be written ... != '...', no?

--
nosy: +haypo

___
Python tracker 

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



[issue25077] Compiler warnings: initialization from incompatible pointer type

2016-07-06 Thread Chris Jerdonek

Changes by Chris Jerdonek :


--
nosy: +chris.jerdonek

___
Python tracker 

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



[issue27137] Python implementation of `functools.partial` is not a class

2016-07-06 Thread Emanuel Barry

Emanuel Barry added the comment:

Is there anything still preventing this from being merged? I think the ability 
to consistently get the same behaviour, with or without _functools available, 
outweighs the performance and simplicity loss (and as far as performance loss 
goes, it appears that _functools is always available as far as CPython is 
concerned, which makes it a non-issue).

--

___
Python tracker 

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



[issue27458] Allow subtypes of unicode/str to hit the optimized unicode_concatenate block

2016-07-06 Thread STINNER Victor

STINNER Victor added the comment:

I agree with Raymond. Use ''.join(list of str) or a similar pattern.

--

___
Python tracker 

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



[issue23085] update internal libffi copy to 3.2.1

2016-07-06 Thread Berker Peksag

Berker Peksag added the comment:

> which Berker says have been fixed in upstream libffi: 
> https://bugs.python.org/issue25077#msg266068

Correct, here is the actual commit: 
https://github.com/libffi/libffi/commit/4a677a425c18eda4bc5357b2485da57f133f908d

I have also sent a patch to upstream libffi for 
https://github.com/python/cpython/blob/master/Modules/_ctypes/libffi.diff#L161: 
https://github.com/libffi/libffi/commit/1e82e1cda43dacd8b6ab2d9ac4db33523d86f5dc

But both of them will be released in libffi 4.0.

Note that the current master branch of libffi doesn't seem to be compiled with 
a C89 compiler (see https://github.com/libffi/libffi/issues/218 for details). 
See also https://mail.python.org/pipermail/python-dev/2016-June/144816.html for 
discussion about C99 support in CPython.

--
nosy: +berker.peksag

___
Python tracker 

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



[issue27460] Change bytes exception when overflow

2016-07-06 Thread Roundup Robot

Roundup Robot added the comment:

New changeset f9481e5f1792 by Serhiy Storchaka in branch 'default':
Issue #27460: Unified error messages in bytes constructor for integers
https://hg.python.org/cpython/rev/f9481e5f1792

--
nosy: +python-dev

___
Python tracker 

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



[issue27460] Change bytes exception when overflow

2016-07-06 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thank you for your contribution Xiang Zhang.

--
components: +Interpreter Core
resolution:  -> fixed
stage: commit review -> resolved
status: open -> closed

___
Python tracker 

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



[issue27460] Change bytes exception when overflow

2016-07-06 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

This is enough.

--
stage:  -> commit review

___
Python tracker 

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



[issue23085] update internal libffi copy to 3.2.1

2016-07-06 Thread Chris Jerdonek

Chris Jerdonek added the comment:

> Are there any issue *we* have with libffi which an update to 3.2.1 would 
> solve ?

There are these Ubuntu-specific compiler warnings:
https://bugs.python.org/issue25077

which Berker says have been fixed in upstream libffi: 
https://bugs.python.org/issue25077#msg266068

--
nosy: +chris.jerdonek

___
Python tracker 

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



[issue26974] Crash in Decimal.from_float

2016-07-06 Thread Raymond Hettinger

Raymond Hettinger added the comment:

My preference is to leave the Python implementation of from_float() as-is.  
Pure Python code is not obligated to defend itself against bizarre code.  The C 
code however is obliged to not segfault.

--

___
Python tracker 

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



[issue27460] Change bytes exception when overflow

2016-07-06 Thread Xiang Zhang

Xiang Zhang added the comment:

The constructor has been well tested in 
https://hg.python.org/cpython/file/tip/Lib/test/test_bytes.py#l111. It looks 
like that the original author only wants to guarantee the exception type but 
not message. So I didn't add a assertRaisesRegex test.

--

___
Python tracker 

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



[issue27458] Allow subtypes of unicode/str to hit the optimized unicode_concatenate block

2016-07-06 Thread Raymond Hettinger

Raymond Hettinger added the comment:

We really don't want to encourage any reliance on this optimization.  It was 
put there only to help mitigate the performance impact of a common mistake.

I don't think subclasses warrant extended coverage.  This was already a hack at 
the outer limits of how far we were willing to go.   It doesn't make sense to 
propagate it further.

--
nosy: +rhettinger

___
Python tracker 

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



[issue27460] Change bytes exception when overflow

2016-07-06 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

LGTM. Are there any tests for these cases?

--
assignee:  -> serhiy.storchaka
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue27460] Change bytes exception when overflow

2016-07-06 Thread Xiang Zhang

Changes by Xiang Zhang :


Removed file: http://bugs.python.org/file43637/bytes_exception_msg.patch

___
Python tracker 

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



[issue27460] Change bytes exception when overflow

2016-07-06 Thread Xiang Zhang

Changes by Xiang Zhang :


Added file: http://bugs.python.org/file43643/bytes_exception_msg.patch

___
Python tracker 

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



[issue27458] Allow subtypes of unicode/str to hit the optimized unicode_concatenate block

2016-07-06 Thread Guido van Rossum

Changes by Guido van Rossum :


--
nosy:  -gvanrossum

___
Python tracker 

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



[issue27458] Allow subtypes of unicode/str to hit the optimized unicode_concatenate block

2016-07-06 Thread Guido van Rossum

Guido van Rossum added the comment:

I'm not interested, sorry.

--

___
Python tracker 

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



[issue26746] struct.pack(): trailing padding bytes on x64

2016-07-06 Thread Allan Haldane

Allan Haldane added the comment:

Hello,

Over at numpy I have a proposed fix for the bug you discovered, that numpy 
drops trailing padding in the 3118 format string. My strategy is going to make 
numpy interpret format strings exactly the same way as the struct module, let 
me know if you disagree.

See https://github.com/numpy/numpy/pull/7798

--
nosy: +Allan Haldane

___
Python tracker 

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



[issue27386] Asyncio server hang when clients connect and immediately disconnect

2016-07-06 Thread Jim Fulton

Changes by Jim Fulton :


--
type: behavior -> security

___
Python tracker 

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



[issue27151] multiprocessing.Process leaves read pipes open (Process.sentinel)

2016-07-06 Thread Roman Bolshakov

Changes by Roman Bolshakov :


Removed file: http://bugs.python.org/file43046/leak.py

___
Python tracker 

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



[issue27151] multiprocessing.Process leaves read pipes open (Process.sentinel)

2016-07-06 Thread Roman Bolshakov

Roman Bolshakov added the comment:

multiprocessing.Queue._writer is affected by similar issue. _writer FD is left 
open after .close() is invoked on a Queue.

--
Added file: http://bugs.python.org/file43642/leak.py

___
Python tracker 

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



[issue27448] Race condition in subprocess.Popen which causes a huge memory leak

2016-07-06 Thread Andrew

Andrew added the comment:

Gregory P. Smith, 

"if you are seeing a memory leak and the statements that fail before the 
gc.enable call are more than"

The problem in my case was different. It was race condition between 
gc.isenabled and gc.disable. 

Isenabled was called when gc was disabled by another subprocess. This caused 
that later on gc.enable was not triggered.

--

___
Python tracker 

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



[issue27455] Fix tkinter examples to be PEP8 compliant

2016-07-06 Thread Berker Peksag

Berker Peksag added the comment:

Thanks for the updated patch. I noticed a typo in your test script. It works 
for me if I update the super() line from

super().__init__(self, master)

to

super().__init__(master)

--

___
Python tracker 

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



[issue7769] SimpleXMLRPCServer.SimpleXMLRPCServer.register_function as decorator

2016-07-06 Thread Brian Curtin

Changes by Brian Curtin :


--
nosy:  -brian.curtin

___
Python tracker 

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



[issue27455] Fix tkinter examples to be PEP8 compliant

2016-07-06 Thread John Hagen

John Hagen added the comment:

@Terry I've removed the two string quotes changes in the latest patch.

@Berker I spent a small amount of time trying out your proposed super() 
changes, but could not get them to work on 3.5.1.

"C:\Users\John Hagen\AppData\Local\Programs\Python\Python35\python.exe" 
"C:/Users/John Hagen/PycharmProjects/test/test.py"
Traceback (most recent call last):
  File "C:/Users/John Hagen/PycharmProjects/test/test.py", line 25, in 
app = Application(master=root)
  File "C:/Users/John Hagen/PycharmProjects/test/test.py", line 6, in __init__
super().__init__(self, master)
  File "C:\Users\John 
Hagen\AppData\Local\Programs\Python\Python35\lib\tkinter\__init__.py", line 
2583, in __init__
Widget.__init__(self, master, 'frame', cnf, {}, extra)
  File "C:\Users\John 
Hagen\AppData\Local\Programs\Python\Python35\lib\tkinter\__init__.py", line 
2131, in __init__
BaseWidget._setup(self, master, cnf)
  File "C:\Users\John 
Hagen\AppData\Local\Programs\Python\Python35\lib\tkinter\__init__.py", line 
2109, in _setup
self.tk = master.tk
AttributeError: 'Application' object has no attribute 'tk'



import tkinter as tk


class Application(tk.Frame):
def __init__(self, master=None):
super().__init__(self, master)
self.pack()
self.create_widgets()

def create_widgets(self):
self.hi_there = tk.Button(self)
self.hi_there["text"] = "Hello World\n(click me)"
self.hi_there["command"] = self.say_hi
self.hi_there.pack(side="top")

self.quit = tk.Button(self, text="QUIT", fg="red",
  command=root.destroy)
self.quit.pack(side="bottom")

def say_hi(self):
print("hi there, everyone!")


root = tk.Tk()
app = Application(master=root)
app.mainloop()

--
Added file: http://bugs.python.org/file43641/0001-Fix-tkinter-docs-PEP8.diff

___
Python tracker 

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



[issue27455] Fix tkinter examples to be PEP8 compliant

2016-07-06 Thread John Hagen

Changes by John Hagen :


Removed file: http://bugs.python.org/file43628/0001-Fix-tkinter-docs-PEP8.diff

___
Python tracker 

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



[issue26826] Expose new copy_file_range() syscall in os module.

2016-07-06 Thread Marcos Dione

Marcos Dione added the comment:

Another version:

* Changed availability to kernel type, version and date.

--
Added file: http://bugs.python.org/file43640/copy_file_range.diff

___
Python tracker 

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



[issue26826] Expose new copy_file_range() syscall in os module.

2016-07-06 Thread Marcos Dione

Marcos Dione added the comment:

New version:

* Adds a new test for offset parameters.

--
Added file: http://bugs.python.org/file43639/copy_file_range.diff

___
Python tracker 

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



[issue27460] Change bytes exception when overflow

2016-07-06 Thread Xiang Zhang

Changes by Xiang Zhang :


--
type:  -> enhancement
versions: +Python 3.6

___
Python tracker 

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



[issue27434] cross-building python 3.6 with an older interpreter fails

2016-07-06 Thread Xavier de Gaye

Xavier de Gaye added the comment:

New patch that gets rid of the changes in configure made by my version of 
autoconf. This version is 2.69 though, i.e. the same as the generated configure 
file that is under control of mercurial in the default branch.

--
assignee:  -> xdegaye
stage: patch review -> commit review
Added file: http://bugs.python.org/file43638/restrict_interp_2.patch

___
Python tracker 

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



[issue27460] Change bytes exception when overflow

2016-07-06 Thread Xiang Zhang

New submission from Xiang Zhang:

I suggest change `bytes` exception message when an iterable containing overflow 
integers.

Right now, bytes([sys.maxsize+1]) emits ValueError: cannot fit 'int' into an 
index-sized integer "ValueError: cannot fit 'int' into an index-sized integer". 
I think actually when use bytes in such a situation we don't care the integer 
overflows or not, we only care if the integer is in range(0, 256) or not, just 
like what bytearray([sys.maxsize+1]) does.

--
files: bytes_exception_msg.patch
keywords: patch
messages: 269879
nosy: xiang.zhang
priority: normal
severity: normal
status: open
title: Change bytes exception when overflow
Added file: http://bugs.python.org/file43637/bytes_exception_msg.patch

___
Python tracker 

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



[issue27453] $CPP invocation in configure must use $CPPFLAGS

2016-07-06 Thread Xavier de Gaye

Changes by Xavier de Gaye :


--
title: Fix cross-compilation with Android NDK and Clang -> $CPP invocation in 
configure must use $CPPFLAGS
versions: +Python 3.5

___
Python tracker 

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



[issue27442] expose the Android API level in sysconfig.get_config_vars()

2016-07-06 Thread Xavier de Gaye

Xavier de Gaye added the comment:

New patch incorporating the substitutions to '$CPP $CPPFLAGS' and 
ANDROID_API_LEVEL.

--
stage: patch review -> commit review
Added file: http://bugs.python.org/file43636/android_api_3.patch

___
Python tracker 

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



[issue26915] Test identity first in membership operation of ItemsView, ValuesView and Sequence in collections.abc

2016-07-06 Thread Xiang Zhang

Xiang Zhang added the comment:

ping

--

___
Python tracker 

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



[issue27248] Possible refleaks in PyType_Ready in error condition

2016-07-06 Thread Xiang Zhang

Xiang Zhang added the comment:

ping

--

___
Python tracker 

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



[issue7769] SimpleXMLRPCServer.SimpleXMLRPCServer.register_function as decorator

2016-07-06 Thread Xiang Zhang

Xiang Zhang added the comment:

ping

--

___
Python tracker 

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



[issue17711] Persistent id in pickle with protocol version 0

2016-07-06 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Ping again.

--
versions: +Python 3.6 -Python 3.4

___
Python tracker 

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



[issue21708] Deprecate nonstandard behavior of a dumbdbm database

2016-07-06 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 62da75b29b29 by Serhiy Storchaka in branch 'default':
Issue #21708: Deprecated dbm.dumb behavior that differs from common dbm
https://hg.python.org/cpython/rev/62da75b29b29

--
nosy: +python-dev

___
Python tracker 

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



[issue27051] Create PIP gui

2016-07-06 Thread Upendra Kumar

Upendra Kumar added the comment:

@Terry,

I am switching between different frames using frame.tkraise() method in order 
to switch the user attention.

Now, if I want to test which frame is at top what should I check for or which 
parameter I should check.

--

___
Python tracker 

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



[issue27441] redundant assignments to ob_size of new ints that _PyLong_New returned

2016-07-06 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Changes to PyLong_FromUnsignedLong() and PyLong_FromUnsignedLongLong() LGTM. I 
don't know whether other changes have a positive effect. Are there any 
microbenchmarks? There are other places in which Py_SIZE() is set to the same 
value.

--

___
Python tracker 

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



[issue27452] IDLE: Cleanup config code

2016-07-06 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

In this case it works, because os.join('', filename) returns filename.

--

___
Python tracker 

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



[issue27458] Allow subtypes of unicode/str to hit the optimized unicode_concatenate block

2016-07-06 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

1. It would be interesting to see an example showing the benefit of this 
change. How large is the benefit, and how common is this case?

2. The optimization of string concatenation is CPython specific, and AFAIK it 
was decided not to extend it to other cases (e.g. to bytes). The recommended 
way for efficient string concatenation is using str.join or io.StringIO. Or 
classic string formatting -- this is yet one CPython specific optimization.

3. Non-compact string representation is legacy. It is kept for compatibility 
with existing code, but will be removed in future. The work with non-compact 
strings is not always efficient.

--
nosy: +gvanrossum, serhiy.storchaka

___
Python tracker 

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



[issue27458] Allow subtypes of unicode/str to hit the optimized unicode_concatenate block

2016-07-06 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy:  -pitrou

___
Python tracker 

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