[issue42323] [AIX] test_math: test_nextafter(float('nan'), 1.0) does not return a NaN on AIX

2020-11-11 Thread STINNER Victor
New submission from STINNER Victor : https://buildbot.python.org/all/#/builders/302/builds/338 FAIL: test_nextafter (test.test_math.MathTests) -- Traceback (most recent call last): File

[issue42320] unexpected difference between map and list

2020-11-11 Thread Pierre van de Laar
New submission from Pierre van de Laar : On windows, with python 3.9, with unittests, My test case fails when I use the following lines of code ``` result = map(lambda x: self.substitute_in_expression(x), sequence.sequence) ``` It works fine with ``` result = list() for x

[issue33129] Add kwarg-only option to dataclass

2020-11-11 Thread conchylicultor
conchylicultor added the comment: Solving this would significantly improve @dataclass inheritance (https://bugs.python.org/issue39300). Any idea when this will land ? Currently, it is not possible to add required argument to a child dataclass (unless hacks like duplicating attributes): ```

[issue42322] Spectre mitigations in CPython interpreter

2020-11-11 Thread STINNER Victor
STINNER Victor added the comment: You can try to use a C compiler which implements workarounds, but I don't think that anything should be done directly in CPython. -- nosy: +vstinner ___ Python tracker

[issue42324] Doctest: directives

2020-11-11 Thread Konrad Schwarz
New submission from Konrad Schwarz : In both PDF and HTML, the examples for Doctest directives don't actually show the directives themselves, perhaps because they syntactically start with a #. -- assignee: docs@python components: Documentation messages: 380752 nosy: docs@python,

[issue42292] C API: Allocating Objects on the Heap. Misleading documentation.

2020-11-11 Thread igo95862
igo95862 added the comment: I found out that you can call the type as an object in order to create new object. Example: SdBusMessageObject *new_message_object = (SdBusMessageObject *)PyObject_Call((PyObject *), dummy_tuple, dummy_dict); This is somewhat not documented. Is this the

[issue42321] Limitations of building a static python library on Windows (MSVC)

2020-11-11 Thread Maarten
New submission from Maarten : `PCbuild/readme.txt` contains a little paragraph about how to build a static python library. The resulting static `python.lib` library contains all python C API functions. Windows DLL's don't allow missing symbols, so C extensions modules must link with a

[issue42085] Add dedicated slot for sending values

2020-11-11 Thread STINNER Victor
STINNER Victor added the comment: > New changeset 1e996c3a3b51e9c6f1f4cea8a6dbcf3bcb865060 by Vladimir Matveev in > branch 'master': This change introduced big reference leaks: 4 tests failed: test_asyncgen test_asyncio test_coroutines test_unittest Example: $ ./python -m test

[issue42320] unexpected difference between map and list

2020-11-11 Thread Pierre van de Laar
Pierre van de Laar added the comment: Zip didn't contain the test cases from the tests directory (sorry for that) -- Added file: https://bugs.python.org/file49592/tests.zip ___ Python tracker

[issue42320] unexpected difference between map and list

2020-11-11 Thread Pierre van de Laar
Pierre van de Laar added the comment: Not a bug: tuple is an iterator but an iterator is not a tuple. Yet iterators are often accepted during initialization... -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python

[issue42323] [AIX] test_math: test_nextafter(float('nan'), 1.0) does not return a NaN on AIX

2020-11-11 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +Michael.Felt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6103] Static library (libpythonX.Y.a) installed in incorrect location

2020-11-11 Thread Dirkjan Ochtman
Change by Dirkjan Ochtman : -- nosy: -djc ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42314] Incorrect documentation entry for venv

2020-11-11 Thread Vinay Sajip
Change by Vinay Sajip : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue42319] The `functools.singledispatchmethod` example in the document cannot run

2020-11-11 Thread hongweipeng
New submission from hongweipeng : https://docs.python.org/zh-cn/3.8/library/functools.html#functools.singledispatchmethod as the code: ``` from functools import singledispatchmethod class Negator: @singledispatchmethod @classmethod def neg(cls, arg): raise

[issue42322] Spectre mitigations in CPython interpreter

2020-11-11 Thread Amir Naseredini
New submission from Amir Naseredini : I was looking up everywhere and could not find any mitigations for Spectre attack by a Python interpreter(CPython)! I don't know if my question is correct or how feasible it is, but does anyone know if there are any mitigations for different variants of

