Amber Brown added the comment:
There's a difference between round-tripping back to the source text and
correctly representing the text in the source, though.
Since I'm using this module to perform static analysis of a Python module to
retrieve class/function definitions and their
New submission from Amber Brown :
reproducing case:
file.py:
```
"""
Hello \n blah.
"""
```
And then in a REPL (2.7 or 3+):
```
>>> import ast
>>> f = ast.parse(open("test.py", 'rb').read())
>>> f
<_ast.Mo
Amber Brown added the comment:
This change mirrors the default in FieldStorage (which it calls). If it's not
the best option, then it would need to be changed in FieldStorage too.
(personally, I don't like strict because UnicodeDecodeErrors on untrusted user
input kind of sucks
New submission from Amber Brown :
Reproducible with:
import warnings
warnings.warn_explicit("msg", DeprecationWarning, "name", 1,
module_globals=None)
--
components: Interpreter Core
messages: 316578
nosy: hawkowl
priority: normal
severity: norma
Change by Amber Brown :
--
keywords: +patch
pull_requests: +6489
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue33497>
___
___
Python-
New submission from Amber Brown :
Lack of this parameter means that you may get an exception (if the incoming
data is an invalid encoding) you can not get around.
This causes Twisted to be unable to provide a compatible API on Python 3.7.
--
messages: 316510
nosy: hawkowl
priority
Amber Brown added the comment:
> * asyncio & pathlib are already non-provisional, so wouldn't be affected.
I was reading this and actually said "wait what I didn't know pathlib was
provisional", and went back to check. The warning for it was grey next to a
pair
Amber Brown added the comment:
> What happened to "consenting adults"?
Consent does not mean that by using Python, users fully consent to using
modules that they may not be aware will, to paraphrase Donald, come back to
bite them in the ass.
Consent requires mu
Amber Brown added the comment:
So you're proposing a coordinated effort across the half dozen, possibly more,
test runners to enable some flags, so CPython doesn't log a single message,
possibly two, that you're using unsupported experimental software with no
backward
Amber Brown added the comment:
What is the point of an opt-in warning, when the entire point of the proposed
warning is letting people know that they may be using something they are not
fully educated or informed about the ramifications of using? If you know to
turn on the warning, you know
Amber Brown added the comment:
Donald hits it on the head for me.
As long as the code is not covered by the same API deprecation contract that
the rest of the standard library is, it should make it obvious when attempting
to use it. I can be relatively certain that a lot of people were not
11 matches
Mail list logo