{"id":1247,"date":"2019-08-31T20:17:16","date_gmt":"2019-08-31T11:17:16","guid":{"rendered":"https:\/\/ujicya.jp\/wordpress\/?p=1247"},"modified":"2019-08-31T20:27:45","modified_gmt":"2019-08-31T11:27:45","slug":"news-of-python3-8-0b4","status":"publish","type":"post","link":"https:\/\/ujicya.jp\/blog-mapping\/news-of-python3-8-0b4\/","title":{"rendered":"Python 3.8.0 beta4\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f"},"content":{"rendered":"\n<p>Python3.8.0\u306e\u6700\u5f8c\u306ebeta\u7248\u304c8\u670829\u65e5\u306b\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f\uff0e<\/p>\n\n\n\n<p>\u516c\u5f0f\u30cb\u30e5\u30fc\u30b9\uff1a<a href=\"https:\/\/www.python.org\/downloads\/release\/python-380b4\/\">python.org<\/a><\/p>\n\n\n\n<p>\u73fe\u5728\u306e\u6b63\u5f0f\u6700\u65b0\u30ea\u30ea\u30fc\u30b9\u306f3.7.4\u3067\u3042\u308a\uff0c\u6b21\u56de\u306e\u30e1\u30b8\u30e3\u30fc\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3067\u3069\u306e\u3088\u3046\u306a\u5909\u66f4\u304c\u3055\u308c\u308b\u306e\u304b\u6c17\u306b\u306a\u308b\u3068\u3053\u308d\u3067\u3059\uff0e<\/p>\n\n\n\n<p>\u4eca\u56de\u306f\u307e\u3060beta\u3067\u3059\u304c\uff0c\u3060\u3044\u305f\u3044\u306e\u5909\u66f4\u70b9\u306f\u3064\u304b\u3081\u308b\u3068\u601d\u3046\u306e\u3067\uff0c\u307e\u3068\u3081\u3066\u307f\u307e\u3059\uff0e<\/p>\n\n\n\n<h2>3.8\u306e\u4e3b\u306a\u65b0\u6a5f\u80fd\u3068\u5909\u66f4\u70b9<\/h2>\n\n\n\n<ul><li><a href=\"https:\/\/www.python.org\/dev\/peps\/pep-0572\/\">PEP 572<\/a>\u3001\u4ee3\u5165\u5f0f<\/li><li><a href=\"https:\/\/www.python.org\/dev\/peps\/pep-0570\/\">PEP 570<\/a>\u3001\u4f4d\u7f6e\u306e\u307f\u306e\u5f15\u6570\uff08\u30d1\u30e9\u30e1\u30fc\u30bf\uff09<\/li><li><a href=\"https:\/\/www.python.org\/dev\/peps\/pep-0587\/\">PEP 587<\/a>\u3001Python\u521d\u671f\u5316\u8a2d\u5b9a\uff08\u57cb\u3081\u8fbc\u307f\u306e\u6539\u5584\uff09<\/li><li><a href=\"https:\/\/www.python.org\/dev\/peps\/pep-0590\/\">PEP 590<\/a>\u3001Vectorcall\uff1aCPython\u306e\u9ad8\u901f\u547c\u3073\u51fa\u3057\u30d7\u30ed\u30c8\u30b3\u30eb<\/li><li><a href=\"https:\/\/www.python.org\/dev\/peps\/pep-0578\">PEP 578<\/a>\u3001\u30e9\u30f3\u30bf\u30a4\u30e0\u76e3\u67fb\u30d5\u30c3\u30af<\/li><li><a href=\"https:\/\/www.python.org\/dev\/peps\/pep-0574\">PEP 574<\/a>\u3001\u5e2f\u57df\u5916\u30c7\u30fc\u30bf\u3092\u4f7f\u7528\u3059\u308bPickle\u30d7\u30ed\u30c8\u30b3\u30eb5<\/li><li>\u5165\u529b\u95a2\u9023\uff1a<a href=\"https:\/\/www.python.org\/dev\/peps\/pep-0591\">PEP 591<\/a>\uff08\u6700\u7d42\u4fee\u98fe\u5b50\uff09\u3001<a href=\"https:\/\/www.python.org\/dev\/peps\/pep-0586\">PEP 586<\/a>\uff08\u30ea\u30c6\u30e9\u30eb\u578b\uff09\u3001\u304a\u3088\u3073<a href=\"https:\/\/www.python.org\/dev\/peps\/pep-0589\">PEP 589<\/a>\uff08TypedDict\uff09<\/li><li>\u30b3\u30f3\u30d1\u30a4\u30eb\u6e08\u307f\u30d0\u30a4\u30c8\u30b3\u30fc\u30c9\u7528\u306e\u4e26\u5217\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u30ad\u30e3\u30c3\u30b7\u30e5<\/li><li>\u30c7\u30d0\u30c3\u30b0\u30d3\u30eb\u30c9\u306f\u30ea\u30ea\u30fc\u30b9\u30d3\u30eb\u30c9\u3068\u3057\u3066ABI\u3092\u5171\u6709\u3057\u307e\u3059<\/li><li>f-strings&nbsp;<code>=<\/code>\u306f\u30c7\u30d0\u30c3\u30b0\u7528\u306e\u4fbf\u5229\u306a\u6307\u5b9a\u5b50\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u307e\u3059<\/li><li><code>continue<\/code>\u304cfinally:\u30d6\u30ed\u30c3\u30af\u3067\u4f7f\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f<\/li><li>Windows\u3067\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e<code>asyncio<\/code>\u30a4\u30d9\u30f3\u30c8\u30eb\u30fc\u30d7\u306f<code>ProactorEventLoop<\/code>\u306b\u306a\u308a\u307e\u3059<\/li><li>macOS\u306b\u304a\u3044\u3066\u3001<em>spawn<\/em>&nbsp;start\u30e1\u30bd\u30c3\u30c9\u304cmultiprocessing\u3067\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u4f7f\u7528\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f<\/li><li><code>multiprocessing<\/code>&nbsp;\u5171\u6709\u30e1\u30e2\u30ea\u30bb\u30b0\u30e1\u30f3\u30c8\u3092\u4f7f\u7528\u3057\u3066\u3001\u30d7\u30ed\u30bb\u30b9\u9593\u306e\u9178\u6d17\u30b3\u30b9\u30c8\u3092\u56de\u907f\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f<\/li><li><code>typed_ast<\/code>&nbsp;\u306fCPython\u306b\u30de\u30fc\u30b8\u3055\u308c\u307e\u3059<\/li><li><code>LOAD_GLOBAL<\/code>&nbsp;\u306f40\uff05\u9ad8\u901f\u306b\u306a\u308a\u307e\u3057\u305f<\/li><li><code>pickle<\/code>&nbsp;\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u30d7\u30ed\u30c8\u30b3\u30eb4\u3092\u4f7f\u7528\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u5411\u4e0a\u3057\u307e\u3057\u305f<\/li><\/ul>\n\n\n\n<p>Google\u7ffb\u8a33\u69d8\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059w<\/p>\n\n\n\n<h2>\u500b\u5225\u89e3\u8aac<\/h2>\n\n\n\n<p>\u500b\u4eba\u7684\u306b\u9762\u767d\u305d\u3046\u3060\u3068\u601d\u3063\u305f\u3082\u306e\u3060\u3051\u53d6\u308a\u4e0a\u3052\u307e\u3057\u305f\uff0e<\/p>\n\n\n\n<h3>\u4ee3\u5165\u5f0f\uff08Assignment expressions\uff09<\/h3>\n\n\n\n<p>\u3053\u306e\u6a5f\u80fd\u306b\u3064\u3044\u3066\u306f\uff0c\u65e2\u306bQiita\u306b\u826f\u8a18\u4e8b\u304c\u51fa\u3066\u3044\u307e\u3059\u306e\u3067\uff0c\u8a73\u3057\u304f\u306f<a href=\"https:\/\/qiita.com\/ksato9700\/items\/d37efc6982365e24f6af\">\u3053\u3061\u3089<\/a>\u3092\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\uff0e<\/p>\n\n\n\n<p>\u7c21\u5358\u306b\u8a00\u3046\u3068\uff0c\u300c:=\u300d\u3068\u3044\u3046\u6f14\u7b97\u5b50\u306b\u3088\u3063\u3066\uff0c\u5f0f\u5185\u3067\u5909\u6570\u3078\u306e\u4ee3\u5165\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\uff0e<\/p>\n\n\n\n<p>\u3053\u308c\u307e\u3067\u306e\u300c=\u300d\u6f14\u7b97\u5b50\u306b\u3088\u308b\u4ee3\u5165\u6587\u306b\u52a0\u3048\uff0c\u5024\u3092\u8fd4\u3059\u5f0f\u306e\u4e2d\u3067\u4ee3\u5165\u304c\u3067\u304d\u307e\u3059\uff0e<\/p>\n\n\n\n<p>\u3053\u308c\u306b\u3088\u308a\uff0c\u3088\u308a\u5c11\u306a\u3044\u884c\u6570\u3067\u51e6\u7406\u304c\u66f8\u3051\u308b\u3088\u3046\u306b\u306a\u308b\u3088\u3046\u3067\u3059\uff0e<\/p>\n\n\n\n<p>\u4f8b\u3048\u3070\uff0c\uff0c\uff0c<\/p>\n\n\n\n<pre class=\"wp-block-luxe-blocks-syntaxhighlighter line-numbers language-python\"><code class=\"language-python\">ans = input()\nif ans == \"Yes\":\n    print(ans, \"Takasu clinic!\")\nelse:\n    print(\"Love your original face!\")<\/code><\/pre>\n\n\n\n<p>\u3068\u3044\u3046\u6761\u4ef6\u6587\u3092\uff0c<\/p>\n\n\n\n<pre class=\"wp-block-luxe-blocks-syntaxhighlighter line-numbers language-python\"><code class=\"language-python\">if (ans := input()) == \"Yes\":\n    print(ans, \"Takasu clinic!\")\nelse:\n    print(\"Love your original face!\")<\/code><\/pre>\n\n\n\n<p>\u3068\u3044\u3046\u3088\u3046\u306b\u66f8\u3051\u307e\u3059\uff0e<\/p>\n\n\n\n<p>\u3053\u3093\u306a\u30a2\u30db\u306a\u4f8b\u306b\u9650\u3089\u305a\uff0c\u304b\u306a\u308a\u5fdc\u7528\u7bc4\u56f2\u306f\u5e83\u305d\u3046\u3067\u3059\uff0e<\/p>\n\n\n\n<h3>\u4f4d\u7f6e\u306e\u307f\u306e\u5f15\u6570\uff08Positional-only arguments\uff09<\/h3>\n\n\n\n<p>\u95a2\u6570\u5b9a\u7fa9\u306b\u304a\u3044\u3066\uff0c\u5f15\u6570\u306e\u9806\u756a\u3092\u56fa\u5b9a\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\uff0e<\/p>\n\n\n\n<p>\u3053\u308c\u306b\u3088\u308a\uff0c\u95a2\u6570\u547c\u3073\u51fa\u3057\u306e\u969b\u306e\u30ad\u30fc\u30ef\u30fc\u30c9\u547c\u3073\u51fa\u3057\u3092\u9632\u6b62\u3067\u304d\u307e\u3059\uff0e<\/p>\n\n\n\n<p>\u4f8b\u3048\u3070<\/p>\n\n\n\n<pre class=\"wp-block-luxe-blocks-syntaxhighlighter line-numbers language-python\"><code class=\"language-python\">def example1(a,b):\n    print(a,b)<\/code><\/pre>\n\n\n\n<p>\u3068\u3044\u3046\u95a2\u6570\u3092\u5b9a\u7fa9\u3057\u307e\u3059\uff0e<\/p>\n\n\n\n<p>\u3053\u306e\u95a2\u6570\u306f\u6b21\u306e\u3088\u3046\u306b\u547c\u3073\u51fa\u305b\u307e\u3059\uff0e<\/p>\n\n\n\n<pre class=\"wp-block-luxe-blocks-syntaxhighlighter line-numbers language-python\"><code class=\"language-python\">example1(1,2)      ## 1 2\nexample1(a=1, b=2) ## 1 2\nexample1(b=1, a=2) ## 2 1<\/code><\/pre>\n\n\n\n<p>\u65b0\u6a5f\u80fd\u3092\u4f7f\u3046\u3068\uff0c3\u756a\u76ee\u306e\u547c\u3073\u51fa\u3057\u65b9\u304c\u3067\u304d\u306a\u304f\u306a\u308a\u307e\u3059\uff0e<\/p>\n\n\n\n<p>\u65b0\u6a5f\u80fd\u3092\u7528\u3044\u305f\u95a2\u6570\u5b9a\u7fa9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\uff0e<\/p>\n\n\n\n<pre class=\"wp-block-luxe-blocks-syntaxhighlighter line-numbers language-python\"><code class=\"language-python\">def example2(a,b,\/):\n    print(a,b)<\/code><\/pre>\n\n\n\n<p>example1\u3068\u306e\u9055\u3044\u306f\uff0c\u5f15\u6570\u306e\u6700\u5f8c\u306b\u300c\/\u300d\u304c\u3064\u3044\u3066\u3044\u308b\u3053\u3068\u3067\u3059\uff0e<\/p>\n\n\n\n<p>\u3053\u308c\u3092\u4ed8\u3051\u308b\u3053\u3068\u306b\u3088\u308a\uff0c\u305d\u308c\u3088\u308a\u524d\u306b\uff08\u5de6\u3067\uff09\u5b9a\u7fa9\u3057\u305f\u5f15\u6570\u306f\uff0c\u547c\u3073\u51fa\u3057\u306e\u969b\u306b\u9806\u756a\u304c\u56fa\u5b9a\u3055\u308c\u307e\u3059\uff0e<\/p>\n\n\n\n<p>\u3057\u305f\u304c\u3063\u3066\uff0c\u5148\u307b\u3069\u306e\u4f8b\u3067\u306f\u3053\u3046\u306a\u308a\u307e\u3059\uff0e<\/p>\n\n\n\n<pre class=\"wp-block-luxe-blocks-syntaxhighlighter line-numbers language-python\"><code class=\"language-python\">example2(1,2)      ## 1 2\nexample2(a=1, b=2) ## 1 2\nexample2(b=1, a=2) ## TypeError\uff08\u8a73\u7d30\u306f\u6b21\u306e\u30d6\u30ed\u30c3\u30af\uff09<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-luxe-blocks-syntaxhighlighter line-numbers language-python\"><code class=\"language-python\">TypeError: example2() got some positional-only arguments passed as keyword arguments: 'a, b'<\/code><\/pre>\n\n\n\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n\n\n\n<p>\u79c1\u306f\u7279\u306b\u300c\u4ee3\u5165\u5f0f\u300d\u304c\u9762\u767d\u3044\u3068\u601d\u3044\u307e\u3057\u305f\uff01<\/p>\n\n\n\n<p>\u672c\u65e5\u306f\u3053\u3053\u307e\u3067\u3067\u3059\uff0e<\/p>\n\n\n\n<p>\u6b21\u306e\u30d7\u30ec\u30ea\u30ea\u30fc\u30b9\uff08Python 3.8.0c1\uff09\u306f9\u670830\u65e5\u516c\u958b\u3068\u306e\u3053\u3068\u3067\uff0c\u3053\u308c\u304b\u3089\u3082\u6ce8\u76ee\u3057\u3066\u3044\u304d\u305f\u3044\u3067\u3059\uff0e<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Python3.8.0\u306e\u6700\u5f8c\u306ebeta\u7248\u304c8\u670829\u65e5\u306b\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f\uff0e \u516c\u5f0f\u30cb\u30e5\u30fc\u30b9\uff1apython.org \u73fe\u5728\u306e\u6b63\u5f0f\u6700\u65b0\u30ea\u30ea\u30fc\u30b9\u306f3.7.4\u3067\u3042\u308a\uff0c\u6b21\u56de\u306e\u30e1\u30b8\u30e3\u30fc\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3067\u3069\u306e\u3088\u3046\u306a\u5909\u66f4\u304c\u3055\u308c\u308b\u306e\u304b\u6c17\u306b\u306a\u308b\u3068\u3053 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[19],"_links":{"self":[{"href":"https:\/\/ujicya.jp\/blog-mapping\/wp-json\/wp\/v2\/posts\/1247"}],"collection":[{"href":"https:\/\/ujicya.jp\/blog-mapping\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ujicya.jp\/blog-mapping\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ujicya.jp\/blog-mapping\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ujicya.jp\/blog-mapping\/wp-json\/wp\/v2\/comments?post=1247"}],"version-history":[{"count":0,"href":"https:\/\/ujicya.jp\/blog-mapping\/wp-json\/wp\/v2\/posts\/1247\/revisions"}],"wp:attachment":[{"href":"https:\/\/ujicya.jp\/blog-mapping\/wp-json\/wp\/v2\/media?parent=1247"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ujicya.jp\/blog-mapping\/wp-json\/wp\/v2\/categories?post=1247"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ujicya.jp\/blog-mapping\/wp-json\/wp\/v2\/tags?post=1247"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}