Re: (n)curses or tcl/tk?

2007-02-07 Thread Ido Yehieli
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 it

Re: Python / glade fundamentals

2006-03-20 Thread Ido Yehieli
Franck: PyGG seems pretty cool, thanks for the link! -- http://mail.python.org/mailman/listinfo/python-list

Re: what's the general way of separating classes?

2006-03-20 Thread Ido Yehieli
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

Re: Python / glade fundamentals

2006-03-17 Thread Ido Yehieli
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

Re: Python / glade fundamentals

2006-03-17 Thread Ido Yehieli
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

Re: Threading - will threads run in parallel?

2006-02-28 Thread Ido Yehieli
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

Re: Looking for Pythonic Examples

2006-02-28 Thread Ido Yehieli
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) --

Re: apache mod_python problem

2006-02-16 Thread Ido Yehieli
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: Directory /some/directory AllowOverride FileInfo /Directory I replaced

Re: apache mod_python problem

2006-02-16 Thread Ido Yehieli
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

apache mod_python problem

2006-02-15 Thread Ido Yehieli
idea as to what went wrong? Thank you in advance, Ido Yehieli. -- http://mail.python.org/mailman/listinfo/python-list

Re: apache mod_python problem

2006-02-15 Thread Ido Yehieli
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

Re: SLUT distibution mangled?

2006-01-29 Thread Ido Yehieli
ok, Thanks Paul! -- http://mail.python.org/mailman/listinfo/python-list

SLUT distibution mangled?

2006-01-28 Thread Ido Yehieli
_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

Re: SLUT distibution mangled?

2006-01-28 Thread Ido Yehieli
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

Re: SLUT distibution mangled?

2006-01-28 Thread Ido Yehieli
So I can't run SLUT on windows then? -- http://mail.python.org/mailman/listinfo/python-list

Re: Loading a Python collection from an text-file

2006-01-27 Thread Ido Yehieli
perhapse consider using the pickle module? http://docs.python.org/lib/module-pickle.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Loading a Python collection from an text-file

2006-01-27 Thread Ido Yehieli
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

Re: Using non-ascii symbols

2006-01-25 Thread Ido Yehieli
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

Re: Using non-ascii symbols

2006-01-24 Thread Ido Yehieli
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 can

Re: Redirecting standard out in a single namespace

2006-01-21 Thread Ido Yehieli
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

Re: Extended List Comprehension

2006-01-20 Thread Ido Yehieli
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

Re: Redirecting standard out in a single namespace

2006-01-20 Thread Ido Yehieli
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

Re: searching a project to contribute to

2005-10-10 Thread Ido Yehieli
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... --

Re: replacments for stdio?

2005-10-06 Thread Ido . Yehieli
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

Re: replacments for stdio?

2005-10-06 Thread Ido . Yehieli
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

Re: replacments for stdio?

2005-10-06 Thread Ido . Yehieli
Yes, i thought so myself. Thanks, Ido. -- http://mail.python.org/mailman/listinfo/python-list

Re: replacments for stdio?

2005-09-30 Thread Ido . Yehieli
Thanks martin, I'll give it a shot as soon as i get back from work! -- http://mail.python.org/mailman/listinfo/python-list

Re: how to stop info output on screen

2005-09-30 Thread Ido . Yehieli
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

Re: how to stop info output on screen

2005-09-30 Thread Ido . Yehieli
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

Re: how to stop info output on screen

2005-09-30 Thread Ido . Yehieli
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

Re: what does 0 mean in MyApp(0)

2005-09-30 Thread Ido . Yehieli
i see you inherit from wxApp. mybe the constructor of that object takes an int value? -- http://mail.python.org/mailman/listinfo/python-list

where to post python code?

2005-09-30 Thread Ido . Yehieli
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

Re: where to post python code?

2005-09-30 Thread Ido . Yehieli
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

Re: replacments for stdio?

2005-09-24 Thread Ido . Yehieli
some thing platform independent will be preferable... (like a file like interface for TK/Tcl) -- http://mail.python.org/mailman/listinfo/python-list

replacments for stdio?

2005-09-23 Thread Ido . Yehieli
in advance, Ido Yehieli. -- http://mail.python.org/mailman/listinfo/python-list

Re: how to pickle unpicklable objects

2005-09-23 Thread Ido . Yehieli
interesting. usually the [pickle | cpickle | marshal] modules should handle such things -- http://mail.python.org/mailman/listinfo/python-list