[issue30813] test_unittest fails when hunting reference leaks

2017-07-11 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Ah, this fixed issue25746!

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue25746] test_unittest failure in leaks searching mode

2017-07-11 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Fixed in duplicate issue30813.

--
resolution:  -> fixed
stage: needs patch -> resolved
status: open -> closed
superseder:  -> test_unittest fails when hunting reference leaks

___
Python tracker 

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



[issue30900] IDLE: Fix configdialog should use wm_withdraw

2017-07-11 Thread Louie Lu

New submission from Louie Lu:

Introduce in #30728, commit bac7d3363b099d, `self.wm_withdraw` has been changed 
into `self.withdraw`. This make #30870 un-testable since it using 
`self.withdraw` will block out `event_generate`.

This issue revert `self.widthdraw` to `self.wm_withdraw`.

--
assignee: terry.reedy
components: IDLE
messages: 298136
nosy: csabella, louielu, terry.reedy
priority: normal
severity: normal
status: open
title: IDLE: Fix configdialog should use wm_withdraw
versions: 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



[issue22607] find by dichotomy the failing test

2017-07-11 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Wasn't the similar feature implemented in issue29512?

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue30900] IDLE: Fix configdialog should use wm_withdraw

2017-07-11 Thread Louie Lu

Changes by Louie Lu :


--
pull_requests: +2729

___
Python tracker 

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



[issue30870] IDLE: configdialog/fonts: change font when select by key up/down

2017-07-11 Thread Louie Lu

Louie Lu added the comment:

configdialog misuse `self.withdraw` at init, it should be `self.wm_withdraw`, 
#30900 fix this problem. After that, it should be a success to use 
event_generate in configdialog unittest with no `self.withdraw`.

--

___
Python tracker 

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



[issue30901] "503 HTTP ERROR" on attempt to access some points of python library documentation

2017-07-11 Thread Alexander Kamyanskiy

New submission from Alexander Kamyanskiy:

I found that some points in Python Library reference documentation are not 
accessible, I got 503 http error.

The problem starts from this link and some points below the 29.14 point of doc 
list:

https://docs.python.org/3/library/fpectl.html

Also now I got 503:
https://docs.python.org/3/library/custominterp.html
https://docs.python.org/3/library/zipimport.html
https://docs.python.org/3/library/pkgutil.html
https://docs.python.org/3/library/symbol.html
https://docs.python.org/3/library/token.html
...


In fact I can't say for example that "31. Importing Modules" all inaccessible - 
I can't access 
31.3. modulefinder — Find modules used by a script
31.4. runpy — Locating and executing Python modules
31.5. importlib — The implementation of import

but cannot (I got 503 http response):
31.1. zipimport — Import modules from Zip archives
31.2. pkgutil — Package extension utility

P.S. I've tried to access documentation from absolutely another place and I'm 
sure it's not my local settings in browser or local firewall or smth like this.

--
assignee: docs@python
components: Documentation
messages: 298139
nosy: Alexander Kamyanskiy, docs@python
priority: normal
severity: normal
status: open
title: "503 HTTP ERROR" on attempt to access some points of python library 
documentation
type: resource usage

___
Python tracker 

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



[issue30901] "503 HTTP ERROR" on attempt to access some points of python library documentation

2017-07-11 Thread Louie Lu

Louie Lu added the comment:

Can reproduce this problem in Chromium 59.0.3071, it seems affect every 
selectable version in docs.python.org. Also, devguide has some page down, too.

* devguide: https://docs.python.org/devguide/triaging.html

--
nosy: +louielu
type: resource usage -> 

___
Python tracker 

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



[issue30900] IDLE: Fix configdialog should use wm_withdraw

2017-07-11 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Color me dubious ;-). The change was made because tkinter.__init__, line 1990 
has this line
withdraw = wm_withdraw
There is a similar line for all of the around 30 wm_xyz functions. Prefixing 
the names of methods of class Wm is an unusual redundancy.  I cannot think of 
any sane way for tk to know which python synonym was used to call the Python 
wrapper.

What code using event_generate led you to this conclusion?

--

___
Python tracker 

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



[issue30900] IDLE: Fix configdialog should use wm_withdraw

2017-07-11 Thread Louie Lu

Louie Lu added the comment:

Hmmm, I think it is a mistake of my test, it is something inside configdialog 
__init__ make unittest can't do event_generate, but not this one 
`self.withdraw`.

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



[issue30900] IDLE: Fix configdialog should use wm_withdraw

2017-07-11 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I first beat my head against event_generate two or three years ago.  So I 
appreciate you taking a whack at it.  It is nice that Variable.set and invoke 
can be used for tests, but it would really be nice to have e_v work too.

--

___
Python tracker 

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



[issue30891] importlib: _find_and_load() race condition on sys.modules[name] check

2017-07-11 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2730

