Message261583
| Author |
ethan.furman |
| Recipients |
Devyn Johnson, ethan.furman |
| Date |
2016年03月11日.17:25:53 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1457717154.18.0.647187111827.issue26540@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
That particular use-case is easily handled by simply creating the correct function/method based on the criterion:
if py_ver < 3.6:
def fribbletz():
# do something in a 3.0-3.5 compatible way
else:
def fribbletz():
# otherwise use 3.6 methods
One possible up-side would by if macros were able to allow not erroring out when new syntax was used in the False branch; but really, we add new syntax so rarely even that is probably not worth it. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2016年03月11日 17:25:54 | ethan.furman | set | recipients:
+ ethan.furman, Devyn Johnson |
| 2016年03月11日 17:25:54 | ethan.furman | set | messageid: <1457717154.18.0.647187111827.issue26540@psf.upfronthosting.co.za> |
| 2016年03月11日 17:25:54 | ethan.furman | link | issue26540 messages |
| 2016年03月11日 17:25:53 | ethan.furman | create |
|