Re: Horrible abuse of __init_subclass__, or elegant hack?

2021-04-01 Thread dn via Python-list
On 02/04/2021 10.13, Chris Angelico wrote: > On Fri, Apr 2, 2021 at 7:52 AM David L Neil via Python-list > wrote: >> Officially April-Fools Day is over (here), but... > This wasn't a prank post, although it was intended to give amusement > rather than real education or debate or anything. So there

Re: A 35mm film camera represented in Python object

2021-04-01 Thread Eli the Bearded
In comp.lang.python, Richard Damon wrote: > On 4/1/21 6:41 PM, 2qdxy4rzwzuui...@potatochowder.com wrote: >> Richard Damon wrote: >>> If you keep track of the positions as a floating point number, the >>> precision will be more than you could actually measure it. >> I won't disagree with Richard,

Re: A 35mm film camera represented in Python object

2021-04-01 Thread Richard Damon
On 4/1/21 6:41 PM, 2qdxy4rzwzuui...@potatochowder.com wrote: > On 2021-04-01 at 18:10:46 -0400, > Richard Damon wrote: > >> On 4/1/21 5:47 PM, D.M. Procida wrote: >>> D.M. Procida wrote: >>> Hi everyone, I've created - a representation of a C

Re: XanaNews Statistic for comp.lang.python. 4/1/2021 5:52:47 AM

2021-04-01 Thread Abdur-Rahmaan Janhangeer
So, is that mail spam or ...? -- https://mail.python.org/mailman/listinfo/python-list

Re: A 35mm film camera represented in Python object

2021-04-01 Thread Chris Angelico
On Fri, Apr 2, 2021 at 9:43 AM <2qdxy4rzwzuui...@potatochowder.com> wrote: > > On 2021-04-01 at 18:10:46 -0400, > Richard Damon wrote: > > > On 4/1/21 5:47 PM, D.M. Procida wrote: > > > D.M. Procida wrote: > > > > > >> Hi everyone, I've created - > > >

Re: A 35mm film camera represented in Python object

2021-04-01 Thread 2QdxY4RzWzUUiLuE
On 2021-04-01 at 18:10:46 -0400, Richard Damon wrote: > On 4/1/21 5:47 PM, D.M. Procida wrote: > > D.M. Procida wrote: > > > >> Hi everyone, I've created - > >> a representation of a Canonet G-III QL17 in Python. > >> > >> There's also documentation:

Re: A 35mm film camera represented in Python object

2021-04-01 Thread Mike Dewhirst
On 2/04/2021 8:47 am, D.M. Procida wrote: D.M. Procida wrote: Hi everyone, I've created - a representation of a Canonet G-III QL17 in Python. There's also documentation: . It's a pure Python model of the p

Re: A 35mm film camera represented in Python object

2021-04-01 Thread Richard Damon
On 4/1/21 5:47 PM, D.M. Procida wrote: > D.M. Procida wrote: > >> Hi everyone, I've created - >> a representation of a Canonet G-III QL17 in Python. >> >> There's also documentation: . >> >> It's a pure Python mod

Re: A 35mm film camera represented in Python object

2021-04-01 Thread D.M. Procida
D.M. Procida wrote: > Hi everyone, I've created - > a representation of a Canonet G-III QL17 in Python. > > There's also documentation: . > > It's a pure Python model of the physical sub-systems of a camera and

Re: Horrible abuse of __init_subclass__, or elegant hack?

2021-04-01 Thread Chris Angelico
On Fri, Apr 2, 2021 at 7:52 AM David L Neil via Python-list wrote: > > Officially April-Fools Day is over (here), but... This wasn't a prank post, although it was intended to give amusement rather than real education or debate or anything. So there's nothing wrong with keeping it going. :) > On

Re: XanaNews Statistic for comp.lang.python. 4/1/2021 5:52:47 AM

