Re: I need some help interpreting this error

2021-02-17 Thread 2QdxY4RzWzUUiLuE
On 2021-02-17 at 17:36:48 +, Chris Green wrote: > Stefan Ram wrote: > > Chris Green writes: > > >chris@cheddar$ tail mail.err > > >Traceback (most recent call last): > > > File "/home/chris/.mutt/bin/filter.py", line 95, in > > >if sbstrip in msghdr["subject"]: > > >

Re: I need some help interpreting this error

2021-02-17 Thread 2QdxY4RzWzUUiLuE
On 2021-02-17 at 16:52:55 +, Chris Green wrote: > Stefan Ram wrote: > > Chris Green writes: > > >But msghdr["subject"] is surely just a string isn't it? Why is it > > >complaining about something of type 'Header'? > > > > What would you do to debug-print the type of an object? > > >

Re: I need some help interpreting this error

2021-02-17 Thread Chris Green
Stestagg wrote: > I don't particularly like to encourage this shotgun help request because, > as previous commenter suggests, debugging this yourself is best. > > Sometimes debugging is super hard, and especially so when uncommon > situations occur, but it's always far easier

Re: I need some help interpreting this error

2021-02-17 Thread Stestagg
Some sources, in case they help: Message.get() calls policy.header_fetch_parse ( https://github.com/python/cpython/blob/cd80f430daa7dfe7feeb431ed34f88db5f64aa30/Lib/email/message.py#L471 ) Compat32.header_fetch_parse calls self._sanitize_header ( https://github.com/python/cpython/blob

Re: I need some help interpreting this error

2021-02-17 Thread Chris Green
Stefan Ram wrote: > Chris Green writes: > >chris@cheddar$ tail mail.err > >Traceback (most recent call last): > > File "/home/chris/.mutt/bin/filter.py", line 95, in > >if sbstrip in msghdr["subject"]: > >TypeError: argument of type 'Header' is not iterable > >But

Re: I need some help interpreting this error

2021-02-17 Thread Stestagg
I don't particularly like to encourage this shotgun help request because, as previous commenter suggests, debugging this yourself is best. Sometimes debugging is super hard, and especially so when uncommon situations occur, but it's always far easier to debug things when you have visibility

Re: I need some help interpreting this error

2021-02-17 Thread Chris Green
2qdxy4rzwzuui...@potatochowder.com wrote: > On 2021-02-17 at 16:42:03 +, > Chris Green wrote: > > > 2qdxy4rzwzuui...@potatochowder.com wrote: > > > On 2021-02-17 at 15:40:27 +, > > > Chris Green wrote: > > > > > > > I'm running this using Python 3.7 on a Linux system. > > > > > > > >

Re: I need some help interpreting this error

2021-02-17 Thread Chris Green
Stefan Ram wrote: > Chris Green writes: > >But msghdr["subject"] is surely just a string isn't it? Why is it > >complaining about something of type 'Header'? > > What would you do to debug-print the type of an object? > I don't know, what would I do? :-) Without knowing what provokes the

Re: I need some help interpreting this error

2021-02-17 Thread 2QdxY4RzWzUUiLuE
On 2021-02-17 at 16:42:03 +, Chris Green wrote: > 2qdxy4rzwzuui...@potatochowder.com wrote: > > On 2021-02-17 at 15:40:27 +, > > Chris Green wrote: > > > > > I'm running this using Python 3.7 on a Linux system. > > > > > > Most of the time (i.e. for a couple of days now) the program

Re: I need some help interpreting this error

2021-02-17 Thread Chris Green
2qdxy4rzwzuui...@potatochowder.com wrote: > On 2021-02-17 at 15:40:27 +, > Chris Green wrote: > > > I'm running this using Python 3.7 on a Linux system. > > > > Most of the time (i.e. for a couple of days now) the program has been > > satifactorily delivering mail messages, hundreds of

Re: I need some help interpreting this error

