[issue45772] socket.socket should be a class instead of a function

2021-11-12 Thread miss-islington
miss-islington added the comment: New changeset b952f60213c60f89a50e4538783a18ced64ca91f by Miss Islington (bot) in branch '3.9': [3.9] bpo-45772: socket.socket should be a class instead of a function (GH-23960) (GH-29543)

Re: Getting Directory of Command Line Entry Point For Packages

2021-11-12 Thread Abdur-Rahmaan Janhangeer
Greetings, Well since sometimes i have this: https://github.com/shopyo/shopyo Old versions worked as we are using it for FlaskCon , even newer versions until sometimes ago. shopyo has a copy of the project which is a flask app in site-packages. upon using

[issue45772] socket.socket should be a class instead of a function

2021-11-12 Thread miss-islington
miss-islington added the comment: New changeset 3f15792d60011639d9b170d8a76c6db7f6e83665 by Miss Islington (bot) in branch '3.10': [3.10] bpo-45772: socket.socket should be a class instead of a function (GH-23960) (GH-29542)

[issue45772] socket.socket should be a class instead of a function

2021-11-12 Thread Oleg Iarygin
Change by Oleg Iarygin : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45772] socket.socket should be a class instead of a function

2021-11-12 Thread miss-islington
Change by miss-islington : -- keywords: +patch nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +27790 pull_request: https://github.com/python/cpython/pull/29542 ___ Python tracker

[issue45772] socket.socket should be a class instead of a function

2021-11-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +27791 pull_request: https://github.com/python/cpython/pull/29543 ___ Python tracker ___

[issue45772] socket.socket should be a class instead of a function

2021-11-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +27792 pull_request: https://github.com/python/cpython/pull/29544 ___ Python tracker ___

[issue45772] socket.socket should be a class instead of a function

2021-11-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 4c792f39e688b11c7c19e411ed4f76a7baa44638 by Hong Xu in branch 'main': bpo-45772: socket.socket should be a class instead of a function (GH-23960) https://github.com/python/cpython/commit/4c792f39e688b11c7c19e411ed4f76a7baa44638 --

[issue45755] Specialized generic class does not return class attributes in dir

2021-11-12 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This seems to be an issue with typing than mock since mock just uses the output from dir() . I am not able to bisect the relevant change but below is the output of dir(Foo[int]) in Python 3.6 and master. Python 3.6.9 ['__abstractmethods__',

[issue45292] Implement PEP 654: Exception Groups

2021-11-12 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The tests emit some deprecation warnings : PYTHONWARNINGS=always ./python -Wall -m test test_exception_group 0:00:00 load avg: 0.39 Run tests sequentially 0:00:00 load avg: 0.39 [1/1] test_exception_group

Looking to Partner with Python Developer with Apple M1 Chip

2021-11-12 Thread Sarkis Dallakian
Greetings, I'm looking for someone who has the latest Apple with M1 Chip and who can partner with me to build a software I wrote called PyRx. This is based on wxPython and can provide you with a steady source of income. Please email me if you are interested to discuss the details. Thank you,

[issue45788] Doc sys.prefix lib & include directories on Windows and Mac

2021-11-12 Thread Ned Deily
Ned Deily added the comment: > Would osx_framework_user scheme for macOS be a satisfactory entry? Yes, it should be there. -- ___ Python tracker ___

[issue44995] "Hide the prompts and output" works abnormal

2021-11-12 Thread Andrei Kulakov
Change by Andrei Kulakov : -- keywords: +newcomer friendly ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45788] Doc sys.prefix lib & include directories on Windows and Mac

2021-11-12 Thread Catherine Holloway
Catherine Holloway added the comment: Hey thanks Ned, sysconfig was exactly what I was looking for when I was reading the sys documentation. -- ___ Python tracker ___

[issue45775] Implementation of colorsys.rgb_to_yuv and vice versa

