Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8532397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T09:42:23+00:00 2026-06-11T09:42:23+00:00

Possible Duplicate: Any AOP support library for Python? I am familiar with the AspectJ

  • 0

Possible Duplicate:
Any AOP support library for Python?

I am familiar with the AspectJ extension for the Java language.

I want to know if there is such a thing for Python.

Don’t get me wrong, I do not mean a library but a language extension like AspectJ is to Java.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T09:42:24+00:00Added an answer on June 11, 2026 at 9:42 am

    Python does not need something like a "language extension" for being able to work in an Aspect Oriented way.

    That is simply due to the dynamic mechanisms in Python itself. A Google search will yield a couple projects – but despite looking merely like libraries, it is all that is needed in Python.

    I am not making this up – it is the fact that you can introspect classes and methods, and change them at run-time. When I first learned about Aspect Orientation, I could implement some proof of concepts in Python in a couple of hours – certainly some of the existing projects can offer production-quality entries.

    But since you asked, there is a Python "language extension" of sorts that could be used for Aspect Orientation: when I made the proof of concept I mentioned above, I used to check the input parameters to methods at run-time to determine whether certain methods would be affected by a rule or not.

    In Python 3 there is a little known feature of the language that allows one to annotate the input parameters and return value of a function or method. An aspect orientation library could make use of this to apply its magic at "load time", and not at the time of each function call.

    BTW, here is my quick hack to get a working example of using Aspect Orientation with Pure Python. Sorry – the code comments are in pt_BR –
    https://github.com/jsbueno/metapython/blob/main/aspect.py

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Java Regex Replace with Capturing Group Is there any way to replace
Possible Duplicate: Is there any way to kill a Thread in Python? So this
Possible Duplicate: Any way to “reboot” the JVM? Is there any option to restart
Possible Duplicate: Any way to add HttpHandler programatically in .NET? Is there a way
Possible Duplicate: Is there any hash function in PL/SQL? I have a column with
Possible Duplicate: Is there any working memory profiler for Python3 I have some script
Possible Duplicate: Is there any way to determine text direction from CultureInfo in asp.net?
Possible Duplicate: Is there any reason to use the 'auto' keyword in C /
Possible Duplicate: Objective C for Windows iPhone development on Windows Is there any way
Possible Duplicate: Is there any NoSQL that is ACID compliant? So, I heard NoSQL

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.