@# Quotes DB     useful, funny, interesting





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


Comments:

<0> hello all
<0> can anyone recomend a good book for learning python?
<1> _Learning Python_
<2> :D
<0> is that a joke?
<2> No.
<0> the o'reilyy one?
<2> It's really called Learning Python.
<0> yah...the oreilly one
<2> http://www.amazon.com/gp/product/0596000855/qid=1137459508/sr=8-2/ref=pd_bbs_2/104-5703106-1048704?n=507846&s=books&v=glance
<2> Check the reviews.
<0> that strangely enough...has a mouse on the front
<0> k



<0> thanks xihr..hund
<2> Mouse?
<3> on the cover
<0> http://www.amazon.com/gp/product/0596002815/002-0956737-0016002?v=glance&n=283155
<2> Ah, right.
<0> guess its a rat actually
<2> That too.
<2> Guido van Possum? :)
<0> hehe
<4> can anyone see anything wrong with http://rafb.net/paste/results/Z4dK1Y29.html
<4> i get errors when i try and run it
<4> and cant figure out why
<2> Works great here.
<4> mmm
<4> error is 6 lines
<4> Traceback (most recent call last):
<4> File "./socket.py", line 3, in ?
<4> import socket
<4> File "/root/python/socket.py", line 10, in ?
<4> service = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
<4> AttributeError: 'module' object has no attribute 'AF_INET'
<2> First of all, use a pastebin for pastes.
<2> Second of all, you can't name your own file the same as a module you're using.
<4> even only for 6 lines?
<4> ahh ok
<2> Yes, even for 6 lines.
<4> rgr
<4> ok
<4> my error now http://rafb.net/paste/results/AruL5T32.html
<2> It says: File "/root/python/socket.py"
<4> argh blind
<4> getting the same error exept with File "/usr/lib/python2.4/socket.py", line 10, in ?
<2> That's because you still have "import socket" in the file you're importing your other file from.
<2> Or something.
<2> The first paste you entered, in its own file, works as it shoud if your Python install isn't broken.
<2> As long as it's not named socket.py.
<4> yeah renamed it
<4> and got rid of *socket.py in the same dir
<4> mm phone
<5> hi, it is possible to check if data consists of only alphabet characters without using regexps?
<3> I believe astring.isalpha() works for that
<3> yep, but it'll be False if the string is empty, not sure if that matters..
<5> no, thanks should works great. thanks!
<6> if you have multiple inheritance in a cl***, do you call each ancestor cl***' __init__ method?
<1> just do it manually
<1> BaseCl***.__init__(self, ...)
<6> maybe I don't quite understand the concept of inheritance, as I was wondering if you'd possibly have to do that several times.
<1> with multiple inheritance, yes
<1> note that it can't really be automated, since each parent cl***' __init__ method might take different arguments
<6> ah.



<7> any django-ists alive? got a newbie installation question...
<8> hello
<8> I have a question
<8> regarding simple lists
<8> <span tal:content="repeat/entry/number" />
<8> <span><b>Totaal: </b></span>
<8> <span tal:content="python:len(results)" />
<8> those two tal:content thingies .. I need them to be substracted
<8> like .. len(results) - repeat/entry/number
<9> sounds very zope-ish.
<8> but I cannot get this to work at all .. indeed its, zope
<8> Im a newbie at python, but I kind of need to get this to work before this afternoon
<8> can you give me a hint ?
<9> i've no idea about templates and zope
<9> whatever that is
<8> :) thanks for replying .. in the meantime I found the zope channel, and asked my question there too
<10> U DOODZ NED TO SWICH RUBY ITS NEW AND MORE LEETAR
<2> Setzer?
<10> HIS ORKESTRA IS SUX
<10> AND HIS HAIR IS GHEY
<2> nm
<11> MS Antispyware program detects and removes IE as spyware! http://www.bbspot.com/News/2005/01/microsoft_antispyware.html
<12> hi, could anyone tell me, do programming books on sockets, networking and internet teach the same thing?
<12> anyone?
<13> This is a python channel
<12> python books
<12> i was just generalising
<13> If you want to read on sockets and network programming, check out pythonl.org
<12> k, thanks
<13> I have no idea what books teach
<13> np
<13> python.org*
<12> ah ok
<12> nah python.org doesn't have anyyuthing on networking
<12> if i wanted to learn internet programming, would a book on network programming be suffice?
<12> im sure it would, right?
<12> yea, sorry dumb question actually
<12> *is*
<14> jksd_: there is a book on Python network programming, published by Apress I think
<14> http://www.amazon.com/gp/product/1590593715
<14> I haven't read it though
<12> ah yeah, i was already looking at that one tho
<12> thanks anyways
<12> or there's this one as well..
<12> http://www.amazon.com/gp/product/1558514848/qid=1137526838/sr=8-5/ref=sr_8_xs_ap_i5_xgl14/002-1892806-5939224?n=507846&s=books&v=glance
<12> i think that's all there really is
<12> apart from some twisted book
<13> jksd_, http://www.python.org/doc/2.4.2/lib/module-socket.html of course python.org has the docs
<13> I don't know of a good book recommendation though, sorry
<12> ah ok
<12> i couldn't find it when i looked, thanks
<12> hi, will the same python code run on both unix and windows?
<12> at an intermediate's lvel
<12> level
<15> Yes.
<12> what about advanced?
<12> and networking
<15> Unless you're calling things that are OS specific, python code should be totally cross platform.
<12> cool thankyou


Name:

Comments:

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






Return to #python
or
Go to some related logs:

#computers
#beginner
#cisco
#politics
#nhl
chaosklan
#stocks
#computers
#firebird
dmt.mi



Home  |  disclaimer  |  contact  |  submit quotes