[Tutor] Python referrence

2007-02-09 Thread johnf
Hi, In the Visual Fox Pro world there is a help file that allows look ups / searchs for functions, etc... just plain reference infomation. I.e. if I were interested in the MAX() function I would just type Max() and get a page that contained a description of how to use MAX() and what it returned

Re: [Tutor] Converting \x0e to string 0e in python

2007-02-09 Thread Sudarshana KS
Thanks for your reply. The following is the error message : a '\x00\x01\xa20\x82\x01\x9e0\x82\x01(\x02\x01\x000\r\x06\t*\x86H\x86\xf7\r\x01\x01\x04\x05\x000:1\x120\x10\x06\x03U\x04\x03\x13\tConst2- 2.1$0\n\x06\x03U\x04\x05\x13\x0339B0\x16\x06\t*\x86H\x86\xf7\r\x01\t\x02\x16\tConst2-2.0\x1e\x17

Re: [Tutor] Python referrence

2007-02-09 Thread Rikard Bosnjakovic
On 2/9/07, johnf <[EMAIL PROTECTED]> wrote: > Is there a Python tool/document that is similar? Just a simple way to help > understand. Yes, use the __doc__ property. >>> print list.__doc__ list() -> new list list(sequence) -> new list initialized from sequence's items >>> import os.path >>> pri

Re: [Tutor] Python referrence

2007-02-09 Thread Christopher Arndt
Rikard Bosnjakovic schrieb: > On 2/9/07, johnf <[EMAIL PROTECTED]> wrote: > >> Is there a Python tool/document that is similar? Just a simple way to help >> understand. > > Yes, use the __doc__ property. Which is made a lot easier by using the 'help' function in the interactive interpreter: >>

Re: [Tutor] Python referrence

2007-02-09 Thread johnf
On Friday 09 February 2007 10:56, Christopher Arndt wrote: > Rikard Bosnjakovic schrieb: > > On 2/9/07, johnf <[EMAIL PROTECTED]> wrote: > >> Is there a Python tool/document that is similar? Just a simple way to > >> help understand. > > > > Yes, use the __doc__ property. > > Which is made a lot e

[Tutor] Generating pdf files in epydoc on Windows

2007-02-09 Thread Don Taylor
Does anyone know what is needed to install to get epydoc to generate pdf files on Windows. Besides epydoc itself of course. Thanks, Don. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Python referrence

2007-02-09 Thread Kent Johnson
johnf wrote: > Hi, > In the Visual Fox Pro world there is a help file that allows look ups / > searchs for functions, etc... just plain reference infomation. I.e. if I > were interested in the MAX() function I would just type Max() and get a page > that contained a description of how to use MAX

Re: [Tutor] Python referrence

2007-02-09 Thread Tim Johnson
On Friday 09 February 2007 04:15 pm, johnf wrote: > Is there a Python tool/document that is similar? Just a simple way to help > understand. I make use of /usr/local/lib/python2.5/pydoc.py (your path may be different, depending on OS and version) On linux, I invoke it as a "server" as p

Re: [Tutor] Python referrence

2007-02-09 Thread Bob Gailer
johnf wrote: > Hi, > In the Visual Fox Pro world there is a help file that allows look ups / > searchs for functions, etc... just plain reference infomation. I.e. if I > were interested in the MAX() function I would just type Max() and get a page > that contained a description of how to use MAX

Re: [Tutor] question about importing threads

2007-02-09 Thread shawn bright
ok, i have started doing this with my 4000 + line file. So far its been working out. i have another question about it. i have two classes in my program that use a global object that is a socket connection. example: global my_sockobj serverhost = 'mehost.com' serverport = 9100 my_sockobj = socke

[Tutor] A complete, functioning small web app: code for review

2007-02-09 Thread Gabriel Farrell
Greetings, I've written the attached simple web app. It serves as a more pleasant user interface to a file located on our journal proxy server. It relies on the Paramiko library for sftp and Mako for templating. Basic file functions are as follows: * ule: The user starts here. A page is produc

Re: [Tutor] question about importing threads

2007-02-09 Thread ALAN GAULD
> i have two classes in my program that use a global object > that is a socket connection. > ... code snipped > is there something tricky about passing this as a global object to > different modules that would need to use it? Whiler its possible to use a global in this way its usually better to

[Tutor] Identity operator (basic types)

2007-02-09 Thread Cecilia Alm
Why does the identity operator return "True" in the below cases, that is when assigning the same value to basic variable types (float, integer, string, bool..)? Are these rcopied by reference (shallow)? If so why? i = 10 j = 10 i is j True a = 10 b = a a is b True Thanks!

Re: [Tutor] Identity operator (basic types)

2007-02-09 Thread Christopher Lucas
On Feb 9, 2007, at 10:34 PM, Cecilia Alm wrote: > Why does the identity operator return "True" in the below cases, > that is when assigning the same value to basic variable types > (float, integer, string, bool..)? Are these rcopied by reference > (shallow)? If so why? > > >>> i = 10 > >>>

Re: [Tutor] Identity operator (basic types)

2007-02-09 Thread John Fouhy
On 10/02/07, Cecilia Alm <[EMAIL PROTECTED]> wrote: > Why does the identity operator return "True" in the below cases, that is > when assigning the same value to basic variable types (float, integer, > string, bool..)? Are these rcopied by reference (shallow)? If so why? > > >>> i = 10 > >>> j =

Re: [Tutor] Identity operator (basic types)

2007-02-09 Thread Daniel Yoo
>> Why does the identity operator return "True" in the below cases, >> that is when assigning the same value to basic variable types >> (float, integer, string, bool..)? Are these rcopied by reference >> (shallow)? If so why? >> > i = 10 > j = 10 > i is j >> True The above you have