[issue34318] Convert deprecated behavior of assertRaises() etc into errors

2018-08-19 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 77d5781835b6e0a132694ebadc22b1cbdb9913f8 by Serhiy Storchaka in 
branch 'master':
bpo-34318: Convert deprecation warnings to errors in assertRaises() etc. 
(GH-8623)
https://github.com/python/cpython/commit/77d5781835b6e0a132694ebadc22b1cbdb9913f8


--

___
Python tracker 

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



[issue34415] Typo in logging.Formatter docstring

2018-08-19 Thread Vinay Sajip


Change by Vinay Sajip :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions:  -Python 2.7

___
Python tracker 

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



[issue34392] Add sys.isinterned()

2018-08-19 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Thank you all for the feedback. The function is renamed to sys._is_interned() 
and documented as optional.

--

___
Python tracker 

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



[issue34415] Typo in logging.Formatter docstring

2018-08-19 Thread Vinay Sajip


Vinay Sajip  added the comment:


New changeset 2e4ae8f1b3147d7f0a461b4ffdde9bcc9e6a2083 by Vinay Sajip (Miss 
Islington (bot)) in branch '3.7':
bpo-34415: Updated logging.Formatter docstring. (GH-8811) (GH-8817)
https://github.com/python/cpython/commit/2e4ae8f1b3147d7f0a461b4ffdde9bcc9e6a2083


--

___
Python tracker 

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



[issue34415] Typo in logging.Formatter docstring

2018-08-19 Thread Vinay Sajip


Vinay Sajip  added the comment:


New changeset fed871835ee54f50cabcec6239271739ed4839f5 by Vinay Sajip (Miss 
Islington (bot)) in branch '3.6':
bpo-34415: Updated logging.Formatter docstring. (GH-8811) (GH-8816)
https://github.com/python/cpython/commit/fed871835ee54f50cabcec6239271739ed4839f5


--

___
Python tracker 

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



[issue34318] Convert deprecated behavior of assertRaises() etc into errors

2018-08-19 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



[issue26901] Argument Clinic test is broken

2018-08-19 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


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

___
Python tracker 

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



[issue34435] Missing NULL check in unicode_encode_ucs1()

2018-08-19 Thread Alexey Izbyshev


New submission from Alexey Izbyshev :

A possible NULL return on out-of-memory condition at 
Objects/unicodeobject.c:6835 is not handled.

Reported by Svace static analyzer.

--
components: Interpreter Core
messages: 323762
nosy: inada.naoki, izbyshev, serhiy.storchaka, vstinner
priority: normal
severity: normal
status: open
title: Missing NULL check in unicode_encode_ucs1()
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



[issue34436] Overallocation is never disabled in _PyBytes_FormatEx()

2018-08-19 Thread Alexey Izbyshev


Change by Alexey Izbyshev :


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

___
Python tracker 

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



[issue34422] __name__ not available for classes in typing module

2018-08-19 Thread Ivan Levkivskyi


Ivan Levkivskyi  added the comment:

This is an intentional change. It would be a bad idea to use `__name__` instead 
of what is currently `_name`, because semantics is subtly different. Also the 
fact that types in typing module used to be actual class objects was an 
implementation detail (also typing module is still provisional).

The problematic part here is that special types and generic type aliases are 
still documented as _classes_ in 
https://docs.python.org/3.7/library/typing.html, I think this needs to be 
updated. (Plus we should add an explicit note somewhere in the docs that static 
types and runtime classes should not be confused.)

--

___
Python tracker 

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



[issue34422] __name__ not available for classes in typing module

2018-08-19 Thread Ivan Levkivskyi


Ivan Levkivskyi  added the comment:

Oh I just re-read my comment and there are so many typos that I will write a 
new one, sorry.

--

___
Python tracker 

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



[issue34435] Missing NULL check in unicode_encode_ucs1()

2018-08-19 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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



[issue34436] Overallocation is never disabled in _PyBytes_FormatEx()

2018-08-19 Thread Alexey Izbyshev


