Re: Ask for help on using re

2021-08-06 Thread Jach Feng
jak 在 2021年8月6日 星期五下午4:10:05 [UTC+8] 的信中寫道: > Il 05/08/2021 11:40, Jach Feng ha scritto: > > I want to distinguish between numbers with/without a dot attached: > > > text = 'ch 1. is\nch 23. is\nch 4 is\nch 56 is\n' > re.compile(r'ch \d{1,}[.]').findall(text) > > ['ch 1.', 'ch 23.']

Re: Ask for help on using re

2021-08-06 Thread jak
Il 06/08/2021 16:17, jak ha scritto: Il 06/08/2021 12:57, Jach Feng ha scritto: jak 在 2021年8月6日 星期五下午4:10:05 [UTC+8] 的信中寫道: Il 05/08/2021 11:40, Jach Feng ha scritto: I want to distinguish between numbers with/without a dot attached: text = 'ch 1. is\nch 23. is\nch 4 is\nch 56 is\n'

Re: Ask for help on using re

2021-08-06 Thread Jach Feng
ast 在 2021年8月5日 星期四下午11:29:15 [UTC+8] 的信中寫道: > Le 05/08/2021 à 17:11, ast a écrit : > > Le 05/08/2021 à 11:40, Jach Feng a écrit : > >> I want to distinguish between numbers with/without a dot attached: > >> > > text = 'ch 1. is\nch 23. is\nch 4 is\nch 56 is\n' > > re.compile(r'ch

Re: Ask for help on using re

2021-08-06 Thread jak
Il 05/08/2021 11:40, Jach Feng ha scritto: I want to distinguish between numbers with/without a dot attached: text = 'ch 1. is\nch 23. is\nch 4 is\nch 56 is\n' re.compile(r'ch \d{1,}[.]').findall(text) ['ch 1.', 'ch 23.'] re.compile(r'ch \d{1,}[^.]').findall(text) ['ch 23', 'ch 4 ', 'ch 56

Re: Ask for help on using re

2021-08-06 Thread ast
Le 06/08/2021 à 02:57, Jach Feng a écrit : ast 在 2021年8月5日 星期四下午11:29:15 [UTC+8] 的信中寫道: Le 05/08/2021 à 17:11, ast a écrit : Le 05/08/2021 à 11:40, Jach Feng a écrit : import regex # regex is more powerful that re text = 'ch 1. is\nch 23. is\nch 4 is\nch 56 is\n' regex.findall(r'ch

[issue22240] argparse support for "python -m module" in help

2021-08-05 Thread Jakub Wilk
Change by Jakub Wilk : -- nosy: +jwilk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Ask for help on using re

2021-08-05 Thread ast
Le 05/08/2021 à 17:11, ast a écrit : Le 05/08/2021 à 11:40, Jach Feng a écrit : I want to distinguish between numbers with/without a dot attached: text = 'ch 1. is\nch 23. is\nch 4 is\nch 56 is\n' re.compile(r'ch \d{1,}[.]').findall(text) ['ch 1.', 'ch 23.'] re.compile(r'ch

Re: Ask for help on using re

2021-08-05 Thread ast
Le 05/08/2021 à 17:11, ast a écrit : Le 05/08/2021 à 11:40, Jach Feng a écrit : I want to distinguish between numbers with/without a dot attached: text = 'ch 1. is\nch 23. is\nch 4 is\nch 56 is\n' re.compile(r'ch \d{1,}[.]').findall(text) ['ch 1.', 'ch 23.'] re.compile(r'ch

Re: Ask for help on using re

2021-08-05 Thread Peter Pearson
On Thu, 5 Aug 2021 02:40:30 -0700 (PDT), Jach Feng wrote: I want to distinguish between numbers with/without a dot attached: >>> text = 'ch 1. is\nch 23. is\nch 4 is\nch 56 is\n' >>> re.compile(r'ch \d{1,}[.]').findall(text) ['ch 1.', 'ch 23.'] >>> re.compile(r'ch

Re: Ask for help on using re

2021-08-05 Thread ast
Le 05/08/2021 à 11:40, Jach Feng a écrit : I want to distinguish between numbers with/without a dot attached: text = 'ch 1. is\nch 23. is\nch 4 is\nch 56 is\n' re.compile(r'ch \d{1,}[.]').findall(text) ['ch 1.', 'ch 23.'] re.compile(r'ch \d{1,}[^.]').findall(text) ['ch 23', 'ch 4 ', 'ch 56

Re: Ask for help on using re

2021-08-05 Thread Neil
Jach Feng wrote: > I want to distinguish between numbers with/without a dot attached: > text = 'ch 1. is\nch 23. is\nch 4 is\nch 56 is\n' re.compile(r'ch \d{1,}[.]').findall(text) > ['ch 1.', 'ch 23.'] re.compile(r'ch \d{1,}[^.]').findall(text) > ['ch 23', 'ch 4 ', 'ch 56 '] > >

Re: Ask for help on using re

2021-08-05 Thread Jach Feng
Neil 在 2021年8月5日 星期四下午6:36:58 [UTC+8] 的信中寫道: > Jach Feng wrote: > > I want to distinguish between numbers with/without a dot attached: > > > text = 'ch 1. is\nch 23. is\nch 4 is\nch 56 is\n' > re.compile(r'ch \d{1,}[.]').findall(text) > > ['ch 1.', 'ch 23.'] > re.compile(r'ch

Ask for help on using re

2021-08-05 Thread Jach Feng
I want to distinguish between numbers with/without a dot attached: >>> text = 'ch 1. is\nch 23. is\nch 4 is\nch 56 is\n' >>> re.compile(r'ch \d{1,}[.]').findall(text) ['ch 1.', 'ch 23.'] >>> re.compile(r'ch \d{1,}[^.]').findall(text) ['ch 23', 'ch 4 ', 'ch 56 '] I can guess why the 'ch 23'

[issue22240] argparse support for "python -m module" in help

2021-08-01 Thread Nick Coghlan
Nick Coghlan added the comment: (Note: this is an old enough ticket that it started out with patch files on the tracker rather than PRs on GitHub. That's just a historical artifact, so feel free to open a PR as described in the devguide if you would prefer to work that way) There are two

Fast help with Python program

2021-07-29 Thread Arak Rachael
Hi guys, I need fast help with this, can you please look at it? I don't get how to visualize on the 3 axis in the for cycle with the list of colors and count of colors that I get from my array. And I also don't get how to cluster the colors based on how many colors there are in the second

[issue22240] argparse support for "python -m module" in help

2021-07-23 Thread Nils Kattenbeck
Nils Kattenbeck added the comment: I expanded the patch from tebeka to also work with invocations like `python3 -m serial.tools.miniterm` where `miniterm.py` is a file and not a directory with a `__main__.py`. This was able to handle everything I threw at it. However due to the import of

Re: help me please. "install reppy"

2021-07-23 Thread Jack DeVries
d luck! On Thu, Jul 22, 2021 at 8:44 PM たこしたこし wrote: > I get an error so please help. > I don't know what to do. > > Windows 10 > Python 3.9.6 > > from takashi in Japan > -- > https://mail.python.org/mailman/listinfo/python-list > -- https://mail.python.org/mailman/listinfo/python-list

Re: help me please. "install reppy"

2021-07-23 Thread Jack DeVries
es! > > Good luck! > > > On Thu, Jul 22, 2021 at 8:44 PM たこしたこし wrote: > >> I get an error so please help. >> I don't know what to do. >> >> Windows 10 >> Python 3.9.6 >> >> from takashi in Japan >> -- >> https://mail.python.org/mailman/listinfo/python-list >> > -- https://mail.python.org/mailman/listinfo/python-list

help me please. "install reppy"

2021-07-22 Thread たこしたこし
I get an error so please help. I don't know what to do. Windows 10 Python 3.9.6 from takashi in Japan Microsoft Windows [Version 10.0.19042.1110] (c) Microsoft Corporation. All rights reserved. C:\Users\user>pip3 install reppy Looking in indexes: https://pypi.python.org/simple/ Collecting re

[issue22240] argparse support for "python -m module" in help

2021-07-18 Thread Nils Kattenbeck
Nils Kattenbeck added the comment: I am not sure if the patch correctly handles calling a nested module (e.g. `python3 -m serial.tools.miniterm`). Would it also be possible to detect if python or python3 was used for the invocation? -- nosy: +Nils Kattenbeck

[issue44623] help(open('/dev/zero').writelines) gives no help

2021-07-13 Thread Zachary Ware
Change by Zachary Ware : -- versions: +Python 3.6 -Python 3.11 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44623] help(open('/dev/zero').writelines) gives no help

2021-07-13 Thread Zachary Ware
Zachary Ware added the comment: Even with 3.6 I get a different result: ``` Python 3.6.13 (tags/v3.6.13:aa73e1722e, Mar 23 2021, 15:45:49) [GCC 9.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>>

[issue44623] help(open('/dev/zero').writelines) gives no help

2021-07-13 Thread Jonathan Fine
Jonathan Fine added the comment: I used my default Python, which is Python 3.6. However, with 3.7 and 3.8 I get the same as Paul. So I'm closing this as 'not a bug' (as there's not an already-fixed option for closing). -- resolution: works for me -> not a bug status: pending ->

[issue44623] help(open('/dev/zero').writelines) gives no help

2021-07-13 Thread Zachary Ware
Zachary Ware added the comment: I also can't reproduce this with a fresh build of 3b5b99da4b on Linux. -- nosy: +zach.ware resolution: -> works for me status: open -> pending ___ Python tracker

[issue44623] help(open('/dev/zero').writelines) gives no help

2021-07-13 Thread Paul Moore
Paul Moore added the comment: It does for me: >>> help(open("nul").writelines) Help on built-in function writelines: writelines(lines, /) method of _io.TextIOWrapper instance Write a list of lines to stream. Line separators are not added, so it is usual for ea

[issue44623] help(open('/dev/zero').writelines) gives no help

2021-07-13 Thread Jonathan Fine
New submission from Jonathan Fine : On Linux >>> help(open('/dev/zero').writelines) gives However https://docs.python.org/3/library/io.html#io.IOBase.writelines gives Write a list of lines to the stream. Line separators are not added, so it is usual for each of the lines provide

Re: Help with gaussian filter from scipy

2021-07-07 Thread Ben Bacarisse
instead of >> > > some valid gaussian filtered image, can someone help me please. >> > > >> > > Here is the full code: >> > > https://www.dropbox.com/s/18ylpiwmhlu5n62/test_filter_xdog.ipynb?dl=0 >> > It might he

Re: Help with gaussian filter from scipy

2021-07-07 Thread Arak Rachael
ssian filtered image, can someone help me please. > > > > > > Here is the full code: > > > https://www.dropbox.com/s/18ylpiwmhlu5n62/test_filter_xdog.ipynb?dl=0 > > It might help to link to the code itself so people can look at it > > without having to lo

Re: Help with gaussian filter from scipy

2021-07-07 Thread Ben Bacarisse
Arak Rachael writes: > this time I am stuck on gaussian_filter scipy returns none instead of some > valid gaussian filtered image, can someone help me please. > > Here is the full code: > https://www.dropbox.com/s/18ylpiwmhlu5n62/test_filter_xdog.ipynb?dl=0 It might help to l

Re: Help with gaussian filter from scipy

2021-07-07 Thread Arak Rachael
On Wednesday, 7 July 2021 at 12:41:44 UTC+2, Ben Bacarisse wrote: > Arak Rachael writes: > > > this time I am stuck on gaussian_filter scipy returns none instead of some > > valid gaussian filtered image, can someone help me please. > > > > Here is the full code

Help with gaussian filter from scipy

2021-07-07 Thread Arak Rachael
Hi guys, thanks for the help in the past, this time I am stuck on gaussian_filter scipy returns none instead of some valid gaussian filtered image, can someone help me please. Here is the full code: https://www.dropbox.com/s/18ylpiwmhlu5n62/test_filter_xdog.ipynb?dl=0 -- https

[issue44574] IDLE: Implement or delete python-context-help.

2021-07-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: I should check whether all other keybindings are implemented. -- ___ Python tracker ___ ___

[issue44574] IDLE: Implement or delete python-context-help.

2021-07-06 Thread Terry J. Reedy
e able to select a word and have it looked up in the index of the document opened by python-doc F1. 'Very useful' he says. On Windows, F1 opens an offline Windows help window with the Python docs. Currently, modifier(s)-F1 is interpreted as F1 and the help window is opened. I presume a sh

[issue44519] help(math.fabs)

2021-06-27 Thread David Lambert
David Lambert added the comment: Hi Ray, I'm glad this was a conscious choice.  I found a person confused by the output of print(abs(3), math.fabs(3)) Perhaps the manual would mention return values->that's not an annotation. Thanks for considering, Dave On 6/27/21 12:42 PM, Raymond

[issue44519] help(math.fabs)

2021-06-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the suggestion but we've not adopted type annotations in the documentation. -- nosy: +rhettinger resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue44519] help(math.fabs)

2021-06-27 Thread David Lambert
New submission from David Lambert : math.fabs returns float. The documentation should say so, and help(math.fabs) should include the expected return type -> float fabs(x, /) -> float Return the absolute value of the float x. I did not check, but expect these annotations recommend

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

2021-06-17 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

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

2021-06-17 Thread Irit Katriel
Irit Katriel added the comment: New changeset eb0a6801bef4f68eebf6fdb2b7a32c32a5b6c983 by Miss Islington (bot) in branch '3.10': bpo-43024: improve signature (in help, etc) for functions taking sent… (GH-24331) (GH-26773) https://github.com/python/cpython/commit

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

2021-06-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +25359 pull_request: https://github.com/python/cpython/pull/26773 ___ Python tracker ___

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

2021-06-17 Thread miss-islington
miss-islington added the comment: New changeset f73377d57c5272390de633c292c44689310a by Irit Katriel in branch 'main': bpo-43024: improve signature (in help, etc) for functions taking sent… (GH-24331) https://github.com/python/cpython/commit/f73377d57c5272390de633c292c44689310a

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

2021-06-17 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.11 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Help with Python circular error

2021-06-16 Thread Arak Rachael
> >> Hi to everyone, > > >> > > >> I am having a problem with this error, I created a package and uploaded > > >> it to Test PyPi, but I can not get it to work, can someone help me > > >> please? > > >> > > >> https://

Re: Help with Python circular error

2021-06-16 Thread Arak Rachael
d, Jun 16, 2021 at 2:45 AM Arak Rachael > > > > wrote: > > > >> > > > >> Hi to everyone, > > > >> > > > >> I am having a problem with this error, I created a package and > > > >> uploaded it to Test PyPi

Re: Help with Python circular error

2021-06-15 Thread Chris Angelico
package and uploaded it > >> to Test PyPi, but I can not get it to work, can someone help me please? > >> > >> https://test.pypi.org/manage/project/videotesting/releases/' > >> > >> The error: > >> > >> /home/user/anaconda3/envs/testing

Re: Help with Python circular error

2021-06-15 Thread MRAB
On 2021-06-15 17:49, Chris Angelico wrote: On Wed, Jun 16, 2021 at 2:45 AM Arak Rachael wrote: Hi to everyone, I am having a problem with this error, I created a package and uploaded it to Test PyPi, but I can not get it to work, can someone help me please? https://test.pypi.org/manage

Re: Help with Python circular error

2021-06-15 Thread Chris Angelico
On Wed, Jun 16, 2021 at 2:45 AM Arak Rachael wrote: > > Hi to everyone, > > I am having a problem with this error, I created a package and uploaded it to > Test PyPi, but I can not get it to work, can someone help me please? > > https://test.pypi.org/manage/project/

Help with Python circular error

2021-06-15 Thread Arak Rachael
Hi to everyone, I am having a problem with this error, I created a package and uploaded it to Test PyPi, but I can not get it to work, can someone help me please? https://test.pypi.org/manage/project/videotesting/releases/' The error: /home/user/anaconda3/envs/testing/bin/python /home/user

Help me in setting the path in python program.

2021-06-07 Thread Maheshwari Gorle
I am using Google co lab. Guide me how to set the path. # Error: SwissEph file 'se13681s.se1' not found in PATH '/usr/share/ephe/' is coming, how to overcome this problem. pip install pyswisseph import swisseph as swe swe.set_ephe_path ('/usr/share/ephe') # set path to ephemeris files jd =

[issue44227] help(bisect.bisect_left)

2021-06-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset b5cedd098043dc58ecf9c2f33774cd7646506a92 by Miss Islington (bot) in branch '3.10': bpo-44227: Update bisect docstrings (GH-26548) (GH-26563) https://github.com/python/cpython/commit/b5cedd098043dc58ecf9c2f33774cd7646506a92 --

[issue44227] help(bisect.bisect_left)

2021-06-06 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +25152 pull_request: https://github.com/python/cpython/pull/26563 ___ Python tracker

[issue37768] IDLE: Show help(object) output in a text viewer

2021-06-06 Thread Tal Einat
Change by Tal Einat : -- pull_requests: +25150 pull_request: https://github.com/python/cpython/pull/26561 ___ Python tracker ___

[issue44227] help(bisect.bisect_left)

2021-06-06 Thread PeterChu
Change by PeterChu : -- nosy: +PeterChu nosy_count: 2.0 -> 3.0 pull_requests: +25146 pull_request: https://github.com/python/cpython/pull/26548 ___ Python tracker ___

[issue44275] Is there a mojibake problem rendering interactive help in the REPL on Windows?

2021-06-04 Thread Jesse Silverman
Jesse Silverman added the comment: As Andre noted, it is good in IDLE. I also realize how convenient it is to read the real docs from there. I learned a lot about the state of console programming on Windows, in and out of Python, but I have no problem using IDLE when on Windows. --

[issue44275] Is there a mojibake problem rendering interactive help in the REPL on Windows?

2021-06-04 Thread Andre Roberge
Andre Roberge added the comment: Terry: I just checked with Idle on Windows with Python 3.9.5 and the display works perfectly, with no incorrect characters. -- ___ Python tracker

[issue44275] Is there a mojibake problem rendering interactive help in the REPL on Windows?

2021-06-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Jesse or Andre, please test interactive help in IDLE as pydoc then knows that it is *not* talking to Windows console. It then does not use more.com but prints the entire text at once. It should send it 'as is' and should ignore the console language

[issue44275] Is there a mojibake problem rendering interactive help in the REPL on Windows?

2021-06-01 Thread Eryk Sun
Eryk Sun added the comment: > Now many people want to use Python with UTF-8 mode in PowerShell > in Windows Terminal. And they don't want to care about legacy > encoding at all. Windows Terminal isn't relevant to the encoding issue. Applications interact with the console session to which

[issue44275] Is there a mojibake problem rendering interactive help in the REPL on Windows?

2021-06-01 Thread Inada Naoki
Inada Naoki added the comment: >> PS > $OutputEncoding = [System.Text.Encoding]::GetEncoding("UTF-8") > FYI, $OutputEncoding in PowerShell has nothing to do with the python.exe and > more.com processes, nor the console session to which they're attached. >> PS >

[issue44275] Is there a mojibake problem rendering interactive help in the REPL on Windows?

2021-06-01 Thread Jesse Silverman
Jesse Silverman added the comment: "more.com" uses the console input codepage to decode the file, so a workaround is to run `chcp.com 65001` and run Python in UTF-8 mode, e.g. `py -X utf8=1`. Since reading non-ASCII UTF-8 is broken, you'll have to switch back to the old input codepage if

[issue44275] Is there a mojibake problem rendering interactive help in the REPL on Windows?

2021-06-01 Thread Eryk Sun
Eryk Sun added the comment: > I was one of the people who mistakenly thought that Python 3 operating > in the new Windows Terminal was going to magically leave us sitting > happily in completely UTF-8 compatible territory on Windows, not > realizing the complex long-term dependencies and

[issue44275] Is there a mojibake problem rendering interactive help in the REPL on Windows?

2021-06-01 Thread Jesse Silverman
much love to those who had put in the work to have much more help than I realized existed even when one finds oneself isolated on a single disconnected machine with only the standard docs as a guide吝 -- I didn't realize the pages I found mojibake on even existed until th

[issue44275] Is there a mojibake problem rendering interactive help in the REPL on Windows?

2021-06-01 Thread Steve Dower
Steve Dower added the comment: > If changing the console input codepage to UTF-8 fixes the mojibake problem, > then probably you're running Python in UTF-8 mode. I forget where I saw them, but there are some places where we incorrectly use stdin encoding for writing to stdout (I suppose

[issue44275] Is there a mojibake problem rendering interactive help in the REPL on Windows?

2021-05-31 Thread Eryk Sun
Eryk Sun added the comment: > PS > [System.Console]::InputEncoding = $OutputEncoding If changing the console input codepage to UTF-8 fixes the mojibake problem, then probably you're running Python in UTF-8 mode. pydoc.tempfilepager() encodes the temporary file with the preferred encoding,

[issue44275] Is there a mojibake problem rendering interactive help in the REPL on Windows?

2021-05-31 Thread Inada Naoki
Inada Naoki added the comment: I confirmed this fixes the mojibake: ``` PS > $OutputEncoding = [System.Text.Encoding]::GetEncoding("UTF-8") PS > [System.Console]::OutputEncoding = $OutputEncoding PS > [System.Console]::InputEncoding = $OutputEncoding ``` --

[issue44275] Is there a mojibake problem rendering interactive help in the REPL on Windows?

2021-05-31 Thread Inada Naoki
Inada Naoki added the comment: > In Windows, pydoc uses the old "more.com" pager with a temporary file that's > encoded with the default encoding, which is the process active codepage (i.e. > "ansi" or "mbcs"), unless UTF-8 mode is enabled. The "more.com" utility, > however, decodes the

[issue44275] Is there a mojibake problem rendering interactive help in the REPL on Windows?

2021-05-31 Thread Eryk Sun
Eryk Sun added the comment: > PS> [System.Console]::OutputEncoding The console's current output encoding is irrelevant to this problem. In Windows, pydoc uses the old "more.com" pager with a temporary file that's encoded with the default encoding, which is the process active codepage (i.e.

[issue44275] Is there a mojibake problem rendering interactive help in the REPL on Windows?

2021-05-31 Thread Inada Naoki
Inada Naoki added the comment: Do you use PowerShell? Please run this command and paste the output. ``` PS> $OutputEncoding PS> [System.Console]::OutputEncoding ``` -- nosy: +methane ___ Python tracker

[issue44275] Is there a mojibake problem rendering interactive help in the REPL on Windows?

2021-05-31 Thread Ned Deily
Change by Ned Deily : -- components: +Windows -Documentation nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

[issue44227] help(bisect.bisect_left)

2021-05-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Conceptually, yes, but the function does return an index, The function does not return an index. It returns an integer that represents an insertion point. The documentation is clear about this: Locate the insertion point for x in a to maintain

[issue44275] Is there a mojibake problem rendering interactive help in the REPL on Windows?

2021-05-31 Thread Jesse Silverman
Jesse Silverman added the comment: I looked around some more and it definitely is not just one isolated instance. I noted a similar issue on the lines from CLASSES topic pasted here. I think it is all usages of the ellipsis in the context of the help text? Maybe also fancy quote marks

[issue44275] Is there a mojibake problem rendering interactive help in the REPL on Windows?

2021-05-31 Thread Andre Roberge
Andre Roberge added the comment: I observe something similar, though with different symbols. My Windows installation uses French (fr-ca) as default language. === help> COMPARISON Comparisons *** ... Formally, if *a*, *b*, *c*, à, *y*, *z* are expressions and *op1*, *op2*, à, *

[issue44275] Is there a mojibake problem rendering interactive help in the REPL on Windows?

2021-05-31 Thread Jesse Silverman
New submission from Jesse Silverman : I didn't know whether to file this under DOCUMENTATION or WINDOWS. I recently discovered the joys of the interactive help in the REPL, rather than just help(whatever). I was exploring the topics and noticed multiple encoding or rendering errors. I realized

[issue44215] help() module listing displays import warnings from deprecated package modules

2021-05-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue26952] argparse help formatter raises IndexError

2021-05-28 Thread Irit Katriel
Change by Irit Katriel : -- title: argparse help formatter crashes -> argparse help formatter raises IndexError versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7 ___ Python tracker <https://bugs.python.org/issu

[issue26503] argparse with required field , not having new line separator in -help dispaly

2021-05-27 Thread Irit Katriel
Irit Katriel added the comment: issue11874 has been fixed and its PR has a unit test that seems similar to the case reported here (test_help_with_metavar). If you are still seeing this issue on 3.9 or higher, please create a new issue and include a code snippet that reproduces the problem.

[issue44227] help(bisect.bisect_left)

2021-05-24 Thread Mallika Bachan
his index, it will push the current value right, so conceptually, sure, it can help to think of the insertion point as being just before the leftmost target value. But while bisect_right does in fact return value i that "points just beyond the rightmost x already there" ("just beyond"

[issue44227] help(bisect.bisect_left)

2021-05-24 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> not a bug stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue44227] help(bisect.bisect_left)

2021-05-24 Thread Mallika Bachan
Change by Mallika Bachan : -- keywords: +patch pull_requests: +24933 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26340 ___ Python tracker ___

[issue44227] help(bisect.bisect_left)

2021-05-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: I there is a misunderstanding here. The bisect functions never point *to* a value. Instead, they are documented to return "insertion points". Those always occur just before or after a specific value: values: 10 20 30 30 30 40

[issue44227] help(bisect.bisect_left)

2021-05-24 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing

[issue44227] help(bisect.bisect_left)

2021-05-24 Thread Mallika Bachan
New submission from Mallika Bachan : Documentation issue. help(bisect.bisect_left) says: "... if x already appears in the list, i points just before the leftmost x already there." but in fact, it actually points *to* the leftmost x already there -- messages: 3

[issue44215] help() module listing displays import warnings from deprecated package modules

2021-05-23 Thread Stefano Rivera
New submission from Stefano Rivera : Originally reported against pypy3 in Ubuntu https://bugs.launchpad.net/ubuntu/+source/pypy3/+bug/1920675 $ ./python Python 3.10.0a5+ (heads/master:ffa55d21b4, May 23 2021, 08:14:50) [GCC 10.2.1 20210110] on linux Type "help", "copyr

Re: need help with a translation issue

2021-04-17 Thread dn via Python-list
Longer response: NB I've not used the system and only quickly reviewed https://py-googletrans.readthedocs.io/_/downloads/en/documentation/pdf/ NBB I am treating you (and/or other interested-readers) as something of a 'beginner'. No insult is intended should I appear to be 'talking down'. On

Re: need help with a translation issue

2021-04-17 Thread Chris Angelico
On Sun, Apr 18, 2021 at 9:58 AM dn via Python-list wrote: > Alternately, what's there to stop some nefarious/stupid user (like me!) > entering "gobbledegook" and complaining that the program fails? "What is the French for fiddle-de-dee?" -- the Red Queen, to Alice (Incidentally, Google attempts

Re: need help with a translation issue

2021-04-17 Thread MRAB
On 2021-04-17 23:56, Quentin Bock wrote: I'm trying to take the user input and let them change the target language or dest code: from deep_translator import GoogleTranslator import googletrans import sys language_list = googletrans.LANGUAGES print(language_list) feedback = input("Would you

Re: need help with a translation issue

2021-04-17 Thread dn via Python-list
On 18/04/2021 10.56, Quentin Bock wrote: > I'm trying to take the user input and let them change the target language > or dest > code: > ... > language_list = googletrans.LANGUAGES > print(language_list) ... > user_choice = input ("Enter a language (the abbreviation or correctly > spelled

need help with a translation issue

2021-04-17 Thread Quentin Bock
I'm trying to take the user input and let them change the target language or dest code: from deep_translator import GoogleTranslator import googletrans import sys language_list = googletrans.LANGUAGES print(language_list) feedback = input("Would you like to translate a sentence of your own?

[issue39125] Type signature of @property not shown in help()

2021-04-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Currently there is no way to tell if the *attribute* > is read-only, read-write or write-only. Read-only is segregated in the help() output. >>> class A: @property def computed_field(self): 'An e

Re: HELP Please, Python Program Help

2021-04-10 Thread dn via Python-list
On 10/04/2021 22.57, Joseph Roffey wrote: > Hi, Im looking for some help with my program, I have been set a task to make > a Strain Calculator. I need it to input two numbers, choosing either Metres > or Inches for the 'Change in Length' divided by the 'Original Length' which &

HELP Please, Python Program Help

2021-04-10 Thread Joseph Roffey
Hi, Im looking for some help with my program, I have been set a task to make a Strain Calculator. I need it to input two numbers, choosing either Metres or Inches for the 'Change in Length' divided by the 'Original Length' which can also be in Metres or Inches, the out put number also needs

[issue39125] Type signature of @property not shown in help()

2021-04-09 Thread brenthuisman
brenthuisman added the comment: Is there any activity on this issue? The way Pybind11 generates accessors for attributes makes (as properties with getter and setter) makes it currently impossible to view the type info, which Pybind does provide. Thanks for any update. -- nosy:

[issue17306] Improve the way abstract base classes are shown in help()

2021-04-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: Closing this due to lack of interest. -- resolution: -> postponed stage: patch review -> resolved status: open -> closed ___ Python tracker

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

2021-04-01 Thread Irit Katriel
Irit Katriel added the comment: Marking as a 3.10 regression because the sentinel was added in 3.10. -- keywords: +3.10regression ___ Python tracker ___

Re: Help Please

2021-03-28 Thread D'Arcy Cain
On 2021-03-26 12:42 p.m., Igor Korot wrote: On top of that - usual stanza applies: 1. OS - Windows, Linux, Mac? 2. OS version? 3. Python version? 4. Are you able to run python interpretor? 5. Socks version you are trying to install? 6. Was install successful? 7. Use a subject that describes

Re: Help Please

2021-03-26 Thread Igor Korot
Hi, On Fri, Mar 26, 2021 at 11:36 AM Anis4Games wrote: > Hello python support team , i need help about packages and python modules > > That Video Will Explain My Problem > Please don't send any attachment to the list - it will be dropped from the E-mail. Cut'n'paste any errors

Help Please

2021-03-26 Thread Anis4Games
Hello python support team , i need help about packages and python modules That Video Will Explain My Problem The Problem : Is Im Installed [Socks] Alredy With Command => pip install socks But When i run some script using socks pack its show a error with message " import socks " no

[issue23633] Improve py launcher help, index, and doc

2021-03-12 Thread Eryk Sun
Eryk Sun added the comment: The current help text attempts to explain point 2, in terms of an active virtual environment, shebangs, the PY_PYTHON[2|3] environment variables, and the py.ini [defaults]. It's a lot to say succinctly in a few lines of text. A shortened URL that links

[issue43465] ./configure --help describes what --with-ensurepip does poorly

2021-03-10 Thread David Tucker
Change by David Tucker : -- nosy: +tucked ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43465] ./configure --help describes what --with-ensurepip does poorly

2021-03-10 Thread Enji Cooper
optional > module This isn't what "./configure --help" implies though: ``` $ git log --oneline -n 1 87f649a409 (HEAD -> master, upstream/master, origin/master, origin/logging-config-dictconfig-support-more-sysloghandler-options, origin/HEAD, logging-config-dictconfig-support-m

GridSearchCV generates unexpected different best parameters by only changing the parameters order in param_grid. Please help!

2021-02-25 Thread Yi Li
() did not work as I expected. I really appreciate your help. class Debug(BaseEstimator, TransformerMixin): def __init__(self): self.transX = None def transform(self, X): print(X) self.transX = X.copy() return X def fit(self, X, y=None, **fit_params

Re: I need some help interpreting this error

2021-02-17 Thread Terry Reedy
On 2/17/2021 10:40 AM, 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 error:-

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