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
>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
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
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.
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
Thanks very much for helping out, Christopher.
--
http://mail.python.org/mailman/listinfo/python-list
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
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
>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
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
Thanks, Alex.
--
http://mail.python.org/mailman/listinfo/python-list
Thanks, Alex.
--
http://mail.python.org/mailman/listinfo/python-list
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/
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
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
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
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
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
Thanks, guys.
--
http://mail.python.org/mailman/listinfo/python-list
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
20 matches
Mail list logo