3434struct _object ;
3535typedef _object PyObject;
3636
37- // There is two kind of wrapping :
37+ // There are two kinds of wrapping :
3838// - Wrapping C++ object to pass it in the Python world.
3939// - Wrapping Python objects to pass it to the C++ world (mainly used by the creator).
4040//
@@ -50,8 +50,8 @@ typedef _object PyObject;
5050// item = archive.getItem(...);
5151// ```
5252// Which is not possible because the Item has not default constructor.
53- // The solution is to manipulate all libzim object throw pointer
54- // (pointer can be defaul constructed to nullptr).
53+ // The solution is to manipulate all libzim object through pointers
54+ // (pointer can be default constructed to nullptr).
5555// As the libzim functions/methods return directly the instance, we have to wrap all
5656// of them (in pure C++) to make them return a pointer.
5757// (Hopefully, copy constructor is available on libzim classes)
@@ -65,7 +65,7 @@ typedef _object PyObject;
6565// Wrapper<Foo> instead of Foo.
6666// As Wrapper<Foo> do not inherit from Foo, we must define all the methods we want to wrap in python.
6767// Thoses methods just have to forward the call from the wrapper to the wrapped instance.
68- // As Wrapper<Foo> can be implicitly construct from Foo, we can also simply forward the call and the
68+ // As Wrapper<Foo> can be implicitly constructed from Foo, we can also simply forward the call and the
6969// conversion will be made for us.
7070// The macro FORWARD help us a lot here.
7171
0 commit comments