[issue35619] Support custom data descriptors in pydoc

2019-01-15 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset efcf82f94572abcdbd70336e0b2c3d0f4df280bc by Serhiy Storchaka in 
branch 'master':
bpo-35619: Improve support of custom data descriptors in help() and pydoc. 
(GH-11366)
https://github.com/python/cpython/commit/efcf82f94572abcdbd70336e0b2c3d0f4df280bc


--

___
Python tracker 

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



[issue29707] os.path.ismount() always returns false for mount --bind on same filesystem

2019-01-15 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 32ebd8508d4807a7c85d2ed8e9c3b44ecd6de591 by Serhiy Storchaka in 
branch 'master':
bpo-29707: Document that os.path.ismount() is not able to reliable detect bind 
mounts. (GH-11238)
https://github.com/python/cpython/commit/32ebd8508d4807a7c85d2ed8e9c3b44ecd6de591


--

___
Python tracker 

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



[issue29707] os.path.ismount() always returns false for mount --bind on same filesystem

2019-01-15 Thread miss-islington


Change by miss-islington :


--
pull_requests: +11199, 11200

___
Python tracker 

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



[issue29707] os.path.ismount() always returns false for mount --bind on same filesystem

2019-01-15 Thread miss-islington


Change by miss-islington :


--
pull_requests: +11199

___
Python tracker 

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



[issue29707] os.path.ismount() always returns false for mount --bind on same filesystem

2019-01-15 Thread miss-islington


Change by miss-islington :


--
pull_requests: +11199, 11200, 11201

___
Python tracker 

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



[issue35619] Support custom data descriptors in pydoc

2019-01-15 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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



[issue29707] os.path.ismount() always returns false for mount --bind on same filesystem

2019-01-15 Thread miss-islington


miss-islington  added the comment:


New changeset a4aade2cf82dfa889c2bdad9fa0aa874f43c0bf8 by Miss Islington (bot) 
in branch '3.7':
bpo-29707: Document that os.path.ismount() is not able to reliable detect bind 
mounts. (GH-11238)
https://github.com/python/cpython/commit/a4aade2cf82dfa889c2bdad9fa0aa874f43c0bf8


--
nosy: +miss-islington

___
Python tracker 

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



[issue32146] multiprocessing freeze_support needed outside win32

2019-01-15 Thread Ronald Oussoren


Change by Ronald Oussoren :


--
nosy: +ronaldoussoren

___
Python tracker 

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



[issue35741] unittest.skipUnless(time._STRUCT_TM_ITEMS == 11, "needs tm_zone support") doesn't work

2019-01-15 Thread jianxu3


New submission from jianxu3 :

Whether or not the HAVE_STRUCT_TM_TM_ZONE is defined, _STRUCT_TM_ITEMS always 
equal to 11. It is initialized at PyInit_time(void).
PyModule_AddIntConstant(m, "_STRUCT_TM_ITEMS", 11);

If I modify it like this:
#ifdef HAVE_STRUCT_TM_TM_ZONE
PyModule_AddIntConstant(m, "_STRUCT_TM_ITEMS", 11)
#else
PyModule_AddIntConstant(m, "_STRUCT_TM_ITEMS", 9)
#endif

Then test_fields at test_structseq.py will fail.

def test_fields(self):
self.assertEqual(t.n_fields, time._STRUCT_TM_ITEMS)

What I hope is that if HAVE_STRUCT_TM_TM_ZONE is not defined, 
test_localtime_timezone will be skipped.

--
components: Tests
messages: 333654
nosy: jianxu3
priority: normal
severity: normal
status: open
title: unittest.skipUnless(time._STRUCT_TM_ITEMS == 11, "needs tm_zone 
support") doesn't work
type: behavior
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



[issue35742] test_builtin fails after merging the fix for bpo-34756

2019-01-15 Thread Chih-Hsuan Yen


New submission from Chih-Hsuan Yen :

On git-master (32ebd8508d4807a7c85d2ed8e9c3b44ecd6de591) of CPython, 3 tests of 
test_builtin fails:

==
ERROR: test_envar_unimportable (test.test_builtin.TestBreakpoint) (envar='.')
--
Traceback (most recent call last):
  File "/home/yen/Projects/cpython/Lib/test/test_builtin.py", line 1618, in 
test_envar_unimportable
breakpoint()
ValueError: Empty module name

==
ERROR: test_envar_unimportable (test.test_builtin.TestBreakpoint) (envar='.foo')
--
Traceback (most recent call last):
  File "/home/yen/Projects/cpython/Lib/test/test_builtin.py", line 1618, in 
test_envar_unimportable
breakpoint()
ValueError: Empty module name

==
ERROR: test_envar_unimportable (test.test_builtin.TestBreakpoint) (envar='.int')
--
Traceback (most recent call last):
  File "/home/yen/Projects/cpython/Lib/test/test_builtin.py", line 1618, in 
test_envar_unimportable
breakpoint()
ValueError: Empty module name

--

If I revert 6fe9c446f8302553952f63fc6d96be4dfa48ceba, tests pass. This commit 
is from issue34756, so I add the author of that patch to the nosy list.

Environment: Arch Linux x86_64

Steps to reproduce:
$ ./configure
$ make
$ ./python -m test -v test_builtin

--
components: Tests
messages: 333655
nosy: serhiy.storchaka, yan12125
priority: normal
severity: normal
status: open
title: test_builtin fails after merging the fix for bpo-34756
type: behavior
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



[issue35537] use os.posix_spawn in subprocess

2019-01-15 Thread STINNER Victor


STINNER Victor  added the comment:

> FYI, I'm researching how to use vfork(), focusing on Linux, but I'll need 
> more time to study the current state of affairs of libcs.

Using os.posix_spawn() in pure Python is a first step forward :-)


