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
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
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
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
Shreyan Avigyan added the comment:
Sorry for the typos.
--
___
Python tracker
<https://bugs.python.org/issue44180>
___
___
Python-bugs-list mailing list
Unsub
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 '='?
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:
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
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
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
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
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.)
--
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
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
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
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
Shreyan Avigyan added the comment:
Also what's up with this open-pending issue?
--
status: open -> pending
___
Python tracker
<https://bugs.python.org
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.
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
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
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
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
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
Shreyan Avigyan added the comment:
Ok. Now it's back up again. Was a glitch perhaps.
--
___
Python tracker
<https://bugs.python.org/issue44303>
___
___
Change by Shreyan Avigyan :
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
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
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.")
--
___
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
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
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
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
Change by Shreyan Avigyan :
--
nosy: +shreyanavigyan
___
Python tracker
<https://bugs.python.org/issue38323>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Shreyan Avigyan :
--
pull_requests: +25162
pull_request: https://github.com/python/cpython/pull/26574
___
Python tracker
<https://bugs.python.org/issue38
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
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
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
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
201 - 238 of 238 matches
Mail list logo