ラベル Head First Python の投稿を表示しています。 すべての投稿を表示
ラベル Head First Python の投稿を表示しています。 すべての投稿を表示

1/24/2011

[読書]Head First Python 読んでみる。 Chapter3

Chapter3は File & Exception : Dealing with Errors.


全章通じてそうだけど、小さな例題アプリを少しづつ、お話と共に作りながら進んでいく形式。
いつもながらこのHead Firstのやり方はうまい。猫でもわかるようになっている。

ただ、猫でない人にとっては冗長、そういう人は対象読者ではないにしても。

英語を読み進めるスピードが遅いのと、オンラインで読んでいるせいもあって
だんだん、面倒になってきたぞ。どんどん飛ばして読んでもいいのだが。。うーむ。

この内容ならこの章は2~3ページでいいじゃない。というのは野暮なのでしょう。たぶん。

もうちょっと頑張ってみよう。

    1/16/2011

    [読書]Head First Python 読んでみる。 Chapter2

    Head First Python 読んでみる。 Chapter2


    読書記録としてはWikiの方がよいのだろうけど、続かなそうなので。。
    この心理的作用はなんだんだろう?お手軽だから?うーん。

    Chapter 2 はモジュール作成から配布を中心に、名前空間など書いてある。
    この段階からPyPIの使い方が書かれているのは良いことなんだと思う。

    • How to distribution the own Python Modules.
    • How to use the Python Package Index ("PyPI"). Registration, Upload Module, Update Module.
    • Python Name Space. Main name space is known __main__.
    1. A module is a text file that contains Python code.
    2. We can use the distribution utilities to turn own module into a shareable package.
    3. The setup.py program provides metadata about your module and is used
      to build, install, and upload your packaged distribution.
    4. The range() BIF can be used with 'for' to iterate a fixed number of times.
    5. Including end=’’ as a argument to the print() BIF switches off its automatic inclusion of a new-line on output.
    6. Arguments to your functions are optional if you provide them with a default value.