1
0
mirror of https://github.com/exaloop/codon.git synced 2025-06-03 15:03:52 +08:00
codon/stdlib/bz2.codon
A. R. Shajii c8bc944a50
Updates - January 2024 (#530)
* 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()
2024-01-19 11:22:20 -05:00

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)