Re: Asyncio question (rmlibre)

2020-02-28 Thread Frank Millman
On 2020-02-28 1:37 AM, rmli...@riseup.net wrote: > 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 larg

Help building python application from source

2020-02-28 Thread Mr. Lee Chiffre
sorry re posting because I forgot subject line in last email. I am a python noob. This is why I ask the python masters. There is a python software I want to install on the server it is called Electrumx. https://github.com/kyuupichan/electrumx is the link. I am having troubles with installing t

Re: Data model and attribute resolution in subclasses

2020-02-28 Thread Terry Reedy
On 2/28/2020 2:21 AM, Adam Preble wrote: 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, th

【Regarding Performance of a Python Script....】

2020-02-28 Thread Kenzi
Hello there, I have a question regarding a simple code snippet in Python: from subprocess import check_output for i in range(1024): check_output(['/bin/bash', '-c', 'echo 42'], close_fds=True) *I wonder why running it in Python 3.7 is much faster than Python 2.7? * (Python 3.7 is still fast

Friday Finking: Poly more thick

2020-02-28 Thread DL Neil via Python-list
How does one code a function/method signature so that it will accept either a set of key-value pairs, or the same data enclosed as a dict, as part of a general-case and polymorphic solution? Wikipedia: polymorphism is the provision of a single interface to entities of different types. ( https

wxFormBuilder

2020-02-28 Thread Edward Montague
The videos on YouTube by fandangleproductions, have been of some use. However as I also use the Geany editor, I find that I need to append this extra code to the Python script generated from wxFormBuilder. # - extra code --- class MyApp(wx.App): def OnI

Re: Mental model of lookahead assertions

2020-02-28 Thread Jon Ribbens via Python-list
On 2020-02-27, 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 > e