taskTransport Sample Protocol - Tasks: task #9683, DTest name property problem with...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

task #9683: DTest name property problem with python2.6

Submitter:  lionel duroyon <lduroyon>
Submitted:  Tue 08 Sep 2009 04:48:03 PM UTC
   
 
Category:  DTest Should Start On:  Tue 08 Sep 2009 12:00:00 AM UTC
Should be Finished on:  Thu 01 Oct 2009 12:00:00 AM UTC Priority:  5 - Normal
Status:  In Progress Privacy:  Public
Assigned to:  lduroyon Percent Complete:  90%
Open/Closed:  Open Effort:  0.00

Wed 30 Sep 2009 03:36:36 PM UTC, comment #2: 

to work with python versions <= 2.6 we are now using :

if not "name" in dir(threading.Thread):
    def __getName(self):
        return self.getName()

    name = property(fget=__getName)

lionel duroyon <lduroyon>
Group Member
Tue 08 Sep 2009 04:53:13 PM UTC, comment #1: 

Name property is not defined in python2.5 for threading module whereas it is in python2.6.

dtest-autotest works when we comment
"
#def __getName(self):
#    return self.getName()

#name = property(fget=__getName)
"
in dtester.py

lionel duroyon <lduroyon>
Group Member
Tue 08 Sep 2009 04:48:03 PM UTC, original submission:  

We get a
"
self.getName()
RuntimeError: maximum recursion depth exceeded
"
when running dtest-autotest with python2.6

lionel duroyon <lduroyon>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by lduroyon (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-09-30 lduroyon Percent Complete50% 90%
    2009-09-08 lduroyon Percent Complete40% 50%

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code