274 Commits

Author SHA1 Message Date
Evan Rittenhouse
1ab133dae8 None.__ne__(None) should be NotImplemented (#5124) 2024-01-08 15:03:57 +09:00
ChenyG
dc4f6994fb Support slice hash (#5123)
* make slice object hashable

* Update test_slice.py from CPython v3.12

* remove TODO

* remove outdated tests
2023-11-25 13:11:17 +09:00
Jeong, YunWon
af884cb284 First step for Python 3.12 support (#5078)
* Mark 3.12

* Update importlib from Python 3.12.0

* Update test_importlib from Python3.12

* Mark failings tests from importlib

* Update test.support from Python3.12

* Fix unsupported parser feature

* mark failing test

* Update functools from Python 3.12

* manual type annotation

* slice behavior changed in 3.12

* empty unittest.main returns non-zero

* test_decimal from CPython 3.12

* Mark failing tests

* Update test_unicode from CPython 3.12

* Update test_functools from Python 3.12

* Update enum from Python 3.12

* enum

* Doc format changed

* Update test_module from CPython

---------

Co-authored-by: CPython developers <>
2023-10-22 19:19:05 -07:00
Junho Lee
d4be55c2ea Add command line parameter -P (#4611)
* Add command line parameter -P

* Modify the value of safe_path to be set

---------

Co-authored-by: Jeong YunWon <jeong@youknowone.org>
2023-08-30 19:32:27 +09:00
Dan Näsman
1cdc5d3294 Add get_int_max_str_digits and set_int_max_str_digits in sys. (#5014)
---------

Co-authored-by: DimitrisJim <d.f.hilliard@gmail.com>
2023-06-17 23:46:22 +03:00
Jeong, YunWon
3d2c51962b Update parser (#5012) 2023-06-18 02:38:42 +09:00
Jim Fasarakis-Hilliard
5c81649b19 Return SyntaxError with null byte input in eval. (#5013)
* Return SyntaxError with null byte input in eval.

* Special case MacOS for now, add a note for future sanity.
2023-06-17 16:58:28 +03:00
Jim Fasarakis-Hilliard
3a2a1d1b74 Remove unecessary unsafe, remove generated file in extra_snippets. (#4998) 2023-06-11 06:03:01 +03:00
Patrick
0e24cf48c6 Fix abc error message (#4987)
* Print correct error message for abc instantiation

* Update dataclasses abc test
2023-05-23 16:43:52 +09:00
Patrick He
8312831bc9 fix python linting errors 2023-05-19 14:05:36 -04:00
Patrick He
2786831d32 add test 2023-05-19 13:34:33 -04:00
Jeong YunWon
98eef0804e Method overhaul with PyMethodDef 2023-04-30 17:33:23 +09:00
Jeong YunWon
f256934f93 Merge define_exception into pyexception 2023-04-24 02:06:13 +09:00
Jeong YunWon
06b0484ea3 Reduce runtime of stdlib_collections_deque 2023-04-20 17:33:36 +09:00
Christopher Gambrell
d918f7e51b 'n' support for float format (#4865) 2023-04-16 00:06:20 +09:00
Ankit Kumar Pandey
cb6cf107ba handle panic if str is not defined in unraisablehook (#4864) 2023-04-15 23:47:19 +09:00
minhrongcon2000
d39b44c4d3 Fix panic from test_int__format__locale
fix #4588
2023-03-23 15:48:51 +09:00
Tomer Chachamu
8bfbfe3e46 Fix str.splitlines to recognise unicode line terminators 2023-03-18 01:10:59 +00:00
Jeong YunWon
21afc1933a Update cspell for compiler 2023-03-16 22:39:09 +09:00
Jeong YunWon
e96dd96864 Refactor zlib and add wbits to zlib.compress() 2023-03-15 23:52:51 +09:00
Zhiyan Xiao
79840126b9 Add test cases for __sub__ and __rsub__ methods of set and frozenset 2023-03-06 22:46:07 +09:00
black formatter
865c4984f6 format tests with black 2023-03-05 22:34:55 +09:00
Jeong YunWon
987ad12181 relocate int-unrelated tests to proper files 2023-03-05 22:34:55 +09:00
DimitrisJim
8294d4ae8e Disallow __debug__ as args, kwargs name. 2023-03-01 12:15:41 +02:00
Jeong YunWon
fcacdb2791 macos test for pathconf_names 2023-02-27 14:23:22 +09:00
Jeong YunWon
ae3de43a62 retry 10times in windows 2023-02-24 21:44:10 +09:00
Jeong YunWon
fbb5e78176 double windows sleep for syntax_async 2023-02-24 15:44:22 +09:00
Jeong YunWon
1336ca5d9d Fix syntax_async 2023-02-23 20:05:34 +09:00
Jeong YunWon
746cb0493f Merge pull request #4508 from marvinmednick/pathconf_names
Pathconf names
2023-02-22 00:03:43 +09:00
Jeong YunWon
2e27587f15 Merge pull request #4530 from itsankitkp/handle-panic-strftime-new
Return arg in case of invalid param in strftime
2023-02-22 00:03:04 +09:00
Jeong YunWon
42c0752370 less flaky syntax_async (#4536) 2023-02-21 23:17:11 +09:00
Jeong YunWon
e42553867f Update extra_tests/snippets/stdlib_datetime.py 2023-02-21 23:14:53 +09:00
Jeong YunWon
955347e426 posix.pathconf_names only for linux 2023-02-21 19:45:04 +09:00
Marvin Mednick
468f1aa312 Implmentation for os.pathconf_names 2023-02-21 19:15:29 +09:00
Ankit Kumar Pandey
fcfe8e1ac8 Return arg in case of invalid param in strftime
Chrono panics in case of unsupported formats, this patch handles such
cases and returns supplied format as a result.
2023-02-20 21:05:16 +05:30
Jeong YunWon
e5735cde67 Merge pull request #4517 from youknowone/cpython-3.11
trying to go with CPython 3.11
2023-02-20 13:50:10 +09:00
Jeong YunWon
75f3f3c8c4 Fix syntax_async.py for 3.11 2023-02-20 02:06:21 +09:00
Zhiyan Xiao
3b8d670c81 Add unicodedata.east_asian_width (#4523) 2023-02-20 01:38:02 +09:00
Jeong YunWon
8c38a8381c os is frozen in 3.11 2023-02-18 07:09:42 +09:00
Jeong YunWon
d22446d1dd imp.py -> stdlib_imp.py 2023-02-18 07:09:42 +09:00
Jeong YunWon
4bd090887e Remove completed TODO 2023-02-13 21:28:19 +09:00
Jeong YunWon
2fc0edf85b remove duplicated tests from tests/stdlib_math.py 2023-02-13 21:28:19 +09:00
Jeong YunWon
4192e5de2d extra_tests/snippets/{builtins => builtin_eval}.py 2023-02-13 21:28:19 +09:00
Jim Fasarakis-Hilliard
685a7e8ac5 Merge pull request #4466 from moreal/array-contains
Implement `array.array.__contains__`
2023-01-23 16:46:17 +02:00
Moreal
a866d881e5 Add extra_tests for array.__contains__ 2023-01-23 02:18:45 +09:00
yt2b
3d52769a47 Add tests 2023-01-22 14:44:35 +09:00
yt2b
8828fd17a0 Alternate float format doesn't work correctly. (#4446) 2023-01-14 16:48:03 +09:00
Steve Shi
765933136c Implement Sqlite3 Module (#4260)
* add supporting for PyAtomic<PyObject>

* create sqlite module

* add dependency sqlite3-sys

* add module constants

* import sqlite3 from cpython

* adjust lib

* add module structure

* impl Connection.cursor

* add module exceptions

* impl lstrip_sql

* impl statement new

* wip cursor.execute

* wip cursor

* wip error to exception

* add SqliteRaw and SqliteStatementRaw

* impl statement parameters binding

* wip cursor.execute

* add test_sqlite

* impl closeable connection

* impl closeable cursor

* impl cursor.executemany

* impl cursor.executescript

* impl cursor.fetch*

* impl connection.backup

* stage 1

* add support connection.backup with progress

* fix backup deadlock

* support changable isolation_level

* impl converter

* impl adapter

* impl text_factory and blob

* impl create_function

* impl create_function 2

* fix empty statement

* impl blob support

* impl create_aggregate

* impl create_aggregate 2

* refactor create_*

* impl enable_callback_traceback

* impl create_collation

* refactor create_* with CallbackData

* fix text and blob use SQLITE_TRANSIENT

* fix str to SQLITE_TEXT

* impl thread check

* impl Connection Factory

* impl busy timeout

* shift sqlite3-sys -> libsqlite3-sys

* refactor CallbackData

* impl create_window_function

* refactor callback functions

* add module attr converters

* fix nullable isolation_level

* add module attr adapters

* fix nullable adapt proto

* impl set_authorizer

* impl trace_callback

* impl set_progress_handler

* impl cancellable sqlite function*

* impl attributes for Connection

* fix some failed tests

* impl Row

* impl Blob methods

* impl Blob subscript & ass_subscript

* pass tests

* rebase

* no sqlite for wasm

* use ThreadId instead u64

* no libsqlite3-sys for wasm

* fix into_cstring for all platform

* fixup

* rebase

* fix windows into_bytes

* disable sqlite for android

* fixup
2023-01-07 22:03:24 +02:00
yt2b
22a5a83fda PyInt.format only raises ValueError (#4428) 2023-01-08 02:06:04 +09:00
yt2b
1534112cfe Add test 2023-01-05 23:55:23 +09:00