[issue42324] Doctest: directives

2020-11-11 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Is this similar to https://bugs.python.org/issue36675 ? -- nosy: +xtreak ___ Python tracker ___

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

2020-11-11 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +22134 pull_request: https://github.com/python/cpython/pull/23236 ___ Python tracker ___

[issue40170] [C API] Make PyTypeObject structure an opaque structure in the public C API

2020-11-11 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +22133 pull_request: https://github.com/python/cpython/pull/23236 ___ Python tracker ___

[issue42085] Add dedicated slot for sending values

2020-11-11 Thread Andrew Svetlov
Andrew Svetlov added the comment: PR for the fix is created: https://github.com/python/cpython/pull/23237 -- ___ Python tracker ___

[issue42325] UnicodeDecodeError executing ./setup.py during build

2020-11-11 Thread Skip Montanaro
New submission from Skip Montanaro : I recently replaced Ubuntu 20.04 with Manjaro 20.2. In the process my Python builds broke in the sharedmods target of the Makefile. The tail end of the traceback is:   File "/home/skip/src/python/cpython/./setup.py", line 246, in grep_headers_for     if

[issue42014] shutil.rmtree calls onerror with different function than failed

2020-11-11 Thread Hynek Schlawack
Change by Hynek Schlawack : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue42245] concurrent.futures.ProcessPoolExecutor freezes depending on complexity

2020-11-11 Thread Ken Jin
Ken Jin added the comment: Danil, thanks for finding the cause behind this. Could you check if the new behavior in Python 3.8 and higher has the same problem on your machine (without your fix)? multiprocessing on MacOS started using spawn in 3.8, and I was wondering if it that fixed it.

[issue41832] PyType_FromSpec() should accept tp_doc=NULL

2020-11-11 Thread hai shi
hai shi added the comment: > The PR entirely removed the note that a slot's value "May not be NULL". > In fact, only tp_doc may be NULL. AFAIK, the restriction is still there > for > other slots. > Can that note be added back? `May not be NULL` means everthing is possible, so I decided

[issue42245] concurrent.futures.ProcessPoolExecutor freezes depending on complexity

2020-11-11 Thread DanilZ
DanilZ added the comment: Hi Ken, Thanks for your comment. Unfortunately at the time I can not upgrade to 3.8 to run this test. My whole system depends on 3.7 and some peculiarities of 3.8 need to be dealt with. It would be great if someone with OSX and 3.8 could test this out, otherwise

[issue42269] Add ability to set __slots__ in dataclasses

2020-11-11 Thread Jakub Stasiak
Jakub Stasiak added the comment: As a moderately-heavy dataclass user I support this. :) -- ___ Python tracker ___ ___

[issue42085] Add dedicated slot for sending values

2020-11-11 Thread Andrew Svetlov
Andrew Svetlov added the comment: Investigating. The test leaks a future instance. -- ___ Python tracker ___ ___ Python-bugs-list

[issue42245] concurrent.futures.ProcessPoolExecutor freezes depending on complexity

2020-11-11 Thread DanilZ
DanilZ added the comment: I have managed to solve the problem by inserting in the beginning of my program: import multiprocessing multiprocessing.set_start_method('forkserver') as this is explained here:

[issue42323] [AIX] test_math: test_nextafter(float('nan'), 1.0) does not return a NaN on AIX

2020-11-11 Thread Mark Dickinson
Mark Dickinson added the comment: If AIX were one of our officially supported platforms, then yes, I'd say that we should add a workaround to handle special cases ourselves, similarly to what we already do for a number of math module functions (like math.pow, for example). But given that

[issue42323] [AIX] test_math: test_nextafter(float('nan'), 1.0) does not return a NaN on AIX

2020-11-11 Thread Mark Dickinson
Mark Dickinson added the comment: Is there any reasonable channel for reporting the issue upstream? -- ___ Python tracker ___ ___

[issue42323] [AIX] test_math: test_nextafter(float('nan'), 1.0) does not return a NaN on AIX

2020-11-11 Thread STINNER Victor
STINNER Victor added the comment: My worry is that I'm getting emails about AIX buildbot failures. I see different options: * Skip the test on AIX * Fix nextafter() on AIX * Turn off AIX buildbot email notifications * Remove thE AIX buildbot --

