Re: [Tutor] Starting over with Python

2006-12-13 Thread Luke Paireepinart
John Carmona wrote: > After quite a while away from Python, I have decided to re-study Python. I > am interested to learn Python to support my love for Cryptography. I have a > first very easy question (did some search on Google but could not find > anything helpful). I realise that this is very

Re: [Tutor] Starting over with Python

2006-12-13 Thread Andreas Kostyrka
* John Carmona <[EMAIL PROTECTED]> [061214 02:21]: > After quite a while away from Python, I have decided to re-study Python. I > am interested to learn Python to support my love for Cryptography. I have a > first very easy question (did some search on Google but could not find > anything helpfu

Re: [Tutor] Starting over with Python

2006-12-13 Thread wesley chun
> odd =1 > >>>while odd <=100: > if (odd%2)==1: > print odd > odd = odd + 1 > - > I get a list of the odd numbers from 1 to 99. But now if I wanted to add > those number t

Re: [Tutor] Accessing the name of a Function

2006-12-13 Thread Carroll, Barry
> -Original Message- > From: Kent Johnson [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 13, 2006 3:42 PM > To: Carroll, Barry > Cc: tutor@python.org > Subject: Re: [Tutor] Accessing the name of a Function > <> > > You could also do this very simply and cleanly with a decorator, >

Re: [Tutor] Starting over with Python

2006-12-13 Thread R. Alan Monroe
> odd =1 while odd <=100: > if (odd%2)==1: > print odd > odd = odd + 1 > - > I get a list of the odd numbers from 1 to 99. But now if I wanted to add > those number t

Re: [Tutor] Implementing a MUD engine from scratch

2006-12-13 Thread Kent Johnson
Christer Enfors wrote: > Now on to my actual questions: > > 1) I want to be able to update parts of the code (the game content) > while the MUD (the engine) is running. Errors in the game shouldn't stop > the entire MUD - I guess I should use exceptions for this? Any pointers > as to where I sh

[Tutor] Starting over with Python

2006-12-13 Thread John Carmona
After quite a while away from Python, I have decided to re-study Python. I am interested to learn Python to support my love for Cryptography. I have a first very easy question (did some search on Google but could not find anything helpful). I realise that this is very basic so be gentle with me.

Re: [Tutor] [python-win32] Python as scripting glue, WAS Python for sysadmin

2006-12-13 Thread Alan Gauld
"Peter Jessop" <[EMAIL PROTECTED]> wrote >I am a windows system administrator and started learning > python (as an alternative to VBScript) for the following reasons. > > 1) VBScript has serious limitations as a language > 2) Needed access to TCP/IP protocols > 3) Ability to to write scripts wit

Re: [Tutor] Accessing the name of a Function

2006-12-13 Thread Kent Johnson
Carroll, Barry wrote: > Greetings: > > Andreas and Kent helped me solve my problem. We are writing a keyword > driven framework for embedded SW testing. The framework supports scores > of keywords, built-in and user-defined. We are still writing the > framework, so none of the functions for man

Re: [Tutor] [python-win32] Python as scripting glue, WAS Python for sysadmin

2006-12-13 Thread Peter Jessop
I am a windows system administrator and started learning python (as an alternative to VBScript) for the following reasons. 1) VBScript has serious limitations as a language 2) Needed access to TCP/IP protocols 3) Ability to to write scripts with GUI. 4) Portability Windows system administrators

Re: [Tutor] Accessing the name of a Function

2006-12-13 Thread Carroll, Barry
Greetings: Andreas and Kent helped me solve my problem. We are writing a keyword driven framework for embedded SW testing. The framework supports scores of keywords, built-in and user-defined. We are still writing the framework, so none of the functions for manipulating the target device has be

Re: [Tutor] Confusing Unicode Conversion Problem.

2006-12-13 Thread Chris Hengge
You fixed it! Kudos and a cookie! (Name Brand even!) Thanks a lot, seems to be moving along fine now.. :] On 12/13/06, Tim Golden <[EMAIL PROTECTED]> wrote: [Chris H] > The reason I an forcing each line to string and splitting it is because the > pure numeric values coming from the excel sheet

[Tutor] Confusing Unicode Conversion Problem.

2006-12-13 Thread Tim Golden
[Chris H] > The reason I an forcing each line to string and splitting it is because the > pure numeric values coming from the excel sheet all come in a decimal, and > have an appended .0 at the end. Ah! You're using str to convert a number to a string. I see. And you're relying on the fact that