> (...) There are also additional subtle issues related to signal handling (and 
> pthread cancellation in particular) which I need to study.

That's why vfork was an opt-in option in the first glibc implementation, 
whereas glibc is now able to detect when using vfork is safe or not.


> If I find vfork()-like approach feasible, I'll open a separate issue. The 
> bonus of this approach is that it doesn't depend on a particular libc, so 
> both glibc (including older versions) and musl could be supported.

I like it, but it seems to be *very* tricky to implement!

--

___
Python tracker 

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



[issue35537] use os.posix_spawn in subprocess

2019-01-15 Thread STINNER Victor


STINNER Victor  added the comment:

If someone wants to implement a runtime check for musl, here is an heuristic 
based on ldd output and libc filenames:

https://github.com/lovell/detect-libc/blob/master/lib/detect-libc.js

var GLIBC = 'glibc';
var MUSL = 'musl';

// Try ldd
var ldd = spawnSync('ldd', ['--version'], spawnOptions);
if (ldd.status === 0 && ldd.stdout.indexOf(MUSL) !== -1) {
  family = MUSL;
  version = versionFromMuslLdd(ldd.stdout);
  method = 'ldd';
} else if (ldd.status === 1 && ldd.stderr.indexOf(MUSL) !== -1) {
  family = MUSL;
  version = versionFromMuslLdd(ldd.stderr);
  method = 'ldd';
} else {
  // Try filesystem (family only)
  var lib = safeReaddirSync('/lib');
  if (lib.some(contains('-linux-gnu'))) {
family = GLIBC;
method = 'filesystem';
  } else if (lib.some(contains('libc.musl-'))) {
family = MUSL;
method = 'filesystem';
  } else if (lib.some(contains('ld-musl-'))) {
family = MUSL;
method = 'filesystem';
  } else {
var usrSbin = safeReaddirSync('/usr/sbin');
if (usrSbin.some(contains('glibc'))) {
  family = GLIBC;
  method = 'filesystem';
}
  }
}

--

___
Python tracker 

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



[issue35633] test_eintr fails on AIX since fcntl functions were modified

2019-01-15 Thread Michael Felt


Michael Felt  added the comment:

On 07/01/2019 15:46, STINNER Victor wrote:
> STINNER Victor  added the comment:
>
> Since you are getting indentation error, I'm not sure about your test. Can 
> you please apply the patch below and run again test_eintr? Does it still fail 
> with PermissionError?
Answer - Yes. Still get PermissionError
>
> diff --git a/Lib/test/eintrdata/eintr_tester.py 
> b/Lib/test/eintrdata/eintr_tester.py
> index 25c169bde5..4db5dc9045 100644
> --- a/Lib/test/eintrdata/eintr_tester.py
> +++ b/Lib/test/eintrdata/eintr_tester.py
> @@ -492,13 +492,13 @@ class FNTLEINTRTest(EINTRBaseTest):
>  self.addCleanup(support.unlink, support.TESTFN)
>  code = '\n'.join((
>  "import fcntl, time",
> -"with open('%s', 'wb') as f:" % support.TESTFN,
> +"with open('%s', 'w+b') as f:" % support.TESTFN,
>  "   fcntl.%s(f, fcntl.LOCK_EX)" % lock_name,
>  "   time.sleep(%s)" % self.sleep_time))
>  start_time = time.monotonic()
>  proc = self.subprocess(code)
>  with kill_on_error(proc):
> -with open(support.TESTFN, 'wb') as f:
> +with open(support.TESTFN, 'w+b') as f:
>  while True:  # synchronize the subprocess
>  dt = time.monotonic() - start_time
>  if dt > 60.0:
>
> --
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue26226] Test failures with non-ascii character in hostname on Windows

2019-01-15 Thread Jack


Jack  added the comment:

Python not working..

--
nosy: +Jack01

___
Python tracker 

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



[issue34756] Few changes in sys.breakpointhook()

2019-01-15 Thread STINNER Victor


STINNER Victor  added the comment:

I reopen the issue. This change broke test_builtin: see bpo-35742.

I can reproduce the test failure on my Fedoea 29 using:

./python -m test -v test_builtin -m TestBreakpoint

--
nosy: +vstinner
resolution: fixed -> 
status: closed -> open

___
Python tracker 

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



[issue35743] Broken "Exception ignored in:" message on OSError's

2019-01-15 Thread Ori Avtalion


New submission from Ori Avtalion :

When an OSError exception is raised in __del__, both Python 2 and 3 print the 
"Exception ignored" message, but Python 3 also prints a traceback.

This is similar to issue 22836, with dealt with errors in __repr__ while inside 
__del__.

Test script:

import os

class Obj(object):
def __init__(self):
self.f = open('/dev/null')
os.close(self.f.fileno())

def __del__(self):
self.f.close()

f = Obj()
del f

Output with Python 3.7.2:

Exception ignored in: 
Traceback (most recent call last):
  File "/tmp/test.py", line 9, in __del__
self.f.close()
OSError: [Errno 9] Bad file descriptor

--
components: Interpreter Core
messages: 333661
nosy: salty-horse
priority: normal
severity: normal
status: open
title: Broken "Exception ignored in:" message on OSError's
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



[issue35742] test_builtin fails after merging the fix for bpo-34756

2019-01-15 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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

___
Python tracker 

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



[issue34756] Few changes in sys.breakpointhook()

2019-01-15 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +11206, 11207
stage: resolved -> patch review

___
Python tracker 

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



[issue35633] test_eintr fails on AIX since fcntl functions were modified

2019-01-15 Thread STINNER Victor


STINNER Victor  added the comment:

> On AIX the test for flock() passes, but the test for lockf() fails: (...)

I would prefer to simply skip the lockf() test rather than ignoring 
PermissionError for flock() and lockf() on all platforms. Can you please write 
a PR for that?

There is no need to add a NEWS entry, I will add "skip news". If you want to 
add a NEWS entry, mention at least the fixed test and AIX.

--

___
Python tracker 

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



[issue35742] test_builtin fails after merging the fix for bpo-34756

2019-01-15 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
keywords: +patch, patch
pull_requests: +11202, 11203
stage:  -> patch review

___
Python tracker 

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



[issue34756] Few changes in sys.breakpointhook()

2019-01-15 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +11206
stage: resolved -> patch review

___
Python tracker 

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



[issue35742] test_builtin fails after merging the fix for bpo-34756

2019-01-15 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
keywords: +patch, patch, patch, patch
pull_requests: +11202, 11203, 11204, 11205
stage:  -> patch review

___
Python tracker 

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



[issue27423] Failed assertions when running test.test_os on Windows

2019-01-15 Thread STINNER Victor


STINNER Victor  added the comment:

This bug has been fixed in test_os or libregrtest, I don't recall, but it's now 
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



[issue35742] test_builtin fails after merging the fix for bpo-34756

2019-01-15 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
keywords: +patch, patch, patch
pull_requests: +11202, 11203, 11204
stage:  -> patch review

___
Python tracker 

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



[issue22836] Broken "Exception ignored in:" message on exceptions in __repr__

2019-01-15 Thread Ori Avtalion


Ori Avtalion  added the comment:

I encountered a similar bug and reported it as issue 35743.

--
nosy: +salty-horse

___
Python tracker 

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



[issue27426] Encoding mismatch causes some tests to fail on Windows

2019-01-15 Thread STINNER Victor


STINNER Victor  added the comment:

I'm quite sure that this bug has been fixed in the meanwhile. If it still 
fails, please give more information about your configuration: ANSI code page, 
regional configuration, Windows version, etc.

--
nosy: +vstinner
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



[issue26226] Test failures with non-ascii character in hostname on Windows

2019-01-15 Thread STINNER Victor


STINNER Victor  added the comment:

I'm not sure that all issues have been fixed, but almost all of them are. I 
prefer to close this issue which has a long history and mentions very different 
bugs. If someone wants to continue the effort for better Unicode support on 
Windows with non-ASCII hostname, please open a new specific issues.

Thanks Emanuel Barry for your bug report!

--
resolution:  -> fixed
stage: needs patch -> resolved
status: open -> closed

___
Python tracker 

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



[issue35738] Update timeit documentation to reflect default repeat of five

2019-01-15 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 06f8b57212b2e2cd2e63af36cecdfa3075b324a2 by Serhiy Storchaka 
(Henry Chen) in branch 'master':
bpo-35738: Update the example for timer.Timer.repeat(). (GH-11559)
https://github.com/python/cpython/commit/06f8b57212b2e2cd2e63af36cecdfa3075b324a2


--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue35738] Update timeit documentation to reflect default repeat of five

2019-01-15 Thread miss-islington


Change by miss-islington :


--
pull_requests: +11208

___
Python tracker 

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



[issue35742] test_builtin fails after merging the fix for bpo-34756

2019-01-15 Thread Chih-Hsuan Yen


Chih-Hsuan Yen  added the comment:

Wow that's super fast! I can confirm the patch fixes the issue on my machine. 
Thanks!

--

___
Python tracker 

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



[issue35738] Update timeit documentation to reflect default repeat of five

2019-01-15 Thread miss-islington


Change by miss-islington :


--
pull_requests: +11208, 11209

___
Python tracker 

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



[issue35742] test_builtin fails after merging the fix for bpo-34756

2019-01-15 Thread STINNER Victor


STINNER Victor  added the comment:

I don't understand why buildbots didn't scream and why the test didn't fail on 
Travis CI nor AppVeyor on https://github.com/python/cpython/pull/9457

--
nosy: +vstinner

___
Python tracker 

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



[issue35742] test_builtin fails after merging the fix for bpo-34756

2019-01-15 Thread Chih-Hsuan Yen


Chih-Hsuan Yen  added the comment:

Found a test_builtin failure in the job for the relevant commit on Travis CI - 
https://travis-ci.org/python/cpython/jobs/479642964#L1491. I guess it's not 
noticed as it's listed in allow_failures in .travis.yml. However, I'm not sure 
if it's the same issue or not as there are no failure details.

--

___
Python tracker 

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



[issue35742] test_builtin fails after merging the fix for bpo-34756

2019-01-15 Thread STINNER Victor


STINNER Victor  added the comment:

> Found a test_builtin failure in the job for the relevant commit on Travis CI 
> - https://travis-ci.org/python/cpython/jobs/479642964#L1491.

This job is for code coverage. I confirm that failures are allowed. This job 
runs the full test suite in sequence, whereas the main Travis CI job runs tests 
in parallel... I tested running tests in sequence and in parallel: test_builtin 
fail in both cases. It's a mystery. Anyway, it's going to be fixed soon ;-)

--

___
Python tracker 

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



[issue35743] Broken "Exception ignored in:" message on OSError's

2019-01-15 Thread STINNER Victor


STINNER Victor  added the comment:

Python works as expected, I don't understand why you opened a bug report? What 
looks wrong to you?

Closing a closed file descriptor is your fault, not a bug in Python.

Python logs an error as expected.

--
nosy: +vstinner

___
Python tracker 

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



[issue34323] False timeout log message on proactor close

2019-01-15 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset b1e45739d832e1e402a563c6727defda92e193b7 by Victor Stinner in 
branch 'master':
bpo-34323: Enhance IocpProactor.close() log (GH-11555)
https://github.com/python/cpython/commit/b1e45739d832e1e402a563c6727defda92e193b7


--
nosy: +vstinner

___
Python tracker 

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



[issue11555] email.Message.as_string no longer mangles "From " (doc fix)

2019-01-15 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +11210

___
Python tracker 

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



[issue35738] Update timeit documentation to reflect default repeat of five

2019-01-15 Thread miss-islington


miss-islington  added the comment:


New changeset 0bb6b891154b5718c2d7604fc4aa7a51a2f9fe70 by Miss Islington (bot) 
in branch '3.7':
bpo-35738: Update the example for timer.Timer.repeat(). (GH-11559)
https://github.com/python/cpython/commit/0bb6b891154b5718c2d7604fc4aa7a51a2f9fe70


--
nosy: +miss-islington

___
Python tracker 

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



[issue11555] email.Message.as_string no longer mangles "From " (doc fix)

2019-01-15 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +11210, 11211

___
Python tracker 

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



[issue11555] email.Message.as_string no longer mangles "From " (doc fix)

2019-01-15 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +11210, 11211, 11212

___
Python tracker 

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



[issue35738] Update timeit documentation to reflect default repeat of five

2019-01-15 Thread STINNER Victor


Change by STINNER Victor :


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



[issue11555] email.Message.as_string no longer mangles "From " (doc fix)

2019-01-15 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset b91140fdb17472d03a7b7971f143c08a40fde923 by Victor Stinner in 
branch 'master':
bpo-11555: Enhance IocpProactor.close() log again (GH-11563)
https://github.com/python/cpython/commit/b91140fdb17472d03a7b7971f143c08a40fde923


--
nosy: +vstinner

___
Python tracker 

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



[issue35743] Broken "Exception ignored in:" message on OSError's

2019-01-15 Thread Ori Avtalion


Ori Avtalion  added the comment:

Sorry, I was confused by how Python 3 prints the traceback of ignored 
exceptions, and Python 2 does not.

(This happens on on any exception and not just OSError)

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



[issue35742] test_builtin fails after merging the fix for bpo-34756

2019-01-15 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 3607ef43c4a1a24d44f39ff54a77fc0af5bfa09a by Serhiy Storchaka in 
branch 'master':
bpo-35742: Fix test_envar_unimportable in test_builtin. (GH-11561)
https://github.com/python/cpython/commit/3607ef43c4a1a24d44f39ff54a77fc0af5bfa09a


--

___
Python tracker 

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



[issue34756] Few changes in sys.breakpointhook()

2019-01-15 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 3607ef43c4a1a24d44f39ff54a77fc0af5bfa09a by Serhiy Storchaka in 
branch 'master':
bpo-35742: Fix test_envar_unimportable in test_builtin. (GH-11561)
https://github.com/python/cpython/commit/3607ef43c4a1a24d44f39ff54a77fc0af5bfa09a


--

___
Python tracker 

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



[issue34756] Few changes in sys.breakpointhook()

2019-01-15 Thread miss-islington


Change by miss-islington :


--
pull_requests: +11217

___
Python tracker 

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



[issue35743] Broken "Exception ignored in:" message on OSError's

2019-01-15 Thread STINNER Victor


STINNER Victor  added the comment:

> Sorry, I was confused by how Python 3 prints the traceback of ignored 
> exceptions, and Python 2 does not.

It's not a bug but a nice feature which helps you to debug your code!

--

___
Python tracker 

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



[issue34756] Few changes in sys.breakpointhook()

2019-01-15 Thread miss-islington


Change by miss-islington :


--
pull_requests: +11217, 11218, 11219, 11220

___
Python tracker 

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



[issue34756] Few changes in sys.breakpointhook()

2019-01-15 Thread miss-islington


Change by miss-islington :


--
pull_requests: +11217, 11218, 11220

___
Python tracker 

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



[issue34756] Few changes in sys.breakpointhook()

2019-01-15 Thread miss-islington


Change by miss-islington :


--
pull_requests: +11217, 11218

___
Python tracker 

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



[issue34323] False timeout log message on proactor close

2019-01-15 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +11225

___
Python tracker 

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



[issue11555] email.Message.as_string no longer mangles "From " (doc fix)

2019-01-15 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +11221, 11222

___
Python tracker 

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



[issue11555] email.Message.as_string no longer mangles "From " (doc fix)

2019-01-15 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +11221, 11222, 11223, 11224

___
Python tracker 

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



[issue11555] email.Message.as_string no longer mangles "From " (doc fix)

2019-01-15 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +11221

___
Python tracker 

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



[issue11555] email.Message.as_string no longer mangles "From " (doc fix)

2019-01-15 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +11221, 11222, 11224

___
Python tracker 

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



[issue34323] False timeout log message on proactor close

2019-01-15 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +11225, 11226

___
Python tracker 

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



[issue11555] email.Message.as_string no longer mangles "From " (doc fix)

2019-01-15 Thread STINNER Victor


STINNER Victor  added the comment:

> New changeset b91140fdb17472d03a7b7971f143c08a40fde923 by Victor Stinner in 
> branch 'master':
> bpo-11555: Enhance IocpProactor.close() log again (GH-11563)
> https://github.com/python/cpython/commit/b91140fdb17472d03a7b7971f143c08a40fde923

Sorry, this change is for bpo-34323.

--

___
Python tracker 

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



[issue34323] False timeout log message on proactor close

2019-01-15 Thread STINNER Victor


STINNER Victor  added the comment:

Oops, I used the wrong bpo number for my second change in master:

New changeset b91140fdb17472d03a7b7971f143c08a40fde923 by Victor Stinner in 
branch 'master':
bpo-11555: Enhance IocpProactor.close() log again (GH-11563)
https://github.com/python/cpython/commit/b91140fdb17472d03a7b7971f143c08a40fde923

--

___
Python tracker 

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



[issue35742] test_builtin fails after merging the fix for bpo-34756

2019-01-15 Thread miss-islington


miss-islington  added the comment:


New changeset 97d6a56d9d169f35cf2a24d62bf15adfc42fc672 by Miss Islington (bot) 
in branch '3.7':
bpo-35742: Fix test_envar_unimportable in test_builtin. (GH-11561)
https://github.com/python/cpython/commit/97d6a56d9d169f35cf2a24d62bf15adfc42fc672


--
nosy: +miss-islington

___
Python tracker 

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



[issue34756] Few changes in sys.breakpointhook()

2019-01-15 Thread miss-islington


miss-islington  added the comment:


New changeset 97d6a56d9d169f35cf2a24d62bf15adfc42fc672 by Miss Islington (bot) 
in branch '3.7':
bpo-35742: Fix test_envar_unimportable in test_builtin. (GH-11561)
https://github.com/python/cpython/commit/97d6a56d9d169f35cf2a24d62bf15adfc42fc672


--

___
Python tracker 

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



[issue35742] test_builtin fails after merging the fix for bpo-34756

2019-01-15 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

I was surprised too. Maybe it is because that was very old 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



[issue34756] Few changes in sys.breakpointhook()

2019-01-15 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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



[issue35742] test_builtin fails after merging the fix for bpo-34756

2019-01-15 Thread STINNER Victor


STINNER Victor  added the comment:

> I was surprised too. Maybe it is because that was very old PR.

Yeah, that's the most likely explanation. Maybe the CI ran tests before the 
final merge, or something like that? It doesn't explain why buildbots didn't 
complain, but it doesn't matter if such hiccup is very rare ;-)

--

___
Python tracker 

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



[issue35711] Print information about an unexpectedly pending error before crashing

2019-01-15 Thread STINNER Victor


STINNER Victor  added the comment:

I close the issue, see:

https://github.com/python/cpython/pull/11513#issuecomment-454369637

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



[issue35742] test_builtin fails after merging the fix for bpo-34756

2019-01-15 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Maybe CI updates only files touched by the PR and the failed test was added 
after the initial creation of the PR? Or there is something wrong with 
timestamps, so outdated pyc files were used for tests?

--

___
Python tracker 

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



[issue34323] False timeout log message on proactor close

2019-01-15 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset d5a6adf6285ec8892b977a32c22143ebd1025b50 by Victor Stinner in 
branch '3.7':
[3.7] bpo-34323: Enhance IocpProactor.close() log (GH-11565)
https://github.com/python/cpython/commit/d5a6adf6285ec8892b977a32c22143ebd1025b50


--

___
Python tracker 

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



[issue34323] False timeout log message on proactor close

2019-01-15 Thread STINNER Victor


STINNER Victor  added the comment:

Ok, the bug is now fixed. Thanks for your bug report John Nelson!

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



[issue35599] asyncio windows_events.py IocpProactor bug

2019-01-15 Thread STINNER Victor


STINNER Victor  added the comment:

I confirm that it's a duplicate of bpo-34323 that I just fixed ;-)

--
nosy: +vstinner
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> False timeout log message on proactor close

___
Python tracker 

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



[issue27500] ProactorEventLoop cannot open connection to ::1

