[issue39467] Allow to deprecate CLI arguments in argparse

2020-01-27 Thread hervé
New submission from hervé : Today it's not possible to deprecate CLI arguments designed with argparse, it could be useful to introduce deprecation feature in argparse to allow developers to inform their apps's users when an argument is planed to be removed in

[issue39467] Allow to deprecate CLI arguments in argparse

2020-01-27 Thread hervé
Change by hervé : -- keywords: +patch pull_requests: +17585 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18208 ___ Python tracker <https://bugs.python.org/issu

[issue39467] Allow to deprecate CLI arguments in argparse

2020-01-28 Thread hervé
hervé added the comment: First, thanks Raymond for your worth useful comment. * Concerning the usage of the warning module what do you suggest to use then? To use "print"? * Concerning "hook or flag" and the 3 new params in my PR, I think developers would appreciate

[issue39467] Allow to deprecate CLI arguments in argparse

2020-03-03 Thread hervé
hervé added the comment: hello, First thanks everyone to took time to discute about this proposal. This topic is now opened since ~1 months so I don't think we will more feedback about this, then I will address all your comments in my changes soon to match an implementation

[issue33927] Allow json.tool to have identical infile and outfile

2019-02-22 Thread hervé
Change by hervé : -- pull_requests: +12015 ___ Python tracker <https://bugs.python.org/issue33927> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33671] Efficient zero-copy for shutil.copy* functions (Linux, OSX and Win)

2018-06-25 Thread hervé
Change by hervé : -- pull_requests: +7536 ___ Python tracker <https://bugs.python.org/issue33671> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10660] format() to lower and uppercase

2010-12-09 Thread Hervé Cauwelier
New submission from Hervé Cauwelier : Hexadecimals can be formatted to lower and uppercase: >>> '{0:x}'.format(123) '7b' >>> '{0:X}'.format(123) '7B' I would like the same thing for strings: >>> '{0.lastname:u} {0.firs

[issue10660] format() to lower and uppercase

2010-12-10 Thread Hervé Cauwelier
Hervé Cauwelier added the comment: Thanks for the example. The Python 2.7 documentation about the mini-language doesn't clearly state that it is extensible and how. we see examples of formatting but not of extending. Your example would be welcome in the document

[issue8199] zipfile.py: consistency between "write" and "writestr"

2010-03-22 Thread Hervé Cauwelier
New submission from Hervé Cauwelier : Hi, In class "ZipFile", method "write" accepts "compress_type" parameter but not the "writestr" method. I see no reason for this limitation and the change is trivial. This is needed for generating ODF docum

[issue14284] unicodeobject error on macosx in build process

2012-03-12 Thread Hervé Coatanhay
New submission from Hervé Coatanhay : On a fresh install from mercurial on macosx. ./python -SE -m sysconfig --generate-posix-vars Could not find platform dependent libraries Consider setting $PYTHONHOME to [:] Assertion failed: (compact->utf8_length == 0), funct

[issue14296] Compilation error on CentOS 5.8

2012-03-13 Thread Hervé Coatanhay
New submission from Hervé Coatanhay : Linux Version: 2.6.18-238.19.1.el5 / CentOS release 5.8 (Final) Since changeset 71704:89e92e684b37 , I have the following compilation error: gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes-I. -I./Include

[issue14296] Compilation error on CentOS 5.8

2012-03-14 Thread Hervé Coatanhay
Hervé Coatanhay added the comment: I forgot to give glibc version: glibc-2.5-81 -- ___ Python tracker <http://bugs.python.org/issue14296> ___ ___ Python-bug

[issue14296] Compilation error on CentOS 5.8

2012-03-16 Thread Hervé Coatanhay
Hervé Coatanhay added the comment: I still have the exact same error Maybe change should be: #if !defined(CPU_ALLOC) && defined(HAVE_SCHED_SETAFFINITY) #undef HAVE_SCHED_SETAFFINITY #endif it seems CPU_ALLOC first appeared in g

[issue14296] Compilation error on CentOS 5.8

2012-03-18 Thread Hervé Coatanhay
Hervé Coatanhay added the comment: You can consider it fixed, compilation runs OK now. However I have an error on building _posixsubprocess.o when I do `make test`, I'll report it in another ticket. -- ___ Python tracker <http://bugs.py

[issue14359] _posixsubprocess.o compilation error on CentOS 5.8

2012-03-18 Thread Hervé Coatanhay
New submission from Hervé Coatanhay : Linux Version: 2.6.18-238.19.1.el5 / CentOS release 5.8 (Final) On changeset 75803:b26056192653 , I have the following compilation error: gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -IInclude -I. -I./Include

[issue21187] 2.7 build-installer.py with OS X 10.9

2014-04-09 Thread Hervé Coatanhay
New submission from Hervé Coatanhay: With XCode 5.1 some changes were made to clang, making it impossible to build Mac OS X installer. Shipped SQLite and Sleepycat DB pass CFLAGS and LDFLAGS to compiler in their compiler check in configure script. In particular -syslibroot option is a linker

[issue21187] 2.7 build-installer.py with OS X 10.9

2014-04-09 Thread Hervé Coatanhay
Hervé Coatanhay added the comment: By the way it seems more like an SQLite / Sleepycat issue as LDFLAGS should be passed to linker not compiler. Proposed modifications are just workarounds to allow Mac installer creation on OS X 10.9. -- ___ Python

[issue17453] logging.config.fileConfig error

2013-03-18 Thread Hervé Coatanhay
New submission from Hervé Coatanhay: In python 2.7 this code works: >>> import logging.config >>> import StringIO >>> a="""[loggers] ... keys = root ... [logger_root] ... handlers = "" ... [formatters] ... keys = "" ...

[issue17453] logging.config.fileConfig error

2013-03-18 Thread Hervé Coatanhay
Hervé Coatanhay added the comment: My complete configuration is this: [loggers] keys = app_admin,root,app_test_py3 [logger_root] handlers = "" [formatters] keys = app_admin,app_test_py3 [handlers] keys = app_admin,app_test_py3 [logger_app_admin] propagate = 1 handlers = app_admi

[issue17453] logging.config.fileConfig error

2013-04-05 Thread Hervé Coatanhay
Hervé Coatanhay added the comment: Yes it does. I fixed my configuration generation and everything is running as expected. Thanks. -- ___ Python tracker <http://bugs.python.org/issue17