Re: Definition of "property"

2021-05-30 Thread Eryk Sun
On 5/30/21, Ethan Furman wrote: > > > Properties are a special kind of attribute. Basically, when Python > encounters the following code: > > > > spam = SomeObject() > > print(spam.eggs) > > > > it looks up eggs in spam, and then examines eggs to see if it has a > __get__, __set__, o

RE: Definition of "property"

2021-05-30 Thread Avi Gross via Python-list
You guys are all very knowledgeable but he is asking what to say to an EDITOR who clearly may know little or nothing about computers and thinks python is a snake and not a language and may need to be spoken to in his own language which understands other forms of abstraction better. So, just for hu

Re: Definition of "property"

2021-05-30 Thread Dan Stromberg
On Sun, May 30, 2021 at 9:57 AM Irv Kalb wrote: > I am doing some writing (for an upcoming book on OOP), and I'm a little > stuck. > > I understand what a "property" is, how it is used and the benefits, but > apparently my explanation hasn't made the light bulb go on for my editor. > The editor i

Re: Definition of "property"

2021-05-30 Thread Mike Dewhirst
On 31/05/2021 2:57 am, Irv Kalb wrote: I am doing some writing (for an upcoming book on OOP), and I'm a little stuck. I understand what a "property" is, how it is used and the benefits, but apparently my explanation hasn't made the light bulb go on for my editor. The editor is asking for a de

Re: How to debug python + curses? [was: RE: Applying winpdb_reborn]

