16.01.2014 Views

Beginning Python - From Novice to Professional

Beginning Python - From Novice to Professional

Beginning Python - From Novice to Professional

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

■INDEX<br />

583<br />

■F<br />

Fac<strong>to</strong>ry class<br />

twisted.internet.pro<strong>to</strong>col module 309<br />

fail method<br />

TestCase class 348<br />

failIf method<br />

TestCase class 348<br />

failIfAlmostEqual method<br />

TestCase class 348<br />

failIfEqual method<br />

TestCase class 348<br />

failUnless method<br />

TestCase class 348<br />

failUnlessAlmostEqual method<br />

TestCase class 348<br />

failUnlessEqual method<br />

TestCase class 348<br />

failUnlessRaises method<br />

TestCase class 348<br />

Fault class<br />

xmlrpclib module 510<br />

fetchall method<br />

cursor object 289, 486, 488<br />

fetchmany method<br />

cursor object 289<br />

fetchone method<br />

cursor object 289, 486<br />

Fibonacci numbers computation<br />

example of using abstraction 109–110<br />

field width<br />

conversion specifiers 57, 58<br />

file function 559<br />

file itera<strong>to</strong>rs 266–267<br />

file object<br />

close method 261<br />

read and write methods 258<br />

reading and writing lines 260–261<br />

seek and tell methods 260<br />

file sharing project<br />

adding GUI 517<br />

first implementation 518–521<br />

further exploration 525<br />

goals 517<br />

preparations 518<br />

second implementation 521–525<br />

<strong>to</strong>ols 517<br />

file sharing with XML-RPC 499<br />

first implementation 501–508<br />

further exploration 516<br />

goals 500<br />

preparations 501<br />

problem 499–500<br />

second implementation 509<br />

client interface 509–510<br />

exceptions 510<br />

trying it out 511–516<br />

validating file names 510–511<br />

<strong>to</strong>ols 501<br />

fileinput module 219<br />

example 220–221<br />

functions 219<br />

lazy line iteration 265<br />

file-like objects 255<br />

filelineno function<br />

fileinput module 219<br />

filename function<br />

fileinput module 219<br />

files 255<br />

basic methods 257<br />

examples 262–263<br />

reading and writing 258–260<br />

reading and writing lines 260–261<br />

closing 261<br />

iterating over file contents 263<br />

byte by byte 264<br />

file itera<strong>to</strong>rs 266–267<br />

lazy line iteration 265

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!