Closed Thread
Results 1 to 2 of 2

Thread: 2.6.4 Issue after Upgrading

  1. #1
    codeLoad is offline Newbie
    Join Date
    Feb 2009
    Posts
    16
    Rep Power
    0

    2.6.4 Issue after Upgrading

    I just upgrade to 2.6.4 from 2.5.4 on my Freebsd system and am having a weird issue. I have a variable called 'self.name' and I initialize it to None. Right after I print 'self.name == None' and it says that it's false! I then print 'type(self.name)' before initializing it and it says 'str'. Is self.name a new class attribute? perhaps in threading.Thread that can't be overridden?

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Jul 2009
    Location
    Santa Clarita, CA
    Posts
    2,111
    Blog Entries
    47
    Rep Power
    31

    Re: 2.6.4 Issue after Upgrading

    You shouldn't use the == operator when comparing with None, always use the is operator instead. Using the == operator on None can lead to quirky behavior.

    Anyway, that's beside the point, since yes, threading.Thread objects do have a name attribute, read this for more information on that. It's used to identify the name of the thread. I'd simply use a different name for that property.
    Wow I changed my sig!

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. gcc issue
    By newprog in forum C and C++
    Replies: 4
    Last Post: 11-06-2010, 11:14 PM
  2. upgrading directx from 7 to 8
    By lapta in forum Pascal and Delphi
    Replies: 1
    Last Post: 03-06-2010, 09:57 PM
  3. Upgrading to version 5!
    By Lop in forum PHP Development
    Replies: 3
    Last Post: 04-16-2007, 09:46 PM
  4. Need Help Upgrading P4T533c
    By Tetor in forum Computer Hardware
    Replies: 1
    Last Post: 03-05-2007, 06:01 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts