--
Pawel Kraszewski
http://www.kraszewscy.net
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
conversion to/from Python values. This can be used in handling binary data
stored in files or from network connections, among other sources.
-
see http://docs.python.org/lib/module-struct.html
--
Pawel Kraszewski
http://www.kraszewscy.net
)
a.insert(12)
print b
gives [1, 2, 3, 12] which is still wrong. However assigning self.queue a COPY
of parameter (empty or not) gives the desired result:
def __init__(self, q = []):
self.queue = q[:]
--
Pawel Kraszewski
___
Tutor maillist
Dnia piątek, 17 marca 2006 19:22, Bill Campbell napisał:
If you're sure it's a Linux system, fine. Like /etc/mtab, this isn't
portable. Looking at some of the systems we have here:
Fortezza mentioned it the way I assumed he has Linux:
If there a semi-standard way to test if a file system
readable '/proc/mounts' ?
--
Pawel Kraszewski
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
value of lambda function.
--
Pawel Kraszewski
P.S.
This might be pythonized and de-recursived this way:
ff = lambda n: reduce(lambda x, y: x*y, xrange(1,n+1))
-
Spoiler below... Scroll down
Of course, as a last
Dnia środa, 22 lutego 2006 12:43, John Connors napisał:
I know goto and gosub are evil, bad habits but I'm starting to miss them.
You SHOULD miss them. GOSUB is called a function call in Python (you call a
function by its name, rather than by its starting line number)
Someone misinformed
parser.feed
3. abort attempt if it fails, showing the error AND breaking the loop
4. take next loop
Hope this helps,
--
Pawel Kraszewski
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
don't need pure-Python,take a look at gadfly
(http://gadfly.sourceforge.net)
If the data isn't too big, you may even try XML storage with DOM access (PyXML
http://pyxml.sourceforge.net/)
HTH,
--
Pawel Kraszewski
___
Tutor maillist - Tutor@python.org
regards
--
Pawel Kraszewski
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
don't
remember the exact difference between the halves, but you may find it in any
article on FFT.
Best regards,
Pawel Kraszewski
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
/html; charset=ISO-6682
Ehm... Never heard of ISO-6682... Already contacted the author. The page looks
OK, when you force Windows CP 1250.
--
Pawel KraszewskiFreeBSD/Linux
E-Mail/Jabber Phone ICQ GG
[EMAIL PROTECTED]+48 604
12 matches
Mail list logo