osdir.com


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

Python3 - How do I import a class from another file


R.Wieser schreef op 10/12/2019 om 13:44:

>> Also, when you scorn something without knowing your facts,
>> you tend to make yourself look like a fool :)
> 
> I tend to go with logic.   No logic => it most likely doesn't work that way.
> 
> Choosing to go with a delayed action like you say will, as I already
> explained, create problems later on (race conditions everywhere).  And as I
> do not think the designers of the language where that stupid I must
> therefore reject your claim to what you think happens.

Chris: long-time contributor to this mailing list, lots of Python 
experience, knows his stuff.
Rudy: new to Python, still learning the basics.

Chris: explains how things work, states the facts correctly.
Rudy: disregards all that and thinks he knows better.

Me: does not compute

> But, as you mentioned, I do not know (all) the facts.  Please do present
> them.   Maybe there is a logic in there I do not yet see.
> 
>> Check out the 'with' statement.
> 
> I'm sorry, but nope.

That's a very foolish rejection.

Rudy, unless/until you know the language inside out, you'd better listen 
to Chris and other people here who spend a lot of time and effort in 
helping people like you. Don't correct them on things like this unless 
you can cite chapter and verse.
You're doing yourselves a massive disservice by acting this way.

Best regards,
Roel

-- 
"Honest criticism is hard to take, particularly from a relative, a
friend, an acquaintance, or a stranger."
         -- Franklin P. Jones

Roel Schroeven