Andre Roberge added the comment:
I am sorry, but I am not set up to work from the main branch and must rely on
official releases. In the future, for alpha and beta releases, I will try to
wait for the next release, see immediately if I can reproduce bugs that I had
noted before, and submit
Change by Andre Roberge :
--
nosy: +aroberge
___
Python tracker
<https://bugs.python.org/issue45738>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andre Roberge added the comment:
What version are you using? As far as I can test, it has become a syntax error
since 3.10. Here is the result with the latest 3.11 alpha
> python
Python 3.11.0a2 (tags/v3.11.0a2:e2b4e4b, Nov 5 2021, 20:00:05) [MSC v.1929 64
bit (AMD64)] on win32
Type &q
Change by Andre Roberge :
--
nosy: +aroberge
___
Python tracker
<https://bugs.python.org/issue45759>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Andre Roberge :
--
nosy: +aroberge
___
Python tracker
<https://bugs.python.org/issue45716>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andre Roberge added the comment:
I think that "trying to run a shell command" might not be easy to understand by
a beginner.
If the special case of r"python\s+" is added, perhaps r"pip\s+" should be
considered as well since many sites on the Internet suggest t
Change by Andre Roberge :
--
nosy: +aroberge
___
Python tracker
<https://bugs.python.org/issue45607>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Andre Roberge :
--
nosy: +aroberge
___
Python tracker
<https://bugs.python.org/issue44166>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Andre Roberge :
--
nosy: +aroberge
___
Python tracker
<https://bugs.python.org/issue46042>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Andre Roberge :
In Python 3.10.1, a change occurred compared with 3.10.0 so that an incorrect
token is flagged for a SyntaxError. Also, in 3.11.0a2, the suggestion made
about having forgotten a comma is incorrect.
Python 3.10.1
for x range(4
Andre Roberge added the comment:
>From
>(https://friendly-traceback.github.io/docs/syntax_tracebacks_en_3.10.html#for-loop-missing-in-operator),
> this is what was shown for Python 3.10.0
for x range(4):
^^
SyntaxError: invalid syntax. Perhaps you forgot a com
Change by Andre Roberge :
--
nosy: +aroberge
___
Python tracker
<https://bugs.python.org/issue44648>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Andre Roberge :
--
nosy: +aroberge
___
Python tracker
<https://bugs.python.org/issue46838>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Andre Roberge :
--
nosy: +aroberge
___
Python tracker
<https://bugs.python.org/issue46902>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andre Roberge added the comment:
> (Anyone really want log of error?)
If by this you mean having access to the error from a known place (like
sys.last_traceback or something else specific to IDLE but available from a
script), then the answer from me is definitely yes.
--
n
Change by Andre Roberge :
--
nosy: +aroberge
___
Python tracker
<https://bugs.python.org/issue46637>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Andre Roberge :
--
nosy: +aroberge
___
Python tracker
<https://bugs.python.org/issue46652>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andre Roberge added the comment:
As far as I am concerned, this issue can be closed. I have found a workaround
which allows me to reproduce and analyze the SyntaxError that are not captured
by custom exception hook.
--
___
Python tracker
<ht
Andre Roberge added the comment:
Irit:
In all the books and tutorials I have seen, the advice is to try to catch
specific exceptions whenever possible or, *at most*, to catch Exception (and
not BaseException). This is to allow, for example, a program to be interrupted
Andre Roberge added the comment:
Irit:
Gregor indicates that, while the tutorial refers to "a class that derives from
Exception", the Python Reference Language states exceptions should be
subclasses of BaseException (which Exception *is*).
You then invited Gregor to subm
Andre Roberge added the comment:
> This also affects 3.9 I imagine, no?
Yes. And, from what I can tell, the same incorrect line is indicated at least
all the way back to Python 3.6 (where it was "invalid token" instead of
"invalid decimal literal).
Andre Roberge added the comment:
In https://docs.python.org/3/library/exceptions.html#Exception, it is written:
"All built-in, non-system-exiting exceptions are derived from this class. All
user-defined exceptions should also be derived from this class."
Yes, technically, the r
Andre Roberge added the comment:
>> For this advice (catching Exception and not BaseException) to be correct,
>> users should be advised (as they are in the tutorial) to raise exceptions
>> derived from Exception (and not BaseException).
> I disagree with that.
You
101 - 123 of 123 matches
Mail list logo