[issue26208] decimal C module's exceptions don't match the Python version

2022-01-04 Thread Cédric Krier

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)

2021-10-07 Thread Cédric Krier

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)

2021-04-20 Thread Cédric Krier

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)

2020-01-23 Thread Cédric Krier

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)

2020-01-23 Thread Cédric Krier

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

2020-01-10 Thread Cédric Krier

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

2019-08-14 Thread Cédric Krier

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

2019-08-14 Thread Cédric Krier

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

2019-08-14 Thread Cédric Krier

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

2019-02-17 Thread Cédric Krier

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

2018-11-03 Thread Cédric Krier

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

2018-11-03 Thread Cédric Krier

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



python-sql 1.0.0 release

2018-10-02 Thread Cédric Krier via Python-announce-list
We are proud to announce the release of the version 1.0.0 of python-sql.

python-sql is a library to write SQL queries in a pythonic way.

In addition to bug-fixes, this release contains those improvements:

Add Flavor filter_ to fallback to case expression
Allow to use expression in AtTimeZone
Add comparison predicates
Add COLLATE

python-sql is available on PyPI: https://pypi.org/project/python-sql/1.0.0/
-- 
https://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


Release 0.8.0

2017-12-11 Thread Cédric Krier
Hi,

I'm glade to announce the publication of the 0.8.0 release of Relatorio. It is
a minor release that adds new features:

* Add support for Python 3.6
* Remove soft-page-break

and bug fixes:

* Do not guess_type on styled cell content
* Remove type attributes when guessing type

The package is available at
https://pypi.python.org/pypi/relatorio/0.8.0

The documentation is available at
https://relatorio.readthedocs.io/en/0.8.0/

-- 
https://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


Release 0.8.0

2017-12-04 Thread Cédric Krier
Hi,

I'm glade to announce the publication of the 0.8.0 release of Relatorio.
It is a minor release that adds new features:

* Add support for Python 3.6
* Remove soft-page-break

and bug fixes:

* Do not guess_type on styled cell content
* Remove type attributes when guessing type

The package is available at
https://pypi.python.org/pypi/relatorio/0.8.0

The documentation is available at
https://relatorio.readthedocs.io/en/0.8.0/
-- 
https://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


[issue27645] Supporting native backup facility of SQLite

2017-10-23 Thread Cédric Krier

Cédric Krier <cedric.kr...@b2ck.com> 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 <rep...@bugs.python.org>
<https://bugs.python.org/issue27645>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



febelfin-coda 0.1.0 released

2017-09-23 Thread Cédric Krier
Hi,

I'm glade to announce the first release of febelfin-coda.
febelfin-coda is a parser for the CODA files [1] from the financial organization
Febelfin.
The library has no dependency, works on Python 2 & 3 and is under BSD license.

febelfin-coda is available on PyPI:

https://pypi.python.org/pypi/febelfin-coda/0.1.0


[1] https://www.febelfin.be/sites/default/files/files/standard-coda-2.5-en.pdf
-- 
https://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


[issue31210] Can not import modules if sys.prefix contains DELIM

2017-08-16 Thread Cédric Krier

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 <rep...@bugs.python.org>
<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

2017-08-15 Thread Cédric Krier

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 <rep...@bugs.python.org>
<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

2017-08-15 Thread Cédric Krier

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 <rep...@bugs.python.org>
<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

2017-08-15 Thread Cédric Krier

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 <rep...@bugs.python.org>
<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

2017-08-15 Thread Cédric Krier

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 <rep...@bugs.python.org>
<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

2016-08-17 Thread Cédric Krier

Changes by Cédric Krier <cedric.kr...@b2ck.com>:


--
nosy: +ced

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27645>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



First release of python-escpos-xml

2016-03-01 Thread Cédric Krier
I'm pleased to announce the initial release of python-escpos-xml [1].

escpos-xml is a library to parse XML defined receipt and print it on ESC/POS 
Printer using python-escpos [2] library.
The XML syntax is quite similar to HTML and it can be generated by template 
engines.


[1] https://pypi.python.org/pypi/python-escpos-xml/0.1.0
[2] https://pypi.python.org/pypi/python-escpos
-- 
https://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


[issue26049] Poor performance when reading large xmlrpc data

2016-02-28 Thread Cédric Krier

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 <rep...@bugs.python.org>
<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

2016-02-28 Thread Cédric Krier

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 <rep...@bugs.python.org>
<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

2016-02-28 Thread Cédric Krier