2021-02-17 Thread 2QdxY4RzWzUUiLuE
On 2021-02-17 at 15:40:27 +, Chris Green wrote: > I'm running this using Python 3.7 on a Linux system. > > Most of the time (i.e. for a couple of days now) the program has been > satifactorily delivering mail messages, hundreds of them. However one > mail message has provoked the following

I need some help interpreting this error

2021-02-17 Thread Chris Green
I'm running this using Python 3.7 on a Linux system. Most of the time (i.e. for a couple of days now) the program has been satifactorily delivering mail messages, hundreds of them. However one mail message has provoked the following error:- chris@cheddar$ tail mail.err Traceback (most

[issue21309] Confusing "see also" for generic C-level __init__ methods in help output

2021-02-15 Thread Larry Hastings
Change by Larry Hastings : -- nosy: -larry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21309] Confusing "see also" for generic C-level __init__ methods in help output

2021-02-15 Thread Irit Katriel
Irit Katriel added the comment: Still the same in 3.10: Python 3.10.0a5+ (heads/master:bf2e7e55d7, Feb 11 2021, 23:09:25) [MSC v.1928 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> help

need help with a ctypes project for PyPI

2021-02-03 Thread Simon Zhang
. I think this is something basic involving paths but could be more involved. Can anyone help!! Thanks, Simon Zhang -- https://mail.python.org/mailman/listinfo/python-list

[issue42966] argparse: customizable help formatter

2021-01-29 Thread Tadek Kijkowski
Tadek Kijkowski added the comment: This is just repackaging old ideas into nice box. Instead of creating lambdas or generator function for each particular case, there is one easy to use, universal class. It will be finally written in official documentation how to change indentation.

[issue42966] argparse: customizable help formatter

2021-01-29 Thread Tadek Kijkowski
Change by Tadek Kijkowski : -- keywords: +patch pull_requests: +23197 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24377 ___ Python tracker ___

[issue43024] improve signature (in help, etc) for functions taking sentinel defaults

2021-01-26 Thread Irit Katriel
Change by Irit Katriel : -- nosy: +ZackerySpytz, pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: help

2021-01-26 Thread Ethan Furman
On 1/26/21 9:05 AM, Terry Reedy wrote: On 1/26/2021 4:01 AM, Maziar Ghasemi wrote: ... Please do not repost, especially the same day. Maziar Ghasemi appears to be a new user, and had to sign up to the Python List mailing list. Are you seeing his request twice because you use gmane? --

Re: help

2021-01-26 Thread Terry Reedy
On 1/26/2021 4:01 AM, Maziar Ghasemi wrote: Hi help me to repair this erorr: Warning: translation file 'git_en_US' could not be loaded. Using default. and download python39.dll Please do not repost, especially the same day. On 1/26/21, Maziar Ghasemi wrote: Hi help me to repair this erorr

Re: help

2021-01-26 Thread Maziar Ghasemi
Hi help me to repair this erorr: Warning: translation file 'git_en_US' could not be loaded. Using default. and download python39.dll On 1/26/21, Maziar Ghasemi wrote: > Hi > help me to repair this erorr: > Warning: translation file 'git_en_US' could not be loaded. > Using default. &g

[issue43024] improve signature (in help, etc) for functions taking sentinel defaults

2021-01-25 Thread Irit Katriel
Irit Katriel added the comment: The PR changes the output to: >>> help(traceback.print_exception) Help on function print_exception in module traceback: print_exception(exc, /, value=, tb=, limit=None, file=None, chain=True) -- ___ Pytho

[issue43024] improve signature (in help, etc) for functions taking sentinel defaults

2021-01-25 Thread Irit Katriel
New submission from Irit Katriel : The "sentinel" default value don't render nicely in the signature: >>> import traceback >>> help(traceback.print_exception) Help on function print_exception in module traceback: print_exception(exc, /, value=, tb=, limit

[issue43024] improve signature (in help, etc) for functions taking sentinel defaults

2021-01-25 Thread Irit Katriel
Change by Irit Katriel : -- Removed message: https://bugs.python.org/msg385634 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue43024] improve signature (in help, etc) for functions taking sentinel defaults

2021-01-25 Thread Irit Katriel
Change by Irit Katriel : -- Removed message: https://bugs.python.org/msg385635 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue43024] improve signature (in help, etc) for functions taking sentinel defaults

2021-01-25 Thread Irit Katriel
Irit Katriel added the comment: The PR changes the output to: >>> help(traceback.print_exception) Help on function print_exception in module traceback: print_exception(exc, /, value=, tb=, limit=None, file=None, chain=True) -- ___ Pytho

[issue43024] improve signature (in help, etc) for functions taking sentinel defaults

2021-01-25 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch pull_requests: +23150 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24331 ___ Python tracker ___

[issue43024] improve signature (in help, etc) for functions taking sentinel defaults

2021-01-25 Thread Irit Katriel
Change by Irit Katriel : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43024] improve signature (in help, etc) for functions taking sentinel defaults