2021-05-30 Thread Cameron Simpson
On 31May2021 07:46, Chris Angelico wrote: >On Mon, May 31, 2021 at 7:03 AM Alan Gauld via Python-list > wrote: >> You are not alone. debugging curses is one of the biggest obstacles >> to its use. [...] > >Never had this problem with curses per se (partly because I've used it >very little), but a

Re: How to debug python + curses? [was: RE: Applying winpdb_reborn]

2021-05-30 Thread Chris Angelico
On Mon, May 31, 2021 at 7:03 AM Alan Gauld via Python-list wrote: > > On 30/05/2021 18:26, pjfarl...@earthlink.net wrote: > > I tried winpdb-reborn some time last year on my Win10 system (python 3.8.3 > > at that time), but could not figure out how to use it to debug a python > > script that uses

Re: Definition of "property"

2021-05-30 Thread dn via Python-list
On 31/05/2021 04.57, Irv Kalb wrote: > I am doing some writing (for an upcoming book on OOP), and I'm a little > stuck. > > I understand what a "property" is, how it is used and the benefits, but > apparently my explanation hasn't made the light bulb go on for my editor. > The editor is aski

Re: How to debug python + curses? [was: RE: Applying winpdb_reborn]

2021-05-30 Thread Alan Gauld via Python-list
On 30/05/2021 18:26, pjfarl...@earthlink.net wrote: > I tried winpdb-reborn some time last year on my Win10 system (python 3.8.3 > at that time), but could not figure out how to use it to debug a python > script that uses the curses module. You are not alone. debugging curses is one of the biggest

Re: Definition of "property"

2021-05-30 Thread Alan Gauld via Python-list
On 30/05/2021 17:57, Irv Kalb wrote: > I am doing some writing (for an upcoming book on OOP), and I'm a little > stuck. Oh dear, that's one of myt hot buttons I'm afraid! I hope it really is about OOP and not about classes. Classes are such a minor part of OOP that it is depressing how many boo

Re: Python doesn't work

2021-05-30 Thread Alan Gauld via Python-list
On 30/05/2021 12:23, Mr.Incognito wrote: >Hello > >I downloaded the latest versioon of Python and tried to open several .py >files, but it doesn't open. It opens for a sec, then closes itself. I >tried uninstalling and reinstalling, but it doesn't work. Most likely it is working b

Re: Definition of "property"

2021-05-30 Thread Terry Reedy
On 5/30/2021 12:57 PM, Irv Kalb wrote: I am doing some writing (for an upcoming book on OOP), and I'm a little stuck. I understand what a "property" is, how it is used and the benefits, but apparently my explanation hasn't made the light bulb go on for my editor. The editor is asking for a de

Re: Python doesn't work

2021-05-30 Thread Michael F. Stemper
On 30/05/2021 06.23, Mr.Incognito wrote: Hello I downloaded the latest versioon of Python and tried to open several .py files, but it doesn't open. It doesn't open, is that correct? It opens for a sec, then closes itself. No, I guess that it does open. My guess would b

Re: Python doesn't work

2021-05-30 Thread Igor Korot
Hi, On Sun, May 30, 2021 at 2:00 PM Mr.Incognito wrote: > >Hello > >I downloaded the latest versioon of Python and tried to open several .py >files, but it doesn't open. It opens for a sec, then closes itself. I >tried uninstalling and reinstalling, but it doesn't work. Did you t

Re: learning python ...

2021-05-30 Thread 황병희
hw writes: > Hi, > > I'm starting to learn python and have made a little example program > following a tutorial[1] I'm attaching. > > Running it, I'm getting: > > > Traceback (most recent call last): > File "[...]/hworld.py", line 18, in > print(isinstance(int, float)) > TypeError: isinsta

Re: Definition of "property"

2021-05-30 Thread Jon Ribbens via Python-list
On 2021-05-30, Irv Kalb wrote: > I understand what a "property" is, how it is used and the benefits, > but apparently my explanation hasn't made the light bulb go on for my > editor. The editor is asking for a definition of property. I've > looked at many articles on line and a number of books,

Python doesn't work

2021-05-30 Thread Mr . Incognito
Hello I downloaded the latest versioon of Python and tried to open several .py files, but it doesn't open. It opens for a sec, then closes itself. I tried uninstalling and reinstalling, but it doesn't work. I hope you can help me! Saadetud Windows 10 rakendusest [1]Meil

Re: Applying winpdb_reborn

2021-05-30 Thread Alan Gauld via Python-list
On 30/05/2021 00:03, Cameron Simpson wrote: > I'd imagine debugging is much like it is in C. Wait for the breakpoint > to trip, then inspect the programme variables. That's a pretty crude form of debugging (although much better than just single stepping from the beginning!). Adding conditional

Re: Definition of "property"

2021-05-30 Thread Ethan Furman
On 5/30/21 9:57 AM, Irv Kalb wrote: > I understand what a "property" is, how it is used and the benefits, but apparently my explanation hasn't made the light bulb go on for my editor. My answer from Stackoverflow [1]: > Properties are a special kind of attribute. Basically, when Python encoun

Re: Definition of "property"

2021-05-30 Thread Barry Scott
> On 30 May 2021, at 17:57, Irv Kalb wrote: > > I am doing some writing (for an upcoming book on OOP), and I'm a little > stuck. > > I understand what a "property" is, how it is used and the benefits, but > apparently my explanation hasn't made the light bulb go on for my editor. > The

How to debug python + curses? [was: RE: Applying winpdb_reborn]

2021-05-30 Thread pjfarley3
I tried winpdb-reborn some time last year on my Win10 system (python 3.8.3 at that time), but could not figure out how to use it to debug a python script that uses the curses module. Does anyone here know if winpdb-reborn or any other debugger can support 2-window debugging for a python script tha

Re: imaplib: is this really so unwieldy?

2021-05-30 Thread boB Stepp
On Sun, May 30, 2021 at 1:04 AM hw wrote: > > On 5/28/21 2:36 AM, boB Stepp wrote: > > > > Just as SMTP is the protocol for sending email, the Internet Message > > Access Protocol (IMAP) specifies how to communicate with an email > > provider’s server to retrieve emails sent to your email addres

Re: Definition of "property"

2021-05-30 Thread Chris Angelico
On Mon, May 31, 2021 at 2:58 AM Irv Kalb wrote: > > I am doing some writing (for an upcoming book on OOP), and I'm a little stuck. > > I understand what a "property" is, how it is used and the benefits, but > apparently my explanation hasn't made the light bulb go on for my editor. > The editor

Definition of "property"

2021-05-30 Thread Irv Kalb
I am doing some writing (for an upcoming book on OOP), and I'm a little stuck. I understand what a "property" is, how it is used and the benefits, but apparently my explanation hasn't made the light bulb go on for my editor. The editor is asking for a definition of property. I've looked at m

Re: Applying winpdb_reborn

2021-05-30 Thread Peter Otten
On 29/05/2021 01:12, Cameron Simpson wrote: On 28May2021 14:49, Rich Shepard wrote: On Fri, 28 May 2021, Dennis Lee Bieber wrote: It's apparently looking for some environment variable based upon the code at https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&ved=2ahUKEwjfpYm