diff --git a/README.md b/README.md index dca1510..cb57cba 100644 --- a/README.md +++ b/README.md @@ -365,7 +365,7 @@ import re * **Argument `'flags=re.DOTALL'` makes `'.'` also accept the `'\n'`.** * **Use `r'\1'` or `'\\1'` for backreference (`'\1'` returns a character with octal code 1).** * **Add `'?'` after `'*'` and `'+'` to make them non-greedy.** -* **`'re.compile()'` returns a Pattern object with listed methods.** +* **`'re.compile()'` returns a Pattern object with listed functions.** ### Match Object ```python @@ -2151,7 +2151,7 @@ with : # Enters the block by calling acq = .cancel() # Cancels or returns False if running/finished. = as_completed() # Next() waits for next completed Future. ``` -* **Map() and as_completed() also accept 'timeout' argument that causes TimeoutError if result isn't available in 'timeout' seconds after next() is called.** +* **Map() and as\_completed() also accept 'timeout' arg. that causes TimeoutError when next() is called. Map() times from the original call, while as\_completed() from the call to next().** * **Exceptions that happen inside threads are raised when next() is called on map's iterator or when result() is called on a Future. Its exception() method returns exception or None.** * **ProcessPoolExecutor provides true parallelism, but everything sent to/from workers must be [pickable](#pickle). Queues must be sent using executor's 'initargs' and 'initializer' parameters.** @@ -2865,7 +2865,7 @@ import wave = wave.open('', 'wb') # Opens WAV file for writing. .setframerate() # Pass 44100 for CD, 48000 for video. .setnchannels() # Pass 1 for mono, 2 for stereo. -.setsampwidth() # Pass 1 for 8-bit sound, 2 for CD. +.setsampwidth() # Pass 2 for CD, 3 for hi-res sound. .setparams() # Sets all parameters. .writeframes() # Appends frames to the file. ``` diff --git a/index.html b/index.html index cae574f..3c01e5b 100644 --- a/index.html +++ b/index.html @@ -54,7 +54,7 @@
- +
@@ -341,7 +341,7 @@ Point(x=1, y=2
  • Argument 'flags=re.DOTALL' makes '.' also accept the '\n'.
  • Use r'\1' or '\\1' for backreference ('\1' returns a character with octal code 1).
  • Add '?' after '*' and '+' to make them non-greedy.
  • -
  • 're.compile(<regex>)' returns a Pattern object with listed methods.
  • +
  • 're.compile(<regex>)' returns a Pattern object with listed functions.
  • Match Object

    <str>   = <Match>.group()                      # Returns the whole match. Also group(0).
     <str>   = <Match>.group(1)                     # Returns part inside the first brackets.
    @@ -1774,7 +1774,7 @@ CompletedProcess(args=['bc', # Next() waits for next completed Future.
     
      -
    • Map() and as_completed() also accept 'timeout' argument that causes TimeoutError if result isn't available in 'timeout' seconds after next() is called.
    • +
    • Map() and as_completed() also accept 'timeout' arg. that causes TimeoutError when next() is called. Map() times from the original call, while as_completed() from the call to next().
    • Exceptions that happen inside threads are raised when next() is called on map's iterator or when result() is called on a Future. Its exception() method returns exception or None.
    • ProcessPoolExecutor provides true parallelism, but everything sent to/from workers must be pickable. Queues must be sent using executor's 'initargs' and 'initializer' parameters.
    @@ -2350,7 +2350,7 @@ imageio.mimsave('test.gif', frames, duration=<Wave> = wave.open('<path>', 'wb') # Opens WAV file for writing. <Wave>.setframerate(<int>) # Pass 44100 for CD, 48000 for video. <Wave>.setnchannels(<int>) # Pass 1 for mono, 2 for stereo. -<Wave>.setsampwidth(<int>) # Pass 1 for 8-bit sound, 2 for CD. +<Wave>.setsampwidth(<int>) # Pass 2 for CD, 3 for hi-res sound. <Wave>.setparams(<params>) # Sets all parameters. <Wave>.writeframes(<bytes>) # Appends frames to the file. @@ -2932,7 +2932,7 @@ $ deactivate # Deactivates the activ