IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1992.92 MB
Powered by
Channel Info
Network: freenodeChannel: #python |
Search in www.irclog.org
Log from #python at freenode 2006-05-31
[11:17]<drrn_>SQLAlchemy seems promising
[11:17]<z0ggd>hmm
[11:18]<tml>Most of the Python ORMs I've played with have the same disease as Rails does: They work fine, as long as you're willing to do everything their way, from scratch.
[11:18]<tml>SQLObject is moving in the right direction, I think, but has a ways to go as of yet
[11:18]<drrn_>agreed.
[11:18]<drrn_>TML: did you tried SQLAlchemy ?
[11:19]<drrn_>it works completly different
[11:19]<z0ggd>hmm - catalyst is very changable, but i guess most of u wont touch perl
[11:20]<tml>mage_: Last time I looked at SQLAlchemy, it had the same problem.
[11:21]<tml>mage_: Perhaps it's time I took another look.
[11:22]<drycjf>anyone used python for cgi with apache under ubuntu?
[11:25]<drvau>mage_,r0nny: readability is one of the best topics for flamefests... there's so little to agree on! i don't think that the language influences readability that much, and what matters is how the programmer writes the code
[11:26]<z0ggd>matju: well - python limits u to some rules magically improve the readability - in other languages u need to folow these rules by yourself, also the syntactical possibilities incrase the possibilities to make a programm unreadable (and python hasnt as much as perl/ruby do)
[11:27]<drvau>mage_,r0nny: of course, i don't represent the ruby community, even though i'm a ruby oldfart
[11:28]<drvau>r0nny: i don't believe in magic but i damn well believe in the placebo effect.
[11:28]<z0ggd>matju: magic is allways a placebo effect
[11:29]<drvau>r0nny: i say that because there _are_ people who make a distinction between magic and placebo
[11:29]<z0ggd>but indentication makes a program more readable, and python is a language where u cant ignore identication
[11:30]<z0ggd>matju: any other then "mages" ?
[11:30]<z0ggd>;P
[11:31]<drvau>r0nny: anyone who like to pay for mages... ;-)
[11:32]<z0ggd>hmm
[11:32]<v2ruge>where can I get the new python logo preferably in png? I am at there site at logos but it seems they only have the old logos up :(
[11:34]<npnpvxnzyjs>I run a system command using os.system() and I would like to display a progress bass while it is executing (it usually takes about 15-20 seconds), any pointers on how one implements such a thing?
[11:34]<npnpvxnzyjs>s/bass/bar
[11:35]<npnpvxnzyjs>I have no way of knowing beforehand how long the command will take to execute as it depends on the volume of text it will process which is highly variable
[11:36]<vgzzvjzg>eleftherios: using a GUI toolkit... or curses maybe, if it's a console app
[11:36]<vgzzvjzg>eleftherios: you won't want to use os.system() though, unless you run it in a seperate thread, because it blocks
[11:36]<npnpvxnzyjs>it is a console app
[11:37]<npnpvxnzyjs>why do i need curses for a simple progress bar? I can just use '======>'
[11:37]<z0ggd>eleftherios: find a way to make it tell you its process, else there is no way to make a bar
[11:38]<z0ggd>(a bar with no information about the process is pretty useless)
[11:38]<npnpvxnzyjs>r0nny, hm, I can't think of such a way :-/
[11:38]<z0ggd>then u cant make a bar
[11:38]<z0ggd>waht does this process, and can u replace it by a python class ?
[11:39]<z0ggd>casue if it was a python class u can use callbaacks for process information
[11:39]<npnpvxnzyjs>no, it runs zmergelog (which merges apache logs) and then visitors (which is an apache log parser and creates html)
[11:40]<npnpvxnzyjs>I am just writing a simple wrapper script that calls those and gzips & emails the result
[11:40]<z0ggd>guess then u just have to run it, and wait
[11:40]<npnpvxnzyjs>I guess so
[11:42]<z0ggd>maybe there are some libs for python deal with this
[11:43]<z0ggd>eh modules
[11:45]<npnpvxnzyjs>r0nny, can you think of any names?
[11:46]<z0ggd>no idea
[11:46]<npnpvxnzyjs>I'll have a look, thanks :-)
[12:23]<eeeuej>there are no more references.
[12:24]<eeeuej>print "C1:", sys.getrefcount(test) #Must be 2 to be safe
[12:24]<eeeuej>gives 2 references: the one from test variable, and the one for getrefcount
[12:24]<gznzvznm>how do you know that the module isn't being freed?







