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
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:
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
Change by Shreyan Avigyan :
--
pull_requests: +25162
pull_request: https://github.com/python/cpython/pull/26574
___
Python tracker
<https://bugs.python.org/issue38
Change by Shreyan Avigyan :
--
nosy: +shreyanavigyan
___
Python tracker
<https://bugs.python.org/issue38323>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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:
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:
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'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:
> 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:
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
Change by Shreyan Avigyan :
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Shreyan Avigyan added the comment:
Ok. Now it's back up again. Was a glitch perhaps.
--
___
Python tracker
<https://bugs.python.org/issue44303>
___
___
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:
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
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:
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:
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:
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:
Also what's up with this open-pending issue?
--
status: open -> pending
___
Python tracker
<https://bugs.python.org
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:
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
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
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
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.)
--
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:
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:
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:
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:
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:
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:
Sorry for the typos.
--
___
Python tracker
<https://bugs.python.org/issue44180>
___
___
Python-bugs-list mailing list
Unsub
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:
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:
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
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:
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
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:/
Shreyan Avigyan added the comment:
A friendly ping
--
___
Python tracker
<https://bugs.python.org/issue44099>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Shreyan Avigyan :
--
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue44148>
___
___
Pyth
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
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
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
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
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
Change by Shreyan Avigyan :
--
resolution: -> wont fix
___
Python tracker
<https://bugs.python.org/issue44130>
___
___
Python-bugs-list mailing list
Un
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
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
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
Shreyan Avigyan added the comment:
Sure
--
___
Python tracker
<https://bugs.python.org/issue44130>
___
___
Python-bugs-list mailing list
Unsubscribe:
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,
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
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
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
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
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
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
Shreyan Avigyan added the comment:
Yes, hard refresh fixes it. Thanks a lot.
--
___
Python tracker
<https://bugs.python.org/issue44103>
___
___
Python-bug
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
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
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
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-
Shreyan Avigyan added the comment:
Ping
--
___
Python tracker
<https://bugs.python.org/issue43804>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Shreyan Avigyan added the comment:
Sorry, for the disturbance in the nosy list but it's glitching.
--
___
Python tracker
<https://bugs.python.org/is
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
Change by Shreyan Avigyan :
--
nosy: -erlendaasland
___
Python tracker
<https://bugs.python.org/issue44076>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Shreyan Avigyan :
--
nosy: +erlendaasland
___
Python tracker
<https://bugs.python.org/issue44076>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Shreyan Avigyan :
--
nosy: +christian.heimes
___
Python tracker
<https://bugs.python.org/issue44076>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
<
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
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
Shreyan Avigyan added the comment:
What is the input you're giving?
--
___
Python tracker
<https://bugs.python.org/issue44083>
___
___
Python-bugs-list m
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
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
Shreyan Avigyan added the comment:
I figured out the commands. The problem is they are not upgraded.
--
___
Python tracker
<https://bugs.python.org/issue43
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
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.
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
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
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
Change by Shreyan Avigyan :
Added file: https://bugs.python.org/file50024/Extension2.h
___
Python tracker
<https://bugs.python.org/issue44066>
___
___
Python-bugs-list m
Change by Shreyan Avigyan :
Added file: https://bugs.python.org/file50023/Extension.h
___
Python tracker
<https://bugs.python.org/issue44066>
___
___
Python-bugs-list m
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
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
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
Change by Shreyan Avigyan :
--
versions: +Python 3.11
___
Python tracker
<https://bugs.python.org/issue44061>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
&
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
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'
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
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.
&
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
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
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
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
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
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
Change by Shreyan Avigyan :
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
1 - 100 of 238 matches
Mail list logo