___
Python tracker 

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



[issue22607] find by dichotomy the failing test

2017-07-11 Thread STINNER Victor

STINNER Victor added the comment:

> See message 228968 for the rationale:

http://bugs.python.org/issue22588#msg228968

Ok, this use case is now well supported by the new test.bisect tool. Yes, this 
issue is a duplicate of the issue #29512. I forgot this old issue!

--
resolution:  -> duplicate
stage: test needed -> resolved
status: open -> closed
superseder:  -> regrtest refleak: implement bisection feature

___
Python tracker 

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



[issue30876] SystemError on importing module from unloaded package

2017-07-11 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2731

___
Python tracker 

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



[issue30870] IDLE: configdialog/fonts: change font when select by key up/down

2017-07-11 Thread Louie Lu

Changes by Louie Lu :


--
pull_requests: +2732

___
Python tracker 

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



[issue30730] [security] Injecting environment variable in subprocess on Windows

2017-07-11 Thread Larry Hastings

Larry Hastings added the comment:

Serhiy, I don't see where you got a full review of this change.  Eryksun 
reviewed the code and asked for changes; you made the he asked for changes but 
didn't get any further review.  Nor did you get a full review / "looks good to 
me" from anybody.

As a matter of policy I do want to see reviews for security changes on Windows. 
 I've asked Steve Dower to give it a quick review.

--

___
Python tracker 

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



[issue30730] [security] Injecting environment variable in subprocess on Windows

2017-07-11 Thread Larry Hastings

Larry Hastings added the comment:

It seems that os.execve() still permits this, even on Windows.  Shouldn't we 
solve it there too?  (Thanks to Steve Dower for realizing this.)

--

import os

cmdline=["/usr/bin/printenv"]
env={'a=b': 'c'}
os.execve(cmdline[0], cmdline, env)
# this prints a=b=c

--

___
Python tracker 

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



[issue30730] [security] Injecting environment variable in subprocess on Windows

2017-07-11 Thread Larry Hastings

Larry Hastings added the comment:

