@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17



Comments:

<0> lol umm ok
<1> thats aol speak? lol has been in use for a long time before aol
<0> hmm
<2> ok, is there an adapter for postgres other than psycopg?
<1> pygresql
<1> mxodbc
<1> (+ appropriate odbc drivers)
<2> ill see if pygres has the same problem
<3> joe_k: yes but 1) the "no aolspeek" rule isnt specifically against "el oh el" and 2) what the rule is meant to bar is kiddies who think its cool to have complete conversations without a single word, which is common of AOL kids.
<4> PyPgSQL
<1> the aol kids are nothing compared to the myspace kids
<5> ropoctl: what is the exact prob?
<5> rm -r /myspace
<5> rm -rf /myspace
<2> i try to enter in a string with a null char in it into a postgres bytea
<3> my only gribe with myspace is that those kids do horrible injustices to good rules of design. i have seen _horrible_ things



<2> <blink>
<3> ropoctl: how positive are you of the column type you are interting into? maybe you were wrong! and was the insert you showed earlier literal from your code?
<6> echo "rm -rf /myspace" > /etc/rc.d/rc.salvation ; chmod a+x /etc/rc.d/rc.salvation
<2> whats the query to "describe" the table
<7> ....
<1> \dt in psql
<1> \dt tablename
<1> sorry just "\d tablename
<1> "
<2> yah the fields are indeed bytea's
<8> what version of python are you guys using ?
<9> ropoctl reported earlier that entering the query via psql command line works fine
<10> 2.3
<8> # installing zipimport hook
<8> import zipimport # builtin
<8> # installed zipimport hook
<8> # /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site.py
<8> import site # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site.pyc
<1> 1.4.1
<8> # /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/os.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/os.py
<8> import os # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/os.pyc
<8> import posix # builtin
<2> ugh
<8> # /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/posixpath.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/posixpath.py
<8> import posixpath # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/posixpath.pyc
<1> ack
<8> # /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/stat.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/stat.py
<8> import stat # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/stat.pyc
<8> # /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/UserDict.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/UserDict.py
<1> ow
<8> import UserDict # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/UserDict.pyc
<8> # /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/copy_reg.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/copy_reg.py
<8> import copy_reg # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/copy_reg.pyc
<8> # /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/types.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/types.py
<11> joedj: thanks! ;-)
<2> #psycopg and #psycopg2 dont have people in em
<2> does python not get along with the double \\ escape characters
<8> accident on my part
<8> sorry all
<5> redir: forgives rodrickbrown
<4> rodrickbrown: don't sweat it. use http://rafb.net/paste rather than pasting here on purpose
<8> no i didnt even mean to paste that
<7> and use an irc client wich protects you from posting more than 4 lines =P
<5> rodrickbrown: meant to paste in another channel
<8> i ran /exec -v instead of -V
<5> THree cheers for Python!!!
<5> I am out
<1> '\\' = a single \ unescaped
<8> later redir
<8> yeah friday night i'm goign to do something none geekish with a female tonight
<8> bbl
<12> o rly?
<13> Anybody know if there is a pythoncard room on irc?
<2> its not a psycopg problem
<2> because pygresql does the same thing
<2> ill paste the code
<4> ropoctl: also, what's the problem? i didn't catch what's going wrong
<2> http://deadbeefbabe.org/paste/748
<2> and yes those columns are byteas
<14> is there a way to reference the parent of a cl***... eg I;m loading another cl*** from my main cl***, is there a parent variable or somethin glike that.. probably another sumb newbie question ?
<2> hm



