mirror of
https://github.com/exaloop/codon.git
synced 2025-06-03 15:03:52 +08:00
* Add bz2 * Support 'b' prefix on str * List.index() throws an exception if item not found This is consistent with Python. Added find() method that returns -1 similar to str (although this does not exist in Python's list). * Update complex64 str and repr * Fix tests * Add 'default' arg to min() and max()
7 lines
173 B
Python
7 lines
173 B
Python
# Copyright (C) 2022-2023 Exaloop Inc. <https://exaloop.io>
|
|
|
|
from internal.file import bzFile
|
|
|
|
def open(path: str, mode: str = "r") -> bzFile:
|
|
return bzFile(path, mode)
|