[issue45426] PANDAS INSTALLATION PIP FAILED ON WINDOWS 11

2021-10-10 Thread Jimmy Alexander
Jimmy Alexander added the comment: descarga la version 3.10 se supone es estable pero al momento de instalar PANDAS usando PIP en el CMD de windows 11 FALLA y empieza a buscar otras vesiones de menores de pandas para intentar instalar via pip pero todas fallan! -- type: ->

[issue45426] PANDAS INSTALLATION PIP FAILED ON WINDOWS 11

2021-10-10 Thread Jimmy Alexander
Jimmy Alexander added the comment: C:\Users\ufx>pip install pandas Collecting pandas Using cached pandas-1.3.3.tar.gz (4.7 MB) Installing build dependencies ... error ERROR: Command errored out with exit status 1: command:

[issue45426] PANDAS INSTALLATION PIP FAILED ON WINDOWS 11

2021-10-10 Thread Jimmy Alexander
New submission from Jimmy Alexander : Generating code Finished generating code building 'pandas._libs.parsers' extension C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD

[issue45384] Accept Final as indicating ClassVar for dataclass

2021-10-10 Thread Carl Meyer
Carl Meyer added the comment: Good idea to check with the PEP authors. I don’t think allowing both ClassVar and Final in dataclasses requires general intersection types. Neither ClassVar nor Final are real types; they aren’t part of the type of the value. They are more like special

[issue45384] Accept Final as indicating ClassVar for dataclass

2021-10-10 Thread Gregory Beauregard
Gregory Beauregard added the comment: Thanks for the feedback Carl. Your proposed nesting PEP change is not possible: ClassVar[Final[int]] isn't valid because Final[int] isn't a type. As far as I know this would need type intersections to be possible. I'm going to try sending a one-off

[issue45384] Accept Final as indicating ClassVar for dataclass

2021-10-10 Thread Carl Meyer
Carl Meyer added the comment: > Are Final default_factory fields real fields or pseudo-fields? (i.e. are they > returned by dataclasses.fields()?) They are real fields, returned by `dataclasses.fields()`. In my opinion, the behavior change proposed in this bug is a bad idea all around, and

[issue45116] Performance regression 3.10b1 and later on Windows: Py_DECREF() not inlined in PGO build

2021-10-10 Thread Guido van Rossum
Change by Guido van Rossum : -- type: crash -> performance ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45425] There is an error in the Chinese documentation of contextlib.AbstractContextManager

2021-10-10 Thread Zhong Liu
New submission from Zhong Liu : The documentation of contextlib.AbstractContextManager is incorrectly described as the documentation of contextlib.AbstractAsyncContextManager from 3.6 to 3.10, all is. https://docs.python.org/zh-cn/3.6/library/contextlib.html#contextlib.AbstractContextManager

[issue45356] Calling `help` executes @classmethod @property decorated methods

2021-10-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: It may have been a mistake to allow this kind of decorator chaining. * As Randolf and Alex have noticed, it invalidates assumptions made elsewhere in the standard library and presumably in third-party code as well. * And as Randolf noted in his last

[issue44904] Classmethod properties are erroneously "called" in multiple modules

2021-10-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: Moving this discussion to issue 45356 because some of the discussion would need to be duplicated. -- nosy: +rhettinger resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> Calling `help` executes

[issue45356] Calling `help` executes @classmethod @property decorated methods

2021-10-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm merging issue 44904 into this one because they are related. -- nosy: +rhettinger ___ Python tracker ___

[issue21302] time.sleep (floatsleep()) should use clock_nanosleep() on Linux

