[issue30730] Injecting environment variable in subprocess on Windows

2017-06-22 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests: +2374

___
Python tracker 

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



[issue30730] Injecting environment variable in subprocess on Windows

2017-06-22 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

It is possible to inject an environment variable in subprocess on Windows if a 
user data is passed to a subprocess via environment variable.

Provided PR fixes this vulnerability. It also adds other checks for invalid 
environment (variable names containing '=') and command arguments (containing 
'\0').

This was a part of issue13617, but extracted to a separate issue due to 
increased severity.

--
components: Extension Modules
messages: 296618
nosy: paul.moore, serhiy.storchaka, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
stage: patch review
status: open
title: Injecting environment variable in subprocess on Windows
type: security
versions: Python 2.7, Python 3.5, Python 3.6, Python 3.7

___
Python tracker 

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



[issue30619] typing.Union doc incoherence in case a class and its subclass are present

2017-06-22 Thread khyox

Changes by khyox :


--
pull_requests: +2375

___
Python tracker 

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



[issue30731] Use correct executable manifest for windows

2017-06-22 Thread tumagonx

New submission from tumagonx:

I think there is typo in python default manifest (applies to exe dll and pyd) 
in official installation.

currently written as:

...


should be:

...


notice the lowercase "i" in incorrect manifest

--
messages: 296619
nosy: tumagonx
priority: normal
severity: normal
status: open
title: Use correct executable manifest for windows
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



[issue30732] json.dumps() lack of information about RecursionError when using default function

2017-06-22 Thread Krzysztof Nazarewski

New submission from Krzysztof Nazarewski:

RecursionErrors related to json.dumps' default argument give no information 
whatsoever about the underlying issue.

Example:

$ /usr/bin/python3 -c "import json;from decimal import 
Decimal;json.dumps(Decimal(),default=lambda v:round(v, 8))"
Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/lib/python3.6/json/__init__.py", line 238, in dumps
**kw).encode(obj)
  File "/usr/lib/python3.6/json/encoder.py", line 199, in encode
chunks = self.iterencode(o, _one_shot=True)
  File "/usr/lib/python3.6/json/encoder.py", line 257, in iterencode
return _iterencode(o, 0)
  File "", line 1, in 
  File "/usr/lib/python3.6/_pydecimal.py", line 1919, in __round__
return self.quantize(exp)
  File "/usr/lib/python3.6/_pydecimal.py", line 2603, in quantize
return ans._fix(context)
  File "/usr/lib/python3.6/_pydecimal.py", line 1720, in _fix
if not self:
  File "/usr/lib/python3.6/_pydecimal.py", line 852, in __bool__
return self._is_special or self._int != '0'
RecursionError: maximum recursion depth exceeded in comparison


Details:
I have encountered issue when porting my code from Python 2 to 3.
Traceback shows depth of 6, but says recursion was already reached.
My first idea was that recursion counter was messed up, but it was not the case.
Recursion limit was indeed reached because round() in Python 3 is returning 
Decimal and then applies default infinitely.
The part of recursing code was inside C so it was not displayed in the 
traceback.

Summing up it took me over 2 hours to determine what was wrong with the code.


Fix ideas:
- do not call default more than once on the same root object (might be 
problematic to implement)
- raise an error if new object is equal to the previous (partially resolving 
issue since custom objects might not implement equality operator)
- add a flag to raise an error when new object's class is equal to the previous 
(might give false positives hence the flag)

--
components: Library (Lib)
messages: 296620
nosy: Krzysztof Nazarewski
priority: normal
severity: normal
status: open
title: json.dumps() lack of information about RecursionError when using default 
function
type: enhancement
versions: Python 3.3, Python 3.4, Python 3.5, Python 3.6, Python 3.7

___
Python tracker 

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



[issue30732] json.dumps() lacks information about RecursionError related to default function

2017-06-22 Thread Krzysztof Nazarewski

Changes by Krzysztof Nazarewski :


--
title: json.dumps() lack of information about RecursionError when using default 
function -> json.dumps() lacks information about RecursionError related to 
default function

___
Python tracker 

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



[issue30731] Use correct executable manifest for windows

2017-06-22 Thread Tim Golden

Changes by Tim Golden :


--
components: +Windows
nosy: +paul.moore, steve.dower, tim.golden, zach.ware

___
Python tracker 

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



[issue30727] [2.7] test_threading.ConditionTests.test_notify() hangs randomly on Python 2.7

2017-06-22 Thread Kristján Valur Jónsson

Kristján Valur Jónsson added the comment:

My favorite topic :)

You could use threading.Barrier() which is designed to synchronize N threads 
doing this kind of lock-step processing.  The problem is that the Barrier() is 
implemented using Condition variables, so for unit-testing, Condition 
Variables, this presents a conundrum...

--
nosy: +kristjan.jonsson

___
Python tracker 

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



[issue30727] [2.7] test_threading.ConditionTests.test_notify() hangs randomly on Python 2.7

2017-06-22 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Yes, the whole reason I wrote the tests like this is to avoid depending on 
Python synchronization primitives inside the tests for Python synchronization 
primitives.

--

___
Python tracker 

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



[issue30727] [2.7] test_threading.ConditionTests.test_notify() hangs randomly on Python 2.7

2017-06-22 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I still didn't see a code, but perhaps we could use a spin-lock. Every child 
thread increases the global counter, and the main thread waits until the 
counter equal to the number of child threads (sleeping for short time in a 
loop) before calling notify().

--

___
Python tracker 

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



[issue30728] IDLE: Modernize configdialog code.

2017-06-22 Thread Cheryl Sabella

Cheryl Sabella added the comment:

Hi Terry,

I don't have a script for the renaming.  Since I was reading the code for the 
docstrings at the same time, I just made the changes as I went along.  However, 
my primary intent is to save you time and work, not cause more, so I will 
prepare the information requested.  Is the best format a txt file?  Or should 
it be a dictionary mapping that can be fed into a replace?  Please let me know.

I'm still trying to figure out what changes to include in a pull request, so 
it's helpful to have these steps defined.  I realize I shouldn't have included 
the change to the keys file with this request, but I was just thinking that I 
didn't want to forget about it and I included it with the add.

For PR2307, should I separate the docstrings into a separate PR or do you want 
to let this one go as is?

