The Wayback Machine - https://web.archive.org/web/20211206235012/https://github.com/MoserMichael/python-obj-system
Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
Dec 2, 2021
Dec 2, 2021
Dec 6, 2021
Dec 4, 2021
Dec 6, 2021

Advanced course on Python3

This course covers several topics

Each lesson is a python program, the output of that program is the rendered markdown text that makes up the lesson. This approach gives me some confidence about the quality of the material.

I am using a kind of literate programming tool developed for this course. The tool is right here in this repository, in the mdformat package

The main function of the mdformat package is eval_and_quote(string_arg). This function does the following steps:

  1. Renders the argument string as a code snippet
  2. Evaluates the string argument as a python script, with the global variable context of the calling module
  3. Renders the result of evaluating the code (both standard output and standard error)

There is also print_md(*args) - this shows the outut as a markdown regular text section

header_md(line, nesting=1) - this renders the line as a header

print_quoted(*args) - shows the aguments as markdown quoted text

About

Tutorials on advanced python topics, and literate programming framework to write them.

Topics

Resources

License

Releases

No releases published

Packages

No packages published