Skip to content

GitLab

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

Merged
Created Jul 07, 2025 by Xiaowu Zhang@xiaowu.zhangDeveloper

python3 update

  • Overview 24
  • Commits 4
  • Changes 10

here are changes that are not compatible in py2 and py3, i use six to keep compatibility

Changes

  1. Data Mapping can't support different data type inside now

    if you first push list, then tuple, it will raise error

    the reason is Data Mapping use BTrees (like OLBTree from Zope/BTrees package) which use keys that must be comparable with < because they are internally stored in a sorted structure.

    but in py3, it raise error when compare between different types, for example, tuple and list

       TypeError: '<' not supported between instances of 'tuple' and 'list'

    i think it's hard to make it supported, so only update test for now

  2. use six to keep compatibility in py2&3 i.e. use if six.PY2 ... else ...

  3. df.to_records has no more convert_datetime64 parameter in recent pandas

    so i remove this parameter in test, the tests are always passed :)

Edited Jul 11, 2025 by Xiaowu Zhang
Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: mergezope4py3
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7