RE: Which linux distro is more conducive for learning the Python programming language?

2022-08-04 Thread avi.e.gross
To be clear, the discussion strikes me oddly. You can learn python without a computer. Of course to actually have people write code and try it out is another story. Python by itself is simply a program that can be typed into an interpreter or given a file to process and works just as well on LINU

Re: Exclude 'None' from list comprehension of dicts

2022-08-04 Thread Weatherby,Gerard
Or: data = [d for d in [get_job_efficiency_dict(job_id) for job_id in job_ids] if d is not None] or for job_id in job_ids: if (d := get_job_efficiency_dict(job_id)) is not None: data.append(d) Personally, I’d got with the latter in my own code. — Gerard Weatherby | Application Arch

Re: Which linux distro is more conducive for learning the Python programming language?

2022-08-04 Thread Grant Edwards
On 2022-08-04, Christian Heimes wrote: > Fedora is an excellent choice for Python users. Fedora 36 already comes > with Python 3.11.0b5 in its main repository. In fact you have Python > 2.7, 3.5-3.11, PyPy 2.7, PyPy 3.7-3.9, and MicroPython at your fingertips. Except that real programmers use

Re: Exclude 'None' from list comprehension of dicts

2022-08-04 Thread MRAB
On 2022-08-04 12:51, Loris Bennett wrote: Hi, I am constructing a list of dictionaries via the following list comprehension: data = [get_job_efficiency_dict(job_id) for job_id in job_ids] However, get_job_efficiency_dict(job_id) uses 'subprocess.Popen' to run an external program and th

Re: Exclude 'None' from list comprehension of dicts

2022-08-04 Thread Antoon Pardon
Op 4/08/2022 om 13:51 schreef Loris Bennett: Hi, I am constructing a list of dictionaries via the following list comprehension: data = [get_job_efficiency_dict(job_id) for job_id in job_ids] However, get_job_efficiency_dict(job_id) uses 'subprocess.Popen' to run an external program and

Re: Which linux distro is more conducive for learning the Python programming language?

2022-08-04 Thread Christian Heimes
On 04/08/2022 20.12, Barry wrote: Noted with thanks Kushal. Since I can download FREE copies of RHEL 9.0, I will use it then. I consider rhel 9 is an old os. I would suggest using fedora over rhel. Fedora 36 has python 3.10 and the when fedora 37 is released it will have python 3.11. And fedor

Re: Which linux distro is more conducive for learning the Python programming language?

2022-08-04 Thread Barry
> On 4 Aug 2022, at 09:48, Turritopsis Dohrnii Teo En Ming > wrote: > > On Thu, 4 Aug 2022 at 13:02, Kushal Kumaran wrote: >> >>> On Thu, Aug 04 2022 at 10:22:41 AM, Turritopsis Dohrnii Teo En Ming >>> wrote: >>> Subject: Which linux distro is more conducive for learning the Python >>> pr

Exclude 'None' from list comprehension of dicts

2022-08-04 Thread Loris Bennett
Hi, I am constructing a list of dictionaries via the following list comprehension: data = [get_job_efficiency_dict(job_id) for job_id in job_ids] However, get_job_efficiency_dict(job_id) uses 'subprocess.Popen' to run an external program and this can fail. In this case, the dict should jus

Re: Which linux distro is more conducive for learning the Python programming language?

2022-08-04 Thread Tobiah
On 8/3/22 19:01, Turritopsis Dohrnii Teo En Ming wrote: Subject: Which linux distro is more conducive for learning the Python programming language? You might try Pythontu. Not really. Get the distro that looks appealing to you. One won't be better than the other with regard to learning pytho

Re: Exclude 'None' from list comprehension of dicts

2022-08-04 Thread Loris Bennett
r...@zedat.fu-berlin.de (Stefan Ram) writes: > "Loris Bennett" writes: >>data = [get_job_efficiency_dict(job_id) for job_id in job_ids] > ... >>filtered_data = list(filter(None, data)) > > You could have "get_job_efficiency_dict" return an iterable > that yields either zero dictionaries or on

