[issue42162] The license page for Python 3.0 is messed up

2020-10-26 Thread MaT1g3R


New submission from MaT1g3R :

Page in question: https://docs.python.org/3.0/license.html

The page still shows up in web searches (this is how I found the error)

I tracked down the error to this commit, but I couldn't find a relevant branch 
to fix it: 4ca04b67f00edabe86072446f059adcb70eafcdd

--
assignee: docs@python
components: Documentation
messages: 379692
nosy: MaT1g3R, docs@python
priority: normal
severity: normal
status: open
title: The license page for Python 3.0 is messed up
type: behavior

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



[issue38836] Links are duplicated in documentation search result

2019-11-18 Thread MaT1g3R


New submission from MaT1g3R :

When I do a search in documentation, for example:

https://docs.python.org/3.9/search.html?q=os.walk

The links in the results are sometimes duplicated, for example this
link below shows up twice in the search result:

https://docs.python.org/3.9/library/os.html?highlight=os%20walk#os.walk

--
assignee: docs@python
components: Documentation
messages: 356883
nosy: MaT1g3R, docs@python
priority: normal
severity: normal
status: open
title: Links are duplicated in documentation search result
type: behavior
versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9

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



[issue32867] argparse assertion failure with multiline metavars

2018-02-23 Thread MaT1g3R

MaT1g3R <peijun...@protonmail.com> added the comment:

I tried to include line breaks for listing options for a positional argument.

The default metavar for that is something like {opt1, opt2, op3},
however I wanted it to display the options on separate lines.

--

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



[issue32867] argparse assertion failure with multiline metavars

2018-02-17 Thread MaT1g3R

New submission from MaT1g3R <peijun...@protonmail.com>:

If I run this script with -h
-8<--
from argparse import ArgumentParser
mapping = ['123456', '12345', '12345', '123']
p = ArgumentParser('11')
p.add_argument('-v', '--verbose', help='verbose mode', action='store_true')
p.add_argument('targets', help='installation targets',  nargs='+', 
metavar='\n'.join(mapping))
p.parse_args()
-8<
I get an error:
-8<
Traceback (most recent call last):
  File "tmp.py", line 7, in 
p.parse_args()
  File "/usr/lib/python3.6/argparse.py", line 1730, in parse_args
args, argv = self.parse_known_args(args, namespace)
  File "/usr/lib/python3.6/argparse.py", line 1762, in parse_known_args
namespace, args = self._parse_known_args(args, namespace)
  File "/usr/lib/python3.6/argparse.py", line 1968, in _parse_known_args
start_index = consume_optional(start_index)
  File "/usr/lib/python3.6/argparse.py", line 1908, in consume_optional
take_action(action, args, option_string)
  File "/usr/lib/python3.6/argparse.py", line 1836, in take_action
action(self, namespace, argument_values, option_string)
  File "/usr/lib/python3.6/argparse.py", line 1020, in __call__
parser.print_help()
  File "/usr/lib/python3.6/argparse.py", line 2362, in print_help
self._print_message(self.format_help(), file)
  File "/usr/lib/python3.6/argparse.py", line 2346, in format_help
return formatter.format_help()
  File "/usr/lib/python3.6/argparse.py", line 282, in format_help
help = self._root_section.format_help()
  File "/usr/lib/python3.6/argparse.py", line 213, in format_help
item_help = join([func(*args) for func, args in self.items])
  File "/usr/lib/python3.6/argparse.py", line 213, in 
item_help = join([func(*args) for func, args in self.items])
  File "/usr/lib/python3.6/argparse.py", line 334, in _format_usage
    assert ' '.join(pos_parts) == pos_usage
AssertionError
-8<--

--
components: Library (Lib)
messages: 312299
nosy: MaT1g3R
priority: normal
severity: normal
status: open
title: argparse assertion failure with multiline metavars
type: behavior
versions: Python 3.6

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