Re: [Tutor] Applications

2006-12-13 Thread Chris Calloway
Archana Maheshwari wrote: > tell me about the applications of python programming in mapping field. Python is now the primary scripting language for ESRI products: http://www.esri.com/news/arcuser/0405/files/python.pdf Python wraps GDAL: http://www.gdal.org/gdal_tutorial.html and OGR: http://

Re: [Tutor] Confusing Unicode Conversion Problem.

2006-12-13 Thread Chris Hengge
Thanks for the detailed reply. The reason I an forcing each line to string and splitting it is because the pure numeric values coming from the excel sheet all come in a decimal, and have an appended .0 at the end. So 123456 in Excel is becoming 123456.0 when using the loop to extract it. I was to

Re: [Tutor] Applications

2006-12-13 Thread Kent Johnson
Archana Maheshwari wrote: > tell me about the applications of python programming in mapping field. What kind of mapping do you have in mind? Googling "python mapping" finds this: http://infohost.nmt.edu/tcc/help/lang/python/mapping.html Depending on what kind of mapping you mean, googling "pytho

Re: [Tutor] Applications

2006-12-13 Thread Alan Gauld
"Archana Maheshwari" <[EMAIL PROTECTED]> wrote > tell me about the applications of python programming in mapping > field. > Tell us about the mapping field. I sounds fairly specialised. Do you have any specific software systems requirements? Do you use software systems at the moment? What makes

[Tutor] Implementing a MUD engine from scratch

2006-12-13 Thread Christer Enfors
I'm new to Python, but I've been programming other languages for over 15 years. Now, I've decided that I want to code my own MUD engine from scratch in Python. A MUD is a bit like a MMORPG (like World of Warcraft), only it uses text instead of graphics. A MUD is the graphical MMORPGs what books

[Tutor] Applications

2006-12-13 Thread Archana Maheshwari
tell me about the applications of python programming in mapping field. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Accessing the name of a Function

2006-12-13 Thread Kent Johnson
Carroll, Barry wrote: > Andreas: > > You're right, that is kind of messy and somewhat limited. In the > present case, however, it is the function's defined name that I want, so > this would work okay. > > I'm guessing that there is a way to determine the number and names of > the arguments to

Re: [Tutor] Confusing Unicode Conversion Problem.

2006-12-13 Thread Tim Golden
[Chris Hengge] | 'ascii' codec can't encode character u'\xa0' in position 11: | ordinal not in range(128) | Error with: FRAMEMRISER of type: | Excel Row : 6355 OK. Let's get to the basics first: import unicodedata print unicodedata.name (u'\xa0') # outputs: NO-BREAK SPACE So somewhere (ma

Re: [Tutor] User identification and running in the background.

2006-12-13 Thread Wesley Brooks
Cheers, I'll consider that. So the client would effectively hand shake with the lower level program and be supplied with a list of permissions which the user has access to. You mentioned about many systems being multi-user. When the client attempts to connect to the lower machine is it a trivial i

Re: [Tutor] User identification and running in the background.

2006-12-13 Thread Tor Hildrum
On 12/12/06, Tim Golden <[EMAIL PROTECTED]> wrote: > But this is all quite Win32-specific (as well as > being hand-wavingly unspecific). I don't know > how you'd go about it on *nix but I bet it's nothing > like the same. The same general principle applies. You need to get a UID or similar from a

Re: [Tutor] User identification and running in the background.

2006-12-13 Thread Wesley Brooks
Cheers for the reply, I had feared as such! I didn't want to have to code two different apps (windows or linux), or at best have large block of code around a few cases base on the result of sys.platform. The system is based on Windows at the moment, but I would of liked to have produced a version

Re: [Tutor] Organizing 15500 records, how?

2006-12-13 Thread Alan Gauld
"Thomas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm writing a program to analyse the profiles of the 15500 users > though about creating say 10 files to start off with that contained > dictionaries of userid to field value. That way I'm dealing with 10 > to > 50 files inst

[Tutor] Organizing 15500 records, how?

2006-12-13 Thread Peter Jessop
With more than 15000 records you would be better off using a relational database. Although it will create more work to start with (you'll have to learn it), it will save you a lot of work in the medium and long term. Almost any relational database can be accessed from python.As it is just for you