Skip to content

install issue ... installed code uses deprecated inspect.formatargspec #2020

Closed
@scted

Description

@scted

line 133 in CallTips.py of my install uses deprecated 'inspect.formatargspec'

From interactive session

- failure happens as soon as I type the '(' in >>>Base(

PythonWin 3.11.2 (tags/v3.11.2:878ead1, Feb  7 2023, 16:38:35) [MSC v.1934 64 bit (AMD64)] on win32.
Portions Copyright 1994-2018 Mark Hammond - see 'Help/About PythonWin' for further copyright information.
>>> class Base:
... 	def __new__(cls, *args):
... 		return object.__new__(cls).__init__(*args)
... 	def __init__(self, *args):
... 		print(args)
... 		
>>> BaseFailed to format the args
Traceback (most recent call last):
  File "C:\Users\c32825\AppData\Local\Programs\Python\Python311\Lib\site-packages\pythonwin\pywin\idle\CallTips.py", line 133, in get_arg_text
    argText = inspect.formatargspec(*inspect.getfullargspec(fob))
              ^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'inspect' has no attribute 'formatargspec'
(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions