in advance,
Ido Yehieli.
--
http://mail.python.org/mailman/listinfo/python-list
interesting.
usually the [pickle | cpickle | marshal] modules should handle such
things
--
http://mail.python.org/mailman/listinfo/python-list
some thing platform independent will be preferable... (like a file like
interface for TK/Tcl)
--
http://mail.python.org/mailman/listinfo/python-list
Thanks martin,
I'll give it a shot as soon as i get back from work!
--
http://mail.python.org/mailman/listinfo/python-list
maybe you can try replaceing sys.stdout and/or sys.stderr with a just a
simple file? then everything will be written to that file instead of
desplayed on the console.
Cheers,
Ido.
--
http://mail.python.org/mailman/listinfo/python-list
more on the subject: your "print" statments will also be written to
that file that sys.stdout directs to, so maybe that wasn't exactly the
solution you wanted to hear.
ok, not the nicest solution but maybe it will help you anyway:
bind sys.stdout at the begining of the program to a file (don't for
forget my posts, Steve's solution is much more maintanable when you(or
someone else)'ll revisit the code in a couple of years.
i would go with what he wrote.
Cheers,
Ido.
--
http://mail.python.org/mailman/listinfo/python-list
i see you inherit from wxApp.
mybe the constructor of that object takes an int value?
--
http://mail.python.org/mailman/listinfo/python-list
Hi all,
i have written a small python game (about 300 lines of code) that i
think other people might enjoy poking around (being a python programmer
for the past 4 years or so (some of it professionally) I believe I
could say it's not badly written either).
the question it - where should i post
thanks,
decided to post it to the python cheese shop over python.org
instead.
damn, that site is _slow_ today...
--
http://mail.python.org/mailman/listinfo/python-list
yes,
I've tried it aswell - nice work indeed!
now, maybe also get stdin to work from this TK window... ;-)
--
http://mail.python.org/mailman/listinfo/python-list
the source (and Bryan) doesn't say anything about further distribution
- and he did not provide a real email address.
Can I safely modify it and include it in the source distribution of my
program (it is open source licensed)? Would that be the polite thing to
do, i have no idea how to contact this
Yes, i thought so myself.
Thanks,
Ido.
--
http://mail.python.org/mailman/listinfo/python-list
Thank you all for your advice, I currently have several offers that
I'm really tempted about - I will take a closer look at both of them
(as well as continue searching) and will make an educated decision
within the next few days.
I've also decided to get rid of the sily pseudonym...
--
ht
As Paul already demonstrated, this is hardly needed since it can be
done more clearly with existing lang. features.
--
http://mail.python.org/mailman/listinfo/python-list
I'm sorry, but i don't see how this will solve the problem? It is
exactly the same, only now you've replaced everything in sys except
just sys.stdout?
At any rate, perhapse the code you will write will be more maintainable
if instead of redirecting sys.stdout for some of the code just use a
differe
oh, ok...
I guess people have to learn to use a logger instead of print in
production code...
--
http://mail.python.org/mailman/listinfo/python-list
>> Is this idea absurd or will one day our children think
>> that restricting to 7-bit ascii was absurd?
Both... this idea will only become none-absurd when unicode will become
as prevalent as ascii, i.e. unicode keyboards, universal support under
almost every application, and so on. Even if you c
I still remember it not being supported on most or all big Iron servers
at my previuos uni (were mostly SunOS, Digital UNIX among others)
--
http://mail.python.org/mailman/listinfo/python-list
perhapse consider using the pickle module?
http://docs.python.org/lib/module-pickle.html
--
http://mail.python.org/mailman/listinfo/python-list
>>Sure, it's just a Python module with variables in it.
>>
>>I wouldn't try to teach my users Python syntax though.
not to mention the security risks
--
http://mail.python.org/mailman/listinfo/python-list
th the zip _and_ the tar.gz file.
The strange thing is: even when I'm trying to create a directory 'aux'
by myself it is not possible!
Anyone here ever encountered this problem?
Thank you in advance,
Ido Yehieli.
--
http://mail.python.org/mailman/listinfo/python-list
OKl, sorry this seems to have nothing to do with SLUT it self, for some
reason a directory names 'aux' can not be created... most bizzare.
"mkdir aux" just returns "The directory name is invalid."
--
http://mail.python.org/mailman/listinfo/python-list
So I can't run SLUT on windows then?
--
http://mail.python.org/mailman/listinfo/python-list
ok, Thanks Paul!
--
http://mail.python.org/mailman/listinfo/python-list
;t change anything.
Anyone has any idea as to what went wrong?
Thank you in advance,
Ido Yehieli.
--
http://mail.python.org/mailman/listinfo/python-list
Thank you for your response,
but I think it's not it - that didn't make any difference.
--
http://mail.python.org/mailman/listinfo/python-list
Hi Graham, thank you for that link but it didn't help.
I've followed the instructions, yet In the 'basic-content-handler'
section, after getting to the point where it says to add this to the
main Apache configuration file:
AllowOverride FileInfo
I replaced /some/directory with the correct direc
please ignore that last message, the instructions on that webpage
worked, it was my fault.
Thanks,
Ido.
--
http://mail.python.org/mailman/listinfo/python-list
>> Also, is it possible to split off a program for the terminal that
>> started it? As in I type in python test.py and test.py runs in the
>> background and lets me do other things in that terminal?
try:
python test.py &
--
http://mail.python.org/mailman/listinfo/python-list
This one is from our very own BDFL, behold- wget implemented in 7 lines
of python code:
import sys, urllib
def reporthook(*a): print a
for url in sys.argv[1:]:
i = url.rfind('/')
file = url[i+1:]
print url, "->", file
urllib.urlretrieve(url, file, reporthook)
--
http://mail.p
On Feb 7, 5:35 pm, "magnate" <[EMAIL PROTECTED]> wrote:
> So my question is, should I go to the trouble of learning how to make
> boxes and stuff using tcl/tk, or just go with ncurses as I imagined?
If you want to use curses on windows with python you need to install
WCurses first.
Other then that
Hi Doug,
mabe you will find it easyer to use GladeGen to generate the
skeleton of your application rather then coding it yourself. Take a
look here: http://www.linuxjournal.com/article/7421
Cheers,
Ido Yehieli
--
http://mail.python.org/mailman/listinfo/python-list
Hi Doug,
maybe you will find it easyer to use GladeGen to generate the
skeleton of your application rather then coding it yourself. Take a
look here: http://www.linuxjournal.com/article/7421
Cheers,
Ido Yehieli
--
http://mail.python.org/mailman/listinfo/python-list
Franck:
PyGG seems pretty cool, thanks for the link!
--
http://mail.python.org/mailman/listinfo/python-list
or you can write the (slightly dangerous) following:
import os
for file in os.listdir("/path/to/modules"):
if file.endswith(".py"):
exec("from "+file[:-3]+" import *")
--
http://mail.python.org/mailman/listinfo/python-list
36 matches
Mail list logo