[issue42322] Spectre mitigations in CPython interpreter

2020-11-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: AFAIK Spectre attacks rely on precise time measures. But Python is very far from bare hardware. Pure Python code is 10-100 times slower than compiled C or jitted JavaScript, and the variance is high, so it is hard to get stable results in benchmarks.

[issue40170] [C API] Make PyTypeObject structure an opaque structure in the public C API

2020-11-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset ba2958ed40d284228836735cbed4a155190e0998 by Victor Stinner in branch 'master': bpo-40170: Fix PyType_Ready() refleak on static type (GH-23236) https://github.com/python/cpython/commit/ba2958ed40d284228836735cbed4a155190e0998 --

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

2020-11-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset ba2958ed40d284228836735cbed4a155190e0998 by Victor Stinner in branch 'master': bpo-40170: Fix PyType_Ready() refleak on static type (GH-23236) https://github.com/python/cpython/commit/ba2958ed40d284228836735cbed4a155190e0998 --

[issue42140] asyncio.wait function creates futures set two times

2020-11-11 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10 ___ Python tracker ___

[issue42317] Docs of `typing.get_args`: Mention that due to caching of typing generics the order of arguments for Unions can be different from the one of the returned tuple

2020-11-11 Thread Ken Jin
Ken Jin added the comment: You're right, currently this happens for 2 reasons: 1. _SpecialGenericAlias (used by List), caches its __getitem__. (As you already pointed out :) ) 2. _UnionGenericAlias (Union)'s __hash__ is `hash(frozenset(self.__args__))`. i.e. Unions with different args

[issue42085] Add dedicated slot for sending values

2020-11-11 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +22135 pull_request: https://github.com/python/cpython/pull/23237 ___ Python tracker ___

[issue42326] Add verify_callback hook capability to the SSL lib

2020-11-11 Thread MineRobber___T
New submission from MineRobber___T : The SSL library currently lacks the ability to accept a client certificate without attempting to verify it. To alleviate this issue, I was thinking that an attribute could be added to the ssl.SSLContext class along the lines of `verify_callback` (similar

[issue42260] [C API] Add PyInterpreterState_SetConfig(): reconfigure an interpreter

2020-11-11 Thread Chris Meyer
Chris Meyer added the comment: > How do you configure sys.path currently? Do you parse a configuration file? > Do you use a registry key on Windows? We have several launch scenarios - but for the currently most common one, which is to launch using a separate, existing Python environment, we

[issue6225] Fixing several minor bugs in Tkinter.Canvas and one in Misc._configure

2020-11-11 Thread Irit Katriel
Irit Katriel added the comment: Since the code looks so different from the patch now, shall we close this as out of date? -- nosy: +iritkatriel status: open -> pending ___ Python tracker

[issue41832] PyType_FromSpec() should accept tp_doc=NULL

2020-11-11 Thread Petr Viktorin
Petr Viktorin added the comment: > `May not be NULL` means everthing is possible No, it does not. It only means a slot's value may not be NULL, which is an important difference between slots and entries in the PyTypeObject structure. It's OK that it's mentioned elsewhere, but can we please

[issue6225] Fixing several minor bugs in Tkinter.Canvas and one in Misc._configure

2020-11-11 Thread Andrew Svetlov
Andrew Svetlov added the comment: I believe, yes -- status: pending -> open ___ Python tracker ___ ___ Python-bugs-list mailing

[issue42260] [C API] Add PyInterpreterState_SetConfig(): reconfigure an interpreter

2020-11-11 Thread STINNER Victor
STINNER Victor added the comment: > I would like to request that this ability to dynamically load Python DLLs > remains even with any new initialization mechanism. I don't plan to remove any feature :-) > As another note, the main issues we run into are configuring the Python path > to

[issue12508] Codecs Anomaly

2020-11-11 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.2, Python 3.3 ___ Python tracker ___

[issue10615] Trivial mingw compile fixes

2020-11-11 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.1, Python 3.2 ___ Python tracker ___

[issue42326] Add verify_callback hook capability to the SSL lib

2020-11-11 Thread Christian Heimes
Christian Heimes added the comment: Yes, it's a duplicate. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Add SSLContext.set_verify_callback() ___ Python tracker

[issue7611] shlex not posix compliant when parsing "foo#bar"

2020-11-11 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.9 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41100] Build failure on macOS 11 (beta)