Would it be helpful to post msg296603 and the roadmap on idle-dev?  I had also 
worked on this as part of the roadmap for modernizing code.  I don't really 
have a clear picture of the current patches that you want to apply.  You're so 
well organized, maybe you can share your specific goals for existing patches?  
For example, if you know there are 2 config_keys patches that are ready to go, 
but might need some testing, then I can help with that (if there was some way 
for me to help).  That way I can focus on the parts of the project that would 
help you most without causing undue extra work.  I saw the roadmap as a TODO 
list of things that needed patches without realizing some of the issues already 
had patches.


Thanks!

--

___
Python tracker 

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



[issue30733] Typo in Document What's New: Calendar

2017-06-22 Thread Jonathon Vandezande

New submission from Jonathon Vandezande:

Says:
The HTMLCalendar has added new class attribute which ease the customisation the 
CSS classes in the produced HTML calendar. (Contributed by Oz Tiram in 
bpo-30095.)

Should say:
The HTMLCalendar has added new class attributes which ease the customisation of 
the CSS classes in the produced HTML calendar. (Contributed by Oz Tiram in 
bpo-30095.)


Summary of changes:
'attribute' should be plural
Missing an 'of' in front of 'the CSS classes', could also substitute 'of' for 
'the'

--
assignee: docs@python
components: Documentation
messages: 296625
nosy: Jonathon Vandezande, docs@python
priority: normal
severity: normal
status: open
title: Typo in Document What's New: Calendar
type: enhancement
versions: Python 3.7

___
Python tracker 

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



[issue30734] 200000 indexes crashes eval and python (without eval)

2017-06-22 Thread George Shuklin

New submission from George Shuklin:

If there is too many indexes python crashes:

a[0][0][0][0]

segfault at 7ffd25fe6ff8 ip 564528c8cfe6 sp 7ffd25fe7000 error 6 in 
python2.7[564528b6a000+324000]

code to generate code:

>>> i="[0]"*20
>>> file('/tmp/bad_python.py','w').write('a=[]\na.append(a)\nprint(type(a'+i+'))\n')

python2 /tmp/bad_python.py 
Segmentation fault (core dumped)

python3 /tmp/bad_python.py 
RecursionError: maximum recursion depth exceeded during compilation

Just in case I upload generated code.

This bug affects both eval() function and python interpreter.

--
components: Interpreter Core
files: bad_python.py.gz
messages: 296626
nosy: george-shuklin
priority: normal
severity: normal
status: open
title: 20 indexes crashes eval and python (without eval)
type: crash
versions: Python 2.7
Added file: http://bugs.python.org/file46968/bad_python.py.gz

___
Python tracker 

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



[issue30733] Typo in Document What's New: Calendar

2017-06-22 Thread Mariatta Wijaya

Changes by Mariatta Wijaya :


--
assignee: docs@python -> Mariatta
nosy: +Mariatta

___
Python tracker 

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



[issue30619] typing.Union doc incoherence in case a class and its subclass are present

2017-06-22 Thread Mariatta Wijaya

Mariatta Wijaya added the comment:


New changeset 6580c19bbbe7bc9bc0884699afd69184f523b32e by Mariatta (khyox) in 
branch 'master':
bpo-30619: Clarify typing.Union documentation (GH-2326)
https://github.com/python/cpython/commit/6580c19bbbe7bc9bc0884699afd69184f523b32e


--
nosy: +Mariatta

___
Python tracker 

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



[issue30619] typing.Union doc incoherence in case a class and its subclass are present

2017-06-22 Thread Mariatta Wijaya

Changes by Mariatta Wijaya :


--
stage:  -> backport needed

___
Python tracker 

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



[issue30731] Use correct executable manifest for windows

2017-06-22 Thread Steve Dower

Steve Dower added the comment:

What is the impact of this error? I know of people who are relying on the 
manifest who have not raised any issue, so perhaps it isn't actually that 
important?

--

___
Python tracker 

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



[issue30735] Python 3.6.1 test_asyncio fails on Solaris 11

2017-06-22 Thread Peter

New submission from Peter:

I was building all the latest Python (2.7.13, 3.4.6, 3.5.3 and 3.6.1) on 
Solaris 11 using gcc 4.9.2 and found that Python 3.6.1 test_asyncio 
consistently fails while the other versions don't.

Details:


$ ./python -W default -bb -E -W error::BytesWarning -m test -r -w -j 0 
test_asyncio
Using random seed 44984
Run tests in parallel using 10 child processes
0:00:28 [1/1/1] test_asyncio failed
Executing  took 
0.178 seconds
test test_asyncio failed -- Traceback (most recent call last):
  File "/usr/local/src/Python-3.6.1/Lib/unittest/mock.py", line 1179, in patched
return func(*args, **keywargs)
  File "/usr/local/src/Python-3.6.1/Lib/test/test_asyncio/test_base_events.py", 
line 1232, in test_create_connection_service_name
t, p = self.loop.run_until_complete(coro)
  File "/usr/local/src/Python-3.6.1/Lib/asyncio/base_events.py", line 466, in 
run_until_complete
return future.result()
  File "/usr/local/src/Python-3.6.1/Lib/asyncio/base_events.py", line 732, in 
create_connection
infos = f1.result()
  File "/usr/local/src/Python-3.6.1/Lib/concurrent/futures/thread.py", line 55, 
in run
result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/src/Python-3.6.1/Lib/socket.py", line 743, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 9] service name not available for the specified socket 
type

1 test failed:
test_asyncio
Re-running failed tests in verbose mode
Re-running test 'test_asyncio' in verbose mode

... snipped ...

==
ERROR: test_create_connection_service_name 
(test.test_asyncio.test_base_events.BaseEventLoopWithSelectorTests)
--
Traceback (most recent call last):
  File "/usr/local/src/Python-3.6.1/Lib/unittest/mock.py", line 1179, in patched
return func(*args, **keywargs)
  File "/usr/local/src/Python-3.6.1/Lib/test/test_asyncio/test_base_events.py", 
line 1232, in test_create_connection_service_name
t, p = self.loop.run_until_complete(coro)
  File "/usr/local/src/Python-3.6.1/Lib/asyncio/base_events.py", line 466, in 
run_until_complete
return future.result()
  File "/usr/local/src/Python-3.6.1/Lib/asyncio/base_events.py", line 732, in 
create_connection
infos = f1.result()
  File "/usr/local/src/Python-3.6.1/Lib/concurrent/futures/thread.py", line 55, 
in run
result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/src/Python-3.6.1/Lib/socket.py", line 743, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 9] service name not available for the specified socket 
type

==
ERROR: test_server_close (test.test_asyncio.test_events.PollEventLoopTests)
--
Traceback (most recent call last):
  File "/usr/local/src/Python-3.6.1/Lib/test/test_asyncio/test_events.py", line 
1340, in test_server_close
ConnectionRefusedError, client.connect, ('127.0.0.1', port))
  File "/usr/local/src/Python-3.6.1/Lib/unittest/case.py", line 728, in 
assertRaises
return context.handle('assertRaises', args, kwargs)
  File "/usr/local/src/Python-3.6.1/Lib/unittest/case.py", line 177, in handle
callable_obj(*args, **kwargs)
TimeoutError: [Errno 145] Connection timed out

==
ERROR: test_sock_client_fail (test.test_asyncio.test_events.PollEventLoopTests)
--
Traceback (most recent call last):
  File "/usr/local/src/Python-3.6.1/Lib/test/test_asyncio/test_events.py", line 
471, in test_sock_client_fail
self.loop.sock_connect(sock, address))
  File "/usr/local/src/Python-3.6.1/Lib/asyncio/base_events.py", line 466, in 
run_until_complete
return future.result()
  File "/usr/local/src/Python-3.6.1/Lib/asyncio/selector_events.py", line 451, 
in sock_connect
return (yield from fut)
  File "/usr/local/src/Python-3.6.1/Lib/asyncio/selector_events.py", line 481, 
in _sock_connect_cb
raise OSError(err, 'Connect call failed %s' % (address,))
TimeoutError: [Errno 145] Connect call failed ('127.0.0.1', 56937)

==
ERROR: test_server_close (test.test_asyncio.test_events.SelectEventLoopTests)
--
Traceback (most recent call last):
  File "/usr/local/src/Python-3.6.1/Lib/test/test_asyncio/test_events.py", line 
1340, in test_server_close
ConnectionRefusedError, client.connect, ('127.0.0.1', port))
  File "/usr/local/src/Python-3.6.1/Lib/unittest/case.py", line 728, in 
assertRaises
return context.handle('assertRaises', args, kwargs)
  File "/usr/local/src/Python-3.6.1

[issue30736] Support Unicode 10.0

2017-06-22 Thread Steven D'Aprano

New submission from Steven D'Aprano:

Unicode 10.0 is now finalized:

http://blog.unicode.org/2017/06/announcing-unicode-standard-version-100.html

It would be good if Python 3.7 would support it. (I think that Python currently 
supports Unicode 8?)

--
messages: 296630
nosy: steven.daprano
priority: normal
severity: normal
status: open
title: Support Unicode 10.0
type: enhancement
versions: Python 3.7

___
Python tracker 

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



[issue30725] Windows installer for 2.7.13 doesn't install pip when installing to C:\Program Files

2017-06-22 Thread Kevin Keating

Kevin Keating added the comment:

Here's the log file.  I'm assuming that the relevant bit starts at around line 
18663:

CAQuietExec:  Collecting setuptools
CAQuietExec:  Collecting pip
CAQuietExec:  Installing collected packages: setuptools, pip
CAQuietExec:  Exception:
CAQuietExec:  Traceback (most recent call last):
CAQuietExec:File 
"c:\users\keating\appdata\local\temp\tmpcvofqv\pip-9.0.1-py2.py3-none-any.whl\pip\basecommand.py",
 line 215, in main
CAQuietExec:  status = self.run(options, args)
CAQuietExec:File 
"c:\users\keating\appdata\local\temp\tmpcvofqv\pip-9.0.1-py2.py3-none-any.whl\pip\commands\install.py",
 line 342, in run
CAQuietExec:  prefix=options.prefix_path,
CAQuietExec:File 
"c:\users\keating\appdata\local\temp\tmpcvofqv\pip-9.0.1-py2.py3-none-any.whl\pip\req\req_set.py",
 line 784, in install
CAQuietExec:  **kwargs
CAQuietExec:File 
"c:\users\keating\appdata\local\temp\tmpcvofqv\pip-9.0.1-py2.py3-none-any.whl\pip\req\req_install.py",
 line 851, in install
CAQuietExec:  self.move_wheel_files(self.source_dir, root=root, 
prefix=prefix)
CAQuietExec:File 
"c:\users\keating\appdata\local\temp\tmpcvofqv\pip-9.0.1-py2.py3-none-any.whl\pip\req\req_install.py",
 line 1064, in move_wheel_files
CAQuietExec:  isolated=self.isolated,
CAQuietExec:File 
"c:\users\keating\appdata\local\temp\tmpcvofqv\pip-9.0.1-py2.py3-none-any.whl\pip\wheel.py",
 line 345, in move_wheel_files
CAQuietExec:  clobber(source, lib_dir, True)
CAQuietExec:File 
"c:\users\keating\appdata\local\temp\tmpcvofqv\pip-9.0.1-py2.py3-none-any.whl\pip\wheel.py",
 line 323, in clobber
CAQuietExec:  shutil.copyfile(srcfile, destfile)
CAQuietExec:File "C:\Program Files\Python27\lib\shutil.py", line 83, in 
copyfile
CAQuietExec:  with open(dst, 'wb') as fdst:
CAQuietExec:  IOError:  Permission denied: 'C:\\Program 
Files\\Python27\\Lib\\site-packages\\easy_install.py'

--
Added file: http://bugs.python.org/file46969/log.txt

___
Python tracker 

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



[issue30725] Windows installer for 2.7.13 doesn't install pip when installing to C:\Program Files

2017-06-22 Thread Paul Moore

Paul Moore added the comment:

Presumably you overrode the default location of C:\Python27 in favour
of C:\Program Files?

I'm not sure we've ever supported installing Python 2.7 in "Program
Files", precisely because of the security constraints on that
directory (plus the fact that a long time ago, directories with spaces
in them were badly handled, but that problem should no longer exist).

--

___
Python tracker 

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



[issue30736] Support Unicode 10.0

