Irit Katriel added the comment:
I don't think there's any suitable place in the documentation to describe this.
Like Pablo says, it is one of the many ways in which you can create a reference
to an object.
--
nosy: +iritkatriel
stage: -> resolved
status: open ->
Change by Irit Katriel :
--
resolution: -> rejected
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue37588>
___
___
Change by Irit Katriel :
--
assignee: -> docs@python
components: +Documentation
nosy: +docs@python, iritkatriel, vstinner
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7
___
Python tracker
<https://bugs.python.org/issu
Change by Irit Katriel :
--
versions: +Python 3.11 -Python 3.8
___
Python tracker
<https://bugs.python.org/issue34284>
___
___
Python-bugs-list mailing list
Unsub
Irit Katriel added the comment:
Does PEP626 help with this problem?
--
nosy: +iritkatriel
___
Python tracker
<https://bugs.python.org/issue34888>
___
___
Pytho
Irit Katriel added the comment:
Is there anything left to do here?
--
nosy: +iritkatriel
___
Python tracker
<https://bugs.python.org/issue36346>
___
___
Pytho
Change by Irit Katriel :
--
title: Add tests and documentation regarding context of exception in a finally
block -> Add tests regarding context of exception in a finally block
___
Python tracker
<https://bugs.python.org/issu
Irit Katriel added the comment:
The documentation is fine:
https://docs.python.org/3/library/exceptions.html#exception-context
--
___
Python tracker
<https://bugs.python.org/issue46
Change by Irit Katriel :
--
pull_requests: -29165
___
Python tracker
<https://bugs.python.org/issue46458>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Irit Katriel :
--
keywords: +patch
pull_requests: +29170
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30986
___
Python tracker
<https://bugs.python.org/issu
New submission from Irit Katriel :
This behavior (that the OSError has the ValueError as context) should be tested
and documented:
>>> try:
... raise TypeError(1)
... except:
... raise ValueError(2)
... finally:
... raise OSError(3)
...
Traceback (most recent call last
Change by Irit Katriel :
--
pull_requests: +29165
pull_request: https://github.com/python/cpython/pull/30986
___
Python tracker
<https://bugs.python.org/issue46
Change by Irit Katriel :
--
components: +Tests
___
Python tracker
<https://bugs.python.org/issue46098>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Irit Katriel :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: -Python 3.10
___
Python tracker
<https://bugs.python.or
Irit Katriel added the comment:
New changeset 183f8d57fa5959e7578e7f470edc364edb23caca by Russel Webber in
branch 'main':
bpo-46098: Add test for multiline syntax error traceback (GH-30695)
https://github.com/python/cpython/commit/183f8d57fa5959e7578e7f470edc364edb23caca
Irit Katriel added the comment:
New changeset 3d2ce3471646704ebd5252f4b20f065f139a53b1 by Irit Katriel in
branch 'main':
bpo-46458: emit code for else of a try block immediately after the try body
(GH-30751)
https://github.com/python/cpython/commit/3d2ce3471646704ebd5252f4b20f065f139a53b1
Irit Katriel added the comment:
Thank you @a3nm, @kinshukdua2 and @martin.panter.
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Irit Katriel added the comment:
New changeset 08c0ed2d9c0d01ad1a5adc0787bc75e4e90cbb85 by Kinshuk Dua in branch
'main':
bpo-23556: [doc] Fix inaccuracy in documentation for raise without args.
Improve tests for context in nested except handlers. (GH-29236)
https://github.com/python/cpython
Irit Katriel added the comment:
> "have the :ref:`default return value of ``None``."
This sounds to me like "by default they return None but you can override this
default".
I don't think any change to the doc makes sense here. When you state the
obvious people wond
Change by Irit Katriel :
--
nosy: +iritkatriel
___
Python tracker
<https://bugs.python.org/issue42926>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Irit Katriel :
--
resolution: -> wont fix
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Irit Katriel added the comment:
Perhaps this is just a doc issue - state explicitly that a loop should be used
only in one thread, and mention that this is checked in debug mode.
--
___
Python tracker
<https://bugs.python.org/issue34
Irit Katriel added the comment:
In the long term we will want to not have the triplet, but this is a process
that will take a few python versions to complete (when 3.11 is the oldest
supported version). And it is not going to be simple.
In the meantime, where there is an advantage
Irit Katriel added the comment:
In other words, I don't see why it's an improvement to replace
exception = sys.exc_info()
by
exception = type(exc), exc, exc.__traceback__
when sys.exc_info() does exactly what your inlined version does
Irit Katriel added the comment:
I don't think this is worth doing in a module where we can't completely get rid
of the exc_info triplet.
--
___
Python tracker
<https://bugs.python.org/issue46
Irit Katriel added the comment:
> The author probably also wants the TypeError initially raised from the
> "len(query)" and "query[0]" operations to get the same "not a valid . . ."
> message.
I see.
I didn’t realise it’s deprecated, I
Irit Katriel added the comment:
New changeset 072f4a473e861c6c987650f08990c0ed1f76715f by Irit Katriel in
branch 'main':
bpo-46431: use raw string for regex in test (GH-30901)
https://github.com/python/cpython/commit/072f4a473e861c6c987650f08990c0ed1f76715f
Irit Katriel added the comment:
See also Issue41294.
--
___
Python tracker
<https://bugs.python.org/issue19073>
___
___
Python-bugs-list mailing list
Unsub
Change by Irit Katriel :
--
pull_requests: +29080
pull_request: https://github.com/python/cpython/pull/30901
___
Python tracker
<https://bugs.python.org/issue46
Irit Katriel added the comment:
I think this is a duplicate of Issue19073.
--
nosy: +iritkatriel
___
Python tracker
<https://bugs.python.org/issue41294>
___
___
Irit Katriel added the comment:
@kinshukdua - can you explain why you closed the PR and whether you are
interested in reopening it and finishing this?
--
___
Python tracker
<https://bugs.python.org/issue23
Change by Irit Katriel :
--
resolution: -> later
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Irit Katriel :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Irit Katriel added the comment:
New changeset ec7c17ea236f71c8376abcc2930a7c857d417966 by Irit Katriel in
branch 'main':
bpo-46510: Add missing test for types.TracebackType/FrameType. Calculate them
directly from the caught exception. (GH-30880)
https://github.com/python/cpython/commit
Irit Katriel added the comment:
New changeset d69d3d8b2fec501e51309221fb1fa4622c8a3db3 by Irit Katriel in
branch 'main':
bpo-46510: simplify exception handling code in xmlrpc (GH-30878)
https://github.com/python/cpython/commit/d69d3d8b2fec501e51309221fb1fa4622c8a3db3
Irit Katriel added the comment:
We're have minimum sphinx version set to 1.8 now, so this should no longer be
an issue.
--
nosy: +iritkatriel
resolution: -> out of date
stage: needs patch -> resolved
status: open -> closed
___
Pytho
Change by Irit Katriel :
--
components: +Library (Lib)
___
Python tracker
<https://bugs.python.org/issue26120>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Irit Katriel :
--
keywords: +patch
pull_requests: +29070
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30888
___
Python tracker
<https://bugs.python.org/issu
Irit Katriel added the comment:
New changeset 45f5f52601ebccb195c19cb0a77beaf7f7dfa56a by Kumar Aditya in
branch 'main':
bpo-46510: update Python2-style exception handling in argparse (GH-30881)
https://github.com/python/cpython/commit/45f5f52601ebccb195c19cb0a77beaf7f7dfa56a
Irit Katriel added the comment:
It's like this:
>>> import foo
>>> dir(foo)
['__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__',
'__package__', '__spec__', 'annotations', 'x']
>>> foo.annotations
_Feature((3, 7, 0, 'beta', 1), (3, 11, 0,
Irit Katriel added the comment:
The OP seems to have abandoned this and all it got was a +0 for changing, so I
suggest we close it.
--
nosy: +iritkatriel
resolution: -> wont fix
status: open -> pending
___
Python tracker
<https://bugs.p
Change by Irit Katriel :
--
versions: +Python 3.11, Python 3.9
___
Python tracker
<https://bugs.python.org/issue46502>
___
___
Python-bugs-list mailing list
Unsub
Irit Katriel added the comment:
Mateusz, would you like to submit a patch to remove this section from the faq?
--
___
Python tracker
<https://bugs.python.org/issue46
Irit Katriel added the comment:
Closed Issue31305 as a duplicate of this.
--
nosy: +iritkatriel
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.2
___
Python tracker
<https://bugs.python.org/issue11
Irit Katriel added the comment:
It is still relevant, but there is another issue for this: issue11831.
--
nosy: +iritkatriel
resolution: -> duplicate
stage: -> resolved
status: open -> closed
superseder: -> "pydoc -w" causes "no Python documentation
Change by Irit Katriel :
--
resolution: -> duplicate
stage: needs patch -> resolved
status: open -> closed
superseder: -> pydoc should return non-zero exit code when a query is not found
___
Python tracker
<https://bugs.pytho
Irit Katriel added the comment:
It is explicitly documented that existing files are not overwritten and the
script fails in this case, so I think this is a feature:
https://docs.python.org/3/library/py_compile.html#py_compile.compile
--
nosy: +iritkatriel
resolution: -> rejec
Irit Katriel added the comment:
The python parser was completely rewritten in version 3.9, so it's likely that
this caused changes to error messages.
Adding @pablogsal and @lys.nikolaou in case they can say more.
--
nosy: +iritkatriel, lys.nikolaou, pablogsal
Change by Irit Katriel :
--
resolution: -> duplicate
stage: -> resolved
status: open -> closed
superseder: -> "dictionary changed size during iteration" error in
_ExecutorManagerThread
___
Python tracker
<https://b
Irit Katriel added the comment:
Note that test.support has special handling for urllib's nested exception
structure:
https://github.com/python/cpython/blob/3.10/Lib/test/support/socket_helper.py#L250
--
___
Python tracker
<ht
Change by Irit Katriel :
--
title: Review exception handling in urllib.parse -> Review exception handling
in urllib
___
Python tracker
<https://bugs.python.org/issu
Irit Katriel added the comment:
In urllib.request, there are in a few places things like:
except OSError as msg:
raise OSError('socket error', msg).with_traceback(sys.exc_info()[2])
I imagine this predates chaining - is there a reason not to raise..from here
instead of wrapping
New submission from Irit Katriel :
Is there a reason for this raising, catching and reraising the exception here:
https://github.com/python/cpython/blob/main/Lib/urllib/parse.py#L934
rather than just:
if len(query) and not isinstance(query[0], tuple):
raise TypeError("not a vali
Irit Katriel added the comment:
It's not my intention here to go on a search-and-destroy mission to remove all
calls to sys.exc_info(), that would cause unnecessary code churn. I am
reviewing them to see where the call the sys.exc_info is close to other legacy
problems/significant
Change by Irit Katriel :
--
pull_requests: +29060
pull_request: https://github.com/python/cpython/pull/30880
___
Python tracker
<https://bugs.python.org/issue46
Change by Irit Katriel :
--
versions: +Python 3.11 -Python 3.6
___
Python tracker
<https://bugs.python.org/issue24398>
___
___
Python-bugs-list mailing list
Unsub
Change by Irit Katriel :
--
keywords: +patch
pull_requests: +29058
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30878
___
Python tracker
<https://bugs.python.org/issu
New submission from Irit Katriel :
Following issue45711 the redundancy in exc_info is now explicit. This means
that we can now safely update places that still use python2-style exception
handling code, like:
exc_type, exc_value = sys.exc_info()[:2]
try
Irit Katriel added the comment:
Reproduced on 3.11.
--
nosy: +iritkatriel
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.4
___
Python tracker
<https://bugs.python.org/issue26
Change by Irit Katriel :
--
resolution: -> out of date
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Irit Katriel added the comment:
This seems very outdated, can we close it?
--
nosy: +iritkatriel
resolution: -> out of date
status: open -> pending
___
Python tracker
<https://bugs.python.org/i
Irit Katriel added the comment:
Can you explain what the bug is with code to reproduce it?
--
nosy: +iritkatriel
status: open -> pending
___
Python tracker
<https://bugs.python.org/issu
Irit Katriel added the comment:
Following discussion with Zach and Victor: This is probably an issue with the
external servers these tests used. The fix would be to rewrite the tests so
that they don't rely on external infrastructure.
--
nosy: +iritkatriel, vstinner, zach.ware
title
Irit Katriel added the comment:
3.8 is no longer maintained. Please create a new issue if you are having this
problem with a current python version.
--
nosy: +iritkatriel
resolution: -> out of date
stage: -> resolved
status: open -&g
Irit Katriel added the comment:
Closed issue23976 as duplicate of this.
--
nosy: +iritkatriel
type: behavior -> enhancement
versions: +Python 3.11 -Python 3.8
___
Python tracker
<https://bugs.python.org/issu
Irit Katriel added the comment:
3.7 is no longer being maintained. Please create a new issue if you are having
this problem on a current version (>= 3.9)
--
nosy: +iritkatriel
resolution: -> out of date
stage: needs patch -> resolved
status: open
Irit Katriel added the comment:
3.7 is no longer being maintained. Please create a new issue if you are having
this problem on a current version (>= 3.9)
--
nosy: +iritkatriel
resolution: -> out of date
stage: needs patch -> resolved
status: open
Change by Irit Katriel :
--
type: behavior -> enhancement
___
Python tracker
<https://bugs.python.org/issue31357>
___
___
Python-bugs-list mailing list
Un
Irit Katriel added the comment:
It's easy enough to convert the exception type (see patch), but I don't know
how to write a unit test for this.
--
___
Python tracker
<https://bugs.python.org/issue39
Change by Irit Katriel :
--
keywords: +patch
pull_requests: +29044
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30863
___
Python tracker
<https://bugs.python.org/issu
Irit Katriel added the comment:
Thank you Petr.
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Irit Katriel added the comment:
New changeset b18fd54f8c27e4b2aac222e75ac58aa85e5a7988 by Irit Katriel in
branch 'main':
bpo-46431: Add example of subclassing ExceptionGroup. Document the message and
exceptions attributes (GH-30852)
https://github.com/python/cpython/commit
Irit Katriel added the comment:
New changeset 573b54515740ce51dcf2402038a9d953aa6c317f by Irit Katriel in
branch 'main':
bpo-46431: improve error message on invalid calls to BaseExceptionGroup.__new__
(GH-30854)
https://github.com/python/cpython/commit
Change by Irit Katriel :
--
components: +Library (Lib)
type: -> enhancement
versions: +Python 3.11
___
Python tracker
<https://bugs.python.org/issu
Change by Irit Katriel :
--
keywords: +patch
pull_requests: +29039
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30857
___
Python tracker
<https://bugs.python.org/issu
New submission from Irit Katriel :
PyCompileError takes both type and value of the exception, which is no longer
necessary. Fortunately neither its constructor signature nor its fields are
documented so it can be simplified.
--
messages: 411509
nosy: iritkatriel
priority: normal
Irit Katriel added the comment:
I think the script does violate the rule:
t = threading.Thread(target=do_loop, args=(loop,))
and then do_loop closes the loop that was created in the main thread.
--
___
Python tracker
<https://bugs.python.
Change by Irit Katriel :
--
title: asyncio event_loop close fails off main thread if signal handler
registered -> asyncio event_loop fails when accessed from multiple threads
___
Python tracker
<https://bugs.python.org/issu
Irit Katriel added the comment:
The documentation should explicitly mention that an event loop should be
accessed from only one thread (it hints at this by referring to "the loop of
the current thread" but I don't see this stated clearly).
In the code, it would be good if mult
Irit Katriel added the comment:
3.6 is no longer maintained. Please create a new issue if you are seeing this
problem on a current version (>= 3.9).
--
nosy: +iritkatriel
resolution: -> out of date
stage: -> resolved
status: open
Irit Katriel added the comment:
Python 3.6 is no longer maintained and I failed to reproduce this on a Mac on
3.11.
Please create a new issue if you are seeing the problem on a current python
version (>= 3.9) and specify which system you are running it on.
--
nosy: +iritkatr
Irit Katriel added the comment:
Python 3.6 is no longer maintained and this doesn't freeze on my Mac on 3.11.
Please create a new issue if you are seeing the freeze on a current python
version (>= 3.9) and specify which system you are running it on.
--
nosy: +iritkatriel
resolut
Irit Katriel added the comment:
New changeset 80e1def9ded2a1d017410394e50c88aa39135029 by Irit Katriel in
branch 'main':
bpo-45711: move whatsnew entries which are incorrectly listed under New
Features (GH-30849)
https://github.com/python/cpython/commit
Change by Irit Katriel :
--
versions: +Python 3.11 -Python 3.6, Python 3.7, Python 3.8
___
Python tracker
<https://bugs.python.org/issue41352>
___
___
Python-bug
Change by Irit Katriel :
--
resolution: -> duplicate
stage: -> resolved
status: open -> closed
superseder: -> Clarify map API in concurrent.futures
___
Python tracker
<https://bugs.python
Change by Irit Katriel :
--
pull_requests: +29035
pull_request: https://github.com/python/cpython/pull/30854
___
Python tracker
<https://bugs.python.org/issue46
Irit Katriel added the comment:
This is the fix:
-if (!PyArg_ParseTuple(args, "UO", , )) {
+if (!PyArg_ParseTuple(args,
+ "UO:BaseExceptionGroup.__new__",
+ ,
+ )) {
Then we get
TypeError
Irit Katriel added the comment:
The error message isn't always this bad:
>>> class Base:
... def __new__(cls, a, b, c):
...cls.newargs = (a,b,c)
...
...
>>> class Derived(Base):
... def __init__(self, x):
... super().__init__(x)
...
Irit Katriel added the comment:
Right, I see now.
--
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.5, Python
3.6, Python 3.7
___
Python tracker
<https://bugs.python.org/issue5
Irit Katriel added the comment:
Can we close this now?
>>> class A(object):
... def __new__(self):
... raise TypeError('i do not exist')
...
>>> class B(A):
... __new__ = object.__new__
... def __init__(self, x):
... self.x = x
...
>&g
Change by Irit Katriel :
--
keywords: +patch
pull_requests: +29033
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30852
___
Python tracker
<https://bugs.python.org/issu
Irit Katriel added the comment:
Are you able to provide a runnable script that reproduces the error?
--
nosy: +iritkatriel
type: crash -> behavior
___
Python tracker
<https://bugs.python.org/issu
Irit Katriel added the comment:
Python 3.8 is no longer maintained, and there have been changes in this area
since then. Please create a new issue if you are having this problem with a
more recent python version.
To answer you last question, yes - there are platform dependent differences
Change by Irit Katriel :
--
resolution: -> third party
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Irit Katriel :
--
pull_requests: +29031
pull_request: https://github.com/python/cpython/pull/30849
___
Python tracker
<https://bugs.python.org/issue45
New submission from Irit Katriel :
See discussion on the PR.
--
nosy: +iritkatriel
resolution: -> rejected
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Irit Katriel added the comment:
The python bug tracker is for reporting bugs in python, not for asking
questions about how to use it.
You cans ask user questions on python-list (though in this case I would try by
searching for ‘python circular import’).
--
nosy: +iritkatriel
New submission from Irit Katriel :
Remi, there is no background for this here or on the PR. Can you explain the
reason for deprecating them?
--
nosy: +iritkatriel
___
Python tracker
<https://bugs.python.org/issue40
Change by Irit Katriel :
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue42091>
___
___
Irit Katriel added the comment:
3.7 is no longer maintained. I was unable to reproduce this on 3.11 on windows
or Mac. Please create a new issue if you are still seeing this on a current
version.
--
nosy: +iritkatriel
resolution: -> works for me
stage: -> resolved
status
301 - 400 of 3641 matches
Mail list logo