[issue33532] test_multiprocessing_forkserver: TestIgnoreEINTR.test_ignore() fails on Travis CI

2018-05-30 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset c2870b699eb899f358b843c2d706ce8ca89b2bf4 by Victor Stinner in 
branch '3.6':
bpo-33532: Fix multiprocessing test_ignore() (GH-7262) (#7266)
https://github.com/python/cpython/commit/c2870b699eb899f358b843c2d706ce8ca89b2bf4


--

___
Python tracker 

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



[issue33532] test_multiprocessing_forkserver: TestIgnoreEINTR.test_ignore() fails on Travis CI

2018-05-30 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 82c456fa37d4b87da0d64e574bd8adc665abc4c8 by Victor Stinner in 
branch '2.7':
bpo-33532: Fix multiprocessing test_ignore() (GH-7265)
https://github.com/python/cpython/commit/82c456fa37d4b87da0d64e574bd8adc665abc4c8


--

___
Python tracker 

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



[issue33641] Add links to RFCs

2018-05-30 Thread miss-islington


miss-islington  added the comment:


New changeset 0f1a18326902ad3d0a30fdecbe40513cc5d85879 by Miss Islington (bot) 
in branch '3.7':
bpo-33641: Convert RFC references into links. (GH-7103)
https://github.com/python/cpython/commit/0f1a18326902ad3d0a30fdecbe40513cc5d85879


--
nosy: +miss-islington

___
Python tracker 

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



[issue33677] Fix signatures of tp_clear handlers

2018-05-30 Thread miss-islington


miss-islington  added the comment:


New changeset a4dd46a47fe1d4fe1f1738c2f5b3712de41056b9 by Miss Islington (bot) 
in branch '3.7':
bpo-33677: Fix signatures of tp_clear handlers for AST and deque. (GH-7196)
https://github.com/python/cpython/commit/a4dd46a47fe1d4fe1f1738c2f5b3712de41056b9


--
nosy: +miss-islington

___
Python tracker 

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



[issue33641] Add links to RFCs

2018-05-30 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +6901

___
Python tracker 

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



[issue33705] Unicode is normalised after keywords are checked for

2018-05-30 Thread Steven D'Aprano


Steven D'Aprano  added the comment:

Possibly the correct term is canonicalisation rather than normalisation, 
although I think the two are interchangeable.

--

___
Python tracker 

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



[issue33705] Unicode is normalised after keywords are checked for

2018-05-30 Thread Steven D'Aprano

New submission from Steven D'Aprano :

There is a loophole in the Unicode normalisation which allows the creation of 
names matching keywords.

class Spam:
locals()['if'] = 1

Spam.퐢퐟# U+1D422 U+1D41F
# returns 1

Those two characters are 'MATHEMATICAL BOLD SMALL I' and 'MATHEMATICAL BOLD 
SMALL F'. They ought to be normalised to "if", which is a keyword.

Of course Spam.if is a syntax error, and I believe Spam.퐢퐟 ought to be as well.

Another example:

py> globals()['for'] = 2
py> 퐟or
2



I also asked about this here:

https://mail.python.org/pipermail/python-dev/2018-May/153619.html

--
components: Interpreter Core, Unicode
messages: 318250
nosy: ezio.melotti, steven.daprano, vstinner
priority: normal
severity: normal
status: open
title: Unicode is normalised after keywords are checked for
type: behavior

___
Python tracker 

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



[issue32911] Doc strings no longer stored in body of AST

2018-05-30 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +6900

___
Python tracker 

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



[issue32911] Doc strings no longer stored in body of AST

2018-05-30 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +6899

___
Python tracker 

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



[issue33704] python 3.7 and python 3.8 stable release

2018-05-30 Thread Ned Deily


Ned Deily  added the comment:

We have just updated the release schedule for Python 3.7 to include 3.7.0b5, 
now available.  The 3.7.0 release candidate is now planned for 2018-06-11 with 
3.7.0 final to follow on 2018-06-27.  We expect 3.7.0 to be adopted quickly but 
3.6.x will be still supported for some time in the major distributions.  Python 
3.8 is now in the early stages of development, with a final release currently 
planned for 2019-10 although that may change.  Information about current Python 
release plans are contained in and kept up-to-date in their respective PEPs:

3.6 https://www.python.org/dev/peps/pep-0494/
3.7 https://www.python.org/dev/peps/pep-0537/
3.8 https://www.python.org/dev/peps/pep-0569/

If you have further questions, please ask them on the Python-Dev mailing list:
https://mail.python.org/mailman/listinfo/python-dev

--
nosy: +ned.deily
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



[issue33645] Importing bs4 fails with -3 option in Python 2.7.15

2018-05-30 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

I'm not sure that this will fix your case (there may be other bug in 
BeautifulSoup4 or other changes in your environment), but it fixed a bug in 
Python. Thank you for your report.

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



[issue33641] Add links to RFCs

2018-05-30 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 0a36ac1a09587735237c5978ebd046313922869c by Serhiy Storchaka in 
branch 'master':
bpo-33641: Convert RFC references into links. (GH-7103)
https://github.com/python/cpython/commit/0a36ac1a09587735237c5978ebd046313922869c


--

___
Python tracker 

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



[issue33641] Add links to RFCs

2018-05-30 Thread miss-islington


Change by miss-islington :


--
pull_requests: +6898

___
Python tracker 

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



[issue33677] Fix signatures of tp_clear handlers

2018-05-30 Thread miss-islington


Change by miss-islington :


--
pull_requests: +6897

___
Python tracker 

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



[issue33677] Fix signatures of tp_clear handlers

2018-05-30 Thread miss-islington


Change by miss-islington :


--
pull_requests: +6896

___
Python tracker 

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



[issue33703] Object deletion and re-creation points to same attribute if attribute is a dictionary.

