A RetroSearch Logo

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

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-April/014142.html below:

[Python-Dev] SocketServer and UserDict patches

[Python-Dev] SocketServer and UserDict patches [Python-Dev] SocketServer and UserDict patchesJeremy Hylton jeremy@digicool.com
Tue, 10 Apr 2001 11:33:42 -0400 (EDT)
>>>>> "GvR" == Guido van Rossum <guido@digicool.com> writes:

  >> A glaring example of this is cgi.SvFormContentDict.  For such an
  >> object x, x['spam'] returns a single item but x.get('spam')
  >> returns a list of one item!

  GvR> But can you guarantee that fixing this so late in the release
  GvR> cycle won't break anybody's code?

  >> Instead, these three methods should be implemented in terms of
  >> the object's own __getitem__, __setitem__, and has_key methods.
  >> This patch makes this change.

  GvR> I'm reluctant (-0) to making this change now.

I with you, Guido.  The cgi model is complicated and widely used.
That combination means that it would be easy for users to get the
impression that x['spam'] and x.get('spam') work the way they do
intentionally.  I'm not comfortable changing the behavior of the model
without a beta release.

Jeremy




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