Re: evaluation question

2023-01-30 Thread Greg Ewing
On 30/01/23 10:41 pm, mutt...@dastardlyhq.com wrote: What was the point of the upheaval of converting the print command in python 2 into a function in python 3 if as a function print() doesn't return anything useful? It was made a function because there's no good reason for it to have special s

Re: Custom help format for a choice argparse argument

2023-01-30 Thread Peter Otten
On 27/01/2023 21:31, Ivan "Rambius" Ivanov wrote: Hello, I am developing a script that accepts a time zone as an option. The time zone can be any from pytz.all_timezones. I have def main(): parser = argparse.ArgumentParser() parser.add_argument("-z", "--zone", choices=pytz.all_timezon

Re: evaluation question

2023-01-30 Thread Rob Cliffe via Python-list
On 30/01/2023 09:41, mutt...@dastardlyhq.com wrote: On Sun, 29 Jan 2023 23:57:51 -0500 Thomas Passin wrote: On 1/29/2023 4:15 PM, elvis-85...@notatla.org.uk wrote: On 2023-01-28, Louis Krupp wrote: On 1/27/2023 9:37 AM, mutt...@dastardlyhq.com wrote: eval("print(123)") 123 Does OP ex

Re: evaluation question

2023-01-30 Thread Muttley
On Sun, 29 Jan 2023 23:57:51 -0500 Thomas Passin wrote: >On 1/29/2023 4:15 PM, elvis-85...@notatla.org.uk wrote: >> On 2023-01-28, Louis Krupp wrote: >>> On 1/27/2023 9:37 AM, mutt...@dastardlyhq.com wrote: >> >> >>> eval("print(123)") 123 >> >> >> Does OP expect the text to come fro

Re: Usenet vs. Mailing-list

2023-01-30 Thread Grant Edwards
On 2023-01-28, Dennis Lee Bieber wrote: > On Sat, 28 Jan 2023 20:07:44 +, Chris Green declaimed the > following: > > >>As far as I am aware the mirroring of the Python mailing list on >>comp.lan.python works perfectly. I love gmane! :-) > > Is gmane's gmane.comp.python.general allowing

Re: Usenet vs. Mailing-list

2023-01-30 Thread Grant Edwards
On 2023-01-28, Chris Green wrote: > As far as I am aware the mirroring of the Python mailing list on > comp.lan.python works perfectly. I love gmane! :-) If gmane stopped working, I'd have to retire and give up on computers. I supposed I might be able to hammer procmail and mutt into something