[Tutor] [tutor] Pointers in python ??

2008-01-19 Thread Varsha Purohit
Hello All, Does python has concept of pointers like c/cpp ?? If yes how.. can anyone give me a small example to how we can use pointers in python. thanks, -- Varsha Purohit, Graduate Student ___ Tutor maillist - Tutor@python.org http://mail.py

Re: [Tutor] Obssfurcatedpuytthonlessons nneeded

2008-01-19 Thread Tiger12506
>I aam writing some software which calls for some unreadable code in > it to let me secretly set a registration key- it is to be shareware. > > I know this can be done, but have not the foggiest clue of how todo it. > Any links, articles, pointers? This is impossible to do completely, and whil

[Tutor] Obssfurcatedpuytthonlessons nneeded

2008-01-19 Thread Kirk Bailey
I aam writing some software which calls for some unreadable code in it to let me secretly set a registration key- it is to be shareware. I know this can be done, but have not the foggiest clue of how todo it. Any links, articles, pointers? -- Salute! -Kirk Bailey Think

Re: [Tutor] Interview questions in python and wxpython

2008-01-19 Thread Alan Gauld
"Ricardo Aráoz" <[EMAIL PROTECTED]> wrote > Anyway the program is obvious: Not to me :-) > label1 > Move one car's length fwd > If car is next to a parachute Goto label2 > do nothing > goto label1 > > label2 > Move one car's length fwd > goto label2 Very clever, but in the interests of readabi

Re: [Tutor] interview questions

2008-01-19 Thread Varsha Purohit
Thanks for the input. ACtualy i just started programming in python since aug 2007 and i m doing my masters research on it. So i learnt python in quite less amount of time. But otherwise i am good in c and c++. I am giving my first interview in python so i dont know what kind of questions they might

Re: [Tutor] Interview questions in python and wxpython

2008-01-19 Thread bob gailer
Ricardo Aráoz wrote: > > Ok, I'll bite. > First, the instructions make no sense. There is no left and right! In a > railroad there is forward and backwards, and these are relative to the > directions the cars dropped at which I assume will be random. So "move > fwd" has the same meaning as "move bc

Re: [Tutor] Interview questions in python and wxpython

2008-01-19 Thread bob gailer
Jeff Younker wrote: >> Your meta-mission is to propose ideas, state assumptions and ask >> questions. >> > > Is the track infinite in the sense that it resides on an infinite > plane yes > , or is it infinite > in the sense that it is circular, wrapping around the entire planet > and mee

Re: [Tutor] Interview questions in python and wxpython

2008-01-19 Thread Jeff Younker
> Your meta-mission is to propose ideas, state assumptions and ask > questions. Is the track infinite in the sense that it resides on an infinite plane, or is it infinite in the sense that it is circular, wrapping around the entire planet and meeting with itself? -jeff _

Re: [Tutor] Interview questions in python and wxpython

2008-01-19 Thread Ricardo Aráoz
bob gailer wrote: > Varsha Purohit wrote: >> Hello All, >>I have an interview in python program development. Can i know >> some interview questions in python ? If you know any website where i >> can refer that would be helpful. > My first engineering job interview went thus: > > "We need

Re: [Tutor] how to bind a event to a application in tkinter

2008-01-19 Thread Alan Gauld
"brindly sujith" <[EMAIL PROTECTED]> wrote > how to bind a event to a application > > consider i m opening openoffice using > > os.system("openoffice")... > > i want to bind a event on openoffice... Sorry, I'm still not clear what you want to do, can you be more specific? Also which OS? A

Re: [Tutor] Interview questions in python and wxpython

2008-01-19 Thread bob gailer
Varsha Purohit wrote: > Hello All, >I have an interview in python program development. Can i know > some interview questions in python ? If you know any website where i > can refer that would be helpful. My first engineering job interview went thus: "We need someone to help us design ant

[Tutor] how to bind a event to a application in tkinter

2008-01-19 Thread brindly sujith
hi how to bind a event to a application consider i m opening openoffice using os.system("openoffice")... i want to bind a event on openoffice... ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] random.choice function

2008-01-19 Thread Remco Gerlich
Hi, This line: ch = "So good to see you!","How are you?","Everything good today?","Glad you're here!".split(" ") Creates a tuple with 4 elements: 1. "So good to see you!" 2. "How are you?" 3. "Everything good today?" and 4. "Glad you're here!".split(" "), which is equal to ["Glad","you're", "he

Re: [Tutor] random.choice function

2008-01-19 Thread Alan Gauld
"Cecilia Grahn" <[EMAIL PROTECTED]> wrote > I am trying to make a script which returns a random string: > > ch = "So good to see you!","How are you?","Everything good > today?","Glad you're here!".split(" ") To python this line has 4 expressions which Pyhon will assign as a tuple to ch. The firs

[Tutor] random.choice function

2008-01-19 Thread Cecilia Grahn
Hi, this is my first mail and I apologize if I got something wrong =) I am trying to make a script which returns a random string: #hello.py # Get the user's name and print a friendly hello import random, string name = raw_input("Your name please:") ch = "So good to see you!","How are you?","Everyt

Re: [Tutor] interview questions

2008-01-19 Thread Remco Gerlich
Hi. I've interviewed people for a project in which we used Perl. Most of us already on the team hadn't used Perl before that project, but we learned it pretty quickly, so we knew that that was quite possible. Before the interview we would have seen their CV, and decided we wanted to speak to them,

Re: [Tutor] interview questions

2008-01-19 Thread Michael Connors
On 19/01/2008, Varsha Purohit <[EMAIL PROTECTED]> wrote: > > Hello All, >I have an interview in python program development. Can i know some > interview questions in python ? If you know any website where i can refer > that would be helpful. > > thanks, > -- > Varsha Purohit, > Graduate Stud

Re: [Tutor] interview questions

2008-01-19 Thread Alan Gauld
"Varsha Purohit" <[EMAIL PROTECTED]> wrote > I have an interview in python program development. Can i know > some > interview questions in python ? If you know any website where i can > refer > that would be helpful. Interview styles vary enormously but in my experience the language speci