[CentralOH] 2013-04-11 道場

jep200404 at columbus.rr.com jep200404 at columbus.rr.com
Fri Apr 12 16:16:47 CEST 2013


f = open('foo', 'rU')
while True:
    ...
    # if f.readline() == '': # bad style
    # if not len(f.readline()): # bad style
    # if len(f.readline()) == 0: # bad style
    if not f.readline():
        break

https://www.coursera.org/course/programming1

http://en.wikipedia.org/wiki/Magic_Software_Enterprises

http://www.python.org/dev/peps/pep-0008/
Yes:
    if not seq:
    if seq:
No:
    if len(seq):
    if not len(seq):
no:
    if seq == '':

CSV module is great
http://docs.python.org/2/library/csv.
http://pymotw.com/2/csv/
http://www.python.org/dev/peps/pep-0278/

http://pymotw.com/2/contents.html

file.readline() returns empty string at EOF.

https://en.wikipedia.org/wiki/The_New_New_Thing
https://en.wikipedia.org/wiki/James_H._Clark

better keyboards
Model M13 Trackpoint II
https://en.wikipedia.org/wiki/Model_M_keyboard
https://en.wikipedia.org/wiki/Unicomp
http://pckeyboard.com/page/category/EnduraPro
https://en.wikipedia.org/wiki/ZF_Electronics#Cherry_switches
https://en.wikipedia.org/wiki/Pointing_stick
https://en.wikipedia.org/wiki/Happy_Hacking_Keyboard

has bad feel:
https://en.wikipedia.org/wiki/Optimus_Maximus_keyboard

https://en.wikipedia.org/wiki/Sassafras



More information about the CentralOH mailing list