Showing content from http://mail.python.org/pipermail/python-dev/attachments/20130502/5805052f/attachment.html below:
<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 2, 2013 at 1:39 PM, Barry Warsaw <span dir="ltr"><<a href="mailto:barry@python.org" target="_blank">barry@python.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On May 02, 2013, at 10:18 PM, Georg Brandl wrote:<br>
<br>
>5) accept that convenience-created enums have restrictions such as no<br>
>picklability and point them out in the docs?<br>
<br>
</div>That would work fine for me, but ultimately I'm with Guido. I just don't want<br>
to have to pass the module name in.<br>
</blockquote><div><br></div><div>The problem with (5) is this: you use some library that exports an enumeration, and you want to use pickling. Now you depend on the way the library implemented - if it used the convenience API, you can't pickle. If it used the class API, you can.<br>
<br></div><div>Eli<br></div></div><br></div></div>
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4