2021-01-25 Thread Irit Katriel
New submission from Irit Katriel : The "sentinel" default value don't render nicely in the signature: >>> help(traceback.print_exception) Help on function print_exception in module traceback: print_exception(exc, /, value=, tb=, limit=None, file=None, chain=True) --

[issue42980] argparse: GNU-style help formatter

2021-01-22 Thread Will Noble
Will Noble added the comment: Ya I was following the precedent of non-documentation figuring that formal documentation should be done for the entire class and that would be a much larger undertaking and maybe involve further refactoring. I could potentially undertake that task in the future

[issue42966] argparse: customizable help formatter

2021-01-22 Thread paul j3
) The need for improving help customization has been around for a long time: https://bugs.python.org/issue11695 Improve argparse usage/help customization https://bugs.python.org/issue32123 Make the API of argparse.HelpFormatter public -- ___ Python

[issue42875] argparse incorrectly shows help string on a new line in case of long command string

2021-01-22 Thread paul j3
paul j3 added the comment: This issue is discussed in: https://bugs.python.org/issue34724 argparse subparser help indent too short and https://stackoverflow.com/questions/3215/max-help-position-is-not-works-in-python-argparse-library

[issue42980] argparse: GNU-style help formatter

2021-01-22 Thread paul j3
paul j3 added the comment: I was thinking of a refactoring that included the ', '.join(...) loop, but on further thought your refactoring might be enough for the case I raised. For example: def _format_option_with_args(self, option_string, args_string): if

[issue42980] argparse: GNU-style help formatter

2021-01-21 Thread Will Noble
Will Noble added the comment: The main contribution of my PR is simply factoring out _format_option_with_args as an overridable method. Note that this actually enables subclassing HelpFormatter to produce all the examples you presented above with 1-3 trivial lines of code, as opposed to

[issue42980] argparse: GNU-style help formatter

2021-01-21 Thread paul j3
paul j3 added the comment: The refactoring looks reasonable. But while we are tweaking: def _format_action_invocation(self, action): I wonder if we also give users more control over how multiple option strings are formatted. Currently if parser.add_argument('-f', '--foo', help

[issue42966] argparse: customizable help formatter

2021-01-21 Thread hai shi
Change by hai shi : -- nosy: +paul.j3, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42980] argparse: GNU-style help formatter

2021-01-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: This sounds reasonable to me and the patch is non-invasive. Paul, what do you think? -- ___ Python tracker ___

[issue42980] argparse: GNU-style help formatter

2021-01-20 Thread hai shi
Change by hai shi : -- nosy: +paul.j3, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42980] argparse: GNU-style help formatter

2021-01-20 Thread Will Noble
Change by Will Noble : -- keywords: +patch pull_requests: +23098 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24275 ___ Python tracker ___

[issue42980] argparse: GNU-style help formatter

2021-01-20 Thread Will Noble
New submission from Will Noble : argparse allows GNU-style long options (with '=' in between the option and the value as opposed to a space): https://docs.python.org/3/library/argparse.html#option-value-syntax Call it pickiness, but I'd like to be able to print the help message

[issue42966] argparse: customizable help formatter