2018-05-30 Thread Benjamin Peterson


Benjamin Peterson  added the comment:

Please see 
https://docs.python.org/3/faq/programming.html#why-are-default-values-shared-between-objects

--
nosy: +benjamin.peterson
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



[issue33645] Importing bs4 fails with -3 option in Python 2.7.15

2018-05-30 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset d5e7556e522f4662ad34b35924b6c76895df340e by Serhiy Storchaka in 
branch '2.7':
bpo-33645: Fix an "unknown parsing error" in the parser. (GH-7119)
https://github.com/python/cpython/commit/d5e7556e522f4662ad34b35924b6c76895df340e


--

___
Python tracker 

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



[issue33677] Fix signatures of tp_clear handlers

2018-05-30 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset a5c42284e69fb309bdd17ee8c1c120d1be383012 by Serhiy Storchaka in 
branch 'master':
bpo-33677: Fix signatures of tp_clear handlers for AST and deque. (GH-7196)
https://github.com/python/cpython/commit/a5c42284e69fb309bdd17ee8c1c120d1be383012


--

___
Python tracker 

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



[issue31014] webbrowser._synthesize uses outdated calling signature for webbrowser.register

2018-05-30 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
assignee:  -> serhiy.storchaka

___
Python tracker 

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



[issue31014] webbrowser._synthesize uses outdated calling signature for webbrowser.register

2018-05-30 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

PR 7267 is based on PR 2689, but adds two tests that cover both cases of using 
webbrowser._synthesize().

--
versions: +Python 2.7, Python 3.6, Python 3.8

___
Python tracker 

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



[issue33704] python 3.7 and python 3.8 stable release

2018-05-30 Thread Saba Kauser


New submission from Saba Kauser :

Hi,
I am planning to make new release of python ibm_db driver and I wanted to know 
the stable versions of python beyond python 3.6.

I can see python 3.8 marked as "in development" and I do read that python 
3.7.0b4 is the final planned beta release preview. Would this mean that I 
cannot consider python 3.7 and python 3.8 for my next release and I would build 
only when these are marked stable.

Thank you!
Saba.

--
components: Build
messages: 318242
nosy: sabakauser
priority: normal
severity: normal
status: open
title: python 3.7 and python 3.8 stable release
type: behavior
versions: Python 3.7, Python 3.8

___
Python tracker 

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



[issue31014] webbrowser._synthesize uses outdated calling signature for webbrowser.register

2018-05-30 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
keywords: +patch
pull_requests: +6895

___
Python tracker 

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



[issue33703] Object deletion and re-creation points to same attribute if attribute is a dictionary.

2018-05-30 Thread Nitin Bhojwani


New submission from Nitin Bhojwani :

I observed a strange behaviour while working on a module.
This bug is present in multiple python version so seems it is related to 
core-interpreter.

Behaviour can be reproduced by:
1. Create an object and in __init__ of class, we define a dictionary attribute 
to that object.
2. After that we change that attribute, like assign any key-value(s) to that 
attribute.
3. Delete the object.
4. recreate the object.
5. If you check, this new object's same attribute(dictionary) is same old 
attribute which was pointed by the older object.

This is a behavioural bug, as once delete is performed on an object the whole 
object and it's (attributes') references must be removed.

I can demonstrate this using a test from unittest, in which I put instance 
creation in setUp phase, instance deletion in tearDown phase and run same test 
multiple times. The result is different each time.

The zip file contains ngraph.py which defines a class and test_util.py which 
runs test against it.
Unzip and execute as:

python test_util.py #2.7.10
python3 test_util.py #3.6.3

--
components: Interpreter Core
files: test-bug.zip
messages: 318241
nosy: Nitin Bhojwani
priority: normal
severity: normal
status: open
title: Object deletion and re-creation points to same attribute if attribute is 
a dictionary.
type: behavior
versions: Python 3.6
Added file: https://bugs.python.org/file47627/test-bug.zip

___
Python tracker 

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



[issue33690] urlib.parse.urlencode with empty list and doseq=True drops the parameter

2018-05-30 Thread R. David Murray


Change by R. David Murray :


--
resolution:  -> not a bug

___
Python tracker 

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



[issue33532] test_multiprocessing_forkserver: TestIgnoreEINTR.test_ignore() fails on Travis CI

2018-05-30 Thread miss-islington


miss-islington  added the comment:


New changeset 9d273344238330d634acb4a7d427a8fb732ae62e by Miss Islington (bot) 
in branch '3.7':
bpo-33532: Fix multiprocessing test_ignore() (GH-7262)
https://github.com/python/cpython/commit/9d273344238330d634acb4a7d427a8fb732ae62e


--
nosy: +miss-islington

___
Python tracker 

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



[issue33532] test_multiprocessing_forkserver: TestIgnoreEINTR.test_ignore() fails on Travis CI

2018-05-30 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +6894

___
Python tracker 

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



[issue33532] test_multiprocessing_forkserver: TestIgnoreEINTR.test_ignore() fails on Travis CI

2018-05-30 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +6893

___
Python tracker 

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



[issue33532] test_multiprocessing_forkserver: TestIgnoreEINTR.test_ignore() fails on Travis CI

2018-05-30 Thread miss-islington


Change by miss-islington :


--
pull_requests: +6892

___
Python tracker 

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



[issue33532] test_multiprocessing_forkserver: TestIgnoreEINTR.test_ignore() fails on Travis CI

