Re: Friday Finking: Source code organisation

2020-01-01 Thread Cameron Simpson
On 02Jan2020 18:01, DL Neil wrote: On 29/12/19 5:49 PM, Cameron Simpson wrote: For main, i have the opposite habit. If a module has a main() function for command line use I usually want that right up the front:  #!/usr/bin/env python3    import...  def main(argv=None):    ... main comman

Re: Python, Be Bold!

2020-01-01 Thread Abdur-Rahmaan Janhangeer
if not self-updating, at least the ability to update Yours, Abdur-Rahmaan Janhangeer pythonmembers.club | github Mauritius -- https://mail.python.org/mailman/listinfo/python-list

Re: Friday Finking: Source code organisation

2020-01-01 Thread DL Neil via Python-list
On 29/12/19 5:49 PM, Cameron Simpson wrote: On 29Dec2019 09:49, Chris Angelico wrote: "Define before use" is a broad principle that I try to follow, even when the code itself doesn't mandate this. This generally means that "if name is main" is the very last thing in the file, and if there's a m

Re: Front end

2020-01-01 Thread James Lu
I would use software like Airtable. You set the columns, Airtable produces a type-checked form. Every spreadsheet also comes with its own API, so you can exfiltrate the data programmatically easily. On Sat, Dec 28, 2019, 10:36 L A Smit wrote: > Hi > > Don't know if this is the correct subject bu

Re: Does the argparse generate a wrong help message?

2020-01-01 Thread jfong
Random832於 2020年1月2日星期四 UTC+8上午5時04分36秒寫道: > On Fri, Dec 27, 2019, at 23:08, jf...@ms4.hinet.net wrote: > > > > optional arguments: > > > > -h, --help show this help message and exit > > > > --foo [FOO] foo help > > > > --goo GOOgoo help > > > > > > > > D:\Works\Python>py test.py --foo

Re: Does the argparse generate a wrong help message?

2020-01-01 Thread Random832
On Fri, Dec 27, 2019, at 23:08, jf...@ms4.hinet.net wrote: > > > optional arguments: > > > -h, --help show this help message and exit > > > --foo [FOO] foo help > > > --goo GOOgoo help > > > > > > D:\Works\Python>py test.py --foo 1 --goo 2 > > > 1 ['2'] > > So the square bracket means

Re: Python, Be Bold!

2020-01-01 Thread o1bigtenor
On Wed, Jan 1, 2020 at 1:24 AM Abdur-Rahmaan Janhangeer wrote: > > Greetings list, > > I wanted to make some suggestion about the Python interpreter but since > it's more high-level, i decided to post it here instead of python-ideas. > > Well, concerning distributing Python apps, a natural way is