Message189881
| Author |
ethan.furman |
| Recipients |
eli.bendersky, ethan.furman, ncoghlan |
| Date |
2013年05月23日.22:23:35 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1369347815.85.0.931599912228.issue18042@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
This is certainly an effective method, but it places safety off by default. I would rather have a system that was from duplicates by default but had an easy override.
The method I had in place in my original code was something like:
class Color(Enum, options=DUPLICATES):
red = 1
green = 2
blue = 3
grene = 2
Without the DUPLICATES option, the above class would raise an error. Safe(r) by default, easy override.
If my suggestion doesn't fly, we should definitely put Nick's in. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2013年05月23日 22:23:35 | ethan.furman | set | recipients:
+ ethan.furman, ncoghlan, eli.bendersky |
| 2013年05月23日 22:23:35 | ethan.furman | set | messageid: <1369347815.85.0.931599912228.issue18042@psf.upfronthosting.co.za> |
| 2013年05月23日 22:23:35 | ethan.furman | link | issue18042 messages |
| 2013年05月23日 22:23:35 | ethan.furman | create |
|