2018-05-30 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 5d6c7ed5e340b2311a15f34e968d4bef09c71922 by Victor Stinner in 
branch 'master':
bpo-33532: Fix multiprocessing test_ignore() (#7262)
https://github.com/python/cpython/commit/5d6c7ed5e340b2311a15f34e968d4bef09c71922


--

___
Python tracker 

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



[issue33640] [EASY DOC] uuid: endian of the bytes argument is not documented

2018-05-30 Thread Farhaan Bukhsh


Change by Farhaan Bukhsh :


--
keywords: +patch
pull_requests: +6890
stage:  -> patch review

___
Python tracker 

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



[issue33532] test_multiprocessing_forkserver: TestIgnoreEINTR.test_ignore() fails on Travis CI

2018-05-30 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +6889

___
Python tracker 

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



[issue33532] test_multiprocessing_forkserver: TestIgnoreEINTR.test_ignore() fails on Travis CI

2018-05-30 Thread STINNER Victor


STINNER Victor  added the comment:

I added more traces to PR 7261 and the bug still occurred on Travis CI.

https://travis-ci.org/python/cpython/jobs/385990848

0:05:04 load avg: 42.62 [342/415/1] test_multiprocessing_forkserver failed -- 
running: test_concurrent_futures (69 sec)
child: pid=19401 ppid=19348
child: send BIG
child: done
test_answer_challenge_auth_failure 
(test.test_multiprocessing_forkserver.OtherTest) ... ok
test_deliver_challenge_auth_failure 
(test.test_multiprocessing_forkserver.OtherTest) ... ok
test_closefd (test.test_multiprocessing_forkserver.TestCloseFds) ... ok
test_flags (test.test_multiprocessing_forkserver.TestFlags) ... ok
test_lock (test.test_multiprocessing_forkserver.TestForkAwareThreadLock) ... ok
test_ignore (test.test_multiprocessing_forkserver.TestIgnoreEINTR) ... parent: 
pid=19342
parent: second SIGUSR1
ERROR

Hum... maybe the child exited, before the parent sent SIGUSR1: the child didn't 
block on sending 1 MB?

--

___
Python tracker 

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



[issue33532] test_multiprocessing_forkserver: TestIgnoreEINTR.test_ignore() fails on Travis CI

2018-05-30 Thread STINNER Victor


STINNER Victor  added the comment:

> test_multiprocessing_forkserver.test_ignore() failed on Travis CI using PR 
> 7261: --randseed=7474929. The method failed once when run in parallel, and 
> then failed again when re-reun in verbose mode.

https://travis-ci.org/python/cpython/jobs/385986803

0:04:57 load avg: 25.81 [342/415/1] test_multiprocessing_forkserver failed -- 
running: test_concurrent_futures (72 sec)

--

___
Python tracker 

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



[issue33532] test_multiprocessing_forkserver: TestIgnoreEINTR.test_ignore() fails on Travis CI

2018-05-30 Thread STINNER Victor


STINNER Victor  added the comment:

test_multiprocessing_forkserver.test_ignore() failed on Travis CI using PR 
7261: --randseed=7474929. The method failed once when run in parallel, and then 
failed again when re-reun in verbose mode.

--

___
Python tracker 

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



[issue33692] Chinese characters issue with input() function

2018-05-30 Thread Valentin Zhao


Valentin Zhao  added the comment:

Hello everyone, do we have a walkaround for this issue now? I barely read your 
discussion.

--

___
Python tracker 

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



[issue33532] test_multiprocessing_forkserver: TestIgnoreEINTR.test_ignore() fails on Travis CI

2018-05-30 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +6888

___
Python tracker 

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



[issue33532] test_multiprocessing_forkserver: TestIgnoreEINTR.test_ignore() fails on Travis CI

2018-05-30 Thread STINNER Victor


STINNER Victor  added the comment:

Notes:

* test_ignore() creates a daemonic process (it cannot spawn new processes)
* the fork server process is shared between test methods of test_forkserver
* multiprocessing.util._exit_function() terminates all daemon processes

--

___
Python tracker 

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



[issue33701] test_datetime crashed (SIGSEGV) on Travis CI

2018-05-30 Thread STINNER Victor


Change by STINNER Victor :


--
versions: +Python 3.7 -Python 3.8

___
Python tracker 

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



[issue33532] test_multiprocessing_forkserver: TestIgnoreEINTR.test_ignore() fails on Travis CI

2018-05-30 Thread STINNER Victor


STINNER Victor  added the comment:

> I added debug traces in PR 7260. test_ignore() failed, but it may be related 
> to my debug traces, since the failure is different.

https://travis-ci.org/python/cpython/jobs/385958924

--

___
Python tracker 

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



[issue33532] test_multiprocessing_forkserver: TestIgnoreEINTR.test_ignore() fails on Travis CI

2018-05-30 Thread STINNER Victor


STINNER Victor  added the comment:

I added debug traces in PR 7260. test_ignore() failed, but it may be related to 
my debug traces, since the failure is different.


test_multiprocessing_fork.test_ignore() failure:

test_ignore (test.test_multiprocessing_fork.TestIgnoreEINTR) ...
parent: pid=20159
parent: start child
parent: p=
parent: p.ident=20176
ERROR

==
ERROR: test_ignore (test.test_multiprocessing_fork.TestIgnoreEINTR)
--
Traceback (most recent call last):
  File "/home/travis/build/python/cpython/Lib/test/_test_multiprocessing.py", 
line 4389, in test_ignore
self.assertEqual(conn.recv(), 'ready')
  File "/home/travis/build/python/cpython/Lib/multiprocessing/connection.py", 
line 250, in recv
buf = self._recv_bytes()
  File "/home/travis/build/python/cpython/Lib/multiprocessing/connection.py", 
line 407, in _recv_bytes
buf = self._recv(4)
  File "/home/travis/build/python/cpython/Lib/multiprocessing/connection.py", 
line 383, in _recv
raise EOFError
EOFError


test_multiprocessing_fork.test_ignore() success:

test_ignore (test.test_multiprocessing_fork.TestIgnoreEINTR) ...
parent: pid=11713
parent: start child
parent: p=
parent: p.ident=28998
[INFO/Process-3] child process calling self.run()
child: pid=28998
child: register SIGUSR1 handler, send ready
child: wait 1234
parent: ready received
parent: first SIGUSR1
child: got SIGUSR1
parent: send 1234
parent: wait 1234
child: send back 1234
child: big blocking send
parent: second SIGUSR1
parent: wait bytes
child: got SIGUSR1
child: done
[INFO/Process-3] process shutting down
[INFO/Process-3] process shutting down
[INFO/Process-3] process exiting with exitcode 0
[INFO/Process-3] process exiting with exitcode 0
parent: join child
parent: done
ok

--

___
Python tracker 

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



[issue33532] test_multiprocessing_forkserver: TestIgnoreEINTR.test_ignore() fails on Travis CI

2018-05-30 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +6887

___
Python tracker 

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



[issue33702] Add some missings links in production lists and a little polish

2018-05-30 Thread Andrés Delfino

Change by Andrés Delfino :


--
keywords: +patch
pull_requests: +6886
stage:  -> patch review

___
Python tracker 

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



[issue33702] Add some missings links in production lists and a little polish

2018-05-30 Thread Andrés Delfino

New submission from Andrés Delfino :

There are some missing links in production lists (try, with, from __future__ 
import), and function and coroutines definitions production lists have too long 
lines.

PR fixes this and does some polish on whitespace.

--
assignee: docs@python
components: Documentation
messages: 318231
nosy: adelfino, docs@python
priority: normal
severity: normal
status: open
title: Add some missings links in production lists and a little polish
type: enhancement
versions: Python 2.7, Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

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



[issue33500] Python TKinter for Mac on latest 2.7.15 still extremely slow vs Windows

2018-05-30 Thread Michael Romero


Michael Romero  added the comment:

* What version of macOS are you using? "Is fully patched" the latest High 
Sierra?
- I've tried the version bundled with MacOS fully patched high sierra, as well 
as versions downloaded from python.org, Intel, and ActiveState.  They all 
demonstrate the slowness.

* Which variant of the Python 2.7.15 installer did you use? 
- I used the 64-bit only installer from python.org during one test.  However, 
all versions I've tried on MacOS seem to demonstrate the issue.

* Did you install ActiveState Tcl/Tk (check if there is a Tk.framework
  in /Library/Frameworks)? If so, which version?
- I used the bundled version of ActiveState Tcl/Tk that came with the 64-bit 
only installer. I have also experimented with alternate versions of python that 
use a Tcl/Tk externally.  "8.5" is the version I see on my system now.

--

___
Python tracker 

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



[issue33500] Python TKinter for Mac on latest 2.7.15 still extremely slow vs Windows

2018-05-30 Thread Michael Romero


Michael Romero  added the comment:

I don't have a minimal failing example as is being requested. What I do have is 
the smallest version of the code published by Berkeley's AI course that I could 
find that allows easy demonstration of the issue.  "python pacman.py" is enough 
to demonstrate the latency difference between the MacOS and Windows versions of 
Python. 

The specific calls causing the program to run slowly on MacOS I leave to this 
team to determine / resolve.

--

___
Python tracker 

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



[issue33532] test_multiprocessing_forkserver: TestIgnoreEINTR.test_ignore() fails on Travis CI

2018-05-30 Thread STINNER Victor


STINNER Victor  added the comment:

Python 3.7:

https://travis-ci.org/python/cpython/jobs/385458840

Re-running test 'test_multiprocessing_forkserver' in verbose mode

==
ERROR: test_ignore (test.test_multiprocessing_forkserver.TestIgnoreEINTR)
--
Traceback (most recent call last):
  File "/home/travis/build/python/cpython/Lib/test/_test_multiprocessing.py", 
line 4324, in test_ignore
os.kill(p.pid, signal.SIGUSR1)
ProcessLookupError: [Errno 3] No such process

--

___
Python tracker 

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



[issue33532] test_multiprocessing_forkserver: TestIgnoreEINTR.test_ignore() fails on Travis CI

2018-05-30 Thread STINNER Victor


STINNER Victor  added the comment:

Python 3.7:

https://travis-ci.org/python/cpython/jobs/385474104

Re-running test 'test_multiprocessing_forkserver' in verbose mode

==
ERROR: test_ignore (test.test_multiprocessing_forkserver.TestIgnoreEINTR)
--
Traceback (most recent call last):
  File "/home/travis/build/python/cpython/Lib/test/_test_multiprocessing.py", 
line 4324, in test_ignore
os.kill(p.pid, signal.SIGUSR1)
ProcessLookupError: [Errno 3] No such process

--

___
Python tracker 

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



[issue33532] test_multiprocessing_forkserver: TestIgnoreEINTR.test_ignore() fails on Travis CI

2018-05-30 Thread STINNER Victor


STINNER Victor  added the comment:

https://travis-ci.org/python/cpython/jobs/379560387

Re-running test 'test_multiprocessing_forkserver' in verbose mode
(...)
==
ERROR: test_ignore (test.test_multiprocessing_forkserver.TestIgnoreEINTR)
--
Traceback (most recent call last):
  File "/home/travis/build/python/cpython/Lib/test/_test_multiprocessing.py", 
line 4359, in test_ignore
os.kill(p.pid, signal.SIGUSR1)
ProcessLookupError: [Errno 3] No such process

--

___
Python tracker 

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



[issue33532] test_multiprocessing_forkserver: TestIgnoreEINTR.test_ignore() fails on Travis CI

2018-05-30 Thread STINNER Victor


STINNER Victor  added the comment:

test_ignore() starts to fail more and more often on Travis CI for an unknown 
reason.

https://travis-ci.org/python/cpython/jobs/385562187

== CPU count: 48
(...)
Run tests in parallel using 4 child processes
(...)
0:07:38 load avg: 128.04 [415/416/1] test_multiprocessing_forkserver failed -- 
running: test_concurrent_futures (378 sec)
(...)
==
ERROR: test_ignore (test.test_multiprocessing_forkserver.TestIgnoreEINTR)
--
Traceback (most recent call last):
  File "/home/travis/build/python/cpython/Lib/test/_test_multiprocessing.py", 
line 4359, in test_ignore
os.kill(p.pid, signal.SIGUSR1)
ProcessLookupError: [Errno 3] No such process

--

___
Python tracker 

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



[issue33690] urlib.parse.urlencode with empty list and doseq=True drops the parameter

2018-05-30 Thread Abhilash Raj


Change by Abhilash Raj :


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



[issue33690] urlib.parse.urlencode with empty list and doseq=True drops the parameter

2018-05-30 Thread Abhilash Raj


Abhilash Raj  added the comment:

Ah! But blank lists aren't.

That makes sense! Thank you!

--

___
Python tracker 

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



[issue31368] Add os.preadv() and os.pwritev()

2018-05-30 Thread STINNER Victor


STINNER Victor  added the comment:

Thanks Pablo Galindo for the new better documentation! (And thanks myself since 
I wrote the original documentation PR ;-))

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