2020-11-11 Thread Roundup Robot
Change by Roundup Robot : -- nosy: +python-dev nosy_count: 12.0 -> 13.0 pull_requests: +22136 pull_request: https://github.com/python/cpython/pull/23239 ___ Python tracker ___

[issue25460] Misc/.gdbinit uses preprocessor macro

2020-11-11 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Some gdb macros are broken in 3.6 ___ Python tracker ___

[issue24743] Make _PyTraceback_Add public

2020-11-11 Thread Irit Katriel
Irit Katriel added the comment: The information about the location in c++ where the error occurred can be included in the exception message. I don't think adding fake frames to the traceback is a pattern that we should support through a public API. -- nosy: +iritkatriel

[issue42085] Add dedicated slot for sending values

2020-11-11 Thread STINNER Victor
STINNER Victor added the comment: commit cda99b4022daa08ac74b0420e9903cce883d91c6 (HEAD -> master, upstream/master) Author: Andrew Svetlov Date: Wed Nov 11 17:48:53 2020 +0200 Fix memory leak introduced by GH-22780 (GH-23237) -- ___ Python

[issue42326] Add verify_callback hook capability to the SSL lib

2020-11-11 Thread Zackery Spytz
Zackery Spytz added the comment: Unfortunately, this seems like a duplicate of bpo-31242. -- nosy: +ZackerySpytz ___ Python tracker ___

[issue42269] Add ability to set __slots__ in dataclasses

2020-11-11 Thread Xtrem532
Change by Xtrem532 : -- nosy: +Xtrem532 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42323] [AIX] test_math: test_nextafter(float('nan'), 1.0) does not return a NaN on AIX

2020-11-11 Thread Mark Dickinson
Mark Dickinson added the comment: > My worry is that I'm getting emails about AIX buildbot failures. That sounds more like a process problem than a CPython codebase one. The ideal would be that the machinery sending those notifications can be configured to ignore known failures when

[issue42260] [C API] Add PyInterpreterState_SetConfig(): reconfigure an interpreter

2020-11-11 Thread Chris Meyer
Chris Meyer added the comment: >> I would like to request that this ability to dynamically load Python DLLs >> remains even with any new initialization mechanism. > I don't plan to remove any feature :-) I am glad to hear that. I'm somewhat nervous about it nevertheless. In particular, the

[issue42317] Docs of `typing.get_args`: Mention that due to caching of typing generics the order of arguments for Unions can be different from the one of the returned tuple

2020-11-11 Thread Guido van Rossum
Guido van Rossum added the comment: Agreed it's mildly sad, and I wish the cache could preserve the order in List[Union[int, str]], but for that to work we'd have to change how the cache works, which feels complex, or we'd have to chance things so that Union[int, str] != Union[str, int],

[issue42323] [AIX] test_math: test_nextafter(float('nan'), 1.0) does not return a NaN on AIX

2020-11-11 Thread David Edelsohn
David Edelsohn added the comment: nextafter is a known problem on AIX. I believe that it is being addressed in newer releases of AIX. Michael and I are helping the IBM AIX Open Source team to increase their attention on Python, but things only move so fast. --

[issue10709] Misc/AIX-NOTES needs updating

2020-11-11 Thread Irit Katriel
Irit Katriel added the comment: The version in the patch was added as Misc/README.AIX, and the backporting 2.7 and 3.1 is no longer relevant. -- nosy: +iritkatriel stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue1487481] Could BIND_FIRST be removed on HP-UX?

2020-11-11 Thread Göran Uddeborg
Göran Uddeborg added the comment: >From my view as reporter, it would be fine to close it. We no longer have any >HP-UX systems. -- status: pending -> open ___ Python tracker

[issue6225] Fixing several minor bugs in Tkinter.Canvas and one in Misc._configure

2020-11-11 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> out of date stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue42324] Doctest: directives

2020-11-11 Thread Konrad Schwarz
Konrad Schwarz added the comment: Yes it is. On Wed, Nov 11, 2020 at 1:06 PM Karthikeyan Singaravelan < rep...@bugs.python.org> wrote: > > Karthikeyan Singaravelan added the comment: > > Is this similar to https://bugs.python.org/issue36675 ? > > -- > nosy: +xtreak > >

