[issue43955] Windows: Running the Python test suite sequentially is interrupted by (Pdb) prompt

2021-04-28 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: All the test failures are side effects of other tests because when they are ran individually they do not trigger errors. Running sequentially causes the error. -- ___ Python tracker <https://bugs.python.

[issue43908] array.array should remain immutable

2021-04-28 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Was EVPtype_spec in _hashopenssl.c converted to heap type? -- ___ Python tracker <https://bugs.python.org/issue43908> ___ ___

[issue43908] array.array should remain immutable

2021-04-28 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Is it necessary to add tests just for testing type immutability? We don't have immutability tests for static types then why heap types? -- ___ Python tracker <https://bugs.python.org/is

[issue43908] array.array should remain immutable

2021-04-28 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Erlend, wouldn't it be easy to apply all the changes in 1 PR? -- ___ Python tracker <https://bugs.python.org/is

[issue43908] array.array should remain immutable

2021-04-28 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: ok. -- ___ Python tracker <https://bugs.python.org/issue43908> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43908] array.array should remain immutable

2021-04-29 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: The types converted to heap types in 3.10 are different from 3.9 therefore just backporting wouldn't help. Should we now try to apply the flags on other types? If yes then I'd like to volunteer to apply the flags on the types convert

[issue43973] Use Py_TPFLAGS_IMMUTABLETYPE in __class__ assignments check

2021-04-29 Thread Shreyan Avigyan
Change by Shreyan Avigyan : -- nosy: +shreyanavigyan ___ Python tracker <https://bugs.python.org/issue43973> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37387] test_compileall fails randomly on Windows when tests are run in parallel

2021-04-29 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: I've experienced that when a module is imported in the interpreter that module file (.py, .pyc, .pyd) cannot be deleted, renamed, rewritten, etc. When that session is closed only then the file can be deleted, renamed, rewritten, all that stuff. Ru

[issue37387] test_compileall fails randomly on Windows when tests are run in parallel

2021-04-29 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: I don't think it's a bug at all. It's a feature of Python that's causing this. And since it's not a bug I don't think copying the files in temporary directory would help at all because Windows is not giving the error. Python

[issue37387] test_compileall fails randomly on Windows when tests are run in parallel

2021-04-29 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: @vstinner What do you think? I'm not sure if there's a solution to this. -- ___ Python tracker <https://bugs.python.o

[issue37387] test_compileall fails randomly on Windows when tests are run in parallel

2021-04-29 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: What should we do? Should we skip test_compileall if the test suite is run in parallel? -- ___ Python tracker <https://bugs.python.org/issue37

[issue37387] test_compileall fails randomly on Windows when tests are run in parallel