2021-01-19 Thread Tadek Kijkowski
Change by Tadek Kijkowski : -- title: argpare: customizable help formatter -> argparse: customizable help formatter ___ Python tracker <https://bugs.python.org/issu

[issue42966] argpare: customizable help formatter

2021-01-19 Thread Tadek Kijkowski
New submission from Tadek Kijkowski : Current implementation of the argparse module doesn't make it easy for developers to customize the help text message format. On one hand the module doesn't provide any builtin ways to do it, and the only way is to provide developer's own formatter class

[issue42875] argparse incorrectly shows help string on a new line in case of long command string

2021-01-11 Thread Pavel Ditenbir
Change by Pavel Ditenbir : -- versions: -Python 3.6, Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue42875] argparse incorrectly shows help string on a new line in case of long command string

2021-01-11 Thread Pavel Ditenbir
Change by Pavel Ditenbir : -- versions: +Python 3.10, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___ ___

[issue42875] argparse incorrectly shows help string on a new line in case of long command string

2021-01-10 Thread hai shi
Change by hai shi : -- nosy: +paul.j3, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42875] argparse incorrectly shows help string on a new line in case of long command string

2021-01-09 Thread Pavel Ditenbir
Change by Pavel Ditenbir : -- keywords: +patch pull_requests: +23003 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24177 ___ Python tracker ___

[issue42875] argparse incorrectly shows help string on a new line in case of long command string

2021-01-09 Thread Pavel Ditenbir
New submission from Pavel Ditenbir : Steps to reproduce. Run the attached script: $ python3 argparse-indent-sample.py --help The output is: usage: argparse-indent-sample.py [-h] CMD ... optional arguments: -h, --help show this help message and exit service: CMD

[issue12806] argparse: Hybrid help text formatter

2021-01-04 Thread David Steele
David Steele added the comment: For those looking for a solution now, see https://pypi.org/project/argparse-formatter/ -- ___ Python tracker ___

Re: help

2021-01-01 Thread Eryk Sun
On 1/1/21, Sibylle Koczian wrote: > > But that doesn't help, if the script raises an exception. In that case > the input() call won't be reached and the window will close anyway > before you could see anything. And in a script with errors that's even > worse. Same effect with t

Re: help

2021-01-01 Thread Sibylle Koczian
a display window, is going to stay around. An old is to add an input() call at the end of your script, so it waits for you to hit the enter key before finishing, and that will leave the window open) But that doesn't help, if the script raises an exception. In that case the input() call won't

Re: help

2020-12-31 Thread Mats Wichmann
On 12/31/20 8:11 AM, BearGod777 wrote: i am trying to open it by just left clicking the file in file explorer and i tried right clicking it and then pressing open with python 3.9.1 64-bit That *shouldn't* open the installer... (you can actually remove the installer file once you're done

Re: help

2020-12-31 Thread BearGod777
t; > open a file that my friend made it just comes up with those options. > please > > help > > you're rerunning the installer, don't do that. > > that sounds rude. but isn't meant to be. somehow in recent times, the > installer program - whose job it is indeed to install,

Re: help

2020-12-30 Thread Mats Wichmann
a new file it works but if i try and open a file that my friend made it just comes up with those options. please help you're rerunning the installer, don't do that. that sounds rude. but isn't meant to be. somehow in recent times, the installer program - whose job it is indeed to install

Re: help

2020-12-30 Thread Igor Korot
Hi, On Wed, Dec 30, 2020 at 4:40 PM BearGod777 wrote: > > every time i try and open a .py file How are you trying to open the py file? Also - I presume you are using Windows 10 + latest version of python, right? Thank you. > ReplyForward > -- >

help

2020-12-30 Thread BearGod777
and open a file that my friend made it just comes up with those options. please help ReplyForward -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 2 to Python 3 .so library incompatibility - need help

2020-12-17 Thread Michał Jaworski
I've looked into the details of the deb package that Cameron mentioned. It may be the one that you Chris uss because it does indeed include a pyscand.so file. Quick question to you Chris: the utilities you've mentioned are the code that you've written yourself or utilities from

Re: Python 2 to Python 3 .so library incompatibility - need help

