Message141976
| Author |
eric.araujo |
| Recipients |
David.Townshend, eric.araujo |
| Date |
2011年08月12日.17:39:31 |
| SpamBayes Score |
1.2060605e-06 |
| Marked as misclassified |
No |
| Message-id |
<1313170772.45.0.47993307646.issue12741@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
About new function vs. new argument: this could be asked on python-dev (or on the core-mentorship list if you prefer an environment guaranteed friendly). If you look at copy and copy2, you’ll see that adding a function was chosen, but the names are not helpful at all. In more recent shutil development, arguments like copy_function and ignore (on copytree) were added to let people customize behavior without rewriting all the function logic. Guido van Rossum has a rule about not adding an argument when the value is always a constant, preferring another function instead, but I’m not sure I remember it clearly, so asking for other developers’ thoughts would be good. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年08月12日 17:39:32 | eric.araujo | set | recipients:
+ eric.araujo, David.Townshend |
| 2011年08月12日 17:39:32 | eric.araujo | set | messageid: <1313170772.45.0.47993307646.issue12741@psf.upfronthosting.co.za> |
| 2011年08月12日 17:39:31 | eric.araujo | link | issue12741 messages |
| 2011年08月12日 17:39:31 | eric.araujo | create |
|