My application failed to start because no Qt platform plugin could be initialized. Reinstalled the application several times my problem didn't got fixed.

2022-08-04 Thread MahaRaja Shiv
Sent from Mail for Windows -- https://mail.python.org/mailman/listinfo/python-list

Re: Which linux distro is more conducive for learning the Python programming language?

2022-08-04 Thread Grant Edwards
On 2022-08-04, Turritopsis Dohrnii Teo En Ming wrote: > Subject: Which linux distro is more conducive for learning the Python > programming language? You can learn Python on any Linux distribution. First answer this question: * Whom are you going to ask for help when you run into Linux questi

Re: Register multiple excepthooks?

2022-08-04 Thread 2QdxY4RzWzUUiLuE
On 2022-08-04 at 09:41:00 +0200, Albert-Jan Roskam wrote: >Thank you both. I'll give this a try. I think it would be nice if >the standard library function atexit.register would be improved, >such that the registered functions would not only be called upon >(a) normal program term

Re: Which linux distro is more conducive for learning the Python programming language?

2022-08-04 Thread Weatherby,Gerard
Just be aware https://docs.python.org/3/ defaults to the latest Python version (3.10). When looking up a module, it’s best to explicitly set the documentation to the version you are using. It won’t matter the vast majority of the time but I have been burned by trying to use a function or paramet

Re: Which linux distro is more conducive for learning the Python programming language?

2022-08-04 Thread Turritopsis Dohrnii Teo En Ming
On Thu, 4 Aug 2022 at 16:50, dn wrote: > > >> PS most of us will qualify for RedHat's Developer program[me] and free > >> copies of software. > > > > I can download free copies of RHEL 7.x, 8.x, and 9.x :) Just that I > > dunno which RHEL version is better. Is RHEL 9.0 the best out of 7.x, > > 8.x

Re: Which linux distro is more conducive for learning the Python programming language?

2022-08-04 Thread dn
>> PS most of us will qualify for RedHat's Developer program[me] and free >> copies of software. > > I can download free copies of RHEL 7.x, 8.x, and 9.x :) Just that I > dunno which RHEL version is better. Is RHEL 9.0 the best out of 7.x, > 8.x and 9.x? RedHat is a stable OpSys. Accordingly, it

Re: Which linux distro is more conducive for learning the Python programming language?

2022-08-04 Thread Turritopsis Dohrnii Teo En Ming
On Thu, 4 Aug 2022 at 13:02, Kushal Kumaran wrote: > > On Thu, Aug 04 2022 at 10:22:41 AM, Turritopsis Dohrnii Teo En Ming > wrote: > > Subject: Which linux distro is more conducive for learning the Python > > programming language? > > > > Good day from Singapore, > > > > May I know which linux

Re: Which linux distro is more conducive for learning the Python programming language?

2022-08-04 Thread Turritopsis Dohrnii Teo En Ming
On Thu, 4 Aug 2022 at 11:05, dn wrote: > > On 04/08/2022 14.31, Paul Bryan wrote: > > I wouldn't say any particular Linux distribution is appreciably better > > for Python development than another. I would suggest using a version of > > a Linux distribution that supports a recent Python release (e

Re: Which linux distro is more conducive for learning the Python programming language?

2022-08-04 Thread Turritopsis Dohrnii Teo En Ming
On Thu, 4 Aug 2022 at 10:47, orzodk wrote: > > Turritopsis Dohrnii Teo En Ming writes: > > > noted with thanks. I have been using Linux for more than 10 years already > > Ah, if you're familiar with Redhat (RPM) based distributions, consider > Fedora as you will have access to newer versions soon

Re: Register multiple excepthooks?

2022-08-04 Thread Albert-Jan Roskam
On Aug 1, 2022 19:34, Dieter Maurer wrote: Albert-Jan Roskam wrote at 2022-7-31 11:39 +0200: >   I have a function init_logging.log_uncaught_errors() that I use for >   sys.excepthook. Now I also want to call another function (ffi.dlclose()) >   upon abnormal terminati