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

2021-05-19 Thread Shreyan Avigyan
Change by Shreyan Avigyan : -- title: [c-api] 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

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

2021-05-19 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Yes and it wouldn't be a problem. If struct member is 0 or NULL then use default behavior. If not then apply PyModule_AddType or PyModule_AddObject on all of those. Then after finishing set slot to NULL again since we don't want to add a type

[issue44180] SyntaxError misidentified in 3.10.0b1 when = used instead of : in dict literal

2021-05-19 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: The bad token example needs a fix but the second is actually ok because we have another type we write within curly braces "{" and there the error is actually perfect. Like if we follow the error message, we use ages = {'Alice'==22} A

[issue44180] SyntaxError misidentified in 3.10.0b1 when = used instead of : in dict literal

2021-05-19 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: I'm don't the second is a problem at all. What the error message is suggesting is perfect since it doesn't know if we're trying to use a set or dict. -- ___ Python tracker <https://bug

[issue44180] SyntaxError misidentified in 3.10.0b1 when = used instead of : in dict literal

2021-05-19 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Sorry for the typos. -- ___ Python tracker <https://bugs.python.org/issue44180> ___ ___ Python-bugs-list mailing list Unsub

[issue44180] SyntaxError misidentified in 3.10.0b1 when = used instead of : in dict literal

2021-05-19 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Hmmm... Then is it possible to add an exception where the error message will result in, SyntaxError: cannot assign to literal here. Maybe you meant ':', "==" or ":=" instead of '='?

[issue44184] crash on windows invoking flake8

2021-05-19 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: This looks like a pyflakes error to me. And you've also mentioned you can reproduce it outside tox with pyflakes. -- nosy: +shreyanavigyan title: crash on windows invoking flake8 under tox -> crash on windows invoking flake8 type:

[issue44184] crash on windows invoking flake8

2021-05-20 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: It's reproducible. I reproduced it on my Windows 10 with Python 3.10.0b1 -- ___ Python tracker <https://bugs.python.org/is

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

2021-05-20 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: I'm not sure if bpo-42376 is same as this one. Yes the basic idea to provide abstraction and make it easy for the users to add type is same but the approaches suggested are completely different. I propose a new structure member in PyModuleDef be

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

2021-05-20 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: In PyModule_Create -> PyModule_Create2 -> SomeFunc... it would loop through the array of object addresses and call PyModule_AddType on each and every one of them. This will not change behavior or control flow only implement a handy way. This I&#x

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

2021-05-20 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Yes. It's becoming hard to implement both static and heap types using one struct member. Since this is all about implementing a helping hand when it comes to types I think two different members one for static and another one for heap would be fine. A

[issue44184] crash on windows invoking flake8

2021-05-20 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: This is a flake8 error not tox error. Though if it was a complete flake8 error then it would fail in all Python. But it only fails in 3.10 (don't know about 3.11 because haven't tested it yet.) --

[issue44217] [IDLE] Weird behaviour in IDLE while dealing with non-ASCII characters

2021-05-23 Thread Shreyan Avigyan
New submission from Shreyan Avigyan : In IDLE, suppose I want to print 😀. I can write it like, print(b'\xf0\x9f\x98\x80'.decode()). I can't print it in console so I tried it in IDLE. It worked. Hurray! Hold on though. Now I thought how can I print 😀 directly. So I used the

[issue44217] [IDLE] Weird behaviour in IDLE while dealing with non-ASCII characters

2021-05-23 Thread Shreyan Avigyan
Change by Shreyan Avigyan : -- versions: +Python 3.10, Python 3.11, Python 3.9 ___ Python tracker <https://bugs.python.org/issue44217> ___ ___ Python-bugs-list m

[issue44217] [IDLE] Weird behaviour in IDLE while dealing with non-ASCII characters

2021-05-23 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: It's not a Python problem at all. This was occurring in IDLE only. And yeah I know how it print the character. It's just that I was confused that why IDLE is behaving like that. I am happy to learn that it has a fix c

[issue44217] [IDLE] Weird behaviour in IDLE when printing non-BMP unicode characters

