Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Python Mystery Theatre -- Episode 2: Así Fue

Reply
Thread Tools

Python Mystery Theatre -- Episode 2: Así Fue

 
 
Chris Reedy
Guest
Posts: n/a
 
      07-15-2003
John Machin wrote:
> Robin Becker <(E-Mail Removed)> wrote in message news:<m4UoZJA308E$(E-Mail Removed)>...
>
>> [snip]
>>
>>I know that it's in microsoft
>>
>>the print width description contains
>>
>>[snip]

>
>
> It's pretty much bog-standard C. E.g. K&R2, appendix B, section 1.2
> says:
> [snip]


Just for reference purposes: This behavior is part of the C-standard.
See section 7.19.6.1, "The fprintf function", in ISO/IEC 9899:1999.

 
Reply With Quote
 
 
 
 
Chris Reedy
Guest
Posts: n/a
 
      07-15-2003
Aahz wrote:
> In article <(E-Mail Removed)>,
> Chris Reedy <(E-Mail Removed)> wrote:
>
>>Aside: I have to admit that the ((42,) * 2) did confuse me at first. I'm
>>so used to doing 2 * (42,) when I want to repeat a sequence that I
>>hadn't thought about the reversed form.

>
>
> My experience is that most people do it the way Ray did, <seq> * <reps>.


This must be my math background confusing me. Conventionally, a+a is
written as 2a, and a*a is written as a^2 (or a**2). Of course, if you
recognize that concatenation of sequences is really a multiplication (by
convention in mathematics addition is always a commutative operator),
a*2 makes sense. I guess I'll change the way I write this in the future.

 
Reply With Quote
 
 
 
 
Erik Max Francis
Guest
Posts: n/a
 
      07-16-2003
Aahz wrote:

> My experience is that most people do it the way Ray did, <seq> *
> <reps>.


I do it Ray's way, too. I'm not really sure why.

--
Erik Max Francis && http://www.velocityreviews.com/forums/(E-Mail Removed) && http://www.alcyone.com/max/
__ San Jose, CA, USA && 37 20 N 121 53 W && &tSftDotIotE
/ \ Nine worlds I remember.
\__/ Icelandic Edda of Snorri Sturluson
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Guidlines for Avoiding ASI-related errors Garrett Smith Javascript 17 05-30-2010 05:20 AM
Do-It-Yourself Guide: Building a Home Theatre PC (HTPC) Silverstrand Front Page News 0 07-27-2005 01:07 AM
Zalman Theatre 6 Surround Headphones Review @ PC Modding Mal Silverstrand Front Page News 0 06-21-2005 07:52 PM
Python Mystery Theatre -- Episode 3: Extend this Raymond Hettinger Python 1 07-22-2003 03:47 PM
Python Mystery Theatre -- Episode 1: Exceptions Ben Finney Python 12 07-14-2003 05:17 PM



Advertisments