#866: [PATCH] config.py logging enhancement
---------------------------------+------------------------------------------
 Reporter:  [EMAIL PROTECTED]  |        Owner:  anonymous
     Type:  enhancement          |       Status:  closed   
 Priority:  normal               |    Milestone:  1.0b1    
Component:  TurboGears           |      Version:  0.9a6    
 Severity:  normal               |   Resolution:  fixed    
 Keywords:  logging              |  
---------------------------------+------------------------------------------
Comment (by [EMAIL PROTECTED]):

 I'm not too sure about the use of eval(). Sometimes it can't be helped -
 one have to use eval() but most times getattr is better:  Eval is Evil,
 http://diveintomark.org/archives/2002/01/04/eval_is_evil

 Mark also comments that {{{[...]getattr() is also much faster,[...]}}}.
 Now, I won't let my views about the logging package be publicly know. It's
 in stdlib and we're stuck with it.

 Anyway, the {{{handler_obj = cls(*eval(args, logging.__dict__))}}} doesn't
 do anything useful with logging.__dict__.

-- 
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/866>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Tickets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears-tickets
-~----------~----~----~----~------~----~------~--~---

Reply via email to