26 Commits

Author SHA1 Message Date
Kay Hayen
46527eb455 Cleanup, attach copyright during code generation for specialiations
* This also enhances the formatting for almost all files by making
  leading and trailing new lines more consistent.

* One C file turns out unused, was probably a left over.
2025-10-10 17:05:56 +02:00
Kay Hayen
718ab60539 Bump copyright year 2025-04-28 11:04:36 +02:00
Kay Hayen
4f2cc6ae93 Optimization: Enhanced exception handling
* Use exception state to abstract 3.12 or before differences. This
  solves a TODO about more very in-efficient code generated that
  also requires many conversions of exceptions back and forth from
  3 value form to normalized.

* Moved compile time debug settings to separate file.

* Pass the exception state into unpacking function for more
  efficient code. No need to fetch exceptions per use of
  those into the exception state, but it can directly write to
  there.

* Solve TODO and have helper for unpacking length check. When
  migrating to Python3, this became a custom template with a
  lot of manual code that pre-defined the error messages to
  give too.

* Have our own variant of "_PyGen_FetchStopIterationValue" to
  avoid API calls in generator handling.

* Generate more efficient code for raising exceptions of builtin
  type. Rather than calling them as a function, create them via
  base exception new directly which will be much quicker.

* Faster exception creation, avoid having "args" and a tuple need
  to hole them for empty exceptions avoiding one more allocation.

* Remove uses of "PyTuple_Pack" and replace with our own helpers
  to avoid API calls.

* Avoid implicit exception raise nodes with delayed creation, have
  exception making nodes instead.
2024-12-18 11:09:55 +01: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
4cfdd9f9c0 Bump copyright year 2022-05-23 10:28:11 +02:00
Kay Hayen
e43b72e087 Bump copyright year to 2021. 2021-01-22 09:58:00 +01:00
Kay Hayen
b2083575cf Bump copyright year to 2020. 2020-02-01 07:42:45 +01:00
Kay Hayen
2928827ade Quality: Also autoformat programs test suite 2019-08-24 09:30:35 +02:00
Kay Hayen
712036697d Tests: Minor cleanup 2019-03-21 21:33:09 +01:00
Kay Hayen
61b13e9957 Minor cleanups 2019-03-21 21:33:09 +01:00
Kay Hayen
47c99d377e Bump copyright year to 2019. 2019-01-24 16:28:13 +01:00
Kay Hayen
3957ee8628 Updated copyright year to 2018. 2018-04-30 09:46:54 +02:00
Kay Hayen
064df32ff0 Updated copyright year to 2017. 2017-01-09 07:25:38 +01:00
Kay Hayen
72ac16cfd9 Updated copyright year to 2016 2016-01-04 09:34:48 +01:00
Kay Hayen
84cf72a916 Tests: Make it possible for "__file__" to depend on run time.
* We need to include "test_common" in reference count tests, or
  else it may not be found.

* Only actual syntax tests should be there, not things that raise
  syntax error at run time, those are not real syntax tests. The
  traceback given then depends on run time.
2015-03-15 08:17:29 +01:00
Kay Hayen
bc8367e3bd Updated copyright year to 2015 2015-01-13 08:43:41 +01:00
Kay Hayen
bf480213dd Updated copyright year to 2014 2014-03-02 07:57:59 +01:00
Kay Hayen
0fa789a247 Module recursion corrections and test improvements
* Python3.3: Fix, packages without "__init__.py" didn't have the module
  embedded.

* Tests improvement, make sure programs execute without the imported modules
  accessible.

* Triggered by Issue#114 it became apparent that the programs test case won't
  notice if the recursion does not work at all (which it did on develop at
  some point).

* Also check the flags given to the test runner in order to detect typos.
2013-11-30 08:47:56 +01:00
Kay Hayen
5ca8af2bb5 Fix, absolute imports are default for Python3.2 as well.
* Also made programs test cases syntax correct for Python3, need to
  handle failing absolut import meant as local imports later.

* Improved test coverage for imports.
2013-03-17 14:32:10 +01:00
Kay Hayen
50da5af696 Updated copyright year in notices. 2013-01-12 10:35:22 +01:00
Kay Hayen
149bc9c9c9 Changed my email address towards the outside world. 2012-12-29 14:42:43 +01:00
Kay Hayen
c915bc2f5d Put my tests and modifications to other peoples tests under "Apache License 2.0" already. 2012-01-07 02:11:47 +01:00
Kay Hayen
ad9c704b62 Whitespace only, remove leading blank lines from tests. 2012-01-05 10:25:17 +01:00
Kay Hayen
c03f222a4f New copyright year, license cleanups.
* Removed copyright notice from inline copy of Scons, added by accident only
* Claim stronger copyright over basic, program, and reflected tests to release
  them under public domain.
* Updated debian/copyright to include "odict" and "oset" licenses, and
  full text for ARM ucontext parts
* Remove benchmarks from Debian package, too diverse licenses and not for
  users.
2012-01-02 09:48:38 +01:00
Kay Hayen
974be576f9 Fix, when attempting to recurse into a module, it might give a SyntaxError or IndentationError exception.
Simply skip to embedd the module in this case.
2011-10-27 09:31:33 +02:00