473,320 Members | 1,900 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Well, Python is hard to learn...

wen
due to the work reason, i have to learn python since last month. i have
spent 1 week on learning python tutorial and felt good. but i still don't
understand most part of sourcecode of PYMOL(http://pymol.sourceforge.net/)
as before.

it sucks.

anybody do the same thing as i am doing? i wanna seek a buddy to disscuss it
together.
Sep 1 '05 #1
8 3644
I don't know about you but I would not learn ANY decent programming
language for a week and expect to know the idioms enough to understand
the source of a large software written in it.

Sep 1 '05 #2
Well, I reckon it all depends on how much experience you have with
programming languages in general. If you're completely new to
programming it's probably going to take a while to get to grips with it
all, regardless of which language you're picking up, although I'd wager
that Python is still one of the most intuitive and easiest to learn
languages around. Personally I learnt to code in C++ Python, and Perl
with a little bit of Java, Tcl and C# thrown in there as well and I
like Python and C++ the most.
Just be patient, mate, you'll get the hang of it before long.

Sep 1 '05 #3
wen wrote:
due to the work reason, i have to learn python since last month. i have
spent 1 week on learning python tutorial and felt good. but i still don't
understand most part of sourcecode of PYMOL(http://pymol.sourceforge.net/)
as before.

it sucks.


No, please, don't say that. It is _not_ Python's fault.

PyMol is a _large_ and _complex_ piece of software. I would be happy to
understand a _very small_ part of its source code after having studied
Python for just a week or so.

Python is one of the easiest programming language around but it cannot make
simple a complex task like molecular design or molecular dynamic (I'm a
chemist and I can understand your disappointment).

You will have to wait _months_ before being able to understand such a
complex piece of software well enough to be able to play with its source
code. But... do you really need to play with the source code of this
program? Do you really have to tweak its code to fit your needs? Could not
be enough to write some plug-in, some wrapper or some other kind of
"external" program? This would be much easier.

HTH

-----------------------------------
Alessandro Bottoni
Sep 1 '05 #4
wen wrote:
due to the work reason, i have to learn python since last month. i have
spent 1 week on learning python tutorial and felt good. but i still don't
understand most part of sourcecode of PYMOL(http://pymol.sourceforge.net/)
as before.

it sucks.


<joking>
I have spent 1 week on learning reading and felt good. but I still don't
understand most part of Emmanuel Kant's writings.
</joking>

Wen, please don't take it bad !-)

What I mean is that something inherently complex will be difficult to
understand whatever the language. And I guess that something like PyMOL
would be *much more* difficult to understand if it was implemented in C++.
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'o****@xiludom.gro'.split('@')])"
Sep 1 '05 #5
bruno wrote:
<joking>
I have spent 1 week on learning reading and felt good. but I still don't
understand most part of Emmanuel Kant's writings.
</joking>


Monty Python really missed out there: cut to a sketch featuring three
year olds discussing Kant. ;-)

Paul

Sep 1 '05 #6
wen wrote:
due to the work reason, i have to learn python since last month. i have
spent 1 week on learning python tutorial and felt good. but i still don't
understand most part of sourcecode of PYMOL(http://pymol.sourceforge.net/)
as before.


Well, last time I checked, a good chunk of PyMol was written in C.
Knowing Python may help you to learn C, but I doubt that one week is
going to be sufficient.

But I agree that Python is deceptive. It's so easy to learn and use, you
can easily convince yourself you're a better programmer than you
actually are.
Sep 1 '05 #7
In article <11*********************@z14g2000cwz.googlegroups. com>,
Paul Boddie <pa**@boddie.org.uk> wrote:
bruno wrote:
<joking>
I have spent 1 week on learning reading and felt good. but I still don't
understand most part of Emmanuel Kant's writings.
</joking>


Monty Python really missed out there: cut to a sketch featuring three
year olds discussing Kant. ;-)

Paul


"It's not fair! I told Mommy about the immanent
pragmatics of taking my sister's blankie, and she
*still* said I had to take a nap!"
Sep 1 '05 #8
wen wrote:
due to the work reason, i have to learn python since last month. i have
spent 1 week on learning python tutorial and felt good. but i still don't
understand most part of sourcecode of PYMOL(http://pymol.sourceforge.net/)
as before.


Maybe you (or someone else) is making a mistake if you are trying
to understand PyMol in this stage of learning. I haven't used
PyMol, but I really doubt that you need to understand its source
code unless your aiming to maintain that code.

If you approached it as a learning exercise, you aimed way too high.

If you approached it because you need to use PyMol, trying to understand
its source code is probably the wrong approach.

You don't need to learn all the details of how a car works to drive it.
You don't even have to understand how the engine is designed to change
wheels or fix rust holes.

I'm aware that you use Python to perform advanced operations in PyMol,
but you don't need to understand PyMol's internals for that.
Sep 2 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

33
by: Joe Cheng | last post by:
I'm curious about something... many Artima.com members who have a Java background and learned Python have come to the conclusion that Java and Python are highly complimentary languages. They would...
226
by: Stephen C. Waterbury | last post by:
This seems like it ought to work, according to the description of reduce(), but it doesn't. Is this a bug, or am I missing something? Python 2.3.2 (#1, Oct 20 2003, 01:04:35) on linux2 Type...
24
by: Charif Lakchiri | last post by:
Okay, here's what I know so far about Python: It's an object-oriented scripting language, supported on many platforms. Now here are my questions: It is easy to learn? Does it support GUI...
47
by: Michael Scarlett | last post by:
There is an amazing article by paul graham about python, and an even better discussion about it on slashdot. The reason I point this out, is the more I read both articles, the more I realised how...
16
by: BOOGIEMAN | last post by:
Beginners question, but really what can you do with it ? How hard is Python to learn compared with other languages (let's say C#). Can you make fullscreen game with it (for example) ? I've looked...
2
by: Hal Vaughan | last post by:
I'm self taught and most of what I've been working on for the past several years has been entirely in Perl and Java. I've noticed that I can code about 5 times faster in Perl than Java, in part...
112
by: mystilleef | last post by:
Hello, What is the Pythonic way of implementing getters and setters. I've heard people say the use of accessors is not Pythonic. But why? And what is the alternative? I refrain from using them...
113
by: John Nagle | last post by:
The major complaint I have about Python is that the packages which connect it to other software components all seem to have serious problems. As long as you don't need to talk to anything outside...
33
by: NicolasG | last post by:
Hi, I want to be a professional python programmer, unfortunately I'm working on technical support and don't have the time/patience to start making projects my self. I tried to apply to some...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.