[issue20779] Add pathlib.chown method

2022-02-08 Thread Jaspar S.
Change by Jaspar S. : -- pull_requests: +29382 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31212 ___ Python tracker <https://bugs.python.org/issu

[issue20779] Add pathlib.chown method

2022-02-07 Thread Jaspar S.
Jaspar S. added the comment: I would love to use chown for a pathlib Path, too. It may not be used often, but if anyone want's to change all the os references from a file, it would be cool to have it on pathlib! -- nosy: +y0urself ___ Python

[issue42548] debugger stops at breakpoint of `pass` that is not actually reached

2022-02-07 Thread Andy S
Andy S added the comment: Then maybe those RMs (for 3.9 and 3.10) should decide on their own? That should mean the bug should be reopened for them to get assigned to. -- ___ Python tracker <https://bugs.python.org/issue42

[issue42548] debugger stops at breakpoint of `pass` that is not actually reached

2022-02-07 Thread Andy S
Andy S added the comment: Can reproduce this on 3.9. Is the fact 3.9 is in `bugfix` status enough to backport any fixing changes from 3.11 (if that's true and the bug was fixed)? -- ___ Python tracker <https://bugs.python.org/issue42

[issue46288] Migrating python 2.7 to 3.6 using 2to3 tool

2022-01-06 Thread Karthik S
New submission from Karthik S : Greeting of the day to all.. I would like to address few queries as mentioned in the below. python 2.7 code is running fine on RHEL 7.9,we are migrating to python3 from Python2 using 2to3 on RHEL 7.9. After migrating, When we run our products in python 3.6,we

[issue46093] 2D array issue

2021-12-15 Thread Ritvik S
New submission from Ritvik S : I had a problem running the following code. When I ran through what I thought python was supposed to do, I got a different answer than what python did. I think this is an error. Here is the code: problem_ary = [['a','b','c'],['d','e','f'],['g','h','i

[issue45971] calendar module issue

2021-12-02 Thread Venkata Raman S S V
New submission from Venkata Raman S S V : In Ubuntu 20.04.3 LTS - OS Type: 64-bit. $ cal sep 1752 September 1752 Su Mo Tu We Th Fr Sa 1 2 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 $ python3 Python 3.8.10 (default, Sep 28

[issue44481] Tkinter config() minor documentation bug for shorthand options

2021-06-21 Thread Jeff S
New submission from Jeff S : The documentation page https://docs.python.org/3/library/tkinter.html states "Passing the config() method the name of a shorthand option will return a 2-tuple, not 5-tuple." While config() without argument does return a map that yields refer

[issue44031] test_embed and test_tabnanny fails if the current directory is non-ASCII

2021-05-27 Thread Alexei S
Alexei S added the comment: how we can fix this small problem in next releases of test_embed test_tabnanny? other tests didn't fail -- ___ Python tracker <https://bugs.python.org/issue44

[issue44031] test_embed and test_tabnanny fails if the current directory is non-ASCII

2021-05-27 Thread Alexei S
Alexei S added the comment: yes! the problem was in folder caption! -- ___ Python tracker <https://bugs.python.org/issue44031> ___ ___ Python-bugs-list mailin

[issue44031] test_embed and test_tabnanny fails if the current directory is non-ASCII

2021-05-27 Thread Alexei S
Alexei S added the comment: the problem is caused by language?? -- ___ Python tracker <https://bugs.python.org/issue44031> ___ ___ Python-bugs-list mailin

[issue44031] python3.8.9, python3.9.2 test_embed test_tabnanny failed

2021-05-25 Thread Alexei S
Alexei S added the comment: I downloaded tar.gz of Python-3.8.9 and Python-3.9.4 into my ~/Downloads folder (~/Загрузки in Russian) extracted them, after that executed: chmod +x configure CXX=/usr/bin/g++ ./configure --enable-optimizations make -j4 problems the same for both Python versions

[issue44031] python3.8.9, python3.9.2 test_embed test_tabnanny failed

2021-05-25 Thread Alexei S
Alexei S added the comment: make test TESTOPTS="-v test_embed test_tabnanny" CC='gcc -pthread' LDSHARED='gcc -pthread -shared' OPT='-DNDEBUG -g -fwrapv -O3 -Wall' _TCLTK_INCLUDES='' _TCLTK_LIBS='' ./python -E ./setup.py build running build running build_ext The

[issue37658] In some cases asyncio.wait_for can lead to socket leak.

2021-05-24 Thread Denis S. Otkidach
Denis S. Otkidach added the comment: Re: msg393586 > See my comment in the PR for a suggestion about an alternative structure for > wait_for, which may avoid this gap and hence prevent the leak (but I have not > tested it!) Unfortunately this didn't close the gap, so the leak pers

[issue37658] In some cases asyncio.wait_for can lead to socket leak.

2021-05-13 Thread Denis S. Otkidach
Denis S. Otkidach added the comment: The original problem can be fixed by wrapping await into try-except block: ``` async def create_connection(ssl_obj): loop = asyncio.get_event_loop() connector = loop.create_connection(MyEchoClientProtocol, '127.0.0.1', 5000, ssl=ssl_obj

[issue42130] AsyncIO's wait_for can hide cancellation in a rare race condition

2021-05-13 Thread Denis S. Otkidach
Change by Denis S. Otkidach : -- keywords: +patch pull_requests: +24737 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26097 ___ Python tracker <https://bugs.python.org/issu

[issue37658] In some cases asyncio.wait_for can lead to socket leak.

2021-05-13 Thread Denis S. Otkidach
Change by Denis S. Otkidach : -- pull_requests: +24738 pull_request: https://github.com/python/cpython/pull/26097 ___ Python tracker <https://bugs.python.org/issue37

[issue37658] In some cases asyncio.wait_for can lead to socket leak.

2021-05-13 Thread Denis S. Otkidach
Denis S. Otkidach added the comment: The current solutions doesn't look correct. It swallows cancelling causing task to hang: https://bugs.python.org/issue42130 . Proposed test case calls cancel for inner future and set_result for outer task in the same loop step. The old (prior

[issue43583] make test failures, 2 tests failed: test_embed test_tabnanny

2021-05-04 Thread Alexei S
Alexei S added the comment: i rename folder and tried python3 -m '~/Загрузки/Python-389/Lib/test/test_embed' -v /usr/bin/python3: No module named ~/Загрузки/Python-389/Lib/test/test_embed ??? -- ___ Python tracker <https://bugs.python.

[issue43583] make test failures, 2 tests failed: test_embed test_tabnanny

2021-05-04 Thread Alexei S
Alexei S added the comment: python3 -m ~/Загрузки/Python-3.8.9/Lib/test/test_embed -v /usr/bin/python3: Error while finding module specification for '/home/alexei/Загрузки/Python-3.8.9/Lib/test/test_embed' (ModuleNotFoundError: No module named '/home/alexei/Загрузки/Python-3') it doesn't

[issue44031] python3.8.9, python3.9.2 test_embed test_tabnanny failed

2021-05-04 Thread Alexei S
Alexei S added the comment: the same issue also in https://bugs.python.org/issue43583 -- ___ Python tracker <https://bugs.python.org/issue44031> ___ ___ Pytho

[issue43583] make test failures, 2 tests failed: test_embed test_tabnanny

2021-05-04 Thread Alexei S
Alexei S added the comment: I have opened the same issue https://bugs.python.org/issue44031 -- nosy: +asholomitskiy84 ___ Python tracker <https://bugs.python.org/issue43

[issue43583] make test failures, 2 tests failed: test_embed test_tabnanny

2021-05-04 Thread Alexei S
Change by Alexei S : Added file: https://bugs.python.org/file50013/log_make_test 3.9.2.log ___ Python tracker <https://bugs.python.org/issue43583> ___ ___ Python-bug

[issue43583] make test failures, 2 tests failed: test_embed test_tabnanny

2021-05-04 Thread Alexei S
Change by Alexei S : Added file: https://bugs.python.org/file50012/log_make_test 3.8.9.log ___ Python tracker <https://bugs.python.org/issue43583> ___ ___ Python-bug

[issue43001] python3.8.9, python3.9.2 test_embed test_tabnanny failed

2021-05-04 Thread Alexei S
Change by Alexei S : -- resolution: -> out of date status: open -> closed ___ Python tracker <https://bugs.python.org/issue43001> ___ ___ Python-bugs-list

[issue44031] python3.8.9, python3.9.2 test_embed test_tabnanny failed

2021-05-04 Thread Alexei S
Alexei S added the comment: this problem was announced also in 43001 https://bugs.python.org/issue43001?@ok_message=%D0%98%D0%B7%D0%BC%D0%B5%D0%BD%D0%B5%D0%BD%D1%8B%20%D0%B0%D1%82%D1%80%D0%B8%D0%B1%D1%83%D1%82%D1%8B%20%D0%B7%D0%B0%D0%B3%D0%BB%D0%B0%D0%B2%D0%B8%D0%B5%20%D0%BE%D0%B1%D1%8A%D0%B5

[issue44031] python3.8.9, python3.9.2 test_embed test_tabnanny failed

2021-05-04 Thread Alexei S
Change by Alexei S : Added file: https://bugs.python.org/file50011/log_make_test 3.8.9.log ___ Python tracker <https://bugs.python.org/issue44031> ___ ___ Python-bug

[issue44031] python3.8.9, python3.9.2 test_embed test_tabnanny failed

2021-05-04 Thread Alexei S
Change by Alexei S : Added file: https://bugs.python.org/file50010/log_make_test 3.9.2.log ___ Python tracker <https://bugs.python.org/issue44031> ___ ___ Python-bug

[issue44031] python3.8.9, python3.9.2 test_embed test_tabnanny failed

2021-05-04 Thread Alexei S
Change by Alexei S : Added file: https://bugs.python.org/file50009/log_make 3.9.2.log ___ Python tracker <https://bugs.python.org/issue44031> ___ ___ Python-bugs-list m

[issue44031] python3.8.9, python3.9.2 test_embed test_tabnanny failed

2021-05-04 Thread Alexei S
New submission from Alexei S : Python 3.9.2 make test == Tests result: FAILURE then FAILURE == 396 tests OK. 2 tests failed: test_embed test_tabnanny 27 tests skipped: test_bz2 test_curses test_dbm_gnu test_dbm_ndbm test_devpoll test_gdb test_idle test_ioctl test_kqueue test_lzma

[issue43001] python3.8.9, python3.9.2 test_embed test_tabnanny failed

2021-05-04 Thread Alexei S
Change by Alexei S : -- title: python3.8.9, python3.9.1 test_embed test_tabnanny failed -> python3.8.9, python3.9.2 test_embed test_tabnanny failed ___ Python tracker <https://bugs.python.org/issu

[issue43001] python3.8.9, python3.9.1 test_embed test_tabnanny failed

2021-05-04 Thread Alexei S
Change by Alexei S : Added file: https://bugs.python.org/file50007/log_make_test 3.9.2.log ___ Python tracker <https://bugs.python.org/issue43001> ___ ___ Python-bug

[issue43001] python3.8.9, python3.9.1 test_embed test_tabnanny failed

2021-05-04 Thread Alexei S
Alexei S added the comment: python 3.8.9 also show compile problems my system: Linux Mint 20.1 Cinnamon (Cinnamon 4.8.6) kernel 5.8.0-48-generic $uname -a Linux home 5.8.0-48-generic #54~20.04.1-Ubuntu SMP Sat Mar 20 13:40:25 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux I tried to execute problem

[issue43001] python3.8.9, python3.9.1 test_embed test_tabnanny failed

2021-05-04 Thread Alexei S
Change by Alexei S : -- versions: +Python 3.8 ___ Python tracker <https://bugs.python.org/issue43001> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43001] python3.9.1 test_embed test_tabnanny failed

2021-05-04 Thread Alexei S
Change by Alexei S : -- resolution: out of date -> status: closed -> open ___ Python tracker <https://bugs.python.org/issue43001> ___ ___ Python-bugs-list

[issue43001] python3.9.1python3.9.1 test_embed test_tabnanny failed

2021-05-04 Thread Alexei S
Change by Alexei S : -- title: python3.9.1 test_embed test_tabnanny failed -> python3.9.1python3.9.1 test_embed test_tabnanny failed ___ Python tracker <https://bugs.python.org/issu

[issue43583] make test failures, 2 tests failed: test_embed test_tabnanny

2021-05-02 Thread Alexei S
Change by Alexei S : -- components: +Tests type: -> compile error ___ Python tracker <https://bugs.python.org/issue43583> ___ ___ Python-bugs-list mai

[issue43430] Exception raised when attempting to create Enum via functional API

2021-04-21 Thread Suhail S.
Suhail S. added the comment: In my usecase, I wanted to override the behaviour of __getitem__. I was able to accomplish this by subclassing EnumMeta. Having done so, I was able to work around this bug as follows. Instead of trying to access the functional API via Enum (using an enum

[issue43430] Exception raised when attempting to create Enum via functional API

2021-03-07 Thread Suhail S.
Change by Suhail S. : -- nosy: +barry, eli.bendersky, ethan.furman ___ Python tracker <https://bugs.python.org/issue43430> ___ ___ Python-bugs-list mailin

[issue43430] Exception raised when attempting to create Enum via functional API

2021-03-07 Thread Suhail S.
New submission from Suhail S. : It is possible to create custom Enum classes with a metaclass that is a subtype of EnumMeta. It is also possible to inherit from such an enumeration to create another enumeration. However, attempting to do so via the functional API raises an exception. See

[issue43328] make test errors

2021-02-26 Thread Alexei S
Alexei S added the comment: == Tests result: FAILURE == 403 tests OK. 3 tests failed: test_embed test_ssl test_tabnanny -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/i

[issue43328] make test errors

2021-02-26 Thread Alexei S
New submission from Alexei S : this commands are successful: CXX=/usr/bin/g++ ./configure --enable-optimizations >> log_configure.log make -j4 >> log_make.log errors on make test: make -j4 test >> log_make_test.log my system: uname -a Linux home 5.8.0-43-generic #49~20.0

[issue43001] python3.9.1 test_embed test_tabnanny failed

2021-01-22 Thread Alexei S
New submission from Alexei S : == Tests result: FAILURE then FAILURE == 396 tests OK. 2 tests failed: test_embed test_tabnanny 27 tests skipped: test_bz2 test_curses test_dbm_gnu test_dbm_ndbm test_devpoll test_gdb test_idle test_ioctl test_kqueue test_lzma test_msilib

[issue42548] debugger stops at breakpoint of `pass` that is not actually reached

2020-12-02 Thread Andy S
New submission from Andy S : The python (3.6) doc states (https://docs.python.org/3/reference/simple_stmts.html#the-pass-statement): pass is a null operation... So since this is still an operation one could expect that it can be used as an op to breakpoint on while debugging some scripts

[issue42130] AsyncIO's wait_for can hide cancellation in a rare race condition

2020-10-26 Thread Denis S. Otkidach
Change by Denis S. Otkidach : -- nosy: +ods ___ Python tracker <https://bugs.python.org/issue42130> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42140] asyncio.wait function creates futures set two times

2020-10-25 Thread Denis S. Otkidach
Denis S. Otkidach added the comment: The current error message is way too cryptic anyway. And restricting it to the set type only, as in docs, will certainly break a lot of code (passing a list is quite common). -- ___ Python tracker <ht

[issue42140] asyncio.wait function creates futures set two times

2020-10-24 Thread Denis S. Otkidach
Change by Denis S. Otkidach : -- nosy: +ods ___ Python tracker <https://bugs.python.org/issue42140> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41555] re.sub replaces twice

2020-09-05 Thread S. Zhang
S. Zhang added the comment: Thanks. On Mon, Aug 17, 2020 at 7:40 PM Pablo Galindo Salgado < rep...@bugs.python.org> wrote: > > Change by Pablo Galindo Salgado : > > > -- > resolution: -> not a bug > stage: ->

[issue41555] re.sub replaces twice

2020-08-15 Thread S. Zhang
S. Zhang added the comment: Okay. Thanks. On Sat, Aug 15, 2020 at 9:07 AM Ma Lin wrote: > > Ma Lin added the comment: > > There can be at most one empty match at a position. IIRC, Perl's regex > engine has very similar behavior. > If don't want empty ma

[issue41555] re.sub replaces twice

2020-08-15 Thread S. Zhang
S. Zhang added the comment: Thanks. But if talking about empty matches, there would be endless empty matches at the end in such cases. So in my opinion, [^\.]*$ should match txt plus the empty match because the greedy rule applies here. On Fri, Aug 14, 2020 at 10:37 PM Ma Lin wrote

[issue41555] re.sub replaces twice

2020-08-14 Thread S. Zhang
New submission from S. Zhang : The following command produced "name.tsvtsv" with version 3.7.1 and 3.8.5 instead of the expected "name.tsv" from version 2.7.5, 3.5.6, and 3.6.7. Changing * to + produced expected "name.tsv". python -c 'import re; v="name.

[issue40673] urllib.request.URLopener raises different exceptions based on implementation detail

2020-05-18 Thread Petter S
Petter S added the comment: I see. Perhaps that is the resolution then. -- ___ Python tracker <https://bugs.python.org/issue40673> ___ ___ Python-bugs-list m

[issue40673] urllib.request.URLopener raises different exceptions based on implementation detail

2020-05-18 Thread Petter S
Petter S added the comment: I can fix this, but it does not have high priority. -- ___ Python tracker <https://bugs.python.org/issue40673> ___ ___ Python-bug

[issue35907] [security][CVE-2019-9948] Unnecessary URL scheme exists to allow local_file:// reading file in urllib

2020-05-18 Thread Petter S
Petter S added the comment: OK: https://bugs.python.org/issue40673 -- ___ Python tracker <https://bugs.python.org/issue35907> ___ ___ Python-bugs-list mailin

[issue40673] urllib.request.URLopener raises different exceptions based on implementation detail

2020-05-18 Thread Petter S
Change by Petter S : -- title: UrlOpener raises different exceptions based on implementation detail -> urllib.request.URLopener raises different exceptions based on implementation detail ___ Python tracker <https://bugs.python.org/issu

[issue40673] UrlOpener raises different exceptions based on implementation detail

2020-05-18 Thread Petter S
New submission from Petter S : The following code crashes with TypeError: URLopener().open("unknown_proxy://test") the expected behavior is an OSError, which is normally raised for unknown protocols. This implementation of directly calling a method called "unknown_pro

[issue35907] [security][CVE-2019-9948] Unnecessary URL scheme exists to allow local_file:// reading file in urllib

2020-05-04 Thread Petter S
Petter S added the comment: The solution is incomplete because it fixes just this single security issue, not the inherent fragility of this file. If, in the future someone happens to add another method starting with open to this class, we are at risk of having the same problem again

[issue35907] [security][CVE-2019-9948] Unnecessary URL scheme exists to allow local_file:// reading file in urllib

2020-05-04 Thread Petter S
Petter S added the comment: We should whitelist the protocols. The current solution with `getattr` is really fragile. For example, this crashes with a `TypeError`: `URLopener().open("unknown_proxy://test")` -- nosy: +Petter S ___ Pyth

[issue40325] Random.seed does not affect string hash randomization leading to non-intuitive results

2020-04-19 Thread Yuval S
Change by Yuval S : -- pull_requests: +18932 pull_request: https://github.com/python/cpython/pull/19596 ___ Python tracker <https://bugs.python.org/issue40

[issue40325] Random.seed does not affect string hash randomization leading to non-intuitive results

2020-04-19 Thread Yuval S
Yuval S added the comment: Thank you for the attention and the quick fix. However, the current documentation for "Notes on Reproducibility" should still address this issue of hash randomization. Not only `sample` is affected by this, but any code that combines strings (or bytes o

[issue40325] Random.seed does not affect string hash randomization leading to non-intuitive results

2020-04-18 Thread Yuval S
New submission from Yuval S : The following code gives different results on each run, even though "``random.seed()``" is used: >>> import random >>> random.seed(6) >>> x = set(str(i) for i in range(500)) >>> print(random.sample(x, 1)) presumably

[issue39010] ProactorEventLoop raises unhandled ConnectionResetError

2020-04-08 Thread Rustam S.
Rustam S. added the comment: Please take a look at this as well: (ipython #12049 'Unhandled exception in event loop' (WinError 995)) https://github.com/ipython/ipython/issues/12049#issuecomment-586544339 and below -- nosy: +Rustam S. ___ Python

[issue9253] argparse: optional subparsers

2020-04-03 Thread brent s.
Change by brent s. : -- nosy: +bsaner ___ Python tracker <https://bugs.python.org/issue9253> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue25024] Allow passing "delete=False" to TemporaryDirectory

2020-03-26 Thread Mauro S. M. Rodrigues
Mauro S. M. Rodrigues added the comment: So per Serhiy comment can I assume the patch is not necessary? If so I believe the issue should be closed as well. -- ___ Python tracker <https://bugs.python.org/issue25

[issue25024] Allow passing "delete=False" to TemporaryDirectory

2020-03-17 Thread Mauro S. M. Rodrigues
Mauro S. M. Rodrigues added the comment: Hi Anthony, Thanks for asking, yeah I'm interested in push a new version. I'll do it later today and I'll post a link to the pr here. -- ___ Python tracker <https://bugs.python.org/issue25

[issue39993] Language Reference - Function definition parameter_list item definition not equivalent to implementation.

2020-03-17 Thread Michael S
Michael S added the comment: Thanks Pablo, sorry, I was just stupid. > Do you think that adding these explicit parentheses would help with help > making this more clear? Maybe. I read the BNF documentation the first time today, but since it's not intended for beginners, I thin

[issue39993] Language Reference - Function definition parameter_list item definition not equivalent to implementation.

2020-03-17 Thread Michael S
New submission from Michael S : I just read https://docs.python.org/3/reference/compound_stmts.html#function-definitions The item parameter_list is defined as: parameter_list::= defparameter ("," defparameter)* "," "/" [&

[issue39823] Disassembly - improve documentation for bytecode instruction class and set source line no. attribute for every instruction

2020-03-02 Thread S Murthy
S Murthy added the comment: Docstring for `Instruction` should be more precise. ATM the description of `starts_line` is line started by this opcode (if any), otherwise None I think "source line started ..." would be a bit more precise an

[issue39823] Disassembly - improve documentation for bytecode instruction class and set source line no. attribute for every instruction

2020-03-02 Thread S Murthy
New submission from S Murthy : I note that on disassembling a piece of source code (via source strings or code objects) the corresponding sequence of bytecode instruction objects (https://docs.python.org/3/library/dis.html#dis.Instruction) do not always have the `starts_line` attribute set

[issue39800] Inconsistent/incomplete disassembly of methods vs method source code

2020-02-29 Thread S Murthy
S Murthy added the comment: Yes, I know that a method body may contain more than just the return statement - I was referrring to the byte code for the method def f(x): return x**2. I don't think the output of dis.dis is correct here for the source string of f - it doesn't make sense

[issue39800] Inconsistent/incomplete disassembly of methods vs method source code

2020-02-29 Thread S Murthy
S Murthy added the comment: BTW how else are methods/functions are created in Python except via def? -- ___ Python tracker <https://bugs.python.org/issue39

[issue39800] Inconsistent/incomplete disassembly of methods vs method source code

2020-02-29 Thread S Murthy
S Murthy added the comment: @steven.daprano In this case, the method f was created by via def. And calling dis.dis(s) where s is the source code of f (say s = inspect.getsource(f)) shows the bytecode both for the header and the body, as is clear enough from the example I first posted

[issue39800] Inconsistent/incomplete disassembly of methods vs method source code

2020-02-29 Thread S Murthy
New submission from S Murthy : I am using the dis module to look at source (and logical) lines of code vs corresponding bytecode instructions. I am bit confused by the output of dis.dis when disassembling a given method vs the corresponding source string, e.g. >>> def f(x): re

[issue12731] python lib re uses obsolete sense of \w in full violation of UTS#18 RL1.2a

2020-01-31 Thread Henry S. Thompson
Henry S. Thompson added the comment: [One year and 2 days later... :-[ Is this fixed in 3.9? If not, the Versions list above should be updated. The failure of lower() to preserve 'alpha-ness' is a serious bug, it causes significant failures in e.g. Turkish NLP, and it's _not_ just

[issue39479] [RFE] Add math.lcm() function: Least Common Multiple

2020-01-30 Thread Ananthakrishnan A S
Ananthakrishnan A S added the comment: Yes,I want to put together a PR. -- ___ Python tracker <https://bugs.python.org/issue39479> ___ ___ Python-bugs-list m

[issue39479] [RFE] Add math.lcm() function: Least Common Multiple

2020-01-29 Thread Ananthakrishnan A S
Ananthakrishnan A S added the comment: I agree with Vedran Čačić.As the modules are not made for one person but it is for the ease of coding.There are so many functions which i don't use but used by other people.We are using functions to make coding easy and if lcm function is added many

[issue39479] [RFE] Add math.lcm() function: Least Common Multiple

2020-01-28 Thread Ananthakrishnan A S
Ananthakrishnan A S added the comment: some problems that needs lcm function: 1:find the least number which when divided by 'a','b','c','d' leaves remainder 'e' in each case. 2:person A exercises every 'n' days and person B every 'm' days. A and B both exercised today. How many days

[issue39479] [RFE] Add math.lcm() function: Least Common Multiple

2020-01-28 Thread Ananthakrishnan A S
Ananthakrishnan A S added the comment: Should i proceed with adding a pull request for adding a 'lcm' function in python's math module. -- ___ Python tracker <https://bugs.python.org/issue39

[issue39479] [RFE] Add math.lcm() function: Least Common Multiple

2020-01-28 Thread Ananthakrishnan A S
Ananthakrishnan A S added the comment: I created this issue as i came across the following question: There are n students in class A,and m students in class B.each class divides into teams for a competition.What is the biggest possible team size that can be divided,such that each team has

[issue39479] can we add a lcm and gcd function.

2020-01-28 Thread Ananthakrishnan A S
New submission from Ananthakrishnan A S : can we add an lcm and gcd function that can work as: lcm(4,6) # returns 12 gcd(4,6) # returns 2 -- components: Library (Lib) messages: 360875 nosy: Ananthakrishnan A S priority: normal severity: normal status: open title: can we add a lcm

[issue39478] can we add a median function

2020-01-28 Thread Ananthakrishnan A S
New submission from Ananthakrishnan A S : add a function called 'median' that we can use like: list=[1,2,3,4,5,6,7,8,9] # declaring list median(list) #returns 5 -- components: Library (Lib) messages: 360873 nosy: Ananthakrishnan A S priority: normal severity: normal status

[issue36221] Setting PYTHONASYNCIODEBUG breaks warnings

2019-11-26 Thread Denis S. Otkidach
Denis S. Otkidach added the comment: It's fixed in 3.8 final, but the problem persists in 3.7.5 -- versions: -Python 3.8 ___ Python tracker <https://bugs.python.org/issue36

[issue38457] __package__ is None in __init__.py until an import is used

2019-10-13 Thread Yuval S
Yuval S added the comment: * It should be python[23] -m x.test, of course. -- ___ Python tracker <https://bugs.python.org/issue38457> ___ ___ Python-bugs-list m

[issue38457] __package__ is None in __init__.py until an import is used

2019-10-12 Thread Yuval S
New submission from Yuval S : In Python 2.7, the __package__ variable isn't set when __init__.py is run, until an import is done. In Python 3.5, it is set correctly. e.g. # mkdir x && echo "print(__package__)" | tee x/__init__.py x/test.py # python2 x.test None x # python3

[issue27682] wsgiref BaseHandler / SimpleHandler can raise additional errors when handling an error

2019-07-22 Thread Petter S
Petter S added the comment: No it is not fixed in Django, but I verified that adding ConnectionAbortedError on this line https://github.com/django/django/blob/c6581a40be3bb4c1e13861f0adbb3fe01f09107f/django/core/servers/basehttp.py#L55 fixes the error

[issue27682] wsgiref BaseHandler / SimpleHandler can raise additional errors when handling an error

2019-07-22 Thread Petter S
Petter S added the comment: Could potentially already be fixed in Django: https://github.com/django/django/commit/7785e03ba89aafbd949191f126361fb9103cb980#diff-f6d1c75ec606389da5af6558bf57f171L51 -- ___ Python tracker <https://bugs.python.

[issue27682] wsgiref BaseHandler / SimpleHandler can raise additional errors when handling an error

2019-07-22 Thread Petter S
Petter S added the comment: The following message can still appear in the log when running the Django development server: Exception happened during processing of request from ('127.0.0.1', 50713) Traceback (most recent call last): File "d:\pyt

[issue37594] re does not honor matching trailing multiple periods

2019-07-14 Thread brent s.
brent s. added the comment: Oh for pete's sake. I wish I could edit comments. Eric- To make it clear: * VERSION: 2.7.16 (default, Mar 11 2019, 18:59:25) [GCC 8.2.1 20181127] PATTERN: \.*$ BEFORE: a.b WITHOUT: a.b DUMMY: a.bX AFTER: a.b. RSTRIP: a.b == BEFORE: a.b. WITHOUT: a.b DUMMY

[issue37594] re does not honor matching trailing multiple periods

2019-07-14 Thread brent s.
brent s. added the comment: "'\.' is an invalid escape sequence. Could you try it with a raw string?" Well, a valid regex escape, but right. Point taken. I am under the impression, however, that given the value in ptrn (in example.py) is already a string, it should be interprete

[issue37594] re does not honor matching trailing multiple periods

2019-07-14 Thread brent s.
brent s. added the comment: WORKAROUND: Obviously, str.rstrip('.') still works, but this is of course quite inflexible compared to a regex pattern. -- ___ Python tracker <https://bugs.python.org/issue37

[issue37594] re does not honor matching trailing multiple periods

2019-07-14 Thread brent s.
brent s. added the comment: Sorry- by "chokes", I mean "substitutes in multiple replacements". -- ___ Python tracker <https://bug

[issue37594] re does not honor matching trailing multiple periods

2019-07-14 Thread brent s.
New submission from brent s. : (Sorry for the title; not quite sure how to summarize this) SO! Have I got an interesting one for you. ISSUE: In release 3.7.3 (and possibly later), the re module, if one has a string e.g. 'a.b.', a pattern such as '\.*$' will successfully *match* any number

[issue37593] ast.arguments has confusing args/posonlyargs ordering

2019-07-14 Thread Benjamin S Wolf
New submission from Benjamin S Wolf : Positional-only arguments come before position-or-keyword arguments. def f(pos1, pos2, /, pos_or_kwd, *, kwd1, kwd2): However, the posonlyargs are defined to come after args in the AST: arguments = (arg* args, arg* posonlyargs, arg? vararg, arg

[issue27682] wsgiref BaseHandler / SimpleHandler can raise additional errors when handling an error

2019-06-02 Thread Petter S
Change by Petter S : -- pull_requests: +13630 pull_request: https://github.com/python/cpython/pull/13748 ___ Python tracker <https://bugs.python.org/issue27

[issue35047] Better error messages in unittest.mock

2019-06-02 Thread Petter S
Change by Petter S : -- pull_requests: +13628 pull_request: https://github.com/python/cpython/pull/13746 ___ Python tracker <https://bugs.python.org/issue35

[issue34364] problem with traceback for syntax error in f-string

2019-05-28 Thread Denis S. Otkidach
Change by Denis S. Otkidach : -- nosy: +ods ___ Python tracker <https://bugs.python.org/issue34364> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37065] File and lineno is not reported for syntax error in f-string

2019-05-27 Thread Denis S. Otkidach
New submission from Denis S. Otkidach : Minimal example to reproduce: -->8-- >>> with open('f_bug.py', 'w') as fp: ... fp.write('f"{a b}"') ... 8 >>> import f_bug Traceback (most recent call last): File "", line 1, in File "", li

[issue36890] python-3.7.3-macosx10.6.pkg verification error on macOS 10.6 Snow Leopard

2019-05-13 Thread S. J. Cunningham
S. J. Cunningham added the comment: Apple's decision to support or not support their products is driven by Apple's business considerations and is not binding on anyone else. Many people continue to use earlier versions because of dependence on applications which do not run on later

[issue36890] python-3.7.3-macosx10.6.pkg verification error

2019-05-11 Thread S. J. Cunningham
New submission from S. J. Cunningham : I can't Install the latest python-3.7.3-macosx10.6.pkg on my 10.6.8 system. Error message says failure to verify. I posted on the forms as suggested (https://python-forum.io/Thread-Cannot-Install-python-3-7-3-macosx10-6-pkg) but have received

[issue27682] wsgiref BaseHandler / SimpleHandler can raise additional errors when handling an error

2019-04-04 Thread Petter S
Petter S added the comment: The pull request solves this problem, but the discussion over there is really slow. -- ___ Python tracker <https://bugs.python.org/issue27

  1   2   3   >