(never-mind, 3.6.1 still permits this, but I see that it's been fixed in trunk)

--

___
Python tracker 

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



[issue30730] [security] Injecting environment variable in subprocess on Windows

2017-07-11 Thread Larry Hastings

Larry Hastings added the comment:


New changeset fe82c46327effc124ff166e1fa1e611579e1176b by larryhastings (Serhiy 
Storchaka) in branch '3.4':
[security][3.4] bpo-30730: Prevent environment variables injection in 
subprocess on Windows. (GH-2325) (#2362)
https://github.com/python/cpython/commit/fe82c46327effc124ff166e1fa1e611579e1176b


--

___
Python tracker 

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



[issue30902] Python-Redmine plugin not seeing python install MacOS

2017-07-11 Thread Joshua

New submission from Joshua:

trying to install the following on macos sierra 10.12.5. I am trying to install 
the python-redmine module. i ran the following:

sudo easy_install pip
pip install python-redmine

i get the following output when trying to run a python script:

Joshuas-MacBook-Pro:~ joshuaayes$ ./changelog.py 
Traceback (most recent call last):
  File "./changelog.py", line 2, in 
from redmine import Redmine
ImportError: No module named redmine
Joshuas-MacBook-Pro:~ joshuaayes$ pip install python-redmine
Requirement already satisfied: python-redmine in 
/Library/Python/2.7/site-packages
Joshuas-MacBook-Pro:~ joshuaayes$ 


anyone have any insight why this is not working?

--
components: Extension Modules
messages: 298149
nosy: ayesjm
priority: normal
severity: normal
status: open
title: Python-Redmine plugin not seeing python install MacOS
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



[issue30902] Python-Redmine plugin not seeing python install MacOS

2017-07-11 Thread Berker Peksag

Berker Peksag added the comment:

python-redmine is not part of the Python standard library. 
https://github.com/maxtepkeev/python-redmine/issues is a better place to ask 
usage questions like this, thank you!

--
nosy: +berker.peksag
resolution:  -> third party
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



[issue30730] [security] Injecting environment variable in subprocess on Windows

2017-07-11 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Sorry, actually the patch fixed two bugs. The one of them is a security issue, 
the other is much more severe. They look similar, are related to the same code 
(on Windows) and are tested with similar tests.

os.execve() was not vulnerable to the first issue, it suffered only from the 
less severe bug. It was fixed in the separate issue (see issue30746). I don't 
think that should be backported to 3.4.

--

___
Python tracker 

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



[issue28812] Deadlock between GIL and pystate head_mutex.

2017-07-11 Thread INADA Naoki

INADA Naoki added the comment:

#30395 is about forking, but this is about multi threading.

--

___
Python tracker 

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



[issue30903] IPv4Network's hostmask attribute doesn't returns string value as mentioned in Documentation.

2017-07-11 Thread Abhijit Mamarde

New submission from Abhijit Mamarde:

documentation mentions hostmask attribute of IPv4Network
class returns a `string`, but in actual it is
returning the object of class IPv4Address

URL to official doc:
https://docs.python.org/3/library/ipaddress.html#ipaddress.IPv4Network.hostmask

PFA program file to show the actual issue.

--
assignee: docs@python
components: Documentation
files: ipaddress_doc_bug.py
messages: 298153
nosy: Abhijit Mamarde, docs@python
priority: normal
severity: normal
status: open
title: IPv4Network's hostmask attribute doesn't returns string value as 
mentioned in Documentation.
type: behavior
versions: Python 3.6
Added file: http://bugs.python.org/file47007/ipaddress_doc_bug.py

___
Python tracker 

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



[issue30801] shoutdown process error with python 3.4 and pyqt/PySide

2017-07-11 Thread Larry Hastings

Larry Hastings added the comment:

Python 3.4 no longer accepts bug fixes; it is in "security fixes only" mode.  
Since this is not a security fix, it will not be accepted into Python 3.4.

If this bug affects other versions of Python, please file a new bug.  Although, 
unless you move *very* quickly, this fix won't be accepted into 3.5 either, as 
it's going to move into "security fixes only" mode later this month.

Finally, your submitted patch (PR 2413) does not apply to the 3.4 branch, it 
applies to master.  I have no opinion about whether or not this code should be 
accepted into master.  But the PR talks about fixing a bug in 3.4, which is 
wrong.

--
nosy: +larry
resolution:  -> wont fix
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



[issue30779] IDLE: configdialog -- factor out Changes class

2017-07-11 Thread Cheryl Sabella

Changes by Cheryl Sabella :


--
pull_requests: +2733

___
Python tracker 

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



[issue30779] IDLE: configdialog -- factor out Changes class

2017-07-11 Thread Cheryl Sabella

Cheryl Sabella added the comment:

I had an error when trying to delete a custom theme.  Sorry for not catching 
this before.

--

___
Python tracker 

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



[issue26657] Directory traversal with http.server and SimpleHTTPServer on windows

2017-07-11 Thread Larry Hastings

Larry Hastings added the comment:

Will this be backported to 3.3 or 3.6?  I don't see a PR or checkin for either 
of those versions on this issue, and both those versions are open for security 
fixes.b

--
nosy: +larry

___
Python tracker 

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



[issue29591] expat 2.2.0: Various security vulnerabilities in bundled expat (CVE-2016-0718 and CVE-2016-4472)

2017-07-11 Thread Larry Hastings

Larry Hastings added the comment:

I don't quite understand what's happening on this issue.  I see that master, 
3.6, 3.6, and 2.7 have been upgraded to expat 2.2.0.  This issue was created to 
upgrade CPython to 2.2.0.  But the PR against 3.3 and 3.4 upgrade expat to 
2.2.1?!

I'm not against this change in principle, I'm just trying to understand why a) 
it doesn't match the issue, b) why 3.3 and 3.4 are special, c) why we don't 
upgrade master & 3.6 & 3.5 & 2.7 to expat 2.2.1.

--

___
Python tracker 

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



[issue30484] Garbage Collector can cause Segfault whilst iterating dictionary items

2017-07-11 Thread Larry Hastings

Larry Hastings added the comment:

Yes, and thank you for submitting the PR to backport it to 3.4!

(And thank you for backporting it to 3.3, too!)

--

___
Python tracker 

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



[issue27945] Various segfaults with dict

2017-07-11 Thread Larry Hastings

Larry Hastings added the comment:


New changeset f7344798e57da6b9c4ed9372e8eaecde80989c86 by larryhastings (Serhiy 
Storchaka) in branch '3.4':
[3.4] [3.5] bpo-27945: Fixed various segfaults with dict. (GH-1657) (GH-1678) 
(#2248)
https://github.com/python/cpython/commit/f7344798e57da6b9c4ed9372e8eaecde80989c86


--

___
Python tracker 

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



[issue27099] IDLE: turn builting extensions into regular modules

2017-07-11 Thread Charles Wohlganger

Charles Wohlganger added the comment:

Pull request won't pass build test, but passes the full idle test on my 
workstation. 

Primary cause seems to be:
ImportError: cannot import name 'EditorWindow' from 'idlelib.editor'

I can also import EditorWindow by itself on my workstation. None of the changes 
to EditorWindow seem like they should be causing this error. Any ideas?

--

___
Python tracker 

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



[issue30904] Python 3 logging HTTPHandler sends duplicate Host header

2017-07-11 Thread Leon Helwerda

New submission from Leon Helwerda:

The logging HTTPHandler sends two Host headers which confuses certain servers.

Tested versions:
Python 3.6.1
lighttpd/1.4.45

Steps to reproduce (MWE):

1) Set up a lighttpd server which is to act as the logging host (we do not 
actually implement anything that accepts the input here). Optionally enable the 
debug settings from https://redmine.lighttpd.net/projects/1/wiki/DebugVariables 
(specifically, add debug.log-condition-handling = "enable" to 
/etc/lighttpd/lighttpd.conf) to follow what is happening inside the server.
2) In python3:
import logging
import logging.handlers
handler = logging.handlers.HTTPHandler('localhost', '/')
logging.getLogger().setLevel(logging.INFO)
logging.getLogger().addHandler(handler)
logging.info('hello world')
3) Notice that the access logs in /var/log/lighttpd/access.log show a 400 
response for the request (in Python, the response is ignored). If the debugging 
from 1) is enabled, then /var/log/lighttpd/error.log contains a line "duplicate 
Host-header -> 400".