<2> im gonna try using four backslashes
<2> yes
<2> thats what i had to do
<15> pmasho, you just refer to it by name I believe
<6> charles`: eh? No
<6> How are you going to reference it if you don't have a reference to it >_>
<14> anyone ?
<15> maybe I didn't understand right
<4> ropoctl: you still didn't say what the problem is, but you should almost certainly use cur.execute('INSERT INTO table VALUES (%s,%s,%s,%s)', (1, '\007\000\043\001\050', '\005\000\012', 100)
<15> for instance when I want to override function behaviour but have the parent function run first
<15> I'll do
<6> charles`: I think that's not it
<6> p_masho: I don't think you can do it
<4> ropoctl: sorry, that was missing a trailing )
<6> p_masho: maybe try p***ing it to the constructor
<15> is he wanting to do somthing along the lines of parent.parent?
<6> charles`: hmm, more like self.parent
<14> how would I do that... with self? and then in the child constructor def __init__(self, parent) ??
<6> but, does python have cl*** hierarchy?
<11> p_masho: self.__cl***__.__bases__
<6> cybercobra: looks ugly
<11> yuriks: well, that's how introspection is
<15> I think all he is wanting to do is something like
<4> p_masho: why do you want one?
<15> def __init__(self): ParentCl***.__init__(self); rest of my init code;
<14> I'm pretty new to python and pygtk .. and splitting up my dialogs into seperate files/cl***es as per this little snippet.. http://pastebin.ca/63482 Now some of the "lookups" and "global" variables from the "parent" cl***.. are required in the child cl*** "for the want of a word" .. I dont want to child = EditDialogFoo(self.this, self.that, self, another)
<4> "parent" usually refers to inheritance. it doesn't look like you're talking about inheritance
<16> does anybody use cherrypy? Can they elaborate on any griefs they may have encountered or better options?
<6> charles`: no
<14> joedj: and I also want to know is there's a wuicker way that newObj = editDialogFoo(self) .. thought is might be in thw "sub" cl*** automatically... sorry hope I;m making sense !!!
<6> He wants to know if there's anyway to get the cl*** from where that cl*** was created from
<6> p_masho: I think that's the only way
<14> yuriks: yes.. get some of that properties..
<14> p***ing (self)...
<4> p_masho: yeah, that's the way to do it. it's confusing to say "parent" and "sub" cl*** when you are not talking about inheritance (or cl***es) :)
<6> I stumbled upon that in *yuck* Java some days ago
<14> another question related to above.. is there a way to create a "global variable".. I got this >> gladeFile = "pymyadmin.glade" << at the top of my main app but I also have to include it at the top of the "imported" cl***.. is there a way around ?
<4> p_masho: the imported file _could_ import that global variable from the main file, but this creates a circular import
<4> p_masho: better is to put gladeFile = '...' in config.py then have both the main module and the imported module do "from config import gladeFile"
<14> ok
<4> p_masho: global variables are only global at the module level. other modules need to import them to have access to them
<17> Global variables arn't global. Interesting.
<14> joedj: I get it .. learning this stuff.. coming from a vb/php background its different to say the least...
<18> i have a large string, and i want to create a file object such that everytime is call its readline method, i get a line of the string out.... is there anyway to do this ?
<9> krazykrip cStringIO.StringIO
<18> Zalamander: thanx will look it up
<18> Zalamander: awsome .. does xactly wat i want :)
<0> hey i know this is not a python question, but how do i make it so i automatically identify myself when i join freenode
<9> krazykrip pretty much verbatim :-)
<9> letsgfuad that depends on your IRC client
<0> xchat
<0> Zalamander, xchat aqua
<9> letsgfuad I don't know anything about xchat, but maybe there's an #xchat channel ;-)
<0> yeah ill check that
<14> is there an easy way for this to return an array ? name,type,len,null,default = model.get(iter,0,1,2,3,4)
<14> or a list ?
<19> take your best guess
<14> is there a tenary operator in Python eg >> foo = (x == 200} ? true : false <<
<20> no
<21> Not yet.
<21> There's one coming along the lines of "a = 1 if True else 2". I think. The syntax is horrible and I always get it confused.
<20> http://www.python.org/dev/peps/pep-0308/
<21> There is, of course, foo = [lambda: falseThing, lambda: trueThing][x == 200]()
<20> that's the PEP for adding one
<6> why not just stick to the C one?
<20> it's not pretty enough
<14> where I wanted tenary .. 4 lines of it instead of one http://pastebin.ca/63525
<20> colNull.set_active(modelRow[2] == 'YES')
<22> Hey guys, how's things?
<20> but ya, that kind of solution doesn't always work
<23> Eh.
<23> How are you, _rockstar?
<22> Je suis tres fatigue.
<22> Argh, sometimes I forget who I'm talking to.


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #python
or
Go to some related logs:

attribute onkeyup is not a valid attribute of textbox
weathernetwork fedora
#css
#centos
ubuntu ScummVM no sound
gam_serve
#ai
ice1724 dapper
#centos
#php



Home  |  disclaimer  |  contact  |  submit quotes