A play about the Indian IT industry

2012-03-26 Thread Sathyaish
My name is Sathyaish. I am a software engineer. Last year, i.e. in 2011, I wanted to do some theater. No one took me, so I announced that I would start my own group. I wrote a script. Then, I wrote a screen play from that. Now, I am almost ready to begin the auditions. The play will be a comedy

Re: in-place string reversal

2006-03-28 Thread Sathyaish
>But what's got that to do with it? Strings are very mutable in C. I realized after posting that I'd said something incorrect again. The concept of "mutability" itself is a high-level concept compared to C. Memory allocation for strings is expensive because of the way malloc() works to find a "bes

Re: in-place string reversal

2006-03-28 Thread Sathyaish
And that the "extra-memory" operation I've given above is expensive, I believe. Is there an efficient way to do it? -- http://mail.python.org/mailman/listinfo/python-list

in-place string reversal

2006-03-28 Thread Sathyaish
How would you reverse a string "in place" in python? I am seeing that there are a lot of operations around higher level data structures and less emphasis on primitive data. I am a little lost and can't find my way through seeing a rev() or a reverse() or a strRev() function around a string object.

Re: Chained Comparisons

2006-03-20 Thread Sathyaish
Thanks for the encouragement, Steve. I am learning Python out of earnest; I am intrigued by several languages such as Ruby, Python and Lisp. At work, I program VB6 (used to), VB.NET, C# and C over the Win32 platform. > that Sathyaish's time is more important than your time, of course. LOL. Cer

Re: ** Operator

2006-03-20 Thread Sathyaish
Thanks very much for helping out, Christopher. -- http://mail.python.org/mailman/listinfo/python-list

Re: Chained Comparisons

2006-03-20 Thread Sathyaish
Thanks, Peter. I do use the interpreter alongside while reading the documentation and also try out the examples. It was just a matter of chance that for this particular situation, I did not. Thank you for the answers, everyone. I hope I am still welcome here for more questions. -- http://mail.py

Re: Chained Comparisons

2006-03-20 Thread Sathyaish
OK, I get it. Just stop whining endlessly about it, guys. I *do* use the interpreter. I posted a question here. Sorry, I committed a sin. -- http://mail.python.org/mailman/listinfo/python-list

Re: Chained Comparisons

2006-03-20 Thread Sathyaish
>And firing up a news client, posting a message, and /waiting/ for a response isn't? In most cases, you could have read half the language reference manual in the time it takes to get an online response. No, it isn't because you continue reading the same stuff and you have the stuff open in another

Re: Chained Comparisons

2006-03-20 Thread Sathyaish
John, I did "guess" but I wasn't quite sure and so I asked. OK, I did not perform a search on the docs, but that was because: 1) It is easier to learn through an interactive medium like a forum; and 2) A search in the same document you are reading takes you "off" and "adrift", and as such, is eq

Re: ** Operator

2006-03-19 Thread Sathyaish
Thanks, Alex. -- http://mail.python.org/mailman/listinfo/python-list

Re: ** Operator

2006-03-19 Thread Sathyaish
Thanks, Alex. -- http://mail.python.org/mailman/listinfo/python-list

Chained Comparisons

2006-03-19 Thread Sathyaish
I) What does the following expression evaluate to? a < b == c 1) (a < b) and (b == c) 2) (a < b) or (b == c) II) How many operands can be chained for comparison in a single expression? For e.g, is the under-stated expression a valid comparison chain? a < b == c > d -- http://mail.python.org/

Re: ** Operator

2006-03-19 Thread Sathyaish
I tried it on the interpreter and it looks like it is the "to the power of" operator symbol/function. Can you please point me to the formal definition of this operator in the docs? -- http://mail.python.org/mailman/listinfo/python-list

** Operator

2006-03-19 Thread Sathyaish
In the example below from the python docs (http://docs.python.org/tut/node7.html#SECTION00714), I am not able to understand the ** operator in the following expression: >>> [(x, x**2) for x in vec] I understand the list comprehension as a whole but have forgotten the ** operator's

Re: Environmental Variables

2006-03-13 Thread Sathyaish
I recall now, the shells in Unix - a child inherited the variables declared in its parent but not vice-versa. It works the same way in DOS. So, I wasn't seeing it clearly earlier. I am seeing it clearly now. I was imagining that the PYTHONPATH had some default value on installation and was expectin

Re: Environmental Variables

2006-03-13 Thread Sathyaish
Thanks for the replies. I am trying to have a startup file execute everytime I launch the interpreter. So, for a test, I wrote a small file I called "Sathyaish.py". The contents of the file were simply: # ! This is my new start-up file. print "Sathyaish is the best." Then

Environmental Variables

2006-03-13 Thread Sathyaish
In which physical file are the python environmental variables located? I know I can access them using the: os.environ.get('PYTHONSTARTUP') or os.environ.get('PYTHONPATH') to get their values. But out of the program, if I need to look at them and alter their values, where do I find them? Are t

Re: How is wxWindows related to Python?

2005-10-01 Thread Sathyaish
Thanks, guys. -- http://mail.python.org/mailman/listinfo/python-list

How is wxWindows related to Python?

2005-10-01 Thread Sathyaish
My question will sound daft to the good old craftsmen, but they will excuse my nescience on the subject. I come new to the Pythonic world from the land of .NET languages, VB6 and some familiarity in C and C++. I just read about wxWindows last night. From my understanding, it is a GUI framework lik