g Peshone

Ranch Hand
+ Follow
since Oct 20, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by g Peshone

well, I guess I need to do some extra reading.
Thanks much.
11 years ago
I put it in seperate file and it works. I did not touch the class file at all but I do get now the initial top error!?
11 years ago
It works in IPython as well but not in Spyder.

11 years ago
Yes, it is working now. Wonder why they changed the syntax?
11 years ago
I am sorry Chris but it is not working!

it is complaining about attribute !? what ever that means?
11 years ago
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.
11 years ago
Python 2.7.3 (default, Aug 1 2012, 05:14:39)
IPython 0.12.1 -- An enhanced Interactive Python


Python 3.2.3 (default, Sep 10 2012, 18:14:40)
[GCC 4.6.3] on linux2

I guess you know better why it is not working here. I just do not get the space here.
11 years ago

Any suggestions why it's flagging?
11 years ago

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.
11 years ago
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.
11 years ago
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.)
11 years ago
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!
11 years ago
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.
jrebel, I do not see the link there. Are we connected at the moment? That was a quick reply but I do not think it is the link to my Q.
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.