Change by Serhiy Storchaka :
--
pull_requests: +26820
pull_request: https://github.com/python/cpython/pull/28408
___
Python tracker
<https://bugs.python.org/issue45
Change by Serhiy Storchaka :
--
pull_requests: +26821
pull_request: https://github.com/python/cpython/pull/28409
___
Python tracker
<https://bugs.python.org/issue45
Serhiy Storchaka added the comment:
No, it is a feature.
Python allows you to chain comparison operations, so you can write 0 < x <= 10
which is equivalent to (0 < x) and (x <= 10).
And "is" is a comparison operation. So `3==3 is not True` is equivalent to
`(3=
Serhiy Storchaka added the comment:
New changeset b2b035a949eff1dc54b5bafe2bc9ce72b4d24438 by Serhiy Storchaka in
branch 'main':
bpo-5846: Fix deprecations for obsolete unittest functions and add tests.
(GH-28382)
https://github.com/python/cpyt
Change by Serhiy Storchaka :
--
versions: +Python 3.11 -Python 3.4
___
Python tracker
<https://bugs.python.org/issue5846>
___
___
Python-bugs-list mailin
Change by Serhiy Storchaka :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.o
Serhiy Storchaka added the comment:
New changeset ce59ac93626004894c2b291ec599a36cfa9fb0be by Serhiy Storchaka in
branch '3.10':
[3.10] bpo-45212: Fix dangling threads in skipped tests in test_socket
(GH-28361) (GH-28409)
https://github.com/python/cpyt
Serhiy Storchaka added the comment:
New changeset 10c3cf78518f4b31e1527c2795694b1bcb092696 by Serhiy Storchaka in
branch '3.9':
[3.9] bpo-45212: Fix dangling threads in skipped tests in test_socket
(GH-28361) (GH-28408)
https://github.com/python/cpyt
Change by Serhiy Storchaka :
--
pull_requests: +26826
pull_request: https://github.com/python/cpython/pull/28414
___
Python tracker
<https://bugs.python.org/issue45
Serhiy Storchaka added the comment:
I have merged the backported PRs because they are blockers for my other PR
which is a blocker for my other PR which is a blocker for my other PR and
several future PRs.
--
___
Python tracker
<ht
Serhiy Storchaka added the comment:
New changeset b0a6ede3d0bd6fa4ffe413ab4dfc1059201df25b by Serhiy Storchaka in
branch 'main':
bpo-45162: Remove many old deprecated unittest features (GH-28268)
https://github.com/python/cpython/commit/b0a6ede3d0bd6fa4ffe413ab4dfc10
Change by Serhiy Storchaka :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Serhiy Storchaka added the comment:
It is not clear whether we want to backport this change.
--
___
Python tracker
<https://bugs.python.org/issue44211>
___
___
Serhiy Storchaka added the comment:
New changeset 0f4449ecb0d678984b1343d60c070dcb1bd62e56 by Ćukasz Langa in
branch '3.9':
[3.9] bpo-45187: Collect test_socket tests using unittest (GH-28317) (GH-28413)
https://github.com/python/cpython/commit/0f4449ecb0d678984b1343d60c070d
Change by Serhiy Storchaka :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Serhiy Storchaka added the comment:
It is an internal function. We can remove it without deprecation.
--
___
Python tracker
<https://bugs.python.org/issue5
Change by Serhiy Storchaka :
--
nosy: +serhiy.storchaka
nosy_count: 4.0 -> 5.0
pull_requests: +26829
pull_request: https://github.com/python/cpython/pull/28180
___
Python tracker
<https://bugs.python.org/issu
Change by Serhiy Storchaka :
--
pull_requests: -26829
___
Python tracker
<https://bugs.python.org/issue10611>
___
___
Python-bugs-list mailing list
Unsubscribe:
Serhiy Storchaka added the comment:
New changeset 54a1760cde7bb01e5574734c389c0746762218fd by Serhiy Storchaka in
branch 'main':
bpo-45212: Add a comment for time.sleep() in tests (GH-28414)
https://github.com/python/cpython/commit/54a1760cde7bb01e5574734c389c07
Change by Serhiy Storchaka :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Serhiy Storchaka :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Serhiy Storchaka :
--
pull_requests: +26834
pull_request: https://github.com/python/cpython/pull/28422
___
Python tracker
<https://bugs.python.org/issue45
Serhiy Storchaka added the comment:
New changeset 51ebb7f4f5e9bdcf8279a1d91be9569706f6bead by Serhiy Storchaka in
branch 'main':
bpo-45187: Fix dangling threads in test_socket.CreateServerFunctionalTest
(GH-28422)
https://github.com/python/cpyt
Serhiy Storchaka added the comment:
Thank you Zachary, I almost forgot about that issue.
The goal of this issue is to make regrtests using test discovery instead of
manually composed lists of test classes. Of course it requires that tests
should be discoverable. And most of them already are
Serhiy Storchaka added the comment:
I has merged similar PR in issue45187. Although it required to fix some
existing bugs first.
--
nosy: +serhiy.storchaka
___
Python tracker
<https://bugs.python.org/issue38
Serhiy Storchaka added the comment:
test_concurrent_futures was made discoverable by Victor Stinner in issue37421.
It used tearDownModule() to run threading_cleanup() and reap_children().
--
status: open -> pending
___
Python tracker
<
Serhiy Storchaka added the comment:
It has been done in issue45187. The problem with reaping threads was solved by
using setUpModule() and addModuleCleanup().
Matt's patch contains also replacing calls of concrete class __init__s with
using super(). It can be applied.
--
Serhiy Storchaka added the comment:
New changeset 6c50f23ae085ec66f320a26a3f0a6c60d7f2b29d by Miss Islington (bot)
in branch '3.9':
bpo-45187: Fix dangling threads in test_socket.CreateServerFunctionalTest
(GH-28422) (GH-28424)
https://github.com/python/cpyt
Serhiy Storchaka added the comment:
Fixed in issue45042.
--
nosy: +serhiy.storchaka
resolution: -> duplicate
stage: -> resolved
status: open -> closed
superseder: -> Many multiprocessing tests are silently skipped since 3.9
___
Py
Change by Serhiy Storchaka :
--
pull_requests: +26849
pull_request: https://github.com/python/cpython/pull/28446
___
Python tracker
<https://bugs.python.org/issue36
Serhiy Storchaka added the comment:
PR 28446 makes TestCase.debug() honoring the skipping decorator.
The difference with PR 13180:
1. It does not run setUp() and tearDown() for tests decorated with the skipping
decorator, as TestCase.run().
2. It has the same behavior for tests decorated
Serhiy Storchaka added the comment:
Since the behavior of debug() was different for the following cases:
@skip('skipping')
def test1(self):
pass
@othedecorator
@skip('skipping')
def test2(self):
pass
def test3(self):
self.ski
Serhiy Storchaka added the comment:
New changeset dea59cf88adf5d20812edda330e085a4695baba4 by Serhiy Storchaka in
branch 'main':
bpo-36674: Honour the skipping decorators in TestCase.debug() (GH-28446)
https://github.com/python/cpython/commit/dea59cf88adf5d20812edda330e085
New submission from Serhiy Storchaka :
Currently debug() does not work in IsolatedAsyncioTestCase subclasses. It runs
synchronous code (setUp(), tearDown(), synchronous tests and cleanup
functions), but does not run any asynchronous code (asyncSetUp(),
asyncTearDown(), asynchronous tests and
Change by Serhiy Storchaka :
--
keywords: +patch
pull_requests: +26852
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/28449
___
Python tracker
<https://bugs.python.org/issu
Serhiy Storchaka added the comment:
See issue45238 for debug() in IsolatedAsyncioTestCase.
--
___
Python tracker
<https://bugs.python.org/issue36674>
___
___
Change by Serhiy Storchaka :
--
title: Remove redundand information from difflib docstrings -> Remove redundant
information from difflib docstrings
___
Python tracker
<https://bugs.python.org/issu
Serhiy Storchaka added the comment:
Iterating large integers:
$ ./python -m pyperf timeit -s 'r = range(0, 10**20, 3**35)' 'for i in r: pass'
baseline: Mean +- std dev: 223 us +- 10 us
PR 27986: Mean +- std dev: 128 us +- 4 us
PR 28176: Mean +- std dev: 99.0 us +- 3
Serhiy Storchaka added the comment:
It turned out be more complicated than I expected. We need to keep the even
loop after getting exception in debug() for having ability to run doCleanup()
etc. The option is to close the even loop in __del__. But we should ensure that
it is closed before
Serhiy Storchaka added the comment:
New changeset 664448d81f41c5fa971d8523a71b0f19e76cc136 by Serhiy Storchaka in
branch 'main':
bpo-30856: Update TestResult early, without buffering in _Outcome (GH-28180)
https://github.com/python/cpython/commit/664448d81f41c5fa971d8523a71b0f
Change by Serhiy Storchaka :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Serhiy Storchaka added the comment:
New changeset 40348acc180580371d25f75f46b27048e35f2435 by Serhiy Storchaka in
branch 'main':
bpo-45229: Remove test_main in many tests (GH-28405)
https://github.com/python/cpython/commit/40348acc180580371d25f75f46b270
Change by Serhiy Storchaka :
--
pull_requests: +26856
pull_request: https://github.com/python/cpython/pull/28454
___
Python tracker
<https://bugs.python.org/issue45
Change by Serhiy Storchaka :
--
pull_requests: +26857
pull_request: https://github.com/python/cpython/pull/28455
___
Python tracker
<https://bugs.python.org/issue45
Serhiy Storchaka added the comment:
New changeset a6241773869b80f2b1cac63f26ba646aa808a8db by Serhiy Storchaka in
branch 'main':
bpo-45229: Fix setUpModule in test_ssl (GH-28454)
https://github.com/python/cpython/commit/a6241773869b80f2b1cac63f26ba64
Change by Serhiy Storchaka :
--
pull_requests: +26858
pull_request: https://github.com/python/cpython/pull/28456
___
Python tracker
<https://bugs.python.org/issue45
Serhiy Storchaka added the comment:
New changeset bedce3538cca3469ac3efc614ef062367cbb2ff1 by Serhiy Storchaka in
branch '3.10':
[3.10] bpo-45229: Remove test_main in many tests (GH-28405) (GH-28455)
https://github.com/python/cpython/commit/bedce3538cca3469ac3efc614ef062
Serhiy Storchaka added the comment:
New changeset 5822ab672a1d26ff1837103c1ed8e4c3c2a42b87 by Serhiy Storchaka in
branch '3.9':
[3.9] bpo-45229: Remove test_main in many tests (GH-28405) (GH-28456)
https://github.com/python/cpython/commit/5822ab672a1d26ff1837103c1ed8e4
Change by Serhiy Storchaka :
--
pull_requests: +26866
pull_request: https://github.com/python/cpython/pull/28467
___
Python tracker
<https://bugs.python.org/issue45
Change by Serhiy Storchaka :
--
pull_requests: +26867
pull_request: https://github.com/python/cpython/pull/28468
___
Python tracker
<https://bugs.python.org/issue45
Serhiy Storchaka added the comment:
New changeset a856364cc920d8b16750fd1fadc902efb509754c by Serhiy Storchaka in
branch 'main':
bpo-45229: Use doctest.DocTestSuite instead of run_doctest (GH-28468)
https://github.com/python/cpython/commit/a856364cc920d8b16750fd1fadc902
Serhiy Storchaka added the comment:
New changeset e6ba992288fdbe71aa808cfb6955f6f99da7e349 by Serhiy Storchaka in
branch 'main':
bpo-45229: Make pickle tests discoverable (GH-28467)
https://github.com/python/cpython/commit/e6ba992288fdbe71aa808cfb6955f6
Serhiy Storchaka added the comment:
Interesting, it is because object().__eq__(object()) returns NotImplemented
instead of False.
object.__eq__ could return False if arguments have same type (or in some other
cases). I think it would not break anything, and it would fix your case. But I
am
Serhiy Storchaka added the comment:
What are microbenchmark results for PR 28469 in comparison with the baseline?
--
___
Python tracker
<https://bugs.python.org/issue24
Serhiy Storchaka added the comment:
Not only sys.executable. Sources of non-ASCII paths:
* sys.executable
* __file__ of the stdlib or test modules
* the current working directory
* the temporary directory
The last one is the most common in these failures.
Tests fail when a non-ASCII path is
Serhiy Storchaka added the comment:
Thank you. Could you please test PGO builds?
--
___
Python tracker
<https://bugs.python.org/issue24076>
___
___
Python-bug
Serhiy Storchaka added the comment:
Thank you again Stefan. Now no doubts are left.
BTW, pyperf gives more stable results. I use it if have any doubts (either the
results of timeit are not stable or the difference is less than say 10
Serhiy Storchaka added the comment:
length_hint(), not len(). Its cost is included in microbenchmark for list(),
where it is followed by iterating 2000 items.
Calling operator.length_hint() in Python:
$ ./python -m pyperf timeit -s 'it = iter(range(1000)); from operator import
length
Change by Serhiy Storchaka :
--
pull_requests: +26907
pull_request: https://github.com/python/cpython/pull/28515
___
Python tracker
<https://bugs.python.org/issue41
Serhiy Storchaka added the comment:
AFAIK Mark Shannon proposed this idea, but it was rejected.
--
nosy: +gvanrossum, serhiy.storchaka
___
Python tracker
<https://bugs.python.org/issue45
Serhiy Storchaka added the comment:
New changeset 36122e18148c5b6c78ebce1d36d514fd7cf250f5 by Serhiy Storchaka in
branch 'main':
bpo-41203: Replace Mac OS X and OS X with macOS (GH-28515)
https://github.com/python/cpython/commit/36122e18148c5b6c78ebce1d36d514
Serhiy Storchaka added the comment:
New changeset 1493e1a40d04a048cce9c5080ec47478a4941054 by Miss Islington (bot)
in branch '3.10':
bpo-41203: Replace Mac OS X and OS X with macOS (GH-28515) (GH-28523)
https://github.com/python/cpython/commit/1493e1a40d04a048cce9c5080ec474
Serhiy Storchaka added the comment:
New changeset f1d5cdef57fea961646c52db7a60d1f110e0eaa6 by Miss Islington (bot)
in branch '3.9':
bpo-41203: Replace Mac OS X and OS X with macOS (GH-28515) (GH-28524)
https://github.com/python/cpython/commit/f1d5cdef57fea961646c52db7a60d1
Serhiy Storchaka added the comment:
Thank you Patrick.
We had several PRs for fixing macOS references here and there, they were closed
in favor of this larger PR.
--
resolution: -> fixed
stage: patch review -> resolved
status: open -&g
Serhiy Storchaka added the comment:
There are several common idioms which do not work well with shared dictionaries.
1. Class attributes as defaults. If most instances of the class have the
default value for some attribute, it can be set as the class attribute. It
saves memory because most
Serhiy Storchaka added the comment:
Matt, your example works in 3.11. In earlier versions you need to override the
__new__ method.
--
___
Python tracker
<https://bugs.python.org/issue40
Serhiy Storchaka added the comment:
I am not sure that it can be solved at Python level.
Possible solutions:
* Add a Lock method (or just a builtin function) which acquires and immediately
releases the lock, without possibility to interrupt.
if lock._blink(block, timeout
Serhiy Storchaka added the comment:
I do not see any difference in iterating small integers:
$ ./python -m pyperf timeit -s 'r = range(1)' 'for i in r: pass'
PR 27986: Mean +- std dev: 174 us +- 9 us
PR 28176: Mean +- std
Change by Serhiy Storchaka :
--
components: +Library (Lib)
nosy: +fdrake, pitrou, serhiy.storchaka
versions: +Python 3.10, Python 3.11, Python 3.9
___
Python tracker
<https://bugs.python.org/issue45
Serhiy Storchaka added the comment:
But you will not get them in creation order, even if omit the final sort,
because:
1. dir() returns names sorted alphabetically, not in order of creation.
2. Dynamic class attributes are added at the end, and inherited attributes
follow attributes defined
Serhiy Storchaka added the comment:
Adding support of symlinks in ZIP files will make the zipfile module vulnerable
to symlink attacks like like with TAR files (see
https://en.wikipedia.org/wiki/Tar_(computing)#Duplicates). Until we find a
solution to this, adding support of symlinks is
Change by Serhiy Storchaka :
--
resolution: -> duplicate
stage: -> resolved
status: open -> closed
superseder: -> Improve zipfile: add support for symlinks
___
Python tracker
<https://bugs.python
Change by Serhiy Storchaka :
--
resolution: -> duplicate
stage: -> resolved
status: open -> closed
superseder: -> is_zipfile false positives
___
Python tracker
<https://bugs.python
Serhiy Storchaka added the comment:
There is nothing in code that could explain a measureable difference in
creating the range objects or the range object iterators. And indeed, it is in
the range of the standard deviation, so it is non-existent
Serhiy Storchaka added the comment:
_PyImport_FindExtensionObject is a private API. It was added in 3.3 because
import.c and importdl.c needed to share code. Since 3.5 it was only used in
import.c, so there is no longer need to expose it. It was removed in 3.10
because there was an issue
Serhiy Storchaka added the comment:
In the last version of PR 20534, the reprs will be similar to proposed by Larry
in msg244958, except that a colon is used to separate an address from status,
and keyword names are used for values.
It is closer to existing reprs, I'm goi
Change by Serhiy Storchaka :
--
versions: +Python 3.11 -Python 3.5, Python 3.6
___
Python tracker
<https://bugs.python.org/issue24391>
___
___
Python-bugs-list m
Serhiy Storchaka added the comment:
It depends on what you want to get. In general, it is difficult if interpret
your request literally. For example, if you define class A in module a, class B
in module b, and class C which inherits from classes A and B in module c, then
what members of C
Serhiy Storchaka added the comment:
Why do you set the ZipFile.pwd attribute directly?
--
___
Python tracker
<https://bugs.python.org/issue39359>
___
___
Pytho
Serhiy Storchaka added the comment:
That you need to override the __new__ method? I don't know whether it is
documented specially. But the constructor calls __new__() and then __init__().
If changing the argument in __init__ does not help, it is because it was
already proceeded in __
Serhiy Storchaka added the comment:
I am working on it, since it is more complex issue, and PR 13134 does not solve
it.
1. This bug affects also other codecs implemented in C: ASCII, Latin1, UTF-8,
etc.
2. It still crashes in UTF-16/32 encoders if the error handler returns a
position less
Change by Serhiy Storchaka :
--
title: Lock.acquire() not interruptible on Windows -> threading.Lock.acquire()
not interruptible on Windows
___
Python tracker
<https://bugs.python.org/issu
Serhiy Storchaka added the comment:
Ah, if you only need a module, then just use its __dict__ (or vars()).
--
___
Python tracker
<https://bugs.python.org/issue45
Change by Serhiy Storchaka :
--
pull_requests: +26973
pull_request: https://github.com/python/cpython/pull/28593
___
Python tracker
<https://bugs.python.org/issue36
Change by Serhiy Storchaka :
--
keywords: +patch
pull_requests: +26974
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/28594
___
Python tracker
<https://bugs.python.org/issu
Serhiy Storchaka added the comment:
Gregory, could you please build Python 3.10 with PR 28594 applied and test
whether py2exe and PyOxidizer work well with it? The restored function no
longer used in the CPython code, so it is not tested now
Change by Serhiy Storchaka :
--
nosy: +pablogsal
priority: normal -> release blocker
___
Python tracker
<https://bugs.python.org/issue45307>
___
___
Python-
Serhiy Storchaka added the comment:
Agree.
We should also review all recently added functions with PyAPI_FUNC(). If they
are not intended to be public API, PyAPI_FUNC() should be removed and
declarations moved.
--
nosy: +serhiy.storchaka
Serhiy Storchaka added the comment:
Restricting the returned position to be strictly larger than start would solve
the problem with infinite loop and OOM. But this is a different issue.
--
___
Python tracker
<https://bugs.python.org/issue36
Serhiy Storchaka added the comment:
New changeset eed32df5b6b989caf125d829301546db58b529dd by Serhiy Storchaka in
branch 'main':
bpo-24391: Better reprs for threading objects. (GH-20534)
https://github.com/python/cpython/commit/eed32df5b6b989caf125d829301546
Change by Serhiy Storchaka :
--
pull_requests: +26986
pull_request: https://github.com/python/cpython/pull/28615
___
Python tracker
<https://bugs.python.org/issue45
Serhiy Storchaka added the comment:
There was no much need of this feature. In rare cases when we needed to build a
bool in Py_BuildValue (I have found only 2 cases in the stdlib, and one of them
is added by me) we use the following idiom:
Py_BuildValue("...O...", ..., expr
Change by Serhiy Storchaka :
--
pull_requests: +27006
pull_request: https://github.com/python/cpython/pull/28637
___
Python tracker
<https://bugs.python.org/issue45
Serhiy Storchaka added the comment:
New changeset d441437ee71ae174c008c23308b749b91020ba77 by Serhiy Storchaka in
branch 'main':
bpo-45229: Make datetime tests discoverable (GH-28615)
https://github.com/python/cpython/commit/d441437ee71ae174c008c23308b749
Serhiy Storchaka added the comment:
> What happens if you pass a double, it is stored as a double on the C stack,
> and then Py_BuildValue() will read junk data?
AFAIK, it is complicated. On old computer primitive compilers just pushed
arguments one by one on the stack (in pl
Change by Serhiy Storchaka :
--
pull_requests: +27013
pull_request: https://github.com/python/cpython/pull/28645
___
Python tracker
<https://bugs.python.org/issue45
Serhiy Storchaka added the comment:
> But isn't that risk the same for other formatting parameters?
I think that the risk for other formatting parameters is smaller, because you
know, that there are different formatting parameters for different integer and
floating point types,
Serhiy Storchaka added the comment:
Seems this is not a new bug:
$ ./python -m test test_datetime test_datetime -m test_divide_and_round
0:00:00 load avg: 2.36 Run tests sequentially
0:00:00 load avg: 2.36 [1/2] test_datetime
0:00:00 load avg: 2.36 [2/2] test_datetime
test test_datetime
Serhiy Storchaka added the comment:
See issue40058 and issue40173.
--
dependencies: +Running test_datetime twice fails with: module 'datetime' has no
attribute '_divide_and_round', test.support.import_fresh_module fails to
correctly block submodules whe
Change by Serhiy Storchaka :
--
versions: +Python 3.10, Python 3.11 -Python 3.7, Python 3.8
___
Python tracker
<https://bugs.python.org/issue40173>
___
___
Pytho
1801 - 1900 of 25874 matches
Mail list logo