2020-12-17 Thread Chris Green
Cameron Simpson wrote: > >> Guessing from the library name, have you looked on the OKI.com site > >> for current software? Maybe here? What's your printer model? > >> > >> https://www.oki.com/au/printing/support/drivers-and-utilities/index.html > >> > >> > >It comes from OKI with the Linux

Re: Python 2 to Python 3 .so library incompatibility - need help

2020-12-16 Thread Cameron Simpson
On 16Dec2020 21:59, Chris Green wrote: >Cameron Simpson wrote: >> On 16Dec2020 18:51, Chris Green wrote: >> >The specific problem that finally prevented me from managing to get it >> >to work was a (Linux) .so file that had been built for Python 2 and, >> >as I don't have the source, I can't

Re: Python 2 to Python 3 .so library incompatibility - need help

2020-12-16 Thread Chris Angelico
On Thu, Dec 17, 2020 at 9:06 AM Chris Green wrote: > > Also, make note of the specific Python 2 version where your software > > works - the CPython API does change somewhat sometimes. > > > I still have python 2. The issue is that the programs need modules > which come from a PPA to support

Re: Python 2 to Python 3 .so library incompatibility - need help

2020-12-16 Thread Chris Green
Cameron Simpson wrote: > On 16Dec2020 18:51, Chris Green wrote: > >The specific problem that finally prevented me from managing to get it > >to work was a (Linux) .so file that had been built for Python 2 and, > >as I don't have the source, I can't build for Python 3. > > ChrisA I think

Re: Python 2 to Python 3 .so library incompatibility - need help

2020-12-16 Thread Chris Angelico
On Thu, Dec 17, 2020 at 8:26 AM Cameron Simpson wrote: > > On 16Dec2020 18:51, Chris Green wrote: > >The specific problem that finally prevented me from managing to get it > >to work was a (Linux) .so file that had been built for Python 2 and, > >as I don't have the source, I can't build for

Re: Python 2 to Python 3 .so library incompatibility - need help

2020-12-16 Thread Cameron Simpson
On 16Dec2020 18:51, Chris Green wrote: >The specific problem that finally prevented me from managing to get it >to work was a (Linux) .so file that had been built for Python 2 and, >as I don't have the source, I can't build for Python 3. ChrisA I think suggested keeping a Python 2.7 install

Re: Python 2 to Python 3 .so library incompatibility - need help

2020-12-16 Thread Chris Angelico
On Thu, Dec 17, 2020 at 7:27 AM MRAB wrote: > > On 2020-12-16 19:16, Chris Angelico wrote: > > On Thu, Dec 17, 2020 at 6:06 AM Chris Green wrote: > >> > >> Some time ago (in July) I asked some questions here > >> about problems migrating some code from Python 2 to Python 3. > >> > >> The

Re: Python 2 to Python 3 .so library incompatibility - need help

2020-12-16 Thread MRAB
On 2020-12-16 19:16, Chris Angelico wrote: On Thu, Dec 17, 2020 at 6:06 AM Chris Green wrote: Some time ago (in July) I asked some questions here about problems migrating some code from Python 2 to Python 3. The specific problem that finally prevented me from managing to get it to work was a

Re: Python 2 to Python 3 .so library incompatibility - need help

2020-12-16 Thread Chris Angelico
On Thu, Dec 17, 2020 at 6:06 AM Chris Green wrote: > > Some time ago (in July) I asked some questions here > about problems migrating some code from Python 2 to Python 3. > > The specific problem that finally prevented me from managing to get it > to work was a (Linux) .so file that had been

Python 2 to Python 3 .so library incompatibility - need help

2020-12-16 Thread Chris Green
Some time ago (in July) I asked some questions here about problems migrating some code from Python 2 to Python 3. The specific problem that finally prevented me from managing to get it to work was a (Linux) .so file that had been built for Python 2 and, as I don't have the source, I can't build

Re: help(list[int]) → TypeError

