New submission from Luca :
The grammar_grapher.py utility has not been updated after the introduction of
the new "forced" directive ('&&') in the grammar (see
https://github.com/python/cpython/pull/24292) and fails to visualize the
current Python grammar.
-
Change by Luca :
--
keywords: +patch
pull_requests: +29823
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/31704
___
Python tracker
<https://bugs.python.org/issu
Change by Luca :
--
pull_requests: +29842
pull_request: https://github.com/python/cpython/pull/31719
___
Python tracker
<https://bugs.python.org/issue46
New submission from Luca :
The global statement allows specifying a list of identifiers, as correctly
reported in the "Simple statements" chapter:
https://docs.python.org/3/reference/simple_stmts.html#the-global-statement.
Inconsistently, however, the "Execution model" c
New submission from Luca :
This issue is related to https://bugs.python.org/issue3561
When installing Python under Windows, if the "Add Python 3.x to PATH" option is
flagged, the following two folders are added to the PATH environment variable:
%USERPROFILE%\AppData\Local\Progr
New submission from Luca :
This issue is related to:
https://bugs.python.org/issue3561
and:
https://bugs.python.org/issue45968
When installing Python under Windows, if the "Add Python 3.x to PATH" option is
flagged, the following two folders are added to the PATH environmen
New submission from Luca :
When installing Python on Windows, and selecting the option “Add Python to
PATH”, the following folders are added to the "PATH" environment variable:
- C:\Users\[username]\AppData\Local\Programs\Python\Python38\Scripts\
- C:\Users\[username]\AppData\Loca
New submission from Luca :
It is often desirable to limit the help text width, for instance to 78 or 88
columns, regardless of the actual size of the terminal window.
Currently you can achieve this in rather cumbersome ways, for instance by
setting "os.environ['COLUMNS'] =
Luca added the comment:
That lambda function would not give the same result, as it would constrain the
text width to a fixed value, while my proposal would just set a maximum limit
(if the terminal is narrower, the actual text width would be reduced).
With the current implementation all
Luca added the comment:
OK, I will do this for my package, but I do not believe many others will do the
same without a `max_text_width` parameter (too much care is needed for this to
work correctly), and as a result most packages using `argparse` will continue
to not properly handle text
Luca added the comment:
For the benefit of other developers willing to control text width with
`argparse`, using the lambda function let `mypy` fail with the following error:
541: error: Argument "formatter_class" to "ArgumentParser" has incompatible
Luca added the comment:
Of course I still think there should be an easier way to do this though.
--
___
Python tracker
<https://bugs.python.org/issue39
Luca added the comment:
I opened two issues regarding the mypy error, I understand it is going to be
fixed in typeshed:
https://github.com/python/mypy/issues/8487
https://github.com/python/typeshed/issues/3806
--
___
Python tracker
<ht
Luca added the comment:
The issue has been fixed in `typeshed`, so the following is now allowed:
width = min(80, shutil.get_terminal_size().columns - 2)
formatter_class = lambda prog: argparse.RawDescriptionHelpFormatter(prog,
width=width)
https://github.com/python/typeshed/issues/3806
Change by Luca Lesinigo :
--
nosy: +luca.lesinigo
___
Python tracker
<https://bugs.python.org/issue16535>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Luca Fabbri :
I reported this problem in the pypi site issue tracker (issue 3396924):
https://sourceforge.net/tracker/?func=detail&atid=513503&aid=3396924&group_id=66150
However it seems that is a python bug.
If in one package's setup.py I provide maint
Luca Fabbri added the comment:
I'm quite sure that after gettint ownership on an already existent package
(with a different author inside) and I added the maintainer (with my name) I
get the author override. But maybe I don't remember exactly...
Is not simpler (to understand) to k
New submission from Luca Mattiello :
Reading the contextlib documentation, one might assume the following to be
functionally equivalent, when used in a with statement:
@contextlib.contextmanager
def managed_resource():
resource = acquire()
try:
yield resource
finally
New submission from Luca Paganin :
Suppose you have two pathlib objects representing source and destination of a
move:
src=pathlib.Path("foo/bar/barbar/myfile.txt")
dst=pathlib.Path("foodst/bardst/")
If you try to do the following
shutil.move(src, dst)
Then an Attribute
Luca Barba added the comment:
I agree with arjanstaring
This implementation is not standard compliant and breaks interoperability with
every ECMA compliant Javascript deserializer.
Technically is awful of course but interoperability and standardization come
before than technical
New submission from Luca Fabbri :
Using the unicodedata.decomposition function on characters like \u201c and
\u201d I didn't get back the classic quote character (").
This is a very common error when text is taken from Microsoft Word (where in
italian language a couple of quoting ch
New submission from Luca Falavigna:
I have a program which waits for external events (mostly pyinotify events), and
when events occur a new worker is created using
concurrent.futures.ThreadPoolExecutor. The following snippet represents shortly
what my program does:
from time import sleep
Luca Falavigna added the comment:
There is indeed little benefit in freeing up resources left open by a unused
thread, but it could be worth closing it for specific needs (e.g. thread
processes sensible information) or in embedded systems with very low resources
Changes by Luca Faustin :
--
nosy: +faustinl
___
Python tracker
<http://bugs.python.org/issue19023>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Luca clementi :
I'm running Python 2.5.2 under Ubuntu 8.10.
In the file email/generator.py from the core library at line 228 in the
function _handle_multipart()
# delimiter transport-padding CRLF
print >> self._fp, '\n--' +
Luca clementi added the comment:
I forgot to say that the
\n
should be substitute with
\r\n
CRLF
Luca
--
___
Python tracker
<http://bugs.python.org/issue5
New submission from Luca Citi:
I have reported this bug to the pysqlite module for python2 (
https://github.com/ghaering/pysqlite/issues/103 ) but I also report it here
because it applies to python3 too.
The pysqlite3 context manager does not perform a rollback when a transaction
fails
New submission from Luca Sbardella:
http://tools.ietf.org/html/rfc5789
--
components: Library (Lib)
files: validate.patch
keywords: patch
messages: 185031
nosy: lsbardel
priority: normal
severity: normal
status: open
title: PATCH as valid request method in wsgiref.validator
type
28 matches
Mail list logo