はてなブックマークアプリ

サクサク読めて、
アプリ限定の機能も多数!

アプリで開く

はてなブックマーク

  • はてなブックマークって?
  • アプリ・拡張の紹介
  • ユーザー登録
  • ログイン
  • Hatena

はてなブックマーク

トップへ戻る

  • 総合
    • 人気
    • 新着
    • IT
    • 最新ガジェット
    • 自然科学
    • 経済・金融
    • おもしろ
    • マンガ
    • ゲーム
    • はてなブログ(総合)
  • 一般
    • 人気
    • 新着
    • 社会ニュース
    • 地域
    • 国際
    • 天気
    • グルメ
    • 映画・音楽
    • スポーツ
    • はてな匿名ダイアリー
    • はてなブログ(一般)
  • 世の中
    • 人気
    • 新着
    • 新型コロナウイルス
    • 働き方
    • 生き方
    • 地域
    • 医療・ヘルス
    • 教育
    • はてな匿名ダイアリー
    • はてなブログ(世の中)
  • 政治と経済
    • 人気
    • 新着
    • 政治
    • 経済・金融
    • 企業
    • 仕事・就職
    • マーケット
    • 国際
    • はてなブログ(政治と経済)
  • 暮らし
    • 人気
    • 新着
    • カルチャー・ライフスタイル
    • ファッション
    • 運動・エクササイズ
    • 結婚・子育て
    • 住まい
    • グルメ
    • 相続
    • はてなブログ(暮らし)
    • 掃除・整理整頓
    • 雑貨
    • 買ってよかったもの
    • 旅行
    • アウトドア
    • 趣味
  • 学び
    • 人気
    • 新着
    • 人文科学
    • 社会科学
    • 自然科学
    • 語学
    • ビジネス・経営学
    • デザイン
    • 法律
    • 本・書評
    • 将棋・囲碁
    • はてなブログ(学び)
  • テクノロジー
    • 人気
    • 新着
    • IT
    • セキュリティ技術
    • はてなブログ(テクノロジー)
    • AI・機械学習
    • プログラミング
    • エンジニア
  • おもしろ
    • 人気
    • 新着
    • まとめ
    • ネタ
    • おもしろ
    • これはすごい
    • かわいい
    • 雑学
    • 癒やし
    • はてなブログ(おもしろ)
  • エンタメ
    • 人気
    • 新着
    • スポーツ
    • 映画
    • 音楽
    • アイドル
    • 芸能
    • お笑い
    • サッカー
    • 話題の動画
    • はてなブログ(エンタメ)
  • アニメとゲーム
    • 人気
    • 新着
    • マンガ
    • Webマンガ
    • ゲーム
    • 任天堂
    • PlayStation
    • アニメ
    • バーチャルYouTuber
    • オタクカルチャー
    • はてなブログ(アニメとゲーム)
    • はてなブログ(ゲーム)
  • おすすめ

    ブラックフライデー

『Ned Batchelder』

  • 人気
  • 新着
  • すべて
  • What’s in which Python

    22 users

    nedbatchelder.com

    Created 17 May 2022, last updated 16 August 2025 This is a summary of what features appeared in which versions of Python. Items with a star were introduced with a __future__ import. The Python release cycle is explained in PEP 602. Each release has its own PEP with specific dates, listed here. The Python Developer’s Guide has a page summarizing the release cycles of Python versions. 3.14: expected

    • テクノロジー
    • 2022/05/23 14:29
    • Python
    • 歴史
    • プログラミング
    • あとで読む
    • Deleting code

      3 users

      nedbatchelder.com

      Created 22 December 2002, last updated 6 November 2012 This document is also available in Russian. There’s plenty of information out there about how to write code. Here’s some advice on how to delete code. The best way to delete codeThis may seem obvious, but I guess it isn’t, because of the variety of other ways developers have of deleting code. Here’s how to delete code: Select a section of code

      • テクノロジー
      • 2016/04/22 10:27
      • test
      • ruby
      • GitHub monoculture

        5 users

        nedbatchelder.com

        I continue to notice an unsettling trend: the rise of the GitHub monoculture. More and more, people seem to believe that GitHub is the center of the programming universe. Don’t get me wrong, I love GitHub. It succeeded at capturing and promoting the social aspect of development better than any other site. And git, despite its flaws, is a great version control system. And just to be clear, I am not

        • テクノロジー
        • 2014/05/04 09:25
        • github
        • english
        • article
        • Facts and myths about Python names and values

          5 users

          nedbatchelder.com

          Created 6 July 2013, last updated 26 January 2014 This page is also available in Turkish. The behavior of names and values in Python can be confusing. Like many parts of Python, it has an underlying simplicity that can be hard to discern, especially if you are used to other programming languages. Here I’ll explain how it all works, and present some facts and myths along the way. BTW: I worked this

          • テクノロジー
          • 2013/07/08 20:34
          • Python
          • Stupid languages

            4 users

            nedbatchelder.com

            A popular pastime among programmers is to make fun of programming languages, or at least the one you choose not to use. For example, Gary Bernhardt’s 5-minute talk WAT is all about unexpected behavior, mostly in Javascript. Today brought another example of surprising Javascript behavior: > ['10', '10', '10', '10', '10'].map(parseInt) [ 10, NaN, 2, 3, 4 ] I looked at this and thought, like most oth

            • 暮らし
            • 2013/01/26 18:09
            • javascript
            • I fixed Python!

              3 users

              nedbatchelder.com

              About a month ago, I found a bad-behavior bug in the tokenize standard library module, and with help from Aron Griffis, submitted a patch to fix it. Yesterday was a Python bug day, and Ezio Melotti merged my change, so I have officially contributed to CPython! The bug in tokenize was an obscure case: if the code ends with a line that starts with non-space, then ends with many spaces, and no newlin

              • テクノロジー
              • 2012/11/05 01:10
              • python
              • Pragmatic Unicode

                10 users

                nedbatchelder.com

                Created 10 March 2012 This is a presentation I gave at PyCon 2012. You can read the slides and text on this page, or open the actual presentation in your browser, or watch the video: Also, clicking the slide images will jump into the full presentation at that point. The Symbola font is included, but will have to be downloaded before some of the special symbols will appear. Hi, I’m Ned Batchelder.

                • テクノロジー
                • 2012/07/18 17:33
                • Python
                • unicode
                • Pocket
                • Eval really is dangerous

                  3 users

                  nedbatchelder.com

                  Python has an eval() function which evaluates a string of Python code: This is very powerful, but is also very dangerous if you accept strings to evaluate from untrusted input. Suppose the string being evaluated is “os.system(‘rm -rf /’)” ? It will really start deleting all the files on your computer. (In the examples that follow, I’ll use ‘clear’ instead of ‘rm -rf /’ to prevent accidental foot-s

                  • テクノロジー
                  • 2012/06/13 23:36
                  • Python
                  • Loop Like A Native

                    4 users

                    nedbatchelder.com

                    Created 24 April 2012, last updated 19 March 2013 This is a presentation I gave at PyCon 2013. You can read the slides and text on this page, or open the actual presentation in your browser (use right and left arrows to advance the slides), or watch the video: This talk is billed as Beginner, and sounds like a beginner topic, but I prefer to think of it as Fundamental. Plenty of expert Python prog

                    • テクノロジー
                    • 2012/04/25 23:32
                    • python
                    • Online Python exercises

                      4 users

                      nedbatchelder.com

                      I’ve been thinking about online Python learners. There have been some cool examples of online code exercises, like Nathan’s Javascript Lessons. These are great because they require absolutely no setup, and can run right on the web page that describes the concepts involved. But of course, it’s easy to run Javascript in a browser. What are the options for doing something similar for Python? CodingBa

                      • テクノロジー
                      • 2011/09/20 00:41
                      • Switching Python versions on windows

                        3 users

                        nedbatchelder.com

                        I forget what software first set up these associations, but I have .py files registered with Windows so that they can execute directly. The registry defines .py as a Python.File, which has a shell open command of: "C:\Python24\python.exe" "%1" %* My PATHEXT environment variable includes .py, so the command prompt will attempt to execute .py files, using the registry associations to find the execut

                        • テクノロジー
                        • 2011/06/07 01:10
                        • Python
                        • tips
                        • Windows
                        • Coverage.py — Coverage.py 7.10.6 documentation

                          15 users

                          nedbatchelder.com

                          Coverage.py Coverage.py is a tool for measuring code coverage of Python programs. It monitors your program, noting which parts of the code have been executed, then analyzes the source to identify code that could have been executed but was not. Coverage measurement is typically used to gauge the effectiveness of tests. It can show which parts of your code are being exercised by tests, and which ar

                          • テクノロジー
                          • 2009/11/06 16:16
                          • python
                          • coverage
                          • testing
                          • test
                          • テスト
                          • library
                          • A Whirlwind Excursion through Python C Extensions

                            5 users

                            nedbatchelder.com

                            Created 16 February 2009, last updated 28 January 2021 This is a presentation for PyCon 2009 in Chicago. A video of me presenting it is available on pyvideo.org, or at archive.org, or right here: Python can be extended with extensions written in C. It’s a complex topic, this will be a quick 45 minute introduction. The examples here are toys, meant to demonstrate the structure of an extension. They

                            • テクノロジー
                            • 2009/03/27 17:40
                            • python
                            • Cog — cog 3.6.0 documentation

                              8 users

                              nedbatchelder.com

                              Cog¶ Cog is a content generation tool. It lets you use small bits of Python code in otherwise static files to generate whatever text you need. What does it do?¶ Cog transforms files in a very simple way: it finds chunks of Python code embedded in them, executes the Python code, and inserts its output back into the original file. The file can contain whatever text you like around the Python code. F

                              • テクノロジー
                              • 2008/05/25 21:59
                              • c++
                              • Python
                              • CSS Homer, animated

                                5 users

                                nedbatchelder.com

                                Here’s Román Cortés’ Homer, animated to show the structure. I haven’t done anything to Román’s amazing work other than to annotate the divs with ids and add a bit of jQuery to show them in sequence so that you can see the characters being added one at a time.

                                • 暮らし
                                • 2008/05/02 10:12
                                • css
                                • Neta
                                • これはすごい
                                • The structure of .pyc files

                                  7 users

                                  nedbatchelder.com

                                  I spent some time digging around in the Python code to understand how .pyc files work. It turns out they are fairly simple, then kind of complex. At the simple level, a .pyc file is a binary file containing only three things: A four-byte magic number,A four-byte modification timestamp, andA marshalled code object.The magic number is nothing as cool as cafebabe, it’s simply two bytes that change wi

                                  • テクノロジー
                                  • 2008/04/11 09:12
                                  • Python
                                  • binary
                                  • Coverage.py — Coverage.py 7.10.6 documentation

                                    4 users

                                    nedbatchelder.com

                                    Coverage.py Coverage.py is a tool for measuring code coverage of Python programs. It monitors your program, noting which parts of the code have been executed, then analyzes the source to identify code that could have been executed but was not. Coverage measurement is typically used to gauge the effectiveness of tests. It can show which parts of your code are being exercised by tests, and which ar

                                    • テクノロジー
                                    • 2007/12/21 01:35
                                    • python
                                    • test
                                    • テスト
                                    • Statement coverage for Python

                                      3 users

                                      nedbatchelder.com

                                      This page is orignally from http://www.garethrees.org/2001/12/04/python-coverage, which seems to be defunct. I grabbed the text from archive.org, and present it here for posterity. I've updated the links to point to appropriate pages on this site. 1. Introduction The coverage.py Python module provides statement coverage for Python. It accumulates coverage data over many runs; generates coverage re

                                      • テクノロジー
                                      • 2007/02/19 21:33
                                      • Python
                                      • Programming
                                      • Subversion branching quick start

                                        3 users

                                        nedbatchelder.com

                                        Created 29 October 2006 Many developers are uneasy about branching and merging, even those who consider source control essential. It can be a very complicated process, but it doesn’t have to be, and it is a very powerful way to manage development. Here’s how to get started with branches in Subversion. PrinciplesBranching produces a split in a code stream: different developers can be working in alt

                                        • テクノロジー
                                        • 2006/10/30 09:40
                                        • subversion
                                        • Python parsing tools

                                          7 users

                                          nedbatchelder.com

                                          Created 30 September 2004, last updated 29 December 2012 NOTE: I am no longer updating this page. Michael Bernstein has a copy at Python Parsing Tools that will be easier to keep up-to-date. The python.org wiki also has a page called LanguageParsing.A few years ago, I went looking for Python parsing tools. I spent a long time researching the various options. When I was done, I had a cheat sheet on

                                          • テクノロジー
                                          • 2006/02/02 01:40
                                          • parser
                                          • python

                                          このページはまだ
                                          ブックマークされていません

                                          このページを最初にブックマークしてみませんか?

                                          『Ned Batchelder』の新着エントリーを見る

                                          キーボードショートカット一覧

                                          j次のブックマーク

                                          k前のブックマーク

                                          lあとで読む

                                          eコメント一覧を開く

                                          oページを開く

                                          はてなブックマーク

                                          • 総合
                                          • 一般
                                          • 世の中
                                          • 政治と経済
                                          • 暮らし
                                          • 学び
                                          • テクノロジー
                                          • エンタメ
                                          • アニメとゲーム
                                          • おもしろ
                                          • アプリ・拡張機能
                                          • 開発ブログ
                                          • ヘルプ
                                          • お問い合わせ
                                          • ガイドライン
                                          • 利用規約
                                          • プライバシーポリシー
                                          • 利用者情報の外部送信について
                                          • ガイドライン
                                          • 利用規約
                                          • プライバシーポリシー
                                          • 利用者情報の外部送信について

                                          公式Twitter

                                          • 公式アカウント
                                          • ホットエントリー

                                          はてなのサービス

                                          • はてなブログ
                                          • はてなブログPro
                                          • 人力検索はてな
                                          • はてなブログ タグ
                                          • はてなニュース
                                          • ソレドコ
                                          • App Storeからダウンロード
                                          • Google Playで手に入れよう
                                          Copyright © 2005-2025 Hatena. All Rights Reserved.
                                          設定を変更しましたx