[issue33863] Enum doc correction relating to __members__

2018-06-15 Thread Ethan Furman


Ethan Furman  added the comment:

Closing as a duplicate of #33866.  My apologies for the fractured discussion.

At this point I'm going to leave/update the documentation using "an ordered 
dictionary".  See #33866 for further discussion.

--
assignee:  -> ethan.furman
resolution:  -> duplicate
stage: needs patch -> resolved
status: open -> closed
superseder:  -> Stop using OrderedDict in enum

___
Python tracker 

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



[issue33865] unknown encoding: 874

2018-06-15 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

@stephen: Lib/encoding/aliases.py contains aliases for a (largish) number of 
encoding names, including both "cp" and "" for most windows code pages. 
For code page 874 only the name "cp874" can be used and not "874", which 
apparently causes problems.

@Prawin: have you added an alias to aliases.py to check if adding an alias 
would fix the problem you're having?

--
nosy: +ronaldoussoren

___
Python tracker 

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



[issue33865] [EASY] Missing code page aliases: "unknown encoding: 874"

2018-06-15 Thread STINNER Victor


STINNER Victor  added the comment:

It seems like the following code pages have a Python codec 
(Lib/encoding/cpXXX.py) but lack an alias in Lib/encodings/aliases.py:

[720, 737, 856, 874, 875, 1006, 65001]

Is someone volunteer to write a pull request for that? It should be easy.

Example of a correct alias in Lib/encodings/aliases.py:

# cp1252 codec
'1252'   : 'cp1252',
'windows_1252'   : 'cp1252',

--
keywords: +easy
title: unknown encoding: 874 -> [EASY] Missing code page aliases: "unknown 
encoding: 874"

___
Python tracker 

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



[issue29456] bugs in unicodedata.normalize: u1176, u11a7 and u11c3

2018-06-15 Thread Xiang Zhang


Xiang Zhang  added the comment:

Sorry for the absence and late response. I just reviewed it and think it's 
ready. I think the change in the unicode standard is more like a bug in the 
implementation than an intentional change. It's mentioned in Unicode 3.0 the 
third character is out of bounds when TIndex <= 0 or TIndex >= TCount. We have 
a ucd_3_2_0 in unicodedata.

I'll merge it after resolve the CI bot.

--
versions: +Python 3.8 -Python 3.5

___
Python tracker 

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



[issue33032] Mention implicit cache in struct.Struct docs

2018-06-15 Thread Zackery Spytz


Change by Zackery Spytz :


--
keywords: +patch
pull_requests: +7316
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



[issue33032] Mention implicit cache in struct.Struct docs

2018-06-15 Thread Zackery Spytz


Change by Zackery Spytz :


--
nosy: +ZackerySpytz

___
Python tracker 

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



[issue33851] 3.7 regression: ast.get_docstring() for a node that lacks a docstring

2018-06-15 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 08f127a3cad8ce4eb281d30d9488c91b0fd7cfed by Serhiy Storchaka in 
branch 'master':
bpo-33851: Fix ast.get_docstring() for a node that lacks a docstring. (GH-7682)
https://github.com/python/cpython/commit/08f127a3cad8ce4eb281d30d9488c91b0fd7cfed


--

___
Python tracker 

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



[issue33818] Make PyExceptionClass_Name returning a const string

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



[issue33851] 3.7 regression: ast.get_docstring() for a node that lacks a docstring

2018-06-15 Thread miss-islington


Change by miss-islington :


--
pull_requests: +7317

___
Python tracker 

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



[issue33818] Make PyExceptionClass_Name returning a const string

2018-06-15 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset ceeef10cdbc08561f9954e13bbed1cb2299a8c72 by Serhiy Storchaka in 
branch 'master':
bpo-33818: PyExceptionClass_Name() will now return "const char *". (GH-7581)
https://github.com/python/cpython/commit/ceeef10cdbc08561f9954e13bbed1cb2299a8c72


--

___
Python tracker 

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



[issue33851] 3.7 regression: ast.get_docstring() for a node that lacks a docstring

2018-06-15 Thread miss-islington


miss-islington  added the comment:


New changeset a50b825c18a92655f3dd7939e793fa3d4440d886 by Miss Islington (bot) 
in branch '3.7':
bpo-33851: Fix ast.get_docstring() for a node that lacks a docstring. (GH-7682)
https://github.com/python/cpython/commit/a50b825c18a92655f3dd7939e793fa3d4440d886


--
nosy: +miss-islington

___
Python tracker 

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



[issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x

2018-06-15 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

As I wrote on GitHub, I think that it is better to use the list approach always 
for two reasons:

1) Additional #if's and duplications clutter the code.

2) It is hard to test the alternate branch if the other branch is used on most 
developer computers.

It is better to have a single branch and add a comment that explains a 
workaround. It can be removed after platforms with buggy glibc versions will 
grow out of use.

--

___
Python tracker 

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



[issue33851] 3.7 regression: ast.get_docstring() for a node that lacks a docstring

2018-06-15 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
assignee:  -> ned.deily

___
Python tracker 

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



[issue25815] Improper subprocess output of arguments with braces in them on windows

2018-06-15 Thread Александр Бондарев

Александр Бондарев  added the comment:

Can you please re-open this bug?
I'm not agree that this a correct behavior.
Usually we are using subprocess.check_output([..]) version to not aware about 
argument escaping and it works good for Linux.

In example:
> subprocess.check_output(['echo', "'hello'"])
"'hello'"

But:
> subprocess.check_output("echo 'hello'", shell=True)
'hello'

I'm expecting same behavior on Windows system, but:
> subprocess.check_output(['echo', "'hello'"])
'hello'
> subprocess.check_output("echo 'hello'", shell=True)
'hello'

and 
> subprocess.check_output(['echo', "'@{u}'"])
'@{u}'
> subprocess.check_output(['echo', "@{u}"])
'@u'

and it even more confusing:

> subprocess.check_output(['echo', " @{u}"])
' @{u}'

because if it detects some spaces in argument then it tries to quote this and 
it is correct behavior, but it should also care about other kind of characters 
to escape.

We definitely should bring more love for Windows!

--
nosy: +Александр Бондарев

___
Python tracker 

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



[issue33868] test__xxsubinterpreters: test_subinterpreter() fails randomly on AMD64 Ubuntu Shared 3.x

2018-06-15 Thread STINNER Victor


New submission from STINNER Victor :

AMD64 Ubuntu Shared 3.x:

http://buildbot.python.org/all/#/builders/141/builds/98

Run tests in parallel using 2 child processes
...
0:21:40 load avg: 3.69 [352/417/1] test__xxsubinterpreters failed -- running: 
test_concurrent_futures (2 min 35 sec)
...
==
FAIL: test_subinterpreter (test.test__xxsubinterpreters.IsRunningTests)
--
Traceback (most recent call last):
  File 
"/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/test/test__xxsubinterpreters.py",
 line 480, in test_subinterpreter
self.assertTrue(interpreters.is_running(interp))
AssertionError: False is not true


test__xxsubinterpreters passed when run again in verbose mode.

--
assignee: eric.snow
components: Tests
messages: 319597
nosy: eric.snow, vstinner
priority: normal
severity: normal
status: open
title: test__xxsubinterpreters: test_subinterpreter() fails randomly on AMD64 
Ubuntu Shared 3.x
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



[issue33867] Module dicts are wiped on module garbage collection

2018-06-15 Thread Xiang Zhang


Change by Xiang Zhang :


--
nosy: +pitrou

___
Python tracker 

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



[issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x

2018-06-15 Thread STINNER Victor


STINNER Victor  added the comment:

"It is better to have a single branch and add a comment that explains
a workaround. It can be removed after platforms with buggy glibc
versions will grow out of use."

Recently, I proposed to drop support for old Linux kernels, but some
people still use them and the code to support these kernels don't need
a lot of maintenance. So we keep the code :-)
https://mail.python.org/pipermail/python-dev/2018-January/151821.html

--

___
Python tracker 

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



[issue25815] Improper subprocess output of arguments with braces in them on windows

2018-06-15 Thread Eryk Sun


Eryk Sun  added the comment:

With a stock Windows system, `subprocess.check_output(['echo', "'hello'"])` 
fails because there is no "echo.exe". That's a 3rd party program that you 
installed. `subprocess.check_output("echo 'hello'", shell=True)` uses the CMD 
shell's internal `echo` command, which doesn't strip quotes from the string.

subprocess.list2cmdline implements quoting that's meant for applications that 
use the VC++ [w]main argv array, or the CommandLineToArgvW WinAPI function. It 
can't take into account custom command-line parsing of all applications. If 
this echo.exe doesn't work right with an args list, then use a custom command 
line -- *without* shell=True.

--

___
Python tracker 

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



[issue14102] argparse: add ability to create a man page

2018-06-15 Thread Daniel Walsh

Daniel Walsh  added the comment:

On 06/14/2018 07:15 PM, Ben Finney wrote:
> Ben Finney  added the comment:
>
> On Thu, 2018-06-14 20:02 +, Pablo Galindo Salgado 
>  wrote:
>> The (possible) confusion is the existence of a manpage only available
>> though argparse (`./python foo.py --manpage`)
> This report isn't asking for that. (I see only one person proposing such an 
> interface, and even that person said it's not a good idea.) So please don't 
> conflate that with the original bug report.
>
>> I am  not sure how many people do something like `./python poc_2.py > output
>> && man ./output` to **read** the manpage.
> Right, I am not asking for anything like that; I'm not asking that ‘argparse’ 
> grow a way to read a manual page,. I am asking only for a standard way to 
> programmatically generate that manual page from the information ‘argparse’ 
> already knows.
>
>>> This is asking that the ‘argparse’ library should have an API to
>>> create a manual page, for use in the build system.
>> At this point argparse is user facing in the sense that once configured,
>> it provides functionality for the user of the command line application.
>> My opinion is that it will be weird to have it provide also APIs for
>> creating man pages (which is a developer utility).
> Creating an argument parser itself is already a developer activity, and we 
> don't see that as weird that ‘argparse’ allows for that.
>
> I'm arguing that the library already knows how to turn the argument 
> collection into a user-facing document (the usage message), and a manual page 
> is a different way of rendering that same internal data. So that's why 
> ‘argparse’ is a consistent place to have that functionality.
>
>> My humble opinion is
>> that it if argparse starts to provide APIs for usage at install time is
>> not "doing one thing and doing it well".
> That API already exists: the specific ‘ArgumentParser’ is available to be 
> imported for a program which defines one. So, the library already provides 
> APIs for usage at install time (or any other run-time).
>
> I am asking to make that API more useful for the distribution of programs.
>
> --
>
> ___
> Python tracker 
> 
> ___

