Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • VTK VTK
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 740
    • Issues 740
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 199
    • Merge requests 199
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VTK
  • VTKVTK
  • Issues
  • #18120
Closed
Open
Created Feb 09, 2021 by David Gobbi@dgobbiDeveloper

Support PEP 519 (fspath) in wrapped SetFileName methods

Python 3.6 adds the fspath (file system path) protocol described by PEP 519. By supporting this protocol in VTK's SetFileName() methods, we could make those methods accept Path objects, in addition to strings, without requiring the user to manually convert the Path to string.

For example, Python's open() method accepts either string objects or Path objects (as of Python 3.6), and this change would make VTK's SetFileName() method behave similarly.

See support-for-pathlib for additional discussion.

Assignee
Assign to
Time tracking