2020-12-04 Thread Paul Bryan
Thanks, will bring it to the dev list. On Fri, 2020-12-04 at 07:07 -0800, Julio Di Egidio wrote: > On Thursday, 3 December 2020 at 19:28:19 UTC+1, Paul Bryan wrote: > > Is this the correct behavior? > > > > Python 3.9.0 (default, Oct 7 2020, 23:09:01) > > [GCC 10.2.

Re: help(list[int]) → TypeError

2020-12-04 Thread Julio Di Egidio
On Thursday, 3 December 2020 at 19:28:19 UTC+1, Paul Bryan wrote: > Is this the correct behavior? > > Python 3.9.0 (default, Oct 7 2020, 23:09:01) > [GCC 10.2.0] on linux > Type "help", "copyright", "credits" or "license" for more inform

help(list[int]) → TypeError

2020-12-03 Thread Paul Bryan
Is this the correct behavior? Python 3.9.0 (default, Oct 7 2020, 23:09:01) [GCC 10.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> help(list[int]) Traceback (most recent call last): File "&quo

Re: Need help in installing numpy

2020-11-11 Thread MRAB
y', I get the response:pip : The term 'pip' is not recognized as the name of a cmd let ... etc. I thought that pip is now a part of later versions of python versions 3.x. If so, what did I do wrong? I know this is a very elementary question for this site, but I would appreciate any help. Using t

Need help in installing numpy

2020-11-11 Thread adelamsaleh--- via Python-list
the name of a cmd let ... etc. I thought that pip is now a part of later versions of python versions 3.x. If so, what did I do wrong? I know this is a very elementary question for this site, but I would appreciate any help. Thanks, -- https://mail.python.org/mailman/listinfo/python-list

[issue6860] Inconsistent naming of custom command in setup.py help output

2020-11-08 Thread Irit Katriel
Irit Katriel added the comment: As per Camilla's comment, this is no longer an issue. -- nosy: +iritkatriel resolution: accepted -> wont fix stage: needs patch -> resolved status: open -> closed ___ Python tracker

Re: Please help test astral char display in tkinter Text (especially *nix)

2020-11-06 Thread Anssi Saari
Terry Reedy writes: > Perhaps half of the assigned chars in the first plane are printed > instead of being replaced with a narrow box. This includes emoticons > as foreground color outlines on background color. Maybe all of the > second plane of extended CJK chars are printed. The third plane

Re: Please help test astral char display in tkinter Text (especially *nix)

2020-11-05 Thread Terry Reedy
On 11/4/2020 7:47 AM, Menno Holscher wrote: Op 03-11-2020 om 04:04 schreef Terry Reedy: Perhaps half of the assigned chars in the first plane are printed instead of being replaced with a narrow box. This includes emoticons as foreground color outlines on background color.  Maybe all of the

Re: Please help test astral char display in tkinter Text (especially *nix)

2020-11-04 Thread Menno Holscher
Op 03-11-2020 om 04:04 schreef Terry Reedy: Perhaps half of the assigned chars in the first plane are printed instead of being replaced with a narrow box. This includes emoticons as foreground color outlines on background color.  Maybe all of the second plane of extended CJK chars are printed. 

Re: Help

2020-11-03 Thread Grant Edwards
return total > print(multiply((8, 2, 3, -1, 7))) > > When I run this, my answer is 8 but it should be 336 can some help ._. 1. If you're using tabs to indent; don't. It results in hard-to diagnose problems. Use spaces to indent. 2. Cut/past the exact code when asking questions. The

Re: Help

2020-11-03 Thread Skip Montanaro
> > When I run this, my answer is 8 but it should be 336 can some help ._. > Looks like you are returning from inside the loop. Skip > -- https://mail.python.org/mailman/listinfo/python-list

Help

2020-11-03 Thread Quentin Bock
is 8 but it should be 336 can some help ._. -- https://mail.python.org/mailman/listinfo/python-list

Please help test astral char display in tkinter Text (especially *nix)

2020-11-03 Thread Terry Reedy
tcl/tk supports unicode chars in the BMP (Basic Multilingual Plane, utf-8 encoded with 1-3 bytes). The presence of chars in other plains ('astral', utf-8 encoded with 4 bytes, I believe) in a tkinter Text widget messages up *editing*, but they can sometimes be displayed with appropriate

Re: Basic Python help

2020-10-23 Thread mikael petterson
#%s\n' % (data_len) > > data = "%s%s%s" % (start_delim(len(data)), data, END_DELIM) > > > > Can anyone help me to understand what it means: > > > > I am guessing now: > > > > a function defined "start_delim" takes the length of a data stri

Re: Basic Python help

2020-10-23 Thread Frank Millman
On 2020-10-23 12:41 PM, mikael petterson wrote: Hi, I need to use the following code but in java. END_DELIM = '\n##\n' def start_delim(data_len): return '\n#%s\n' % (data_len) data = "%s%s%s" % (start_delim(len(data)), data, END_DELIM) Can anyone help me to understand what it

Basic Python help

2020-10-23 Thread mikael petterson
Hi, I need to use the following code but in java. END_DELIM = '\n##\n' def start_delim(data_len): return '\n#%s\n' % (data_len) data = "%s%s%s" % (start_delim(len(data)), data, END_DELIM) Can anyone help me to understand what it means: I am guessing now: a function defined &q

[issue27320] ./setup.py --help-commands should sort extra commands

2020-10-22 Thread Antony Lee
Change by Antony Lee : -- nosy: -Antony.Lee ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27320] ./setup.py --help-commands should sort extra commands

2020-10-22 Thread Éric Araujo
Éric Araujo added the comment: This is probably better now that dicts retain insertion order. If people still think sorting would be better, please forward the feature request to setuptools. -- resolution: -> wont fix stage: -> resolved status: open -> closed

Re: Help with the best practice to learn python

2020-10-19 Thread Michael Torrie
On 10/19/20 9:12 AM, Azhar Ansari wrote: > Hello Python Community, > Kindly help me with the best practice to learn python. > Lots of material over net but its very confusing. What is your goal? Python is a tool. What do you want to do with it? If you don't have any particular thin

Re: Help with the best practice to learn python

2020-10-19 Thread dn via Python-list
On 20/10/2020 04:12, Azhar Ansari wrote: Hello Python Community, Kindly help me with the best practice to learn python. Lots of material over net but its very confusing. You are so right - it is very confusing! Different people have different preferences for 'the best way to learn'. Also

Re: Help with the best practice to learn python

2020-10-19 Thread Marco Sulla
The first time I started python I simply followed the official tutorial: https://docs.python.org/3.9/tutorial/introduction.html PS: Note that this is for Python 3.9. You can change the version in the page if you have another one. -- https://mail.python.org/mailman/listinfo/python-list

Help with the best practice to learn python

2020-10-19 Thread Azhar Ansari
Hello Python Community, Kindly help me with the best practice to learn python. Lots of material over net but its very confusing. Thanks and Regards, Azhar Ansari -- https://mail.python.org/mailman/listinfo/python-list

Re: CLI parsing—with `--help` text—`--foo bar`, how to give additional parameters to `bar`?

2020-10-16 Thread Mats Wichmann
On 10/15/20 5:09 PM, Samuel Marks wrote: > Yes it’s my module, and I’ve been using argparse > https://github.com/SamuelMarks/ml-params > > No library I’ve found provides a solution to CLI argument parsing for my > use-case. > > So I’ll write one. But what should it look like, syntactically and >

Re: CLI parsing—with `--help` text—`--foo bar`, how to give additional parameters to `bar`?

2020-10-16 Thread Samuel Marks
Oct 2020 at 6:08 pm, Karen Shaeffer wrote: > Passing a lot of command line parameters is very error prone. Opening a > file and specifying flags is much more user friendly, because you have any > necessary help documented right there. In my eyes, the command line is only > useful for si

Re: Re: CLI parsing—with `--help` text—`--foo bar`, how to give additional parameters to `bar`?

2020-10-15 Thread Samuel Marks
Yeah I've played with custom actions before https://github.com/offscale/argparse-utils/tree/master/argparse_utils/actions But this would only help in one phase, the important phase of providing help text will need to be provided out-of-argparse and thrown in (like my trivial absl alternative

Re: Re: CLI parsing—with `--help` text—`--foo bar`, how to give additional parameters to `bar`?

2020-10-15 Thread Dieter Maurer
Samuel Marks wrote at 2020-10-16 10:09 +1100: >Yes it’s my module, and I’ve been using argparse >https://github.com/SamuelMarks/ml-params > >No library I’ve found provides a solution to CLI argument parsing for my >use-case. Do you know that with `argparse` you can specify how many arguments an

Re: CLI parsing—with `--help` text—`--foo bar`, how to give additional parameters to `bar`?

2020-10-15 Thread 2QdxY4RzWzUUiLuE
On 2020-10-16 at 11:27:56 +1100, Regarding "Re: CLI parsing—with `--help` text—`--foo bar`, how to give additional parameters to `bar`?," Samuel Marks wrote: > The feature that existing CLI parsers are missing is a clean syntax > for specifying options on the second param

Re: CLI parsing—with `--help` text—`--foo bar`, how to give additional parameters to `bar`?

2020-10-15 Thread Cameron Simpson
On 16Oct2020 10:59, Samuel Marks wrote: >--optimizer Adam,learning_rate=0.01,something_else=3 > >That syntax isn’t so bad! =] > >How would you suggest the help text for this looks? (don’t worry about >implementation, just what goes to stdout/stderr)

