~/talk

Dyndesign: Merging Classes Dynamically

Talkat PyCon Italia 2023 · 2023-05-25..05-28· [python]
links:none on file
slides:none on file

A Python package called dyndesign provides a runtime class merger and cross-class invocation system (modules include class_merger and cross-class invocation), tested on Python 3.8–3.11 and installable via pip with source on GitHub. It dynamically imports class modules by dotted path, merges classes so rightmost attributes override, calls all __init__s with filtered args, and supports dynamic decorators and an invoke_all mode. Demo builds a Collatz sequence tool, adds a ternary variant that peaks ~9,000 for 27, and the merged builder works as shown.

AI-written summary · about

  1. 0:00Introduction
  2. 0:23Motivation
  3. 2:05InDesign approach
  4. 2:56Why not merge classes
  5. 4:40LineDesign
  6. 5:36Status
  7. 6:09Sequences
  8. 7:11Python Script
  9. 7:53Python Code
  10. 9:33Color Split Example
  11. 10:05Add Another Option
  12. 11:29Lets Dance Custom
  13. 12:12Lets February
  14. 15:27Merging Classes
  15. 24:28Summary
  16. 25:05Links
  17. 25:21Question
  18. 27:34Safe method invocation
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.