{"published":"2010-08-09 10:52:31","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","blog_url":"https://methane.hatenablog.jp/","url":"https://methane.hatenablog.jp/entry/20100809/1281318751","image_url":null,"width":"100%","blog_title":"methane\u306e\u30d6\u30ed\u30b0","height":"190","author_name":"methane","description":"Java\u3060\u3068\u3088\u304f\u30d3\u30eb\u30c0\u30fc\u30e1\u30bd\u30c3\u30c9\u3092static\u3067\u5b9a\u7fa9\u3059\u308b\u3051\u3069\u3001Python\u306e\u5834\u5408\u306f\u3067\u304d\u308b\u3060\u3051\u30af\u30e9\u30b9\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u305f\u65b9\u304c\u826f\u3044\u3060\u308d\u3046\u3002 \u4f8b\u3048\u3070\u3001float.fromhex http://docs.python.org/library/stdtypes.html#float.fromhex \u306f\u30af\u30e9\u30b9\u30e1\u30bd\u30c3\u30c9\u306a\u306e\u3067\u3001 >>> class Foo(float): ... pass ... >>> foo = Foo.fromhex('0x1p-1') >>> type(foo) <class '__main__.Foo'> \u30d3\u30eb\u30c0\u30fc\u30e1\u30bd\u30c3\u30c9\u3092\u5b50\u30af\u30e9\u30b9\u3067\u3082\u5229\u7528\u3067\u304d\u308b\u3002 \u3082\u3061\u308d\u3093\u3001\u30d3\u30eb\u30c0\u30fc\u30e1\u30bd\u30c3\u30c9\u304c\u5b50\u30af\u30e9\u30b9\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmethane.hatenablog.jp%2Fentry%2F20100809%2F1281318751\" title=\" \u30d3\u30eb\u30c0\u30fc\u30e1\u30bd\u30c3\u30c9\u3092\u4f5c\u308b\u3068\u304d\u306fstaticmethod\u3088\u308a\u3082classmethod\u3092\u4f7f\u304a\u3046 - methane\u306e\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","title":" \u30d3\u30eb\u30c0\u30fc\u30e1\u30bd\u30c3\u30c9\u3092\u4f5c\u308b\u3068\u304d\u306fstaticmethod\u3088\u308a\u3082classmethod\u3092\u4f7f\u304a\u3046","version":"1.0","categories":["Python"],"author_url":"https://blog.hatena.ne.jp/methane/"}