2021-05-23 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: What about closing this as third party? (Tcl/Tk is a dependency but still it's a third party right?) -- status: pending -> open ___ Python tracker <https://bugs.python.org

[issue44217] [IDLE] Weird behaviour in IDLE when printing non-BMP unicode characters

2021-05-23 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Also what's up with this open-pending issue? -- status: open -> pending ___ Python tracker <https://bugs.python.org

[issue44217] Tkinter/IDLE: literal astral char discombobulates text editing

2021-05-24 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: The first and third behavior is only occurring for IDLE. I believe the third one is a cause of the first one. The second behavior of dancing is a Tcl/Tk problem. -- ___ Python tracker <https://bugs.python.

[issue44217] Tkinter/IDLE: literal astral char discombobulates text editing

2021-05-25 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: I executed the code Tal provided and yes both Serhiy and Tal you're right. It seems the backspace problem is related to Tcl/Tk's indexing. 1.1 and 1.2 both refer to 😀. Also the dancing I told actually tells why this is happening. Since Tcl/Tk u

[issue44217] Tkinter/IDLE: literal astral char discombobulates text editing

2021-05-25 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Sorry, 1.0 and 1.1 refer to 😀 not 1.1 and 1.2 -- ___ Python tracker <https://bugs.python.org/issue44217> ___ ___ Python-bug

[issue38768] [feature request] Add lldb equivalent to Tools/gdb

2021-05-27 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Would be great. LLDB is also supported on Windows (by Visual Studio) unlike gdb. -- nosy: +shreyanavigyan ___ Python tracker <https://bugs.python.org/issue38

[issue44100] test__xxsubinterpreters: test_one() fails in AMD64 Fedora Stable 3.x: "Fatal Python error: Py_EndInterpreter: thread still has a frame"

2021-05-29 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: I'm not sure *but* in the DestroyTests.test_one id1 and id3 were never explicitly destroyed. Can it be related? -- nosy: +shreyanavigyan ___ Python tracker <https://bugs.python.org/is

[issue44303] Buildbot website failing with 503

2021-06-03 Thread Shreyan Avigyan
New submission from Shreyan Avigyan : I was trying to debug a issue (the test_asyncio random failing problem) when suddenly Buildbot is showing up with "503 Service Unavailable No server is available to handle this request.". It's constantly failing with the request. I'm n

[issue44303] Buildbot website failing with 503

2021-06-03 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Ok. Now it's back up again. Was a glitch perhaps. -- ___ Python tracker <https://bugs.python.org/issue44303> ___ ___

[issue44303] Buildbot website failing with 503

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

[issue44112] [buildbot] test_asyncio hangs (killed after 3 hours) on Refleak buildbots

2021-06-03 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Victor, this issue is reproducible on Linux. I reproduced it on my WSL. And I've identified the issue is in test_close_kill_running. The patch for resolving the crash in bpo-38323 can be the cause of the newly introduced hang. test_close_kill_runni

[issue44112] [buildbot] test_asyncio hangs (killed after 3 hours) on Refleak buildbots

2021-06-03 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: > How did you managed? I ran test_asyncio for almost 5 hours with -R in my > linux machine and could not reproduce? Now it's not again not reproducing. Maybe I used some wrong flag. But I'll try to

[issue44112] [buildbot] test_asyncio hangs (killed after 3 hours) on Refleak buildbots

2021-06-03 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: I've also been trying to debug it for the whole day. Not sure what's causing this. (Why does all error occur in Fedora buildbots? If I remember correctly, another test also failed there.") -- ___

[issue44112] [buildbot] test_asyncio hangs (killed after 3 hours) on Refleak buildbots

2021-06-03 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: The test result I got kind of seemed that the problem was in test_close_kill_running but it maybe that I used wrong flag (maybe -F?). And it is also weird that the error is occurring only in Fedora buildbot and not on others. Also the logs are not showing

[issue44112] [buildbot] test_asyncio hangs (killed after 3 hours) on Refleak buildbots

2021-06-04 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: I ran the test_suite on commit f3fa63ec75fdbb4a08a10957a5c631bf0c4a5970 in my WSL 1 Ubuntu and got some unexpected results. There are huge reference leaks in the tests and test_asyncio, test_subprocess, test_socket, etc., failed. I forked the branch a

[issue44112] [buildbot] test_asyncio hangs (killed after 3 hours) on Refleak buildbots

2021-06-04 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: > bpo-38323 is not fixed yet, I can still easily reproduce the hang on Linux is > less than 1 minute: https://bugs.python.org/issue38323#msg395090 Yes, with the commands you provided in the https://bugs.python.org/issue38323#msg395090 I also reproduc

[issue44112] [buildbot] test_asyncio hangs (killed after 3 hours) on Refleak buildbots

2021-06-04 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: > Your logs don't show this error. This error is test_asyncio hanging, but in > your logs the test fails (multiple test do, actually). I didn't include this error. I was just asking if we could do anything about the multiple test fail

[issue38323] asyncio: MultiLoopWatcher has a race condition (test_asyncio: test_close_kill_running() hangs on AMD64 RHEL7 Refleaks 3.x)

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

[issue38323] asyncio: MultiLoopWatcher has a race condition (test_asyncio: test_close_kill_running() hangs on AMD64 RHEL7 Refleaks 3.x)

2021-06-07 Thread Shreyan Avigyan
Change by Shreyan Avigyan : -- pull_requests: +25162 pull_request: https://github.com/python/cpython/pull/26574 ___ Python tracker <https://bugs.python.org/issue38

[issue44297] Frame with -1 line number

2021-06-22 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Here presumably the error is occurring somewhere near unittest. I've tested this and wrote a minimal reproducible example. ``` import unittest class TestingError(unittest.TestCase): def test_negative_one(self): with self.assertRaises

[issue44297] Frame with -1 line number

2021-06-23 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Oh it is also occurring when running from script (I ran it from IDLE and it always results in correct lineno). I wrote example similar to how unittests work and the frame with -1 lineno is also occurring there. Here is the code - ``` class A: def

[issue44297] Frame with -1 line number

2021-06-24 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Found the culprit - https://github.com/python/cpython/blob/769d7d0c66c5b86e2dd29b9ce67ac2daaab1bb38/Python/compile.c#L5268 Same goes for async with - https://github.com/python/cpython/blob/769d7d0c66c5b86e2dd29b9ce67ac2daaab1bb38/Python/compile.c#L5171

[issue42845] Third Party Module Installation using pip fails in Python 3.10.0a3

2021-01-06 Thread Shreyan Avigyan
New submission from Shreyan Avigyan : A few days ago, I tried installing Python 3.10.a3 for testing. After installing, I tried using the Python built-in modules, they were working fine. Then I tried going for installing third party modules using pip from the command prompt. While installing

<    1   2   3