8000 Merge pull request #297 from foxyblue/228-remove-80 · faif/python-patterns@8c47dfc · GitHub
[go: up one dir, main page]

Skip to content

Commit 8c47dfc

Browse files
authored
Merge pull request #297 from foxyblue/228-remove-80
Replace TL;DR80 -> TL;DR
2 parents 1417906 + 2ea6bab commit 8c47dfc

31 files changed

+31
-31
lines changed

patterns/behavioral/chain_of_responsibility__py2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
As a variation some receivers may be capable of sending requests out
1818
in several directions, forming a `tree of responsibility`.
1919
20-
*TL;DR80
20+
*TL;DR
2121
Allow a request to pass down a chain of receivers until it is handled.
2222
"""
2323

patterns/behavioral/chain_of_responsibility__py3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
As a variation some receivers may be capable of sending requests out
1818
in several directions, forming a `tree of responsibility`.
1919
20-
*TL;DR80
20+
*TL;DR
2121
Allow a request to pass down a chain of receivers until it is handled.
2222
"""
2323

patterns/behavioral/command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# -*- coding: utf-8 -*-
33

44
"""
5-
*TL;DR80
5+
*TL;DR
66
Encapsulates all information needed to perform an action or trigger an event.
77
88
*Examples in Python ecosystem:

patterns/behavioral/iterator.py

Lines changed: 1 addition & 1 deletion
Original file line number
Diff line numberDiff line change
@@ -5,7 +5,7 @@
55
http://ginstrom.com/scribbles/2007/10/08/design-patterns-python-style/
66
Implementation of the iterator pattern with a generator
77
8-
*TL;DR80
8+
*TL;DR
99
Traverses a container and accesses the container's elements.
1010
"""
1111

patterns/behavioral/mediator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Objects in a system communicate through a Mediator instead of directly with each other.
88
This reduces the dependencies between communicating objects, thereby reducing coupling.
99
10-
*TL;DR80
10+
*TL;DR
1111
Encapsulates how a set of objects interact.
1212
"""
1313

patterns/behavioral/memento.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"""
55
http://code.activestate.com/recipes/413838-memento-closure/
66
7-
*TL;DR80
7+
*TL;DR
88
Provides the ability to restore an object to its previous state.
99
"""
1010

patterns/behavioral/observer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"""
55
http://code.activestate.com/recipes/131499-observer-pattern/
66
7-
*TL;DR80
7+
*TL;DR
88
Maintains a list of dependents and notifies them of any state changes.
99
1010
*Examples in Python ecosystem:

patterns/behavioral/specification.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"""
55
@author: Gordeev Andrey <gordeev.and.and@gmail.com>
66
7-
*TL;DR80
7+
*TL;DR
88
Provides recombination business logic by chaining together using boolean logic.
99
"""
1010

patterns/behavioral/state.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
77
http://ginstrom.com/scribbles/2007/10/08/design-patterns-python-style/
88
9-
*TL;DR80
9+
*TL;DR
1010
Implements state as a derived class of the state pattern interface.
1111
Implements state transitions by invoking methods from the pattern's superclass.
1212
"""

patterns/behavioral/strategy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Define a family of algorithms, encapsulate each one, and make them interchangeable.
77
Strategy lets the algorithm vary independently from clients that use it.
88
9-
*TL;DR80
9+
*TL;DR
1010
Enables selecting an algorithm at runtime.
1111
"""
1212

patterns/behavioral/template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"""
55
An example of the Template pattern in Python
66
7-
*TL;DR80
7+
*TL;DR
88
Defines the skeleton of a base algorithm, deferring definition of exact
99
steps to subclasses.
1010

patterns/behavioral/visitor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"""
55
http://peter-hoffmann.com/2010/extrinsic-visitor-pattern-python-inheritance.html
66
7-
*TL;DR80
7+
*TL;DR
88
Separates an algorithm from an object structure on which it operates.
99
1010
An interesting recipe could be found in

patterns/creational/abstract_factory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
https://sourcemaking.com/design_patterns/abstract_factory
3030
http://ginstrom.com/scribbles/2007/10/08/design-patterns-python-style/
3131
32-
*TL;DR80
32+
*TL;DR
3333
Provides a way to encapsulate a group of individual factories.
3434
"""
3535

patterns/creational/borg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
*References:
3737
https://fkromer.github.io/python-pattern-references/design/#singleton
3838
39-
*TL;DR80
39+
*TL;DR
4040
Provides singleton-like behavior sharing state between instances.
4141
"""
4242

