[issue45275] Make argparse print description of subcommand when invoke help doc on subcommand

2021-09-23 Thread Chuanlong Du
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

[issue44737] Mapping from to collections.abc

2021-07-25 Thread Du
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

[issue31743] Proportional Width Font on Generated Python Docs PDFs and in mobile browser

2021-06-18 Thread Paul Du Bois
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

[issue31743] Proportional Width Font on Generated Python Docs PDFs

2021-06-18 Thread Paul Du Bois
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

[issue40973] platform.platform() in Python 3.8 does not report detailed Linux platform information

2020-06-13 Thread Ben Du
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

[issue39864] IndexError gives wrong axis info

2020-03-05 Thread Ningyi Du
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

[issue39864] IndexError gives wrong axis info

2020-03-05 Thread Ningyi Du
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

[issue39864] IndexError gives wrong axis info

2020-03-05 Thread Ningyi Du
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

[issue33129] Add kwarg-only option to dataclass

2018-03-25 Thread Alan Du
Change by Alan Du : -- keywords: +patch pull_requests: +5975 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue33129> ___ ___ Python-

[issue33129] Add kwarg-only option to dataclass

2018-03-23 Thread Alan Du
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

[issue33129] Add kwarg-only option to dataclass

2018-03-23 Thread Alan Du
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

[issue33129] Add kwarg-only option to dataclass

2018-03-23 Thread Alan Du
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

[issue32167] Improve random.choice function for FiFa purpose

2017-11-29 Thread Du Phan
Change by Du Phan : -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue32167> ___ ___ Python-bugs-list

[issue32167] Improve random.choice function for FiFa purpose

2017-11-29 Thread Du Phan
Change by Du Phan : -- title: "Improve" random.choice function for FiFa purpose -> Improve random.choice function for FiFa purpose ___ Python tracker <https://bugs.pytho

[issue32167] "Improve" random.choice function for FiFa purpose

2017-11-29 Thread Du Phan
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

[issue19576] "Non-Python created threads" documentation doesn't mention PyEval_InitThreads()

2014-05-04 Thread Jiong Du
Jiong Du added the comment: this patch made a new issue<20891> -- nosy: +lolynx ___ Python tracker <http://bugs.python.org/issue19576> ___ ___ Python-bugs-

[issue6570] Documentation Clarity

2009-07-25 Thread Mark du Preez
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