13 Commits

Author SHA1 Message Date
Kay Hayen
718ab60539 Bump copyright year 2025-04-28 11:04:36 +02:00
Kay Hayen
f34f8d0c63 Bump copyright year
* Also split copyright notices between the top and bottom,
  such that readability of just opened files is not harmed
  by license text.
2024-12-18 10:48:16 +01:00
Kay Hayen
909d41f02d Bump copyright year 2023-06-02 15:07:22 +02:00
Kay Hayen
ba9099fbb0 Minor cleanup
* This was duplicated for no reason.
2022-09-18 11:19:58 +02:00
Kay Hayen
4cfdd9f9c0 Bump copyright year 2022-05-23 10:28:11 +02:00
Kay Hayen
39b76368e3 Tests: Make reference count check work for generated tests 2022-05-23 10:28:11 +02:00
Kay Hayen
3e68abb376 Tests: Check reference counts with method tests 2022-05-19 13:57:04 +02:00
Kay Hayen
28f0b3f4d0 Optimization: Added support for many str operations
* Firstly , add all methods with no arguments, as these are very generic
  to add, introduced a base class for them, where we know they all have
  no effect or raise, as these functions are all guarantueed to succeed.

* This covers "str.capitalize", "str.upper", "str.lower", "str.swapcase",
  "str.title", "str.isalnum", "str.isalpha", "str.isdigit", "str.islower",
  "str.isupper", "str.isspace", "str.istitle" functions.

* Also add support for 'str.index', 'str.rindex' which is very similar
  to 'str.find', just may raise an exception.

* Also add support for 'str.split' which will be used sometimes for code
  needed to be compile time computed.

* Also add generated test to cover all str methods easily.
2021-12-21 23:17:45 +01:00
Kay Hayen
753b577b59 Optimization: Added support for "dict.update" 2021-12-07 09:40:00 +01:00
Kay Hayen
d2b1f40be5 Optimization: Added support for "dict.pop" as well
* Enhanced generated test output for more clarity with exceptions
  and variations.
2021-12-07 09:38:43 +01:00
Kay Hayen
3817896b68 Optimization: Added support for "dict.setdefault" as well. 2021-12-07 09:38:43 +01:00
Kay Hayen
94abde9438 Optimization: Added support for "dict.has_key"
* This is of course Python2 only, and there is old code still using it.

* The dictionary "in" node was made reusable to make this easy, just
  different evaluation order.

* Generation of nodes wasn't prepared for argument count specific functions yet.

* Add coverage of unhashable values at runtime and compile time to dict
  methods test.
2021-12-07 09:38:43 +01:00
Kay Hayen
87a055f85d Tests: Added generated test that covers dictionary method usages 2021-12-07 09:38:43 +01:00