[issue41864] Compiler error in _zoneinfo.c:1227: error: #pragma GCC diagnostic not allowed inside functions

2020-09-26 Thread micwin
New submission from micwin : Python 3.9.0rc2 OS: centos 6.10 Compiler: gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-23) configure && make Python-3.9.0rc2/Modules/_zoneinfo.c:1227: error: #pragma GCC diagnostic not allowed inside functions Python-3.9.0rc2/Modules/_zoneinfo.c:1228: error: #pragma

[issue41858] Fix incomplete line on optparse documentation

2020-09-26 Thread Tal Einat
Tal Einat added the comment: I agree with Terry that the current form is not incorrect, as well as with his suggestion to inline the commands for printing the usage info. -- nosy: +taleinat ___ Python tracker

[issue41799] splunklib.client does not handle Unicode characters

2020-09-26 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> third party stage: -> resolved status: pending -> closed ___ Python tracker ___ ___

[issue41864] Compiler error in _zoneinfo.c:1227: error: #pragma GCC diagnostic not allowed inside functions

2020-09-26 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41864] Compiler error in _zoneinfo.c:1227: error: #pragma GCC diagnostic not allowed inside functions

2020-09-26 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41428] PEP 604 -- Allow writing union types as X | Y

2020-09-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset d73cf7ca85fb60b739e671597aabe72cc36d397a by Victor Stinner in branch 'master': bpo-41428: Fix compiler warning in unionobject.c (GH-22416) https://github.com/python/cpython/commit/d73cf7ca85fb60b739e671597aabe72cc36d397a --

[issue41428] PEP 604 -- Allow writing union types as X | Y

2020-09-26 Thread STINNER Victor
STINNER Victor added the comment: > Now that PR 21515 is landed, we should consider what sections of the > docs/spec needs to be updated. Any update on the documentation? -- ___ Python tracker

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-09-26 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 2afd1751dd9a35d4ec03b708e3e5cddd72c43f7e by Dong-hee Na in branch 'master': bpo-1635741: Port _bisect module to multi-phase init (GH-22415) https://github.com/python/cpython/commit/2afd1751dd9a35d4ec03b708e3e5cddd72c43f7e --

[issue41428] PEP 604 -- Allow writing union types as X | Y

2020-09-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +21453 pull_request: https://github.com/python/cpython/pull/22416 ___ Python tracker ___

[issue40257] Improve the use of __doc__ in pydoc

2020-09-26 Thread Emmanuel Arias
Change by Emmanuel Arias : -- nosy: +eamanu nosy_count: 11.0 -> 12.0 pull_requests: +21452 pull_request: https://github.com/python/cpython/pull/22390 ___ Python tracker ___

[issue41859] Uncaught ValueError

2020-09-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: On Windows, the only key I found that closed the completion box via keyrelease_event is Left Arrow. If I explicitly caught that, the method might not be needed on Windows. Next I will look at the triplets list and how something might be missing or deleted

[issue29940] Add follow_wrapped=True option to help()

2020-09-26 Thread Tal Einat
Tal Einat added the comment: The issue was not that __doc__ was not copied, but that help() would use the class's __doc__ when called on an instance, even if that instance had its own __doc__. See the StackOverflow question for another example. You will not see this issue with the latest

[issue40042] Enum Flag: psuedo-members have None for name attribute

2020-09-26 Thread Irit Katriel
Irit Katriel added the comment: I see in the code of _create_pseudo_member_ that _name_ is deliberately set to None, and furthermore in __str__ and __repr__ the fact that it is None is used to determine whether self is a composite (pseudo) or not. So first question is whether this should be

[issue41865] doc search for super().__init__() returns no useful results

2020-09-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: The __init__() method isn't a feature of super(). It is a feature of the class being called. -- nosy: +rhettinger ___ Python tracker

[issue38815] test_ssl: test_min_max_version() fails on FreeBSD and Fedora

2020-09-26 Thread Sumagna Das
Sumagna Das added the comment: still getting this issue on Ubuntu 20.04 with the latest master checkout of cpython -- nosy: +sumagnadas versions: +Python 3.10 -Python 3.9 ___ Python tracker

[issue36255] Provide a simple way to delete and edit python's welcome message

2020-09-26 Thread Irit Katriel
Irit Katriel added the comment: I think this issue can be closed, there is nothing to do on it. -- nosy: +iritkatriel ___ Python tracker ___

[issue41848] PEG parser doesn't allow lambda in for_if_clause

2020-09-26 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I concur with Guido: it makes the grammar slightly more complex for no gain. Also, the originally allowed rule does not allow *any* lambda but only the ones that are simple, which is a special case that makes it even more complex. In any case you can

[issue37378] FatalError: initfsencoding python couldn't find codec Module not found: Encodings

2020-09-26 Thread Irit Katriel
Irit Katriel added the comment: Is this issue resolved? -- nosy: +iritkatriel ___ Python tracker ___ ___ Python-bugs-list mailing

[issue37378] FatalError: initfsencoding python couldn't find codec Module not found: Encodings