2021-11-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: On pydev, Guido said "There was talk of deprecating colorsys, but PEP 594 now lists it under "modules to keep". Victor, do you know enough to review? -- ___ Python tracker

[issue44887] test_input_tty hangs when run multiple times in the same process on macOS 10.15

2021-11-12 Thread Andrei Kulakov
Andrei Kulakov added the comment: I've looked into this and the hang happens on this line: https://github.com/python/cpython/blob/de3db1448b1b983eeb9f4498d07e3d2f1fb6d29d/Lib/test/test_builtin.py#L2030 So the issue is that on the second run, there's nothing to read on that fd. I've tried

[issue45788] Doc sys.prefix lib & include directories on Windows and Mac

2021-11-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ned, I like your idea. In particular, link to sysconfig.get_paths for how prefix is used on a particular machine to define installation paths. Sidenote: https://docs.python.org/3/library/sysconfig.html#installation-paths says "Python currently supports

[issue45764] Parse error improvement forgetting ( after def

2021-11-12 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Normally we don't backport new errors to old versions so we can close this. Thanks for the ping! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

Re: Getting Directory of Command Line Entry Point For Packages

2021-11-12 Thread Greg Ewing
On 13/11/21 10:51 am, Abdur-Rahmaan Janhangeer wrote: ow do i get the path from which miaw the command is called from? What exactly do you mean by "called from"? If you want the user's working directory, os.getcwd() will give you that. If you want something else, you'll have to give us more

[issue45742] python -h can't find -R option

2021-11-12 Thread Eryk Sun
Eryk Sun added the comment: > Which doc is wrong? Currently -R overrides a non-zero seed value in PYTHONHASHSEED. The behavior changed in 3.7. Either the docs or the behavior need to be fixed. To repeat my previous example (this time in Windows): C:\>set PYTHONHASHSEED=37 C:\>py

[issue45789] Python execution broken after update via Windows Store

2021-11-12 Thread Eryk Sun
Eryk Sun added the comment: > Also all those files are 0 bytes - even the working ones. The files should have no data, just appexec links. It's just an empty file if there's no link set. > Since I cannot even run the actual executable there seems to be > an issue with the executables on

[issue45789] Python execution broken after update via Windows Store

2021-11-12 Thread Steve Dower
Steve Dower added the comment: You're right. You probably need to uninstall and reinstall for the subdirectories of WindowsApps. -- ___ Python tracker ___

[issue45797] AMD64 Arch Linux Asan Debug buildbot sometimes hangs before tests complete

2021-11-12 Thread STINNER Victor
New submission from STINNER Victor : Example: AMD64 Arch Linux Asan Debug 3.10: https://buildbot.python.org/all/#/builders/621/builds/351 (...) 1:13:40 load avg: 1.85 [420/421/1] test_reprlib passed 1:13:41 load avg: 1.85 [421/421/1] test_funcattrs passed command timed out: 1200 seconds

[issue45788] Doc sys.prefix lib & include directories on Windows and Mac

2021-11-12 Thread STINNER Victor
STINNER Victor added the comment: > Victor, with recent file movement, is "while the platform independent header > files (all except pyconfig.h) are stored in prefix/include" still true? Are you talking about Include/cpython/ and Include/internal/ subdirectories? > Should 'include' be

[issue45742] python -h can't find -R option

2021-11-12 Thread STINNER Victor
STINNER Victor added the comment: > I input python -h on the command line, and I can't find any -R option. If you want to document it, the "usage" is in Python/initconfig.c. See also the -R option. My notes on adding a command line option:

[issue45788] Doc sys.prefix lib & include directories on Windows and Mac

2021-11-12 Thread Ned Deily
Ned Deily added the comment: Which installations paths are used varies on other factors besides platform. Rather than duplicate information here, I suggest simplifying the sys.prefix doc here by removing the details about installation paths and instead refer to the Installation Paths

[issue45775] Implementation of colorsys.rgb_to_yuv and vice versa

2021-11-12 Thread STINNER Victor
STINNER Victor added the comment: > A link to an authoritative reference with the formulas would be necessary to > merge this. The PR says: "ATSC BT.709 standard constants". For exmaple, I found: https://en.wikipedia.org/wiki/Rec._709#Luma_coefficients "When encoding Y’CBCR video, BT.709

[issue45781] Deleting __debug__ should be an SyntaxError

2021-11-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Verified in IDLE also. Thanks for doing the test I should have done. -- resolution: -> out of date stage: test needed -> resolved status: open -> closed ___ Python tracker

[issue45781] Deleting __debug__ should be an SyntaxError

2021-11-12 Thread Andre Roberge
Andre Roberge added the comment: What version are you using? As far as I can test, it has become a syntax error since 3.10. Here is the result with the latest 3.11 alpha > python Python 3.11.0a2 (tags/v3.11.0a2:e2b4e4b, Nov 5 2021, 20:00:05) [MSC v.1929 64 bit (AMD64)] on win32 Type

[issue45788] Doc sys.prefix lib & include directories on Windows and Mac

2021-11-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: On Windows, I believe the correct sentence would be "On Windows, they are in prefix/Lib and prefix/include". Ned, how to complete "On macOS, they are in ?." Victor, with recent file movement, is "while the platform independent header files (all except

Re: Unable to compile my C Extension on Windows: unresolved external link errors

2021-11-12 Thread Marco Sulla
On Fri, 12 Nov 2021 at 21:09, Chris Angelico wrote: > > On Sat, Nov 13, 2021 at 7:01 AM Marco Sulla > wrote: > > On Fri, 12 Nov 2021 at 17:38, Chris Angelico wrote: > > > Are you sure that you really need Py_BUILD_CORE? > > > > Yes, because I need the internal functions of `dict`. So I need to

[issue45781] Deleting __debug__ should be an SyntaxError

2021-11-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: For comparison: True = 0 SyntaxError: cannot assign to True del True SyntaxError: cannot delete True It almost seems like __debug__ is a hidden keyword value, but with a startup-dependent value -- components: +Interpreter Core nosy: +pablogsal,

[issue45775] Implementation of colorsys.rgb_to_yuv and vice versa

2021-11-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: A link to an authoritative reference with the formulas would be necessary to merge this. I inquired of pydev list whether improvement is allowed. -- nosy: +terry.reedy ___ Python tracker

[issue45772] socket.socket should be a class instead of a function

2021-11-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Filter, map, and zip are documented as functions to allow other interpreters to implement them as such, with generator functions. That does not apply here, but maybe there is another reason for socket being called a 'function. Antoine, git blame credits

[issue45791] __instancecheck__ being checked on type(cls) instead of cls

2021-11-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: All typing related tests are fixed by updating types.GenericAlias.__getattribute__. So the only thing is left to make all tests passed is removing some special methods tests. The lookup of __instancecheck__ and __subclasscheck__ was changed by Benjamin

Re: Getting Directory of Command Line Entry Point For Packages

2021-11-12 Thread dn via Python-list
On 13/11/2021 10.51, Abdur-Rahmaan Janhangeer wrote: > Greetings list, > > Let's say i created a package named miaw > > miaw also has a cli command called miaw > > miaw prints files and folders in the directory it is called in > > except that when miaw is used, it prints the files and folders

Re: Getting Directory of Command Line Entry Point For Packages

2021-11-12 Thread David L Neil via Python-list
On 13/11/2021 10.51, Abdur-Rahmaan Janhangeer wrote: > Greetings list, > > Let's say i created a package named miaw > > miaw also has a cli command called miaw > > miaw prints files and folders in the directory it is called in > > except that when miaw is used, it prints the files and folders

[issue45764] Parse error improvement forgetting ( after def

2021-11-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Pablo, did you intend to backport to 3.10 or should this be closed? -- nosy: +pablogsal, terry.reedy type: -> enhancement versions: +Python 3.11 ___ Python tracker

[issue45762] Missing `list` symbols in the object inventory

2021-11-12 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +eric.araujo, ezio.melotti, mdk, willingc versions: -Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___

[issue45796] Using tab to cycle through tkinter widgets breaks foreground styling

2021-11-12 Thread Chris Eykamp
New submission from Chris Eykamp : Attached is a slightly modifed example of the code sample in Bryan Oakley's response to: https://stackoverflow.com/questions/30337351/how-can-i-ensure-my-ttk-entrys-invalid-state-isnt-cleared-when-it-loses-focus I have modified it by changing the style.map

[issue45796] Using tab to cycle through tkinter widgets breaks foreground styling

2021-11-12 Thread Chris Eykamp
Chris Eykamp added the comment: I'll add that when the red text incorrectly turns black, on my display, I can see a very subtle red halo, as if the text is being printed first as red, then as black in a second pass. -- ___ Python tracker

Getting Directory of Command Line Entry Point For Packages

2021-11-12 Thread Abdur-Rahmaan Janhangeer
Greetings list, Let's say i created a package named miaw miaw also has a cli command called miaw miaw prints files and folders in the directory it is called in except that when miaw is used, it prints the files and folders in site-packages This is an analogy for a package i have. Well

[issue45761] recursive ProcessPoolExecutor invoke unable to return result

2021-11-12 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +bquinlan, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45789] Python execution broken after update via Windows Store

2021-11-12 Thread firewave
firewave added the comment: That didn't work. The link is wrong on the disk and that setting just controls the usage of it not the creation. -- ___ Python tracker ___

[issue45752] copy module doc wrongly says it doesn't copy arrays

2021-11-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Should we just remove ' array,' from things that cannot be copied, or does this need more discussion? -- keywords: +easy, newcomer friendly nosy: +lukasz.langa, terry.reedy versions: -Python 3.6, Python 3.7, Python 3.8

[issue45742] python -h can't find -R option

2021-11-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Victor, A sentence about hash randomization you wrote for #32329 in PR-4873 is not currently correct. Change code or doc? -- nosy: +terry.reedy, vstinner ___ Python tracker

[issue45711] Simplify the interpreter's (type, val, tb) exception representation

2021-11-12 Thread Irit Katriel
Irit Katriel added the comment: New changeset de3db1448b1b983eeb9f4498d07e3d2f1fb6d29d by Irit Katriel in branch 'main': bpo-45711: assert that the type of exc_info is redundant (GH-29518) https://github.com/python/cpython/commit/de3db1448b1b983eeb9f4498d07e3d2f1fb6d29d --

[issue45732] Make python.org Windows and macOS installers use Tk 8.6.12

2021-11-12 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: Update python.org Windows and macOS installers to use Tk 8.6.12 -> Make python.org Windows and macOS installers use Tk 8.6.12 ___ Python tracker

[issue45791] __instancecheck__ being checked on type(cls) instead of cls

2021-11-12 Thread Guido van Rossum
Guido van Rossum added the comment: I believe that the PEP 3119 example doesn't work (I've confirmed something simpler) but I have a feeling that the uses of __instancecheck__ in typing.py are actually okay. For example, isinstance(42, typing.Any) correctly calls _SpecialForm.__instancecheck__