Changes by Cédric Krier <cedric.kr...@b2ck.com>:


Added file: http://bugs.python.org/file42043/client.py

___
Python tracker <rep...@bugs.python.org>
<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

2016-02-24 Thread Cédric Krier

Cédric Krier added the comment:

Is there an infrastructure already in place for such microbenchmark?

--

___
Python tracker <rep...@bugs.python.org>
<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

2016-02-18 Thread Cédric Krier

Cédric Krier added the comment:

ping

--

___
Python tracker <rep...@bugs.python.org>
<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

2016-01-16 Thread Cédric Krier

Changes by Cédric Krier <cedric.kr...@b2ck.com>:


--
nosy: +ced

___
Python tracker <rep...@bugs.python.org>
<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

2016-01-08 Thread Cédric Krier

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 <rep...@bugs.python.org>
<http://bugs.python.org/issue26049>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Tryton 3.8 released

2015-11-03 Thread Cédric Krier
We are proud to announce the 3.8 release of Tryton.

Tryton is a three-tier high-level general purpose application platform under 
the license GPL-3 written in Python and using PostgreSQL as database engine.
It is the core base of a complete business solution providing modularity, 
scalability and security.

For the first time the release contains sao, the new web client of Tryton. It 
is the result of the Indiegogo campaign. It is developed using mainly jQuery 
and Bootstrap and its design is responsive. It requires a recent HTML5 
compatible browser. Its usage doesn't require any modification on the server 
side, every modules are working out of the box with sao just like they do with 
the GTK client. A demo is available at http://demo.tryton.org using demo/demo 
as login/password. This brings to 3 the number of supported client for Tryton 
(tryton (GTK), proteus (Python script) and sao (Javascript).

A lot of work has been done to improve the accessibility of the GTK and web 
clients. For the GTK client, we followed the GNOME Accessibility Developers 
Guide as much as possible and for the web client, we followed the Web 
Accessibility Initiative of the W3C.

And of course, this release contains many bug fixes and performance 
improvements.

As usual, migration from previous series is fully supported.

For more information, here is the full news: 
http://www.tryton.org/posts/new-tryton-release-38.html
-- 
https://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


[issue25543] locale.atof keep '.' even if not part of the localeconv

2015-11-03 Thread Cédric Krier

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 <rep...@bugs.python.org>
<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

2015-11-03 Thread Cédric Krier

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 <rep...@bugs.python.org>
<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

2015-11-03 Thread Cédric Krier

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 <rep...@bugs.python.org>
<http://bugs.python.org/issue25543>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



relatorio 0.6.2 released

2015-09-20 Thread Cédric Krier
Hi,
I'm glade to announce the new release of relatorio.
Relatorio is a templating library which provides a way to easily output all 
kind of different files (odt, ods, png, svg, ...) from python objects.
It is a minor release that fixes some issues and adds two improvements:

* New Genshi directives: attrs, content, replace and strip
* Add name argument for "image:" in ODF

relatorio is available on PyPI:

https://pypi.python.org/pypi/relatorio/0.6.2

The documentation is hosted on Read the Docs:

https://relatorio.readthedocs.org/en/0.6.2/
-- 
https://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


python-sql 0.8 released

2015-09-20 Thread Cédric Krier
Hi,

I'm glade to announce the new release of python-sql.

python-sql is a library to write SQL queries in a pythonic way.

In addition to bugfixes, this release contains those improvements:

* Add no_as Flavor for server that doesn't support 'AS' keyword
* Add rownum limit style
* Add converter format2numeric to support library that supports only 
numeric parmstyle
* Add no_boolean Flavor to replace boolean Literal by an equivalent 
expression
* Add CURRENT_DATE function
* Use UPPER to simulate missing ILIKE
* Add NULL ordering
* Allow to order on select queries
* Add DISTINCT qualifier to aggregate expressions

python-sql is available on PyPI:

https://pypi.python.org/pypi/python-sql/0.8
-- 
https://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


[issue1818] Add named tuple reader to CSV module

2015-05-29 Thread Cédric Krier

Changes by Cédric Krier cedric.kr...@b2ck.com:


--
nosy: +ced

___
Python tracker rep...@bugs.python.org
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

2015-05-19 Thread Cédric Krier

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 rep...@bugs.python.org
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

2015-04-04 Thread Cédric Krier

Changes by Cédric Krier cedric.kr...@b2ck.com:


Removed file: http://bugs.python.org/file38828/max_fd.patch

___
Python tracker rep...@bugs.python.org
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

2015-04-04 Thread Cédric Krier

Changes by Cédric Krier cedric.kr...@b2ck.com:


--
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 rep...@bugs.python.org
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

2015-04-04 Thread Cédric Krier

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 rep...@bugs.python.org
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

2015-04-04 Thread Cédric Krier

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 rep...@bugs.python.org
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

2015-04-03 Thread Cédric Krier

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 rep...@bugs.python.org
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

2015-04-03 Thread Cédric Krier

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 rep...@bugs.python.org
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

2015-04-03 Thread Cédric Krier

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 rep...@bugs.python.org
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

2015-04-03 Thread Cédric Krier

Changes by Cédric Krier cedric.kr...@b2ck.com:


--
type:  - behavior

___
Python tracker rep...@bugs.python.org
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

2015-04-03 Thread Cédric Krier

Cédric Krier added the comment:

At least on OpenBSD procfs have been removed: 
http://www.openbsd.org/faq/current.html#20140908

--

___
Python tracker rep...@bugs.python.org
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

2015-04-02 Thread Cédric Krier

Changes by Cédric Krier cedric.kr...@b2ck.com:


--
nosy: +ced

___
Python tracker rep...@bugs.python.org
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

2015-04-02 Thread Cédric Krier

Changes by Cédric Krier cedric.kr...@b2ck.com:


--
nosy: +ced

___
Python tracker rep...@bugs.python.org
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

2015-04-02 Thread Cédric Krier

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 rep...@bugs.python.org
http://bugs.python.org/issue23852
___
___
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

2015-04-01 Thread Cédric Krier

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.108content-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 rep...@bugs.python.org
http://bugs.python.org/issue23844
___
___
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

2015-04-01 Thread Cédric Krier

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-cvsm=141339479327258w=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 rep...@bugs.python.org
http://bugs.python.org/issue23845
___
___
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

2015-03-24 Thread Cédric Krier

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 rep...@bugs.python.org
http://bugs.python.org/issue23758
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



python-sql 0.5

2015-01-30 Thread Cédric Krier
Hi,

I'm glade to announce the new release of python-sql.

python-sql is a library to write SQL queries in a pythonic way. 

In addition to bugfixes, this release contains those improvements:

* Add schema
* Add Common Table Expression
* Escape Mod operator '%' with format paramstyle
* Deprecate Interesect in favor of Intersect
* Add Values

python-sql is available on PyPI:

  http://pypi.python.org/pypi/python-sql/0.5
-- 
https://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


[issue13918] locale.atof documentation is missing func argument

2014-10-18 Thread Cédric Krier

Cédric Krier added the comment:

A new version with unittest.

--
Added file: http://bugs.python.org/file36960/delocalize.patch

___
Python tracker rep...@bugs.python.org
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

2014-10-18 Thread Cédric Krier

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 rep...@bugs.python.org
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

2014-10-17 Thread Cédric Krier

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 rep...@bugs.python.org
http://bugs.python.org/issue13918
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



relatorio 0.6.1 released

2014-09-09 Thread Cédric Krier
Hi,
I'm glade to announce the new release of relatorio. It is a minor release that 
fixes one issue and adds two improvements:

* Explicitly close ZipFile

* Avoid zip content in traceback
* Improve Python 3 support

relatorio is available on PyPI:

https://pypi.python.org/pypi/relatorio/0.6.1
-- 
https://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


[issue17393] stdlib import mistaken for local by import_fixer

2014-02-03 Thread Cédric Krier

Changes by Cédric Krier cedric.kr...@b2ck.com:


--
nosy: +ced

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17393
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



python-sql 0.2 released

2013-09-18 Thread Cédric Krier
Hi,

I'm glade to announce the new release of python-sql.
python-sql is a library to write SQL queries in a pythonic way.
In addition to bugfixes, this release contains those improvements:

* Fix usage mixture between Div operator and function
* Add array support in operators

python-sql is available on PyPI:

http://pypi.python.org/pypi/python-sql/0.2
-- 
https://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


[issue17998] internal error in regular expression engine

2013-08-01 Thread Cédric Krier

Changes by Cédric Krier cedric.kr...@b2ck.com:


--
nosy: +ced

___
Python tracker rep...@bugs.python.org
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

2013-06-15 Thread Cédric Krier

Cédric Krier added the comment:

ping

--

___
Python tracker rep...@bugs.python.org
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

2013-03-15 Thread Cédric Krier

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 rep...@bugs.python.org
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

2013-03-14 Thread Cédric Krier

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 rep...@bugs.python.org
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

2013-03-13 Thread Cédric Krier

Cédric Krier added the comment:

Then I think we miss a locale.atod to parse string to Decimal

--
status: pending - open

___
Python tracker rep...@bugs.python.org
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

2012-11-03 Thread Cédric Krier

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 rep...@bugs.python.org
http://bugs.python.org/issue9625
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Tryton 2.6 released

2012-10-26 Thread Cédric Krier
 format different of the classic '%H:%M:%S'.

Other changes on server side


* The ModelSQL.default_sequence has been removed. The sequence fields will no
  more increase indefinitely.
* The time format is validated, so it is possible to enforce the second to 0
  for example.
* __tryton__.py is replaced by tryton.cfg, a static file.
* It is possible to use tuple as Reference value. It is usefull to construct
  dynamic domain on such field in PYSON.

-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: cedric.kr...@b2ck.com
Website: http://www.b2ck.com/
-- 
http://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


[issue15421] Calendar.itermonthdates OverflowError

2012-09-20 Thread Cédric Krier

Cédric Krier added the comment:

Fix haypo comments

--
Added file: http://bugs.python.org/file27239/calendar.patch

___
Python tracker rep...@bugs.python.org
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

2012-07-24 Thread Cédric Krier

Cédric Krier cedric.kr...@b2ck.com 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 rep...@bugs.python.org
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

2012-07-23 Thread Cédric Krier

New submission from Cédric Krier cedric.kr...@b2ck.com:

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 rep...@bugs.python.org
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

2012-07-22 Thread Cédric Krier

New submission from Cédric Krier cedric.kr...@b2ck.com:

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 rep...@bugs.python.org
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

2012-04-19 Thread Cédric Krier

Changes by Cédric Krier cedric.kr...@b2ck.com:


--
nosy: +ced

___
Python tracker rep...@bugs.python.org
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

2012-02-02 Thread Cédric Krier

Cédric Krier cedric.kr...@b2ck.com 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 rep...@bugs.python.org
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

2012-02-01 Thread Cédric Krier

New submission from Cédric Krier cedric.kr...@b2ck.com:

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 rep...@bugs.python.org
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

2011-12-18 Thread Cédric Krier

Cédric Krier cedric.kr...@b2ck.com added the comment:

New patch with test

--
Added file: http://bugs.python.org/file24028/issue7502.patch

___
Python tracker rep...@bugs.python.org
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

2011-12-18 Thread Cédric Krier

Cédric Krier cedric.kr...@b2ck.com added the comment:

New patch to add __hash__ and __eq__ to DocTest

--
Added file: http://bugs.python.org/file24029/issue7502.patch

___
Python tracker rep...@bugs.python.org
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

2011-12-18 Thread Cédric Krier

Cédric Krier cedric.kr...@b2ck.com added the comment:

Update patch to not use hash in __eq__

--
Added file: http://bugs.python.org/file24031/issue7502.patch

___
Python tracker rep...@bugs.python.org
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

2011-12-18 Thread Cédric Krier

Cédric Krier cedric.kr...@b2ck.com added the comment:

Add test for !=

--
Added file: http://bugs.python.org/file24033/issue7502.patch

___
Python tracker rep...@bugs.python.org
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

2011-12-18 Thread Cédric Krier

Cédric Krier cedric.kr...@b2ck.com added the comment:

Add also __eq__ to Example and add __ne__ method.

--
Added file: http://bugs.python.org/file24036/issue7502.patch

___
Python tracker rep...@bugs.python.org
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

2011-12-18 Thread Cédric Krier

Cédric Krier cedric.kr...@b2ck.com 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 rep...@bugs.python.org
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

2011-12-18 Thread Cédric Krier

Cédric Krier cedric.kr...@b2ck.com added the comment:

Add test for __hash__

--
Added file: http://bugs.python.org/file24040/issue7502-hash.patch

___
Python tracker rep...@bugs.python.org
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.

2011-11-24 Thread Cédric Krier

Changes by Cédric Krier cedric.kr...@b2ck.com:


--
nosy: +ced

___
Python tracker rep...@bugs.python.org
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

2011-01-30 Thread Cédric Krier

Cédric Krier cedric.kr...@b2ck.com 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 rep...@bugs.python.org
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

2009-08-21 Thread Cédric Krier

Changes by Cédric Krier c...@ced.homedns.org:


--
nosy: +ced

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6090
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com