[issue42245] concurrent.futures.ProcessPoolExecutor freezes depending on complexity

2020-11-11 Thread Ronald Oussoren
Ronald Oussoren added the comment: The script as-is doesn't work with 3.8 because it uses the "spawn" strategy. I haven't tried to tweak the script to get it to work on 3.8 because the scripts works fine for me with 3.7. The smaller script in msg380225 works for me on both python 3.7.4 and

[issue42085] Add dedicated slot for sending values

2020-11-11 Thread STINNER Victor
STINNER Victor added the comment: Thanks! The change fixed the leak: $ ./python -m test -j0 -R 3:3 test_asyncgen test_coroutines test_unittest # test_asyncio (...) Tests result: SUCCESS I didn't run test_asyncio because the test is too slow. --

[issue42258] argparse: show choices once per argument

2020-11-11 Thread mendelmaleh
mendelmaleh added the comment: When using more than one flag for an argument, it is redundant to have the choices more than once, since they are the same argument and have the same choices. Showing it once means cleaner output, and often means that the other option lines are shorter, like

[issue42260] [C API] Add PyInterpreterState_SetConfig(): reconfigure an interpreter

2020-11-11 Thread Chris Meyer
Chris Meyer added the comment: Responding to your request for feedback on Python-Dev: We embed Python dynamically by finding the libPython DLL, loading it, and looking up the required symbols. We make appropriate define's so that the Python headers (and NumPy headers) point to our functions

[issue42323] [AIX] test_math: test_nextafter(float('nan'), 1.0) does not return a NaN on AIX

2020-11-11 Thread STINNER Victor
STINNER Victor added the comment: > That sounds more like a process problem than a CPython codebase one. The > ideal would be that the machinery sending those notifications can be > configured to ignore known failures when deciding whether to send email. Is > that remotely feasible? (I have

[issue42085] Add dedicated slot for sending values

2020-11-11 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thank you Victor for the report! -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue9420] gdbm with /usr/include/ndbm.h

2020-11-11 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.2, Python 3.3 ___ Python tracker ___

[issue42312] sys.prefix is set incorrectly on Mac OS X

2020-11-11 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've thought about this some more and haven't changed my opinion: the current behaviour is intentional and won't change. I'm therefore closing this issue. -- resolution: -> wont fix stage: -> resolved status: open -> closed

[issue979658] Improve HTML documentation of a directory

2020-11-11 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.9 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue2449] Improved serialization error logging in xmlrpclib

2020-11-11 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.9 -Python 2.7, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list

[issue1487481] Could BIND_FIRST be removed on HP-UX?

2020-11-11 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> out of date stage: test needed -> resolved status: open -> closed ___ Python tracker ___

[issue6672] Add Mingw recognition to pyport.h to allow building extensions

2020-11-11 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.2, Python 3.4 ___ Python tracker ___

[issue12508] codecs.StreamReader doesn't pass final=1 to the UTF-8 codec

2020-11-11 Thread STINNER Victor
Change by STINNER Victor : -- title: Codecs Anomaly -> codecs.StreamReader doesn't pass final=1 to the UTF-8 codec ___ Python tracker ___

[issue22442] Deprecate PIPE with subprocess.check_call() and call()

2020-11-11 Thread Irit Katriel
Irit Katriel added the comment: Any objections to closing this? If the old API is going to be deprecated I think that's a topic for another issue. -- nosy: +iritkatriel status: open -> pending ___ Python tracker

[issue24831] Load average in test suite too high

2020-11-11 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list

[issue41987] singledispatchmethod raises an error when relying on a forward declaration

2020-11-11 Thread Guido van Rossum
Guido van Rossum added the comment: I spent some time debugging this looking for the root cause. I think it looks like the recursion check in ForwardRef._evaluate() fails to trigger. At some point recursive_guard is a frozen set containing "'Integer'" (i.e. a string whose first and last

[issue42327] Add PyModule_Add()

2020-11-11 Thread Brandt Bucher
Brandt Bucher added the comment: See also: https://bugs.python.org/issue38823 https://github.com/python/cpython/pull/17298 -- nosy: +brandtbucher ___ Python tracker ___

[issue38823] Improve stdlib module initialization error handling.

2020-11-11 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42327] Add PyModule_Add()

