Best viewed on widescreen comp. NoteToSelf: if still not clear, then login ghub n open it in edit mode to see clearly.

.. for 1 indent, ….for 2 indents

image


/ *2pages of derivation in ‘Signals n Systems’ might be in some libraries for programmers to pirate it in his program using as below * /

from ThatLibraryUHunt import functionWhichAncientPeopleTakes1SemToLearn

functionWhichAncientPeopleTakes1SemToLearn(ArgumentsThatThisFuncNeeds, Arg2, SomeAdditionalControlsLikeMakeThisCalcFiniteOrInfinite= True)

image


metaclasses—the fascinating “classes of classes” that grant you remarkable control over how classes are created and behave! In the realm of Python, everything is an object, even classes themselves! When you conjure a new class, behind the scenes, Python employs a metaclass to weave its magic. The default metaclass is type, but the true power lies in your ability to create custom metaclasses, allowing you to shape and define the very framework of your classes.

Meta lets you:

  • Class Customization: Dynamically modify class attributes and methods, tailoring them to your needs.
  • Enforcement of Constraints: Guarantee that essential conditions are met before a class springs to life (think: mandatory methods).
  • Automatic Registration: Eliminate manual registration by automatically signing classes up in a registry.

Defining a metaclass is like scripting the blueprint of your classes! Here’s a delightful snippet to illustrate:

image

🔗 ORM: Powerful Object-Relational Mapping libraries leverage metaclasses to seamlessly link classes to database tables.

🌐 Frameworks: Renowned web frameworks like Django utilize metaclasses to forge model classes and uphold business logic with ease.


Think of py as somewhat like English Grammar

  • somewhere like Maths, where say (a+b)sq = a2 + 2ab + b2 where again a can be again some c+d or c*d ,or
  • even a can be logx with log’s own rules doing inside w x. somewhat like that
  • vivek, methodically process ideas to solve problem by creating suitable vars, creating suitable funcs or manytimes just mapping to (== import, export, API ) suitable funcsAkaMethods Or AutoFuncs (== constructors), vivek

Inheritance- idc much but saving anyway

image


image

code snippets n env setup here - Vvek NoNeed EnvSetup, Just Run LinearPgmFromBlogPost GDrive in colab 1 2 3 I can do away wout 1 2 3

Incase I need pyCheats https://user-images.githubusercontent.com/11883023/216755626-85a69c1f-08ad-49ef-87d3-fb574a05db20.jpg  & colab.google.com sbibek086 g-log n if runs, save  File>> save as github gist