Improvements to deprecated#196
Conversation
pberkes
commented
Jun 11, 2014
- Raises a DeprecationWarning
- Function to clear up the global cache
|
Ready for review. |
|
This is a more drastic change, but how about we simply issue the |
|
@mdickinson I'm not sure if the logs are a wanted feature or not. Myself, I won't miss them |
|
Looking at this again, we should definitely remove the caching machinery: as a library, Traits should simply emit the warning and/or log message unconditionally. If an application using Traits only wants to see the first occurrence of a particular warning or log message, then that application should configure warnings or logging appropriately. That leaves the question of whether we should be issuing logs or warnings or both for deprecated machinery: I think we should just issue the warnings. That's the standard Python way to warn about deprecations. |
|
See #220 for an alternative proposal. |
|
Closing this in favour of #220, which has now been merged. |