[issue24872] Add /NODEFAULTLIB:MSVCRT to _msvccompiler

2015-08-16 Thread Christoph Gohlke
Christoph Gohlke added the comment: FWIW, I rebuilt static libraries for zlib, jbig, jpeg, openjpeg, tiff, webp, lcms, and freetype with /MT flag (a tedious task) and was able to build matplotlib and Pillow using Python 3.5.0rc1. As expected there is no dependency on the vcruntime DLL. Even

[issue24874] Improve pickling efficiency of itertools.cycle

2015-08-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file40190/cycle_reduce_3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24874 ___

[issue24874] Improve pickling efficiency of itertools.cycle

2015-08-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Original Raymonds reason in msg248662 is not valid. Pickling a cycle object that fully consumed its input iterable is already space-inefficient. import itertools, pickle, pickletools c = itertools.cycle(iter('abcde')) [next(c) for i in range(8)] ['a',

[issue24874] Improve pickling efficiency of itertools.cycle

2015-08-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file40189/cycle_reduce_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24874 ___

[issue24858] python3 -m test -ugui -v test_tk gives 3 failures under Debian unstable (sid)

2015-08-16 Thread Laura Creighton
Laura Creighton added the comment: Things work with python3.5 so this is an issue with what debian sid calls python3 (i.e. CPython 3.4.3+ (default, Jul 28 2015, 13:17:50) [GCC 4.9.3]) -- ___ Python tracker rep...@bugs.python.org

[issue24872] Add /NODEFAULTLIB:MSVCRT to _msvccompiler

2015-08-16 Thread Steve Dower
Steve Dower added the comment: I expect that, but most extensions don't seem to be in that category so this will help remove the administrator barrier. Thanks for going through that tedious process. I'll put up a patch later today and submit for 3.5.0. --

[issue24855] fail to mock the urlopen function

2015-08-16 Thread sih4sing5hong5
sih4sing5hong5 added the comment: I moved the import urlopen inside the patch. The mock worked. Thank you for explanations. I understand now. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24855

[issue24858] python3 -m test -ugui -v test_tk gives 3 failures under Debian unstable (sid)

2015-08-16 Thread Laura Creighton
Laura Creighton added the comment: (as expected) Fails when invoked as python3.4 as well. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24858 ___

[issue24876] distutils.errors not wildcard-import-safe

2015-08-16 Thread Jakub Wilk
New submission from Jakub Wilk: Docstring of the distutils.errors module reads: This module is safe to use in from ... import * mode; it only exports symbols whose names start with Distutils and end with Error. But in reality, the module exports also names that don't start with Distutils: ns

[issue24842] Mention SimpleNamespace in namedtuple docs

2015-08-16 Thread Akira Li
Akira Li added the comment: People do have problems that SimpleNamespace can solve: - Why Python does not support record type i.e. mutable namedtuple [1] - Does Python have anonymous classes? [2] - How to create inline objects with properties in Python? [3] - python create object and add

[issue24874] Improve pickling efficiency of itertools.cycle

2015-08-16 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- priority: normal - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24874 ___ ___

[issue23572] functools.singledispatch fails when not BaseClass is True

2015-08-16 Thread Adam Bartoš
Adam Bartoš added the comment: I was also bitten by this via Enum. Is there any chance this will be fixed in Python 3.5? -- nosy: +Drekin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23572

[issue24842] Mention SimpleNamespace in namedtuple docs

2015-08-16 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24842 ___

[issue24842] Mention SimpleNamespace in namedtuple docs

2015-08-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 678d93c273de by Raymond Hettinger in branch 'default': Issue #24842: Cross-reference types.SimpleNamespace from the namedtuple docs https://hg.python.org/cpython/rev/678d93c273de -- nosy: +python-dev

[issue24872] Add /NODEFAULTLIB:MSVCRT to _msvccompiler

2015-08-16 Thread Steve Dower
Steve Dower added the comment: Actually, on rereading this (during daylight hours, previous response was before 6am my time) the patch wouldn't help. I need to write some porting notes for rebuilding static libraries with suitable settings. I'll base it on my initial post and find somewhere

[issue13691] pydoc help (or help('help')) should show the doc for help

2015-08-16 Thread Jairo Trad
Jairo Trad added the comment: I just tested this issue in Python 3.6.0a0 and got this behavior: help('help') brings Help on _Helper in module _sitebuiltins object: help(help) brings: Help on _Helper in module _sitebuiltins object: help() invokes the help command line. So this was fixes on

[issue24872] Add /NODEFAULTLIB:MSVCRT to _msvccompiler

2015-08-16 Thread Steve Dower
Changes by Steve Dower steve.do...@python.org: -- components: +Documentation, Extension Modules priority: release blocker - high ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24872 ___

[issue15809] 2.7 IDLE console uses incorrect encoding.

2015-08-16 Thread 烈之斩
Changes by Benjamin Peng (烈之斩) human.p...@gmail.com: -- nosy: +Benjamin Peng (烈之斩) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15809 ___ ___

[issue13691] pydoc help (or help('help')) should show the doc for help

2015-08-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.5 is the same as 3.6 in that now both help(help) and help('help') show the not terribly helpful Help on _Helper in module site object: Buried in the text is | Calling help() at the Python prompt starts an interactive help session. | Calling

[issue24877] Bad Password for file using zipfile module

2015-08-16 Thread shiva prasanth
New submission from shiva prasanth: i created a zip file with password as getlost using Archive Manager which comes with ubuntu. and when i try to extract the same file using zipfile module which comes with python2.7 with same password it is showing error as Bad Password for file which is

[issue24877] Bad Password for file using zipfile module

2015-08-16 Thread shiva prasanth
shiva prasanth added the comment: Python 2.7.9 (default, Apr 2 2015, 15:33:21) [GCC 4.9.2] on linux2 Type help, copyright, credits or license for more information. import zipfile s=zipfile.ZipFile('random.zip') s.extractall(pwd='getlost') Traceback (most recent call last): File stdin,

[issue23672] IDLE can crash if file name contains non-BMP Unicode characters

2015-08-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: From msg248192 (Serhiy - which ... File /home/serhiy/py/cpython/Lib/idlelib/EditorWindow.py, line 899, in update_recent_files_list if '\0' in path or not os.path.exists(path[0:-1]): File /home/serhiy/py/cpython/Lib/genericpath.py, line 19, in exists

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2015-08-16 Thread Jairo Trad
Jairo Trad added the comment: I have patched this as explained by David. Also the tests are working. Another test broke because a missing trailing space. I fixed that too. This is my first patch :D -- nosy: +jairotrad Added file: http://bugs.python.org/file40191/issue24746.patch

[issue24774] inconsistency in http.server.test

2015-08-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset d9e0c82d8653 by Robert Collins in branch '3.4': Issue #24774: Fix docstring in http.server.test. https://hg.python.org/cpython/rev/d9e0c82d8653 New changeset 845c79097c21 by Robert Collins in branch '3.5': Issue #24774: Fix docstring in

[issue24774] inconsistency in http.server.test

2015-08-16 Thread Robert Collins
Robert Collins added the comment: Thanks for the patch. Applied to 3.4 and up. -- nosy: +rbcollins resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24774

[issue23672] IDLE can crash if file name contains non-BMP Unicode characters

2015-08-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset d54aa163e4ec by Terry Jan Reedy in branch '2.7': Issue #23672: ACKS https://hg.python.org/cpython/rev/d54aa163e4ec New changeset c1031eb12aa1 by Terry Jan Reedy in branch '3.4': Issue #23672: ACKS https://hg.python.org/cpython/rev/c1031eb12aa1

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2015-08-16 Thread R. David Murray
R. David Murray added the comment: Unfortunately I was reminded a few days ago that there is a commit hook that prevents patches containing trailing whitespace from being committed to the repository. So using doctest to test this isn't going to work. The alternatives are to write a unit

[issue23672] IDLE can crash if file name contains non-BMP Unicode characters

2015-08-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: It appears that the failures in msg248192 and msg248365 are issues with non-latin1 chars in general, not with astral chars in particular. Anyone who wants filenames with astral chars should be using a utf-8 locale. This issue is about Idle working around the

[issue24379] operator.subscript

2015-08-16 Thread Josh Rosenberg
Josh Rosenberg added the comment: So this has sign off on Python ideas, and it's not fundamentally changing the language (it's implemented in pure Python after all), it's passed a dozen code reviews. Can someone with commit privileges just finish this off please? --

[issue24379] operator.subscript

2015-08-16 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: - rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24379 ___ ___

[issue24379] operator.subscript

2015-08-16 Thread Joe Jevnik
Joe Jevnik added the comment: Sorry about the ideas thread. Thank you for merging this! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24379 ___

[issue24878] Add docstrings to selected named tuples

2015-08-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: For example: import sched help(sched.Event) class Event(Event) | Event(time, priority, action, argument, kwargs) | ... | -- | Data descriptors inherited from Event: | |

[issue24734] Dereferencing a null returning value

2015-08-16 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/issue24734 ___

[issue24379] operator.subscript

2015-08-16 Thread R. David Murray
R. David Murray added the comment: For future reference can you post a link to the python-ideas thread in which the signoff occurred? -- nosy: +r.david.murray stage: patch review - commit review ___ Python tracker rep...@bugs.python.org

[issue24782] Merge 'configure extensions' into main IDLE config dialog

2015-08-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Do you consider the second patch ready as is (as a step toward doing the merge)? Is so, I will do a commit review. -- stage: - patch review ___ Python tracker rep...@bugs.python.org

[issue24379] operator.subscript

2015-08-16 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24379

[issue24878] Add docstrings to selected named tuples

2015-08-16 Thread Raymond Hettinger
New submission from Raymond Hettinger: Add docstrings to some named tuples that could benefit from it (there was more documentation or useful information other than just the field name). This makes the help() on those named tuples much more informative. -- assignee: docs@python

[issue24735] Invalid access in combinations_with_replacement()

2015-08-16 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/issue24735 ___

[issue24879] Pydoc to list data descriptors in _fields order if it exists

2015-08-16 Thread Raymond Hettinger
New submission from Raymond Hettinger: Currently, help() lists out data descriptors in alphabetical order. This is fine in the general case, however if the fields are parts of a named tuple, it is more sensible to list them in the order found in the tuple. The presence of a named tuple can

[issue24872] Add /NODEFAULTLIB:MSVCRT to _msvccompiler

2015-08-16 Thread Christoph Gohlke
Christoph Gohlke added the comment: Matplotlib and my own extensions are using C++ sources but do not depend on msvcp140.dll, just the ucrt. Am I missing something? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24872

[issue24874] Improve pickling efficiency of itertools.cycle

2015-08-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: Applied the cycle2 patch but kept the signature the same as the original reduce (using a number instead of a boolean). -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python

[issue24872] Add /NODEFAULTLIB:MSVCRT to _msvccompiler

2015-08-16 Thread Christoph Gohlke
Christoph Gohlke added the comment: Thanks for going through that tedious process ~140 libraries to go. I hit the wall last night trying to build Boost DLLs. Boost's build tool b2 does not allow `link=shared runtime-link=static`, hence the `/MT /LTCG /NODEFAULTLIB:libucrt.lib ucrt.lib` magic

[issue24872] Add /NODEFAULTLIB:MSVCRT to _msvccompiler

2015-08-16 Thread Steve Dower
Steve Dower added the comment: Boost requires C++ anyway doesn't it? So the full redist will be required. These options are only useful for pure C sources. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24872

[issue24872] Add /NODEFAULTLIB:MSVCRT to _msvccompiler

2015-08-16 Thread Steve Dower
Steve Dower added the comment: Probably I'm missing something. Maybe there's a subset of C++ that doesn't rely on it - a decent amount of the standard template library is generated at compile time. If the dependency isn't there, it'll be fine. Do you think it'll be worth having a check box

[issue24874] Improve pickling efficiency of itertools.cycle

2015-08-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 17b5c8ba6875 by Raymond Hettinger in branch 'default': Issue #24874: Speed-up itertools and make it pickles more compact. https://hg.python.org/cpython/rev/17b5c8ba6875 -- nosy: +python-dev ___ Python

[issue24379] operator.subscript

2015-08-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: The old python ideas discussion stops way short of a sign-off but I'll go ahead an apply the patch. If someone really hates it, they have a year and half to persuade someone to rip it out ;-)

[issue24379] operator.subscript

2015-08-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset dccc4e63aef5 by Raymond Hettinger in branch 'default': Issue #24379: Add operator.subscript() as a convenience for building slices. https://hg.python.org/cpython/rev/dccc4e63aef5 -- nosy: +python-dev ___

[issue24776] Improve Fonts/Tabs UX for IDLE

2015-08-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: The side-by-side part I obviously like, but I think we need to keep 'Base Editor Font' since this and only this is affected by the selection. I think there should be an option to increase the 'other' font used for everything else. --

[issue24781] Improve UX of IDLE Highlighting configuration tab

2015-08-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: As I think I said elsewhere, I want myself and others to be able to select among the style themes provided with ttk, as well as any other themes (a dark theme?) that we or users devise. A custom theme would be a good project for a UI design class. I do not

[issue24683] Type confusion in json encoding

2015-08-16 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/issue24683 ___

[issue24613] array.fromstring Use After Free

2015-08-16 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/issue24613 ___