[issue33532] test_multiprocessing_forkserver: TestIgnoreEINTR.test_ignore() fails on Travis CI

2018-05-30 Thread STINNER Victor


STINNER Victor  added the comment:

Davin, Antoine: any idea on this bug?

I ran the full test suite and test_multiprocessing_forkserver in parallel in a 
Trust VM, but I failed to reproduce the bug.

I did a similar test in a Ubuntu Trusty docker container: again, I'm unable to 
reproduce the bug.

An Ubuntu Trusty docker container is supposed to be as close as possible to 
Travis CI, except that my laptop doesn't have 48 CPUs.

--
nosy: +davin, pitrou

___
Python tracker 

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



[issue31368] Add os.preadv() and os.pwritev()

2018-05-30 Thread miss-islington


miss-islington  added the comment:


New changeset 0e823c6efa4729f3cd19f96af82c673b10cd3ee2 by Miss Islington (bot) 
in branch '3.7':
bpo-31368: Enhance os.preadv() documentation (GH-7254)
https://github.com/python/cpython/commit/0e823c6efa4729f3cd19f96af82c673b10cd3ee2


--
nosy: +miss-islington

___
Python tracker 

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



[issue33690] urlib.parse.urlencode with empty list and doseq=True drops the parameter

2018-05-30 Thread R. David Murray