2021-10-10 Thread Eryk Sun
Eryk Sun added the comment: > Absolute timeout using can reduce the overhead time of any variable > and object intialization cost before the WaitForMultipleObjects() Again, timer objects store the due time in interrupt time, not system time (i.e. InterruptTime vs SystemTime in the

[issue45116] Performance regression 3.10b1 and later on Windows: Py_DECREF() not inlined in PGO build

2021-10-10 Thread Guido van Rossum
Guido van Rossum added the comment: Someone whose name I don't recognize (MagzoB Mall) just changed the issue type to "crash" without explaining why. That user was created today, and has no triage permissions. Mind if I change it back? It feels like vandalism. --

[issue45401] logging TimedRotatingFileHandler must not rename devices like /dev/null

2021-10-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: With tracemalloc enabled: $ ./python -X tracemalloc -m test -v test_logging -m test_should_not_rollover ... test_should_not_rollover (test.test_logging.TimedRotatingFileHandlerTest) ... /home/serhiy/py/cpython/Lib/unittest/case.py:547: ResourceWarning:

[issue45401] logging TimedRotatingFileHandler must not rename devices like /dev/null

2021-10-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: test_should_not_rollover (test.test_logging.TimedRotatingFileHandlerTest) ... /home/serhiy/py/cpython/Lib/unittest/case.py:547: ResourceWarning: unclosed file <_io.TextIOWrapper name='/dev/null' mode='a' encoding='utf-8'> if method() is not None:

[issue45401] logging TimedRotatingFileHandler must not rename devices like /dev/null

2021-10-10 Thread Vinay Sajip
Vinay Sajip added the comment: Where did you see the warnings? I didn't spot anything in the GitHub Actions logs. -- ___ Python tracker ___

[issue45401] logging TimedRotatingFileHandler must not rename devices like /dev/null

2021-10-10 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45116] Performance regression 3.10b1 and later on Windows: Py_DECREF() not inlined in PGO build

2021-10-10 Thread MagzoB Mall
Change by MagzoB Mall : -- type: performance -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45356] Calling `help` executes @classmethod @property decorated methods

2021-10-10 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45418] types.UnionType is not subscriptable

2021-10-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: types.UnionType corresponds to typing._UnionGenericAlias, not typing.Union. We can make (int | str | T)[dict] returning an instance of types.UnionType instead of an instance of typing._UnionGenericAlias. But it will be a breaking change, because

[issue45401] logging TimedRotatingFileHandler must not rename devices like /dev/null

2021-10-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Seems it introduced a resource warning in tests. -- ___ Python tracker ___ ___

[issue44828] Using tkinter.filedialog crashes on macOS Python 3.9.6

2021-10-10 Thread Marc Culler
Marc Culler added the comment: I was able to fix this problem for Tk on Monterey beta [21A5543b]. The fix has been committed to the tip of the core-8-6-branch in the Tk fossil repository. Here is a synopsis. Tk used to open the file dialog by calling [NSApp runModalForWindow:panel].

[issue45380] help() appears confused about the module of typing.Annotated

2021-10-10 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +gvanrossum, kj ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45380] help() appears confused about the module of typing.Annotated

2021-10-10 Thread Alex Waygood
Alex Waygood added the comment: It actually appears as though there is no documented way to retrieve the metadata from an annotated alias. Is this intentional? The metadata is stored in a `__metadata__` attribute of a `typing._AnnotatedAlias` instance. But the `__metadata__` attribute is

[issue45116] Performance regression 3.10b1 and later on Windows: Py_DECREF() not inlined in PGO build

2021-10-10 Thread Brandt Bucher
Change by Brandt Bucher : -- nosy: +brandtbucher -brandtbucher2 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45416] "loop argument must agree with lock" instantiating asyncio.Condition

2021-10-10 Thread miss-islington
miss-islington added the comment: New changeset 164dddf5f8c9c6b93f32c9f79b4301fc804576e9 by Miss Islington (bot) in branch '3.10': bpo-45416: Fix use of asyncio.Condition() with explicit Lock objects (GH-28850) https://github.com/python/cpython/commit/164dddf5f8c9c6b93f32c9f79b4301fc804576e9

[issue44828] Using tkinter.filedialog crashes on macOS Python 3.9.6

2021-10-10 Thread Marc Culler
Marc Culler added the comment: Unfortunately, I am still seeing this failure in Monterey beta 9. However, we are no longer alone. Here is a report of the same issue in Android Studio:

[issue45116] Performance regression 3.10b1 and later on Windows: Py_DECREF() not inlined in PGO build

2021-10-10 Thread Brandt Bucher
Change by Brandt Bucher : -- nosy: +brandtbucher2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45416] "loop argument must agree with lock" instantiating asyncio.Condition