Correct, the reason I would want this is to add something to a Makefile 
to automatically generate a man page, when you do a make install

manpages: foo.py
./python foo.py --manpage > foo.1
install.manpages: manpages
install -D -m 644 foo.1 ${DESTDIR}/usr/share/man/man1

--

___
Python tracker 

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



[issue14102] argparse: add ability to create a man page

2018-06-15 Thread Oz Tiram


Oz Tiram  added the comment:

As already pointed out, it can get the parser somehow, you don't need  an 
explicit extra option --man. That's the approach suggesed in:

man-argparse and build_manpage.py attached here

You can use it a make file like this:

install:
  ./setup.py build_manpage 
  ./setup.py install
  install -D -m 644 foo.1 ${DESTDIR}/usr/share/man/man1

--

___
Python tracker 

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



[issue33625] Release GIL for grp.getgr{nam, gid} and pwd.getpw{nam, uid}

2018-06-15 Thread STINNER Victor


STINNER Victor  added the comment:

More data to decide if the change should be backported or not: bpo-32186 
(Release the GIL during lseek and fstat) has been backported to Python 2.7, but 
then cffi started to crash:
https://bugzilla.redhat.com/show_bug.cgi?id=1561170#c28

At the end, it's a bug in cffi, there was a race condition in cffi. But still, 
the backport *indirectly* caused a crash.

--

___
Python tracker 

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



[issue33864] collections.abc.ByteString does not register memoryview

2018-06-15 Thread Josh Rosenberg


Josh Rosenberg  added the comment:

memoryview isn't just for bytes strings though; the format can make it a 
sequence of many types of different widths, meanings, etc. Calling it a 
BytesString would be misleading in many cases.

--
nosy: +josh.r

___
Python tracker 

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



[issue14102] argparse: add ability to create a man page

2018-06-15 Thread Pavel Raiskup


Pavel Raiskup  added the comment:

On Friday, June 15, 2018 11:54:04 AM CEST Daniel Walsh wrote:
> Correct, the reason I would want this is to add something to a Makefile 
> ...
> manpages: foo.py
>   ./python foo.py --manpage > foo.1

The /bin/argparse-manpage could help temporarily (if you don't mind
the additional build-dep).

--

___
Python tracker 

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



[issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x

2018-06-15 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

As I commented on GitHub, it seems that the race in the test (problem covered 
in PR7663) disappears once the memory problem is fixed (PR33630). As is a race 
condition I am not sure that this affirmation is true, but running 3 test 
suites in parallel that executes test_posix 200 times does not raise any 
problem on the buildbot after applying the patch in PR33630

--

___
Python tracker 

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



[issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x

2018-06-15 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

I have updated PR7685 to use the temporary list as per Serhiy comments.

--

___
Python tracker 

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



[issue24415] SIGINT always reset to SIG_DFL by Py_Finalize()

2018-06-15 Thread Martin Panter


Martin Panter  added the comment:

It is worth checking if at least the first half of the report was fixed by 
Issue 30654

--
nosy: +martin.panter
superseder:  -> signal module always overwrites SIGINT on interpreter shutdown

___
Python tracker 

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



[issue29456] bugs in unicodedata.normalize: u1176, u11a7 and u11c3

2018-06-15 Thread Xiang Zhang


Xiang Zhang  added the comment:


New changeset d134809cd3764c6a634eab7bb8995e3e2eff14d5 by Xiang Zhang (Wonsup 
Yoon) in branch 'master':
bpo-29456: Fix bugs in unicodedata.normalize: u1176, u11a7 and u11c3 (GH-1958)
https://github.com/python/cpython/commit/d134809cd3764c6a634eab7bb8995e3e2eff14d5


--

___
Python tracker 

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



[issue29456] bugs in unicodedata.normalize: u1176, u11a7 and u11c3

2018-06-15 Thread miss-islington


Change by miss-islington :


--
pull_requests: +7319

___
Python tracker 

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



[issue29456] bugs in unicodedata.normalize: u1176, u11a7 and u11c3

2018-06-15 Thread miss-islington


Change by miss-islington :


--
pull_requests: +7318

___
Python tracker 

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



[issue29456] bugs in unicodedata.normalize: u1176, u11a7 and u11c3

2018-06-15 Thread miss-islington


miss-islington  added the comment:


New changeset 0e2b76ea4e48d0fc1ca34ae4ffbb2fd6c19664bb by Miss Islington (bot) 
in branch '3.7':
bpo-29456: Fix bugs in unicodedata.normalize: u1176, u11a7 and u11c3 (GH-1958)
https://github.com/python/cpython/commit/0e2b76ea4e48d0fc1ca34ae4ffbb2fd6c19664bb


--
nosy: +miss-islington

___
Python tracker 

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



[issue29456] bugs in unicodedata.normalize: u1176, u11a7 and u11c3

2018-06-15 Thread Xiang Zhang


Change by Xiang Zhang :


--
pull_requests: +7320

___
Python tracker 

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



[issue33865] [EASY] Missing code page aliases: "unknown encoding: 874"

2018-06-15 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


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

___
Python tracker 

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



[issue29456] bugs in unicodedata.normalize: u1176, u11a7 and u11c3

2018-06-15 Thread miss-islington


miss-islington  added the comment:


New changeset e2e7ff0d0378ba44f10a1aae10e4bee957fb44d2 by Miss Islington (bot) 
in branch '3.6':
bpo-29456: Fix bugs in unicodedata.normalize: u1176, u11a7 and u11c3 (GH-1958)
https://github.com/python/cpython/commit/e2e7ff0d0378ba44f10a1aae10e4bee957fb44d2


--

___
Python tracker 

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



[issue33865] [EASY] Missing code page aliases: "unknown encoding: 874"

2018-06-15 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

I have added the aliases as per comment by @vstinner 
https://bugs.python.org/msg319590 . I have used 
https://docs.python.org/3.8/library/codecs.html#standard-encodings as a 
reference to see if there are any additional aliases to add with respect to the 
second column. I am a beginner in contributing to cpython and hence please let 
me know if I have missed something or any way to test this.

PR : https://github.com/python/cpython/pull/7705

Thanks

--
nosy: +xtreak

___
Python tracker 

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



[issue33865] [EASY] Missing code page aliases: "unknown encoding: 874"

2018-06-15 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

Could you also add a documentation update and a news entry? 

The section on standard encodings mentions aliases for standard encodings, and 
IMHO the new aliases should be added to that page. 

Creating a new entry is described here: 
https://devguide.python.org/committing/?highlight=blurb#what-s-new-and-news-entries

--

___
Python tracker 

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



[issue33865] [EASY] Missing code page aliases: "unknown encoding: 874"

2018-06-15 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Thanks @ronaldoussoren for the links. I have added an entry using blurb tool 
and updated the docs at Doc/library/codecs.rst with relevant aliases.

Thanks

--

___
Python tracker 

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



[issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO

2018-06-15 Thread Marcel Plch


Marcel Plch  added the comment:

LTO may break the debug symbols and make GDB unusable.
There is an option, that fixes the issue: to use a -g switch in link flags.
Note that this slows loading of the debug symbols significantly.

I suggest these options as possible approaches:

1) make the configure script include -g in LDFLAGS when --enable-optimizations 
and --with-lto are used

2) same as 1), but only when --with-pydebug is also used.

