split that chunk into lines and now output the last 3
or however many you need.
If the read fails to hold enough lines, seek back a bit further and do
same but you'll have to be prepared to concat the second and Nth last
chunks together.
Have fun
--
--------
and if the file matches one that requires
this XML treatment, do it in real time.
May not be worth the trouble to implement in a low volume system
however.
--
-------
Jerry Sievers 305 854-3001 (home) WWW ECommerc
ls(), locals())
foo()
--
Now all else that we need to make this pretty would be macros, a la
cpp m4 or similar
define(`VARS', `multiDict(locals(), globals())')
print "..." % VARS
You get the idea.
--
---
hough complex they are general purpose and very
useful.
I am trying to avoid having to do the lexer/parser part in C if
possible.
Thanks.
--
---
Jerry Sievers 305 854-3001 (home) WWW ECommerce Consultant
to make it look like done by a stressed out student.
HTH
--
-----------
Jerry Sievers 305 854-3001 (home) WWW ECommerce Consultant
305 321-1144 (mobilehttp://www.JerrySievers.com/
--
http://mail.python.org/mailman/listinfo/python-list
config file?
--
---
Jerry Sievers 305 854-3001 (home) WWW ECommerce Consultant
305 321-1144 (mobilehttp://www.JerrySievers.com/
--
http://mail.python.org/mailman/listinfo/python-list
d I get;
def foo():
HTH
--
-----------
Jerry Sievers 305 854-3001 (home) WWW ECommerce Consultant
305 321-1144 (mobilehttp://www.JerrySievers.com/
--
http://mail.python.org/mailman/listinfo/python-list
from os import listdir
from os.path import isdir
dir = '/tmp/'
onlyDirs = filter(lambda entry: isdir(dir + entry), listdir(dir))
HTH
--
-----------
Jerry Sievers 305 854-3001 (home) WWW ECommerce Consultant
o object of mapping types
Thank you
--
-------
Jerry Sievers 305 854-3001 (home) WWW ECommerce Consultant
305 321-1144 (mobil
on how this is used and/or pointer to more reading is
greatly appreciated.
Thanks
--
---
Jerry Sievers 305 854-3001 (home) WWW ECommerce Consultant
305 321-1144 (mobilehttp
for a shared lib r-x is typical.
HTH
>
> Bob
>
> --
> Bob Parnes
> [EMAIL PROTECTED]
--
---
Jerry Sievers 305 854-3001 (home) WWW ECommerce Consultant
305 321-1144 (mobilehttp://www.JerrySievers.com/
--
http://mail.python.org/mailman/listinfo/python-list
fun;
while True:
file('/tmp/foo')
I bet this runs forever and you don't run out of open file descriptors
:-)
[+]
>
> Thanks,
> Henrik Holm
--
---
Jerry Sievers 305 854-3001 (home) WWW ECommerce Consultant
305 321-1144 (mobilehttp://www.JerrySievers.com/
--
http://mail.python.org/mailman/listinfo/python-list
12 matches
Mail list logo