From: Frank V. <Fra...@sy...> - 2001-12-11 00:04:31
|
vim (Improved Vi editor) which is on RedHat and probably most other Linux, also is python-sensitive. It does pretty colours and stuff, so for all you vi loyalists, there's no need to go over to the Dark Side. :) phx. > -----Original Message----- > From: DeLano, Warren [mailto:wa...@su...] > Sent: Monday, December 10, 2001 9:13 AM > To: David J. Schuller > Cc: pym...@li... > Subject: [PyMOL] Learning Python for PyMOL >=20 >=20 >=20 > David Schuller asked about the best books for learning Python. There > are two key resources: >=20 > (1) Guido's online tutorial is a good starting point for learning the > language. >=20 > http://www.python.org/doc/current/tut/tut.html >=20 > and (2) "Python Essential Reference" by David M. Beazley, (New Riders) > is a must-have reference for writing Python code. >=20 > These tare what got me going a couple years back along with the other > documentation files on the Python web site.=20 > http://www.python.org/doc/current/ >=20 > NOTE: In order to write Python effectively, you need an editor which > supports its indentation scheme. The top choices are (1)=20 > emacs running > python-mode, or (2) IDLE, the editor included with most Python > distributions. =20 >=20 > Writing Python without a Python-aware editor is a thankless=20 > task due to > Python's sensitive block structures which would be a chore to=20 > maintain. > I recommend that you use spaces instead of tabs to indent=20 > Python code -- > PyMOL's convention is 3 spaces per block. >=20 > The relavent portions of my .emacs file are included below in case > anyone is interested. I think most modern Linux=20 > distrubutions include a > python mode in emacs by default. >=20 > For simple tasks, the PyMOL command language (.pml files) is=20 > easier than > Python because you can ignore the identation issue. However,=20 > .pml files > are suited for real programming. >=20 > Cheers, > Warren >=20 > -- BEGIN .emacs excerpt >=20 > (setq-default visible-bell t) > (setq-default backup-inhibited t) > (setq-default auto-save-default nil) >=20 > (global-set-key "\C-c\C-w" 'goto-line) >=20 > (setq-default tab-stop-list '(3 6 9 12 15 18 21 24 27 30 33=20 > 36 39 42) ) >=20 > (setq-default tab-width 3) > (setq-default py-indent-offset 3) > (setq-default indent-tabs-mode nil) >=20 > (setq auto-save-default nil) > (setq auto-save nil) > (setq load-path (cons "/usr/share/emacs/site-lisp/" load-path)) > (autoload 'python-mode "python-mode" "Python editing mode." t) > (setq auto-mode-alist > (cons '("\\.py$" . python-mode) auto-mode-alist)) > (setq auto-mode-alist > (cons '("\\.pym$" . python-mode) auto-mode-alist)) > (setq interpreter-mode-alist > (cons '("python" . python-mode) interpreter-mode-alist)) > (global-font-lock-mode) >=20 > -- END .emacs excerpt >=20 > -- > mailto:wa...@su... > Warren L. DeLano, Ph.D. > Informatics Manager > Sunesis Pharmaceuticals, Inc. > 341 Oyster Point Blvd. > S. San Francisco, CA 94080 > (650)-266-3606 fax: (650)-266-3501 >=20 >=20 >=20 > > -----Original Message----- > > From: DeLano, Warren=20 > > Sent: Monday, December 10, 2001 7:40 AM > > To: Glen L. Prosise > > Cc: pym...@li... > > Subject: [PyMOL] PyMOL 0.73 Released (Win,Linux) > >=20 > >=20 > >=20 > > Gang, > >=20 > > Last night I posted binaries of PyMOL 0.73 for Windows and=20 > > Linux to the > > downloads page. Read more at http://www.pymol.org > >=20 > > This is the first version to support fragment and residue-based > > molecular building. However, you may find the process=20 > > challenging with > > the current rudimentary interface. =20 > >=20 > > Cheers, > > Warren > >=20 > >=20 > >=20 > > _______________________________________________ > > PyMOL-users mailing list > > PyM...@li... > > https://lists.sourceforge.net/lists/listinfo/pymol-users > >=20 >=20 > _______________________________________________ > PyMOL-users mailing list > PyM...@li... > https://lists.sourceforge.net/lists/listinfo/pymol-users >=20 |