diff --git a/README.md b/README.md index 64a350b..290e20e 100644 --- a/README.md +++ b/README.md @@ -1390,12 +1390,12 @@ except as : ### Exception Object ```python -arguments = .args -exc_type = .__class__ -filename = .__traceback__.tb_frame.f_code.co_filename -func_name = .__traceback__.tb_frame.f_code.co_name -line = linecache.getline(filename, .__traceback__.tb_lineno) -error_msg = traceback.format_exception(exc_type, , .__traceback__) +arguments = .args +exc_type = .__class__ +filename = .__traceback__.tb_frame.f_code.co_filename +func_name = .__traceback__.tb_frame.f_code.co_name +line = linecache.getline(filename, .__traceback__.tb_lineno) +error_msg = traceback.format_exception(exc_type, , .__traceback__) ``` ### Built-in Exceptions @@ -2007,6 +2007,7 @@ Memory View .write() # Writes mview to the binary file. = bytes() # Creates a new bytes object. = .join() # Joins mviews using bytes object as sep. + = array('', ) # Treats mview as a sequence of numbers. = list() # Returns list of ints or floats. = str(, 'utf-8') # Treats mview as a bytes object. = int.from_bytes(, byteorder='big/little', signed=False) @@ -2263,7 +2264,7 @@ Coroutines * **Coroutine definition starts with `'async'` and its call with `'await'`.** * **`'asyncio.run()'` is the main entry point for asynchronous programs.** * **Functions wait(), gather() and as_completed() can be used when multiple coroutines need to be started at the same time.** -* **Asyncio module also provides it's own [Queue](#queue), [Event](#semaphoreeventbarrier), [Lock](#lock) and [Semaphore](#semaphoreeventbarrier) classes.** +* **Asyncio module also provides its own [Queue](#queue), [Event](#semaphore-event-barrier), [Lock](#lock) and [Semaphore](#semaphore-event-barrier) classes.** #### Runs a terminal game where you control an asterisk that must avoid numbers: diff --git a/index.html b/index.html index 94aca8e..da8fb38 100644 --- a/index.html +++ b/index.html @@ -1306,12 +1306,12 @@ LogicOp = Enum('LogicOp', {raise -

Exception Object

arguments   = <name>.args
-exc_type    = <name>.__class__
-filename    = <name>.__traceback__.tb_frame.f_code.co_filename
-func_name   = <name>.__traceback__.tb_frame.f_code.co_name
-line        = linecache.getline(filename, <name>.__traceback__.tb_lineno)
-error_msg   = traceback.format_exception(exc_type, <name>, <name>.__traceback__)
+

Exception Object

arguments = <name>.args
+exc_type  = <name>.__class__
+filename  = <name>.__traceback__.tb_frame.f_code.co_filename
+func_name = <name>.__traceback__.tb_frame.f_code.co_name
+line      = linecache.getline(filename, <name>.__traceback__.tb_lineno)
+error_msg = traceback.format_exception(exc_type, <name>, <name>.__traceback__)
 

Built-in Exceptions

BaseException
@@ -1778,6 +1778,7 @@ db = connector.connect(host=<str>, user=<str>, password=<str>,
 

Decode

<bin_file>.write(<mview>)                      # Writes mview to the binary file.
 <bytes> = bytes(<mview>)                       # Creates a new bytes object.
 <bytes> = <bytes>.join(<coll_of_mviews>)       # Joins mviews using bytes object as sep.
+<array> = array('<typecode>', <mview>)         # Treats mview as a sequence of numbers.
 <list>  = list(<mview>)                        # Returns list of ints or floats.
 <str>   = str(<mview>, 'utf-8')                # Treats mview as a bytes object.
 <int>   = int.from_bytes(<mview>, byteorder='big/little', signed=False)
@@ -1963,7 +1964,7 @@ ValueError: malformed node or string
 
  • Coroutine definition starts with 'async' and its call with 'await'.
  • 'asyncio.run(<coroutine>)' is the main entry point for asynchronous programs.
  • Functions wait(), gather() and as_completed() can be used when multiple coroutines need to be started at the same time.
  • -
  • Asyncio module also provides it's own Queue, Event, Lock and Semaphore classes.
  • +
  • Asyncio module also provides its own Queue, Event, Lock and Semaphore classes.
  • Runs a terminal game where you control an asterisk that must avoid numbers:

    import asyncio, collections, curses, enum, random
     
     P = collections.namedtuple('P', 'x y')         # Position
    diff --git a/parse.js b/parse.js
    index 579ff13..ba4ea83 100755
    --- a/parse.js
    +++ b/parse.js
    @@ -90,6 +90,7 @@ function initDom(html) {
     
     function getMd() {
       var readme = readFile('README.md');
    +  var readme = readme.replace("#semaphore-event-barrier", "#semaphoreeventbarrier");
       const converter = new showdown.Converter();
       return converter.makeHtml(readme);
     }
    diff --git a/web/mario_bros.png b/web/mario_bros.png
    new file mode 100644
    index 0000000..41051b3
    Binary files /dev/null and b/web/mario_bros.png differ
    diff --git a/web/sprite.png b/web/sprite.png
    new file mode 100644
    index 0000000..54ec2fe
    Binary files /dev/null and b/web/sprite.png differ