2020-09-26 Thread Irit Katriel
Irit Katriel added the comment: Oh, it's closed, sorry for the noise. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36255] Provide a simple way to delete and edit python's welcome message

2020-09-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I think this issue can be closed, there is nothing to do on it. Right. -- assignee: -> rhettinger nosy: +rhettinger resolution: -> not a bug ___ Python tracker

[issue41865] doc search for super().__init__() returns no useful results

2020-09-26 Thread Jack W.
Jack W. added the comment: True enough, however, no search I could come up which included the term "super" or "__init__" returned a document near the top of the search which showed how to chain a superclass initializer. This can be confusing, as there are 2 syntaxes for doing this.

[issue23706] pathlib.Path.write_text should include a newline argument

2020-09-26 Thread Maxim Burov
Change by Maxim Burov : -- keywords: +patch nosy: +maksvenberv nosy_count: 5.0 -> 6.0 pull_requests: +21458 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/22420 ___ Python tracker

[issue41848] PEG parser doesn't allow lambda in for_if_clause

2020-09-26 Thread Guido van Rossum
Guido van Rossum added the comment: Okay, let's close this. -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue41114] "TypeError: unhashable type" could often be more clear

2020-09-26 Thread Irit Katriel
Change by Irit Katriel : -- components: +Interpreter Core type: behavior -> enhancement ___ Python tracker ___ ___ Python-bugs-list

[issue41858] Fix incomplete line on optparse documentation

2020-09-26 Thread Emmanuel Arias
Emmanuel Arias added the comment: Hi Terry and Tal Einat, I can't say too much because I am not English native, and my English is very basic. When I read the docs and the translation from python-docs-es, that sentence make me feel how if something is missing, but I understand the intention

[issue41869] Multiprocessing Manager Object Cleanup

2020-09-26 Thread Michael L. Boom
New submission from Michael L. Boom : I have a program that is running a multiprocessing manager. Other programs connect and get proxies for objects. If those programs close cleanly, the destructor in the multiprocessing manager for the corresponding object gets called. If I kill that

[issue41861] Convert sqlite3 to PEP 384

2020-09-26 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- pull_requests: +21454 pull_request: https://github.com/python/cpython/pull/22417 ___ Python tracker ___

[issue35561] Valgrind reports Syscall param epoll_ctl(event) points to uninitialised byte(s)

2020-09-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: The valgrind bug was also fixed https://bugs.kde.org/show_bug.cgi?id=422623. -- ___ Python tracker ___

[issue38815] test_ssl: test_min_max_version() fails on FreeBSD and Fedora

2020-09-26 Thread Sumagna Das
Change by Sumagna Das : -- versions: +Python 3.9 -Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41861] Convert sqlite3 to PEP 384

2020-09-26 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- pull_requests: +21456 pull_request: https://github.com/python/cpython/pull/22419 ___ Python tracker ___

[issue41865] doc search for super().__init__() returns no useful results

2020-09-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: The primary documentation for super() is here: https://docs.python.org/3/library/functions.html#super At the bottom it references a guide to using super() that you might find helpful: https://rhettinger.wordpress.com/2011/05/26/super-considered-super/

[issue41051] Flush file after warning is written

2020-09-26 Thread Irit Katriel
Change by Irit Katriel : -- components: +IO type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue2897] PyMemberDef missing in limited API / Deprecate structmember.h

2020-09-26 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- nosy: +erlendaasland nosy_count: 14.0 -> 15.0 pull_requests: +21457 pull_request: https://github.com/python/cpython/pull/22419 ___ Python tracker

[issue41851] tkinter: add font neg and equal methods

2020-09-26 Thread Tal Einat
Tal Einat added the comment: Why would negating the font size convert it from points to pixels?? It seems to be coming straight from Tk; is this documented anywhere? I'd greatly prefer that we use a properly named property instead, e.g. .pixel_size. -- nosy: +taleinat

[issue41864] Compiler error in _zoneinfo.c:1227: error: #pragma GCC diagnostic not allowed inside functions

2020-09-26 Thread Dong-hee Na
Dong-hee Na added the comment: see also: https://bugs.python.org/issue40686 -- nosy: +corona10 ___ Python tracker ___ ___

[issue41868] SMTPLIB integrate or provide option to use "logging"

2020-09-26 Thread KK Hiraskar
New submission from KK Hiraskar : Currently "smtplib" is directly printing data to stdout/stderr, and not getting any good way to get this data in to the logs written by "logging" please provide an option to achieve this. -- components: email messages: 377537 nosy: barry,

[issue39862] Why are the union relationships not implemented by default for ≤ and ≥?

2020-09-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: This issue is more of a question or objection than a bug report, so I'm going to mark this as closed. Feel free to continue the discussion on python-ideas or ask more about it on StackOverflow. -- resolution: -> not a bug stage: -> resolved

[issue41851] tkinter: add font neg and equal methods

2020-09-26 Thread Tal Einat
Tal Einat added the comment: As for an equal() method, I think that adding equal() which is different than the existing __eq__() would be a source of confusion. I also think using it wouldn't add anything, and would be less clear, compared to font1.actual() == font2.actual(). I'm

[issue41822] Document the meaning of values for sys.float_info.rounds