2017-06-22 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
components: +Unicode
nosy: +benjamin.peterson, ezio.melotti, haypo, lemburg
stage:  -> needs patch

___
Python tracker 

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



[issue30736] Support Unicode 10.0

2017-06-22 Thread Raymond Hettinger

Raymond Hettinger added the comment:

+1

--
nosy: +rhettinger

___
Python tracker 

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



[issue30725] Windows installer for 2.7.13 doesn't install pip when installing to C:\Program Files

2017-06-22 Thread Kevin Keating

Kevin Keating added the comment:

Yeah, I only run into this problem if I install Python 2.7.13 into C:\Program 
Files\Python27.  If I install Python 2.7.12 or 3.6.1 to the same location, then 
everything works fine.  I can successfully install Python 2.7.13 to 
C:\Python27, C:\Programs\Python27, or "C:\Path with spaces\Python27".

--

___
Python tracker 

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



[issue17187] Python segfaults from improperly formed and called function

2017-06-22 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I suggest to close this issue as "not a bug" or "wont fix".

--
nosy: +serhiy.storchaka
status: open -> pending

___
Python tracker 

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



[issue30725] Windows installer for 2.7.13 doesn't install pip when installing to C:\Program Files

2017-06-22 Thread Steve Dower

Steve Dower added the comment:

The relevant lines are just above the ones you posted, but I can't view the 
attachment from my phone so I'll have to look later.

Seems like the custom action is running as the original user and not admin. 
This should just be a flag on the command, though since we're building the msi 
without any tools it'll take some effort to figure that out.

Personally I'd rather say it's not supported. Install without pip and then add 
it later. But if someone comes with a patch and test results I'll happily merge 
it.

--

___
Python tracker 

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



[issue30731] Use correct executable manifest for windows

2017-06-22 Thread tumagonx

tumagonx added the comment:

Not really, just want to be correct... AFAIK wrong manifest like that will 
prevent execution on older Windows such XP saying application not configured 
properly. Apparently earlier Windows has been stricter. But it's not like 
official python 3.6 support XP.

--

___
Python tracker 

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



[issue30725] Windows installer for 2.7.13 doesn't install pip when installing to C:\Program Files

2017-06-22 Thread Eryk Sun

Eryk Sun added the comment:

Issue 27888 switched to using WiX CAQuietExec task to hide the console, but it 
also changed the action flags to no longer include 
msidbCustomActionTypeNoImpersonate (2048). Without this flag, the installer 
impersonates the user for these custom actions: UpdatePip, RemovePip, 
CompilePyc, CompilePyo, CompileGrammar. 

As a workaround, run the .msi from an elevated command prompt. In this case, I 
also recommend enabling the option to pre-compile the standard library.

--
nosy: +eryksun

___
Python tracker 

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



[issue30697] segfault in PyErr_NormalizeException() after memory exhaustion

2017-06-22 Thread Xavier de Gaye

Changes by Xavier de Gaye :


--
pull_requests: +2376

___
Python tracker 

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



[issue30697] segfault in PyErr_NormalizeException() after memory exhaustion

2017-06-22 Thread Xavier de Gaye

Xavier de Gaye added the comment:

PR 2327 lacks the test cases mentionned below for the moment.

1) With PR 2327, the memerr.py script runs correctly:

$ ./python /path/to/memerr.py
Fatal Python error: Cannot recover from MemoryErrors while normalizing 
exceptions.

Current thread 0x7f37eab54fc0 (most recent call first):
  File "/path/to/memerr.py", line 8 in foo
  File "/path/to/memerr.py", line 13 in 
Aborted (core dumped)

2) With PR 2327, exceeding the recursion limit in PyErr_NormalizeException() 
raises a RecursionError:

$ ./python -q
>>> import _testcapi
>>> raise _testcapi.RecursingInfinitelyError
Traceback (most recent call last):
  File "", line 1, in 
RecursionError: maximum recursion depth exceeded while normalizing an exception
>>>

Note that when the infinite recursion is started by instantiating an exception 
written in Python code instead, the RecursionError is set by 
Py_EnterRecursiveCall() instead of by PyErr_NormalizeException().

3) With PR 2327, the test case in PR 1981 runs correctly (so PR 2327 fixes also 
issue 22898):

$ ./python /path/to/crasher.py# crasher.py is the code run by 
test_recursion_normalizing_exception() in PR 1981
Done.
Traceback (most recent call last):
  File "/path/to/crasher.py", line 36, in 
recurse(setrecursionlimit(depth + 2) - depth - 1)
  File "/path/to/crasher.py", line 19, in recurse
recurse(cnt)
  File "/path/to/crasher.py", line 19, in recurse
recurse(cnt)
  File "/path/to/crasher.py", line 19, in recurse
recurse(cnt)
  [Previous line repeated 1 more times]
  File "/path/to/crasher.py", line 21, in recurse
generator.throw(MyException)
  File "/path/to/crasher.py", line 25, in gen
yield
RecursionError: maximum recursion depth exceeded while calling a Python object
sys:1: ResourceWarning: unclosed file <_io.FileIO name='/path/to/crasher.py' 
mode='rb' closefd=True>

--

___
Python tracker 

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



[issue30725] Windows installer for 2.7.13 doesn't install pip when installing to C:\Program Files

2017-06-22 Thread Paul Moore

Paul Moore added the comment:

Note that even if you do get this working, you'll still need to run
pip from an elevated prompt every time you want to use it to install
new packages (or use --user).

--

___
Python tracker 

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



[issue30703] test_multiprocessing_forkserver hangs on the master branch

2017-06-22 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Matt, if you try the following command, it will run the specific test in a loop 
in verbose mode:

$ ./python -m test --timeout=30 -F -m test_many_processes -v 
test_multiprocessing_forkserver

--
nosy: +pitrou

___
Python tracker 

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



[issue30703] test_multiprocessing_forkserver hangs on the master branch

2017-06-22 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
title: regrtest hangs on the master branch -> test_multiprocessing_forkserver 
hangs on the master branch

___
Python tracker 

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



[issue30725] Windows installer for 2.7.13 doesn't install pip when installing to C:\Program Files

2017-06-22 Thread Eryk Sun

Eryk Sun added the comment:

You can still create and use virtual environments (virtualenv) without 
requiring administrator access.