2021-10-10 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 7.0 -> 8.0 pull_requests: +27163 pull_request: https://github.com/python/cpython/pull/28856 ___ Python tracker

[issue45416] "loop argument must agree with lock" instantiating asyncio.Condition

2021-10-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 1a7892414e654aa5c99efa31db767baba7f4a424 by Joongi Kim in branch 'main': bpo-45416: Fix use of asyncio.Condition() with explicit Lock objects (GH-28850) https://github.com/python/cpython/commit/1a7892414e654aa5c99efa31db767baba7f4a424

[issue45417] Enum creation non-linear in the number of values

2021-10-10 Thread Ken Jin
Change by Ken Jin : -- nosy: +barry, eli.bendersky, ethan.furman versions: +Python 3.9 -Python 3.7 ___ Python tracker ___ ___

[issue45424] ssl.SSLError: unknown error (_ssl.c:4034)

2021-10-10 Thread Christian Heimes
Christian Heimes added the comment: The error means that something went wrong while loading certificates, but OpenSSL didn't give us more information about what went wrong. Can you reproduce the issue with more recent Python version? 3.7 and 3.8 are in security fix-only mode and no longer

[issue45418] types.UnionType is not subscriptable

2021-10-10 Thread Guido van Rossum
Guido van Rossum added the comment: Oh, I see. No, they must make another special case, like for Annotated.-- --Guido (mobile) -- ___ Python tracker ___

[issue45418] types.UnionType is not subscriptable

2021-10-10 Thread Ken Jin
Ken Jin added the comment: @Guido, I hope I didn't misunderstand you, but to clarify, what OP is asking is an alternative way to construct types.UnionType objects and write: types.UnionType[int, str] like how we used to write before 3.10: typing.Union[int, str] I don't know why we need

[issue45424] ssl.SSLError: unknown error (_ssl.c:4034)

2021-10-10 Thread Rahul Lakshmanan
New submission from Rahul Lakshmanan : I face this error when trying to use a package called streamlit. Streamlit calls Tornado which calls SSL. File "C:\Users\\.conda\envs\stockprediction\lib\ssl.py", line 589, in create_default_context context.load_default_certs(purpose) File

[issue45401] logging TimedRotatingFileHandler must not rename devices like /dev/null

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

[issue45418] types.UnionType is not subscriptable

2021-10-10 Thread Guido van Rossum
Guido van Rossum added the comment: > If you meant to say: why is typing.Union[] allowed, but not types.UnionType[]? That is intentional. types.UnionType is only meant for builtin types. Once you union with *any* type from typing, it will convert to a typing.Union. But why? Just so

[issue45249] Update doctect SyntaxErrors for location range

2021-10-10 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +27162 pull_request: https://github.com/python/cpython/pull/28855 ___ Python tracker ___

[issue45401] logging TimedRotatingFileHandler must not rename devices like /dev/null

2021-10-10 Thread miss-islington
miss-islington added the comment: New changeset 62a667784ba7b84611ebd50fa8a1a464cde32235 by Vinay Sajip in branch 'main': bpo-45401: Change shouldRollover() methods to only rollover regular f… (GH-28822) https://github.com/python/cpython/commit/62a667784ba7b84611ebd50fa8a1a464cde32235

[issue45249] Update doctect SyntaxErrors for location range

2021-10-10 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +27161 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/28854 ___ Python tracker ___

[issue45249] Update doctect SyntaxErrors for location range

2021-10-10 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44036] asyncio SSL server can be DOSed, event loop gets blocked: busy loops and uses 100% CPU

2021-10-10 Thread Christian Heimes
Change by Christian Heimes : -- assignee: christian.heimes -> components: -SSL ___ Python tracker ___ ___ Python-bugs-list

[issue45417] Enum creation non-linear in the number of values

2021-10-10 Thread mattip
mattip added the comment: Over at PyPy arigo authored and we applied this fix to the as-yet unreleased pypy3.8. Note that it cannot be applied directly to CPython as sets are not ordered. Does the fix break anything? Tests in Lib/test/test_enum.py passed after applying it. --

[issue45423] SSL SNI varies when host contains port number