Re: Unable to compile my C Extension on Windows: unresolved external link errors

2021-11-12 Thread Chris Angelico
On Sat, Nov 13, 2021 at 7:01 AM Marco Sulla wrote: > On Fri, 12 Nov 2021 at 17:38, Chris Angelico wrote: > > Are you sure that you really need Py_BUILD_CORE? > > Yes, because I need the internal functions of `dict`. So I need to > compile also dictobject.c and include it. So I need that flag. >

Re: Unable to compile my C Extension on Windows: unresolved external link errors

2021-11-12 Thread Marco Sulla
Chris? Maybe I'm dreaming X-D On Fri, 12 Nov 2021 at 17:38, Chris Angelico wrote: > Are you sure that you really need Py_BUILD_CORE? Yes, because I need the internal functions of `dict`. So I need to compile also dictobject.c and include it. So I need that flag. This is the code:

[issue45738] 3.11 exec raises SystemError instead of SyntaxError on char after line continuation

2021-11-12 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: > I will be able to take a look later in the weekend Please take some time for yourself, I added you as you were the original author of the patch to make you aware. I believe most projects can workaround that for now. --

[issue45738] 3.11 exec raises SystemError instead of SyntaxError on char after line continuation

2021-11-12 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +BTaskaya, lys.nikolaou ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45738] 3.11 exec raises SystemError instead of SyntaxError on char after line continuation

