Skip to content

Commit

Permalink
Slight grammar and spelling nits; updated mx.Proxy URL; added
Browse files Browse the repository at this point in the history
reference to EST's pyweak.
  • Loading branch information
gvanrossum committed Nov 28, 2000
1 parent 4a75be9 commit 5f1f83c
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions pep-0205.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Motivation

Caches (weak dictionaries)

There is a need to allow objects to be maintained to represent
There is a need to allow objects to be maintained that represent
external state, mapping a single instance to the external
reality, where allowing multiple instances to be mapped to the
same external resource would create unnecessary difficulty
Expand All @@ -38,7 +38,7 @@ Motivation
back to disk in whole rather than locked & modified for
every use.

- Objects which are expensive to create, but may be needed by
- Objects that are expensive to create, but may be needed by
multiple internal consumers. Similar to the first case, but
not necessarily bound to external resources, and possibly
not an issue for shared state. Weak references are only
Expand Down Expand Up @@ -78,7 +78,7 @@ Weak References in Java
tables. This can be a performance bottleneck if deallocations of
the stored objects are infrequent.

Java's "weak" references are most like Diane Hackborn's old vref
Java's "weak" references are most like Dianne Hackborn's old vref
proposal: a reference object refers to a single Python object,
but does not own a reference to that object. When that object is
deallocated, the reference object is invalidated. Users of the
Expand All @@ -103,19 +103,17 @@ Weak References in Java

Previous Weak Reference Work in Python

Dianne Hackborn's proposed something called "virtual references".
'vref' objects were very similar to java.lang.ref.WeakReference
objects, except there was no equivalent to the invalidation
Dianne Hackborn has proposed something called "virtual references".
'vref' objects are very similar to java.lang.ref.WeakReference
objects, except there is no equivalent to the invalidation
queues. Implementing a "weak dictionary" would be just as
difficult as using only weak references (without the invalidation
queue) in Java. Information on this has disappeared from the Web.
Original discussion occurred in the comp.lang.python newsgroup; a
good archive of that may turn up something more.
queue) in Java. Information on this has disappeared from the Web,
but is included below as an Appendix.

Marc-Andr� Lemburg's mx.Proxy package. These Web pages appear to
be unavailable at the moment.
Marc-Andr� Lemburg's mx.Proxy package:

http://starship.python.net/crew/lemburg/
http://www.lemburg.com/files/python/mxProxy.html

The weakdict module by Dieter Maurer is implemented in C and
Python. It appears that the Web pages have not been updated since
Expand All @@ -128,6 +126,10 @@ Previous Weak Reference Work in Python

http://sourceforge.net/projects/pyweakreference/

Eric Tiedemann has a weak dictionary implementation:

http://www.hyperreal.org/~est/python/weak/


Possible Applications

Expand Down

0 comments on commit 5f1f83c

Please sign in to comment.