hpyproject / hpy

HPy: a better API for Python
https://hpyproject.org
MIT License
1.02k stars 52 forks source link

Is keeping 2.7 compatibility for `hpy/devel/__init__.py` still relevant? #477

Closed Sachaa-Thanasius closed 4 months ago

Sachaa-Thanasius commented 4 months ago

Note: Not a bug or a feature, more of a general question.

Context: This note at the top of hpy/devel/__init__.py

# NOTE: this file is also imported by PyPy tests, so it must be compatible
# with both Python 2.7 and Python 3.x

I'm not that familiar with PyPy, but I know pathlib in CPython is only available in the standard library for 3.x. If PyPy's in a similar boat, and considering that library is being used seemingly without issue in this file's code, is the note above still relevant?

mattip commented 4 months ago

There is a backport of pathlib for Python2.

Sachaa-Thanasius commented 4 months ago

Ah, the note’s still relevant then, and pathlib is accounted for. Got it.