New submission from Alexey Izbyshev :

The condition for disabling overallocation at 225b055/Objects/bytesobject.c:822 
is always false.

Reported by Svace static analyzer.

--
components: Interpreter Core
messages: 323763
nosy: inada.naoki, izbyshev, serhiy.storchaka, vstinner
priority: normal
severity: normal
status: open
title: Overallocation is never disabled in _PyBytes_FormatEx()
type: performance
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



[issue34435] Missing NULL check in unicode_encode_ucs1()

2018-08-19 Thread miss-islington


Change by miss-islington :


--
pull_requests: +8304

___
Python tracker 

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



[issue34435] Missing NULL check in unicode_encode_ucs1()

2018-08-19 Thread miss-islington


Change by miss-islington :


--
pull_requests: +8303

___
Python tracker 

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



[issue34435] Missing NULL check in unicode_encode_ucs1()

2018-08-19 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 74a307d48ef8b278c4629ca0ef2139be1c9a34e6 by Serhiy Storchaka 
(Alexey Izbyshev) in branch 'master':
bpo-34435: Add missing NULL check to unicode_encode_ucs1(). (GH-8823)
https://github.com/python/cpython/commit/74a307d48ef8b278c4629ca0ef2139be1c9a34e6


--

___
Python tracker 

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



[issue34422] __name__ not available for classes in typing module

2018-08-19 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

Bisecting this issue revealed that this happened on commit 

d911e40e788fb679723d78b6ea11cabf46caed5a is the first bad commit
commit d911e40e788fb679723d78b6ea11cabf46caed5a
Author: Ivan Levkivskyi 
Date:   Sat Jan 20 11:23:59 2018 +