R. David Murray  added the comment:

It would be odd to do that, since blank values are kept by default.

--

___
Python tracker 

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



[issue33690] urlib.parse.urlencode with empty list and doseq=True drops the parameter

2018-05-30 Thread Abhilash Raj


Abhilash Raj  added the comment:

Would it then make sense to add a similar flag, keep_blank_values, in urlencode 
to achieve similar behavior as parse_qas?

--

___
Python tracker 

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



[issue31368] Add os.preadv() and os.pwritev()

2018-05-30 Thread miss-islington


Change by miss-islington :


--
pull_requests: +6885

___
Python tracker 

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



[issue31368] Add os.preadv() and os.pwritev()

2018-05-30 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 02e2a085dc1740b1cbf4ba2ed77335c84ce8a367 by Victor Stinner (Pablo 
Galindo) in branch 'master':
bpo-31368: Enhance os.preadv() documentation (GH-7254)
https://github.com/python/cpython/commit/02e2a085dc1740b1cbf4ba2ed77335c84ce8a367


--

___
Python tracker 

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



[issue33627] test-complex of test_numeric_tower.test_complex() crashes intermittently on Ubuntu buildbots

2018-05-30 Thread STINNER Victor


STINNER Victor  added the comment:

See also bpo-33701.

--

___
Python tracker 

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



[issue33701] test_datetime crashed (SIGSEGV) on Travis CI

2018-05-30 Thread STINNER Victor


New submission from STINNER Victor :

https://travis-ci.org/python/cpython/jobs/385458840

0:00:11 load avg: 22.29 [ 23/415/1] test_datetime crashed (Exit code -11)
Fatal Python error: Segmentation fault
Current thread 0x2b52f7326400 (most recent call first):
  File "/home/travis/build/python/cpython/Lib/test/datetimetester.py", line 
4630 in test_check_arg_types
  File "/home/travis/build/python/cpython/Lib/unittest/case.py", line 615 in run
  File "/home/travis/build/python/cpython/Lib/unittest/case.py", line 663 in 
__call__
  File "/home/travis/build/python/cpython/Lib/unittest/suite.py", line 122 in 
run
  File "/home/travis/build/python/cpython/Lib/unittest/suite.py", line 84 in 
__call__
  File "/home/travis/build/python/cpython/Lib/unittest/suite.py", line 122 in 
run
  File "/home/travis/build/python/cpython/Lib/unittest/suite.py", line 84 in 
__call__
  File "/home/travis/build/python/cpython/Lib/unittest/runner.py", line 176 in 
run
  (...)

Lib/test/datetimetester.py:4630:

def test_check_arg_types(self):
class Number:
def __init__(self, value):
self.value = value
def __int__(self):
return self.value

for xx in [decimal.Decimal(10),<~~~ HERE
   decimal.Decimal('10.9'),
   Number(10)]:
self.assertEqual(datetime(10, 10, 10, 10, 10, 10, 10),
 datetime(xx, xx, xx, xx, xx, xx, xx))


Hum, this bug looks like bpo-33627.

Is it a bug in the _decimal module?

