Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
W wendelin.core
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • nexedi
  • wendelin.core
  • Repository

Switch branch/tag
  • wendelin.core
  • bigarray
  • array_zodb.py
Find file BlameHistoryPermalink
  • Jérome Perrin's avatar
    bigarray/zodb: Switch from inspect.getargspec -> inspect.getfullargspec · ce556e2b
    Jérome Perrin authored May 22, 2025
    --------
    kirr:
    
    In py3.11 inspect.getargspec was removed
    
        bigarray/array_zodb.py:40: in <module>
            _ = inspect.getargspec(BigArray.__init__)
        E   AttributeError: module 'inspect' has no attribute 'getargspec'
    
    and https://docs.python.org/3/whatsnew/3.11.html says to replace it with
    inspect.getfullargspec. In fact inspect.getargspec was deprecated since
    py3, so we can do the change not only for py3.11+, but for any py3
    version.
    
    For our use-case getfullargspec seems to be drop-in replacement for
    getargspec, so we should be ok doing that.
    
    /reviewed-by @kirr
    /reviewed-on nexedi/wendelin.core!37
    ce556e2b
array_zodb.py 4 KB
EditWeb IDE

Replace array_zodb.py

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7