2021-10-10 Thread Christian Heimes
Christian Heimes added the comment: I have tested your assumption with wireshark. It's not the TLS SNI extension. In both cases ssl module sends SNI "ci.hexf.me". The issue is likely caused by HTTP Host header. The host header contains the port. I'm attaching the capture and keylog file.

[issue45423] SSL SNI varies when host contains port number

2021-10-10 Thread Christian Heimes
Change by Christian Heimes : Added file: https://bugs.python.org/file50340/keylog ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45203] Improve specialization stats for LOAD_METHOD and BINARY_SUBSCR

2021-10-10 Thread Ken Jin
Ken Jin added the comment: I'm closing this as there doesn't seem to be anything left to do. Please do reopen this issue if you feel that isn't the case. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python

[issue45249] Update doctect SyntaxErrors for location range

2021-10-10 Thread daniel hahler
Change by daniel hahler : -- versions: +Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45419] DegenerateFiles.Path mismatch to Traversable interface

2021-10-10 Thread Jason R. Coombs
Change by Jason R. Coombs : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: behavior -> ___ Python tracker ___

[issue45419] DegenerateFiles.Path mismatch to Traversable interface

2021-10-10 Thread miss-islington
miss-islington added the comment: New changeset 14a483aa400dda8346ac474ce22e2ba8d8126dff by Jason R. Coombs in branch '3.10': [3.10] bpo-45419: Fix interfaces on DegenerateFiles.Path (GH-28844) https://github.com/python/cpython/commit/14a483aa400dda8346ac474ce22e2ba8d8126dff --

[issue45249] Update doctect SyntaxErrors for location range

2021-10-10 Thread daniel hahler
daniel hahler added the comment: I've noticed a regression/change with the code change for this issue. When not catching the exception from `compile("invalid(", "", "single")` it has a caret below the opening parenthesis: ``` Traceback (most recent call last): File

[issue45116] Performance regression 3.10b1 and later on Windows: Py_DECREF() not inlined in PGO build

2021-10-10 Thread neonene
neonene added the comment: 3.10.0 official binary is as slow as rc2. Many files are not updated in the source archive or b494f5935c92951e75597bfe1c8b1f3112fec270, so I'm not sure if the delay is intentional or not. We have no choice except waiting for 3.10.1. --

[issue45423] SSL SNI varies when host contains port number

2021-10-10 Thread Thomas Hobson
New submission from Thomas Hobson : Not entirely sure if this is intended. When using urllib.request.urlopen, with a hostname and a varying port the SNI information sent differs. To my undersnding, the SNI info shouldn't include the port and should only include the actual host. Attached is

[issue45417] Enum creation non-linear in the number of values

2021-10-10 Thread Armin Rigo
Armin Rigo added the comment: The timing is clearly quadratic: number of attributes time 1500 0.24s 3000 0.94s 6000 3.74s 1200015.57s Pressing Ctrl-C in the middle of the execution of the largest examples

[issue27879] add os.syncfs()

2021-10-10 Thread Nir Soffer
Nir Soffer added the comment: Updating python version, this is not relevant to 3.6 now. On linux users can use "sync --file-system /path" but it would be nice if we have something that works on multiple platforms. -- nosy: +nirs versions: +Python 3.11 -Python 3.6

[issue21302] time.sleep (floatsleep()) should use clock_nanosleep() on Linux

2021-10-10 Thread Benjamin Szőke
Benjamin Szőke added the comment: In other words, using absolute timeout can eliminate the systematic error of desired sleep time. -- ___ Python tracker ___

[issue45356] Calling `help` executes @classmethod @property decorated methods

