[issue45320] Remove deprecated inspect functions

2021-11-27 Thread Hugo van Kemenade


Change by Hugo van Kemenade :


--
pull_requests: +28046
pull_request: https://github.com/python/cpython/pull/29813

___
Python tracker 

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



[issue45320] Remove deprecated inspect functions

2021-10-20 Thread Łukasz Langa

Łukasz Langa  added the comment:

Thanks, Hugo! ✨ 🍰 ✨

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue45320] Remove deprecated inspect functions

2021-10-20 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset d89fb9a5a610a257014d112bdceef73d7df14082 by Hugo van Kemenade in 
branch 'main':
bpo-45320: Remove long-deprecated inspect methods (GH-28618)
https://github.com/python/cpython/commit/d89fb9a5a610a257014d112bdceef73d7df14082


--

___
Python tracker 

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



[issue45320] Remove deprecated inspect functions

2021-09-29 Thread Hugo van Kemenade


Hugo van Kemenade  added the comment:

Of the 188 repos I managed to clone of 200 top PyPI packages, looks like these 
9 are still calling them:

botocore
client_python
cython
google-api-python-client
grpc
ipython
pycodestyle
pyrsistent
wrapt

Details at https://github.com/python/cpython/pull/28618#issuecomment-930524790

--

___
Python tracker 

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



[issue45320] Remove deprecated inspect functions

2021-09-29 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Slightly related, inspect.getfullargspec was also deprecated and later 
undeprecated. Please find the discussion post this message

https://bugs.python.org/issue36751#msg341128

https://bugs.python.org/issue37010

--
nosy: +xtreak

___
Python tracker 

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



[issue45320] Remove deprecated inspect functions

2021-09-29 Thread Łukasz Langa

Łukasz Langa  added the comment:

Have you done any checks how much external code is using the deprecated 
callables in the wild? I remember when the 3.5 deprecations started, a lot of 
libraries started emitting them because they stuck to `getargspec` which was 
Python 2 compatible.

--
nosy: +lukasz.langa

___
Python tracker 

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



[issue45320] Remove deprecated inspect functions

2021-09-29 Thread Hugo van Kemenade


Change by Hugo van Kemenade :


--
keywords: +patch
pull_requests: +26989
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/28618

___
Python tracker 

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



[issue45320] Remove deprecated inspect functions

2021-09-29 Thread Hugo van Kemenade


New submission from Hugo van Kemenade :

inspect.getargspec was deprecated in docs since 3.0 
(https://docs.python.org/3.0/library/inspect.html?highlight=getargspec#inspect.getargspec),
 raising a DeprecationWarning since 3.5 (bpo-20438, 
https://github.com/python/cpython/commit/3cfec2e2fcab9f39121cec362b78ac235093ca1c).

inspect.formatargspec was deprecated in docs since 3.5 
(https://docs.python.org/3.5/library/inspect.html?highlight=getargspec#inspect.formatargspec),
 raising a DeprecationWarning since 3.8 (bpo-33582, 
https://github.com/python/cpython/commit/46c5cd0f6e22bdfbdd3f0b18f1d01eda754e7e11).

Undocumented inspect.Signature.from_function and inspect.Signature.from_builtin 
in docs and by raising a DeprecationWarning since 3.5 (bpo-20438, 
https://github.com/python/cpython/commit/3cfec2e2fcab9f39121cec362b78ac235093ca1c).

These can be removed in Python 3.11.

--
components: Library (Lib)
messages: 402860
nosy: hugovk
priority: normal
severity: normal
status: open
title: Remove deprecated inspect functions
versions: Python 3.11

___
Python tracker 

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