[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-bugs] #5367 [BridgeDB]: python gotcha: mutable type in __init__()



#5367: python gotcha: mutable type in __init__()
----------------------+-----------------------------------------------------
 Reporter:  aagbsn    |          Owner:  aagbsn
     Type:  defect    |         Status:  new   
 Priority:  normal    |      Milestone:        
Component:  BridgeDB  |        Version:        
 Keywords:            |         Parent:        
   Points:            |   Actualpoints:        
----------------------+-----------------------------------------------------
 In Server.py:53

 http://www.ferg.org/projects/python_gotchas.html

 __init__ arguments are parsed only once, so the same list will be shared
 with _all_ instance objects.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/5367>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs