#python - Sun 18 Feb 2007 between 13:15 and 13:49

NY Lost Funds



SnoronHmm, well what are you wanting to compile as? When you maek a windows exe or mac app or whatever with python, you basically package the pyc and python interpreter together
actionTwey nods.
Tweynods.
Karqlbzed: it isn't bad ide:D
bzedthere's the problem to let users run their fastcgi-server?
Karqlidea*
bzedusing suid is a bad idea in 99% of all cases
especially on a machine that shares anythign to the bad wide world
KageSenshigot a questin here .. i have a list that contains strings .. and i wanted to find whether a particular substring exist in the list of strings .. what function/algo can i use for it? /me n00b
Karqlbzed: "18:10 < bzed> Karql: let them run the fastcgi server as ther userid and tell lighttpd to connect to the fastcgi-sockets" it's probably the best way i do that and add some scripts to /etc/inid.d/lighttpd thx
bzedKarql: at least it's what I'd do. you configure lighttpd to use the fastcgi-sockets your users provide
efphei have a class B, and i want to define, in this class, a method already defined in the class A. How can i "import" it?
Tweyefphe: Subclass A
bzedefphe: and if the method could happily live outside of the class, move it out of the class.... and you can just use it from both classes
as in: there's no self.something in the method
efphesubclass is not a good solution (because of the nature of the classes). yes, mee too i was thinking to define it outside
stanteranyone what is wrong with starship.python.net?
ehirdIs there a way to do
'Raise this error as in print out the error, BUT continue execution plz'
stanterehird: look at using try,except ad the traceback module
ehirdyes
stantereg) traceback.print_exc() will print the current exception
ehirdisn't there a way to catch the default? :/
stanterso you could do something like try: blah except: traceback.print_exc()
rokjhi
ehirdhrm, is there a way to ``unrequire'' a file in python?
stanterhuh?
ehird(trying to implement something to reload script files when their modify times change to prevent ^C, uparrow, enter cycle)
http://www.cherrypy.org/attachment/wiki/AutoReload/autoreload.py <-- hrm
aha, reload()
Zaba_hi al
s/l/ll/
what is a handler script for mod_python?
jojoman02i ahve a list which i only want to copy every other value to another list, how do i do that?
ehirdIs there a way to override import?
like, an on_import handler
TweyHmm
ayazjojoman02: what's wrong with list_a = list_b?
Velosoehird: You can redefine the function __import__
TweyIs there a common method of generating a *huge* (400,000,000+) set of unique values without blowing out the memory of the poor computer running the script?
Velosohttp://docs.python.org/lib/built-in-funcs.html

Page: 1 8 15 22 29 36 

IrcArchive

NY Lost Funds