This is not a bug in lighttpd. The server adheres to RFC7320 (sec. 5.4, p. 44): 
"A server MUST respond with a 400 (Bad Request) status code [...] to any 
request message that contains more than one Host header field".

A workaround is to put the full URL in the second argument of HTTPRequest:
handler = logging.handlers.HTTPHandler('localhost', 'http://localhost/')
Then lighttpd follows RFC2616 (sec. 5.2, p. 37): "If Request-URI is an 
absoluteURI, the host is part of the Request-URI. Any Host header field value 
in the request MUST be ignored."

The origin of this issue is that the http.client.HTTPConnection.putrequest 
method (called by HTTPHandler.emit) already adds a Host header unless 
skip_host=True is given. Thus the manual addition of a Host header is duplicate.

Other versions like Python 2.7 might also be affected but I did not test.

--
components: Library (Lib)
messages: 298161
nosy: lhelwerd
priority: normal
severity: normal
status: open
title: Python 3 logging HTTPHandler sends duplicate Host header
type: behavior
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



[issue30905] Embedding should have public API for interactive mode

2017-07-11 Thread Stephen Kelly

New submission from Stephen Kelly:

Consider the following three snippets:


1) 

const char* sourceCode = 
"a = 9\n"
"a";
// This is OK! Python runs both lines.
// BUT: The value of 'a' is not printed
PyRun_StringFlags(sourceCode, Py_file_input, localDictionary, localDictionary, 
0);


2)

// This is OK! We run one statement at a time:
PyRun_StringFlags("a = 9", Py_single_input, localDictionary, localDictionary, 
0);
// Python prints the value of 'a' because we use Py_single_input!
PyRun_StringFlags("a", Py_single_input, localDictionary, localDictionary, 0);


3)

const char* sourceCode = 
"a = 9\n"
"a";
// This is NOT OK! Python throws a SyntaxError because we used Py_single_input.
PyRun_StringFlags(sourceCode, Py_single_input, localDictionary, 
localDictionary, 0);




The intention is to be able to run script code in an interpreter built into an 
application, and to maintain two user features:

1) The behavior is the same as the standard python interpreter with regard to 
printing values automatically without requiring the print() statement.
2) It is allowed to copy/paste possibly multiple lines/statements and execute 
them

These two requirements are in conflict, because while Py_single_input enables 
the first, it forbids the second.

I have worked around this by using internal API in Python-ast.h and setting 
`mod->kind = Interactive_kind;` before calling `PyAST_CompileEx`, but that 
should not be needed.

--
components: Interpreter Core
messages: 298162
nosy: steveire
priority: normal
severity: normal
status: open
title: Embedding should have public API for interactive mode
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



[issue30901] "503 HTTP ERROR" on attempt to access some points of python library documentation

2017-07-11 Thread Brett Cannon

Brett Cannon added the comment:

Those pages all work for me. May have been transient.

--
nosy: +brett.cannon
resolution:  -> out of date
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



[issue30901] "503 HTTP ERROR" on attempt to access some points of python library documentation

2017-07-11 Thread Mariatta Wijaya

Mariatta Wijaya added the comment:

There was partial outage. See post mortem report:
https://status.python.org/incidents/cc622spyl26l

--
nosy: +Mariatta

___
Python tracker 

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



[issue30891] importlib: _find_and_load() race condition on sys.modules[name] check

2017-07-11 Thread Cooper Lees

Changes by Cooper Lees :


--
pull_requests: +2734

___
Python tracker 

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



[issue30897] Add a is_mount() to pathlib

2017-07-11 Thread Cooper Lees

Changes by Cooper Lees :


--
pull_requests: +2735

___
Python tracker 

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



[issue30897] Add a is_mount() to pathlib

2017-07-11 Thread Łukasz Langa

Changes by Łukasz Langa :


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue27584] New addition of vSockets to the python socket module

2017-07-11 Thread R. David Murray

R. David Murray added the comment:

I think we are waiting on confirmation that we have a buildbot that has the 
necessary headers.

--

___
Python tracker 

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



[issue27584] New addition of vSockets to the python socket module

2017-07-11 Thread Cathy Avery

Cathy Avery added the comment:

OK thanks!

--

___
Python tracker 

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



[issue27584] New addition of vSockets to the python socket module

2017-07-11 Thread Gregory P. Smith

Gregory P. Smith added the comment:

I updated my PGO buildbot to Debian 9 which should have them.

http://buildbot.python.org/all/builders/AMD64%20Debian%20PGO%203.x

~$ grep AF_VSOCK /usr/include/*/*/*
/usr/include/x86_64-linux-gnu/bits/socket.h:#define AF_VSOCKPF_VSOCK

--

___
Python tracker 

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



[issue10438] list an example for calling static methods from WITHIN classes

2017-07-11 Thread R. David Murray

R. David Murray added the comment:

Given a choice between catering for Python programmers and catering for 
Java/C++ programmers, the Python docs obviously ought to chose to cater to 
Python programmers.  To a python programmer, calling C.f() is intuitive.

I would myself definitely *not* encourage the __class__.f() idiom.

Maybe we should just drop the reference to Java and C++ static methods.

--

___
Python tracker 

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



[issue27584] New addition of vSockets to the python socket module

2017-07-11 Thread Cathy Avery

Cathy Avery added the comment:

You will also need linux/vm_sockets.h in order to build.

--

___
Python tracker 

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



[issue27364] Deprecate invalid escape sequences in str/bytes

2017-07-11 Thread R. David Murray

R. David Murray added the comment:

Also note that we have fixed a number of bugs in the stdlib code where a raw 
string was not used for a docstring when it should have been.  And when I say 
bugs, I mean both formatting problems in pydoc, and doctest bugs.  There may 
even have been a case where it produced a code bug, but I'm not sure I'm 
recalling that correctly :)

So yes, requiring that a docstring containing backslashes be marked as a raw 
string is very intentional.

--

___
Python tracker 

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



[issue27584] New addition of vSockets to the python socket module

2017-07-11 Thread Gregory P. Smith

Gregory P. Smith added the comment:

yep, linux/vm_sockets.h exists.  I believe it's kernel headers are from 4.9.

--

___
Python tracker 

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



[issue30797] ./pyconfig.h:1438:0: warning: "_GNU_SOURCE" redefined [enabled by default]

2017-07-11 Thread Segev Finer

Changes by Segev Finer :


--
pull_requests: +2736

___
Python tracker 

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



[issue10438] list an example for calling static methods from WITHIN classes

2017-07-11 Thread Ian

Ian added the comment:

I would hope that the docs would cater to people who aren't sure how the 
language works (and who want to confirm that they are using proper patterns).  
If people already know how the language works, they won't need the docs.

Whether or not you refer to Java and C++, you should state the best practices 
for both internal and external calling of static methods in Python.

--

___
Python tracker 

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



[issue27584] New addition of vSockets to the python socket module

2017-07-11 Thread Cathy Avery

Cathy Avery added the comment:

That should do it.

--

___
Python tracker 

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



[issue27584] New addition of vSockets to the python socket module

2017-07-11 Thread Gregory P. Smith

Gregory P. Smith added the comment:

Everything compiles successfully on this host - configure detects the header 
has HAVE_LINUX_VM_SOCKETS_H set to 1.

test_socket passes on this host.  However since i'm not running with a 
/dev/vsock, the unittests (correctly) skip the new tests.

testCreateSocket (test.test_socket.BasicVSOCKTest) ... skipped 'VSOCK sockets 
required for this test.'
testCrucialConstants (test.test_socket.BasicVSOCKTest) ... skipped 'VSOCK 
sockets required for this test.'
testSocketBufferSize (test.test_socket.BasicVSOCKTest) ... skipped 'VSOCK 
sockets required for this test.'
testVSOCKConstants (test.test_socket.BasicVSOCKTest) ... skipped 'VSOCK sockets 
required for this test.'
testStream (test.test_socket.ThreadedVSOCKSocketStreamTest) ... skipped 'VSOCK 
sockets required for this test.'

--

___
Python tracker 

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



[issue10438] list an example for calling static methods from WITHIN classes

2017-07-11 Thread R. David Murray

R. David Murray added the comment:

I'm not sure there's a "best practice" choice between the two calling forms 
that are documented.  Although obviously when you don't have an instance you 
can't use the instance calling form.  I think it is *common* practice to use 
the instance form when you can, but I'm not sure it is either superior or 
inferior to using the class form.  It partly depends on how you have structured 
your code and why you are using static methods in the first place.

--

___
Python tracker 

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



[issue27099] IDLE: turn builting extensions into regular modules

2017-07-11 Thread Cheryl Sabella

Cheryl Sabella added the comment:

When I download the patch and run the tests, I get a lot of warnings (mostly on 
custom themes and custom keysets).  I also get errors in test_parenmatch like 
this one:

ERROR: test_paren_styles (idlelib.idle_test.test_parenmatch.ParenMatchTest) 
(style='expression')
--
Traceback (most recent call last):
  File "/home/cheryl/cpython/Lib/idlelib/idle_test/test_parenmatch.py", line 
64, in test_paren_styles
pm.flash_paren_event('event')
  File "/home/cheryl/cpython/Lib/idlelib/parenmatch.py", line 98, in 
flash_paren_event
self.create_tag(indices)
  File "/home/cheryl/cpython/Lib/idlelib/parenmatch.py", line 154, in 
create_tag_expression
self.text.tag_config("paren", self.HILITE_CONFIG)
  File "/home/cheryl/cpython/Lib/tkinter/__init__.py", line 3364, in 
tag_configure
return self._configure(('tag', 'configure', tagName), cnf, kw)
  File "/home/cheryl/cpython/Lib/tkinter/__init__.py", line 1470, in _configure
self.tk.call(_flatten((self._w, cmd)) + self._options(cnf))
_tkinter.TclError: unknown color name "00"

--
nosy: +csabella

___
Python tracker 

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



[issue30821] unittest.mock.Mocks with specs aren't aware of default arguments

2017-07-11 Thread Michael Foord

Michael Foord added the comment:

Generally the called with asserts can only be used to match the *actual call*, 
and they don't determine "equivalence". 

To do it cleanly would be tricky, and adding complex code is a maintenance 
burden. I'm not convinced there's a massive use case - generally you want to 
make asserts about what your code actually does - not just check if it does 
something equivalent to your assert.

So I'm not enthusiastic about this.

--

___
Python tracker 

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



[issue29591] expat 2.2.0: Various security vulnerabilities in bundled expat (CVE-2016-0718 and CVE-2016-4472)

2017-07-11 Thread STINNER Victor

STINNER Victor added the comment:

> I don't quite understand what's happening on this issue.  I see that master, 
> 3.6, 3.6, and 2.7 have been upgraded to expat 2.2.0.  This issue was created 
> to upgrade CPython to 2.2.0.  But the PR against 3.3 and 3.4 upgrade expat to 
> 2.2.1?!
>
> I'm not against this change in principle, I'm just trying to understand why 
> a) it doesn't match the issue, b) why 3.3 and 3.4 are special, c) why we 
> don't upgrade master & 3.6 & 3.5 & 2.7 to expat 2.2.1.

I upgraded libexpat to 2.2.0 in this issue, and then to libexpat 2.2.1 in 
bpo-30694.

For 3.3 and 3.4 pull requests, I chose to use this bpo number.

3.3: https://github.com/python/cpython/pull/2204
3.4: https://github.com/python/cpython/pull/2203

So these pull requests upgrade directly to 2.2.1.

--

___
Python tracker 

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



[issue30891] importlib: _find_and_load() race condition on sys.modules[name] check

2017-07-11 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests:  -2734

___
Python tracker 

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



[issue29591] expat 2.2.0: Various security vulnerabilities in bundled expat (CVE-2016-0718 and CVE-2016-4472)

2017-07-11 Thread Larry Hastings

Larry Hastings added the comment:

Please instead choose to use bpo-30694 for the upgrades of 3.3 and 3.4 to expat 
2.2.1.  I guess there are historical reasons why the PRs are here, but bpo 
stands as a historical record; let's not confuse posterity by upgrading to 
2.2.1 using a bpo issue talking about--and upgrading four branches to--2.2.0.

--

___
Python tracker 

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



[issue30694] Update embedded copy of expat to 2.2.1

2017-07-11 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2737

___
Python tracker 

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



[issue30694] Update embedded copy of expat to 2.2.1

2017-07-11 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +2738

___
Python tracker 

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



[issue30906] os.path.join misjoins paths

2017-07-11 Thread mesheb82

New submission from mesheb82:

I'm trying to join paths on Windows with data taken from a user generated file. 
 In doing so, I came across:

>>> os.path.join('dir1', '/dir2')
'/dir2'

I'd expect an error or:

'dir1\\dir2'

This has been tested and is consistent with Python 2.7.13 and 3.6.1.

--
components: Library (Lib), Windows
messages: 298181
nosy: mesheb82, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: os.path.join misjoins paths
versions: Python 2.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



[issue29591] expat 2.2.0: Various security vulnerabilities in bundled expat (CVE-2016-0718 and CVE-2016-4472)

2017-07-11 Thread STINNER Victor

STINNER Victor added the comment:

Larry: "Please instead choose to use bpo-30694 for the upgrades of 3.3 and 3.4 
to expat 2.2.1.  I guess there are historical reasons why the PRs are here, but 
bpo stands as a historical record; let's not confuse posterity by upgrading to 
2.2.1 using a bpo issue talking about--and upgrading four branches to--2.2.0."

