Movatterモバイル変換


[0]ホーム

URL:


Sorry, we no longer support your browser
Please upgrade toMicrosoft Edge,Google Chrome, orFirefox. Learn more about ourbrowser support.
Skip to main content

Stack Exchange Network

Stack Exchange network consists of 183 Q&A communities includingStack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Loading…
Code Review

Questions tagged [decorator-pattern]

Ask Question

The tag has no summary.

10 questions
Filter by
Sorted by
Tagged with
2votes
1answer
146views

I have some production code that contains a lot of repetition and mixes business logic with auditing and logging. I've made two attempts at refactoring it, primarily using decorators. I'd like to get ...
4votes
1answer
91views

Disclaimer: It's been quite a long time since I asked questions here, and also I am a complete novice in FastAPI.I am playing with FastAPI authorization and wondering how can I protect my routes from ...
John's user avatar
  • 217
6votes
3answers
706views

I'm currently trying a Password checker for password in Decorator Pattern, which will point out what the current password missing to be a strong password (my example will check for 8 characters, at ...
2votes
0answers
381views

I want to write a decorator in Python 3.11 that adds some basic logging to functions.I want to use the decorator without any keyword arguments:@add_loggingIn ...
uli's user avatar
  • 21
1vote
1answer
420views

Pandas likes to throw cryptic errors when you feed its functions with emptyDataFrames saying nothing that would help you to identify the root cause. In order to ...
3votes
1answer
91views

Although throwing excptions for control flow is a controversial topic there are some quite popular examples of using this anti-pattern like C#'s async routines throwing the ...
5votes
1answer
282views

I'd like to wrap all my sqlite statement functions with a decorator which collects the statement and the lists of values I will inject in place of placeholders in my statement (to avoid sql injection)....
FTG's user avatar
  • 195
1vote
0answers
107views

I have a method in a class that accepts either a datetime or string parameter. It is shown in the last code block (I didn't include the class). A little background is that I am defining a wrapper ...
5votes
0answers
78views

Today, I've got a smallFlowLogger for you to review. The idea is not to log pure messages, but focus on the flow of the app that might contain such items as:<...
0votes
1answer
354views

Motivation: withoutSaveDecorator, we would have to write:...

Hot Network Questions

more hot questions
Newest decorator-pattern questions feed

[8]ページ先頭

©2009-2025 Movatter.jp