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
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
___
P
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
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/is
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
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
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
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 references lik
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/is
Alexei S added the comment:
yes!
the problem was in folder caption!
--
___
Python tracker
<https://bugs.python.org/issue44031>
___
___
Python-bugs-list mailin
Alexei S added the comment:
the problem is caused by language??
--
___
Python tracker
<https://bugs.python.org/issue44031>
___
___
Python-bugs-list mailin
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
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 ./set
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
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,
s
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
Change by Denis S. Otkidach :
--
pull_requests: +24738
pull_request: https://github.com/python/cpython/pull/26097
___
Python tracker
<https://bugs.python.org/issue37
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 to
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://bu
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-
Alexei S added the comment:
the same issue also in
https://bugs.python.org/issue43583
--
___
Python tracker
<https://bugs.python.org/issue44031>
___
___
Pytho
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
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
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
Change by Alexei S :
--
resolution: -> out of date
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue43001>
___
___
Python-bugs-list
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
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
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
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
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
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
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
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
Change by Alexei S :
--
versions: +Python 3.8
___
Python tracker
<https://bugs.python.org/issue43001>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Alexei S :
--
resolution: out of date ->
status: closed -> open
___
Python tracker
<https://bugs.python.org/issue43001>
___
___
Python-bugs-list
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
Change by Alexei S :
--
components: +Tests
type: -> compile error
___
Python tracker
<https://bugs.python.org/issue43583>
___
___
Python-bugs-list mai
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 as the
Change by Suhail S. :
--
nosy: +barry, eli.bendersky, ethan.furman
___
Python tracker
<https://bugs.python.org/issue43430>
___
___
Python-bugs-list mailin
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
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
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
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
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
Change by Denis S. Otkidach :
--
nosy: +ods
___
Python tracker
<https://bugs.python.org/issue42130>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Change by Denis S. Otkidach :
--
nosy: +ods
___
Python tracker
<https://bugs.python.org/issue42140>
___
___
Python-bugs-list mailing list
Unsubscribe:
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: ->
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 wan
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
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="
Petter S added the comment:
I see. Perhaps that is the resolution then.
--
___
Python tracker
<https://bugs.python.org/issue40673>
___
___
Python-bugs-list m
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
Petter S added the comment:
OK: https://bugs.python.org/issue40673
--
___
Python tracker
<https://bugs.python.org/issue35907>
___
___
Python-bugs-list mailin
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
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_proxy"
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.
As
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
Change by Yuval S :
--
pull_requests: +18932
pull_request: https://github.com/python/cpython/pull/19596
___
Python tracker
<https://bugs.python.org/issue40
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
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
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.
Change by brent s. :
--
nosy: +bsaner
___
Python tracker
<https://bugs.python.org/issue9253>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.pyth
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
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.pyt
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
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)* "," "/" [&
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
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
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
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
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
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
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'
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
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
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
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.pyt
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
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 and
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: nor
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/is
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
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
# py
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
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.
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 &q
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
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
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.o
brent s. added the comment:
Sorry- by "chokes", I mean "substitutes in multiple replacements".
--
___
Python tracker
<https://bug
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 *
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
Change by Petter S :
--
pull_requests: +13630
pull_request: https://github.com/python/cpython/pull/13748
___
Python tracker
<https://bugs.python.org/issue27
Change by Petter S :
--
pull_requests: +13628
pull_request: https://github.com/python/cpython/pull/13746
___
Python tracker
<https://bugs.python.org/issue35
Change by Denis S. Otkidach :
--
nosy: +ods
___
Python tracker
<https://bugs.python.org/issue34364>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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 ru
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 receiv
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 - 100 of 290 matches
Mail list logo