2020-09-26 Thread Rahul Kumaresan
Change by Rahul Kumaresan : -- nosy: +rahul-kumi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41866] Document error in chinese version of contextlib.

2020-09-26 Thread siyuan0322
New submission from siyuan0322 : In the Chinese version of documentation (both simplified and tradinational) of contextlib, the URL of `__enter__` and `__exit__` of [`contextlib.AbstractContextManager`](https://docs.python.org/zh-cn/3/library/contextlib.html#contextlib.AbstractContextManager)

[issue41867] Include options for timespec in docstrings of isoformat

2020-09-26 Thread Ram Rachum
New submission from Ram Rachum : Writing the patch now. -- components: Library (Lib) messages: 377534 nosy: cool-RR priority: normal severity: normal status: open title: Include options for timespec in docstrings of isoformat type: enhancement versions: Python 3.10

[issue39862] Why are the union relationships not implemented by default for ≤ and ≥?

2020-09-26 Thread Irit Katriel
Irit Katriel added the comment: The PEP that Raymond linked to says: "Further smarts could have been added to the comparison mechanism, but this limited set of allowed "swaps" was chosen because it doesn't require the infrastructure to do any processing (negation) of return values. The

[issue41865] doc search for super().__init__() returns no useful results

2020-09-26 Thread Jack W.
New submission from Jack W. : It's oddly difficult to glean from the official documentation the correct syntax for superclass initialization. -- assignee: docs@python components: Documentation messages: 377527 nosy: docs@python, softwoehr priority: normal severity: normal status: open

[issue35765] Document references object x but doesn't show it in the example

2020-09-26 Thread Vedran Čačić
Vedran Čačić added the comment: I think it would be simpler to just remove the empty name `x`. "If you have an object, you can ...". -- nosy: +veky ___ Python tracker ___

[issue39326] Python-3.8.1 "test_importlib" failed

2020-09-26 Thread Rahul Kumaresan
Change by Rahul Kumaresan : -- nosy: +rahul-kumi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41851] tkinter: add font equal methods

2020-09-26 Thread E. Paine
E. Paine added the comment: > Why would negating the font size convert it from points to pixels?? Oh... I apologise: I clearly didn't think this through. It doesn't "convert" in any sense, it just negates the font size so 16 points becomes 16 pixels. Therefore, it is practically useless

[issue41867] Include options for timespec in docstrings of isoformat

2020-09-26 Thread Ram Rachum
Change by Ram Rachum : -- keywords: +patch pull_requests: +21455 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22418 ___ Python tracker ___

[issue41866] Document error in chinese version of contextlib.

2020-09-26 Thread Irit Katriel
Irit Katriel added the comment: You might find some information here: https://devguide.python.org/documenting/#translating -- nosy: +iritkatriel ___ Python tracker ___

[issue41866] Document error in chinese version of contextlib.

2020-09-26 Thread siyuan0322
siyuan0322 added the comment: Only found the source rst of the English version, doesn't know where the chinese version sources resides. -- ___ Python tracker ___

[issue41858] Fix incomplete line on optparse documentation

2020-09-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +21460 pull_request: https://github.com/python/cpython/pull/22426 ___ Python tracker ___

[issue41858] Fix incomplete line on optparse documentation

2020-09-26 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +21459 pull_request: https://github.com/python/cpython/pull/22425 ___ Python tracker

[issue41858] Fix incomplete line on optparse documentation

2020-09-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 00eb063b6600fdb4ba5cfb99da83cc1660ec69bf by Emmanuel Arias in branch 'master': bpo-41858: Clarify line in optparse doc (GH-22407) https://github.com/python/cpython/commit/00eb063b6600fdb4ba5cfb99da83cc1660ec69bf --

[issue41858] Fix incomplete line on optparse documentation

2020-09-26 Thread miss-islington
miss-islington added the comment: New changeset e0e614ca99c39e107b97c7be779efea08f22ace3 by Miss Islington (bot) in branch '3.8': bpo-41858: Clarify line in optparse doc (GH-22407) https://github.com/python/cpython/commit/e0e614ca99c39e107b97c7be779efea08f22ace3 --

[issue41114] "TypeError: unhashable type" could often be more clear

2020-09-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: > It would be clearer if the message was something like: > > TypeError: 'dict' can not be used as a set value because > it is an unhashable type. IMO that doesn't help. The trackback already shows the code where the exception occurred. The user

[issue41865] doc search for super().__init__() returns no useful results

2020-09-26 Thread Jack W.
Jack W. added the comment: Thank you. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41865] doc search for super().__init__() returns no useful results

2020-09-26 Thread Jack W.
Change by Jack W. : -- resolution: -> works for me ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41858] Fix incomplete line on optparse documentation

2020-09-26 Thread miss-islington
miss-islington added the comment: New changeset 8b2595f68af059afdd61b2bb3d32a2bf4f1662c8 by Miss Islington (bot) in branch '3.9': bpo-41858: Clarify line in optparse doc (GH-22407) https://github.com/python/cpython/commit/8b2595f68af059afdd61b2bb3d32a2bf4f1662c8 --