On 3/21/07, <b class="gmail_sendername">Scott Dial</b> <<a href="mailto:email@example.com">firstname.lastname@example.org</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Greg Ewing wrote:<br>> A tangential question -- why are TemporaryFile and<br>> NamedTemporaryFile named in TitleCase, when they're<br>> functions and not classes?<br>><br><br>I wondered the same. At first draft of my email I wrote "class"
<br>operating under the assumption that only classes got to be camel-cased.<br>If I had to guess, the rationale was that they are simply wrappers a<br>class. Nevertheless, tempfile dates well back before the PEP 8 style<br>
guidelines. I think consistency would dictate that a newly added<br>function should match the other ones, but I have no strong feelings<br>about this.</blockquote><div><br> I wouldn't bet on that. The ElementTree XML module was added to Python
2.5 and it does not follow PEP 8 style (method names are not words separated by underscores).<br> </div></div>-- <br>Gustavo J. A. M. Carneiro<br>"The universe is always one step beyond logic."