3) document this problem and make the user aware that this possible fix (-g in 
link flags) exists

--
nosy: +Dormouse759

___
Python tracker 

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



[issue29456] bugs in unicodedata.normalize: u1176, u11a7 and u11c3

2018-06-15 Thread Xiang Zhang


Xiang Zhang  added the comment:


New changeset 1889c4cbd62e200fa4cde3d6219e0aadf9bd8149 by Xiang Zhang in branch 
'2.7':
bpo-29456: Fix bugs in unicodedata.normalize: u1176, u11a7 and u11c3 (GH-1958) 
(GH-7704)
https://github.com/python/cpython/commit/1889c4cbd62e200fa4cde3d6219e0aadf9bd8149


--

___
Python tracker 

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



[issue29456] bugs in unicodedata.normalize: u1176, u11a7 and u11c3

2018-06-15 Thread Xiang Zhang


Change by Xiang Zhang :


--
components: +Library (Lib) -Unicode
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



[issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO

2018-06-15 Thread STINNER Victor


STINNER Victor  added the comment:

> - ["Python Exception  Variable 'func_obj' not found.: ",

bpo-32962: My commit 019d33b7a447e78057842332fb5d3bad01922122 "python-gdb 
catchs ValueError on read_var()" (PR 7692) catches this ValueError.

--

___
Python tracker 

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



[issue33865] [EASY] Missing code page aliases: "unknown encoding: 874"

2018-06-15 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Why only these code pages? There are other cp encodings that don't have the 
 alias.

Maybe add a logic in encodings.search_function() that will map  to cp 
if it is all digits? Maybe even map ibm and windows_ to cp, but 
this will create false aliases like ibm1252 and windows_437.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO

2018-06-15 Thread Marcel Plch


Marcel Plch  added the comment:

Yes, but that is not a fix really in this case.
While it makes the test pass because it 'correctly' prints out unknown objects, 
it makes no real difference when actually debugging. The -g switch at link time 
makes the debug symbols readable and user is able to debug just as usual.

--

___
Python tracker 

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



[issue33869] doc Add set, frozen set, and tuple entries to Glossary

2018-06-15 Thread Andrés Delfino

New submission from Andrés Delfino :

PR adds entries for these three terms and a link to the list definition.

--
assignee: docs@python
components: Documentation
messages: 319619
nosy: adelfino, docs@python
priority: normal
severity: normal
status: open
title: doc Add set, frozen set, and tuple entries to Glossary
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



[issue33869] doc Add set, frozen set, and tuple entries to Glossary

2018-06-15 Thread Andrés Delfino

Change by Andrés Delfino :


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

___
Python tracker 

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



[issue33868] test__xxsubinterpreters: test_subinterpreter() fails randomly on AMD64 Ubuntu Shared 3.x

2018-06-15 Thread Eric Snow


Eric Snow  added the comment:

I'll take a look.

--

___
Python tracker 

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



[issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO

2018-06-15 Thread STINNER Victor


STINNER Victor  added the comment:

I tested on the current master:

git clean -fdx
./configure --with-lto --enable-optimizations
sed -i -e 's/^PROFILE_TASK=.*/PROFILE_TASK=-c pass/' Makefile
make 2>&1|tee log

Python is compiled twice:

* (1) gcc -DNDEBUG -g -O3 -flto -fprofile-generate (...)
* (2) gcc -DNDEBUG -g -O3 -flto -fprofile-use (...)

I see -g in both compilation steps.

It seems like debug symbols are still here:

vstinner@apu$ file ./python
./python: ELF 64-bit LSB executable, x86-64, (...), with debug_info, not 
stripped

But I confirm that test_gdb fails when using LTO+PGO.

gdb seems to be to read any C function argument:

$ gdb -args  ./python Lib/test/gdb_sample.py
(gdb) b builtin_id
(gdb) run
Breakpoint 1, 0x00518da0 in builtin_id ()
(gdb) py-bt
Traceback (most recent call first):
  (unable to read python frame information)
  (unable to read python frame information)
  (unable to read python frame information)
  (unable to read python frame information)

--

___
Python tracker 

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



[issue33870] pdb continue + breakpoint

2018-06-15 Thread Philip Rowlands


New submission from Philip Rowlands :

Please extend pdb's continue to support an optional argument, identical to 
break.

When debugging I frequently want to quickly run to a certain line number then 
break. Rather than break / continue / clear (or tbreak / continue), it would be 
handy to type
(Pdb) cont 99

to run to line 99 as a one-off breakpoint.

--
messages: 319622
nosy: philiprowlands
priority: normal
severity: normal
status: open
title: pdb continue + breakpoint
type: enhancement

___
Python tracker 

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



[issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO

2018-06-15 Thread Marcel Plch


Marcel Plch  added the comment:

Those -g switches you see there are during compile-time.
For this to work, you need to enable it also during link/time:
./configure --enable-optimizations --with-lto LDFLAGS="-g"

Except for py-bt, you should also try bt. With this link flag enabled, I can 
observe significant slowdown on my machine during the backtrace when using bt 
command (At least when I let the PGO do all the profiling, when compiled with 
the sed edit you posted here, I observe none).

--

___
Python tracker 

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



[issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO

2018-06-15 Thread Marcel Plch


Change by Marcel Plch :


--
nosy: +petr.viktorin

___
Python tracker 

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



[issue32295] User friendly message when invoking bdist_wheel sans wheel package.

2018-06-15 Thread Éric Araujo

Change by Éric Araujo :


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



[issue32962] test_gdb fails in debug build with `-mcet -fcf-protection -O0`

2018-06-15 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 9b7c74ca32d1bec7128d550a9ab1b2ddc7046287 by Victor Stinner 
(Marcel Plch) in branch 'master':
bpo-32962: Fix test_gdb failure in debug build with -mcet -fcf-protection -O0 
(#6754)
https://github.com/python/cpython/commit/9b7c74ca32d1bec7128d550a9ab1b2ddc7046287


--

___
Python tracker 

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



[issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO

2018-06-15 Thread STINNER Victor


Change by STINNER Victor :


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

___
Python tracker 

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



[issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO

2018-06-15 Thread STINNER Victor


STINNER Victor  added the comment:

> Except for py-bt, you should also try bt.

Oh. Using PGO+LTO but without LDFLAGS=-g, bt only shows me function names: all 
arguments are missing.

I tested with LDFLAGS=-g: py-bt and bt work as expected, and test_gdb pass.

I created PR 7709 to always compile Python with LDFLAGS=-g.

--

___
Python tracker 

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



[issue32962] test_gdb fails in debug build with `-mcet -fcf-protection -O0`

2018-06-15 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +7324

___
Python tracker 

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



[issue32962] test_gdb fails in debug build with `-mcet -fcf-protection -O0`

2018-06-15 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset ca4cb8492c643d1fcac2c5b749595ad5377673ab by Victor Stinner in 
branch '3.7':
[3.7] bpo-32962: Backport python-gdb.py and test_gdb.py from master (GH-7710)
https://github.com/python/cpython/commit/ca4cb8492c643d1fcac2c5b749595ad5377673ab


--

___
Python tracker 

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



[issue33824] Settign LANG=C modifies the --version behavior

2018-06-15 Thread Jakub Wilk


Jakub Wilk  added the comment:

First bad commit is:
9454060e84a669dde63824d9e2fcaf295e34f687
(bpo-29240, bpo-32030: Py_Main() re-reads config if encoding changes)

--
nosy: +jwilk, vstinner

___
Python tracker 

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



[issue32962] test_gdb fails in debug build with `-mcet -fcf-protection -O0`

2018-06-15 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +7325

___
Python tracker 

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



[issue33823] A BUG in concurrent/asyncio

2018-06-15 Thread Terry J. Reedy


Change by Terry J. Reedy :


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

___
Python tracker 

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



[issue33823] A BUG in concurrent/asyncio

2018-06-15 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Python++, when you respond by email, rather than on the web form, delete the 
message you are responding to.  It is already present on the web page and 
should not be repeated.

I unlinked msg319278 because it uselessly repeats the same message that it 
responds to.

--
nosy: +terry.reedy

___
Python tracker 

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



[issue33824] Settign LANG=C modifies the --version behavior

2018-06-15 Thread STINNER Victor


STINNER Victor  added the comment:

The bug is a regression caused by the PEP 540 (UTF-8 Mode) and my work to 
rewrite Py_Main(). My PR 7712 fixes the bug.

--

___
Python tracker 

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



[issue33824] Settign LANG=C modifies the --version behavior

2018-06-15 Thread STINNER Victor


Change by STINNER Victor :


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

___
Python tracker 

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



[issue33832] Make "magic methods" a little more discoverable in the docs

2018-06-15 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

It is unclear what problem this issue is meant to serve.  If the reference 
manual uses 'magic method', I think it should be changed.  Special method names 
are obvious by their form and need not and should not be labelled.  I think doc 
policy issues should be discussed on pydev or python-ideas lists.

--
nosy: +terry.reedy

___
Python tracker 

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



[issue32030] PEP 432: Rewrite Py_Main()

2018-06-15 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +7327

___
Python tracker 

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



[issue32962] test_gdb fails in debug build with `-mcet -fcf-protection -O0`

2018-06-15 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 5279759f52cc5397acfb04351b34feea862864de by Victor Stinner in 
branch '3.6':
bpo-32962: Backport python-gdb.py and test_gdb.py from master (GH-7710) 
(GH-7711)
https://github.com/python/cpython/commit/5279759f52cc5397acfb04351b34feea862864de


--

___
Python tracker 

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



[issue4948] Make heapq work with all mutable sequences

2018-06-15 Thread Brett Cannon


Brett Cannon  added the comment:

FYI I had a teacher reach out to me who wanted to use heapq as an example of 
functions-based API that worked without resorting to OOP but ran into this 
issue of heapq being limited to lists.

--
nosy: +brett.cannon

___
Python tracker 

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



[issue33847] doc: Add '@' operator entry to index

2018-06-15 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

This is definitely an oversight to be corrected.  Index entries for the other 
binary arithmetic operators point to the table at
https://docs.python.org/3/library/stdtypes.html#numeric-types-int-float-complex
But @ is not in that table since number @ number is meaningless and invalid.  
So I agree that the best location is the sentence in
https://docs.python.org/3/reference/expressions.html#binary-arithmetic-operations.

--
assignee: docs@python -> terry.reedy
nosy: +terry.reedy

___
Python tracker 

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



[issue33871] Possible integer overflow in iov_setup()

2018-06-15 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

The iov_setup() helper in posixmodule.c returns the total size of all buffers. 
But there is possible an integer overflow because the sequence of buffers can 
contain the same buffer repeated multiple times.

On 32-bit platform:

>>> import os
>>> f = open('/tmp/temp', 'wb')
>>> os.writev(f.fileno(), [b'x' * 2**16] * 2**15)
-1

Since the overflowed sum is negative, os_writev_impl() returns -1 as a signal 
of error, but since the exception is not set, -1 is returned as the result of 
os.writev(). If the overflowed sum is not negative, the sequence of buffers is 
passed to OS and an OSError is raised:

>>> os.writev(f.fileno(), [b'x' * 2**16] * 2**16)
Traceback (most recent call last):
  File "", line 1, in 
OSError: [Errno 22] Invalid argument

I have not tested (because have not installed corresponding 32-bit OSes, and it 
is harder to reproduce on 64-bit), but seems this can even cause a crash in 
os.sendfile() on FreeBSD, DragonFly BSD and Mac OS.

This sum is used only in os.sendfile() on Mac OS. In all other cases it is 
enough to return just an error flag. I can't find the documentation for 
os.sendfile() on Mac OS for checking if this value actually is needed.

--
components: Library (Lib)
messages: 319636
nosy: ned.deily, ronaldoussoren, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Possible integer overflow in iov_setup()
type: crash
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



[issue33832] Make "magic methods" a little more discoverable in the docs

2018-06-15 Thread Andrés Delfino

Andrés Delfino  added the comment:

The original intention of the PR, as shown in this issue, was to add "magic 
method" in the Glossary as a synonym for "special method", and add "magic 
method" in Data model (so that people reading Data Model would understand what 
a "magic method" is).

Then I was requested some changes, and stated I wasn't sure about them.

I don't believe special methods should be explicitly declared in each mention.

The "problem" this PR intended to "solve" was to let people know what a "magic 
method" is, because as I see it, it has become pretty standard to use "special 
method" with no indication that it is a synonym of "magic method".

--

___
Python tracker 

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



[issue33832] Make "magic methods" a little more discoverable in the docs

2018-06-15 Thread Andrés Delfino

Andrés Delfino  added the comment:

I'll update the PR so that it shows what the original intention was.

--

___
Python tracker 

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



[issue33852] doc Remove parentheses from sequence subscription description

2018-06-15 Thread Terry J. Reedy

Terry J. Reedy  added the comment:


New changeset 4fddd4e4069aad9efad999d8d9ce3cd9fb523a5c by Terry Jan Reedy 
(Andrés Delfino) in branch 'master':
bpo-33852: Remove misplaced parentheses around 'list'. (GH-7672)
https://github.com/python/cpython/commit/4fddd4e4069aad9efad999d8d9ce3cd9fb523a5c


--
nosy: +terry.reedy

___
Python tracker 

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



[issue33852] doc Remove parentheses from sequence subscription description

2018-06-15 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue33832] Make "magic methods" a little more discoverable in the docs

2018-06-15 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
nosy: +rhettinger

___
Python tracker 

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



[issue33852] doc Remove parentheses from sequence subscription description

2018-06-15 Thread miss-islington


Change by miss-islington :


--
pull_requests: +7329

___
Python tracker 

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



[issue33832] Make "magic methods" a little more discoverable in the docs

2018-06-15 Thread Fred L. Drake, Jr.


Fred L. Drake, Jr.  added the comment:

A quick grep on the 3.7 branch indicates that the standard documentation 
includes each of the terms "magic method" and "special method" about the same 
number of times.  (I didn't check for instances that wrapped lines.)

Perhaps we should decide on just one of these terms and fix references that use 
the other.  I agree this can be a source of confusion, but having two terms for 
the same concept is a bug.

I don't think we need to change references to "the __something__ method", 
because those are specific.  We only need to decide on and consistently use the 
categorical term for these methods when referring to the entire category.

--
nosy: +fdrake -pablogsal, rhettinger

___
Python tracker 

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



[issue33832] Make "magic methods" a little more discoverable in the docs

2018-06-15 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

Just for clarification. My question in the PR was:

>I think these are not the only occurrences of method referring to a 
>magic method. A quick grep reveals that there are more places where the 
>construction the __something__ method happens. Should we change these 
> too to __something__ special method?

This is because I was not sure if the intention of the PR was changing these 
everywhere or not. Sorry
if that was interpreted as a change request. :S

--
nosy: +pablogsal

___
Python tracker 

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



[issue33832] Make "magic methods" a little more discoverable in the docs

2018-06-15 Thread Andrés Delfino

Andrés Delfino  added the comment:

Terry:
I have updated the PR with the original intention. You'll see it is much 
simpler.

Pablo:
Don't worry! I take it as a mistake of my own.

Fred:
I believe synonyms aren't the best things to have, but, if used consistently, 
they don't pose a real problem. Plus, they are so common, that most probably 
"magic" will reappear.

--

___
Python tracker 

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



[issue33832] Make "magic methods" a little more discoverable in the docs

2018-06-15 Thread Andrés Delfino

Andrés Delfino  added the comment:

For context, I opened this issue after Raymond's reasoning in #33825 (which I 
agreed with).

--

___
Python tracker 

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



[issue33861] Minor improvements of tests for os.path.

2018-06-15 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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

___
Python tracker 

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



[issue33871] Possible integer overflow in iov_setup()

2018-06-15 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

I can reproduce the issue on a i686 GNU/Linux  Debian system:

>>> import os
>>> f = open('/tmp/temp', 'wb')
>>> l = os.writev(f.fileno(), [b'x' * 2**16] * 2**15)
Traceback (most recent call last):
  File "", line 1, in 
SystemError: error return without exception set

--
nosy: +pablogsal

___
Python tracker 

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



[issue33871] Possible integer overflow in iov_setup()

2018-06-15 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

Docs for sendfile in macOS:

https://www.unix.com/man-page/osx/2/sendfile/

--

___
Python tracker 

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



[issue33852] doc Remove parentheses from sequence subscription description

2018-06-15 Thread Andrés Delfino

Change by Andrés Delfino :


--
pull_requests: +7331

___
Python tracker 

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



[issue33852] doc Remove parentheses from sequence subscription description

2018-06-15 Thread miss-islington


miss-islington  added the comment:


New changeset 0113391e3f3db0fea6a9545310dc06aa5ea41461 by Miss Islington (bot) 
in branch '3.7':
bpo-33852: Remove misplaced parentheses around 'list'. (GH-7672)
https://github.com/python/cpython/commit/0113391e3f3db0fea6a9545310dc06aa5ea41461


--
nosy: +miss-islington

___
Python tracker 

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



[issue33841] lock not released in threading.Condition

2018-06-15 Thread Antoine Pitrou


Antoine Pitrou  added the comment:

The `waiter` lock is always removed from `self._waiters` at the end of wait() 
(either by notify() or by wait() itself), so there's no point in releasing it a 
second time before destruction.

I'm closing this as it's not a bug.

--
nosy: +pitrou, tim.peters
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



[issue33832] Make "magic methods" a little more discoverable in the docs

2018-06-15 Thread Andrés Delfino

Andrés Delfino  added the comment:

Sorry, for some reason the PR doesn't show the intended changes. I'm working on 
fixing it.

--

___
Python tracker 

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



[issue33867] Module dicts are wiped on module garbage collection

2018-06-15 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

I cannot reproduce this in 3.6.5:

>>>import sys
>>>import gc
>>>a = type(sys)('a')
>>>b = a.__dict__
>>>print(b['__name__'] is None)
False
>>>del a
>>>gc.collect()
>>>print(b['__name__'] is None)
False


On the other hand, this still happens in 2.7.15:

Python 2.7.15 (default, May  1 2018, 20:16:04)
[GCC 7.3.1 20180406] on linux2
Type "help", "copyright", "credits" or "license" for more information.

>>>import sys
>>>import gc
>>>a = type(sys)('a')
>>>b = a.__dict__
>>>print(b['__name__'] is None)
False
>>>del a
>>>gc.collect()
>>>print(b['__name__'] is None)
True

--
nosy: +pablogsal

___
Python tracker 

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



[issue33852] doc Remove parentheses from sequence subscription description

2018-06-15 Thread miss-islington


miss-islington  added the comment:


New changeset eb4989970ce639845ca17e9a040f55fe704b862e by Miss Islington (bot) 
in branch '3.6':
bpo-33852: Remove misplaced parentheses around 'list'. (GH-7672)
https://github.com/python/cpython/commit/eb4989970ce639845ca17e9a040f55fe704b862e


--

___
Python tracker 

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



[issue33832] Make "magic methods" a little more discoverable in the docs

2018-06-15 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Fred, did you intend to delete people from nosy?

--

___
Python tracker 

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



[issue33870] pdb continue + breakpoint

2018-06-15 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
components: +Library (Lib)
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



[issue33826] enable discovery of class source code in IPython interactively defined classes

2018-06-15 Thread Ivan Pozdeev


Ivan Pozdeev  added the comment:

In [1]: import logging

In [2]: logging.Logger.__module__
Out[2]: 'logging'

In [4]: import sys

In [6]: sys.modules[logging.Logger.__module__].__file__
Out[6]: 'C:\\Program Files\\Python36\\lib\\logging\\__init__.py'

--
nosy: +Ivan.Pozdeev

___
Python tracker 

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



[issue33852] doc Remove parentheses from sequence subscription description

2018-06-15 Thread Terry J. Reedy

Terry J. Reedy  added the comment:


New changeset 184e8ed1eeda3ba869755ff37374dd86f332f30d by Terry Jan Reedy 
(Andrés Delfino) in branch '2.7':
[2.7] bpo-33852: Remove misplaced parentheses around 'list'. (GH-7672) (#7716)
https://github.com/python/cpython/commit/184e8ed1eeda3ba869755ff37374dd86f332f30d


--

___
Python tracker 

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



[issue33847] doc: Add '@' operator entry to index

2018-06-15 Thread Terry J. Reedy

Terry J. Reedy  added the comment:


New changeset 695118600fecaa7b95634e168ad7cbbc561fd1ec by Terry Jan Reedy 
(Andrés Delfino) in branch 'master':
bpo-33847: Add '@' operator entry to index (GH-7669)
https://github.com/python/cpython/commit/695118600fecaa7b95634e168ad7cbbc561fd1ec


--

___
Python tracker 

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



[issue33847] doc: Add '@' operator entry to index

2018-06-15 Thread miss-islington


Change by miss-islington :


--
pull_requests: +7332

___
Python tracker 

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



[issue33852] doc Remove parentheses from sequence subscription description

2018-06-15 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Guido approved the change on the PR.

--
assignee: docs@python -> terry.reedy
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue33847] doc: Add '@' operator entry to index

2018-06-15 Thread miss-islington


Change by miss-islington :


--
pull_requests: +7333

___
Python tracker 

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



[issue33826] enable discovery of class source code in IPython interactively defined classes

2018-06-15 Thread Ivan Pozdeev


Ivan Pozdeev  added the comment:

What do you mean by "class source code" anyway? A class doesn't actually 
contain any executable code (and there's no code object associated with it).

--

___
Python tracker 

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



[issue33832] Make "magic methods" a little more discoverable in the docs

2018-06-15 Thread Fred L. Drake, Jr.


Fred L. Drake, Jr.  added the comment:

Indeed, I did not.  Fixed now.  I hope.

--
nosy: +rhettinger

___
Python tracker 

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



[issue33847] doc: Add '@' operator entry to index

2018-06-15 Thread miss-islington


miss-islington  added the comment:


New changeset c05c0e045ccf6e065c59c193195dc0e9b7242dd4 by Miss Islington (bot) 
in branch '3.7':
bpo-33847: Add '@' operator entry to index (GH-7669)
https://github.com/python/cpython/commit/c05c0e045ccf6e065c59c193195dc0e9b7242dd4


--
nosy: +miss-islington

___
Python tracker 

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



[issue33832] Make "magic methods" a little more discoverable in the docs

2018-06-15 Thread Fred L. Drake, Jr.


Change by Fred L. Drake, Jr. :


--
nosy: +pablogsal

___
Python tracker 

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



[issue33854] doc Add PEP title in seealso of Built-in Types

2018-06-15 Thread miss-islington


Change by miss-islington :


--
pull_requests: +7334

___
Python tracker 

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



[issue33854] doc Add PEP title in seealso of Built-in Types

2018-06-15 Thread Terry J. Reedy

Terry J. Reedy  added the comment:


New changeset a9d0b34a5c5d4fdc12bba4f9c1e314e6e132cc65 by Terry Jan Reedy 
(Andrés Delfino) in branch 'master':
bpo-33854: Add PEP 461 title to 'See also' note (GH-7688)
https://github.com/python/cpython/commit/a9d0b34a5c5d4fdc12bba4f9c1e314e6e132cc65


--
nosy: +terry.reedy

___
Python tracker 

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



  1   2   >