On Thu, 13 Jan 2005 10:08:10 -0500, Phillip J. Eby <pje at telecommunity.com> wrote: > With the previous PEP, people could create all sorts of subtle problems in > their code (with or without transitivity!) and have no direct indicator of > a problem. Clark and Ian made me realize this with their string/file/path > discussions -- *nobody* is safe from implicit adaptation if adaptation > actually creates new objects with independent state! An adapter's state > needs to be kept with the original object, or not at all, and most of the > time "not at all" is the correct answer. +1, specially for the last sentence. An adapter with local state is not an adapter anymore! It's funny how difficult it's to get this... but it's obvious once stated. -- Carlos Ribeiro Consultoria em Projetos blog: http://rascunhosrotos.blogspot.com blog: http://pythonnotes.blogspot.com mail: carribeiro at gmail.com mail: carribeiro at yahoo.com
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