2021-04-01 Thread Chris Angelico
On Fri, Apr 2, 2021 at 7:55 AM dn via Python-list wrote: > > On 02/04/2021 01.19, Chris Angelico wrote: > > On Thu, Apr 1, 2021 at 10:56 PM The Doctor via Python-list > > wrote: > >> Top Posters > >> > >> Ranking Articles NameMost Used Newsreader > >> ---

Re: XanaNews Statistic for comp.lang.python. 4/1/2021 5:52:47 AM

2021-04-01 Thread dn via Python-list
On 02/04/2021 01.19, Chris Angelico wrote: > On Thu, Apr 1, 2021 at 10:56 PM The Doctor via Python-list > wrote: >> Top Posters >> >> Ranking Articles NameMost Used Newsreader >> --- -- >> 1 167 Tes

Re: Horrible abuse of __init_subclass__, or elegant hack?

2021-04-01 Thread David L Neil via Python-list
Officially April-Fools Day is over (here), but... On 01/04/2021 19.25, Chris Angelico wrote: > On Thu, Apr 1, 2021 at 3:36 PM dn via Python-list > wrote: >> >> On 01/04/2021 13.54, Chris Angelico wrote: >>> Real and imaginary are the same thing, just rotated a quarter turn >> >> In which dim

Re: Unable to use pip to install packages

2021-04-01 Thread MRAB
On 2021-04-01 19:42, Md Sohail Ansari via Python-list wrote: Hi Team, Thanks for your support. I am having trouble installing any packages using pip in Python 3.x (earlier had Python 3.8.3, so changed to 3.8.8) in Windows 10. Please help me with below issues:

Unable to use pip to install packages

