FAQ
if i do the following i get the url of an image i am looking for

image = ""
image = bs.img
print image

however if i do this
out.write (image )

i get an error that says "nonetype error is not callable"

any ideas

Search Discussions

  • Steven D'Aprano at Dec 26, 2005 at 1:51 am

    On Sun, 25 Dec 2005 17:39:14 -0800, homepricemaps wrote:

    if i do the following i get the url of an image i am looking for

    image = ""
    image = bs.img
    print image
    image = "" is a pointless operation in the above snippet.

    What is bs and bs.img? How does it know what URL you are looking for?

    however if i do this
    out.write (image )
    What is out?
    i get an error that says "nonetype error is not callable"
    I doubt that.

    You are probably getting an exception that says:

    TypeError: 'NoneType' object is not callable

    Case is significant in Python -- NoneType is a built-in Python object,
    nonetype could be anything you programmed it to be. Please don't
    paraphrase error messages, copy and paste the exact message.

    If you are getting a TypeError, that might mean that somehow, somewhere,
    you have assigned out.write = None.


    --
    Steven.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppython-list @
categoriespython
postedDec 26, '05 at 1:39a
activeDec 26, '05 at 1:51a
posts2
users2
websitepython.org

2 users in discussion

Steven D'Aprano: 1 post Homepricemaps: 1 post

People

Translate

site design / logo © 2020 Grokbase