--
components: XML
messages: 318216
nosy: facundobatista, mark.dickinson, rhettinger, skrah, vstinner
priority: normal
severity: normal
status: open
title: test_datetime crashed (SIGSEGV) on Travis CI
versions: Python 3.8

___
Python tracker 

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



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

2018-05-30 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
pull_requests: +6884

___
Python tracker 

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



[issue33532] test_multiprocessing_forkserver: TestIgnoreEINTR.test_ignore() fails on Travis CI

2018-05-30 Thread STINNER Victor


STINNER Victor  added the comment:

> https://travis-ci.org/python/cpython/jobs/379560387

More info about this failure:

== Linux-4.4.0-112-generic-x86_64-with-debian-jessie-sid little-endian
== CPU count: 48
Run tests in parallel using 4 child processes
(...)
0:07:06 load avg: 24.76 [356/416/3] test_multiprocessing_forkserver failed -- 
running: test_concurrent_futures (61 sec)

--

___
Python tracker 

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



[issue33700] [doc] Old version picker don't understand language tags in URL

2018-05-30 Thread Ned Deily


Ned Deily  added the comment:

> Fix in the 3.5 branch which is not allowed as the branch is in "security 
> only" mode.

I think you could appeal to the 3.5 Release Manager that this should go in.  
Since the 3.5 docs are only rebuilt manually these days (I think), in the worst 
case the current 3.5 on-line docs would not reflect the change until the next 
3.5.x security release.

--
nosy: +ned.deily

___
Python tracker 

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



[issue33590] sched.enter priority has no impact on execution

2018-05-30 Thread Matthew Fisher


Matthew Fisher  added the comment:

> I did look at the code :-)

I also looked at the code.  I had to do so to understand why the example output 
was not "as expected."  ;)

> I don't agree about the example in the documentation, it is a clear
> demonstration about how to use the API in general and AFAIK is not
> intended to show how priorities work.

Although I came to the same conclusion as you regarding both the fact and the 
reason the output was correct, I respectfully disagree that the example is 
clear.  It is not.  Yes, the example, as written, is intended to demonstrate 
the API -- which consists of several functionalities *including priority*.  If 
this were not so, the example would not be passing different priority values 
with the same delay value.

I suggest re-opening this issue as a documentation bug and modifying the 
example to use enterabs instead of enter.

Respectfully,
M Fisher

--
nosy: +mfisher

___
Python tracker 

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



[issue33700] [doc] Old version picker don't understand language tags in URL

2018-05-30 Thread Julien Palard


Julien Palard  added the comment:

3rd possibility, docsbuild-scripts could also apply a patch during the doc 
compilation.

--

___
Python tracker 

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



[issue33698] `._pth` does not allow to populate `sys.path` with empty entry

2018-05-30 Thread Steve Dower


Steve Dower  added the comment:

If your ._pth includes `import site`, then including a blank line in a 
`anything.pth` file should add the entry.

Alternatively, if you can add "import sys; sys.path.insert(0, '')" to the start 
of your code that depends on it you should be fine.

--

___
Python tracker 

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



[issue33700] [doc] Old version picker don't understand language tags in URL

2018-05-30 Thread Julien Palard


New submission from Julien Palard :

In the old version picker used back in 3.5 [1], the function patch_url was 
patching using the following regex:

var url_re = /\.org\/(\d|py3k|dev|((release\/)?\d\.\d[\w\d\.]*))\//,

which does not expects a language tag.

This means, for example, that being on 
https://docs.python.org/fr/3.5/library/__main__.html and switching to 3.6 will 
fail (but the reverse will succeed as the implementation of the switcher in 3.6 
understands the language tag).

I see two potential fixes:

- Fix in the 3.5 branch which is not allowed as the branch is in "security 
only" mode.
- Add a rule, nginx-side, to fix the misconstructed URLS (looking like 
/3.6/fr/3.5/library/...) redirectin g them to the right place.

Other ideas and feedback welcome.


[1]: https://docs.python.org/fr/3.5/_static/version_switch.js

--
assignee: mdk
components: Documentation
messages: 318210
nosy: mdk
priority: low
severity: normal
stage: needs patch
status: open
title: [doc] Old version picker don't understand language tags in URL
versions: Python 3.5

___
Python tracker 

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



[issue33692] Chinese characters issue with input() function

