[issue31589] Links for French documentation pdf is broken
New submission from fabrice: Hi, In this page : https://docs.python.org/fr/2/download.html, all the documentation links aren't available, for example : - https://docs.python.org/fr/2/archives/python-2.7.14-docs-pdf-a4.zip - https://docs.python.org/fr/2/archives/python-2.7.14-docs-pdf-a4.tar.bz2 So, I can't read the documentation in French :) Regards, Fabrice -- assignee: docs@python components: Documentation messages: 303024 nosy: docs@python, fabrice priority: normal severity: normal status: open title: Links for French documentation pdf is broken versions: Python 2.7 ___ Python tracker <https://bugs.python.org/issue31589> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12271] panel.h is not found even if it's installed on various flavours of SUSE
Fabrice BAUZAC added the comment: I have been hit by the same issue today. Kenneth's patch seems fine. Why not integrate it? -- nosy: +fbauzac ___ Python tracker <https://bugs.python.org/issue12271> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35956] Sort documentation could be improved for complex sorting
New submission from fabrice salvaire :
I just implemented Graham Scan algorithm in Python 3 and have to read carefully
the sort documentation. Notice this is a good algorithm for a large audience
language like Python.
Since Python 3, the old order function cmp is depicted as an old way to proceed.
But some sorting procedure require complex order like this
def sort_by_y(p0, p1):
return p0.x - p1.x if (p0.y == p1.y) else p0.y - p1.y
sorted(points, key=cmp_to_key(sort_by_y))
which is less natural to implement than
def sort_by_y(p0, p1):
return p0.x < p1.x if (p0.y == p1.y) else p0.y < p1.y
sorted(points, cmp=sort_by_y)
Since Python 3 we should do this
points.sort(key=attrgetter('x'))
points.sort(key=attrgetter('y'))
But we must take care to the chaining order !!! Here we must sort first on x
then on y.
I think the documentation could explain much better how to perform complex sort
and the performance of the Python sort algorithm. Is the old way faster than
the new one ??? What about short and large array ??? What happen when we sort
a zillion of short array ???
--
assignee: docs@python
components: Documentation
messages: 335163
nosy: FabriceSalvaire, docs@python
priority: normal
severity: normal
status: open
title: Sort documentation could be improved for complex sorting
type: enhancement
versions: Python 3.7
___
Python tracker
<https://bugs.python.org/issue35956>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33390] matmul @ operator precedence
New submission from fabrice salvaire : I use the new matmul @ operator to implement units, for example 1@u_s for 1 second ( see alpha state implementation at https://github.com/FabriceSalvaire/PySpice/tree/master/PySpice/Unit ). It looks cool, but unfortunately 10@u_s / 2@u_s is actually interpreted as (10@u_s / 2)@u_s instead of (10@u_s) / (2@u_s) due to operator precedence + <<< - <<< * <<< @ <<< / <<< // <<< % https://docs.python.org/3/reference/expressions.html#operator-precedence Since Python is widely used for scientific applications, would it be possible to investigate this topic ? -- components: Interpreter Core messages: 315918 nosy: FabriceSalvaire priority: normal severity: normal status: open title: matmul @ operator precedence type: behavior versions: Python 3.5 ___ Python tracker <https://bugs.python.org/issue33390> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20197] Support WebP image format detection in imghdr module
New submission from Fabrice Aneche: Detect the webp file format (RIFF container + WEBP), return webp as format detected. -- components: Library (Lib) files: imghdr_webp.patch keywords: patch messages: 207702 nosy: akhenakh, gregory.p.smith priority: normal severity: normal status: open title: Support WebP image format detection in imghdr module type: enhancement versions: Python 2.7, Python 3.4 Added file: http://bugs.python.org/file33366/imghdr_webp.patch ___ Python tracker <http://bugs.python.org/issue20197> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
