[Python-ideas] Re: Descriptor __get__ and __set__ argument discrepancy

2023-10-19 Thread dn via Python-ideas
On 19/10/2023 20.43, Dom Grigonis wrote: On 19 Oct 2023, at 10:27, dn via Python-ideas wrote: On 19/10/2023 19.50, Dom Grigonis wrote: Thank you, Good information, thank you. Was not aware of __set_name__. IIRC that was one of the updates/improvements. Thanks to whomsoever...! The

[Python-ideas] Re: Descriptor __get__ and __set__ argument discrepancy

2023-10-19 Thread dn via Python-ideas
to make use of them in our application code... (YMMV!) -- Regards, =dn ___ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/

[Python-ideas] Re: Descriptor __get__ and __set__ argument discrepancy

2023-10-18 Thread dn via Python-ideas
/datamodel.html#descriptors -- Regards, =dn ___ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://

[Python-ideas] Re: Multiple arguments to str.partition and bytes.partition

2023-01-09 Thread dn
On 10/01/2023 01.19, James Addison wrote: On Sun, 8 Jan 2023 at 20:20, dn wrote: Herewith a repetition of an earlier repetition of a call for Python examples and use-cases. (to better justify the base-idea, which I support) (and hence earlier illustration/question: does the sep belong

[Python-ideas] Re: Multiple arguments to str.partition and bytes.partition

2023-01-08 Thread dn
one thereof) - which can sometimes trip-up our RegEx-favoring colleagues. NB please recall that the current-implementation doesn't throw an exception if the separator is not-found, but returns ( str, '', '', ) * again/still dislike using such as illustration/justifica

[Python-ideas] Re: Multiple arguments to str.partition and bytes.partition

2023-01-07 Thread dn
;, 'baz', ), ) NB partition() currently returns a tuple of strings, do you intend to also propose output as a list? -- -- Regards, =dn ___ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas

[Python-ideas] Re: Idea: Tagged strings in python

2022-12-17 Thread dn
lzma algorithms, and the creation of ZIP- and tar-format archives. ... ยป https://docs.python.org/3/library/archiving.html Disclaimer: JetBrains sponsors our PUG with monthly prizes, eg PyCharm. -- Regards, =dn ___ Python-ideas mailing list -- p

[Python-ideas] Re: Enhancing variable scope control

2022-11-30 Thread dn
e lives and learns... OTOH given that programming has been described as "choosing good names", I can't remember the last time a naming-collision/scope-issue proved that I'm not the smartest person in the room... -- Regards, =dn

[Python-ideas] Re: Native support for units [was: custom literals]

2022-04-03 Thread dn
ion? How about writing sample Python code to accomplish this, eg some_meaningful_identifier_here = input("How old are you? ") or are you thinking: class Weight(): ... weight = Weight(input(etc)) or some combination thereof, or another approach, or ...? -- Regards,

[Python-ideas] Re: Add a replace method to tuples

2022-03-17 Thread dn
e_list(): ... the_list[ 10 ] = 10 ... """ >>> the_list = l[ : ] >>> tm.timeit( stmt=splice_in_place, number=100_000_000 ) 6.726862345007248 but please be prepared for code-review criticism! Once-again, there's no significant speed-advantage. So, ...