2021-11-12 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I will be able to take a look later in the weekend, so if someone is able to give it a go before, that would be great. -- ___ Python tracker

[issue37824] IDLE: Handle Shell input SyntaxWarning & DeprecationWarning

2021-11-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Might want to special case running certain console commands in Shell, such as 'pip install'. https://stackoverflow.com/questions/69936921/packages-not-installing-in-idle-shell SyntaxError: invalid syntax. Perhaps you forgot a comma? --

[issue45738] 3.11 exec raises SystemError instead of SyntaxError on char after line continuation

2021-11-12 Thread Andre Roberge
Change by Andre Roberge : -- nosy: +aroberge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45235] argparse does not preserve namespace with subparser defaults

2021-11-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset e4c5a5eabadd1dcd0b522ffbd70157cd95506ad1 by Miss Islington (bot) in branch '3.10': bpo-45235: Revert an argparse bugfix that caused a regression (GH-29525) (GH-29530)

[issue45235] argparse does not preserve namespace with subparser defaults

2021-11-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: I've restored the prior state of affairs. Leaving this issue open because it still isn't clear what should be guaranteed or whether further improvements need to be made. -- priority: high -> normal ___ Python

[issue45235] argparse does not preserve namespace with subparser defaults

2021-11-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 587ff7f50bcbfd8346c6d5db459a1628a350c04d by Miss Islington (bot) in branch '3.9': bpo-45235: Revert an argparse bugfix that caused a regression (GH-29525) (GH-29531)

