[issue26208] decimal C module's exceptions don't match the Python version
Change by Cédric Krier : -- nosy: +ced ___ Python tracker <https://bugs.python.org/issue26208> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17659] no way to determine First weekday (based on locale)
Cédric Krier added the comment: I have updated the PR to be included in 3.11 -- versions: +Python 3.11 -Python 3.10 ___ Python tracker <https://bugs.python.org/issue17659> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17659] no way to determine First weekday (based on locale)
Cédric Krier added the comment: ping -- ___ Python tracker <https://bugs.python.org/issue17659> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17659] no way to determine First weekday (based on locale)
Cédric Krier added the comment: I submitted https://github.com/python/cpython/pull/18142 which implements (based on the initial patch) a function locale.getfirstweekday(). The implementation supports glibc (if _NL_TIME_FIRST_WEEKDAY is defined) and Windows (not yet tested). I did not keep the nl_langinfo because I do not think it is good to have platform dependent definition. -- nosy: +ced versions: +Python 3.9 -Python 3.4 ___ Python tracker <https://bugs.python.org/issue17659> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17659] no way to determine First weekday (based on locale)
Change by Cédric Krier : -- pull_requests: +17529 pull_request: https://github.com/python/cpython/pull/18142 ___ Python tracker <https://bugs.python.org/issue17659> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue34311] locale.format() and locale.format_string() cast Decimals to float
Cédric Krier added the comment: For me, the name was natural as it is the reverse operation of the existing delocalize method. -- ___ Python tracker <https://bugs.python.org/issue34311> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33731] string formatting that produces floats with preset precision while respecting locale
Cédric Krier added the comment: I think PR-15275 will solves this issue also as you could use: >>> locale.setlocale(locale.LC_ALL, 'fr_FR') >>> locale.localize('{:.2f}'.format(1.891)) '1,89' -- nosy: +ced ___ Python tracker <https://bugs.python.org/issue33731> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue34311] locale.format() and locale.format_string() cast Decimals to float
Cédric Krier added the comment: I think we can solve this issue like I solved issue13918 by providing a locale.localize() method which does the formatting as locale.format_string does but using the already formatted string. I created PR-15275 which implements it and also use the new format in locale.currency as it is highly probable that currency will be used with Decimal. -- nosy: +ced ___ Python tracker <https://bugs.python.org/issue34311> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue34311] locale.format() and locale.format_string() cast Decimals to float
Change by Cédric Krier : -- pull_requests: +14997 pull_request: https://github.com/python/cpython/pull/15275 ___ Python tracker <https://bugs.python.org/issue34311> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35153] Allow to set headers in xmlrpc.client.ServerProxy
Cédric Krier added the comment: I have another use case to be able to set headers to xmlrpc: http://www.roundup-tracker.org/docs/xmlrpc.html#advanced-python-client-adding-anti-csrf-headers -- ___ Python tracker <https://bugs.python.org/issue35153> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35153] Allow to set headers in xmlrpc.client.ServerProxy
Cédric Krier added the comment: We have a library proteus which uses xmlrpc.client to connect to our server. The server support basic authentication but also session authentication. The session authentication is much faster because the password hash verification is slow by design. So to be able to use our session authentication method with the library, we need to be able to set our own Authorization header to the ServerProxy. It could be done with a custom Transport class but then we will have to do it twice for Transport and SafeTransport and to replicate the code that select the class out of the uri. The proposal started from this discussion: https://bugs.tryton.org/issue7783 -- ___ Python tracker <https://bugs.python.org/issue35153> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35153] Allow to set headers in xmlrpc.client.ServerProxy
New submission from Cédric Krier : If we want to support other authentication method than basic, we need to be able to set headers to the request sent. I propose to add an argument headers to ServerProxy which is a list of header tuples that will be put as header. -- components: Library (Lib) messages: 329191 nosy: ced priority: normal severity: normal status: open title: Allow to set headers in xmlrpc.client.ServerProxy type: enhancement ___ Python tracker <https://bugs.python.org/issue35153> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue27645] Supporting native backup facility of SQLite
Cédric Krier added the comment: I'm using sqlitebck which provides similar functionality but instead of using a file name to store the backup it uses connection instances. I find it very useful. Here is my use case: to run tests of an application that requires a database filled, I do a 'copy' of an existing sqlite backup in a ':memory:' database. But with the proposed API, it is not possible to use the resulted ':memory:' database because it will be delete when the connection is closed. So I propose to add the option to pass a connection instead of a filename. -- ___ Python tracker <https://bugs.python.org/issue27645> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue31210] Can not import modules if sys.prefix contains DELIM
Cédric Krier added the comment: I'm wondering if it could have security implications and be used to fool user by changing the PYTHONPATH. -- ___ Python tracker <http://bugs.python.org/issue31210> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue31210] Can not import site from sys.prefix containing DELIM
Cédric Krier added the comment: On 2017-08-15 17:32, R. David Murray wrote: > You mean to create the entries on sys.path that do not come from the > PYTHONPATH? Yes because such path could contain ':'. -- ___ Python tracker <http://bugs.python.org/issue31210> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue31210] Can not import site from sys.prefix containing DELIM
Cédric Krier added the comment: A last comment, I do not think it is an issue to follow posix way to parse PATH. But for me, the problem is that Python adds without sanitation the sys.prefix to the PYTHONPATH. So I think internally Python should not use PATH notation to extend the PYTHONPATH because it is not a robust notation. -- ___ Python tracker <http://bugs.python.org/issue31210> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue31210] Can not import site from sys.prefix containing DELIM
Cédric Krier added the comment: Yes I mean ':' for posix. Indeed I do not known a posix way to escape the colon (it was discussed here: https://stackoverflow.com/questions/14661373/how-to-escape-colon-in-path-on-unix). But it does not mean that the method makepathobject could not support one. I'm thinking about path single-quoted. -- ___ Python tracker <http://bugs.python.org/issue31210> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue31210] Can not import site from sys.prefix containing DELIM
New submission from Cédric Krier: If the path on which Python is installed contains the DELIM, the resulted sys.path is split. I think maybe there should be a escape mechanism for the PYTHONPATH. -- components: Interpreter Core messages: 300293 nosy: ced priority: normal severity: normal status: open title: Can not import site from sys.prefix containing DELIM type: crash ___ Python tracker <http://bugs.python.org/issue31210> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue27645] Supporting native backup facility of SQLite
Changes by Cédric Krier : -- nosy: +ced ___ Python tracker <http://bugs.python.org/issue27645> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26049] Poor performance when reading large xmlrpc data
Cédric Krier added the comment: One advantage, I see, is when xmlrpclib is overridden to use an other marshaller which is can not be feed chunk by chunk. So reducing the number of call to feed will have a bigger impact. But I don't know if this is enough for Python. -- ___ Python tracker <http://bugs.python.org/issue26049> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26049] Poor performance when reading large xmlrpc data
Cédric Krier added the comment: Here is the client/server scripts. I don't measure a big performance improvement with it. I think the improvement measured in msg257756 are linked to the way xmlrpclib is overriden in Tryton. -- Added file: http://bugs.python.org/file42044/server.py ___ Python tracker <http://bugs.python.org/issue26049> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26049] Poor performance when reading large xmlrpc data
Changes by Cédric Krier : Added file: http://bugs.python.org/file42043/client.py ___ Python tracker <http://bugs.python.org/issue26049> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26049] Poor performance when reading large xmlrpc data
Cédric Krier added the comment: Is there an infrastructure already in place for such microbenchmark? -- ___ Python tracker <http://bugs.python.org/issue26049> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26049] Poor performance when reading large xmlrpc data
Cédric Krier added the comment: ping -- ___ Python tracker <http://bugs.python.org/issue26049> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25287] test_crypt fails on OpenBSD
Changes by Cédric Krier : -- nosy: +ced ___ Python tracker <http://bugs.python.org/issue25287> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26049] Poor performance when reading large xmlrpc data
Cédric Krier added the comment: Answering to myself, it is better to read by chunk to feed the parser also by chunk. So here is a version of the patch which increases by 2 on every loop. -- Added file: http://bugs.python.org/file41545/default.patch ___ Python tracker <http://bugs.python.org/issue26049> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26049] Poor performance when reading large xmlrpc data
Cédric Krier added the comment: Will it not be better indeed to just stream.read() without any argument? Because HTTPResponse will call _safe_read with just the length of the header. -- ___ Python tracker <http://bugs.python.org/issue26049> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26049] Poor performance when reading large xmlrpc data
Cédric Krier added the comment: I don't think it is necessary to allow to customize the chunk size. Indeed Python should provide a good value by default that works for all platforms. -- nosy: +ced type: -> performance ___ Python tracker <http://bugs.python.org/issue26049> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25543] locale.atof keep '.' even if not part of the localeconv
Cédric Krier added the comment: But you can have some strange behaviour: >>> import locale >>> locale.setlocale(locale.LC_ALL, 'fr_FR.UTF-8') 'fr_FR.UTF-8' >>> locale.atof('2.500,5') Traceback (most recent call last): File "", line 1, in File "/usr/lib64/python2.7/locale.py", line 316, in atof return func(string) ValueError: invalid literal for float(): 2.500.5 >>> locale.atof('2.500') 2.5 If you agree to make it more strict, I can work on a patch, otherwise I will just add some tests on my code. -- ___ Python tracker <http://bugs.python.org/issue25543> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25543] locale.atof keep '.' even if not part of the localeconv
Cédric Krier added the comment: Example: >>> import locale >>> locale.setlocale(locale.LC_ALL, 'fr_FR.UTF-8') 'fr_FR.UTF-8' >>> locale.atof('2.5') 2.5 >>> locale.atof('2,5') 2.5 -- ___ Python tracker <http://bugs.python.org/issue25543> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25543] locale.atof keep '.' even if not part of the localeconv
New submission from Cédric Krier: If a value containing '.' is passed to locale.atof, but '.' is not the locale decimal_point (and not the thousands_sep), it is anyway parsed as the decimal_point. For me, it should raise a ValueError -- components: Library (Lib) messages: 253989 nosy: ced priority: normal severity: normal status: open title: locale.atof keep '.' even if not part of the localeconv type: behavior ___ Python tracker <http://bugs.python.org/issue25543> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1818] Add named tuple reader to CSV module
Changes by Cédric Krier : -- nosy: +ced ___ Python tracker <http://bugs.python.org/issue1818> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24239] Allow to configure which gpg to use in distutils upload
New submission from Cédric Krier: 'gpg' is hard coded in distutils/command/upload.py and the spawn command doesn't even use the shell aliases. So if you have only gpg2 installed it doesn't work. I think the name (or even the all command line) should be configurable from ~/.pypirc -- components: Distutils messages: 243586 nosy: ced, dstufft, eric.araujo priority: normal severity: normal status: open title: Allow to configure which gpg to use in distutils upload type: enhancement ___ Python tracker <http://bugs.python.org/issue24239> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23852] Wrong computation of max_fd on OpenBSD
Cédric Krier added the comment: Correctly cast to long instead of int. -- Added file: http://bugs.python.org/file38831/max_fd.patch ___ Python tracker <http://bugs.python.org/issue23852> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23852] Wrong computation of max_fd on OpenBSD
Cédric Krier added the comment: But sysconf(_SC_OPEN_MAX) uses rlim_cur which is too low instead of rlim_max. My proposal is indeed describe in msg219477, it is not prefect but at least better than the current one for OpenBSD. -- ___ Python tracker <http://bugs.python.org/issue23852> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23852] Wrong computation of max_fd on OpenBSD
Changes by Cédric Krier : Removed file: http://bugs.python.org/file38828/max_fd.patch ___ Python tracker <http://bugs.python.org/issue23852> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23852] Wrong computation of max_fd on OpenBSD
Changes by Cédric Krier : -- title: Wrong FD_DIR file name on OpenBSD -> Wrong computation of max_fd on OpenBSD Added file: http://bugs.python.org/file38828/max_fd.patch ___ Python tracker <http://bugs.python.org/issue23852> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23852] Wrong FD_DIR file name on OpenBSD
Changes by Cédric Krier : -- type: -> behavior ___ Python tracker <http://bugs.python.org/issue23852> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23852] Wrong FD_DIR file name on OpenBSD
Cédric Krier added the comment: Here is a patch that uses getrlimit (that's works on OpenBSD) before using sysconf. -- Added file: http://bugs.python.org/file38824/max_fd.patch ___ Python tracker <http://bugs.python.org/issue23852> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23852] Wrong FD_DIR file name on OpenBSD
Cédric Krier added the comment: The problem comes from safe_get_max_fd which return a too low value because of a bug in sysconf on OpenBSD [1]: The value for _SC_STREAM_MAX is a minimum maximum, and required to be the same as ANSI C's FOPEN_MAX, so the returned value is a ridiculously small and misleading number. [1] http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man3/sysconf.3 -- type: behavior -> ___ Python tracker <http://bugs.python.org/issue23852> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23852] Wrong FD_DIR file name on OpenBSD
Cédric Krier added the comment: Indeed, I think my patch is not right as /dev/fd on OpenBSD is static. I will continue to investigate. -- ___ Python tracker <http://bugs.python.org/issue23852> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23852] Wrong FD_DIR file name on OpenBSD
Cédric Krier added the comment: At least on OpenBSD procfs have been removed: http://www.openbsd.org/faq/current.html#20140908 -- ___ Python tracker <http://bugs.python.org/issue23852> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20718] OpenBSD/AIX: tests passing a file descriptor with sendmsg/recvmsg failures
Changes by Cédric Krier : -- nosy: +ced ___ Python tracker <http://bugs.python.org/issue20718> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20669] OpenBSD: socket.recvmsg tests fail with OSError: [Errno 40] Message too long
Changes by Cédric Krier : -- nosy: +ced ___ Python tracker <http://bugs.python.org/issue20669> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23852] Wrong FD_DIR file name on OpenBSD
New submission from Cédric Krier: The test_subprocess fails since issue21618 on OpenBSD because the FD_DIR is wrong (/dev/fd instead of /proc/self/fd). -- files: fd_dir.patch keywords: patch messages: 239920 nosy: ced priority: normal severity: normal status: open title: Wrong FD_DIR file name on OpenBSD Added file: http://bugs.python.org/file38807/fd_dir.patch ___ Python tracker <http://bugs.python.org/issue23852> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23845] test_ssl: fails on recent libressl with SSLV3_ALERT_HANDSHAKE_FAILURE
New submission from Cédric Krier: SSLv3 has been deactivated by default [1], as stated in the commit message it can be reactivated by clearing the option. So here is a patch that reactivate it in the test when needed. [1] http://marc.info/?l=openbsd-cvs&m=141339479327258&w=2 -- files: sslv3.patch keywords: patch messages: 239856 nosy: ced priority: normal severity: normal status: open title: test_ssl: fails on recent libressl with SSLV3_ALERT_HANDSHAKE_FAILURE Added file: http://bugs.python.org/file38794/sslv3.patch ___ Python tracker <http://bugs.python.org/issue23845> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23844] test_ssl: fails on recent libressl version with BAD_DH_P_LENGTH
New submission from Cédric Krier: Since [1], libressl fails if DH keys are too small (<1024). Here is a patch to increase the dh keys to 1024 for the tests. [1] http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/lib/libssl/src/ssl/s3_clnt.c?rev=1.108&content-type=text/x-cvsweb-markup -- files: dh1024.patch keywords: patch messages: 239846 nosy: ced priority: normal severity: normal status: open title: test_ssl: fails on recent libressl version with BAD_DH_P_LENGTH Added file: http://bugs.python.org/file38791/dh1024.patch ___ Python tracker <http://bugs.python.org/issue23844> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23758] Improve documenation about num_params in sqlite3 create_function and create_aggregate
New submission from Cédric Krier: num_params must have the value -1 for any number of arguments see https://www.sqlite.org/c3ref/create_function.html -- assignee: docs@python components: Documentation files: sqlite3_doc.patch keywords: patch messages: 239104 nosy: ced, docs@python priority: normal severity: normal status: open title: Improve documenation about num_params in sqlite3 create_function and create_aggregate type: enhancement Added file: http://bugs.python.org/file38664/sqlite3_doc.patch ___ Python tracker <http://bugs.python.org/issue23758> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13918] locale.atof documentation is missing func argument
Cédric Krier added the comment: Add return value is string in doc Add versionadded And yes I signed the agreement. -- Added file: http://bugs.python.org/file36964/delocalize.patch ___ Python tracker <http://bugs.python.org/issue13918> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13918] locale.atof documentation is missing func argument
Cédric Krier added the comment: A new version with unittest. -- Added file: http://bugs.python.org/file36960/delocalize.patch ___ Python tracker <http://bugs.python.org/issue13918> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13918] locale.atof documentation is missing func argument
Cédric Krier added the comment: So what about this patch? It adds a delocalize method while keeping the atof func parameter for backward compatibility. -- Added file: http://bugs.python.org/file36955/delocalize.patch ___ Python tracker <http://bugs.python.org/issue13918> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17393] stdlib import mistaken for local by import_fixer
Changes by Cédric Krier : -- nosy: +ced ___ Python tracker <http://bugs.python.org/issue17393> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17998] internal error in regular expression engine
Changes by Cédric Krier : -- nosy: +ced ___ Python tracker <http://bugs.python.org/issue17998> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9625] argparse: Problem with defaults for variable nargs when using choices
Cédric Krier added the comment: ping -- ___ Python tracker <http://bugs.python.org/issue9625> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13918] locale.atof documentation is missing func argument
Cédric Krier added the comment: Here is a patch for the documentation. -- keywords: +patch resolution: wont fix -> Added file: http://bugs.python.org/file29414/doc_atof.patch ___ Python tracker <http://bugs.python.org/issue13918> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13918] locale.atof documentation is missing func argument
Cédric Krier added the comment: locale.atof is not about formatting but parsing string into float following the locale. For now, the only ways I see to parse a string to get a Decimal is to first convert it into float (which is not good if precision matters) or to use the undocumented parameter. -- status: closed -> open ___ Python tracker <http://bugs.python.org/issue13918> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13918] locale.atof documentation is missing func argument
Cédric Krier added the comment: Then I think we miss a locale.atod to parse string to Decimal -- status: pending -> open ___ Python tracker <http://bugs.python.org/issue13918> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9625] argparse: Problem with defaults for variable nargs when using choices
Cédric Krier added the comment: Here is a new version of the patch with tests -- nosy: +ced Added file: http://bugs.python.org/file27858/issue9625.patch ___ Python tracker <http://bugs.python.org/issue9625> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15421] Calendar.itermonthdates OverflowError
Cédric Krier added the comment: Fix haypo comments -- Added file: http://bugs.python.org/file27239/calendar.patch ___ Python tracker <http://bugs.python.org/issue15421> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15435] Strange behavior when AttributeError raise inside a property get function
Cédric Krier added the comment: The problem is that the code of the property could raise an AttributeError. So this error is not showed by the traceback. -- ___ Python tracker <http://bugs.python.org/issue15435> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15435] Strange behavior when AttributeError raise inside a property get function
New submission from Cédric Krier : When a AttributeError is raised inside the get function of a property and if the class has a __getattr__ method defined then this method is called. It is strange behavior because when looking at the traceback it looks like Python doesn't find the property. -- components: Interpreter Core files: test.py messages: 166234 nosy: ced priority: normal severity: normal status: open title: Strange behavior when AttributeError raise inside a property get function type: behavior Added file: http://bugs.python.org/file26489/test.py ___ Python tracker <http://bugs.python.org/issue15435> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15421] Calendar.itermonthdates OverflowError
New submission from Cédric Krier : itermonthdates fails when working on the last month of Here is a patch that catch the OverflowError. -- components: Library (Lib) files: calendar.patch keywords: patch messages: 166137 nosy: ced priority: normal severity: normal status: open title: Calendar.itermonthdates OverflowError type: enhancement Added file: http://bugs.python.org/file26478/calendar.patch ___ Python tracker <http://bugs.python.org/issue15421> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7980] time.strptime not thread safe
Changes by Cédric Krier : -- nosy: +ced ___ Python tracker <http://bugs.python.org/issue7980> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13918] locale.atof documentation is missing func argument
Cédric Krier added the comment: Indeed I find it useful to use to get a Decimal instead of a float. So I was wondering if I can rely on it or not in my application? -- status: pending -> open ___ Python tracker <http://bugs.python.org/issue13918> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13918] locale.atof documentation is missing func argument
New submission from Cédric Krier : atof has a func argument used to instantiate the result but it is missing in the documentation. -- assignee: docs@python components: Documentation messages: 152430 nosy: ced, docs@python priority: normal severity: normal status: open title: locale.atof documentation is missing func argument type: enhancement ___ Python tracker <http://bugs.python.org/issue13918> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7502] All DocTestCase instances compare and hash equal to each other
Cédric Krier added the comment: Add test for __hash__ -- Added file: http://bugs.python.org/file24040/issue7502-hash.patch ___ Python tracker <http://bugs.python.org/issue7502> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7502] All DocTestCase instances compare and hash equal to each other
Cédric Krier added the comment: Patch to add __hash__ to prevent warnings in 2.7 -- Added file: http://bugs.python.org/file24039/issue7502-hash.patch ___ Python tracker <http://bugs.python.org/issue7502> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7502] All DocTestCase instances compare and hash equal to each other
Cédric Krier added the comment: Add also __eq__ to Example and add __ne__ method. -- Added file: http://bugs.python.org/file24036/issue7502.patch ___ Python tracker <http://bugs.python.org/issue7502> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7502] All DocTestCase instances compare and hash equal to each other
Cédric Krier added the comment: Add test for "!=" -- Added file: http://bugs.python.org/file24033/issue7502.patch ___ Python tracker <http://bugs.python.org/issue7502> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7502] All DocTestCase instances compare and hash equal to each other
Cédric Krier added the comment: Update patch to not use hash in __eq__ -- Added file: http://bugs.python.org/file24031/issue7502.patch ___ Python tracker <http://bugs.python.org/issue7502> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7502] All DocTestCase instances compare and hash equal to each other
Cédric Krier added the comment: New patch to add __hash__ and __eq__ to DocTest -- Added file: http://bugs.python.org/file24029/issue7502.patch ___ Python tracker <http://bugs.python.org/issue7502> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7502] All DocTestCase instances compare and hash equal to each other
Cédric Krier added the comment: New patch with test -- Added file: http://bugs.python.org/file24028/issue7502.patch ___ Python tracker <http://bugs.python.org/issue7502> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7652] Merge C version of decimal into py3k.
Changes by Cédric Krier : -- nosy: +ced ___ Python tracker <http://bugs.python.org/issue7652> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7502] All DocTestCase instances compare and hash equal to each other
Cédric Krier added the comment: Here is a patch that defines __eq__ and __hash__ on DocTestCase. -- keywords: +patch nosy: +ced Added file: http://bugs.python.org/file20618/doctestcase_eq_hash.patch ___ Python tracker <http://bugs.python.org/issue7502> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6090] zipfile DeprecationWarning Python 2.6.2
Changes by Cédric Krier : -- nosy: +ced ___ Python tracker <http://bugs.python.org/issue6090> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com