Andy == Andy [EMAIL PROTECTED] writes:
if keyword.iskeyword(tempwords):
print tempwords
for word in tempwords:
if keyword.iskeyword(word):
print word
Ganesan
--
Ganesan Rajagopal
--
http://mail.python.org/mailman/listinfo/python-list
variables
only, or also to global variables and object attributes.
None of the above links talk about variable declarations but object
attributes are considered.
Ganesan
--
Ganesan Rajagopal
--
http://mail.python.org/mailman/listinfo/python-list
.
Ganesan
--
Ganesan Rajagopal
--
http://mail.python.org/mailman/listinfo/python-list
(base64.encodestring(text))
print base64.decodestring(open('sambleb.conf', 'r').read())
Ganesan
--
Ganesan Rajagopal
--
http://mail.python.org/mailman/listinfo/python-list
with messing around with some config
settings, it's good enough. If the user can figure out that
it's base64 encoded and takes pains to decode, modify, encode
and save it back, then he's earned the right to mess around
;-).
Ganesan
--
Ganesan Rajagopal
--
http://mail.python.org/mailman/listinfo/python
numpy.random
module 'numpy.random' from
'/usr/lib/python2.4/site-packages/numpy/random/__init__.pyc'
===
Ganesan
--
Ganesan Rajagopal
--
http://mail.python.org/mailman/listinfo/python-list
at upper 1GB).
382 * 8 = 3056MB.
Basically, you're running out of address space. I don't know if you have any
control at python level. In C you can call pthread_attr_setstacksize().
Ganesan
--
Ganesan Rajagopal
--
http://mail.python.org/mailman/listinfo/python-list
.
Ganesan
--
Ganesan Rajagopal
--
http://mail.python.org/mailman/listinfo/python-list
.
Ganesan
--
Ganesan Rajagopal
--
http://mail.python.org/mailman/listinfo/python-list
http://forum.nokia.com/python
--
Ganesan Rajagopal
--
http://mail.python.org/mailman/listinfo/python-list
binary is linking to a shared python library.
Ganesan
--
Ganesan Rajagopal
--
http://mail.python.org/mailman/listinfo/python-list
to worry about scalability when writing out :-). Have you considered
the fileinput module?
Ganesan
--
Ganesan Rajagopal
--
http://mail.python.org/mailman/listinfo/python-list
)
Note that pam_conv is a structure. Passing a string 'PAM_PROMPT_ECHO_ON' and
not passing a pointer for getting the pam_handle_t are both candidates to
cause a crash.
Ganesan
--
Ganesan Rajagopal
--
http://mail.python.org/mailman/listinfo/python-list
I am a little surprised that hash(hash(s)) == hash(s), is that actually
true?
hash(42)
42
Ganesan
--
Ganesan Rajagopal
--
http://mail.python.org/mailman/listinfo/python-list
Helmut Jarausch [EMAIL PROTECTED] writes:
Using sys.exit(0) produces an error message which looks dangerous to an
uninitiated user.
What message? Your program should exit silently when you call sys.exit(0).
Ganesan
--
Ganesan Rajagopal
--
http://mail.python.org/mailman/listinfo/python
= '/usr/bin/rsync config [EMAIL PROTECTED]:/tmp/.'
#cmd = 'ssh [EMAIL PROTECTED]'
child = pexpect.spawn(cmd)
Add child.logfile = sys.stdout here and check what's going on.
Ganesan
--
Ganesan Rajagopal
--
http://mail.python.org/mailman/listinfo/python-list
.
Ganesan
--
Ganesan Rajagopal
--
http://mail.python.org/mailman/listinfo/python-list
don't need the second pattern, the first pattern will catch the second
case also. You also need to break when i == 2 or i == 3.
Ganesan
--
Ganesan Rajagopal
--
http://mail.python.org/mailman/listinfo/python-list
sinan nalkaya [EMAIL PROTECTED] writes:
i want to use rsync for remote file transfer via popen, but couldnt pass
the Password yet.
For interactive input try the pexpect module instead of popen (see
http://pexpect.sf.net).
Ganesan
--
Ganesan Rajagopal
--
http://mail.python.org/mailman
.
Ganesan
--
Ganesan Rajagopal
--
http://mail.python.org/mailman/listinfo/python-list
it all into memory in a single string is not a good idea.
The python zipfile module is obviously broken...
Indeed. I am surprised that there is no API that returns a file object.
Ganesan
--
Ganesan Rajagopal
--
http://mail.python.org/mailman/listinfo/python-list
.
Ganesan
--
Ganesan Rajagopal (rganesan at debian.org) | GPG Key: 1024D/5D8C12EA
Web: http://employees.org/~rganesan| http://rganesan.blogspot.com
--
http://mail.python.org/mailman/listinfo/python-list
Liyana Robert [EMAIL PROTECTED] writes:
Pls help me to know About undisclosed recipient.
How we can sent mails to other like this.
Use Bcc header instead of To or Cc.
Ganesan
--
Ganesan Rajagopal
--
http://mail.python.org/mailman/listinfo/python-list
) implementation in the C
library. However, it doesn't support many of the extensions that Python
regexes support. Try http://www.pcre.org/. There are pre-build binaries for
Windows also.
Ganesan
--
Ganesan Rajagopal (rganesan at debian.org) | GPG Key: 1024D/5D8C12EA
Web: http://employees.org
alternatives:
1. Compile the python packages manually.
2. Debian already has python 2.4. Install python2.4 using synaptic. Also
install any required python2.4-* packages. You will need a symlink to
make sure you get python2.4 by default.
Ganesan
Ganesan
--
Ganesan Rajagopal (rganesan
--
Ganesan Rajagopal (rganesan at debian.org) | GPG Key: 1024D/5D8C12EA
Web: http://employees.org/~rganesan| http://rganesan.blogspot.com
--
http://mail.python.org/mailman/listinfo/python-list
mike klaas [EMAIL PROTECTED] writes:
Thanks guys, that is probably the most ridiculous mistake I've made in
years g
I was taken too :-). This is quite embarassing, considering that I remember
reading a big thread in python devel list about this a while back!
Ganesan
--
Ganesan Rajagopal
= eval(u'%s' % (unicodeStrFromNetwork,))
Ganesan
--
Ganesan Rajagopal (rganesan at debian.org) | GPG Key: 1024D/5D8C12EA
Web: http://employees.org/~rganesan| http://rganesan.blogspot.com
--
http://mail.python.org/mailman/listinfo/python-list
Fredrik == Fredrik Lundh [EMAIL PROTECTED] writes:
Ganesan Rajagopal wrote:
unicodeStrFromNetwork = '\u5927'
unicodeStrNative = _unicodeRe(unisub, unicodeStrFromNetwork)
How about unicodeStrNative = eval(u'%s' % (unicodeStrFromNetwork,))
unicodeStrFromNetwork = ' + str(__import__('os
/j2se/1.4.2/docs/api/java/util/SortedMap.html
C++ STL map container is also a Sorted Associative container. See
http://www.sgi.com/tech/stl/Map.html Ganesan
--
Ganesan Rajagopal (rganesan at debian.org) | GPG Key:
1024D/5D8C12EA Web: http://employees.org/~rganesan|
http
Alex Martelli [EMAIL PROTECTED] writes: Ordered
*by order of key insertion*: Java, PHP Ordered *by other
criteria*: LISP, C++ Java supports both ordered by key insertion
(LinkedHashMap) as well as ordered by key comparison (TreeMap).
Ganesan
--
Ganesan Rajagopal (rganesan
commands as teh
new user? In any case, take a look at pexpect
(http://pexpect.sourceforge.net) and see if it fits your purpose.
Ganesan
--
Ganesan Rajagopal (rganesan at debian.org) | GPG Key: 1024D/5D8C12EA
Web: http://employees.org/~rganesan| http://rganesan.blogspot.com
--
http
python would soon get a byte array type. For now I find numarray to
be very convenient to do stuff like this.
import numarray
b = (numarray.array(a, type = 'u1') ^ 255).tostring()
It's also significantly faster for large byte array sizes.
Ganesan
--
Ganesan Rajagopal (rganesan at debian.org
would personally stick with SQLite.
Ganesan
--
Ganesan Rajagopal (rganesan at debian.org) | GPG Key: 1024D/5D8C12EA
Web: http://employees.org/~rganesan| http://rganesan.blogspot.com
--
http://mail.python.org/mailman/listinfo/python-list
billie == billie [EMAIL PROTECTED] writes:
Piet van Oostrum wrote:
I think you need something like pyexpect for this.
PyExpect seems to be no more mantained.
Try pexpect instead. http://pexpect.sourceforce.net/
Ganesan
--
Ganesan Rajagopal (rganesan at debian.org) | GPG Key: 1024D
.
Ganesan
--
Ganesan Rajagopal (rganesan at debian.org) | GPG Key: 1024D/5D8C12EA
Web: http://employees.org/~rganesan| http://rganesan.blogspot.com
--
http://mail.python.org/mailman/listinfo/python-list
--
Ganesan Rajagopal (rganesan at debian.org) | GPG Key: 1024D/5D8C12EA
Web: http://employees.org/~rganesan| http://rganesan.blogspot.com
--
http://mail.python.org/mailman/listinfo/python-list
effectively want to detach from it.
How about just calling close(), i.e. without wait=1? No need to spawn a new
thread.
Ganesan
--
Ganesan Rajagopal (rganesan at debian.org) | GPG Key: 1024D/5D8C12EA
Web: http://employees.org/~rganesan| http://rganesan.blogspot.com
--
http
I am stuck on level 3. I've tried every re that I can think of. Some body
give me a clue.
Ganesan
--
Ganesan Rajagopal
--
http://mail.python.org/mailman/listinfo/python-list
darren == darren kirby [EMAIL PROTECTED] writes:
quoth the Ganesan Rajagopal:
I am stuck on level 3. I've tried every re that I can think of. Some body
give me a clue.
Ganesan
--
Ganesan Rajagopal
t = /text of page source.../
re.findall('[a-z][A-Z]{3}[a-z]{1}[A-Z]{3}[a-z]', t)
You
40 matches
Mail list logo