RE: OT: Addition of a .= operator

2023-05-24 Thread avi.e.gross
It may be a matter of taste and policies, Dave. I am talking about whether to write your code so it looks good to you, and dealing with issues like error messages only when needed, or whether to first do all kinds of things to catch errors or make it easier if they pop up. Python can be written

Re: Tkinter docs?

2023-05-24 Thread Christian Gollwitzer
Am 24.05.23 um 03:18 schrieb Rob Cliffe: I have recently started converting a large project to tkinter, starting with zero knowledge of tkinter.  (You are free to think: BAD IDEA. ) Welcome to the awesome world of GUI development.     I was writing a subclass of the Checkbutton class

getting rid of the recursion in __getattribute__

2023-05-24 Thread A KR
It is perfectly explained in the standards here [1] saying that: In order to avoid infinite recursion in this method, its implementation should always call the base class method with the same name to access any attributes it needs, for example, object.__getattribute__(self, name).

Re: Is there a Python module to parse a date like the 'date' command in Linux?

2023-05-24 Thread Mike Dewhirst
On 23/05/2023 7:16 pm, Chris Green wrote: Mike Dewhirst wrote: [-- multipart/mixed, encoding 7bit, 22 lines --] [-- text/plain, encoding base64, charset: UTF-8, 16 lines --] On 21/05/2023 5:53 am, Chris Green wrote: I'm converting a bash script to python as it has become rather clumsy

Re: Tkinter docs?

2023-05-24 Thread Cameron Simpson
On 24May2023 02:18, Rob Cliffe wrote:     There doesn't seem to be any decent documentation for it anywhere. Already mentioned in the replies, I use this: https://tkdocs.com/shipman/index.html quite a lot. -- https://mail.python.org/mailman/listinfo/python-list

Re: OT: Addition of a .= operator

2023-05-24 Thread Peter J. Holzer
On 2023-05-24 12:10:09 +1200, dn via Python-list wrote: > Perhaps more psychology rather than coding? Both. As they say, coding means writing for other people first, for the computer second. So that means anticipating what will be least confusing for that other person[1] who's going to read that

Re: Addition of a .= operator

2023-05-24 Thread Peter J. Holzer
On 2023-05-24 08:51:19 +1000, Chris Angelico wrote: > On Wed, 24 May 2023 at 08:48, Peter J. Holzer wrote: > > Yes, that probably wasn't the best example. I sort of deliberately > > avoided method chaining here to make my point that you don't have to > > invent a new variable name for every

Re: Tkinter docs?

2023-05-24 Thread Chris Angelico
On Wed, 24 May 2023 at 13:11, Rob Cliffe via Python-list wrote: > > I have recently started converting a large project to tkinter, starting > with zero knowledge of tkinter. (You are free to think: BAD IDEA. ) > I am well aware that adopting a new tool always involves a learning > curve, and