Commit Graph

20 Commits

Author SHA1 Message Date
John J. Camilleri
ad0832903a Add FreeHypos function. Remove old Python 2 preproc definition 2021-09-30 10:45:01 +02:00
John J. Camilleri
808e8db141 Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic 2021-09-28 11:58:31 +02:00
John J. Camilleri
16eb5f1a89 Type initialiser accepts sequences, stores internally as tuples. Add tests which try to break things. 2021-09-28 11:58:22 +02:00
krangelov
0771906206 Merge branch 'majestic' of github.com:GrammaticalFramework/gf-core into majestic 2021-09-28 11:13:58 +02:00
krangelov
fcad8dd3e2 no more space leaks 2021-09-28 11:13:45 +02:00
John J. Camilleri
388829d63d Make hypos tuples again 😥 2021-09-28 10:35:19 +02:00
krangelov
5334174923 fix reference counting but valgrind says that there are more leaks 2021-09-27 20:24:57 +02:00
John J. Camilleri
8c3f9c8d73 Use PyBool instead of PyLong for bind_type 2021-09-27 15:37:33 +02:00
John J. Camilleri
6f94957857 Make Hypo its own class instead of using tuples 2021-09-27 09:00:46 +02:00
John J. Camilleri
1fce5144f8 Rename fields to match those in runtime. Use tp_members instead of tp_getattro for getters. 2021-09-26 15:14:04 +02:00
krangelov
4a0efda0e6 fix the handling of PGF_EXN_OTHER_ERROR 2021-09-25 08:11:05 +02:00
John J. Camilleri
a46b91fe10 Missed one 'free' 2021-09-24 16:13:36 +02:00
John J. Camilleri
4719e509a5 Add FreePgfText function 2021-09-24 15:00:10 +02:00
John J. Camilleri
d0ce218ae1 Add helper functions for common conversions 2021-09-24 13:09:26 +02:00
John J. Camilleri
917c223db7 Add checkoutBranch function. Fix incorrect INCREF of non-Python object. 2021-09-24 11:47:46 +02:00
John J. Camilleri
4611d831ff Add helper function for checking and converting list of hypos 2021-09-22 15:37:33 +02:00
John J. Camilleri
b1fd1f1a5e Fix segfaults with Python 3.8 in Transaction_createCategory. Tweaks to enter/exit functions. 2021-09-22 15:14:42 +02:00
John J. Camilleri
4af807c982 Fix createCategory. Add functionProbability. 2021-09-21 23:34:03 +02:00
John J. Camilleri
b4b8572af3 Header and source file cleanup 2021-09-21 22:28:44 +02:00
John J. Camilleri
7dba3465d0 Refactor modules in Python bindings. Start work on grammar-update functions, but without transactions. 2021-09-20 23:42:50 +02:00