2019-01-15 Thread STINNER Victor


Change by STINNER Victor :


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



[issue33837] Closing asyncio.Server on asyncio.ProactorEventLoop causes all active servers to stop listening

2019-01-15 Thread STINNER Victor


STINNER Victor  added the comment:

Duplicate of bpo-29711 and already fixed.

--
nosy: +vstinner
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> When you use stop_serving in proactor loop it's kill all 
listening servers

___
Python tracker 

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



[issue32661] ProactorEventLoop locks up on close call

2019-01-15 Thread STINNER Victor


STINNER Victor  added the comment:

bug.py calls loop.run_forever() but nothing calls stops the loop. If you add 
loop.stop() to handle_incoming_connection(), the script exits properly as soon 
as a client connects and sends some data.

> 3. I press Ctrl-C in the DOS window.  Nothing happens.

This issue has been fixed by bpo-23057. So I qualify this issue as a duplicate 
of bpo-23057.

--
nosy: +vstinner
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> [Windows] asyncio: support signal handlers on Windows (feature 
request)

___
Python tracker 

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



[issue27500] ProactorEventLoop cannot open connection to ::1

2019-01-15 Thread Sebastien Bourdeauducq


Sebastien Bourdeauducq  added the comment:

Thank you!

--

___
Python tracker 

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



[issue31048] ResourceWarning in test_asyncio.test_events.ProactorEventLoopTests.test_create_server_ssl_verify_failed

2019-01-15 Thread STINNER Victor


STINNER Victor  added the comment:

I don't know how, but this issue has been fixed in the meanwhile.

--
nosy: +vstinner
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue23846] asyncio : ProactorEventLoop raised BlockingIOError when ThreadPoolExecutor has many workers

2019-01-15 Thread STINNER Victor


Change by STINNER Victor :


--
keywords: +patch, patch
pull_requests: +11227, 11228
stage:  -> patch review

___
Python tracker 

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



[issue23846] asyncio : ProactorEventLoop raised BlockingIOError when ThreadPoolExecutor has many workers

2019-01-15 Thread STINNER Victor


Change by STINNER Victor :


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

___
Python tracker 

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



[issue23846] asyncio : ProactorEventLoop raised BlockingIOError when ThreadPoolExecutor has many workers

2019-01-15 Thread STINNER Victor


Change by STINNER Victor :


--
keywords: +patch, patch, patch
pull_requests: +11227, 11228, 11229
stage:  -> patch review

___
Python tracker 

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



[issue35580] Windows IocpProactor: CreateIoCompletionPort 4th arg 0xffffffff -- why is this value the default?

2019-01-15 Thread STINNER Victor


STINNER Victor  added the comment:

> Am I correct that only one thread calls `GetQueuedCompletionStatus` on a 
> given `iocp` object in asyncio under Windows `IocpProactor`?

An asyncio event loop must only run in a single thread at the same time. It 
doesn't make sense to run the same event loop multiple times in parallel and it 
is not supported (most asyncio classes are not thread-safe, there is no need to 
be thread-safe).

--
nosy: +vstinner

___
Python tracker 

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



[issue8765] Tests unwillingly writing unicocde to raw streams

2019-01-15 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 1462234baf7398a6b00c0f51905e26caa17d3c60 by Serhiy Storchaka in 
branch '2.7':
[2.7] bpo-8765: Deprecate writing unicode to binary streams in Py3k mode. 
(GH-11127)
https://github.com/python/cpython/commit/1462234baf7398a6b00c0f51905e26caa17d3c60


--

___
Python tracker 

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



[issue8765] Tests unwillingly writing unicocde to raw streams

2019-01-15 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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



[issue35580] Windows IocpProactor: CreateIoCompletionPort 4th arg 0xffffffff -- why is this value the default?

2019-01-15 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

>From my understanding the question is: replace 0x with 0 or 1?

I don't know much about IOCP, 0 sounds safer for me.

--

___
Python tracker 

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



[issue33944] Deprecate and remove pth files

2019-01-15 Thread Nick Coghlan


Nick Coghlan  added the comment:

`site.addsitedir` is called for every site-packages directory (whether global, 
within a venv, or at the user level), so my proposal above covers appending 
multiple segments.

Linux distros approach to handling this is terrible because they dump all their 
system packages into a single global site-packages, leading to the every 
growing sys.path problem that Barry is concerned about.

However, that's entirely the fault of distro packaging policies, and can be 
remedied in a far superior way by switching distros to a model where they 
create a venv per application, and then use .pth files to link in the system 
packages that they actually want visible to that application.

"Some users don't want to use virtual environments appropriately" is an 
incredibly poor reason for breaking a perfectly valid feature.

--

___
Python tracker 

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



[issue33944] Deprecate and remove pth files

2019-01-15 Thread Nick Coghlan


Nick Coghlan  added the comment:

Note that any PEP I contributed to writing would need to be restricted to 
eliminating arbitrary code execution, as I don't think there's anything wrong 
with the path extension feature.

--

___
Python tracker 

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



[issue23846] asyncio : ProactorEventLoop raised BlockingIOError when ThreadPoolExecutor has many workers

2019-01-15 Thread miss-islington


Change by miss-islington :


--
pull_requests: +11230

___
Python tracker 

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