bpo-32226: PEP 560: improve typing module (#4906)

This PR re-designs the internal typing API using the new PEP 560 features.
However, there are only few minor changes in the public API.


The reason seems that now all of the types are created using `_GenericAlias` 
that does not copy the `__name__` attribute.

--
nosy: +pablogsal

___
Python tracker 

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



[issue34422] __name__ not available for classes in typing module

2018-08-19 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
components: +Library (Lib) -Interpreter Core
nosy: +gvanrossum, levkivskyi
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



[issue34435] Missing NULL check in unicode_encode_ucs1()

2018-08-19 Thread Alexey Izbyshev


Alexey Izbyshev  added the comment:

Thank you for merging!

--
resolution:  -> fixed

___
Python tracker 

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



[issue34422] __name__ not available for classes in typing module

2018-08-19 Thread Ivan Levkivskyi


Ivan Levkivskyi  added the comment:

This is an intentional change. It would be a bad idea to use `_name` instead of 
`__name__`, because semantics is subtly different. Also the fact that type in 
typing object used to be actual class object was an implementation detail (also 
typing is still provisional).

The problematic part here is that special types and generic type aliases are 
still documented as _classes_ in 
https://docs.python.org/3.7/library/typing.html, I think this needs to be 
updated. (Plus we should add an explicit note somewhere in the docs that static 
types and runtime classes should not be confused.)

--

___
Python tracker 

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



[issue34062] Python launcher on Windows does not work with --list or --list-paths

2018-08-19 Thread Brendan Gerrity


Change by Brendan Gerrity :


--
pull_requests: +8306

___
Python tracker 

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



[issue34437] print statement using \x results in improper and extra bytes

2018-08-19 Thread Steven D'Aprano


Steven D'Aprano  added the comment:

You wrote:

> There are 6 bytes not 4 and where did the c3, bd, and c2 come from?

In Python 2, strings are byte strings, in Python 3, strings by default are 
Unicode text strings. You are seeing the UTF-8 representation of the text 
string.

py> "\xfd\x84\x04\x08".encode('utf-8')
b'\xc3\xbd\xc2\x84\x04\x08'

So the behaviour in Python 3 is correct and not a bug, it has just changed 
(intentionally) from Python 2.

Googling may help you find more about this:

https://duckduckgo.com/?q=python3+write+bytes+to+stdout

--
nosy: +steven.daprano
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



[issue34422] __name__ not available for classes in typing module

2018-08-19 Thread Ivan Levkivskyi


Change by Ivan Levkivskyi :


--
Removed message: https://bugs.python.org/msg323770

___
Python tracker 

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



[issue34435] Missing NULL check in unicode_encode_ucs1()

2018-08-19 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
type:  -> behavior

___
Python tracker 

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



[issue34435] Missing NULL check in unicode_encode_ucs1()

2018-08-19 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Thank you for your PR Alexey.

--

___
Python tracker 

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



[issue34435] Missing NULL check in unicode_encode_ucs1()

2018-08-19 Thread miss-islington


miss-islington  added the comment:


New changeset 1e596d3a20a1a9d1ef15218ef33795bc9e651b7a by Miss Islington (bot) 
in branch '3.7':
bpo-34435: Add missing NULL check to unicode_encode_ucs1(). (GH-8823)
https://github.com/python/cpython/commit/1e596d3a20a1a9d1ef15218ef33795bc9e651b7a


--
nosy: +miss-islington

___
Python tracker 

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



[issue34435] Missing NULL check in unicode_encode_ucs1()

2018-08-19 Thread miss-islington


miss-islington  added the comment:


New changeset e77cdae0f84fc390fedea1f53bbc8746d634 by Miss Islington (bot) 
in branch '3.6':
bpo-34435: Add missing NULL check to unicode_encode_ucs1(). (GH-8823)
https://github.com/python/cpython/commit/e77cdae0f84fc390fedea1f53bbc8746d634


--

___
Python tracker 

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



[issue34437] print statement using \x results in improper and extra bytes

2018-08-19 Thread Nathan Benson

New submission from Nathan Benson :

While writing some shellcode I uncovered an unusual bug where Python 3 seems to 
print out incorrect (and extra) hex bytes using the print statement with \x. 
Needless to say I was pulling my hair out trying to figure out why my shellcode 
wasn’t working.  Python 2 behaves as expected.

I haven't tested the latest version of Python 3, but all the versions prior to 
that seem to have the bug.  I’ve been able to reproduce the bug in Ubuntu Linux 
and on my Mac.

An example printing "\xfd\x84\x04\x08" I expect to get back "fd 84 04 08", but 
Python 3 seems to add bytes beginning with c2 and c3 and tosses in random bytes.

For the purpose of these demonstrations:

  Akame:~ jfa$ python2 --version
  Python 2.7.15

  Akame:~ jfa$ python3 --version
  Python 3.7.0


Here is Python 2 operating as expected:

Akame:~ jfa$ python2 -c 'print("\xfd\x84\x04\x08")' | hexdump -C
  fd 84 04 08 0a|.|
0005


Here is Python 3 with the exact same print statement:

Akame:~ jfa$ python3 -c 'print("\xfd\x84\x04\x08")' | hexdump -C
  c3 bd c2 84 04 08 0a  |...|
0007

There are 6 bytes not 4 and where did the c3, bd, and c2 come from?

Playing around with it a little bit more it seems like the problem arises when 
you are printing bytes that start with a-f or 8 or 9:

Here is a-f:

Akame:~ jfa$ for b in {a..f}; do echo "\x${b}0"; python3 -c 
"print(\"\x${b}0\")" | hexdump -C; done
\xa0
  c2 a0 0a  |...|
0003
\xb0
  c2 b0 0a  |...|
0003
\xc0
  c3 80 0a  |...|
0003
\xd0
  c3 90 0a  |...|
0003
\xe0
  c3 a0 0a  |...|
0003
\xf0
  c3 b0 0a  |...|
0003


Here is 0-9 (notice everything is fine until 8):

Akame:~ jfa$ for b in {0..9}; do echo "\x${b}0"; python3 -c 
"print(\"\x${b}0\")" | hexdump -C; done
\x00
  00 0a |..|
0002
\x10
  10 0a |..|
0002
\x20
  20 0a | .|
0002
\x30
  30 0a |0.|
0002
\x40
  40 0a |@.|
0002
\x50
  50 0a |P.|
0002
\x60
  60 0a |`.|
0002
\x70
  70 0a |p.|
0002
\x80
  c2 80 0a  |...|
0003
\x90
  c2 90 0a  |...|
0003



Here are the same tests with Python 2:

Akame:~ jfa$ for b in {a..f}; do echo "\x${b}0"; python2 -c 
"print(\"\x${b}0\")" | hexdump -C; done
\xa0
  a0 0a |..|
0002
\xb0
  b0 0a |..|
0002
\xc0
  c0 0a |..|
0002
\xd0
  d0 0a |..|
0002
\xe0
  e0 0a |..|
0002
\xf0
  f0 0a |..|
0002


Akame:~ jfa$ for b in {0..9}; do echo "\x${b}0"; python2 -c 
"print(\"\x${b}0\")" | hexdump -C; done
\x00
  00 0a |..|
0002
\x10
  10 0a |..|
0002
\x20
  20 0a | .|
0002
\x30
  30 0a |0.|
0002
\x40
  40 0a |@.|
0002
\x50
  50 0a |P.|
0002
\x60
  60 0a |`.|
0002
\x70
  70 0a |p.|
0002
\x80
  80 0a |..|
0002
\x90
  90 0a |..|
0002


As you can see Python 2 works as expected and Python 3, when printing using 
\x[a-f08], seem to cause the byte to be replaced with a c2 or c3 and another 
byte of data.

--
messages: 323773
nosy: Nathan Benson
priority: normal
severity: normal
status: open
title: print statement using \x results in improper and extra bytes
type: behavior
versions: Python 3.4, Python 3.5, Python 3.6, Python 3.7

___
Python tracker 

___

[issue18925] select.poll.modify is not documented

2018-08-19 Thread Berker Peksag


Berker Peksag  added the comment:

poll.modify() is documented in both Python 2 and Python 3 docs:

* https://docs.python.org/2/library/select.html#select.poll.modify

* https://docs.python.org/3/library/select.html#select.poll.modify

> I believe that should be "Modify a registered file descriptor"...

This has already been fixed in 
https://github.com/python/cpython/commit/632c812942d662b764ade56ef492850e00d92877.

Closing this as 'out of date'.

--
nosy: +berker.peksag
resolution:  -> out of date
stage:  -> resolved
status: open -> closed
type:  -> behavior

___
Python tracker 

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



[issue22057] The doc say all globals are copied on eval(), but only __builtins__ is copied

2018-08-19 Thread miss-islington


miss-islington  added the comment:


New changeset f19579b8f1fcd2dd8ffaf3e443b09930057c01d1 by Miss Islington (bot) 
in branch '3.6':
bpo-22057: Clarify eval() documentation (GH-8812)
https://github.com/python/cpython/commit/f19579b8f1fcd2dd8ffaf3e443b09930057c01d1


--

___
Python tracker 

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



[issue22057] The doc say all globals are copied on eval(), but only __builtins__ is copied

2018-08-19 Thread miss-islington


miss-islington  added the comment:


New changeset 0e1e8dbb0b99ec78f4567382428fdd46e2244d40 by Miss Islington (bot) 
in branch '3.7':
bpo-22057: Clarify eval() documentation (GH-8812)
https://github.com/python/cpython/commit/0e1e8dbb0b99ec78f4567382428fdd46e2244d40


--
nosy: +miss-islington

___
Python tracker 

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



[issue25711] Rewrite zipimport from scratch

2018-08-19 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Fixed issues on Windows.

--
versions: +Python 3.8 -Python 3.7

___
Python tracker 

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



[issue18049] Re-enable threading test on OSX

2018-08-19 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

I have a patch for making the stack sizes the same in Issue34264.

--

___
Python tracker 

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



[issue22057] The doc say all globals are copied on eval(), but only __builtins__ is copied

2018-08-19 Thread miss-islington


Change by miss-islington :


--
pull_requests: +8297

___
Python tracker 

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



[issue22057] The doc say all globals are copied on eval(), but only __builtins__ is copied

2018-08-19 Thread miss-islington


Change by miss-islington :


--
pull_requests: +8296

___
Python tracker 

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



[issue34426] "__lltrace__" seems to be wrong , "__ltrace__" is correct in Misc/SpecialBuilds.txt

2018-08-19 Thread Danish Prakash


Change by Danish Prakash :


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

___
Python tracker 

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



[issue22057] The doc say all globals are copied on eval(), but only __builtins__ is copied

2018-08-19 Thread Berker Peksag


Berker Peksag  added the comment:

Thanks for the review, Martin, and thanks for the report, Alon!

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



[issue25810] Python 3 documentation for eval is incorrect

2018-08-19 Thread Berker Peksag


Change by Berker Peksag :


--
nosy: +berker.peksag

___
Python tracker 

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



[issue34433] cancel all other pending child futures

2018-08-19 Thread tzongw


New submission from tzongw :

In `tasks.gather`, when a child future throws an exception and 
`return_exceptions` is False, outer future will call `set_exception` while 
other child futures is still running. In this case, outer future call 
`_GatheringFuture.cancel' first to cancel all other pending child futures for 
efficiency.

--
components: asyncio
messages: 323755
nosy: asvetlov, tzongw, yselivanov
priority: normal
severity: normal
status: open
title: cancel all other pending child futures
type: performance
versions: Python 3.6

___
Python tracker 

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



[issue34434] Removal of kwargs for int() etc not described as change

2018-08-19 Thread Andy Maier


New submission from Andy Maier :

Python 3.7 removed support for passing the argument to the built-in functions 
int(), bool(), float(), list() and tuple() as a keyword argument.

This change is described in the "What's New" for 3.7 
(https://docs.python.org/3/whatsnew/3.7.html) in section "API and Feature 
Removals":

Functions bool(), float(), list() and tuple() no longer take
keyword arguments. The first argument of int() can now be passed
only as positional argument.

The issue is that this change is not described in the documentation of these 
built-in functions.

--
messages: 323756
nosy: andymaier
priority: normal
severity: normal
status: open
title: Removal of kwargs for int() etc not described as change
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



[issue34426] "__lltrace__" seems to be wrong , "__ltrace__" is correct in Misc/SpecialBuilds.txt

2018-08-19 Thread Danish Prakash


Danish Prakash  added the comment:

@pablogsal I would love to fix this up

--

___
Python tracker 

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



[issue27088] doc: select: epoll.poll: incorrect timeout units, missing maxevents

2018-08-19 Thread Berker Peksag


Berker Peksag  added the comment:

Thanks for the report. In the title, you mentioned epoll.poll(), but you gave 
the link to the poll.poll() documentation. Also, the part you quoted

If timeout is given, it specifies the length of time in milliseconds
which the system will wait for events before returning.

is from the poll.poll() documentation.

Currently, the documentation for epoll.poll() is pretty minimal:

epoll.poll(timeout=-1, maxevents=-1)

Wait for events. timeout in seconds (float)

There is an open issue to improve epoll.poll() documentation: Issue 29247. 
Also, there is a review comment about explaining the *maxevent* parameter 
(https://github.com/python/cpython/pull/4798/files#r174309761), so I'm going to 
address the issues you've mentioned in msg266118 as part of issue 29247.

In the meantime, I'm closing this as a duplicate of issue 29247.

--
nosy: +berker.peksag
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> Document return value of epoll.poll
type:  -> behavior

___
Python tracker 

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



[issue13501] Make libedit support more generic; port readline / libedit to FreeBSD

2018-08-19 Thread Mark Harfouche


Mark Harfouche  added the comment:

Is there still interest in this?

--
nosy: +Mark Harfouche

___
Python tracker 

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



[issue34435] Missing NULL check in unicode_encode_ucs1()

2018-08-19 Thread Alexey Izbyshev


Change by Alexey Izbyshev :


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

___
Python tracker 

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



[issue22057] The doc say all globals are copied on eval(), but only __builtins__ is copied

2018-08-19 Thread Berker Peksag


Berker Peksag  added the comment:


New changeset 225b05548027d55aafb11b65f6a4a2bef2f5196f by Berker Peksag in 
branch 'master':
bpo-22057: Clarify eval() documentation (GH-8812)
https://github.com/python/cpython/commit/225b05548027d55aafb11b65f6a4a2bef2f5196f


--

___
Python tracker 

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



[issue34433] cancel all other pending child futures

2018-08-19 Thread tzongw


Change by tzongw :


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

___
Python tracker 

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



[issue34426] "__lltrace__" seems to be wrong , "__ltrace__" is correct in Misc/SpecialBuilds.txt

2018-08-19 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

Content 
 
Hi @Nojima and thank you for the report. Do you mind doing a PR?

If not, I can do it myself if you prefer.

--

___
Python tracker 

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



[issue34426] "__lltrace__" seems to be wrong , "__ltrace__" is correct in Misc/SpecialBuilds.txt

2018-08-19 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
Removed message: https://bugs.python.org/msg323758

___
Python tracker 

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



[issue34426] "__lltrace__" seems to be wrong , "__ltrace__" is correct in Misc/SpecialBuilds.txt

2018-08-19 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

Hi @Nojima and thank you for the report. Do you mind doing a PR?

If not, I can do it myself.

--
nosy: +pablogsal

___
Python tracker 

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



[issue30717] Add unicode grapheme cluster break algorithm

2018-08-19 Thread Xiang Zhang


Change by Xiang Zhang :


--
nosy: +xiang.zhang

___
Python tracker 

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



[issue34423] Overflow when casting from double to time_t, and_PyTime_t.

2018-08-19 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
nosy: +mark.dickinson

___
Python tracker 

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



[issue34438] do_handshake stuck in ssl.py

2018-08-19 Thread David


New submission from David :

Sometimes, rarely, API calls will get stuck indefinitely on ssl.py. Stack trace:

  response = json.loads(urllib.request.urlopen(req).read())
  File "/usr/lib/python3.6/urllib/request.py", line 223, in urlopen
return opener.open(url, data, timeout)
  File "/usr/lib/python3.6/urllib/request.py", line 526, in open
response = self._open(req, data)
  File "/usr/lib/python3.6/urllib/request.py", line 544, in _open
'_open', req)
  File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain
result = func(*args)
  File "/usr/lib/python3.6/urllib/request.py", line 1361, in https_open
context=self._context, check_hostname=self._check_hostname)
  File "/usr/lib/python3.6/urllib/request.py", line 1318, in do_open
encode_chunked=req.has_header('Transfer-encoding'))
  File "/usr/lib/python3.6/http/client.py", line 1239, in request
self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1285, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1234, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1026, in _send_output
self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 964, in send
self.connect()
  File "/usr/lib/python3.6/http/client.py", line 1400, in connect
server_hostname=server_hostname)
  File "/usr/lib/python3.6/ssl.py", line 407, in wrap_socket
_context=self, _session=session)
  File "/usr/lib/python3.6/ssl.py", line 814, in __init__
self.do_handshake()
  File "/usr/lib/python3.6/ssl.py", line 1068, in do_handshake
self._sslobj.do_handshake()
  File "/usr/lib/python3.6/ssl.py", line 689, in do_handshake
self._sslobj.do_handshake()


Almost identical issue as 
https://stackoverflow.com/questions/19938593/web-app-hangs-for-several-hours-in-ssl-py-at-self-sslobj-do-handshake
But using python 3.6

--
assignee: christian.heimes
components: SSL
messages: 323775
nosy: christian.heimes, david987
priority: normal
severity: normal
status: open
title: do_handshake stuck in ssl.py
versions: Python 3.6

___
Python tracker 

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