--

___
Python tracker 

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



[issue30725] Windows installer for 2.7.13 doesn't install pip when installing to C:\Program Files

2017-06-22 Thread Kevin Keating

Kevin Keating added the comment:

Running the msi from an elevated command prompt worked.  Thanks!

--

___
Python tracker 

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



[issue30737] Update devguide link to the new URL

2017-06-22 Thread Mariatta Wijaya

New submission from Mariatta Wijaya:

The Devguide has a new URL: https://devguide.python.org

I believe there are a few references to the devguide from CPython 
documentation. Those links should be updated to the new url.

--
assignee: Mariatta
components: Documentation
messages: 296644
nosy: Mariatta
priority: normal
severity: normal
stage: needs patch
status: open
title: Update devguide link to the new URL
versions: Python 3.5, Python 3.6, Python 3.7

___
Python tracker 

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



[issue30737] Update devguide link to the new URL

2017-06-22 Thread Mariatta Wijaya

Mariatta Wijaya added the comment:

This is in progress.

--

___
Python tracker 

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



[issue30738] __next__() method in iterators 9.9

2017-06-22 Thread Hiba

New submission from Hiba:

class Reverse:
"""Iterator for looping over a sequence backwards."""
def __init__(self, data):
self.data = data
self.index = len(data)

def __iter__(self):
return self

def next(self):
if self.index == 0:
raise StopIteration
self.index = self.index - 1
return self.data[self.index]


*
The next() method in the above code snippet(from 9.9 Iterators section in 
Tutorial is not correctly overridden. It's missing the underscores.

--
assignee: docs@python
components: Documentation
messages: 296646
nosy: docs@python, hiba
priority: normal
severity: normal
status: open
title: __next__() method in iterators 9.9
versions: Python 2.7

___
Python tracker 

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



[issue30738] __next__() method in iterators 9.9

2017-06-22 Thread Eryk Sun

Eryk Sun added the comment:

Did you try the example in Python 2? Did you click on the "next" link in the 
preceding paragraph? Please read the following:

https://docs.python.org/2/library/stdtypes.html#iterator.next

iterator.next()
   Return the next item from the container

In Python 3, this method was renamed `__next__`.

--
nosy: +eryksun
resolution:  -> not a bug
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



[issue24813] Redesign Help => About IDLE, make it non-modal

2017-06-22 Thread Terry J. Reedy

Terry J. Reedy added the comment:

The proposed patch does several things that can be considered independently.

1. Give the 'title' parameter a default value 'About IDLE'.  Instead, add the 
python/IDLE version, as done for IDLE doc in help.py.  (In both cases, one 
might wonder why title is a parameter rather than being calculated within 
__init__.  Perhaps an example of YAGNI.)

2. Make About IDLE non-modal.  The addition of show(), _destroyed(), and 
changes in AboutDialog.close() are part of this.  Modal seems standard, at 
least on Windows.  What about other systems?

Mozilla FireFox and Thunderbird are obnoxiously semi-modal.  Steam launcher is 
fully modal, with an icon added to the Taskbar, so one can easily find the 
window to close it.  Any patch must make sure this happens. Clicking About 
Steam menu entry a second time lifts the first window to view.  The patch 
imitates this.

To me, the main justification to go non-modal is that About IDLE opens 
documents in custom read-only windows rather than in a browser.  README is one 
that one might want to keep open for awhile.  Ditto for a future Roadmap file.

3. Add an icon with code based on the commented out code we removed (see lines 
with 'logofn', self.picture, and labelPicture).  Yes, but we should try using 
the better looking "idle_48.png" with tk 8.6.

4. Change from white on medium gray to black on light gray.  I might also try 
the standard black on white.  Or black on python yellow.  If we do A. below, 
the background should work with the blue link tagging.

5. I believe all 6 of the current linked documents are pre-loaded.  I think 
this unnecessary as they are generally ignored.  Load on demand is fine.

6. Documents are displayed in a new read-only Text that is part of the dialog 
itself.  If we went in this direction, I would want to first try using the new 
TextviewFrame.  But I think it better to open textviews non-modally so one can 
keep a document around after closing AboutIDLE.  I think this will be more true 
if/when we switch to tabbed notebooks or the equivalent.

A. What the patch does not do is switch from buttons to blue-underlined links, 
as I have discussed elsewhere, nor do other rearrangements and changes.  I want 
to move What's New to the top, move the Python license and copyright to the 
bottom, and remove Python credits.  The idle-dev email must be replaced with a 
link to the idle-dev subscription page, as spam (which continues) prompted a 
switch to subscription required.  This will be a separate issue.

--

___
Python tracker 

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



[issue30731] Use correct executable manifest for windows

2017-06-22 Thread Segev Finer

Changes by Segev Finer :


--
pull_requests: +2377

___
Python tracker 

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



[issue24813] Redesign Help => About IDLE, make it non-modal

2017-06-22 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Cheryl, I suggest to start with any of 1, 3, and 4.  My preference is 3. To be 
sure of avoiding merge conflicts, I would do one at a time.  Narrowly focused 
PRs should be quick to review, test, and merge.

--
nosy: +csabella

___
Python tracker 

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



[issue21519] IDLE : Bug in keybinding validity check

2017-06-22 Thread Terry J. Reedy

Terry J. Reedy added the comment:

#6739 is about rejecting *invalid* sequences, this is about rejecting a 
*duplicate* valid sequence.  Both fixes are needed.

--

___
Python tracker 

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



[issue6739] IDLE: refuse invalid key bindings

2017-06-22 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Patch mostly looks good.  To apply now, keybindingDialog.py must become 
config_key.py.  I have no idea what other merge issues there might be.  The 
name of the new function'KeySequenceCheck()' should be 'sequence_ok()'.  A 
minimal new test should call sequence_ok with invalid sequence 
'' and valid sequence ''.

--
stage: patch review -> test needed

___
Python tracker 

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



[issue30727] [2.7] test_threading.ConditionTests.test_notify() hangs randomly on Python 2.7

2017-06-22 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests: +2378

___
Python tracker 

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



[issue30728] IDLE: Modernize configdialog code.

2017-06-22 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Yes, I intend to add the expanded list, further edited, to the roadmap, or 
something not tied to one issue.  I should add changing messagebox and font 
imports.

Except for switching to ttk widgets, the changes listed are invisible to users. 
 The purpose of these changes is to make it easier to make changes that are 
visible, that improve the user experience, without introducing regressions (the 
second reason tests are needed).  So once we make the invisible changes in a 
file, we should look at making visible changes in the same file.

Having re-written help_about *and* the tests, we can and logically should 
proceed to visible changes.  I reviewed the patch for #24813 and identified 6 
independent changes.  I want to do 1, 3, 4, and likely 2.  I added a note for 
you there.

For existing patches, new tests help, code changes hinder.  We face tradeoffs 
and chicken-and-egg problems constantly.  For config_key, I decided that 
patches for both #6739 and #21519 should be applied, with revision and tests, 
in that order.  I added a note to #6739 about making a PR.  Try it if you like.

I think this issue should remain on hold until I look more at existing patches.

The 'F3' typo/bug was noted in 2014 in msg220625 but was not fixed or added to 
the existing patch.  Doing something was better ;-).  In the future, in a 
similar situation, you could add a trivial PR and request me to review.

