| |
| |
| |
|
Page: 1 2 3
Comments:
<0> xihr, Ive never had an issue that wasn't easily resolved in the ports system in fbsd <0> and its pretty easy to manually do the port if the maintainer is slacking on a security/bug fix <0> teabagging (U.S.) the act of inserting one's nuts into the mouth of another (of either gender), usually while they are sleeping <0> lmao.. this list is cl***ic <1> haha <2> heh - you should spend some time reading random links on urbandictionary.com sometime ;-) <0> heh, yea.. I know of that site <0> I sometimes wonder over to grouphug.us as well <2> SFW? <0> yea, its safe <0> just text <0> but funnnnnnny <2> always best to ask these things ;-) <2> haha - that is hellishly amusing <0> so when can we work out this case of Macs gold?
<2> *G* shipping it is going to be the hardest IMO.... <2> i.e. shipping it so that it doesn't break <0> customs be an issue? <2> possibly, only on your side if anything <2> you just may have to pay duty on it. <0> Oh thats no problem <0> probably cost me a total of $100 for the beer + packaging/shipping + customs for a case of beer :) <2> heh <1> aloha malawar <3> HI <4> hi all :) <4> how can i list all the attributes in objects? <4> dir(objmycl***) <4> give me some attrs but not __cl***__ for example <5> Does here. <4> which vers? <4> i have 2.5 <5> 2.4.3. <6> 2.4 is alpha <6> err <6> 2.5 <4> k <5> 2.5a1 does it too here. <4> windows? <6> 1. dir works 2. you shouldn't be running alpha software unless you have an exceptionally good reason to <6> wipe it and install 2.4.x <4> k, doing <4> no <4> no __cl***__ in dir(obj) <6> what is obj? <4> in the interactive help i've defined simple cl*** <6> in the interactive help? <4> create an instance <6> well, you're doing something wrong you're not seeing; use a pastebin to show us <4> ok <1> dir(anObject) will do that Saibana <1> hrm <1> aloha <4> http://rafb.net/paste/results/vFKaRr31.html <6> you're getting the list and doing nothing with it <6> print dir(o) <4> yes my error in pasting <4> print dir(o) <4> show: <4> ['__doc__', '__init__', '__module__', 'attr1'] <6> it's because it's old-style <6> derive from object <6> old-style cl***es have some "hidden" attributes <4> oh ok thank u <4> :) <6> sure <4> o.__dict__['name']= val it's equal to o.__setattr__('name',val)? <6> or setattr(o, 'name', val) <4> k <4> why __module__ is readwrite? when is useful to change tis attr? <4> this <7> eep lag! <7> this is like dialup <1> re <7> is it over yet <4> someone know spyce?
<4> seems good no? <4> what u prefer in python web apps? <5> What is spyce? And please spell it "you". <4> ok, sorry <8> hey <4> spyce.sf.net <8> how do i take a HTML encoded string and convert it to UTF-8 encoding <4> it's a python server page framework <8> like &hearts; to ♥ <1> kc: http://docs.python.org/lib/module-urllib.html <1> kc: http://www.reportlab.com/i18n/python_unicode_tutorial.html <8> uh yeh im talking about html encoded not url encoded though <4> import htmlentitydefs <4> ]]kc[[[ http://rafb.net/paste/results/cTDk9K53.html <4> i've found this code based on htmlentitydefs on google groups <8> ah word yeh i was just about to get to that <8> thnx <4> :) <9> what is a good python book to get <1> Dive Into Python <1> and its free, you can download it online at www.python.org <4> how can i know if a function is a method? <6> is there any particular reason you think you should care? <6> just call it <4> only investigating <6> there probably are some attribute differences you could find but they may not be guaranteed <6> either way, you generally should never need to know <4> can i use this __attrs__ ? <4> or are some kind of reserved and to not use? <6> __attrs__? <4> betetr setattr() or __setattr__? <4> better <6> I've never heard of __attrs__ -- use it for what? <6> setting attributes generally? <6> use setattr <4> clear <6> looking at them, it looks like pure functions have func_... attributes, whereas methods (both bound and unbound) don't <4> with __attr__ i mean any __*__ stuff <6> but as I said, you probably shouldn't care <6> oh <6> GENERALLY you shouldn't be calling those things directly <4> clear :) <6> if you're manipulating a cl*** instance from outside, anyway <6> e.g., use setattr, not i.__setattr__; str, not i.__str__, etc. <6> you will use those things directly occasionally, like when relying on another cl***'s overridden behavior <6> e.g., ParentCl***.__init__(self, ...) <6> but for the most part if you have an instance and want to poke at it, use the higher-level functions and methods <4> so only __init__ and __new__ are used sometimes? <6> I wouldn't say only, but usually <6> let me put it this way, if you're explicitly calling a __...__ method, you should have a good reason and know why you're doing it <4> ok <10> can anyone see a reason the final print statement wouldn't execute in this cgi-script snippet? http://pastebin.com/712806 <10> when I view source on the page it serves up, the code ends after the last iteration of the loop <6> well you're doing something wrong there, that's not legal Python <10> oh? <6> the first triple-quoted string isn't terminated properly <10> it ends with triple quotes... <6> the thing you put in the pastebin doesn't <10> <select name="state" id="state" value='""" + state + "'>" <10> that's what I see for the last line <10> """ + state + "'>" <8> mm <8> hmm <8> UnicodeEncodeError: 'ascii' codec can't encode character u'\u2665' in position 0: ordinal not in range(128) <6> ah I didn't see that <10> ok <6> it's more customary to use string substitution here rather that string concatenation, by the way <6> faster too <7> spyce doesn't look too bad... <10> ok <6> kc: it means you're trying to convert a Unicode string containing non-ASCII characters to ASCII (perhaps implicitly) <4> exoxe: yes i find it more powerful than others web framework <6> as for why you're not seeing the last print, I don't see it, the problem is likely elsewhere <4> exoxe: i like the tags in python
Return to
#python or Go to some related
logs:
#politics #winxp #red #delphi run in 08jun2006 #cisco #politics #unixhelp #nhl adultfreevideos
|
|