2020-11-11 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : There is a design flaw in PyModule_AddObject(). It steals reference of its value only if the result is success. To avoid leaks it should be used in the following form: PyObject *tmp = ; if (PyModule_AddObject(name, name, tmp) < 0) {

[issue42327] Add PyModule_Add()

2020-11-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +22137 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23240 ___ Python tracker

[issue31242] Add SSLContext.set_verify_callback()

2020-11-11 Thread MineRobber___T
Change by MineRobber___T : -- nosy: +MineRobber9000 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42328] ttk style.map function incorrectly handles the default state for element options.

2020-11-11 Thread Pat Thoyts
New submission from Pat Thoyts : When cloning a ttk style it is useful to copy an existing style and make changes. We can copy the configuration and layout using: style.layout('Custom.TEntry', **style.layout('TEntry')) style.configure('Custom.TEntry', **style.configure('TEntry))

[issue42328] ttk style.map function incorrectly handles the default state for element options.

2020-11-11 Thread Pat Thoyts
Change by Pat Thoyts : -- keywords: +patch nosy: +Pat Thoyts nosy_count: 1.0 -> 2.0 pull_requests: +22138 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23241 ___ Python tracker

[issue42331] 'base64' has no attribute 'decodestring'

2020-11-11 Thread michalis aggela
New submission from michalis aggela : File "/Users/michaelmouchametai/Downloads/google-cloud-sdk/platform/gsutil/gslib/utils/encryption_helper.py", line 152, in Base64Sha256FromBase64EncryptionKey decoded_bytes = base64.decodestring(csek_encryption_key) AttributeError: module 'base64' has

[issue41987] singledispatchmethod raises an error when relying on a forward declaration

2020-11-11 Thread mental
mental added the comment: Interesting! thanks for the hint guido I'll try to investigate further. This sounds like a regression (to me at least), in that case should a separate issue & patch PR be opened on the bpo or should this issue be used instead? --

[issue42329] typing classes do not have __name__ attributes in 3.7+

2020-11-11 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +gvanrossum, levkivskyi ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41987] singledispatchmethod raises an error when relying on a forward declaration

2020-11-11 Thread Guido van Rossum
Guido van Rossum added the comment: FWIW here's a minimal demo: from __future__ import annotations from typing import get_type_hints class C: def func(self, a: "C"): pass print(get_type_hints(func)) In 3.8 this prints {'a': ForwardRef('C')} while in 3.9 it raises

[issue41987] singledispatchmethod raises an error when relying on a forward declaration

2020-11-11 Thread Guido van Rossum
Guido van Rossum added the comment: Keep this issue. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41832] PyType_FromSpec() should accept tp_doc=NULL

2020-11-11 Thread hai shi
Change by hai shi : -- pull_requests: +22140 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/23243 ___ Python tracker ___

[issue42319] The `functools.singledispatchmethod` example in the document cannot run

2020-11-11 Thread hongweipeng
Change by hongweipeng : -- keywords: +patch pull_requests: +22139 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23242 ___ Python tracker ___

[issue42329] typing classes do not have __name__ attributes in 3.7+

2020-11-11 Thread Gregory P. Smith
New submission from Gregory P. Smith : Python 3.7-3.10a1: ``` >>> List.__name__ Traceback (most recent call last): File "", line 1, in File "/usr/lib/python3.8/typing.py", line 760, in __getattr__ raise AttributeError(attr) AttributeError: __name__ >>> type(List) >>> type(List[int])

[issue42330] Add browsh in the webbrowser module

2020-11-11 Thread Saiansh Singh
New submission from Saiansh Singh : The webbrowser module is a module used to create a new tab or window inside browsers. It is currently built into python. It supports multiple terminal-based browsers but yet doesn't support browsh. Here is the documentation for browsh for more information:

[issue42329] typing classes do not have __name__ attributes in 3.7+

2020-11-11 Thread Guido van Rossum
Guido van Rossum added the comment: Between 3.6 and 3.7 they stopped being types. IIRC this enabled optimizations. (Serhiy?) I don't think this is important, but I suppose you have some code that this breaks? The name is passed to the constructor of _SpecialGenericAlias, so I'm fine with