[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 if everything is built with /MT and using UCRT, some extensions will still 
depend on version specific Visual C runtime DLLs, e.g. OpenMP, requiring users 
or distributors to install/bundle the VC runtime package.

--

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



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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', 'b', 'c', 'd', 'e', 'a', 'b', 'c']
 pickle.dumps(c)
b'\x80\x03citertools\ncycle\nq\x00cbuiltins\niter\nq\x01]q\x02(X\x01\x00\x00\x00aq\x03X\x01\x00\x00\x00bq\x04X\x01\x00\x00\x00cq\x05X\x01\x00\x00\x00dq\x06X\x01\x00\x00\x00eq\x07e\x85q\x08Rq\tK\x03b\x85q\nRq\x0bh\x02K\x01\x86q\x0cb.'
 pickletools.dis(pickle.dumps(c))
0: \x80 PROTO  3
2: cGLOBAL 'itertools cycle'
   19: qBINPUT 0
   21: cGLOBAL 'builtins iter'
   36: qBINPUT 1
   38: ]EMPTY_LIST
   39: qBINPUT 2
   41: (MARK
   42: XBINUNICODE 'a'
   48: qBINPUT 3
   50: XBINUNICODE 'b'
   56: qBINPUT 4
   58: XBINUNICODE 'c'
   64: qBINPUT 5
   66: XBINUNICODE 'd'
   72: qBINPUT 6
   74: XBINUNICODE 'e'
   80: qBINPUT 7
   82: eAPPENDS(MARK at 41)
   83: \x85 TUPLE1
   84: qBINPUT 8
   86: RREDUCE
   87: qBINPUT 9
   89: KBININT13
   91: bBUILD
   92: \x85 TUPLE1
   93: qBINPUT 10
   95: RREDUCE
   96: qBINPUT 11
   98: hBINGET 2
  100: KBININT11
  102: \x86 TUPLE2
  103: qBINPUT 12
  105: bBUILD
  106: .STOP
highest protocol among opcodes = 2

An internal iterator is not pickled as iter(de), but as an iterator of the 
list [a, b, c, d, e] with 3 items consumed. This list also saved as a 
part of a cycle object state, but not as a copy, but as a reference.

There are two alternative patches. Both keep Raymonds optimization of cycle 
iterating, but have advantages. cycle_reduce_2.patch makes __reduce__ faster 
and more memory efficient than Raymonds variant. cycle_reduce_3.patch makes 
unpickled cycle object so optimized as original.

--

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



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
http://bugs.python.org/issue24858
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

--

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



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 = {}
 exec('from distutils.errors import *', {}, ns)
 [k for k in ns.keys() if not k.startswith('Distutils')]
['LibError', 'UnknownFileError', 'LinkError', 'CompileError', 'CCompilerError', 
'PreprocessError']

--
components: Distutils
messages: 248680
nosy: dstufft, eric.araujo, jwilk
priority: normal
severity: normal
status: open
title: distutils.errors not wildcard-import-safe

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



[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 attributes to it [4]

[1] 
http://stackoverflow.com/questions/5227839/why-python-does-not-support-record-type-i-e-mutable-namedtuple
[2] 
http://stackoverflow.com/questions/1123000/does-python-have-anonymous-classes
[3] 
http://stackoverflow.com/questions/1528932/how-to-create-inline-objects-with-properties-in-python
[4] 
http://stackoverflow.com/questions/2827623/python-create-object-and-add-attributes-to-it

--
nosy: +akira

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



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

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



[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 appropriate in the docs (and maybe blog about 
it too for SEO purposes).

--

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



[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 the way to python3.6, I can make the test for 3.4 but is 
3.4 closed for bug fixing?

Can someone check this in 3.5?

--
nosy: +jairotrad

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



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 help(thing) prints help for the python object 'thing'.

As before, I think the _Helpter stuff should be eliminated and 
explanation added for help('topic') and a description of what 'topic's are 
specially recognized.

There has been this improvement
 help('jslfjslfdjlskfj')  # 3.4
no Python documentation found for 'jslfjslfdjlskfj'

 help('jsflksjflkjsl')  # 3.5
No Python documentation found for 'jsflksjflkjsl'.
Use help() to get the interactive help utility.
Use help(str) for help on the str class.

but the latter omits decription of what 'topic' will give special output.  By 
experiment, keywords (help('if')), builtins, and unimported modules 
(help('itertools')) works.

Yes, 3.4 can be patched.

--

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



[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 absurd.
it should either give response of cant decrypt zipfile or some other.
when i try to do it with terminal command  

$zip --encrypt file.zip file

and upon entering the password it is working

my main point is it should not show Bad Password for file and 
and it should extractall

--
components: Extension Modules
files: raj
messages: 248698
nosy: shiva prasanth
priority: normal
severity: normal
status: open
title: Bad Password for file using zipfile module
versions: Python 2.7
Added file: http://bugs.python.org/file40192/raj

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



[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, line 1, in module
  File /usr/lib/python2.7/zipfile.py, line 1040, in extractall
self.extract(zipinfo, path, pwd)
  File /usr/lib/python2.7/zipfile.py, line 1028, in extract
return self._extract_member(member, path, pwd)
  File /usr/lib/python2.7/zipfile.py, line 1082, in _extract_member
with self.open(member, pwd=pwd) as source, \
  File /usr/lib/python2.7/zipfile.py, line 1007, in open
raise RuntimeError(Bad password for file, name)
RuntimeError: ('Bad password for file', zipfile.ZipInfo object at 
0x7faf1d1921e0)

--

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



[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
os.stat(path)
 UnicodeEncodeError: 'latin-1' codec can't encode character '\U0001d53c' in 
 position 22: ordinal not in range(256)

On Windows, os.stat(astralpath) raises
FileNotFoundError: [WinError 2] The system cannot find the file specified: 
'as\U0001.py'
and os.path.exists(astralpath) catches the exception and returns False. It is a 
linux issue, and perhaps a bug, that os.path.exists does not catch the 
exception. To me, as I read the docstring, it should always return True or 
False, with the latter the default, for any input string.

The EditorWindow line is testing for 'badfiles' to be excluded from the recent 
files list.  We can work around the linux behavior with try-except.

--

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



[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

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



[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 http.server.test.
https://hg.python.org/cpython/rev/845c79097c21

New changeset a8de693ebe66 by Robert Collins in branch 'default':
Issue #24774: Fix docstring in http.server.test.
https://hg.python.org/cpython/rev/a8de693ebe66

--
nosy: +python-dev

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



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

--

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



[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 test, or to figure out how to write the 
doctest such there is no trailing whitespace...which would mean capturing the 
output of doctest.DoctTestRunner instead of letting it go the console, and then 
comparing it to an explicitly embedded string.

--

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



[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 tk BMP limit where it can so as to 
not prevent editing and running files with system-legal names. According to 
msg248188, the patch works.  So I am closing the issue as fixed.

--
assignee:  - terry.reedy
resolution:  - fixed
stage: commit review - resolved
status: open - closed

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



[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?

--

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



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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:
 |  
 |  action
 |  Executing the event means executing
 |  action(*argument, **kwargs)
 |  
 |  argument
 |  argument is a sequence holding the positional
 |  arguments for the action.
 |  
 |  kwargs
 |  kwargs is a dictionary holding the keyword
 |  arguments for the action.
 |  
 |  priority
 |  Events scheduled for the same time will be executed
 |  in the order of their priority.
 |  
 |  time
 |  Numeric type compatible with the return value of the
 |  timefunc function passed to the constructor.

--

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



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
http://bugs.python.org/issue24379
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
http://bugs.python.org/issue24782
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
components: Documentation
files: ntdoc.diff
keywords: patch
messages: 248712
nosy: docs@python, rhettinger
priority: low
severity: normal
stage: patch review
status: open
title: Add docstrings to selected named tuples
versions: Python 3.6
Added file: http://bugs.python.org/file40193/ntdoc.diff

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



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 be detected by the presence of a _fields 
attribute that is a list of strings.  That strings can be used as a primary 
sort key before an alphabetical sort of anything not listed in _fields.

 Person = namedtuple('Person', ['nickname', 'firstname', 'age'])
 help(Person)
Help on class Person in module __main__:

class Person(builtins.tuple)
 |  Person(nickname, firstname, age)
 |  
 ...
 |  
 |  --
 |  Static methods defined here:
 |  
 |  __new__(_cls, nickname, firstname, age)
 |  Create new instance of Person(nickname, firstname, age)
 |  
 |  --
 |  Data descriptors defined here:
 |  
 |  __dict__
 |  A new OrderedDict mapping field names to their values
 |  
 |  age
 |  Alias for field number 2
 |  
 |  firstname
 |  Alias for field number 1
 |  
 |  nickname
 |  Alias for field number 0
 |  
 |  --
 |  Data and other attributes defined here:
 |  
 |  _fields = ('nickname', 'firstname', 'age')
 |  
 ...

The data descriptors should list nickname, then firstname, then age to match 
the tuple order in _fields.

--
components: Library (Lib)
messages: 248714
nosy: rhettinger
priority: normal
severity: normal
status: open
title: Pydoc to list data descriptors in _fields order if it exists
type: enhancement
versions: Python 3.6

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



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com




[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 tracker rep...@bugs.python.org
http://bugs.python.org/issue24874
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 does not work.

--

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



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 in the installer to get the full 
runtime? Bearing in mind that most won't need it and many won't be able to 
install it? I'm not sure it is, but you've got a better idea of which packages 
are popular and which ones need it.

--

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



[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 tracker rep...@bugs.python.org
http://bugs.python.org/issue24874
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 ;-)  

https://mail.python.org/pipermail/python-ideas/2015-June/034086.html

--

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



[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

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



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

--

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



[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 understand the background color question.

--

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



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com