[issue23846] asyncio : ProactorEventLoop raised BlockingIOError when ThreadPoolExecutor has many workers

2019-01-15 Thread miss-islington


Change by miss-islington :


--
pull_requests: +11230, 11231

___
Python tracker 

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



[issue23846] asyncio : ProactorEventLoop raised BlockingIOError when ThreadPoolExecutor has many workers

2019-01-15 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset c9f872b0bdce5888f1879fa74e098bf4a05430c5 by Victor Stinner in 
branch 'master':
bpo-23846: Fix ProactorEventLoop._write_to_self() (GH-11566)
https://github.com/python/cpython/commit/c9f872b0bdce5888f1879fa74e098bf4a05430c5


--

___
Python tracker 

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



[issue23846] asyncio : ProactorEventLoop raised BlockingIOError when ThreadPoolExecutor has many workers

2019-01-15 Thread miss-islington


Change by miss-islington :


--
pull_requests: +11230, 11231, 11232

___
Python tracker 

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



[issue35744] Problem in the documentation of numpy.random.randint in python 2.7

2019-01-15 Thread Jay


New submission from Jay :

Official Documentation of python 2.7 mentions that numpy.random.randint(a,b) 
will return a random integer from N such that a<=N<=b. But I have run the code 
and I have found that it never returns equal to b. So, what I did was I ran 
numpy.random.randint(0,1) for 50 milion times and finally printed the sum. 

The output was 0. 

I don't know if this a documentation or an implementation issue, but this is an 
issue which needs to be looked at. I am attaching the code that I ran.

--
assignee: docs@python
components: Documentation
files: sample.py
messages: 333701
nosy: Jay, docs@python
priority: normal
severity: normal
status: open
title: Problem in the documentation of numpy.random.randint in python 2.7
type: behavior
versions: Python 2.7
Added file: https://bugs.python.org/file48051/sample.py

___
Python tracker 

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



[issue35744] Problem in the documentation of numpy.random.randint in python 2.7

2019-01-15 Thread STINNER Victor


STINNER Victor  added the comment:

Sorry but this is the bug tracker of Python, not of numpy. Please use 
https://github.com/numpy/numpy/issues instead.

--
nosy: +vstinner
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



[issue23846] asyncio : ProactorEventLoop raised BlockingIOError when ThreadPoolExecutor has many workers

2019-01-15 Thread miss-islington


miss-islington  added the comment:


New changeset c9f26714d511a338ba2fdd926e3dc62636f31815 by Miss Islington (bot) 
in branch '3.7':
bpo-23846: Fix ProactorEventLoop._write_to_self() (GH-11566)
https://github.com/python/cpython/commit/c9f26714d511a338ba2fdd926e3dc62636f31815


--
nosy: +miss-islington

___
Python tracker 

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



[issue23846] asyncio : ProactorEventLoop raised BlockingIOError when ThreadPoolExecutor has many workers

2019-01-15 Thread STINNER Victor


STINNER Victor  added the comment:

> In any case it looks like self-pipe sock's buffer was overflown because 
> call_soon_threadsafe was called too many times, and loop._read_from_self 
> couldn't empty the buffer promptly.  Then, at some point, _write_to_self 
> failed with an IOError.

I fixed the issue. Thanks for your bug 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



[issue33944] Deprecate and remove pth files

2019-01-15 Thread Jason R. Coombs


Jason R. Coombs  added the comment:

> `site.addsitedir` is called for every site-packages directory (whether 
> global, within a venv, or at the user level), so my proposal above covers 
> appending multiple segments.

Good point. I think you're assuming that only site dirs are appropriate for 
packages that require arbitrary code execution. I think I'd like to break that 
assumption and allow any location where packages can be installed (PYTHONPATH) 
to install hooks. Consider this use-case:

draft $ mkdir pkgs  
 draft $ python3.5 
-m pip download -d pkgs future_fstrings 
 Collecting future_fstrings
  Using cached 
https://files.pythonhosted.org/packages/36/25/070c2dc1fe1e51901df5875c495d6efbbf945a93a2ca40f47e5225302fb8/future_fstrings-0.4.5-py2.py3-none-any.whl
  Saved ./pkgs/future_fstrings-0.4.5-py2.py3-none-any.whl
Collecting tokenize-rt; python_version < "3.6" (from future_fstrings)
  Using cached 
https://files.pythonhosted.org/packages/76/82/0e6a9dda45dd76be22d74211443e199a330ac7e428b8dbbc5d116651be03/tokenize_rt-2.1.0-py2.py3-none-any.whl
  Saved ./pkgs/tokenize_rt-2.1.0-py2.py3-none-any.whl
Successfully downloaded future-fstrings tokenize-rt
draft $ cat > hello-fstrings.py 
# coding: 
future_fstrings
print(f'hello world') 
draft $ 
PYTHONPATH=pkgs/future_fstrings-0.4.5-py2.py3-none-any.whl:pkgs/tokenize_rt-2.1.0-py2.py3-none-any.whl
 python3.5 hello-fstrings.py   