[issue45791] __instancecheck__ being checked on type(cls) instead of cls

2021-11-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: Here's an example in PEP 3119 that appears to work but actually bypasses the method: from abc import ABCMeta, abstractmethod class Sized(metaclass=ABCMeta): @abstractmethod def __hash__(self): return 0 @classmethod def

[issue45791] __instancecheck__ being checked on type(cls) instead of cls

2021-11-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Most of failed tests are related to typing, but there is a purposed test for __instancecheck__ and __subclasscheck__ bypassing __getattr__ and __getattribute__ (test.test_descr.ClassPropertiesAndMethods.test_special_method_lookup). --

[issue45758] Crash on Py_DecRef'ing builtin object from previous run

2021-11-12 Thread Victor Milovanov
Victor Milovanov added the comment: I think documentation should clarify that. Right now this line in the docs got me thinking that anything with an external strong reference won't be deallocated: "Memory tied up in circular references between objects is not freed." -- status:

[issue45791] __instancecheck__ being checked on type(cls) instead of cls

2021-11-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: I did a scan of the standard library and code in the wild. It looks like almost all uses are in metaclasses (which makes sense because that matches the AppendableSequence example in PEP 3119). However, the typing module does have some cases of

[issue45791] __instancecheck__ being checked on type(cls) instead of cls