patterns/creational/builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class for a building, where the initializer (__init__ method) specifies the
3030
*References:
3131
https://sourcemaking.com/design_patterns/builder
3232
33-
*TL;DR80
33+
*TL;DR
3434
Decouples the creation of a complex object and its representation.
3535
"""
3636

patterns/creational/factory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*References:
2525
http://ginstrom.com/scribbles/2007/10/08/design-patterns-python-style/
2626
27-
*TL;DR80
27+
*TL;DR
2828
Creates objects without having to specify the exact class.
2929
"""
3030

patterns/creational/lazy_evaluation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
werkzeug
1919
https://github.com/pallets/werkzeug/blob/5a2bf35441006d832ab1ed5a31963cbc366c99ac/werkzeug/utils.py#L35
2020
21-
*TL;DR80
21+
*TL;DR
2222
Delays the eval of an expr until its value is needed and avoids repeated evals.
2323
"""
2424

patterns/creational/pool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
http://stackoverflow.com/questions/1514120/python-implementation-of-the-object-pool-design-pattern
2828
https://sourcemaking.com/design_patterns/object_pool
2929
30-
*TL;DR80
30+
*TL;DR
3131
Stores a set of initialized objects kept ready to use.
3232
"""
3333

patterns/creational/prototype.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
Below provides an example of such Dispatcher, which contains three
2121
copies of the prototype: 'default', 'objecta' and 'objectb'.
2222
23-
*TL;DR80
23+
*TL;DR
2424
Creates new object instances by cloning prototype.
2525
"""
2626

patterns/fundamental/delegation_pattern.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Reference: https://en.wikipedia.org/wiki/Delegation_pattern
66
Author: https://github.com/IuryAlves
77
8-
*TL;DR80
8+
*TL;DR
99
Allows object composition to achieve the same code reuse as inheritance.
1010
"""
1111

patterns/structural/3-tier.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# -*- coding: utf-8 -*-
33

44
"""
5-
*TL;DR80
5+
*TL;DR
66
Separates presentation, application processing, and data management functions.
77
"""
88

patterns/structural/adapter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
https://sourcemaking.com/design_patterns/adapter
2828
http://python-3-patterns-idioms-test.readthedocs.io/en/latest/ChangeInterface.html#adapter
2929
30-
*TL;DR80
30+
*TL;DR
3131
Allows the interface of an existing class to be used as another interface.
3232
"""
3333

patterns/structural/bridge.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*References:
66
http://en.wikibooks.org/wiki/Computer_Science_Design_Patterns/Bridge_Pattern#Python
77
8-
*TL;DR80
8+
*TL;DR
99
Decouples an abstraction from its implementation.
1010
"""
1111

patterns/structural/composite.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
https://en.wikipedia.org/wiki/Composite_pattern
2626
https://infinitescript.com/2014/10/the-23-gang-of-three-design-patterns/
2727
28-
*TL;DR80
28+
*TL;DR
2929
Describes a group of objects that is treated as a single instance.
3030
"""
3131

patterns/structural/decorator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*References:
2424
https://sourcemaking.com/design_patterns/decorator
2525
26-
*TL;DR80
26+
*TL;DR
2727
Adds behaviour to object without affecting its class.
2828
"""
2929

patterns/structural/facade.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
https://fkromer.github.io/python-pattern-references/design/#facade
2828
http://python-3-patterns-idioms-test.readthedocs.io/en/latest/ChangeInterface.html#facade
2929
30-
*TL;DR80
30+
*TL;DR
3131
Provides a simpler unified interface to a complex system.
3232
"""
3333

patterns/structural/flyweight__py2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*References:
2121
http://codesnipers.com/?q=python-flyweights
2222
23-
*TL;DR80
23+
*TL;DR
2424
Minimizes memory usage by sharing data with other similar objects.
2525
"""
2626

patterns/structural/flyweight__py3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*Examples in Python ecosystem:
2525
https://docs.python.org/3/library/sys.html#sys.intern
2626
27-
*TL;DR80
27+
*TL;DR
2828
Minimizes memory usage by sharing data with other similar objects.
2929
"""
3030

patterns/structural/front_controller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"""
55
@author: Gordeev Andrey <gordeev.and.and@gmail.com>
66
7-
*TL;DR80
7+
*TL;DR
88
Provides a centralized entry point that controls and manages request handling.
99
"""
1010

patterns/structural/mvc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# -*- coding: utf-8 -*-
33

44
"""
5-
*TL;DR80
5+
*TL;DR
66
Separates data in GUIs from the ways it is presented, and accepted.
77
"""
88

patterns/structural/proxy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# -*- coding: utf-8 -*-
33

44
"""
5-
*TL;DR80
5+
*TL;DR
66
Provides an interface to resource that is expensive to duplicate.
77
"""
88

0 commit comments

Comments
 (0)
0