File: TODO

package info (click to toggle)
sip 2.5-2.2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,340 kB
  • ctags: 1,472
  • sloc: ansic: 11,902; sh: 6,482; yacc: 1,987; cpp: 540; lex: 423; makefile: 104
file content (62 lines) | stat: -rw-r--r-- 2,940 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
12.	Make the parser aware of Python keywords so they can't be used as
member function names.

19.	Tighten up the recognition of function signatures that involve char,
unsigned char etc.

20.	Implement the transfer of ownership for function results and variables
as well.  Also need to consider class variables.

25.	Add support for template classes.  I don't think a template class can
ever have an object created in Python (or a Python sub-classed from one).  It
would only be useful if the C++ library contained sub-classes of it (see
QwPositionedSprite and QwSprite).

31.	Allow handwritten code for static class variables (like
KTMainWindow.memberList).  The problem is intercepting references to it
(__getattr__ and __setattr__ aren't good enough) - probably extending the
lazy function mechanism.

32.	Add support for references and pointers in function arguments - assume
they are being used to return values.

33.	Consider using ConvertToSubClassCode for QObject so that the correct
Python type for an instance created by Qt can be used.  Or use RTTI and let SIP
generate the necessary code automatically.  In either case, have to consider
how to deal with sub-classes defined in other modules (need a way of a module
registering sub-classes with the original class).

34.	Add support for handwritten code for signals (eg.
QNetworkProtocol::newChildren).

35.	Fix the hack for private abstract functions.  If they are virtual we
probably want them to look for a Python method (even though they are private),
see QCanvasItem::collidesWith().

36.	Generate code that tests whether bool is implemented properly or is
just an int. In some places treating bools as ints will work - in others they
will cause a signature clash (eg. proxySlot()).

37.	Consider changing the way default arguments that are function calls are
handled.  At the moment the function is always called and the result discarded
if it is not needed.  It should really only be called if the result is really
needed.

38.	Look at whether code for += style operators can be automated.  Then
look at implementing iterators in PyQt.

41.	Look at the memory leak in virtual handler code, eg. when a virtual
method returns a QString (not a pointer to a QString).  Should be able to avoid
the leak if we take advantage of the class having a copy ctor.

42.	Look at ways of making a C++ dtor callable from Python.

43.	Look at how the result of a Python virtual method is handled if it is
the wrong type - particularly if it is None/NULL and shouldn't be.

44.	Add %MemberCall as an alternative to %MemberCode which (unlike the
latter) generates the argument parsing and result handling code but not the
code that actually calls the method.  This allows the user to specify the
arguments/result in terms of what they want from Python rather than what they
get from C++.  So long as what they want are types that SIP can generate code
for, less handwritten code is required.