I just updated the 3.4 PR.

In fact, the PR backports the libexpat 2.2.0 commit *and* then the libexpat 
2.2.1 commit. Since it's not possible to create a "patch serie" (in GitHub, it 
would mean a PR which depends on another PR), I chose to stack the two commits 
in the same PR and reuse the existing PR to not loose context.

--

___
Python tracker 

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



[issue29591] expat 2.2.0: Various security vulnerabilities in bundled expat (CVE-2016-0718 and CVE-2016-4472)

2017-07-11 Thread STINNER Victor

STINNER Victor added the comment:

I changed the PR title to mention the two bpo.

--

___
Python tracker 

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



[issue27099] IDLE: turn builting extensions into regular modules

2017-07-11 Thread Charles Wohlganger

Charles Wohlganger added the comment:

Thank you,  Cheryl Sabella. I think I've found which tests I've missed running. 
Now to fix all the bugs...

--

___
Python tracker 

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



[issue30797] ./pyconfig.h:1438:0: warning: "_GNU_SOURCE" redefined [enabled by default]

2017-07-11 Thread Segev Finer

Changes by Segev Finer :


--
pull_requests: +2739

___
Python tracker 

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



[issue30797] ./pyconfig.h:1438:0: warning: "_GNU_SOURCE" redefined [enabled by default]

2017-07-11 Thread Segev Finer

Changes by Segev Finer :


--
pull_requests: +2740

___
Python tracker 

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



[issue30906] os.path.join misjoins paths

2017-07-11 Thread Paul Moore

Paul Moore added the comment:

This is as documented - see 
https://docs.python.org/3.6/library/os.path.html#os.path.join (" If a component 
is an absolute path, all previous components are thrown away and joining 
continues from the absolute path component"). In this case, "/dir2" is an 
absolute path as it starts with a slash.

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



[issue30797] ./pyconfig.h:1438:0: warning: "_GNU_SOURCE" redefined [enabled by default]

