Now, assume one also desires the ability to add borders to windows. Again, the original Window class has no support. The ScrollingWindow subclass now poses a problem, because it has effectively created a new kind of window. If one wishes to add border support to many but not all windows, one must create subclasses WindowWithBorder and ScrollingWindowWithBorder etc. This problem gets worse with every new feature or window subtype to be added. For the decorator solution, we simply create a new BorderedWindowDecorator—at runtime, we can decorate existing windows with the ScrollingWindowDecorator or the BorderedWindowDecorator or both, as we see fit. Notice that if the functionality needs to be added to all Windows, you could modify the base class and that will do. On the other hand, sometimes (e.g., using external frameworks) it is not possible, legal, or convenient to modify the base class.
The delegate injection point must be an injected field, initializer method parameter or bean constructor method parameter. If an injection point that is not an injected field, initializer method parameter or bean constructor method parameter is annotated @Delegate, the container automatically detects the problem and treats it as a definition error.
Painters must have manual dexterity as well as steady nerves to work in high places. They should not be allergic to or bothered by paint fumes, toxic materials and spray dust. They should have a certain artistic sense in order to do a first-class job. Good eyesight and sense of color is especially important to properly mix paint to specific colors.
There is general agreement that syntactic support is desirable to the current state of affairs. Guido mentioned syntactic support for decorators  in his DevDay keynote presentation at the 10th Python Conference , though he later said  it was only one of several extensions he proposed there "semi-jokingly". Michael Hudson raised the topic  on python-dev shortly after the conference, attributing the initial bracketed syntax to an earlier proposal on comp.lang.python by Gareth McCaughan .
This decorator works by storing the time just before the function starts running (at the line marked # 1) and just after the function finishes (at # 2). The time the function takes is then the difference between the two (at # 3). We use the time.perf_counter() function, which does a good job of measuring time intervals. Here are some examples of timings:
Painters take care of the outside of buildings, city infrastructure and any kind of new architecture development. The handiwork of painters surrounds us at every turn. Ron Yarbrough, founder and president of Pro-Spec Painting Inc., says the painting profession's focus areas are endless – there's something for everyone. "I think there are tremendous opportunities for those that want to enter the painting trade. And I think that [the field] has so many different segments to it – all the way from infrastructure to new construction of commercial buildings and many types of decorative art and restoration." The will and patience to do the work is all it takes to succeed, he adds. "People who are really committed to learning the trade can do well at it. If they set their goals high, they can make a really good living at it." Painters commonly work for building finishing contractors or in the residential building construction industry. Unlike carpenters, painters typically don't build frameworks and structures; they apply paint, stain and coatings to them.
Thanks to enhanced support for multi-core processors and CPUs that use AVX2 extensions and extensive code optimizations, this is the fastest version of Painter yet. A huge selection of brushes are noticeably faster — some as much as twice as fast. You can also take advantage of faster document rendering when zooming, panning and rotating — up to 50% faster.