Message120922
| Author |
lukasz.langa |
| Recipients |
amaury.forgeotdarc, barry, docs@python, eric.smith, lemburg, lukasz.langa, r.david.murray |
| Date |
2010年11月10日.16:07:49 |
| SpamBayes Score |
1.3319594e-07 |
| Marked as misclassified |
No |
| Message-id |
<1289405381.44.0.108076468519.issue10379@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Please use the deprecation process when possible. That would mean creating an alias for the function you want to remove somewhat like this (taken from configparser):
def readfp(self, fp, filename=None):
"""Deprecated, use read_file instead."""
warnings.warn(
"This method will be removed in future versions. "
"Use 'parser.read_file()' instead.",
PendingDeprecationWarning, stacklevel=2
)
self.read_file(fp, source=filename) |
|