Use of $var in Python code

Bram Moolenaar <[email protected]> Mon, 08 Mar 2004 22:10:56 +0100
Newsgroups gmane.comp.tools.aap.devel
Message-ID <[email protected]>
John Williams implemented support for using $var in Python code.  This
avoids the awkward "_no.var".  For example, you can now use:

	@if $OSTYPE == 'linux':

Instead of:

	@if _no.OSTYPE == 'linux':

A bit of explanation can be found in the tutorial, "6. Using Python" and
in the user manual, "21. Using Python".

I have checked in version 1.059 and the zip archive is available at
http://www.a-a-p.org/files/aap-latest.zip.

Comments are welcome.  Please watch out for Python code where a $ causes
trouble.

-- 
CART DRIVER: Bring out your dead!
   There are legs stick out of windows and doors.  Two MEN are fighting in the
   mud - covered from head to foot in it.  Another MAN is on his hands in
   knees shovelling mud into his mouth.  We just catch sight of a MAN falling
   into a well.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
 \\\  Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click