2021-10-10 Thread Randolf Scholz
Randolf Scholz added the comment: If fact, in the current state it seem that it is impossible to implement real class-properties, for a simple reason: descriptor.__set__ is only called when setting the attribute of an instance, but not of a class!! ```python import math class

[issue21302] time.sleep (floatsleep()) should use clock_nanosleep() on Linux

2021-10-10 Thread Benjamin Szőke
Benjamin Szőke added the comment: It is not true that there are no benefits. Absolute timeout using can reduce the overhead time of any variable and object intialization cost before the WaitForMultipleObjects() which will perform the real sleeping via blocking wait in pysleep().

[issue45419] DegenerateFiles.Path mismatch to Traversable interface

2021-10-10 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- versions: -Python 3.11 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45419] DegenerateFiles.Path mismatch to Traversable interface

2021-10-10 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +Library (Lib) nosy: +brett.cannon, eric.snow, ncoghlan type: -> behavior versions: +Python 3.11 ___ Python tracker ___

[issue45422] Data 0 cannot be plotted by matplotlib.pyplot just because some data is less than 0. (ContourSet._get_lowers_and_uppers)

2021-10-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: matplotlib is not a part of the standard Python library. Use the corresponding bug tracker to report issues with matplotlib. -- nosy: +serhiy.storchaka resolution: -> third party stage: -> resolved status: open -> closed

[issue45422] Data 0 cannot be plotted by matplotlib.pyplot just because some data is less than 0. (ContourSet._get_lowers_and_uppers)

2021-10-10 Thread Jianke SHI
New submission from Jianke SHI : Data 0 cannot be plotted by matplotlib.pyplot(3.3.4) just because some data is less than 0 (python 3.8.8). The following is a sample program to confirm the problem. the left-bottom area in the right figure is not colored and remains transparent just because

[issue45356] Calling `help` executes @classmethod @property decorated methods

2021-10-10 Thread Randolf Scholz
Randolf Scholz added the comment: @Terry I think the problem boils down to the fact that `@classmethod @property` decorated methods end up not being real properties. Calling `MyBaseClass.__dict__` reveals: ```python mappingproxy({'__module__': '__main__',

[issue44036] asyncio SSL server can be DOSed, event loop gets blocked: busy loops and uses 100% CPU

2021-10-10 Thread Neil Booth
Change by Neil Booth : -- nosy: +kyuupichan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45416] "loop argument must agree with lock" instantiating asyncio.Condition

2021-10-10 Thread Joongi Kim
Change by Joongi Kim : -- keywords: +patch nosy: +Joongi Kim nosy_count: 6.0 -> 7.0 pull_requests: +27160 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28850 ___ Python tracker

[issue29410] Moving to SipHash-1-3

2021-10-10 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue29410] Moving to SipHash-1-3

2021-10-10 Thread Inada Naoki
Inada Naoki added the comment: New changeset ad970e8623523a8656e8c1ff4e1dff3423498a5a by Inada Naoki in branch 'main': bpo-29410: Change the default hash algorithm to SipHash13. (GH-28752) https://github.com/python/cpython/commit/ad970e8623523a8656e8c1ff4e1dff3423498a5a --

[issue45416] "loop argument must agree with lock" instantiating asyncio.Condition

2021-10-10 Thread Dong-hee Na
Change by Dong-hee Na : -- versions: +Python 3.11 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45418] types.UnionType is not subscriptable

2021-10-10 Thread Ken Jin
Ken Jin added the comment: No worries! > So I'll have to add some `if` in my code. Yeah, we had to do that in the typing module too. Hope you manage to fix your library without much trouble. -- ___ Python tracker

[issue45418] types.UnionType is not subscriptable

2021-10-10 Thread Joseph Perez
Joseph Perez added the comment: Indeed, sorry, my example was bad. My library was raising at several place, and I've extrapolated about generic substitution. I've indeed other substitutions (without `TypeVar`), and because they were failing, I've assumed that all of my substitutions were

[issue45421] Remove dead code from html.parser

2021-10-10 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 1.0 -> 2.0 pull_requests: +27159 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28847 ___ Python tracker

[issue23262] webbrowser module broken with Firefox 36+

2021-10-10 Thread Syaifulnizam Shamsudin
Syaifulnizam Shamsudin added the comment: Processo webbrowser.3.5-2.patch -- nosy: +Syaifulnizam ___ Python tracker ___ ___

[issue45418] types.UnionType is not subscriptable

2021-10-10 Thread Ken Jin
Ken Jin added the comment: I don't understand your example, T | None doesn't return a types.Union object, it returns typing.Union/typing.Optional. (I'm assuming this T is the TypeVar in typing). Which *is* subscriptable. >>> (T | None)[int].__origin__ typing.Union If you meant to say: why