2021-04-29 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: What is the name of the new function introduced in Windows 10 NT API? Should we use it if the version is detected as Windows 10 (through a callback to a platform function or through GetVersion API

[issue37387] test_compileall fails randomly on Windows when tests are run in parallel

2021-04-29 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Though I've never been able to reproduce this test failure. Maybe it's fixed (maybe it was a side effect of another test)? -- ___ Python tracker <https://bugs.python.o

[issue43908] array.array should remain immutable: add Py_TPFLAGS_IMMUTABLETYPE flag

2021-04-30 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Py_TPFLAGS_IMMUTABLETYPE has been applied to array.array by Erlend in https://github.com/python/cpython/pull/25696. Should Py_TPFLAGS_IMMUTABLETYPE be applied to other heap types also (the ones that were converted from static types

[issue43908] array.array should remain immutable: add Py_TPFLAGS_IMMUTABLETYPE flag

2021-04-30 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Victor, the types, that Py_TPFLAGS_IMMUTABLETYPE flag is yet to be applied to, are different for 3.9 and 3.10. Should we proceed with that? (If yes I'd be happy to collaborate with Erlend to apply the flag on those

[issue37387] test_compileall fails randomly on Windows when tests are run in parallel

2021-04-30 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Ok -- ___ Python tracker <https://bugs.python.org/issue37387> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43908] array.array should remain immutable: add Py_TPFLAGS_IMMUTABLETYPE flag

2021-04-30 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Ok -- ___ Python tracker <https://bugs.python.org/issue43908> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43908] array.array should remain immutable: add Py_TPFLAGS_IMMUTABLETYPE flag

2021-04-30 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Ok -- ___ Python tracker <https://bugs.python.org/issue43908> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43984] [security]winreg.SetValueEx shoule check the returned value

2021-04-30 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: +1 on my side. -- nosy: +paul.moore, shreyanavigyan, steve.dower, stutzbach, tim.golden, zach.ware ___ Python tracker <https://bugs.python.org/issue43

[issue43984] [security] winreg.SetValueEx should check the returned value

2021-04-30 Thread Shreyan Avigyan
Change by Shreyan Avigyan : -- title: [security]winreg.SetValueEx shoule check the returned value -> [security] winreg.SetValueEx should check the returned value ___ Python tracker <https://bugs.python.org/issu

[issue43984] winreg.SetValueEx should check the returned value

2021-04-30 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: I have a patch ready for this issue. Should I convert it to a PR? -- ___ Python tracker <https://bugs.python.org/issue43

[issue43992] Unable to get external dependencies for CPython on Ubuntu Linux 20.04.1

2021-04-30 Thread Shreyan Avigyan
New submission from Shreyan Avigyan : I'm trying to build CPython on Ubuntu but I can't get the external dependencies. Running this command :- $ sudo apt-get build-dep python3 gives the output :- Reading package lists... Done E: You must put some 'deb-src' URIs in your s

[issue43992] Unable to get external dependencies for CPython on Ubuntu Linux 20.04.1

2021-05-01 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: I've tweaked some of my settings and was able to get the dependencies but they are out of date. I tried upgrading them but not working. (I'm not new to Ubuntu but I'm also not excellent at Ubuntu. A little bit of explanation w

[issue43984] winreg.SetValueEx should check the returned value

2021-05-01 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: I'm attaching a PR to fix this issue. -- ___ Python tracker <https://bugs.python.org/issue43984> ___ ___ Python-bugs-l

[issue43984] winreg.SetValueEx should check the returned value

2021-05-01 Thread Shreyan Avigyan
Change by Shreyan Avigyan : -- keywords: +patch pull_requests: +24465 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/25775 ___ Python tracker <https://bugs.python.org/issu

[issue43997] dataclasses documentation needs version added for match_args, kw_only, and slots

2021-05-01 Thread Shreyan Avigyan
Change by Shreyan Avigyan : -- nosy: +shreyanavigyan ___ Python tracker <https://bugs.python.org/issue43997> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43997] dataclasses documentation needs version added for match_args, kw_only, and slots

2021-05-01 Thread Shreyan Avigyan
Change by Shreyan Avigyan : -- keywords: +patch pull_requests: +24488 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/25803 ___ Python tracker <https://bugs.python.org/issu

[issue43908] array.array should remain immutable: add Py_TPFLAGS_IMMUTABLETYPE flag

2021-05-02 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Should I apply the flags on other newly converted heap types? -- ___ Python tracker <https://bugs.python.org/issue43

[issue43983] Can't install Python v3.9.4 / 0x80070643 / windows 10 64bit

2021-05-02 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: See if the your problem is solved by following https://docs.microsoft.com/en-us/troubleshoot/windows-server/application-management/msi-installation-error-1603. -- nosy: +shreyanavigyan ___ Python tracker <ht

[issue44016] Enum related deprecation warnings in test_httpservers and test_faulthandler

2021-05-03 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Couldn't reproduce warnings for test_faulthandler but found a patch for test_httpservers. I'm opening a PR for it. (Patch adapted from https://github.com/python/cpython/pull/25769) -- nosy: +shre

[issue44016] Enum related deprecation warnings in test_httpservers and test_faulthandler

2021-05-03 Thread Shreyan Avigyan
Change by Shreyan Avigyan : -- keywords: +patch pull_requests: +24527 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25844 ___ Python tracker <https://bugs.python.org/issu

[issue44018] Bug in random.seed

2021-05-03 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: One solution to these would be making a copy of the parameter using copy.deepcopy and then performing operations on that copy. (The downside of this solution is that it will change the behavior.) -- nosy: +shreyanavigyan

[issue44026] IDLE doesn't offer "Did you mean?" for AttributeError and NameError

2021-05-04 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Python shell uses to evaluate while IDLE uses . Is that the problem? -- nosy: +shreyanavigyan ___ Python tracker <https://bugs.python.org/issue44

[issue44026] IDLE doesn't offer "Did you mean?" for AttributeError and NameError

2021-05-04 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Does the test suite run succesfully? -- ___ Python tracker <https://bugs.python.org/issue44026> ___ ___ Python-bugs-list m

[issue44033] Adding multiple keys of the same name to a dict doesn't raise an exception

2021-05-04 Thread Shreyan Avigyan
New submission from Shreyan Avigyan : Adding multiple keys of the same name to a dict should raise an exception but instead causes a different behavior. For example consider this code, >>> d = {"x" : "First value", "x" : "Second value", "

[issue44034] Incorrect type casting of float into int

2021-05-04 Thread Shreyan Avigyan
Change by Shreyan Avigyan : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.6 ___ Python tracker <https://bugs.python.org/issue44034> ___ ___ Pytho

[issue44033] Adding multiple keys of the same name to a dict doesn't raise an exception

2021-05-04 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: I've read that issue but it seems that it actually was based on "Should there be a warning or error?". I actually suggest something different. I suggest that "Either raise an exception or just use the first key-value pair if the key

[issue44033] Adding multiple keys of the same name to a dict doesn't raise an exception

2021-05-04 Thread Shreyan Avigyan
Change by Shreyan Avigyan : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue44033] Adding multiple keys of the same name to a dict doesn't raise an exception

2021-05-04 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Ok. I'm closing this then. (I wasn't aware that this was an intended behavior.) -- ___ Python tracker <https://bugs.python.o

[issue44044] ConfigParser: cannot link to ConfigParser.optionxform(option)

2021-05-05 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: No there's a hyperlink. See here https://docs.python.org/3/library/configparser.html#configparser.ConfigParser.optionxform. There's two duplicate definitions of ConfigParser.optionxform in configparser.html. One gives examples, the other

[issue44044] ConfigParser: cannot link to ConfigParser.optionxform(option)

2021-05-05 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: If that's the problem then what about merging the two sections together? -- ___ Python tracker <https://bugs.python.org/is

[issue44046] When writing to the Registry using winreg, it currently allows you to write ONLY to HKEY_CURRENT_USERS.

2021-05-05 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Is it working if you run, whatever application you're running python on, in admin mode? -- nosy: +shreyanavigyan ___ Python tracker <https://bugs.python.org/is

[issue44046] When writing to the Registry using winreg, it currently allows you to write ONLY to HKEY_CURRENT_USERS.

2021-05-05 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Actually behind the scenes, winreg uses win32api which doesn't allow setting HKEY_LOCAL_MACHINE keys for unprivileged users. Running the application in admin mode may work because at that point your application getting admin privileges but it also ma

[issue44048] test_hashlib failure for "AMD64 RHEL8 FIPS Only Blake2 Builtin Hash" buildbot

2021-05-05 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: The errors are occurring because the code before these commits checked whether those algorithms were present or not. If an algorithm was not present it was not tested. The new code doesn't check and therefore if even one of the algorithm modules ar

[issue44046] When writing to the Registry using winreg, it currently allows you to write ONLY to HKEY_CURRENT_USERS.

2021-05-05 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: > I can also add, modify, and delete Registry entries in HKLM (or any other > hive) by hand with no problem, so it is definitely not a permissions issue. When you run regedit you get an admin pop up, right? Like that also run python in admin mode. &

[issue44046] When writing to the Registry using winreg, it currently allows you to write ONLY to HKEY_CURRENT_USERS.

2021-05-05 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Ok. I tested it. And I'm now completely sure that you're not running in Administrator mode. I'll give you the steps to solve this problem but first of all where are you running this code from, IDLE, Python or any other IDE? How to run in adm

[issue44046] When writing to the Registry using winreg, it currently allows you to write ONLY to HKEY_CURRENT_USERS.

2021-05-06 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: The most easy way to do is right click on the application you're running the code from, click Run as Administrator and then run the code in that application. You'll not get any WinError. And also being in the Administrators group doesn'

[issue44046] When writing to the Registry using winreg, it currently allows you to write ONLY to HKEY_CURRENT_USERS.

2021-05-06 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Don't run VSCode in admin mode. Just set python to admin mode. See if it works then. -- ___ Python tracker <https://bugs.python.org/is

[issue44061] Regression in pkgutil: iter_modules stopped taking Path argument in python 3.8.10 and 3.9.5

2021-05-06 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: It's mentioned that Python 3.9.5 has this regression but the code works fine on my windows machine. Is this only reproducible on POSIX? -- nosy: +shreyanavigyan versions: -Python 3.11 ___ Python tracker &

[issue44061] Regression in pkgutil: iter_modules stopped taking Path argument in python 3.8.10 and 3.9.5

2021-05-06 Thread Shreyan Avigyan
Change by Shreyan Avigyan : -- versions: +Python 3.11 ___ Python tracker <https://bugs.python.org/issue44061> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44066] Conflicts while using Py_LIMITED_API

2021-05-07 Thread Shreyan Avigyan
New submission from Shreyan Avigyan : I usually program in Python C API without defining Py_LIMITED_API. I thought about using the stable ABI today. To my surprise, there are lot of conflicts occurring if Py_LIMITED_API is defined. The whole list of errors are:- 1>C:\Users\shrey\source\re

[issue44066] Conflicts while using Py_LIMITED_API

2021-05-07 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Thanks for the quick response but I'm using PyTypeObject only. But in stable ABI it uses the name _typeobject to represent it. And I have a lot of files in my module therefore it's difficult to a

[issue44066] Conflicts while using Py_LIMITED_API

2021-05-07 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: I've two header files, one main.c file and it's on my local machine. My platform is Windows, Python is 3.9.5 32bit and IDE is Visual Studio 2019. I'm attaching those files. -- Added file: https://bugs.python.org/f

[issue44066] Conflicts while using Py_LIMITED_API

2021-05-07 Thread Shreyan Avigyan
Change by Shreyan Avigyan : Added file: https://bugs.python.org/file50023/Extension.h ___ Python tracker <https://bugs.python.org/issue44066> ___ ___ Python-bugs-list m

[issue44066] Conflicts while using Py_LIMITED_API

2021-05-07 Thread Shreyan Avigyan
Change by Shreyan Avigyan : Added file: https://bugs.python.org/file50024/Extension2.h ___ Python tracker <https://bugs.python.org/issue44066> ___ ___ Python-bugs-list m

[issue44066] Conflicts while using Py_LIMITED_API

2021-05-07 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: This is a Visual Studio solution. Will I attach the whole zip containing the projects and files and the the solution file? -- ___ Python tracker <https://bugs.python.org/issue44

[issue43992] Unable to get external dependencies for CPython on Ubuntu Linux 20.04.1

2021-05-08 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: I know the deb-src problem and I've added that a long time ago. The problem is that I don't know which repository has the unstable source. I'm on Ubuntu Focal Fossa. I successfully can fetch sources but they are not up-to-date. I can&#x

[issue43992] Unable to get external dependencies for CPython on Ubuntu Linux 20.04.1

2021-05-08 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: It's also pretty problematic that Python depends on the system header code rather than fetched source code like we do in OS X or Windows. I would like to suggest that we fetch source code and then use that instead of system header files. This wouldn&#

[issue44076] issue with list in Python 3.8.5

2021-05-08 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Can you show an example code where this occurs? Which Python 3.8 subversion are you using? How do you conclude these are memory issues? -- nosy: +shreyanavigyan ___ Python tracker <https://bugs.python.

[issue43992] Unable to get external dependencies for CPython on Ubuntu Linux 20.04.1

2021-05-08 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: This problem doesn't exist in RPM Linux. Therefore creating a new DebianBuild directory (like there is PCBuild, Mac) just for Debian Linux. (I haven't tested RPM Linux and can't access any right now therefore I don't know if the problem

[issue43992] Unable to get external dependencies for CPython on Ubuntu Linux 20.04.1

2021-05-08 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: I figured out the commands. The problem is they are not upgraded. -- ___ Python tracker <https://bugs.python.org/issue43

[issue43992] Unable to get external dependencies for CPython on Ubuntu Linux 20.04.1

2021-05-08 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: I never said this was a bug. But what I'm saying is there should be a different build for Debian because Debian has a reputation of using outdated packages. -- ___ Python tracker <https://bugs.py

[issue44083] problem with updated 3.9.5

2021-05-09 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: What is the input are you expecting? int can only convert string with only numbers like "10" or "2" not "10 abc" or "2 abc". -- nosy: +shreyanavigyan ___ Python trac

[issue44083] problem with updated 3.9.5

2021-05-09 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: What is the input you're giving? -- ___ Python tracker <https://bugs.python.org/issue44083> ___ ___ Python-bugs-list m

[issue44076] issue with list in Python 3.8.5

2021-05-09 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: It doesn't seem to be a Python bug at all. This is pretty awkward that even without upgrading your Python your program is breaking. I don't know tkinter well but upgrading your Windows shouldn't affect tkinter at all. And as Steven descri

[issue44076] issue with list in Python 3.8.5

2021-05-10 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Are they saying this error is result of Windows update? (It may be. I didn't notice you're talking about 21H1, I thought you're talking about other patch updates.) -- ___ Python tracker <https

[issue44076] issue with list in Python 3.8.5

2021-05-10 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Shortcut is store the output of pip in a file using, pip freeze > file.txt And then after installing Python 3.9 py -3.9 -m pip install -m file.txt -- nosy: -christian.heimes ___ Python tracker <

[issue44076] issue with list in Python 3.8.5

2021-05-10 Thread Shreyan Avigyan
Change by Shreyan Avigyan : -- nosy: +christian.heimes ___ Python tracker <https://bugs.python.org/issue44076> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44076] issue with list in Python 3.8.5

2021-05-10 Thread Shreyan Avigyan
Change by Shreyan Avigyan : -- nosy: +erlendaasland ___ Python tracker <https://bugs.python.org/issue44076> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44076] issue with list in Python 3.8.5

2021-05-10 Thread Shreyan Avigyan
Change by Shreyan Avigyan : -- nosy: -erlendaasland ___ Python tracker <https://bugs.python.org/issue44076> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44076] issue with list in Python 3.8.5

2021-05-10 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Today the nosy list is not working. When I don't even mean to add or remove someone, that person is automatically being added. -- ___ Python tracker <https://bugs.python.org/is

[issue44076] issue with list in Python 3.8.5

2021-05-10 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Sorry, for the disturbance in the nosy list but it's glitching. -- ___ Python tracker <https://bugs.python.org/is

[issue44099] Introduce a new slot in PyModuleDef to hold the classes

2021-05-10 Thread Shreyan Avigyan
New submission from Shreyan Avigyan : It's tedious to add classes one by one using PyModule_AddObject in PyInit_module function. Wouldn't it be much easier if there's a slot that has an array of all the classes in their PyObject form and it'll automatically add those clas

[issue43804] "Building C and C++ Extensions on Windows" docs are very out-of-date

2021-05-10 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Ping -- ___ Python tracker <https://bugs.python.org/issue43804> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43804] "Building C and C++ Extensions on Windows" docs are very out-of-date

2021-05-10 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Zachary: > As I said on the first PR, and as William says above, I don't see any > indication that your assertion that some commands are 32-bit only is true. > Please provide some evidence for your claim. cl.exe by default points to the 32-

[issue43804] "Building C and C++ Extensions on Windows" docs are very out-of-date

2021-05-10 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: I'm aware of that. But anyway I'm removing it since there are ways to overcome it. -- ___ Python tracker <https://bugs.python.o

[issue43804] "Building C and C++ Extensions on Windows" docs are very out-of-date

2021-05-10 Thread Shreyan Avigyan
Change by Shreyan Avigyan : -- pull_requests: +24670 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/26020 ___ Python tracker <https://bugs.python.org/issu

[issue44103] Python 3.10 docs are visually broken

2021-05-10 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: That's odd. What do you think is causing this? Python's 3.10 docs were fine even yesterday. Why is it suddenly broken? Can it be related to Sphinx version or some other bug? -- nosy: +shreyanavigyan

[issue44103] Python 3.10 docs are visually broken

2021-05-10 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Yes, hard refresh fixes it. Thanks a lot. -- ___ Python tracker <https://bugs.python.org/issue44103> ___ ___ Python-bug

[issue44099] [c-api] Introduce a new slot in PyModuleDef to hold the classes

2021-05-11 Thread Shreyan Avigyan
Change by Shreyan Avigyan : -- title: Introduce a new slot in PyModuleDef to hold the classes -> [c-api] Introduce a new slot in PyModuleDef to hold the classes ___ Python tracker <https://bugs.python.org/issu

[issue44130] GIL Improvement

2021-05-14 Thread Shreyan Avigyan
New submission from Shreyan Avigyan : Today while working on an attempt to improve the GIL (either by modifying it or removing it) I noticed that in destroy_gil function first we unlock the mutex and then we set the gil->locked to -1 using _Py_atomic_store_explicit. Therefore the cycle

[issue44130] GIL Improvement

2021-05-14 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Instability is more likely. But I'll run the benchmark once more and see what is happening. -- ___ Python tracker <https://bugs.python.org/is

[issue44130] GIL Improvement

2021-05-14 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Forgot to do that. I'll report back with the test suite result. -- ___ Python tracker <https://bugs.python.org/is

[issue44130] GIL Improvement

2021-05-14 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: I took the measurement like this. If it ran in 1.98 secs then the new patch would theoretically measure 1.96 (original - 0.22). The patch isn't very useful but it can sometimes be faster than the present code especially in debug

[issue44130] GIL Improvement

2021-05-14 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Test suite passed and also I'm attaching the benchmark I used to measure. (This is the benchmark used by David Beazley in one of his famous GIL blog posts and talks.) -- Added file: https://bugs.python.org/file50040/benchma

[issue44130] GIL Improvement

2021-05-14 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: > "That difference is 0.02 seconds, or about 1%, correct?" I mistook 1.98 as 1.88 in my calculation. Sorry for that. > The information is not very helpful to understand what you are doing. Please > provide your system specs (arch,

[issue44130] GIL Improvement

2021-05-14 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Sure -- ___ Python tracker <https://bugs.python.org/issue44130> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44130] GIL Improvement

2021-05-14 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: I attached the pyperf benchmark also. -- Added file: https://bugs.python.org/file50041/benchmark.py ___ Python tracker <https://bugs.python.org/issue44

[issue44130] GIL Improvement

2021-05-14 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: pyperf results - Mean +- std dev: 455 ms +- 13 ms Looks a little bit faster than current 3.11, 3.10 and 3.9 versions. -- ___ Python tracker <https://bugs.python.org/issue44

[issue44130] GIL Improvement

2021-05-14 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: I suspected right. This was just CPU instability. In fact the patch is 1x-2x slower as reported by pyperf. Therefore I'm closing this issue. Though I'm working on another "yet to be failed attempt" to remove or rewrite the GIL to imp

[issue44130] GIL Improvement

2021-05-14 Thread Shreyan Avigyan
Change by Shreyan Avigyan : -- resolution: -> wont fix ___ Python tracker <https://bugs.python.org/issue44130> ___ ___ Python-bugs-list mailing list Un

[issue44148] Raise a RuntimeError if frame is NULL in PyEval_GetGlobals

2021-05-16 Thread Shreyan Avigyan
New submission from Shreyan Avigyan : Currently, PyEval_GetGlobals just returns NULL if frame is NULL while PyEval_GetLocals raises a runtime error and then returns NULL if frame is NULL. Raising a RuntimeError and then returning NULL from PyEval_GetGlobals if frame is NULL would be a better

[issue44148] Raise a SystemError if frame is NULL in PyEval_GetGlobals

2021-05-16 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Sorry, it's SystemError not RuntimeError -- title: Raise a RuntimeError if frame is NULL in PyEval_GetGlobals -> Raise a SystemError if frame is NULL in PyEval_GetGlobals ___ Python tracker

[issue44148] Raise a SystemError if frame is NULL in PyEval_GetGlobals

2021-05-16 Thread Shreyan Avigyan
Change by Shreyan Avigyan : -- keywords: +patch pull_requests: +24797 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26166 ___ Python tracker <https://bugs.python.org/issu

[issue44148] Raise a SystemError if frame is NULL in PyEval_GetGlobals

2021-05-16 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: I don't know much about ceval.c functions, so is there a reason PyEval_GetGlobals doesn't raise an error? I'm sorry for creating noise about it if the current behavior is intended. I'll close the i

[issue44147] [WinError 193] %1 is not a valid Win32 application

2021-05-16 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Can you provide the full traceback log of at least one of the import failures. Try importing matplotlib, for example, and extract the traceback log. Usually this error occurs due to PATH conflicts. This issue is thoroughly discussed in https://github.com

[issue44148] Raise a SystemError if frame is NULL in PyEval_GetGlobals

2021-05-17 Thread Shreyan Avigyan
Change by Shreyan Avigyan : -- stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue44148> ___ ___ Pyth

[issue44099] [c-api] Introduce a new slot in PyModuleDef to hold the classes

2021-05-18 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: A friendly ping -- ___ Python tracker <https://bugs.python.org/issue44099> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44147] [WinError 193] %1 is not a valid Win32 application

2021-05-18 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: I've noticed whenever a core dev or triager sends a message the status is automatically set to open. But that's a different glitch or issue. -- status: pending -> open ___ Python tracker <https:/

[issue44147] [WinError 193] %1 is not a valid Win32 application

2021-05-18 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Are you kidding me, What's going wrong with this issue tracker? I sent a message and it's set to open now? I'm not even a core dev or triager. What the heck is going on? -- ___ Python

<    1   2   3   >