[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


--

___
Python tracker 

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



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

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



[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 

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



[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 

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



[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


--

___
Python tracker 

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



[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 already knows the calling type, and the existing 
message tells them what type was passed in.  

Their real problem is that they still have to confront the notion of what 
"unhashable type" means and then need figure-out a way to fix it.  So the 
proposed extra information is just a distractor that doesn't get the user any 
closer to understanding or solving their problem.  

To get a user closer to the solution they would either need an explanation of 
what hashable means and/or be given a suggestion of how to fix it:

   TypeError: unhashable type: 'dict'.  Consider using an int,
   str, tuple, or frozenset.

That said, it is precarious to guess what the user intended, so it is difficult 
to suggest some form of "did you mean ..."

--
nosy: +rhettinger

___
Python tracker 

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



[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 program, the destructor never gets called.  This is a 
serious problem as I can’t cleanup resources in this case.

--
components: Library (Lib)
messages: 377551
nosy: boom0192
priority: normal
severity: normal
status: open
title: Multiprocessing Manager Object Cleanup
type: behavior
versions: Python 3.9

___
Python tracker 

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



[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 with 
the Terry explanation.

I will change the patch for 

``Additionally, users can run one of the following ::``

What about now?

--

___
Python tracker 

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



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

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



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

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



[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 

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



[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 use parentheses to break this limitation.

Like Guido, I propose to add a very small comment to What's New in 3.9

--

___
Python tracker 

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



[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 

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



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

The standard library source code has many examples.  In particular, the 
argparse module makes heavy use of super():
https://github.com/python/cpython/blob/3.8/Lib/argparse.py

The tutorial provides some light discussion:
https://docs.python.org/3/tutorial/classes.html#multiple-inheritance

There is also an FAQ entry:
https://docs.python.org/3/faq/programming.html#how-do-i-call-a-method-defined-in-a-base-class-from-a-derived-class-that-overrides-it

There is also extensive coverage on StackOverflow:
https://stackoverflow.com/search?q=%5Bpython%5D+super

Hope you find these links helpful.

--

___
Python tracker 

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



[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 

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



[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 

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



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

--

___
Python tracker 

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



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

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



[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 

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



[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 

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



[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
status: open -> closed

___
Python tracker 

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



[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, hpkkumar007, r.david.murray
priority: normal
severity: normal
status: open
title: SMTPLIB integrate or provide option to use "logging"
type: enhancement

___
Python tracker 

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



[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 choice of 
six special methods was made over a single (e.g. __richcmp__) method to allow 
the dispatching on the opcode to be performed at the level of the C 
implementation rather than the user-defined method."


The pseudo code you suggested assumes that the results of comparisons can be 
interpreted as booleans, which not always correct and makes your suggestion 
under-specified.  It is not easy to devise a sound and intuitive composition of 
boolean expressions whose semantics are user-defined. 


As an aside, I think for the boolean case it is enough that one of them is not 
NotImplemented, so your pseudo code should have been:

def __le__(self, other):
result_1 = self.__lt__(other)
result_2 = self.__eq__(other)
if result_1 is NotImplemented and result_2 is NotImplemented:
return NotImplemented
return result_1 or result_2

--
nosy: +iritkatriel

___
Python tracker 

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



[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 

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



[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 

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



[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

___
Python tracker 

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



[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 

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



[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)
 is pointing to the `__aenter__` and `__aexit__` method, which is a small 
mistake.

--
assignee: docs@python
components: Documentation
messages: 377532
nosy: docs@python, siyuan
priority: normal
severity: normal
status: open
title: Document error in chinese version of contextlib.
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



[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 

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



[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 (besides, a new font object would not help 
the user a converted value anyway) - I therefore do not wish to proceed this 
this part of the issue (I have removed it from the title and will remove it 
from the PR).

> I also think using [.equal] wouldn't add anything

I disagree and will stand by this one! While the user could easily write it 
themselves, I think it would be helpful to have a convenience method to check 
if two fonts represent the same thing that is displayed to the user. When first 
creating this issue, I didn't want to touch __eq__ for two reasons:
1. I didn't know how much code changing this would break (it is very hard to 
check for code usage of dunder methods - if you know any ways please let me 
know!)
2. Checking to see if the fonts are the same Tk object is also very helpful (in 
other, granted fewer, contexts)

For example, something like this could be used in IDLE so that if the user sets 
their font back to the equivalent of the default ("TkFixedFont"), the value 
isn't kept in the user's local config (similar to how all the other options do).

Therefore, while I would like this somehow added, I agree that adding an 
`equal` method that does not do the same thing as `==` is confusing (you just 
have to look at Java and all the confusion over using `==` on strings - a 
'gotcha' for every new Java learner). However, as I said above, I am reluctant 
to touch __eq__. Any ideas?

--
title: tkinter: add font neg and equal methods -> tkinter: add font equal 
methods

___
Python tracker 

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



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 definitely not happy with the existing __eq__() though, and think it would 
be worth discussing changing __eq__() to use self.actual() == other.actual() 
rather than just comparing names. That should be a separate issue, though - 
you're welcome to create one!

--

___
Python tracker 

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



[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

___
Python tracker 

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



[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
title: doc search for super().__init__() returns no useful results
type: enhancement
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



[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 

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



[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 

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



[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 

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



[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


--

___
Python tracker 

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



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

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



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

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



[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 fixed.

If so, I see two options:

1. Establish another way to determine whether self is a composite or not, and 
change they way _name_ is initialised.

2. Leave _name_ as is, but override name (which currently is defined in Enum 
and simply returns _name_ but can be redefined to do something else).

--

___
Python tracker 

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



[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 

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



[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 GCC diagnostic not 
allowed inside functions
Python-3.9.0rc2/Modules/_zoneinfo.c:1229: warning: comparison is always false 
due to limited range of data type
Python-3.9.0rc2/Modules/_zoneinfo.c:1230: error: #pragma GCC diagnostic not 
allowed inside functions


Proposed fix, here the diff:

1227d1226
< #if defined(__GNUC__) && __GNUC__ >= 5
1230d1228
< #endif
1232d1229
< #if defined(__GNUC__) && __GNUC__ >= 5
1234d1230
< #endif

--
components: Build
messages: 377520
nosy: micwin
priority: normal
severity: normal
status: open
title: Compiler error in _zoneinfo.c:1227: error: #pragma GCC diagnostic not 
allowed inside functions
type: compile error
versions: Python 3.9

___
Python tracker 

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



[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 

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



[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 

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



[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 twice.

On my Mac Airbook with current 3.8.6 and 3.9.0rc2, I cannot get a completion 
box, even with the menu.  Do you have the same issue?

Reports with a traceback, like this one, are helpful and welcome.  If possible, 
include and information about either the code or action that triggered the 
exception.

--

___
Python tracker 

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



[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 master branch, because it has 
already been resolved by PR GH-19479, as described and discussed in issue40257.

Closing as "out of date".

--
resolution:  -> out of date
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