Commit Graph

1378 Commits

Author SHA1 Message Date
K. Lange
ff19144201 Even more correct sequence comparisons... 2022-07-06 22:07:42 +09:00
K. Lange
6d59ddb4cd 'inline' on krk_valuesEqual does nothing 2022-07-06 21:53:55 +09:00
K. Lange
c9b989cb56 Add test for __set_name__ 2022-07-06 21:43:15 +09:00
K. Lange
2d8de139b3 More fixes to tuple comparisons; port to lists 2022-07-06 21:25:59 +09:00
K. Lange
d6018001ba list and tuple stuff should use SameOrEqual not just Equal 2022-07-06 20:18:19 +09:00
K. Lange
92d8d0e200 Cleanup, simplify equality operation 2022-07-06 20:16:20 +09:00
K. Lange
17772c74ef unary + (__pos__) 2022-07-06 15:37:38 +09:00
K. Lange
ed52b72ae8 operator @ (__matmul__) 2022-07-06 15:37:38 +09:00
K. Lange
855d342a68 Support __set_name__ 2022-07-06 15:37:38 +09:00
K. Lange
388a649ec9 Perform identity checking before equality checking for table keys 2022-07-06 15:37:35 +09:00
K. Lange
c49a12effc Highlight krk sources as Python on gitlab mirror 2022-07-06 10:11:59 +09:00
K. Lange
af18b205a9 Better long printing 2022-07-06 07:04:57 +09:00
K. Lange
afc522a341 Replace KRK_METHOD, KRK_FUNC with nicer macros 2022-07-05 22:42:29 +09:00
K. Lange
25d5f88454 Clean up a bunch of potential type checking issues 2022-07-05 19:19:46 +09:00
K. Lange
7ff7c26fbd Standardize =,is,~,- a bit more; ELF 'protected' on operator functions 2022-07-05 18:49:29 +09:00
K. Lange
e95cc5d10b Break out collection builder opcodes into inlinable function 2022-07-05 18:48:20 +09:00
K. Lange
92378917b0 No reason for that callgrind stuff to be a big macro 2022-07-05 17:43:44 +09:00
K. Lange
ee1420cd35 Use krk_unpackIterable (and a temporary tuple) in OP_UNPACK 2022-07-05 14:45:47 +09:00
K. Lange
eabe6f9ecf Cleanup some exposed string functions we don't need 2022-07-05 13:30:06 +09:00
K. Lange
3cda8cf0da Replace macro unpackIterableFast with callback-driven function 2022-07-05 13:24:37 +09:00
K. Lange
ebe1b0276e Remove tupleOf builtin 2022-07-05 11:43:11 +09:00
K. Lange
19927ea13f Stop using tupleOf in codec tools 2022-07-05 11:42:57 +09:00
K. Lange
a429aa93dd tuple.__init__ should not call tupleOf 2022-07-05 11:42:25 +09:00
K. Lange
31509bcc3c Remove setOf, listOf, dictOf builtins (all unused) 2022-07-05 11:42:04 +09:00
K. Lange
87f6c316bd tuple.__add__(tuple) 2022-07-05 11:40:21 +09:00
K. Lange
8314e4c35d 'zip' as a class 2022-07-05 11:39:59 +09:00
K. Lange
5d77dec70e Set rpath in tools 2022-07-04 07:50:53 +09:00
K. Lange
fe4fd1af78 Retool more things to use utility macros 2022-07-03 23:54:30 +09:00
K. Lange
0ae051b65d Rewrite Exceptions using typechecking method macros 2022-07-03 23:20:21 +09:00
K. Lange
f86887b40a Elide : for zero-length Exception.__str__() 2022-07-03 23:20:00 +09:00
K. Lange
de0af11361 KeyError should repr instead of print because Python does that 2022-07-03 21:20:55 +09:00
K. Lange
8b6952dd04 Include module name when printing exception name 2022-07-03 21:20:36 +09:00
K. Lange
f38a451f19 Attach and build upon partial tracebacks
If an exception is raised within a 'try', attach a traceback only up
until that 'try'. If a re-raised exception has a traceback already,
attach the new traceback "above" the existing one.
2022-07-03 20:39:07 +09:00
K. Lange
85ad910f23 Attach __cause__, __context__ to exceptions; support 'raise ... from ...' 2022-07-03 19:50:00 +09:00
K. Lange
2d2691710c Exceptions with no argument should not set it to 'None' 2022-07-03 19:38:04 +09:00
K. Lange
3167888187 Restore frame pointer correctly on exit due to inner exception 2022-07-03 18:45:07 +09:00
K. Lange
1d828addc0 Bail early if _eq raises an exception 2022-07-03 18:44:47 +09:00
K. Lange
33946d8675 Break early from exceptions in more list functions 2022-07-03 18:17:41 +09:00
K. Lange
9f2791f580 Describe 'END_FINALLY' handler sentinel in printValueSafe 2022-07-03 18:16:15 +09:00
K. Lange
6512720b7a Revert accidental inclusion of debug prints when print() encounters an exception 2022-07-03 16:23:14 +09:00
K. Lange
e33a37a731 Cleanup complex argument parsing 2022-07-03 16:11:23 +09:00
K. Lange
abd90ccd3d Fixup, complete tuple comparisons 2022-07-03 11:18:11 +09:00
K. Lange
150a37f210 NotImplemented == NotImplemented 2022-07-03 11:14:19 +09:00
K. Lange
e39628bae1 When returning with an uncaught exception in an inner call, set the stack appropriately 2022-07-03 07:59:10 +09:00
K. Lange
2e15653e11 Add some tuple comparators 2022-07-03 07:25:33 +09:00
K. Lange
0b7988c9aa Ensure list.sort doesn't run more comparators with an active exception 2022-07-03 07:10:32 +09:00
K. Lange
ed9b522697 Use absolute stack offset when exiting from a native call 2022-07-03 07:09:48 +09:00
K. Lange
2000161d34 Trim trailing whitespace in string-to-int/long conversions 2022-06-29 14:55:46 +09:00
K. Lange
a354c4a2c1 Fixup int(str) which should default to base 10, and throw exceptions 2022-06-29 14:47:48 +09:00
K. Lange
0d28885009 Fix that one old test to not go through float() 2022-06-29 13:55:21 +09:00