New submission from Chuanlong Du :
I have command-line script `blog` written using argparse. It supports
subcommands. When I check the help doc of a subcommand, e.g., using `blog
convert -h`, it prints the help doc of the subcommand `blog convert` but
doesn't print the description o
New submission from Du <491609...@qq.com>:
When using Sanic, referencing Mapping in collections in SANic-Jinja2 brings
ImportError: Cannot import name 'Mapping' from 'collections'. When you use
Mapping, shouldn't you call from collections.abc?
--
messag
Change by Paul Du Bois :
--
title: Proportional Width Font on Generated Python Docs PDFs -> Proportional
Width Font on Generated Python Docs PDFs and in mobile browser
___
Python tracker
<https://bugs.python.org/issu
Paul Du Bois added the comment:
For what it's worth, I also see proportional-width fonts when looking at the
docs in Android Chrome. For example, the binary tree in
https://docs.python.org/3/library/heapq.html is mangled.
--
nosy: +paul.d
New submission from Ben Du :
The function platform.platform() does not report detailed Linux platform
information (Ubuntu, Debain, CentOS, etc). This information is reported in
Python 3.7 and earlier.
--
components: Library (Lib)
messages: 371488
nosy: legendu
priority: normal
Ningyi Du added the comment:
I believe it's a bug. The axis 0 is misleading. However, it is a problem
for numpy developers. Thank you for your time.
On Thu, Mar 5, 2020, 10:42 AM Peter Otten wrote:
>
> Peter Otten <__pete...@web.de> added the comment:
>
> This is no
Ningyi Du added the comment:
This is a simple test:
test=np.zeros((2,3,4))
print(test[1][3][1])
IndexErrorTraceback (most recent call last)
in
1 test=np.zeros((2,3,4))
> 2 print(test[1][3][1])
IndexError: index 3 is out of bounds for axis 0 w
New submission from Ningyi Du :
IndexError: index 11 is out of bounds for axis 0 with size 11
The actual error is not with axis 0, but axis 3.
error message:
168 if iJ>=9:
169 print(iE,iE0,iEtemp,iJ,li,lf,mlf+lf)
--&g
Change by Alan Du :
--
keywords: +patch
pull_requests: +5975
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue33129>
___
___
Python-
Alan Du added the comment:
Err... the right link would actually be
https://github.com/alanhdu/cpython/tree/bpo-33129.
--
___
Python tracker
<https://bugs.python.org/issue33
Alan Du added the comment:
If this would be accepted, I'd be happy to contribute a patch adding a
`kwarg_only` option to `dataclass` (although it might take me a while since I'm
not super familiar with the Python development workflow). I believe I already
have the code change ne
New submission from Alan Du :
I'd like to request a new option to the `dataclasses.dataclass` decorator to
make the `__init__` keyword-only.
The two use-cases I have in mind are:
(1) Using as a dataclass big-bag-of-config. In this scenario, forcing the user
to specify the keywords is
Change by Du Phan :
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue32167>
___
___
Python-bugs-list
Change by Du Phan :
--
title: "Improve" random.choice function for FiFa purpose -> Improve
random.choice function for FiFa purpose
___
Python tracker
<https://bugs.pytho
Change by Du Phan :
--
components: Build
nosy: duphan
priority: normal
severity: normal
status: open
title: "Improve" random.choice function for FiFa purpose
type: behavior
versions: Python 2.7
___
Python tracker
<https://bugs.python.o
Jiong Du added the comment:
this patch made a new issue<20891>
--
nosy: +lolynx
___
Python tracker
<http://bugs.python.org/issue19576>
___
___
Python-bugs-
New submission from Mark du Preez :
Hi
In section 4.7.2 of the tutorial documentation, we suddenly find the
following paragraph:
"In general, an argument list must have any positional arguments
followed by any keyword arguments, where the keywords must be chosen
from the formal parameter
17 matches
Mail list logo