2021-11-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Failed tests: == FAIL: test_isinstance_with_or_union (test.test_isinstance.TestIsInstanceIsSubclass) -- Traceback (most

[issue45789] Python execution broken after update via Windows Store

2021-11-12 Thread Steve Dower
Steve Dower added the comment: > Could it be possible that it might not be able to replace that link when it > is currently in use? That (or something like that) would be my suspicion. It's happened before, though as Eryk Sun says the link itself does not remain in use very long at all. I

[issue45791] __instancecheck__ being checked on type(cls) instead of cls

2021-11-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +27789 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29540 ___ Python tracker

[issue45738] 3.11 exec raises SystemError instead of SyntaxError on char after line continuation

2021-11-12 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: Note that with the following example, exec and CommandCompiler return a different error: from codeop import CommandCompiler # identical errors #exec('1,\\#\n2') SystemError #CommandCompiler()('1,\\#\n2', symbol='exec') SystemError

[issue45738] 3.11 exec raises SystemError instead of SyntaxError on char after line continuation

2021-11-12 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: Yep, this also break IPython command completions when users press tab in some places in multiline code. 88f4ec88e282bf861f0af2d237e9fe28fbc8deac is the first offending commit for me in the 3.9 branch: [3.9] bpo-45494: Fix parser crash when

[issue45738] 3.11 exec raises SystemError instead of SyntaxError on char after line continuation

2021-11-12 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45791] __instancecheck__ being checked on type(cls) instead of cls

2021-11-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, I discovered the issue when experimenting with ways to use the class pattern in structural pattern matching. --- Code that should work but doesn't --- class Warm: def __instancecheck__(cls, inst): return inst in {'red',

Re: Unable to compile my C Extension on Windows: unresolved external link errors

2021-11-12 Thread Chris Angelico
On Sat, Nov 13, 2021 at 3:28 AM Marco Sulla wrote: > > On Fri, 12 Nov 2021 at 15:55, Gisle Vanem wrote: > > Marco Sulla wrote: > > > Error LNK2001: unresolved external symbol PyErr_SetObject > > > > > > and so on. > > > > > > I post the part of my setup.py about the C Extension: > > > > > >

Re: Unable to compile my C Extension on Windows: unresolved external link errors

2021-11-12 Thread Marco Sulla
On Fri, 12 Nov 2021 at 15:55, Gisle Vanem wrote: > Marco Sulla wrote: > > Error LNK2001: unresolved external symbol PyErr_SetObject > > > > and so on. > > > > I post the part of my setup.py about the C Extension: > > > > extra_compile_args = ["-DPY_SSIZE_T_CLEAN", "-DPy_BUILD_CORE"] > > Shouldn't

[issue45791] __instancecheck__ being checked on type(cls) instead of cls

2021-11-12 Thread Raymond Hettinger
Change by Raymond Hettinger : -- title: __instancecheck__ being checked of type(cls) instead of cls -> __instancecheck__ being checked on type(cls) instead of cls ___ Python tracker

[issue45789] Python execution broken after update via Windows Store

2021-11-12 Thread firewave
firewave added the comment: The "python3.9.exe" link is that one also points to the earlier version. All other links are fine. Also all those files are 0 bytes - even the working ones. Since I cannot even run the actual executable there seems to be an issue with the executables on top of

[issue45795] urllib http client vulnerable to DOS attack

2021-11-12 Thread Muhammad Farhan
New submission from Muhammad Farhan : Hi, During my recent tests I have discovered that the urllib http client (urllib.request.urlopen()) is vulnerable to DOS attack using a simple but effective trick. I am attaching a file named server.py download it and run it using latest version of

[issue45791] __instancecheck__ being checked of type(cls) instead of cls

2021-11-12 Thread Guido van Rossum
Guido van Rossum added the comment: I'm torn. It's been like this for a very long time and Serhiy's reasoning makes some sense. OTOH it *does* make more sense as it's written in the PEP. The basic idea is "the class has control over what is considered an instance of it" and it would be

[issue45745] ./python -m test --help output for refleaks seems wrong

2021-11-12 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45745] ./python -m test --help output for refleaks seems wrong

