[issue46127] Missing HTML span element in exceptions.html

2021-12-20 Thread Vivek Vashist


Change by Vivek Vashist :


--
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

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



[issue46137] Update/change built-in keyword type used in RE example

2021-12-20 Thread Vivek Vashist


Change by Vivek Vashist :


--
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

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



[issue46137] Update/change built-in keyword type used in RE example

2021-12-20 Thread Vivek Vashist


Vivek Vashist  added the comment:

Thanks Eric.

--

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



[issue46137] Update/change built-in keyword type used in RE example

2021-12-20 Thread Vivek Vashist


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 updated/renamed to kind or name perhaps ? 

Happy to submit a PR once the change/replacement is confirmed.

--
assignee: docs@python
components: Documentation
messages: 408951
nosy: docs@python, vivekvashist
priority: normal
severity: normal
status: open
title: Update/change built-in keyword type used in RE example
versions: Python 3.10

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



[issue46127] Missing HTML span element in exceptions.html

2021-12-19 Thread Vivek Vashist


Vivek Vashist  added the comment:

Thanks for the information Daniel.

--

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



[issue46127] Missing HTML span element in exceptions.html

2021-12-18 Thread Vivek Vashist


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.

Working:

+-- BytesWarning

Broken:

+-- EncodingWarning

See attached screenshot. 

I"m not too familiar with Sphinx but I'm happy to create a PR for this issue if 
someone could point me in right direction on how to fix this.

--
assignee: docs@python
components: Documentation
files: Screen Shot 2021-12-19 at 5.29.54 pm.png
messages: 408886
nosy: docs@python, vivekvashist
priority: normal
severity: normal
status: open
title: Missing HTML span element in exceptions.html
versions: Python 3.10
Added file: https://bugs.python.org/file50501/Screen Shot 2021-12-19 at 5.29.54 
pm.png

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



[issue46122] Update/fix types.UnionType to types.Union in Built-in Types documentation

2021-12-18 Thread Vivek Vashist


Change by Vivek Vashist :


--
resolution:  -> not a bug
stage: patch review -> resolved
status: open -> closed

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



[issue46122] Update/fix types.UnionType to types.Union in Built-in Types documentation

2021-12-18 Thread Vivek Vashist


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

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



[issue46122] Update/fix types.UnionType to types.Union in Built-in Types documentation

2021-12-18 Thread Vivek Vashist


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/issue46122>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46122] Update/fix types.UnionType to types.Union in Built-in Types documentation

2021-12-18 Thread Vivek Vashist


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):
  File "", line 1, in 
AttributeError: module 'types' has no attribute 'UnionType'. Did you mean: 
'FunctionType'?
>>> [att for att in dir(types) if 'Union' in att]
['Union']
>>>

WORKING:

>>> import types
>>>
>>> isinstance(int | str, types.Union)
True
>>>

I'll raise a PR shortly.

--
assignee: docs@python
components: Documentation
messages: 408839
nosy: docs@python, vivekvashist
priority: normal
severity: normal
status: open
title: Update/fix types.UnionType to types.Union in Built-in Types documentation
versions: Python 3.10

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



[issue46092] Fix/update missing parameters in function signatures for Built-in Functions documentation.

2021-12-17 Thread Vivek Vashist


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
https://docs.python.org/3/library/stdtypes.html#str.removesuffix

--

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



[issue46113] Typos and minor fixes in built in types documentation

2021-12-17 Thread Vivek Vashist


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 to **kwargs

--

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



[issue46113] Typos and minor fixes in built in types documentation

2021-12-17 Thread Vivek Vashist


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/issue46113>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46113] Typos and minor fixes in built in types documentation

2021-12-17 Thread Vivek Vashist


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 3.10

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



[issue46092] Fix/update missing parameters in function signatures for Built-in Functions documentation.

2021-12-15 Thread Vivek Vashist


Vivek Vashist  added the comment:

PR: https://github.com/python/cpython/pull/30128

--

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



[issue46092] Fix/update missing parameters in function signatures for Built-in Functions documentation.

2021-12-15 Thread Vivek Vashist


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/issue46092>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46092] Fix/update missing parameters in function signatures for Built-in Functions documentation.

2021-12-15 Thread Vivek Vashist


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@python
components: Documentation
messages: 408653
nosy: docs@python, vivekvashist
priority: normal
severity: normal
status: open
title: Fix/update missing parameters in function signatures for Built-in 
Functions documentation.
type: behavior
versions: Python 3.10

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



[issue46079] Broken URL in tutorial

2021-12-14 Thread Vivek Vashist


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 connection 0
curl: (6) Could not resolve host: tycho.usno.navy.mil

--
assignee: docs@python
components: Documentation
messages: 408585
nosy: docs@python, vivekvashist
priority: normal
severity: normal
status: open
title: Broken URL in tutorial
versions: Python 3.10

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



[issue46059] Typo in match Statement example

2021-12-14 Thread Vivek Vashist


Vivek Vashist  added the comment:

Thanks for sorting this out Alex :)

--

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



[issue46059] Typo in match Statement example

2021-12-12 Thread Vivek Vashist


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", "copyright", "credits" or "license" for more information.
>>> from enum import Enum
>>> class Color(Enum):
... RED = 0
... GREEN = 1
... BLUE = 2
...
>>> match color:
... case Color.RED:
... print("I see red!")
... case Color.GREEN:
... print("Grass is green")
... case Color.BLUE:
... print("I'm feeling the blues :(")
...
Traceback (most recent call last):
  File "", line 1, in 
NameError: name 'color' is not defined. Did you mean: 'Color'?


WORKING:

> 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", "copyright", "credits" or "license" for more information.
>>>
>>>
>>>
>>> from enum import Enum
>>> class Color(Enum):
... RED = 0
... GREEN = 1
... BLUE = 2
...
>>> match Color:
... case Color.RED:
... print("I see red!")
... case Color.GREEN:
... print("Grass is green")
... case Color.BLUE:
... print("I'm feeling the blues :(")

--
assignee: docs@python
components: Documentation
messages: 408415
nosy: docs@python, vivekvashist
priority: normal
severity: normal
status: open
title: Typo in match Statement example
versions: Python 3.10

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