osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Python3 - How do I import a class from another file


On Wed, Dec 11, 2019 at 6:51 PM Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
>
> On 12/12/19 3:50 am, R.Wieser wrote:
> > I was rather clear about what my used version of Python was-and-is.  I have
> > no idea why that was ignored. :-(
>
> I think we've all been talking at cross purposes for a while.
>
> What I meant to say originally was that you were relying on
> an implementation detail of current CPython, and your code
> might not work on other versions of Python. I was just
> trying to make you aware of something that is considered
> "best practice" when writing Python code, for your own
> future reference.

A question:  As these behaviors being discussed are CPython
implementation details, is it true that CPython itself is free to
implement these behaviors differently in its own future versions?



-- 
boB