{"id":739,"date":"2015-01-30T20:50:37","date_gmt":"2015-01-30T11:50:37","guid":{"rendered":"https:\/\/blog.ymyzk.com\/?p=739"},"modified":"2015-11-08T03:57:54","modified_gmt":"2015-11-07T18:57:54","slug":"python-backports","status":"publish","type":"post","link":"https:\/\/blog.ymyzk.com\/2015\/01\/python-backports\/","title":{"rendered":"Python \u3067\u5229\u7528\u51fa\u6765\u308b\u30d0\u30c3\u30af\u30dd\u30fc\u30c8\u306e\u307e\u3068\u3081"},"content":{"rendered":"
Python \u306f\u73fe\u5728 3.x \u7cfb\u306e\u958b\u767a\u304c\u9032\u3081\u3089\u308c\u3066\u3044\u307e\u3059\u304c, 3.x \u3067\u5c0e\u5165\u3055\u308c\u305f\u65b0\u3057\u3044\u6a5f\u80fd\u3084\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u53e4\u3044 3.x \u7cfb\u3084 2.x \u7cfb\u3067\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b, \u516c\u5f0f\u3084\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u30fc\u306b\u3088\u3063\u3066\u30d0\u30c3\u30af\u30dd\u30fc\u30c8 (backport) \u3055\u308c\u3066\u3044\u308b\u3082\u306e\u304c\u3042\u308a\u307e\u3059. \u3053\u306e\u8a18\u4e8b\u3067\u306f\u305d\u306e\u3088\u3046\u306a\u30d0\u30c3\u30af\u30dd\u30fc\u30c8\u3092\u307e\u3068\u3081\u307e\u3059.<\/p>\n
<\/p>\n
\u65b0\u3057\u3044\u3082\u306e\u306b\u3064\u3044\u3066\u512a\u5148\u7684\u306b\u63b2\u8f09\u3057\u3066\u3044\u307e\u3059. \u30ea\u30b9\u30c8\u306f\u968f\u6642\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3057\u3066\u3044\u304f\u4e88\u5b9a\u3067\u3059.<\/p>\n
Python 2\u7cfb\u3067 print \u95a2\u6570\u3092\u7528\u3044\u305f\u308a, \u30e6\u30cb\u30b3\u30fc\u30c9\u6587\u5b57\u5217\u3092\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u5229\u7528\u3057\u305f\u308a\u3059\u308b\u3053\u3068\u51fa\u6765\u307e\u3059. \u8a73\u7d30\u306f\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u53c2\u7167\u3057\u3066\u4e0b\u3055\u3044.<\/p>\n
PEP 477<\/a> \u306b\u3088\u308a, Python 2 \u7cfb\u306b\u30d0\u30c3\u30af\u30dd\u30fc\u30c8\u3055\u308c\u307e\u3057\u305f.<\/p>\n \u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u30fc\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u306a\u3063\u305f\u6a21\u69d8.<\/p>\n PEP 3144<\/a> \u3067\u5c0e\u5165\u3055\u308c\u307e\u3057\u305f. py2-ipaddress \u306f\u5168\u3066\u306e\u6a5f\u80fd\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u308b\u308f\u3051\u3067\u306f\u306a\u3044\u3088\u3046\u3067\u3059.<\/p>\n Google \u3067\u5229\u7528\u3055\u308c\u3066\u3044\u308b\u5b9f\u88c5\u304c\u3082\u3068\u306b\u306a\u3063\u3066\u304a\u308a, ipaddr.py<\/a> \u3068\u3057\u3066\u73fe\u5728\u3082 ipaddress \u3068\u306f\u5225\u306b\u958b\u767a\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u3067\u3059.<\/p>\n \u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u30fc\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u306a\u308a\u307e\u3057\u305f. (PEP 428<\/a>)<\/p>\n asyncio<\/a> \u306e\u30d0\u30c3\u30af\u30dd\u30fc\u30c8\u306b\u542b\u307e\u308c\u3066\u3044\u307e\u3059. PyPI \u306b\u306f\u767b\u9332\u3055\u308c\u3066\u3044\u307e\u305b\u3093.<\/p>\n \u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u30fc\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u306a\u308a\u307e\u3057\u305f.<\/p>\n","protected":false},"excerpt":{"rendered":" Python \u306f\u73fe\u5728 3.x \u7cfb\u306e\u958b\u767a\u304c\u9032\u3081\u3089\u308c\u3066\u3044\u307e\u3059\u304c, 3.x \u3067\u5c0e\u5165\u3055\u308c\u305f\u65b0\u3057\u3044\u6a5f\u80fd\u3084\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u53e4\u3044 3.x \u7cfb\u3084 2.x \u7cfb\u3067\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b, \u516c\u5f0f\u3084\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u30fc\u306b\u3088\u3063\u3066\u30d0\u30c3\u30af\u30dd\u30fc\u30c8 (backport […]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26,3],"tags":[15],"_links":{"self":[{"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/posts\/739"}],"collection":[{"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/comments?post=739"}],"version-history":[{"count":26,"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/posts\/739\/revisions"}],"predecessor-version":[{"id":1137,"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/posts\/739\/revisions\/1137"}],"wp:attachment":[{"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/media?parent=739"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/categories?post=739"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/tags?post=739"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}faulthandler<\/h2>\n
\n
functools.singledispatch<\/h2>\n
\n
ipaddress<\/h2>\n
\n
lzma<\/h2>\n
\n
pathlib<\/h2>\n
\n
selectors<\/h2>\n
\n
asyncio.selectors<\/code> \u307e\u305f\u306f
trollius.selectors<\/code>.<\/p>\n
statistics<\/h2>\n
\n
tracemalloc<\/h2>\n
\n
unittest.mock<\/h2>\n
\n