2017-07-11 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 884c4ca33ab84b9fc57338cf59f79e0436d3da43 by Victor Stinner (Segev 
Finer) in branch '2.7':
[2.7] bpo-30797: Avoid _GNU_SOURCE redefined warning in xmlparse.c (GH-2670) 
(#2672)
https://github.com/python/cpython/commit/884c4ca33ab84b9fc57338cf59f79e0436d3da43


--

___
Python tracker 

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



[issue30906] os.path.join misjoins paths

2017-07-11 Thread Eryk Sun

Eryk Sun added the comment:

This differs slightly from WinAPI PathCchCombineEx, which fails the example 
case as an invalid parameter. If the second path is rooted but without a drive 
or UNC share, then if the first path is relative it must be at least drive 
relative (e.g. "C:dir1"). Should Python's documented behavior change in 3.7 to 
match PathCchCombineEx in this case?

--
nosy: +eryksun
status: closed -> open

___
Python tracker 

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



[issue30779] IDLE: configdialog -- factor out Changes class

2017-07-11 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Eventually, we will have tests that would have caught this.  I took the 
opportunity to improve the test for the call.

--

___
Python tracker 

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



[issue30779] IDLE: configdialog -- factor out Changes class

2017-07-11 Thread Terry J. Reedy

Terry J. Reedy added the comment:


New changeset 6d13b22e3ab262c6b1f068259aebd705e7da316c by terryjreedy 
(csabella) in branch 'master':
bpo-30779: IDLE: fix changes.delete_section calls in configdialog (#2667)
https://github.com/python/cpython/commit/6d13b22e3ab262c6b1f068259aebd705e7da316c


--

___
Python tracker 

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



[issue30717] str.center() is not unicode aware

2017-07-11 Thread Roundup Robot

Changes by Roundup Robot :


--
pull_requests: +2741

___
Python tracker 

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



[issue30779] IDLE: configdialog -- factor out Changes class

2017-07-11 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
pull_requests: +2742

___
Python tracker 

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



[issue30890] IDLE: Input method error in comment with Korean language

2017-07-11 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I am thinking that this is a artifact of the combination of monitor pixel and 
subpixel type, size, and arrangement; font type and size; particular character; 
and character generation software. When I load the file in IDLE, the Korean 
comment chars are a nice uniform red.  But the l in color is tinged green while 
in 'for x in range', the vertical parts of first r, i, and n are gray instead 
of keyword orange.  Range is spotty because builtin purple uses red and blue 
subpixels while green is off.

The spacebar bit through me off and still puzzles me, but overall color 
glitches are not limited to Korean.

Bottom line: IDLE can tell tk 'color this substring red', but has no control 
after that as to what happens.  So I am 99.9% sure this is not an IDLE bug.

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



[issue30717] str.center() is not unicode aware

2017-07-11 Thread Guillaume Sanchez

Guillaume Sanchez added the comment:

Hello to all of you, sorry for the delay. Been busy.

I added the base code needed to built the grapheme cluster break algorithm. We 
now have the GraphemeBreakProperty available via 
unicodedata.grapheme_cluster_break()

Can you check that the implementation correctly fits the design? I was not sure 
about adding that prop to unicodedata_db ou unicodectype_db, tbh.

If it's all correct, I'll move forward with the automaton and the grapheme 
cluster breaking algorithm.

Thanks!

--

___
Python tracker 

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



[issue30779] IDLE: configdialog -- factor out Changes class

2017-07-11 Thread Terry J. Reedy

Terry J. Reedy added the comment:


New changeset c0179483f13be81910ed73889dcad92528e20ef2 by terryjreedy in branch 
'3.6':
[3.6] bpo-30779: IDLE: fix changes.delete_section calls in configdialog 
(GH-2667) (#2674)
https://github.com/python/cpython/commit/c0179483f13be81910ed73889dcad92528e20ef2


--

___
Python tracker 

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



[issue29812] test for token.py, and consistency tests for tokenize.py

2017-07-11 Thread Ammar Askar

Ammar Askar added the comment:

No problem, closing this in favor of issue 30455.

--
resolution:  -> out of date
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




[issue30876] SystemError on importing module from unloaded package

2017-07-11 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:


New changeset 8a9cd20edca7d01b68292036029ae3735ce65edd by Serhiy Storchaka in 
branch 'master':
bpo-30876: Relative import from unloaded package now reimports the package 
(#2639)
https://github.com/python/cpython/commit/8a9cd20edca7d01b68292036029ae3735ce65edd


--

___
Python tracker 

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



[issue30876] SystemError on importing module from unloaded package

2017-07-11 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

What about other branches? Should we backport this change to them?

I think that even if not backport this change we should change SystemError to 
more appropriate exception.

--

___
Python tracker 

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



[issue10438] list an example for calling static methods from WITHIN classes

2017-07-11 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Ian, the docs mostly serve to tell what a tool does.  Best practices then 
emerge from actual practices and are determined by users.

I don't see any bug here that needs to be solved and think it is time to close 
this tracker item.  It has been consuming developer clock cycles without 
addressing any real, known issue.

--

___
Python tracker 

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



[issue30876] SystemError on importing module from unloaded package

2017-07-11 Thread Nick Coghlan

Nick Coghlan added the comment:

The fix is unintrusive enough that I'm +1 for also fixing it in 3.6 and 3.5.

Trying to fix it in 2.7 would likely be more trouble than it's worth, but I 
also wouldn't be opposed to fixing it there if you or anyone else wanted to do 
it.

--

___
Python tracker 

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



[issue30876] SystemError on importing module from unloaded package

2017-07-11 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests: +2743

___
Python tracker 

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



[issue30870] IDLE: configdialog/fonts: change font when select by key up/down

2017-07-11 Thread Terry J. Reedy

Terry J. Reedy added the comment:

The new gui tests passed on Travis (linux), which I strongly suspect does not 
run gui tests.  The generate key test failed on Appveyor (Windows), which means 
is does run gui tests.  It also failed on my machine: generate key release did 
not work.  The generate click test does pass on both Appveyor and my machine, 
which is progress.

Adding config.fontlist.focus_force() before the key event worked. Louie, I will 
push that along with other edits tomorrow.  I will try exposing the window just 
for the tests.

--

___
Python tracker 

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



[issue30906] os.path.join misjoins paths

2017-07-11 Thread Steve Dower

Steve Dower added the comment:

Arguably it isn't even against the documented behavior, since a component 
starting with a slash an absolute path.

I'd be in favor of preserving the drive when encountering a component starting 
with a separator. Not sure of the value in changing the behavior in older 
versions - apparently I've never encountered this before, and I feel like I 
should have.

--
resolution: not a bug -> 
stage: resolved -> test needed
type:  -> behavior
versions: +Python 3.7 -Python 2.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



[issue30906] os.path.join misjoins paths

2017-07-11 Thread Steve Dower

Steve Dower added the comment:

> since a component starting with a slash *is not* an absolute path.

--

___
Python tracker 

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



[issue30876] SystemError on importing module from unloaded package

2017-07-11 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

When backported issue30876 to 3.5 I found that the lines

elif not package:
raise ImportError('attempted relative import with no known parent '
  'package')

don't exist in 3.5. They where added in issue26367, but only in the 3.6 branch. 
The original example in issue26367 still returns a module with a wrong name in 
3.5.

Why issue26367 changes were applied to 3.5 only partially? I afraid that the 
absence of this check may interfere with removing SystemError.

--

___
Python tracker 

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