Skip to main content
4 votes
3 answers
180 views

I'm experimenting with asynchronous patterns in Python and was curious what happens if I define a __del__ method using async def in Python 3.12. For example: class MyClass: async def __del__(self):...
LucasL's user avatar
  • 1
2 votes
1 answer
549 views

somewhat inexperienced in python. I am coming from C# world, and I am trying to figure out what is the best practice to create a data structure in python that: can have empty fields (None) can have ...
concentriq's user avatar
0 votes
2 answers
99 views

I want to a method that runs when object reference count is changed. is there a method like the following code ? class Foo(): def __method__(self): print("ojbect reference count is ...
TheOnlyWayUp's user avatar
0 votes
0 answers
80 views

I'm working with gitlab webhooks and I need to choose which data model to use in my project. I'm using the Python-gitlab library to work with gitlab, and this library has its own data models for all ...
Industry666's user avatar
0 votes
3 answers
96 views

I'm writing code for a Deep Q Network in python. My computer has 32GB of memory but I run into significant issues as the training goes on because the replay buffer maxes out the RAM. I'm looking ...
Bryan Carty's user avatar
0 votes
1 answer
443 views

I have read answers for this question: What are metaclasses in Python? and this question: In Python, when should I use a meta class? and skimmed through documentation: Data model. It is very possible ...
alex_why's user avatar
  • 137
2 votes
1 answer
503 views

As far as I know, __weakref__ is a descriptor defined in class, so that if it invoked from the instances of the class, it will give the weakref object: from weakref import ref class A: pass obj =...
S.B's user avatar
  • 17k
0 votes
1 answer
537 views

I've got some imported packages with tricky structure and need to call some method that bases on lots of other methods with non-default parameters, which are not class attributes themself like ...
MosQuan's user avatar
  • 162

15 30 50 per page
1
2 3 4 5
7