2021-11-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9d3271438431c37c29c359f5b73e8094b5f82912 by Victor Stinner in branch 'main': bpo-45745: Remove regrtest --findleaks options (GH-29514) https://github.com/python/cpython/commit/9d3271438431c37c29c359f5b73e8094b5f82912 --

[issue45789] Python execution broken after update via Windows Store

2021-11-12 Thread Eryk Sun
Eryk Sun added the comment: > The python3.9.exe file in the WindowsApps folder looks like > a real executable and not a link. As requested, and as shown in the output, you tested the file in Python 3.9's subdirectory of "WindowsApps", not in "WindowsApps" itself. If the size in the `dir`

Re: Unable to compile my C Extension on Windows: unresolved external link errors

2021-11-12 Thread Gisle Vanem
Marco Sulla wrote: Error LNK2001: unresolved external symbol PyErr_SetObject and so on. I post the part of my setup.py about the C Extension: extra_compile_args = ["-DPY_SSIZE_T_CLEAN", "-DPy_BUILD_CORE"] Shouldn't this be "-DPy_BUILD_CORE_MODULE"? -- --gv --

Unable to compile my C Extension on Windows: unresolved external link errors

2021-11-12 Thread Marco Sulla
I have no problem compiling my extension under Linux and MacOS. Under Windows, I get a lot of Error LNK2001: unresolved external symbol PyErr_SetObject and so on. I post the part of my setup.py about the C Extension: extra_compile_args = ["-DPY_SSIZE_T_CLEAN", "-DPy_BUILD_CORE"] undef_macros =

[issue45789] Python execution broken after update via Windows Store

2021-11-12 Thread firewave
firewave added the comment: The python3.9.exe file in the WindowsApps folder looks like a real executable and not a link. The script also backs that python3 read_appexec.py "c:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2288.0_x64__qbz5n2kfra8p0\python3.9.exe"

[issue28533] Remove asyncore, asynchat and smtpd modules

2021-11-12 Thread STINNER Victor
STINNER Victor added the comment: See also the (dfaft) PEP 594: "Removing dead batteries from the standard library" https://www.python.org/dev/peps/pep-0594/ -- ___ Python tracker

[issue28533] Remove asyncore, asynchat and smtpd modules

2021-11-12 Thread STINNER Victor
STINNER Victor added the comment: For example, what *if* aiosmtpd deprecated a function -- ___ Python tracker ___ ___

[issue28533] Remove asyncore, asynchat and smtpd modules

2021-11-12 Thread STINNER Victor
STINNER Victor added the comment: > One concern I have is when users follow internet examples and look out for > these modules or examples. Well, we cannot modify printed books :-) > What is the best way to show them the modern usage? Buy new books? :-) > Should Python docs show some

[issue31842] pathlib: "Incorrect function" during resolve()

