Re: Book recommendation? For getting up to date

2025-02-16 Thread Jan Erik Moström via Python-list
On 16 Feb 2025, at 23:06, Thomas Passin via Python-list wrote: > I don't have a book for them but I think you should look into the (relatively > new) type annotation system, as well as asynchronized programming. The latter > is especially of interest because the older techniques have been remove

Re: Book recommendation? For getting up to date

2025-02-16 Thread Jan Erik Moström via Python-list
On 16 Feb 2025, at 20:59, dn via Python-list wrote: > When stop to think about it, this is quite a request: > don't give me what I do know, > do give me what I don't know! 😜 > That said, you are correct: the bulk of new publications seem to (still) aim > at the Beginner end of the continuum (se

Re: Book recommendation? For getting up to date

2025-02-16 Thread Jan Erik Moström via Python-list
On 16 Feb 2025, at 20:47, rbowman via Python-list wrote: > David Beasley's 'Python Distilled'. The author doesn't enumerate Python 3 > features specifically but as the title suggests hits the important > concepts. Thanks, I'll take a look = jem -- https://mail.python.org/mailman/listinfo/python

Book recommendation? For getting up to date

2025-02-16 Thread Jan Erik Moström via Python-list
I'm looking for a book that would teach me the lastest and greatest parts of Python, does anyone have any recommendations? I've looked at python.org and pythonbooks.org but I couldn't decide which one to get. I used to be fairly good at Python, but I haven't done any serious programming in the

Re: Passing info to function used in re.sub

2023-09-05 Thread Jan Erik Moström via Python-list
On 3 Sep 2023, at 18:10, Jan Erik Moström via Python-list wrote: > I'm looking for some advice for how to write this in a clean way Thanks for all the suggestion, I realize that I haven't written Python code in a while. I should have remembered this myself !!! Thanks for remindi

Re: Passing info to function used in re.sub

2023-09-03 Thread Jan Erik Moström via Python-list
On 3 Sep 2023, at 19:13, MRAB via Python-list wrote: > You could use pass an anonymous function (a lambda) to re.sub: Of course !! Thanks. = jem -- https://mail.python.org/mailman/listinfo/python-list

Passing info to function used in re.sub

2023-09-03 Thread Jan Erik Moström via Python-list
I'm looking for some advice for how to write this in a clean way I want to replace some text using a regex-pattern, but before creating replacement text I need to some file checking/copying etc. My code right now look something like this: def fix_stuff(m): # Do various things that invol