Re: CLI parsing—with `--help` text—`--foo bar`, how to give additional parameters to `bar`?

2020-10-15 Thread Samuel Marks
Hi Dan, The feature that existing CLI parsers are missing is a clean syntax for specifying options on the second parameter (the "value"), where there may be different options available depending on which you choose. For example: https://www.tensorflow.org/api_docs/python/tf/keras/optimizers/Adam

Re: CLI parsing—with `--help` text—`--foo bar`, how to give additional parameters to `bar`?

2020-10-15 Thread 2QdxY4RzWzUUiLuE
On 2020-10-16 at 10:20:40 +1100, Cameron Simpson wrote: > On 16Oct2020 10:09, Samuel Marks wrote: > >Yes it’s my module, and I’ve been using argparse > >https://github.com/SamuelMarks/ml-params > > > >No library I’ve found provides a solution to CLI argument parsing for my > >use-case. Out of

Re: CLI parsing—with `--help` text—`--foo bar`, how to give additional parameters to `bar`?

2020-10-15 Thread 2QdxY4RzWzUUiLuE
On 2020-10-16 at 10:59:16 +1100, Samuel Marks wrote: > --optimizer Adam,learning_rate=0.01,something_else=3 > > That syntax isn’t so bad! =] > > How would you suggest the help text for this looks? (don’t worry about > implementation, just what goes to stdout/stderr)

Re: CLI parsing—with `--help` text—`--foo bar`, how to give additional parameters to `bar`?

2020-10-15 Thread Karen Shaeffer via Python-list
Hi Sam, I’ve been using abseil python API. https://abseil.io/docs/python/guides/flags https://abseil.io/docs/python/quickstart It’s a distributed command line system with features that appear to support

Re: CLI parsing—with `--help` text—`--foo bar`, how to give additional parameters to `bar`?

2020-10-15 Thread Samuel Marks
--optimizer Adam,learning_rate=0.01,something_else=3 That syntax isn’t so bad! =] How would you suggest the help text for this looks? (don’t worry about implementation, just what goes to stdout/stderr) PS: Yeah I used square brackets for my Bash arrays On Fri, 16 Oct 2020 at 10:26 am, Cameron

Re: CLI parsing—with `--help` text—`--foo bar`, how to give additional parameters to `bar`?

2020-10-15 Thread Cameron Simpson
not special. You could try: --optimizer Adam,learning_rate=0.01,something_else=3 which would work for a fair amount of stuff. >Unfortunately this approach wouldn't give nice `--help` text. >What's the right solution here? To get nice help text you need your command line parser to be

<    1   2   3   4   5   6   7   8   9   10   >