2021-11-12 Thread Erik Aronesty
Erik Aronesty added the comment: bug is worse than that: perfectly valid redirected paths (winfsp ram drives for example) now break in python 3.9.6 (maybe fixed in later version?) >>> import pathlib >>> p=pathlib.Path('C:\\Users\\erik\\Atakama') >>> p.resolve() Traceback (most recent call

[issue28533] Remove asyncore, asynchat and smtpd modules

2021-11-12 Thread STINNER Victor
STINNER Victor added the comment: Senthil: "+1 to these modules removal" Would you mind to formally approve the PR https://github.com/python/cpython/pull/29521 ? -- ___ Python tracker

[issue45789] Python execution broken after update via Windows Store

2021-11-12 Thread Eryk Sun
Eryk Sun added the comment: > Could it be possible that it might not be able to replace that > link when it is currently in use? Appexec links are only used briefly to find the real executable and create the access token that allows executing it. I don't know how your local profile

[issue45711] Simplify the interpreter's (type, val, tb) exception representation

2021-11-12 Thread Irit Katriel
Irit Katriel added the comment: New changeset 8f1b71de731dda668aede7c9b34d0ad7afb8f6a8 by Brandt Bucher in branch 'main': bpo-45711: Re-bump the magic number and update doc (GH-29528) https://github.com/python/cpython/commit/8f1b71de731dda668aede7c9b34d0ad7afb8f6a8 --

[issue28533] Remove asyncore, asynchat and smtpd modules

2021-11-12 Thread STINNER Victor
STINNER Victor added the comment: > There is an option: keep removed modules but replace each module content > with 'raise ImportError("Please use instead")' stub. > The actual module removal can be postponed for years until most internet > resources reflect this fact. That prevents someone

[issue45789] Python execution broken after update via Windows Store

2021-11-12 Thread Eryk Sun
Change by Eryk Sun : Removed file: https://bugs.python.org/file50434/read_appexec.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue10202] ftplib doesn't check close status after sending file

2021-11-12 Thread mike mcleod
mike mcleod added the comment: I would like to help on this issue. I understand the arguments here but it has been a lone time since this was raised and there does not seem to be any further issues discussed or support for this issue. -- nosy: +mikecmcleod

[issue45789] Python execution broken after update via Windows Store

2021-11-12 Thread firewave
firewave added the comment: Thanks a lot for all the details. I used the script to check all the 3.9 appexec links and only the "python3.9" one points to the wrong executable. Version: 3 Package ID: PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0 Entry Point:

[issue45794] Email policy option for disabling RFC2231 Mime parameter folding

2021-11-12 Thread Ezekeel
New submission from Ezekeel : I am using the Python email module extensively and noticed that the Microsoft Outlook client does not support RFC2231 for Mime parameter folding. Since that mail client unfortunately is the de facto standard in the corporate world there should be a policy option

[issue45758] Crash on Py_DecRef'ing builtin object from previous run

2021-11-12 Thread Ronald Oussoren
Ronald Oussoren added the comment: IMHO your code is buggy, as Hai Shi also indicates. After Py_Finalize all objects in all (sub-)interpreters are deallocated unless there are bugs in the interpreter. Because of this "..., item should still be alive" in your sample code is incorrect: the

[issue37295] Possible optimizations for math.comb()

2021-11-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- versions: +Python 3.11 -Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue45793] execute shell command ./configure with python subprocess.popen, os.system ... checking build system type... is wrong

2021-11-12 Thread Ronald Oussoren
Ronald Oussoren added the comment: The problem will go away when you install and use an arm64 or universal2 variant of Python. This is behaviour of macOS and cannot be changed in CPython. -- resolution: -> third party stage: -> resolved status: open -> closed

[issue45792] contextvars.Token has wrong module name in Sphinx's objects.inv

2021-11-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 8b6a474071bcc88ec3453e16f079181e551513c3 by Miss Islington (bot) in branch '3.9': bpo-45792: Fix contextvar.Token's intersphinx FQN (GH-29533) (GH-29536) https://github.com/python/cpython/commit/8b6a474071bcc88ec3453e16f079181e551513c3

[issue45792] contextvars.Token has wrong module name in Sphinx's objects.inv

2021-11-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 628667ac9a634c7a7fa7f681dd2f98ff5841c843 by Miss Islington (bot) in branch '3.10': bpo-45792: Fix contextvar.Token's intersphinx FQN (GH-29533) (GH-29535) https://github.com/python/cpython/commit/628667ac9a634c7a7fa7f681dd2f98ff5841c843

[issue6669] TarFile.getmembers fails at struct.unpack: unpack requires a string argument of length 4

2021-11-12 Thread mike mcleod
mike mcleod added the comment: I would like to help with this issue. I note that when I test against 3.10 this error does not show. Also, all tests for test_tarfile pass. I am wondering if it may be reasonable to close this due to the age and currently its not an issue in the latest Python

  1   2   >