Data model and attribute resolution in subclasses

2020-02-27 Thread Adam Preble
I have been making some progress on my custom interpreter project but I found I have totally blown implementing proper subclassing in the data model. What I have right now is PyClass defining what a PyObject is. When I make a PyObject from a PyClass, the PyObject sets up a __dict__ that is used

Re: Mental model of lookahead assertions

2020-02-27 Thread Python
Stefan Ram wrote: One can count overlapping occurences as follows. |>>> print(len(findall('(?=aa)','cb'))) |3 Every web page says that lookahead assertions do not consume nor move the "current position". But what mental model can I make of the regex engine that explains why

Re: Asyncio question (rmlibre)

2020-02-27 Thread rmlibre
What resources are you trying to conserve? If you want to try conserving time, you shouldn't have to worry about starting too many background tasks. That's because asyncio code was designed to be extremely time efficient at handling large numbers of concurrent async tasks. For your application

Re: Logging all the requests into a specific file

2020-02-27 Thread DL Neil via Python-list
On 28/02/20 9:29 AM, valon.januza...@gmail.com wrote: I am new to python and all of this, I am using this FastAPI, to build API, I want when users hit any endpoint for ex /products, that to be written into a file , how do I do it? The Python Standard Library offers a Logging library. It has "

Logging all the requests into a specific file

2020-02-27 Thread valon . januzaj98
Hello guys, I am new to python and all of this, I am using this FastAPI, to build API, I want when users hit any endpoint for ex /products, that to be written into a file , how do I do it? -- https://mail.python.org/mailman/listinfo/python-list

Managing concurrent.futures exit-handlers

2020-02-27 Thread Remy NOEL
Hello ! I am currently using concurrent.futures ThreadPoolExecutor, but i am annoyed by its exit_handler preventing program exit if any of the jobs it is running is blocked. Currently i can workaround it by either unregister the exit handler concurrent.futures.thread._python_exit or by subclassin