Chris, when I look at the code for “def apple … “ it has the right indentation(?) All I did is to copy it from Spyder and paste it here.
Also, while you believe the white spaces are better vs the curly braces {} I would have the opposite point of view, I know where I started and when I ended.
Anyway, I looked at the other files comparing the implementation and from my point of view they are exactly same including the import and that's why I do not understand that at one instance is OK and the other instance just does not budge.
I rebooted and so the first error line is gone.
I figured out the “None”, I put print “something” in front of the method's print.
It is only this MyClass that complaining. I import and implement other class methods and all works fine. Hopefully one day I'll figure it out.
I will look more into those white spaces.
Thanks much.
How do I resolve these errors in the last blog?
1) the import? I am not sure what that means
2) why do I get the "None"?
3) the traceback? The files are same from my point of view but something hinders MyStuff.py file from working
Thanks much.
Seriously, if python would be into OO it would have a documentation referring to it and providing the internal workings BUT it does not! And that's on Linux as well, not just on windows. NOWHERE it is documented how to use that preposterous “import”! I am talking about file to file interaction using type class. Despite the glory of whoever it just conflicts.
So far I’ve seen too many files in python miles long something that does not much commence to OO very well. Also, maybe it’s the lack of documentation but the import function does not budge much under windows. It is the PHP the most user friendly IDE that gets you going fast with the least learning curve.
True, in Python you can do:
>>> 2 + 2
4
That’s great!
I need to work with files and despite the Python docs it does not help much. (windows env.)
You guys don’t seem to know much about languages! PHP, Java, C++, NET are OO oriented and toward WEB development.
Python has NOTHING to do with OO at all. Just because you put “class” in front of a function does not makes it OO!
I realized that after I saw the other comment, pretty funny. Anyway, I found solution to my Q. I downloaded Ubuntu and did not realize how powerful it is.
When using windows Mysql comes like a package and so no complexity what to install. But, it is different in Linux. Would someone suggest what parts of Mysql to install on Linux or does it come like a package like for windows? Then which one? Of course interfacing with Java.
Thanks.