A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/attachments/20090303/0f45db7c/attachment.htm below:

<br><br><div class="gmail_quote">On Tue, Mar 3, 2009 at 05:13,  <span dir="ltr">&lt;<a href="mailto:rdmurray@bitdance.com">rdmurray@bitdance.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Tue, 3 Mar 2009 at 06:01, Ivan KrstiÄ~G wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Mar 2, 2009, at 7:08 PM, Steve Holden wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&gt; &gt; Â PS.: so is datetime.datetime a builtin then? :)<br>
&gt; &gt; Â Another historic accident. Like socket.socket. :-(<br>
&gt;<br>
 A pity this stuff wasn&#39;t addressed for 3.0. Way too late now, though.<br>
</blockquote>
<br>
<br>
It may be too late to rename the existing accidents, but why not add consistently-named aliases (socket.Socket, datetime.DateTime, etc) and strongly encourage their use in new code?<br>
</blockquote>
</blockquote><div><br>Or make the old names aliases for the new names and start a PendingDeprecationWarning on the old names so they can be switched in the distant future?<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
As a user I&#39;d be +1 on that. Â In fact, I might even start using &#39;as&#39;<br>
in my own code for that purpose right now. Â I&#39;ve always felt vaguely<br>
confused and disturbed whenever I imported &#39;datetime&#39;, but until this<br>
discussion I didn&#39;t realize why :) Â Thinking about it, I know I&#39;ve<br>
written &#39;from datetime import DateTime&#39; a number of times and then had<br>
to go back and fix my code when I tried to run it. Â And I&#39;m sure that<br>
sometimes when that happens I&#39;ve had to (re)read the docs (or do a &#39;dir&#39;)<br>
to find out why my import wasn&#39;t working.<br>
<br>
Having said all that out loud, I think I might be stronger than a +1 on<br>
this idea. Â I&#39;d be willing to help with doc and even code patches once<br>
I finish learning how to contribute properly.<br>
</blockquote><div><br>+1 from me to fix these little mishaps in naming in both modules.<br><br>-Brett <br></div></div><br>

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4