Re: Core Python Programming . . .

2008-01-23 Thread FireNWater
ey > > ps. since you're on p. 248, there is also a typo in the piece of code > right above this exercise, Example 6.4, which is tied to exercise > 6-7. "'fac_list'" should really be "`fac_list`", or even better, > "repr(fac_list)". see

Re: Core Python Programming . . .

2008-01-22 Thread wesley chun
;'fac_list'" should really be "`fac_list`", or even better, "repr(fac_list)". see the Errata at the book's website http://corepython.com for more details. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "Core Python Programming",

Re: Core Python Programming . . .

2008-01-20 Thread Jorgen Grahn
On Sat, 19 Jan 2008 08:57:24 -0500, Yu-Xi Lim <[EMAIL PROTECTED]> wrote: > FireNWater wrote: > >> I guess I'm not fully up to speed on what constitutes an IP address. >> Does the term 'octet' refer to an 8-bit (xFF) number? > > Yes, it somewhat archaic though. It's more precise than byte, like you

Re: Core Python Programming . . .

2008-01-19 Thread Yu-Xi Lim
FireNWater wrote: > I guess I'm not fully up to speed on what constitutes an IP address. > Does the term 'octet' refer to an 8-bit (xFF) number? Yes, it somewhat archaic though. It's used when "byte" is ambiguous. On some ancient (by computing standards) computers, the size of a byte may be as

Re: Core Python Programming . . .

2008-01-19 Thread FireNWater
On Jan 18, 6:00 pm, Yu-Xi Lim <[EMAIL PROTECTED]> wrote: > Mike Driscoll wrote: > > > 6-11 Conversion. > > (a) Create a program that will convert from an integer to an > > Internet Protocol (IP) address in the four-octet format of WWW.XXX.YYY.ZZZ > > (b) Update your program to be able to do the

Re: Core Python Programming . . .

2008-01-18 Thread Yu-Xi Lim
Mike Driscoll wrote: > > 6-11 Conversion. > (a) Create a program that will convert from an integer to an > Internet Protocol (IP) address in the four-octet format of WWW.XXX.YYY.ZZZ > (b) Update your program to be able to do the vice verse of the > above. I think it's is asking to convert a 3

Re: Core Python Programming . . .

2008-01-18 Thread Mike Driscoll
On Jan 18, 1:55 pm, Paul Rubin wrote: > FireNWater <[EMAIL PROTECTED]> writes: > > 1) convert a 4-digit Integer (WXYZ) to an IP address (WWW.XXX.YYY.ZZZ) > > > or > > > 2) convert an 8-digit Integer (WWWXXXYYYZZZ) to (WWW.XXX.YYY.ZZZ) > > > Thanks for anyone with the clue

Re: Core Python Programming . . .

2008-01-18 Thread Paul Rubin
FireNWater <[EMAIL PROTECTED]> writes: > 1) convert a 4-digit Integer (WXYZ) to an IP address (WWW.XXX.YYY.ZZZ) > > or > > 2) convert an 8-digit Integer (WWWXXXYYYZZZ) to (WWW.XXX.YYY.ZZZ) > > Thanks for anyone with the clue!!! Without being able to see the exercise I suspect it's turn a 4-byte

Core Python Programming . . .

2008-01-18 Thread FireNWater
I'm working my way thru the book "Core Python Programming" 2d Edition - Wesley Chun. . . Trying to figure out what he's looking for on Page 248, Exercise 6-11 (a). Is it supposed to be: 1) convert a 4-digit Integer (WXYZ) to an IP address (WWW.XXX.YYY.ZZZ) or 2) conver

Re: Observation on "Core Python Programming"

