New submission from Vivek Vashist :
Possible Typo in match statement example.
https://docs.python.org/3/tutorial/controlflow.html#match-statements
BROKEN:
> python
Python 3.10.0b4 (default, Nov 15 2021, 18:26:05) [Clang 12.0.0
(clang-1200.0.32.29)] on darwin
Type "help"
Vivek Vashist added the comment:
Thanks for sorting this out Alex :)
--
___
Python tracker
<https://bugs.python.org/issue46059>
___
___
Python-bugs-list mailin
New submission from Vivek Vashist :
URL: http://tycho.usno.navy.mil/cgi-bin/timer.pl is broken in the example
https://docs.python.org/3/tutorial/stdlib.html#internet-access
> curl -v http://tycho.usno.navy.mil/cgi-bin/timer.pl
* Could not resolve host: tycho.usno.navy.mil
* Closing connect
New submission from Vivek Vashist :
Previous issue:
https://github.com/python/cpython/pull/30113#issuecomment-994642493
As noted/pointed by Alex - I went through all the Built-in Functions and
updated/fixed the missing parameters.
I'll raise a PR shortly.
--
assignee: docs@p
Change by Vivek Vashist :
--
keywords: +patch
pull_requests: +28347
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30128
___
Python tracker
<https://bugs.python.org/issu
Vivek Vashist added the comment:
PR: https://github.com/python/cpython/pull/30128
--
___
Python tracker
<https://bugs.python.org/issue46092>
___
___
Python-bug
New submission from Vivek Vashist :
Will raise a PR shortly.
--
assignee: docs@python
components: Documentation
messages: 408766
nosy: docs@python, vivekvashist
priority: normal
severity: normal
status: open
title: Typos and minor fixes in built in types documentation
versions: Python
Change by Vivek Vashist :
--
keywords: +patch
pull_requests: +28384
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30167
___
Python tracker
<https://bugs.python.org/issu
Vivek Vashist added the comment:
PR: https://github.com/python/cpython/pull/30167
Fix#1 - isidentifier() function output
Fix#2 Update the str.splitlines() function parameter
Fix#3 Removed unwanted full stop for str and bytes types double quotes examples
Fix#4 Updated class dict from **kwarg
Vivek Vashist added the comment:
Noticed that new removeprefix() and removesuffix() functions that were added in
3.9 have slash notation added in Built-in Types document.
str.removeprefix(prefix, /)
str.removesuffix(suffix, /)
https://docs.python.org/3/library/stdtypes.html#str.removeprefix
New submission from Vivek Vashist :
There is an error in
https://docs.python.org/3/library/stdtypes.html#types-union example.
Looks like there is no types.UnionType
BROKEN:
>>> import types
>>> isinstance(int | str, types.UnionType)
Traceback (most recent call last):
F
Change by Vivek Vashist :
--
keywords: +patch
pull_requests: +28401
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30182
___
Python tracker
<https://bugs.python.org/issu
Vivek Vashist added the comment:
Thanks Ken.
You are right I'm using 3.10.0b4. I just tested it on 3.10.0 and it works fine.
>>> import types
>>> isinstance(int | str, types.UnionType)
True
--
status: pending -> open
Change by Vivek Vashist :
--
resolution: -> not a bug
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
New submission from Vivek Vashist :
Link:
https://docs.python.org/3/library/exceptions.html#exception-hierarchy
Looking at EncodingWarning under exception-hierarchy is displaying BLACK color
instead of RED.
Digging into HTML looks like it is missing the appropriate span class element
Vivek Vashist added the comment:
Thanks for the information Daniel.
--
___
Python tracker
<https://bugs.python.org/issue46127>
___
___
Python-bugs-list mailin
New submission from Vivek Vashist :
Link: https://docs.python.org/3/library/re.html#writing-a-tokenizer
Noticed that built-in type() class is being used inside the Tokenizer example:
class Token(NamedTuple):
type: str
value: str
line: int
column: int
Should this attribute be
Vivek Vashist added the comment:
Thanks Eric.
--
___
Python tracker
<https://bugs.python.org/issue46137>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Vivek Vashist :
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue46137>
___
___
Change by Vivek Vashist :
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue46127>
___
___
20 matches
Mail list logo