2021-04-01 Thread Md Sohail Ansari via Python-list
Hi Team, Thanks for your support. I am having trouble installing any packages using pip in Python 3.x (earlier had Python 3.8.3, so changed to 3.8.8) in Windows 10. Please help me with below issues: ---C:\Users\mohsohai>pip install pytestTraceback (most

Re: [ANN] Free Python tutorial with exercises, cscx.org

2021-04-01 Thread Chris Angelico
On Fri, Apr 2, 2021 at 2:14 AM Rudy Matela wrote: > > Hello python-list members, > > I would like to announce the following educational project: > > Computer Science by Example https://cscx.org/ is a collection of short > programming exercises. The site can automatically grade students' > solutio

Re: NOT ABLE TO DOWNLOAD speech_recognition ON MY COMPUTER

2021-04-01 Thread Igor Korot
Hi, On Thu, Apr 1, 2021 at 12:23 PM ᗷᑌᑎᑎY wrote: > >Hello everyone. I am not able to download speech_recognition . I am not >professional just a beggnier but I decided and started developing a voice >commanding software and I need to download speech_recognition. When I >enter the

NOT ABLE TO DOWNLOAD speech_recognition ON MY COMPUTER

2021-04-01 Thread ᗷᑌᑎᑎY
Hello everyone. I am not able to download speech_recognition . I am not professional just a beggnier but I decided and started developing a voice commanding software and I need to download speech_recognition. When I enter the command pip install speech_recognition it say's we cannot

Re: Issues in starting Python application

2021-04-01 Thread Grant Edwards
On 2021-04-01, Mahira Pamnani wrote: > I have been trying hard to install Python on my PC since a long time. The > application gets installed but, for reasons unknown, it doesn't start. > It keeps asking to repair, modify or uninstall the application. That's because you're re-running the install

Re: Issues in starting Python application

2021-04-01 Thread Mats Wichmann
On 4/1/21 9:08 AM, Mahira Pamnani wrote: Sir I have been trying hard to install Python on my PC since a long time. The application gets installed but, for reasons unknown, it doesn't start. It keeps asking to repair, modify or uninstall the application. I have tried doing that too, but it still d

Re: NOT ABLE TO DOWNLOAD speech_recognition ON MY COMPUTER

2021-04-01 Thread Marco Ippolito
On 2021-04-01, ᗷᑌᑎᑎY wrote: > When I enter the command pip install speech_recognition it say’s we cannot > find a compatible version. Try: ``` pip install SpeechRecognition ``` What's the output? -- https://mail.python.org/mailman/listinfo/python-list

Re: Issues in starting Python application

2021-04-01 Thread Igor Korot
Hi, On Thu, Apr 1, 2021 at 10:41 AM Marco Ippolito wrote: > > On 2021-04-01, Mahira Pamnani wrote: > > Sir > > I have been trying hard to install Python on my PC since a long time. The > > application gets installed but, for reasons unknown, it doesn't start. > > It keeps asking to repair, modify

Re: memory consumption

2021-04-01 Thread Sam
On 3/29/21 5:12 AM, Alexey wrote: Hello everyone! I'm experiencing problems with memory consumption. I have a class which is doing ETL job. What`s happening inside: - fetching existing objects from DB via SQLAchemy - iterate over raw data - create new/update existing objects - commit cha

Re: Issues in starting Python application

2021-04-01 Thread Marco Ippolito
On 2021-04-01, Mahira Pamnani wrote: > Sir > I have been trying hard to install Python on my PC since a long time. The > application gets installed but, for reasons unknown, it doesn't start. > It keeps asking to repair, modify or uninstall the application. > I have tried doing that too, but it sti

Issues in starting Python application

2021-04-01 Thread Mahira Pamnani
Sir I have been trying hard to install Python on my PC since a long time. The application gets installed but, for reasons unknown, it doesn't start. It keeps asking to repair, modify or uninstall the application. I have tried doing that too, but it still doesn't give any results. Please guide me on

Re: memory consumption

2021-04-01 Thread Alexey
четверг, 1 апреля 2021 г. в 15:56:23 UTC+3, Marco Ippolito: > > > Are you running with systemd? > > > > I really don't know. > An example of how to check: > > ``` > $ readlink /sbin/init > /lib/systemd/systemd > ``` > > You want to check which program runs as PID 1. Thank you Marco -- h

Re: memory consumption

2021-04-01 Thread Alexey
четверг, 1 апреля 2021 г. в 15:46:21 UTC+3, Marco Ippolito: > I suspect the high watermark of `` needs to be reachable still and, > secondly, that a forceful constraint whilst running would crash the > container? Exactly. -- https://mail.python.org/mailman/listinfo/python-list

Re: Horrible abuse of __init_subclass__, or elegant hack?

2021-04-01 Thread Chris Angelico
On Thu, Apr 1, 2021 at 3:36 PM dn via Python-list wrote: > > On 01/04/2021 13.54, Chris Angelico wrote: > > Real and imaginary are the same thing, just rotated a quarter turn > > In which dimension(s)? Cartesian. > >> Without looking into the details/context: surely there's a more > >> strai

Re: Horrible abuse of __init_subclass__, or elegant hack?

2021-04-01 Thread Alan Gauld via Python-list
On 01/04/2021 00:14, Chris Angelico wrote: > On a scale of 1 to "submit this to The Daily WTF immediately", how bad > is this code? :) The only worthwhile test of code quality is whether a new member of the team, competent in the language but not an expert can understand the code in two readings

[ANN] Free Python tutorial with exercises, cscx.org

2021-04-01 Thread Rudy Matela
Hello python-list members, I would like to announce the following educational project: Computer Science by Example https://cscx.org/ is a collection of short programming exercises. The site can automatically grade students' solutions and it accepts submissions in Python. The exercises start sim

Re: memory consumption

2021-04-01 Thread Alexey
четверг, 1 апреля 2021 г. в 17:21:59 UTC+3, Mats Wichmann: > On 4/1/21 5:50 AM, Alexey wrote: > > Found it. As I said before the problem was lurking in the cache. > > Few days ago I read about circular references and things like that and > > I thought to myself that it might be the case. To buil

Re: memory consumption