xonsh: subprocess mode: command not found: 
PYTHONPATH=pkgs/future_fstrings-0.4.5-py2.py3-none-any.whl:pkgs/tokenize_rt-2.1.0-py2.py3-none-any.whl
draft $ env 
PYTHONPATH=pkgs/future_fstrings-0.4.5-py2.py3-none-any.whl:pkgs/tokenize_rt-2.1.0-py2.py3-none-any.whl
 python3.5 hello-fstrings.py   
  File "hello-fstrings.py", line 1
SyntaxError: encoding problem: future_fstrings


If future-fstrings were properly installed, its runtime hook is called and the 
script can run:

draft $ python3.5 -m pip-run -q future-fstrings -- hello-fstrings.py

 
hello world


I'd like for a package like future-fstrings to be able to supply a hook that 
can be executed on startup that can be honored even if the package isn't 
installed in one of the site paths.

> Let's make a PEP.

I'd be delighted to help with the PEP.

--

___
Python tracker 

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



[issue33944] Deprecate and remove pth files

2019-01-15 Thread STINNER Victor


STINNER Victor  added the comment:

> SyntaxError: encoding problem: future_fstrings

IMHO that's the expected behavior. I would prefer to have to explicitly install 
this special encoding *before* loading a script using it.

--

___
Python tracker 

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



[issue35741] unittest.skipUnless(time._STRUCT_TM_ITEMS == 11, "needs tm_zone support") doesn't work

2019-01-15 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +belopolsky

___
Python tracker 

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



[issue35745] Add import statement in dataclass code snippet

2019-01-15 Thread Windson Yang


New submission from Windson Yang :

Most of the example in https://docs.python.org/3/library/dataclasses.html miss 
code like

from dataclasses import dataclass, field
from typing import List

I think we should add this statement in the code snippet.

--
assignee: docs@python
components: Documentation
messages: 333707
nosy: Windson Yang, docs@python
priority: normal
severity: normal
status: open
title: Add import statement in dataclass code snippet
type: enhancement
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



[issue35745] Add import statement in dataclass code snippet

2019-01-15 Thread Windson Yang


Windson Yang  added the comment:

I'm not sure if we should put 

from dataclasses import dataclass

everywhere or we should put it just in the first example as I did in the PR.

--

___
Python tracker 

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



[issue35746] TALOS-2018-0758 Denial of Service

2019-01-15 Thread Cisco Talos


New submission from Cisco Talos :

An exploitable denial-of-service vulnerability exists in the X509 certificate 
parser of Python.org Python 2.7.11 / 3.6.6. A specially crafted X509 
certificate can cause a NULL pointer dereference, resulting in a denial of 
service. An attacker can initiate or accept TLS connections using crafted 
certificates to trigger this vulnerability.

--
files: TALOS-2019-0758.txt
messages: 333709
nosy: Talos
priority: normal
severity: normal
status: open
title: TALOS-2018-0758 Denial of Service
type: security
versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8
Added file: https://bugs.python.org/file48052/TALOS-2019-0758.txt

___
Python tracker 

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



[issue35746] TALOS-2018-0758 Denial of Service

2019-01-15 Thread Cisco Talos


Change by Cisco Talos :


--
versions:  -Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8
Added file: https://bugs.python.org/file48053/TALOS-2019-0758 - POC.pem

___
Python tracker 

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



[issue35746] TALOS-2018-0758 Denial of Service

2019-01-15 Thread Christian Heimes


Christian Heimes  added the comment:

Thanks for the report!

--
assignee:  -> christian.heimes
components: +SSL
nosy: +christian.heimes
stage:  -> needs patch
versions: +Python 3.4, Python 3.5, 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



[issue35746] TALOS-2018-0758 Denial of Service

2019-01-15 Thread Cisco Talos

Cisco Talos  added the comment:

Thanks for acknowledging.  We look forward to any updates/developments on the 
issue reported.

For further information about the Cisco Vendor Vulnerability Reporting and 
Disclosure Policy please refer to this document which also links to our public 
PGP key. 
https://tools.cisco.com/security/center/resources/vendor_vulnerability_policy.html

Kind Regards,

Regina Wilson
Analyst.Business Operations
regiw...@cisco.com

[cid:CFA14CB5-B7B2-4FF7-8313-22D495F607D5@vrt.sourcefire.com]

On Jan 15, 2019, at 11:30 AM, Christian Heimes 
mailto:rep...@bugs.python.org>> wrote:

Christian Heimes mailto:li...@cheimes.de>> added the comment:

Thanks for the report!

--
assignee:  -> christian.heimes
components: +SSL
nosy: +christian.heimes
stage:  -> needs patch
versions: +Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8

___
Python tracker mailto:rep...@bugs.python.org>>

___

--
Added file: https://bugs.python.org/file48054/image001.png

___
Python tracker 

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



[issue35746] TALOS-2018-0758 Denial of Service

2019-01-15 Thread Christian Heimes


Christian Heimes  added the comment:

I can confirm that CPython is affected.

By the way PyCA cryptography handles the CRL DB just fine.

>>> from cryptography import x509
>>> from cryptography.hazmat.backends import default_backend
>>> with open("Lib/test/talos-2019-0758.pem", "rb") as f:
... pem_data = f.read()
... 
>>> cert = x509.load_pem_x509_certificate(pem_data, default_backend())
>>> cert.extensions[-1]
, 
critical=False, 
value=])>)>

--

___
Python tracker 

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



  1   2   >