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"><<a href="mailto:rdmurray@bitdance.com">rdmurray@bitdance.com</a>></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;">
> > Â PS.: so is datetime.datetime a builtin then? :)<br>
> > Â Another historic accident. Like socket.socket. :-(<br>
><br>
 A pity this stuff wasn'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'd be +1 on that. Â In fact, I might even start using 'as'<br>
in my own code for that purpose right now. Â I've always felt vaguely<br>
confused and disturbed whenever I imported 'datetime', but until this<br>
discussion I didn't realize why :) Â Thinking about it, I know I've<br>
written 'from datetime import DateTime' a number of times and then had<br>
to go back and fix my code when I tried to run it. Â And I'm sure that<br>
sometimes when that happens I've had to (re)read the docs (or do a 'dir')<br>
to find out why my import wasn't working.<br>
<br>
Having said all that out loud, I think I might be stronger than a +1 on<br>
this idea. Â I'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