Re: ESR "Waning of Python" post

2018-10-16 Thread Marko Rauhamaa
Paul Rubin : > Marko Rauhamaa writes: >>> Right, if I need near realtime behaviour and must live >>> with [C]Python's garbage collector. >> Or any other GC ever invented. > > There are realtime ones, like the Azul GC for Java, that have bounded > delay in the milliseconds or lower. The total over

Re: Is it dangeous when using custom metaclass?

2018-10-16 Thread jfong
Gregory Ewing at 2018/10/16 UTC+8 PM 2:01:01 wrote > jf...@ms4.hinet.net wrote: > > class Structure(metaclass=StructureMeta): ... > > > > class PolyHeader(Structure): ... > > > > As my understanding, the metaclass's __init__ was called when a class was > > created. In the above example, both the

Questions about weakref

2018-10-16 Thread Frank Millman
Hi all I have some questions about using weakrefs. My first question is whether weakrefs are the correct tool for my situation. My use-case is not mentioned in the docs, so maybe it is not intended to be used this way. I have a lot of objects active in my app. Some of them (A) are fairly lo

Re: Questions about weakref

2018-10-16 Thread Thomas Jollans
On 2018-10-16 11:10, Frank Millman wrote: > Hi all > > I have some questions about using weakrefs. > > My first question is whether weakrefs are the correct tool for my > situation. My use-case is not mentioned in the docs, so maybe it is not > intended to be used this way. > > I have a lot of o

Package creation documentation?

2018-10-16 Thread Spencer Graves
  Where can I find a reasonable tutorial on how to create a Python package?   I've not created a Python package before, and I want to. Sadly, I'm having trouble finding reasonable documentation on how to do so.   According to the Python 3 Glossary, "a package is a Python module

Re: Package creation documentation?

2018-10-16 Thread Léo El Amri via Python-list
Given your coding experience also you may want to look at https://docs.python.org/3/reference/import.html#packages, which is the technical detail of what a package is (And "how" it's implemented). -- https://mail.python.org/mailman/listinfo/python-list

Re: Package creation documentation?

2018-10-16 Thread Thomas Jollans
On 2018-10-16 17:15, Spencer Graves wrote: >   Where can I find a reasonable tutorial on how to create a Python > package? > > >   I've not created a Python package before, and I want to. Sadly, > I'm having trouble finding reasonable documentation on how to do so. > > >   According

Re: Package creation documentation?

2018-10-16 Thread Léo El Amri via Python-list
Hello Spencer, On 16/10/2018 17:15, Spencer Graves wrote: > Where can I find a reasonable tutorial on how to create a Python > package? IMO, the best documentation about this is the tutorial: https://docs.python.org/3/tutorial/modules.html#packages > According to the Python 3 Glossar

Re: ESR "Waning of Python" post

2018-10-16 Thread jfine2358
On Tuesday, October 16, 2018 at 8:00:26 AM UTC+1, Marko Rauhamaa wrote: >https://making.pusher.com/golangs-real-time-gc-in-theory-and-practice/> I'm all in favour of collecting useful URLs. Here's some more suggestions: https://stackoverflow.com/questions/4491260/explanation-of-azuls-pauseles

Wikipedia on Python

2018-10-16 Thread Spencer Graves
  Thanks to Léo El Amri and Thomas Jollans for their quick and helpful replies to my question about "Package creation documentation".   Beyond that, I'd like to encourage people on this list to review the Wikipedia article on "Python (programming language)",[1] especially the claim th

Re: Wikipedia on Python

2018-10-16 Thread Chris Angelico
On Wed, Oct 17, 2018 at 5:05 AM Spencer Graves wrote: >Beyond that, I'd like to encourage people on this list to review > the Wikipedia article on "Python (programming language)",[1] especially > the claim that "a package is a Python module with an __path__ > attribute", which I added on 2

RE: Wikipedia on Python

2018-10-16 Thread Ryan Johnson
Not really having read the whole story here, just wanna say that Wikipedia articles already suffer from a tug-of-war between professionals and students. Don’t worsen the problem. Include lay explanation and go into the technical details in a natural progression. Don’t force the reader to make la

RE: ESR "Waning of Python" post

