[issue46936] Fix grammar_grapher with the new forced directive

2022-03-07 Thread Luca
Change by Luca : -- pull_requests: +29842 pull_request: https://github.com/python/cpython/pull/31719 ___ Python tracker <https://bugs.python.org/issue46

[issue46936] Fix grammar_grapher with the new forced directive

2022-03-06 Thread Luca
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

[issue46936] Fix grammar_grapher with the new forced directive

2022-03-06 Thread Luca
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. --

[issue16535] json encoder unable to handle decimal

2022-03-03 Thread Luca Lesinigo
Change by Luca Lesinigo : -- nosy: +luca.lesinigo ___ Python tracker <https://bugs.python.org/issue16535> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45969] When uninstalling Python under Windows the "Scripts" folders should be removed from the PATH environment variable

2021-12-02 Thread Luca
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

[issue45968] Windows installer should add also "%USERPROFILE%\AppData\Roaming\Python\Python3x\Scripts" folder to the PATH environment variable

2021-12-02 Thread Luca
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

[issue45463] Documentation inconsistency on the number of identifiers allowed in global stmt

2021-10-13 Thread Luca
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&quo

[issue44292] contextmanager + ExitStack.pop_all()

2021-06-02 Thread Luca Mattiello
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

[issue40633] json.dumps() should encode float number NaN to null

2020-12-29 Thread Luca Barba
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

[issue39809] argparse: add max_text_width parameter to ArgumentParser

2020-03-06 Thread Luca
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

[issue39809] argparse: add max_text_width parameter to ArgumentParser

2020-03-04 Thread Luca
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

[issue39809] argparse: add max_text_width parameter to ArgumentParser

2020-03-03 Thread Luca
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

[issue39809] argparse: add max_text_width parameter to ArgumentParser

2020-03-02 Thread Luca
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

[issue39809] argparse: add max_text_width parameter to ArgumentParser

2020-03-02 Thread Luca
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

[issue39809] argparse: add max_text_width parameter to ArgumentParser

2020-03-02 Thread Luca
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

[issue39809] argparse: add max_text_width parameter to ArgumentParser

2020-03-01 Thread Luca
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']

[issue39658] Include user scripts folder to PATH on Windows

2020-02-16 Thread Luca
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

[issue39140] shutil.move does not work properly with pathlib.Path objects

2019-12-26 Thread Luca Paganin
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

[issue27334] pysqlite3 context manager not performing rollback when a database is locked elsewhere for non-DML statements

2016-06-16 Thread Luca Citi
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

[issue22361] Ability to join() threads in concurrent.futures.ThreadPoolExecutor

2014-09-09 Thread Luca Falavigna
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

[issue22361] Ability to join() threads in concurrent.futures.ThreadPoolExecutor

2014-09-08 Thread Luca Falavigna
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

[issue19023] ctypes docs: Unimplemented and undocumented features

2014-01-03 Thread Luca Faustin
Changes by Luca Faustin luca.faus...@ibttn.it: -- nosy: +faustinl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19023 ___ ___ Python-bugs-list

[issue17527] PATCH as valid request method in wsgiref.validator

2013-03-23 Thread Luca Sbardella
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

[issue15372] Python is missing alternative for common quoting character

2012-07-16 Thread Luca Fabbri
New submission from Luca Fabbri luca...@gmail.com: 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

[issue12840] maintainer value clear the author value when register

2011-08-25 Thread Luca Fabbri
New submission from Luca Fabbri luca...@gmail.com: I reported this problem in the pypi site issue tracker (issue 3396924): https://sourceforge.net/tracker/?func=detailatid=513503aid=3396924group_id=66150 However it seems that is a python bug. If in one package's setup.py I provide maintainer

[issue12840] maintainer value clear the author value when register

2011-08-25 Thread Luca Fabbri
Luca Fabbri luca...@gmail.com 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

[issue5525] Problem with email.MIME* library, using wrong new line

2009-03-21 Thread Luca clementi
Luca clementi luca.cleme...@gmail.com added the comment: I forgot to say that the \n should be substitute with \r\n CRLF Luca -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5525

[issue5525] Problem with email.MIME* library, using wrong new line

2009-03-19 Thread Luca clementi
New submission from Luca clementi luca.cleme...@gmail.com: 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