2021-04-01 Thread Alexey
четверг, 1 апреля 2021 г. в 16:02:15 UTC+3, Barry: > > On 1 Apr 2021, at 13:46, Marco Ippolito wrote: > > > > > >> > What if you increase the machine's (operating system's) swap space? Does > that take care of the problem in practice? > >>> > >>> I can`t do that because it will aff

Re: memory consumption

2021-04-01 Thread Alexey
четверг, 1 апреля 2021 г. в 15:27:01 UTC+3, Chris Angelico: > On Thu, Apr 1, 2021 at 10:56 PM Alexey wrote: > > > > Found it. As I said before the problem was lurking in the cache. > > Few days ago I read about circular references and things like that and > > I thought to myself that it might

Re: memory consumption

2021-04-01 Thread Mats Wichmann
On 4/1/21 5:50 AM, Alexey wrote: Found it. As I said before the problem was lurking in the cache. Few days ago I read about circular references and things like that and I thought to myself that it might be the case. To build the cache I was using lots of 'setdefault' methods chained together s

Re: memory consumption

2021-04-01 Thread Barry
> On 1 Apr 2021, at 13:46, Marco Ippolito wrote: > >  >> What if you increase the machine's (operating system's) swap space? Does that take care of the problem in practice? >>> >>> I can`t do that because it will affect other containers running on this >>> host. >>> In my opinion i

Re: memory consumption

2021-04-01 Thread Marco Ippolito
> > Are you running with systemd? > > I really don't know. An example of how to check: ``` $ readlink /sbin/init /lib/systemd/systemd ``` You want to check which program runs as PID 1. ``` ps 1 ``` -- https://mail.python.org/mailman/listinfo/python-list

Re: memory consumption

2021-04-01 Thread Alexey
четверг, 1 апреля 2021 г. в 14:57:29 UTC+3, Barry: > > On 31 Mar 2021, at 09:42, Alexey wrote: > > > > среда, 31 марта 2021 г. в 01:20:06 UTC+3, Dan Stromberg: > >>> On Tue, Mar 30, 2021 at 1:25 AM Alexey wrote: > >>> > >>> > >>> I'm sorry. I didn't understand your question right. If I have

Re: memory consumption

2021-04-01 Thread Marco Ippolito
> >> What if you increase the machine's (operating system's) swap space? Does > >> that take care of the problem in practice? > > > > I can`t do that because it will affect other containers running on this > > host. > > In my opinion it may significantly reduce their performance. > > Assuming thi

Re: memory consumption

2021-04-01 Thread Chris Angelico
On Thu, Apr 1, 2021 at 10:56 PM Alexey wrote: > > Found it. As I said before the problem was lurking in the cache. > Few days ago I read about circular references and things like that and > I thought to myself that it might be the case. To build the cache I was > using lots of 'setdefault' methods

Re: XanaNews Statistic for comp.lang.python. 4/1/2021 5:52:47 AM

2021-04-01 Thread Chris Angelico
On Thu, Apr 1, 2021 at 10:56 PM The Doctor via Python-list wrote: > Top Posters > > Ranking Articles NameMost Used Newsreader > --- -- > 1 167 TestBank store G2 > 261 Vag

Re: memory consumption

2021-04-01 Thread Barry
> On 31 Mar 2021, at 09:42, Alexey wrote: > > среда, 31 марта 2021 г. в 01:20:06 UTC+3, Dan Stromberg: >>> On Tue, Mar 30, 2021 at 1:25 AM Alexey wrote: >>> >>> >>> I'm sorry. I didn't understand your question right. If I have 4 workers, >>> they require 4Gb >>> in idle state and some ex

XanaNews Statistic for comp.lang.python. 4/1/2021 5:52:47 AM

2021-04-01 Thread The Doctor via Python-list
XanaNews Statistic for comp.lang.python. 4/1/2021 5:52:47 AM >From article 587730 (3/1/2021 4:09:02 AM) to article 588588 (3/31/2021 11:40:40 PM) Number of threads ... 385 Number of articles .. 895 Average articles per thread . 2.32 Number of unanswered

Re: memory consumption

2021-04-01 Thread Alexey
Found it. As I said before the problem was lurking in the cache. Few days ago I read about circular references and things like that and I thought to myself that it might be the case. To build the cache I was using lots of 'setdefault' methods chained together self.__cache.setdefault(cluster_name,