--

___
Python tracker 

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



[issue30727] [2.7] test_threading.ConditionTests.test_notify() hangs randomly on Python 2.7

2017-06-22 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Actually this approach already is used in this test. PR 2334 uses it to ensure 
all workers into cond.wait().

--

___
Python tracker 

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



[issue30736] Support Unicode 10.0

2017-06-22 Thread Matthew Barnett

Matthew Barnett added the comment:

@Steven: Python 3.6 supports Unicode 9.


Python 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 18:41:36) [MSC v.1900 64 bit 
(AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import unicodedata
>>> unicodedata.unidata_version
'9.0.0'

--
nosy: +mrabarnett

___
Python tracker 

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



[issue13601] sys.stderr should be line-buffered when stderr is not a TTY

2017-06-22 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Amusingly, I didn't realize I had already opened this issue when one of our 
users hit it recently which led me to add TextIOWrapper.reconfigure(): 
https://bugs.python.org/issue30526

Still, I think it would be a good idea to do this as well (switch sys.stderr to 
line-buffered unconditionally), especially now that Nick found a POSIX 
reference that states C stderr should never be fully buffered.

--
versions: +Python 3.7 -Python 3.6

___
Python tracker 

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



[issue27163] IDLE entry for What's New in Python 3.6

2017-06-22 Thread veganaiZe

Changes by veganaiZe :


--
nosy: +veganaiZe

___
Python tracker 

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



[issue26143] Ensure that IDLE's stdlib imports are from the stdlib

2017-06-22 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
keywords: +patch

___
Python tracker 

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



[issue24813] Redesign Help => About IDLE, make it non-modal

2017-06-22 Thread Cheryl Sabella

Changes by Cheryl Sabella :


--
pull_requests: +2379

___
Python tracker 

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



[issue24813] Redesign Help => About IDLE, make it non-modal

2017-06-22 Thread Cheryl Sabella

Cheryl Sabella added the comment:

I submitted a PR for #3.

In Mark's patch, he had moved the existing text, email, docs, etc to column 1 
instead of column 0 for better looking alignment.  I can add that part of the 
redesign, but for now I just added the icon.

--

___
Python tracker 

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



[issue30619] typing.Union doc incoherence in case a class and its subclass are present

2017-06-22 Thread Mariatta Wijaya

Changes by Mariatta Wijaya :


--
pull_requests: +2380

___
Python tracker 

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



[issue30731] Use correct executable manifest for windows

2017-06-22 Thread tumagonx

tumagonx added the comment:

@Segev
oops, must be my own typo "i" when I try repair the manifest. sorry about that.

--

___
Python tracker 

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



[issue30619] typing.Union doc incoherence in case a class and its subclass are present

2017-06-22 Thread Mariatta Wijaya

Mariatta Wijaya added the comment:


New changeset 8baf78b98f3acd76e51a4381542ff1612911b18f by Mariatta in branch 
'3.6':
[3.6] bpo-30619: Clarify typing.Union documentation (GH-2326) (GH-2337)
https://github.com/python/cpython/commit/8baf78b98f3acd76e51a4381542ff1612911b18f


--

___
Python tracker 

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



[issue24813] Redesign Help => About IDLE, make it non-modal

2017-06-22 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I experimented with how the icon looks with different backgrounds, for point 4. 
 Because the paper holes are transparent, white is bad, proposed light gray 
okay, black is good.  Overall white on black is better than white on current 
dingy gray, so I consider making the background darker rather than flipping 
colors a possibility.  I would suggest using user's color scheme (which has be 
requested for dialog in general) except that icon on white looks so poor.  The 
htest makes experimenting easy.  If you get to 4, give your opinion.

Another option would be to redo the two files.  They are private copies and I 
believe not used otherwise.

--

___
Python tracker 

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



[issue30619] typing.Union doc incoherence in case a class and its subclass are present

2017-06-22 Thread Mariatta Wijaya

Changes by Mariatta Wijaya :


--
pull_requests: +2381

___
Python tracker 

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



[issue30303] IDLE: Add _utest to textview and add textview tests

2017-06-22 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
resolution:  -> fixed
stage: backport needed -> 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



[issue30619] typing.Union doc incoherence in case a class and its subclass are present

2017-06-22 Thread Mariatta Wijaya

Mariatta Wijaya added the comment:


New changeset ce1bd6ac7ffaf396157a9ceb55b281a3b196323f by Mariatta in branch 
'3.5':
[3.5] bpo-30619: Clarify typing.Union documentation (GH-2326) (GH-2338)
https://github.com/python/cpython/commit/ce1bd6ac7ffaf396157a9ceb55b281a3b196323f


--

___
Python tracker 

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



[issue30619] typing.Union doc incoherence in case a class and its subclass are present

2017-06-22 Thread Mariatta Wijaya

Mariatta Wijaya added the comment:

Fixed and backported to 3.5 and 3.6.
Thanks!

--
resolution:  -> fixed
stage: backport needed -> resolved
status: open -> closed
versions: +Python 3.7

___
Python tracker 

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



[issue30016] No sideways scrolling in IDLE

2017-06-22 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I believe this is about, or would be satisfied, by a horizontal scrollbar, the 
subject of #1207613.

--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> Idle Editor: Bottom Scroll Bar

___
Python tracker 

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



[issue29910] Ctrl-D eats a character on IDLE

2017-06-22 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I have since discovered the [unified][split] buttons in the diff windows.
I have also starting applying the return run elsewhere in idlelib.

I had to think about paren_match_event.  It is bound to KeyRelease-parenright, 
etc, via config-extentions.def and should never be changed by the user.  Nor 
should those binding be duplicated.  But they could be, at least now.  So 
always returning 'break' is probably safest.

--
versions:  -Python 2.7, Python 3.5

___
Python tracker 

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



[issue15308] IDLE - add an "Interrupt Execution" to shell menu

2017-06-22 Thread Terry J. Reedy

Changes by Terry J. Reedy :


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



[issue30709] Bad getter from Descriptor#Properties example

2017-06-22 Thread AnqurVanillapy

Changes by AnqurVanillapy :


--
pull_requests: +2382

___
Python tracker 

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



[issue30709] Bad getter from Descriptor#Properties example

2017-06-22 Thread AnqurVanillapy

AnqurVanillapy added the comment:

Previous conversation here: https://github.com/python/cpython/pull/2288

--

___
Python tracker 

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



[issue30709] Bad getter from Descriptor#Properties example

2017-06-22 Thread Mariatta Wijaya

Mariatta Wijaya added the comment:


New changeset b066edfb1b268e90ea11f45dd1827f46d7ceec88 by Mariatta (_ = NaN) in 
branch 'master':
bpo-30709: Improve code example in Descriptor HowTo doc (GH-2339)
https://github.com/python/cpython/commit/b066edfb1b268e90ea11f45dd1827f46d7ceec88


--
nosy: +Mariatta

___
Python tracker 

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



[issue16198] IDLE - tabbing in a string always brings up file completion window

2017-06-22 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I pushed a patch on another issue that fixed tabbing on lines after the first 
line within multiline strings.  With 3.6, I verified that tabbing anywhere on 
the same line of an opening quote, except immediately after the quote, brings 
up the box.

--
versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.4, Python 3.5

___
Python tracker 

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



[issue27162] Add idlelib.interface module

2017-06-22 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Nick later suggested against this, and in the absence of requests, I don't want 
to do this, at least not before 3.7, if ever.  What if we make a change that 
makes the public promise awkward? The docstring for colordelegator should say 
how it is used (in IDLE and turtledemo).  Anyone else interested could follow 
the instructions, at their own risk, not mine.

--
resolution:  -> rejected
stage: needs patch -> 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



[issue30709] Bad getter from Descriptor#Properties example

2017-06-22 Thread Mariatta Wijaya

Changes by Mariatta Wijaya :


--
pull_requests: +2384

___
Python tracker 

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



[issue30709] Bad getter from Descriptor#Properties example

2017-06-22 Thread Mariatta Wijaya

Changes by Mariatta Wijaya :


--
pull_requests: +2386

___
Python tracker 

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



[issue30709] Bad getter from Descriptor#Properties example

2017-06-22 Thread Mariatta Wijaya

Changes by Mariatta Wijaya :


--
pull_requests: +2385

___
Python tracker 

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



[issue26993] Copy idlelib *.py files with new names

2017-06-22 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Files were renamed later in May.  Some things were backported to 3.5 and even 
2.7 for 3.5.3 and 2.7.13.  Anything involving ttk, which will soon be nearly 
all tkinter code, could not and cannot be backported.

--
resolution: postponed -> rejected
stage: test needed -> 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



[issue26627] IDLE incorrectly labeling error as internal

2017-06-22 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
assignee:  -> terry.reedy
resolution:  -> duplicate
stage: test needed -> resolved
status: open -> closed
superseder:  -> IDLE removes elements from tracebacks.

___
Python tracker 

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



[issue30709] Bad getter from Descriptor#Properties example

2017-06-22 Thread Mariatta Wijaya

Mariatta Wijaya added the comment:


New changeset 8aa15ba884b14c1cf65d4c1a4c5abc4253f5c9ed by Mariatta in branch 
'3.5':
[3.5] bpo-30709: Improve code example in Descriptor HowTo doc (GH-2339) 
(GH-2341)
https://github.com/python/cpython/commit/8aa15ba884b14c1cf65d4c1a4c5abc4253f5c9ed


--

___
Python tracker 

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



[issue30709] Bad getter from Descriptor#Properties example

2017-06-22 Thread Mariatta Wijaya

Mariatta Wijaya added the comment:


New changeset 508267437cc66fdadc12fb19fb2958c452b8a26f by Mariatta in branch 
'2.7':
[2.7] bpo-30709: Improve code example in Descriptor HowTo doc (GH-2339) 
(GH-2340)
https://github.com/python/cpython/commit/508267437cc66fdadc12fb19fb2958c452b8a26f


--

___
Python tracker 

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



[issue24252] IDLE removes elements from tracebacks.

2017-06-22 Thread Terry J. Reedy

Terry J. Reedy added the comment:

#26627 was closed as an apparent duplicate of this.  It should be rechecked if 
this is fixed.

--
assignee:  -> terry.reedy
versions: +Python 3.7 -Python 2.7, Python 3.4, Python 3.5

___
Python tracker 

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



[issue30709] Bad getter from Descriptor#Properties example

2017-06-22 Thread Mariatta Wijaya

Mariatta Wijaya added the comment:


New changeset d79ac2c2468f072653ed9096cd33f89acb6ff5bb by Mariatta in branch 
'3.6':
[3.6] bpo-30709: Improve code example in Descriptor HowTo doc (GH-2339) 
(GH-2342)
https://github.com/python/cpython/commit/d79ac2c2468f072653ed9096cd33f89acb6ff5bb


--

___
Python tracker 

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



[issue30709] Bad getter from Descriptor#Properties example

2017-06-22 Thread Mariatta Wijaya

Changes by Mariatta Wijaya :


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



[issue15216] Add encoding & errors parameters to TextIOWrapper.reconfigure()

2017-06-22 Thread INADA Naoki

Changes by INADA Naoki :


--
pull_requests: +2387

___
Python tracker 

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



[issue25125] "Edit with IDLE" does not work for shortcuts

2017-06-22 Thread Terry J. Reedy

Terry J. Reedy added the comment:

This is not an IDLE code issue, but an installation issue, and I think one main 
entry with a submenu is proper.  I just tried clicking on '3.5.3' and '3.6.2' 
and both opened an editor for a .py file  with the corresponding version.

--
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed
type: behavior -> enhancement

___
Python tracker 

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



[issue25224] Replace Idle's README.txt with annotated file list

2017-06-22 Thread Terry J. Reedy

Changes by Terry J. Reedy :


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



[issue30736] Support Unicode 10.0

2017-06-22 Thread Benjamin Peterson

Changes by Benjamin Peterson :


--
pull_requests: +2388

___
Python tracker 

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



[issue1080387] Making IDLE Themes and Keys Config more Robust

2017-06-22 Thread Terry J. Reedy

Terry J. Reedy added the comment:

These additions happened years ago, though the foreground is now different.
+builtin-foreground= #ca00ca
+builtin-background= #ff

--
assignee: kbk -> terry.reedy
nosy: +terry.reedy
resolution:  -> out of date
stage: needs patch -> 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



[issue25032] IDLE - same menubar across application

2017-06-22 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I agree.  Better to gray-out inactive items.  I believe bar is already somewhat 
shared on mac.  We are working on other changes needed to use tabbed notebooks.

--
assignee:  -> terry.reedy
stage:  -> needs patch
type:  -> enhancement
versions: +Python 3.7 -Python 2.7, Python 3.4, Python 3.5

___
Python tracker 

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



[issue22460] idle editor: replace all in selection

2017-06-22 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
assignee:  -> terry.reedy
stage: needs patch -> test needed
versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.4, Python 3.5

___
Python tracker 

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



[issue25020] IDLE - centralize ui policies and small utilities

2017-06-22 Thread Terry J. Reedy

Terry J. Reedy added the comment:

The specific patch is out-of-date.  IDLE 3.6+ requires tk 8.5+. We should 
finish converting everything to ttk before 3.7.0.  In practice, I believe 
people are using late 8.5 or 8.6.  8.5.9 on Apple is too buggy to really use 
and latest ActiveState 8.5 for mac (.18?) is recommended.  macosx has functions 
to identify specific mac graphics.

--
assignee:  -> terry.reedy
resolution:  -> out of date
stage:  -> resolved
status: open -> closed
versions: +Python 3.7 -Python 2.7, Python 3.4, Python 3.5

___
Python tracker 

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



[issue29887] test_normalization doesn't work

2017-06-22 Thread Benjamin Peterson

Changes by Benjamin Peterson :


--
pull_requests: +2389

___
Python tracker 

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



[issue24860] Can IDLE's query box be improved

2017-06-22 Thread Terry J. Reedy

Terry J. Reedy added the comment:

The patch is mostly obsolete.  I added query.py a year ago, which replaced the 
open-module box and those used in configdialog.  The code began with one of the 
existing boxes, but it has the two improvements listed above: a) stay open on 
error (really helpful if I type 'idlelib.run' and only need to correct one 
letter) and b) put error message below entry box.

