Charlie Lin
e279888f52
Use Py_IncRef in pyaCallables.cc
2025-05-11 09:07:55 -04:00
Matthias Köfferlein
449a9a968e
Merge pull request #2015 from KLayout/bugfix/issue-2012
...
Bugfix/issue 2012
2025-04-05 19:21:35 +02:00
Matthias Koefferlein
c656700b44
Maybe fixed issue-2012 (leaking reference in Python)
2025-04-03 20:44:34 +02:00
Matthias Koefferlein
227203cdd1
Providing a less strict overload resolution
...
Downcast now has precedence over conversion constructors, hence less ambiguities
Solution is implemented for
- Ruby
- Python
- Expressions
For Expressions:
- The overload resolution is less evolved anyway
- There was an additional bug preventing to pass arrays (hashes) in expressions
2025-03-26 00:45:16 +01:00
Matthias Koefferlein
33b54f3f88
Merge branch 'master' into devel
2025-01-19 22:04:55 +01:00
Matthias Koefferlein
07da5a3cf2
More details on Python doc involving class properties.
2025-01-16 20:42:14 +01:00
Matthias Koefferlein
629aef6d06
Fixing an issue with Python class property setters (only helps debugging, does not solve the issue)
2025-01-16 20:41:24 +01:00
Matthias Koefferlein
5d57cb5eed
Updating copyright to 2025
2025-01-04 19:32:33 +01:00
Matthias Koefferlein
c9da9dc6e0
Updating copyright to 2025
2025-01-04 19:28:56 +01:00
Matthias Koefferlein
8c935409ea
Added a test for net neighborhood, predicable order of results of edge neighborhood scanner.
2024-12-31 16:37:01 +01:00
Matthias Köfferlein
ec21809cc3
Merge pull request #1916 from KLayout/maybe-pex-support
...
Some add-ons for potential application in the PEX context
2024-11-28 20:43:40 +01:00
Matthias Koefferlein
fecb8a8c8a
RDB tests for Python too
2024-11-13 18:22:55 +01:00
Matthias Koefferlein
105751e2cf
Trying to become compatible with Python 3.13 on Windows
2024-11-13 00:47:27 +01:00
Matthias Koefferlein
ec5de7b7f1
Compatibility with Python 3.13.
2024-09-22 02:38:33 +02:00
Matthias Koefferlein
491048db4c
Fixed new Python module handling for standalone module case
2024-09-15 16:28:43 +02:00
Matthias Koefferlein
20d599b1de
Mute noisy diagnostics with Python debug builds, avoid post-Finalize Python API access by pre-Finalize cleanup of modules. This avoids an assertion in Python debug builds and is a better style anyway.
2024-09-15 16:28:39 +02:00
Matthias Koefferlein
fd1dc842e0
Generic GSI methods #_to_const_object (for testing) and #_const_cast. Fixed a class initialization issue - sub classes should not be registered by name at top level in Expressions
2024-08-07 00:11:48 +02:00
Matthias Köfferlein
8ab398dc58
Merge pull request #1811 from KLayout/wip
...
Wip
2024-07-30 18:59:09 +02:00
Matthias Koefferlein
b253eaa51a
Including more GeneratorExit and StopAsyncIteration in the ignored exceptions for Python
2024-07-27 14:29:14 +02:00
Matthias Koefferlein
a0d26a59e3
Properly transferring ownership for variant to Python/Ruby translation
2024-07-25 21:07:36 +02:00
Matthias Koefferlein
9a79838369
Bugfix for issue-1793: using the heap to properly store the default values
2024-07-20 18:58:29 +02:00
Matthias Köfferlein
02506495c2
Merge pull request #1777 from KLayout/bugfix/issue-1771
...
Bugfix/issue 1771
2024-07-06 14:49:45 +02:00
Matthias Koefferlein
27549e006d
Fixing issue #1771 - Python 3.11.7 introduced a new behavior for getting the stack trace line number
2024-07-06 00:23:42 +02:00
Matthias Koefferlein
769327cdab
Fixing issue #1774 (providing klayout.__version__ also for built-in module)
2024-07-05 17:50:38 +02:00
Matthias Koefferlein
d59d318218
Bugfix: restoring original overload matching scheme for Ruby and Python
2024-05-25 18:58:18 +02:00
Matthias Koefferlein
1861abc68c
Bugfix for passing default arguments to GSI calls
...
This happens when default arguments (specifically
user class or enum types) and passed between keyword
and positional arguments. We must not use a temporary
tl::Variant object as it gets out of scope and a
reference is stored.
In addition: better error messages for Python when
a method can't be matched to arguments.
2024-05-25 17:48:17 +02:00
Matthias Koefferlein
c43b70b783
Shape#hash and Shape#< allow using Shape objects as hash keys
2024-03-29 21:47:37 +01:00
Matthias Koefferlein
38a3b8305e
Fixing issue #1651 (errors when adding polygons with 4 points) - needs some testing
2024-03-23 15:24:18 +01:00
Matthias Köfferlein
cc7622b6b4
Maybe fixing issue #1619 (crash on Fedora-39 upon initialization) ( #1622 )
...
* Maybe fixing issue #1619 (crash on Fedora-39 upon initialization)
* Python 3.6 compatibility
---------
Co-authored-by: Matthias Koefferlein <matthias@klayout.de>
2024-02-12 08:40:39 +01:00
Matthias Köfferlein
2be4066856
Fixed issue #1610 : leaking reference in Python debugger ( #1618 )
...
Co-authored-by: Matthias Koefferlein <matthias@klayout.de>
2024-02-11 10:27:53 +01:00
Matthias Koefferlein
1e51cf6901
Fixing Windows installation without path initialization file
2024-01-30 20:26:22 +01:00
Matthias Koefferlein
4f9effab7e
Trying to fix Python 3.6 builds + tests
2024-01-25 13:35:23 +01:00
klayoutmatthias
ef4cbb045b
On Windows, Python needs to have a proper PYTHONHOME, otherwise a warning is issued
2024-01-24 00:30:15 +01:00
Matthias Koefferlein
2b4a583f05
Update copyright year
2024-01-01 17:27:59 +01:00
Matthias Koefferlein
940ef5319a
WIP: refinement of Python and Ruby support for keyword arguments.
2023-12-27 22:56:11 +01:00
Matthias Koefferlein
702bcbe924
WIP: keyword arguments (for now: Python) + transformation alignment
...
pya.CplxTrans and pya.Trans are good classes for testing the
ability to resolve arguments through keyword parameters.
Keyword parameters are introduced to substitute positional
arguments.
2023-12-26 23:27:25 +01:00
Matthias Koefferlein
d1695b88af
Merge branch 'wip'
2023-12-23 18:05:54 +01:00
Matthias Koefferlein
9525cfd1cd
Fixed #1565 (quit() raises an error in KLayout Python Console)
2023-12-11 23:55:57 +01:00
Matthias Köfferlein
6c4e082fc1
Merge pull request #1547 from KLayout/issue-1542
...
Issue 1542 - crash on exit
2023-11-26 22:19:04 +01:00
Matthias Köfferlein
3b83230de0
Merge pull request #1546 from KLayout/issue-1530
...
Issue 1530 - size-2 tuples for points
2023-11-26 22:18:52 +01:00
Matthias Koefferlein
b2b950041d
[consider merging] Avoids an assertion when using tuples for out vector parameters
2023-11-26 09:55:23 +01:00
Matthias Koefferlein
38d7d34642
[consider merging] Fixed Python Exit Exception - Python test fails were not recognized
2023-11-26 09:55:20 +01:00
Matthias Koefferlein
b1ddb702b8
Experimental: implicitly calling constructors from arguments passed tuples or lists for objects - this allows using a (x,y) tuple for Vector or Point arguments
2023-11-26 09:55:15 +01:00
Matthias Koefferlein
ef9d73f178
Experimental: calling str(x) implicitly in RBA and pya
2023-11-26 09:28:24 +01:00
Matthias Koefferlein
dd0cfe9b97
Trying to fix issue
2023-11-25 01:00:20 +01:00
Matthias Koefferlein
bcec400e09
Fixed a crash with -without-qt: Python appears to need a non-empty application path upon initialization
2023-11-11 10:47:39 +01:00
Matthias Koefferlein
261d0249e8
Merge branch 'wip'
2023-10-19 21:23:07 +02:00
Matthias Koefferlein
4e83cab061
Proper Python stack trace in debugger for Python 3.10
2023-08-26 15:44:54 +02:00
Matthias Koefferlein
254015617d
Merge branch 'wip' into wip2
2023-08-11 19:17:01 +02:00
Matthias Koefferlein
ad114f6137
Fixed unit tests (error messages now have the message class attached)
2023-07-29 01:13:25 +02:00