2018-05-30 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 9994eff17f943fb2c190708b12c96fef9838a425 by Victor Stinner in 
branch '2.7':
bpo-33692: pythoninfo detect libedit on Python 2.7 (#7246)
https://github.com/python/cpython/commit/9994eff17f943fb2c190708b12c96fef9838a425


--

___
Python tracker 

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



[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2018-05-30 Thread STINNER Victor


STINNER Victor  added the comment:

> I used SNDBUF to enforce send buffer overloading.

What is that? Would you mind to elaborate? I'm curious :-)

--

___
Python tracker 

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



[issue31368] Add os.preadv() and os.pwritev()

2018-05-30 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
pull_requests: +6883

___
Python tracker 

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



[issue33479] Document tkinter and threads

2018-05-30 Thread Mark Roseman


Mark Roseman  added the comment:

I've made some changes to what Ivan started, which you can find here: 
https://github.com/roseman/cpython/tree/tkinter_docs

The first two commits are minor updates/improvements not really related to 
threading, and I suspect are uncontroversial. 

The last commit rewrites the thread model section. The main focus is on how 
things work in practice, and to eliminate what I previously referred to as 
"fighting" between the two models. 

It explains how Python and Tcl differ on threads, the mappings between threads 
and interpreters, etc.

It plays down the comparison to other GUI toolkit event models. It still 
highlights the difference for people familiar with them. It doesn't try to 
teach both models for those who don't know either (which includes those who may 
not have done much if any GUI programming) since that is extraneous to their 
present needs. It talks simply about why event handlers blocking is a bad 
thing. It avoids what I think are unnecessary details about Tcl in this context.

There is then an area for special cases that highlight the various actual 
trouble spots when it comes to threads, what can cause them, and how to avoid 
them. 

I hope this covers the real issues without overly complicating things. Any 
thoughts?

--

___
Python tracker 

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



[issue2504] Add gettext.pgettext() and variants support

2018-05-30 Thread Cheryl Sabella

Cheryl Sabella  added the comment:

I've created a pull request for this based on Éric's patch in 2010.  I 
attempted to incorporate the changes from #29755 into the new functions and 
tests.  I believe these changes take care of items 1 and 2 from msg122439.

I haven't tried to address item 3 in msg122439 yet.

Since this is already a large change, item 4 in msg122439 might be better as 
its own issue.

--
stage: patch review -> needs patch

___
Python tracker 

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



[issue2504] Add gettext.pgettext() and variants support

2018-05-30 Thread Cheryl Sabella


Change by Cheryl Sabella :


--
pull_requests: +6882
stage: needs patch -> patch review

___
Python tracker 

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



[issue33699] Don't describe try's else clause in a footnote

2018-05-30 Thread Andrés Delfino

Change by Andrés Delfino :


--
keywords: +patch
pull_requests: +6881
stage:  -> patch review

___
Python tracker 

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



[issue33699] Don't describe try's else clause in a footnote

2018-05-30 Thread Andrés Delfino

New submission from Andrés Delfino :

This behavior has not changed in 11 years so I think it's safe to describe the 
"else" clause along the rest of the "try" clause.

Attached PR fixes this.

--
assignee: docs@python
components: Documentation
messages: 318205
nosy: adelfino, docs@python
priority: normal
severity: normal
status: open
title: Don't describe try's else clause in a footnote
type: enhancement
versions: Python 2.7, Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

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



[issue33238] AssertionError on await of Future returned by asyncio.wrap_future

2018-05-30 Thread Andrew Svetlov


Change by Andrew Svetlov :


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



[issue29326] Blank lines in ._pth file are not ignored

2018-05-30 Thread Vladimir Chebotarev


Change by Vladimir Chebotarev :


--
pull_requests:  -6869

___
Python tracker 

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



[issue33696] Install python-docs-theme even if SPHINXBUILD is defined

2018-05-30 Thread miss-islington


miss-islington  added the comment:


New changeset 7301dd91e8326e9b74932e81f400aaee76d3cda1 by Miss Islington (bot) 
in branch '3.6':
bpo-33696: Install python-docs-theme even if SPHINXBUILD is defined (GH-7242)
https://github.com/python/cpython/commit/7301dd91e8326e9b74932e81f400aaee76d3cda1


--

___
Python tracker 

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



[issue33698] `._pth` does not allow to populate `sys.path` with empty entry

2018-05-30 Thread Vladimir Chebotarev


Change by Vladimir Chebotarev :


--
title: `._pth` does not allow to populate `sys.path` empty entry -> `._pth` 
does not allow to populate `sys.path` with empty entry

___
Python tracker 

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



[issue33696] Install python-docs-theme even if SPHINXBUILD is defined

2018-05-30 Thread miss-islington


miss-islington  added the comment:


New changeset ea1982a475a619500c93bc3d60c6cb63a202b7ed by Miss Islington (bot) 
in branch '3.7':
bpo-33696: Install python-docs-theme even if SPHINXBUILD is defined (GH-7242)
https://github.com/python/cpython/commit/ea1982a475a619500c93bc3d60c6cb63a202b7ed


--
nosy: +miss-islington

___
Python tracker 

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



[issue33689] Blank lines in .pth file cause a duplicate sys.path entry

2018-05-30 Thread Ammar Askar


Ammar Askar  added the comment:

If this is actually an issue, and not just a documentation lapse I can create a 
pull request from my original patch.

--
nosy: +ammar2

___
Python tracker 

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



[issue33698] `._pth` does not allow to populate `sys.path` empty entry

2018-05-30 Thread Vladimir Chebotarev


New submission from Vladimir Chebotarev :

Moving from bpo-29326

Hi Steve.

I'll try to explain what is my motivation.

I need a reliable way to run Python (not matter embedded or not) in isolated 
mode, but still having current directory in `sys.path` (empty entry).

Ironically I could misuse normal mode to simulate isolated mode with specified 
%PYTHONPATH% (which is not much handy, by the way), but hiding Windows Registry 
keys would look pretty hard (it is impossible to make a bat/cmd wrapper). 
Possibility to search %PYTHONPATH% in HKLM entries makes it even worse.

Empty entry in `sys.path` is a extremely popular thing, and many software 
depend on it. It looks like a bug that isolated mode cannot support such entry.

# How would I fix it.

Possibly we should allow another keyword for adding an empty entry (like we 
have an exclusion for `import site`).

Ideas are appreciated.

--
assignee: docs@python
components: Documentation, Windows
messages: 318202
nosy: docs@python, excitoon, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
pull_requests: 6878
severity: normal
status: open
title: `._pth` does not allow to populate `sys.path` empty entry
type: behavior
versions: Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

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



[issue29326] Blank lines in ._pth file are not ignored

2018-05-30 Thread R. David Murray


R. David Murray  added the comment:

Vladimir, please open a new issue for this feature request.  This issue is 
closed.

--
nosy: +r.david.murray

___
Python tracker 

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



[issue29326] Blank lines in ._pth file are not ignored

2018-05-30 Thread Malcolm Smith


Malcolm Smith  added the comment:

FYI: I have created issue 33689 for the non-Windows-specific issue.

--

___
Python tracker 

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



[issue29326] Blank lines in ._pth file are not ignored

2018-05-30 Thread Vladimir Chebotarev


Vladimir Chebotarev  added the comment:

Hi Steve.

I'll try to explain what is my motivation.

I need a reliable way to run Python (not matter embedded or not) in isolated 
mode, but still having current directory in `sys.path` (empty entry).

Ironically I could misuse normal mode to simulate isolated mode with specified 
%PYTHONPATH% (which is not much handy, by the way), but hiding Windows Registry 
keys would look pretty hard (it is impossible to make a bat/cmd wrapper). 
Possibility to search %PYTHONPATH% in HKLM entries makes it even worse.

Empty entry in `sys.path` is a extremely popular thing, and many software 
depend on it. It looks like a bug that isolated mode cannot support such entry.

# How would I fix it.

Possibly we should allow another keyword for adding an empty entry (like we 
have an exclusion for `import site`).

Ideas are appreciated.

--

___
Python tracker 

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



[issue33615] test__xxsubinterpreters crashed on x86 Gentoo Refleaks 3.x

2018-05-30 Thread Eric Snow


Change by Eric Snow :


--
keywords: +patch
pull_requests: +6876
stage:  -> patch review

___
Python tracker 

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



[issue32604] Expose the subinterpreters C-API in Python for testing use.

2018-05-30 Thread Eric Snow


Change by Eric Snow :


--
pull_requests: +6877

___
Python tracker 

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



[issue33696] Install python-docs-theme even if SPHINXBUILD is defined

2018-05-30 Thread miss-islington


Change by miss-islington :


--
pull_requests: +6875

___
Python tracker 

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



[issue29326] Blank lines in ._pth file are not ignored

2018-05-30 Thread Steve Dower


Steve Dower  added the comment:

The python._pth file generated for the embeddable distribution includes ".", 
which allows you to import from the dist directory. The blank line should be 
ignored.

If you want to misuse the embeddable distribution by not restricting its search 
paths, delete the ._pth file.

--

___
Python tracker 

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



[issue33696] Install python-docs-theme even if SPHINXBUILD is defined

2018-05-30 Thread miss-islington


Change by miss-islington :


--
pull_requests: +6874

___
Python tracker 

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



[issue33696] Install python-docs-theme even if SPHINXBUILD is defined

2018-05-30 Thread Steve Dower

Steve Dower  added the comment:


New changeset 05f1c8902c78dce66aed067444e2b973221bae2b by Steve Dower (Andrés 
Delfino) in branch 'master':
bpo-33696: Install python-docs-theme even if SPHINXBUILD is defined (GH-7242)
https://github.com/python/cpython/commit/05f1c8902c78dce66aed067444e2b973221bae2b


--

___
Python tracker 

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



[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2018-05-30 Thread Yury Selivanov


Yury Selivanov  added the comment:

> We can remove the socket buffers size manipulation at all without any problem.


When I tried to do that I think I was having more failures with that test. But 
really up to you.

--

___
Python tracker 

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



[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2018-05-30 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

I used SNDBUF to enforce send buffer overloading.
It is not required by sendfile tests but I thought that better to have 
non-mocked way to test such situations.
We can remove the socket buffers size manipulation at all without any problem.

--

___
Python tracker 

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



[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2018-05-30 Thread Yury Selivanov


Yury Selivanov  added the comment:

I can't reproduce test_start_tls_server_1 fails when I do (screenshot attached)

1. run test_asyncio
2. run test_asyncio.test_sslproto
3. run test_asyncio.test_sslproto -m test_start_tls_server_1

I run them in Windows 7 VM on Mac OS.

All other tests pass fine for me except 
test_sendfile_close_peer_in_the_middle_of_receiving.  Andrew, please look at 
this, this is your test, and I'm not sure I follow why we use SNDBUF at all. 
IMO it should be possible to write a test without using that (or if not, maybe 
time to use mocks).

With regards to start_tls tests -- I give up, I don't have time to look into 
this before 3.7.0.  I suggest to mask the test on the specific win buildbot it 
crashes on and fix it before 3.7.1 (or maybe when Windows users come up with a 
reliable way to reproduce the bug).

--
Added file: https://bugs.python.org/file47626/Screen Shot 2018-05-30 at 
11.38.38 AM.png

___
Python tracker 

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



[issue29512] regrtest refleak: implement bisection feature

2018-05-30 Thread STINNER Victor


STINNER Victor  added the comment:

One year later, all issues have now been fixed ;-)

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



[issue29512] regrtest refleak: implement bisection feature

2018-05-30 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 823c295efa4efea93cadc640ed6122cd9d86cec4 by Victor Stinner in 
branch '2.7':
bpo-29512: Rename Lib/test/bisect.py to bisect_cmd.py (#7229)
https://github.com/python/cpython/commit/823c295efa4efea93cadc640ed6122cd9d86cec4


--

___
Python tracker 

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



[issue33532] test_multiprocessing_forkserver: TestIgnoreEINTR.test_ignore() fails on Travis CI

2018-05-30 Thread STINNER Victor


Change by STINNER Victor :


--
keywords: +patch
pull_requests: +6873
stage:  -> patch review

___
Python tracker 

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



[issue33692] Chinese characters issue with input() function

2018-05-30 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +6872

___
Python tracker 

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



[issue33692] Chinese characters issue with input() function

2018-05-30 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset f7a19c28bda7b0ed3a440db80202013a86af6850 by Victor Stinner in 
branch '3.6':
bpo-33692: pythoninfo detect libedit on Python 3.6 (GH-7244)
https://github.com/python/cpython/commit/f7a19c28bda7b0ed3a440db80202013a86af6850


--

___
Python tracker 

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



[issue33692] Chinese characters issue with input() function

2018-05-30 Thread Ned Deily


Change by Ned Deily :


--
nosy:  -ned.deily

___
Python tracker 

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



  1   2   >