I am leaving this open temporarily to see if there is anything in this patch 
needed in Query.

--
stage: needs patch -> patch review
title: handling of IDLE 'open module' errors -> Can IDLE's query box be improved
versions: +Python 3.7 -Python 2.7, Python 3.5

___
Python tracker 

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



[issue24860] Can IDLE's query box be improved

2017-06-22 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
assignee:  -> terry.reedy

___
Python tracker 

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



[issue30721] Show expected input for right shift operator usage in custom "print" error message

2017-06-22 Thread Sanyam Khurana

Changes by Sanyam Khurana :


--
pull_requests: +2390

___
Python tracker 

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



[issue30736] Support Unicode 10.0

2017-06-22 Thread Benjamin Peterson

Benjamin Peterson added the comment:


New changeset 279a96206f3118a482d10826a1e32b272db4505d by Benjamin Peterson in 
branch 'master':
bpo-30736: upgrade to Unicode 10.0 (#2344)
https://github.com/python/cpython/commit/279a96206f3118a482d10826a1e32b272db4505d


--

___
Python tracker 

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



[issue30736] Support Unicode 10.0

2017-06-22 Thread Benjamin Peterson

Changes by Benjamin Peterson :


--
resolution:  -> fixed
stage: needs patch -> 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



[issue17187] Python segfaults from improperly formed and called function

2017-06-22 Thread Benjamin Peterson

Changes by Benjamin Peterson :


--
resolution:  -> not a bug
stage: needs patch -> resolved
status: pending -> closed

___
Python tracker 

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



[issue29304] dict: simplify lookup functions

2017-06-22 Thread INADA Naoki

INADA Naoki added the comment:


New changeset 073ae487b3ff9001c69d530c7555ddaa530dee16 by INADA Naoki in branch 
'master':
bpo-29304: simplify lookdict_index() function. (GH-2273)
https://github.com/python/cpython/commit/073ae487b3ff9001c69d530c7555ddaa530dee16


--

___
Python tracker 

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



[issue22133] IDLE: Set correct WM_CLASS on X11

2017-06-22 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
assignee:  -> terry.reedy
stage:  -> test needed
type:  -> behavior
versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.4, Python 3.5

___
Python tracker 

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



[issue23922] turtle.py and turtledemo use the default tkinter icon

2017-06-22 Thread Terry J. Reedy

Terry J. Reedy added the comment:

PyShell is now pyshell.  I think factoring the icon setting into a separate 
function is a good idea, separate from turtle and turtledemo.  I am leaving 
this issue open for that, for 3.6/7.

I don't think the turtle/turtledemo icons matter that much.  I will not patch 
them.

--
stage:  -> test needed
type:  -> enhancement
versions: +Python 3.6, Python 3.7 -Python 3.5

___
Python tracker 

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



[issue23616] Idle: conflict between loop execution and undo shortcut.

2017-06-22 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
assignee:  -> terry.reedy
versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.4, Python 3.5

___
Python tracker 

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



[issue23337] [IDLE/Windows] Run python with restricted rights

2017-06-22 Thread Terry J. Reedy

Terry J. Reedy added the comment:

There is insufficient information to establish that this is a bug in IDLE, 
hence it is not possible to write a patch.

--
resolution:  -> not a bug
stage: test needed -> 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