On Aug 22, 10:23 am, Danny <[EMAIL PROTECTED]> wrote:
> 1) how do I dynamically inspect an object to determine if it has an instance
> method? (there is a class method with the same name)
class Foo:
def foo(self):
pass
x = Foo()
import types
>>> isinstance(x.foo, types.MethodType)
T
On Aug 22, 11:06 am, Mark <[EMAIL PROTECTED]> wrote:
> Eval() doesn't seem to recognize the r'string' format. Is there a way
> around this.
> Example:
> If I input: -> eval("r'C:\tklll\ndfd\bll'")
> I get the output:
>
> Traceback (most recent call last):
> File "", line 1, in
> eval
On Aug 22, 1:19 pm, Tobiah <[EMAIL PROTECTED]> wrote:
> >>> "'"
> "'"
> >>> "\'"
> "'"
> >>> "\\'"
> "\\'"
> >>> "\\\'"
> "\\'"
>
> This is quite different than any other language
> that I am used to. Normally, a double backslash
> takes away the special meaning of the last backslash,
> and so you
On Aug 22, 3:27 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Greetings,
>
> A friend of mine dropped off a copy of Sams Teach Yourself Python in
> 24 Hours published in 2000. I skimmed the first couple of chapters
> looking for the interpreter version and the book was based on version
> Py
On Aug 23, 8:33 am, [EMAIL PROTECTED] wrote:
> Hi everybody, i'm new to the forum so: hello everybody (should I say
> "world"?) ^_^
> I'm trying to do a simple spider in python which:
>
> 1) ask google a query
> 2) parse the data
>
> I'm a python newbie so *any* help would be very, very welcommed.