2018-10-16 Thread Ryan Johnson
Have seen this waning of python thread so many times. Hoping it would have waned by now. Lol. Sent from Mail for Windows 10 From: jfine2...@gmail.com Sent: Tuesday, October 16, 2018 12:42 PM To: python-list@python.org Subject: Re: ESR "Waning of Python" post On Tuesday, October 16, 2018 at 8:00

Re: Wikipedia on Python

2018-10-16 Thread Chris Warrick
On Tue, 16 Oct 2018 at 20:11, Chris Angelico wrote: > > On Wed, Oct 17, 2018 at 5:05 AM Spencer Graves > wrote: > >Beyond that, I'd like to encourage people on this list to review > > the Wikipedia article on "Python (programming language)",[1] especially > > the claim that "a package is

check whether a process is still running on remote hosts

2018-10-16 Thread tina_zy_qian--- via Python-list
I newly learned Python, and I need to wrap up a script to do following. Env: 1: One launcher Linux VM (from where to run the Python script) 2. 100+ Linux VM requirement: In general, run a remote_script on remote 100 VMs and get the log files generated to remote hosts back to launcher. steps 1.

Re: ESR "Waning of Python" post

2018-10-16 Thread Marko Rauhamaa
Paul Rubin : > But it's possible to do parallel GC with bounded latency. Perry > Cheng's 2001 PhD thesis says how to do it and is fairly readable: > > http://reports-archive.adm.cs.cmu.edu/anon/2001/CMU-CS-01-174.pdf Thanks. On a quick glance, it is difficult to judge what the worst-case time and

Re: check whether a process is still running on remote hosts

2018-10-16 Thread Larry Martell
On Tue, Oct 16, 2018 at 5:15 PM tina_zy_qian--- via Python-list wrote: > > I newly learned Python, and I need to wrap up a script to do following. > > Env: > 1: One launcher Linux VM (from where to run the Python script) > 2. 100+ Linux VM > > requirement: > In general, run a remote_script on remo

Re: check whether a process is still running on remote hosts

2018-10-16 Thread tina_zy_qian--- via Python-list
On Tuesday, October 16, 2018 at 2:22:29 PM UTC-7, larry@gmail.com wrote: > On Tue, Oct 16, 2018 at 5:15 PM tina_zy_qian--- via Python-list > wrote: > > > > I newly learned Python, and I need to wrap up a script to do following. > > > > Env: > > 1: One launcher Linux VM (from where to run the P

Re: check whether a process is still running on remote hosts

2018-10-16 Thread Chris Angelico
On Wed, Oct 17, 2018 at 10:11 AM tina_zy_qian--- via Python-list wrote: > > On Tuesday, October 16, 2018 at 2:22:29 PM UTC-7, larry@gmail.com wrote: > > This looks amazingly similar to a pre interview programming assignment > > was given once. > > Nice to know that. This is my daily work relat

Re: check whether a process is still running on remote hosts

2018-10-16 Thread Cameron Simpson
On 16Oct2018 14:14, tina_zy_q...@yahoo.com wrote: I newly learned Python, and I need to wrap up a script to do following. Env: 1: One launcher Linux VM (from where to run the Python script) 2. 100+ Linux VM requirement: In general, run a remote_script on remote 100 VMs and get the log files g

Re: Is it dangeous when using custom metaclass?

2018-10-16 Thread dieter
jf...@ms4.hinet.net writes: > Gregory Ewing at 2018/10/16 UTC+8 PM 2:01:01 wrote >> jf...@ms4.hinet.net wrote: >> > class Structure(metaclass=StructureMeta): ... >> > >> > class PolyHeader(Structure): ... >> > >> > As my understanding, the metaclass's __init__ was called when a class was >> > cre

Re: ESR "Waning of Python" post

2018-10-16 Thread Marko Rauhamaa
Paul Rubin : > Marko Rauhamaa writes: >> Emacs occasionally hangs for about a minute to perform garbage >> collection. > > I've never experienced that, especially with more recent versions that I > think do a little bit of heap tidying in the background. Even in the > era of much slower computer

Re: ESR "Waning of Python" post

2018-10-16 Thread Brian Oney via Python-list
On October 17, 2018 7:56:51 AM GMT+02:00, Marko Rauhamaa wrote: >I can't be positive about swapping. I don't remember hearing thrashing. >However, I do admit running emacs for months on end and occasionally >with huge buffers so the resident size can be a couple of gigabytes. > That's a pretty