2006-10-30 Thread wesley chun
sn't matter if it is the smallest grammatical edit, errors in the code, or just plain wrong or misleading information. don't believe everything you read! (sometimes writing at 2, 3, and 4a in the morning does something to your writing when you're trying to tackle a publisher

Re: Observation on "Core Python Programming"

2006-10-30 Thread John Salerno
John Coleman wrote: > John Coleman wrote: >> John Salerno wrote: >>> John Coleman wrote: >>>> Greetings, >>>> My copy of the second edition of Chun's "Core Python Programming" >>>> just arrived from Amazon on Friday. >&g

Re: Observation on "Core Python Programming"

2006-10-30 Thread John Coleman
John Coleman wrote: > John Salerno wrote: > > John Coleman wrote: > > > Greetings, > > >My copy of the second edition of Chun's "Core Python Programming" > > > just arrived from Amazon on Friday. > > > > Who would you say the book

Re: Observation on "Core Python Programming"

2006-10-30 Thread John Coleman
John Salerno wrote: > John Coleman wrote: > > Greetings, > >My copy of the second edition of Chun's "Core Python Programming" > > just arrived from Amazon on Friday. > > Who would you say the book is aimed at? Advanced programmers? I thought > abo

Re: Observation on "Core Python Programming"

2006-10-30 Thread John Salerno
John Coleman wrote: > Greetings, >My copy of the second edition of Chun's "Core Python Programming" > just arrived from Amazon on Friday. Who would you say the book is aimed at? Advanced programmers? I thought about getting it, but I'm not sure if it will be eith

Re: Observation on "Core Python Programming"

2006-10-29 Thread David Lees
John Coleman wrote: > Greetings, >My copy of the second edition of Chun's "Core Python Programming" > just arrived from Amazon on Friday. What really jumped out at me is an > interesting feature about how it sequences its topics, namely, > (user-defined) func

Re: Observation on "Core Python Programming"

2006-10-29 Thread UrsusMaximus
I must say I find Wesley Chun's explanations to be most understandable. I cant' exactly figure out why yet, but he has a way of explaining something, like, say, decorators, that in minimal words elucidates for me the intent behind why they are useful. That helps me understand how they work. I just

Re: Observation on "Core Python Programming"

2006-10-29 Thread Nick Vatamaniuc
...Skimmed through the previous edition. I don't normally read programming books -- just use the chapters that I need when I need them, unless of course there is a clever plot twist coming up ahead (for ex.: "Next: The revenge of lambdas. Will they stay or will they go?" ;-) Why? Have you read

Re: Observation on "Core Python Programming"

2006-10-29 Thread Nick Vatamaniuc
ns can be passes around just like strings and numbers! > > > > -Nick Vatamaniuc > > > > > > John Coleman wrote: > > > Greetings, > > >My copy of the second edition of Chun's "Core Python Programming" > > > just arrived from

Re: Observation on "Core Python Programming"

2006-10-29 Thread John Coleman
is that functions are first-class objects. In other words > functions can be passes around just like strings and numbers! > > -Nick Vatamaniuc > > > John Coleman wrote: > > Greetings, > >My copy of the second edition of Chun's "Core Python Programming" &g

Re: Observation on "Core Python Programming"

2006-10-29 Thread Fredrik Lundh
Nick Vatamaniuc wrote: > I would consider that an omission. Functions are very important in > Python. I think the user/reader should see the _def_ and _class_ > statement fairly soon in the introduction. The name of the book is > thus somewhat misleading, because functions are at the "core" of >

Re: Observation on "Core Python Programming"

2006-10-29 Thread Nick Vatamaniuc
ings, >My copy of the second edition of Chun's "Core Python Programming" > just arrived from Amazon on Friday. What really jumped out at me is an > interesting feature about how it sequences its topics, namely, > (user-defined) functions are not introduced until cha

Observation on "Core Python Programming"

2006-10-29 Thread John Coleman
Greetings, My copy of the second edition of Chun's "Core Python Programming" just arrived from Amazon on Friday. What really jumped out at me is an interesting feature about how it sequences its topics, namely, (user-defined) functions are not introduced until chapter 11, fully