@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet


Comments:

<0> how do I check if an object is a list?
<1> well, you could use type()
<1> type(listname)
<1> type(var) :)
<2> if type(variable) is list:
<2> ...
<3> peek up its dress



<1> I'm all in
<1> damn weird error messages
<1> UnboundLocalError: local variable 'file' referenced before ***ignment
<1> for line in file(sentencesfile, "r"):
<1> how so?
<1> my bad, I'm an idiot and I should have saw that earlier.. :)
<1> was it the boogieman?
<3> ?
<1> listening to music.. sorry :)
<4> mhmhm
<3> guhhh
<1> <LoverMan:#jeep> Bleh
<1> <yason:#Python> mhmhm
<1> <xihr:#Python> guhhh
<1> must be the evening
<3> heh
<1> i'm ready to go to bed.. cjust can't figure out how to get there
<1> alright... goodnight :)
<4> 'tis morning :)
<5> Hey guys
<5> I have some C code I want to call from python (OS x). I've built a wrapper for it and compiled that into a dynamic library. I've set PYTHONPATH to the dir I compiled the dylib to, but when i try to import it i get an error to the effect that it can't find the module.
<5> Anything that I might've overlooked?
<4> http://www.inventgeek.com/Projects/lockpick/Page4.aspx
<6> Hi.
<6> I have a string that's y characters long.
<6> I want to pull the first x characters from it into another string
<6> What's the best way?



<7> new_str = your_old_str[:x] I think
<6> Thanks.
<1> anyone recommend a pdf library?
<2> exoxe, looks like report lab is a good lib for that
<8> hi!
<9> Looks like ctypes will be included in the standard library.
<7> what are ctypes hund?
<9> http://starship.python.net/crew/theller/ctypes/
<10> hund: bot doesn't op ya?
<9> I've changed hosts.
<10> setz should just put a wildcard... hund@*.uio.no
<10> mariube
<9> It would be *!mariube@*.ping.uio.no
<11> I just started learning python and I don't know why my script won't execute, if I run it directly in the terminal I get 'ImportError: No module named locals' etc.. but if I run python and executes execfile() it works fine
<9> I don't have a module called locals, either. If you paste a complete example at http://rafb.net/paste/ , I might be able to help.
<11> hund, http://rafb.net/paste/results/5p7DWt33.html
<9> Well, the script works just fine from the terminal here.
<9> With Python 2.4.
<9> And PyGame 1.7.1.
<11> thats weird
<11> do you have any special environment variables?
<12> Hi all
<12> Watje: Try setting your pythonpath correctly
<11> hello koby
<11> my pythonpath is '/usr/lib/python2.4/'
<9> Watje: Doh. You're calling your file pygame.py.
<9> It's not the first time someone has come in here with that problem. :)
<11> is it really THAT simple :x
<11> thank you anyway
<9> You're welcome.
<2> hehe, ive done that myself


Name:

Comments:

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






Return to #python
or
Go to some related logs:

sesx
how to humiliate the submissive male
is america ethical
#beginner
#debian
fracnce football
65582600
#unix
beel tray
#unixhelp



Home  |  disclaimer  |  contact  |  submit quotes