Opened 6 years ago

Last modified 4 years ago

#320 new defect

Type checking when casting objects to pointers

Reported by: dagss Owned by: somebody
Priority: minor Milestone: wishlist
Component: Type Analysis Keywords:
Cc:

Description (last modified by scoder)

a) There's currently a lot of different PyObject declarations floating around in Cython/Includes?. This could be fixed by centralizing them. [DONE]

b) However, currently it is possible to do <AnyStruct*>pyobject. This is probably a bit too lenient -- one would wish to require <AnyStruct*><void*>pyobject; while still allowing <PyObject*>pyobject. This could speak in favor of making PyObject a builtin.

Change History (5)

comment:1 Changed 5 years ago by scoder

  • Component changed from Parsing to Type Analysis
  • Description modified (diff)
  • Milestone changed from wishlist to 0.12

Targeting this to 0.12 as it's really annoying. There should be a builtin "PyObject?" type that's simply known without any cimports.

comment:2 Changed 5 years ago by scoder

  • Milestone changed from 0.12 to 0.13

This has not been decided yet. The cleanup in Cython/Includes/? lifts the weight from this problem. Retargeting to 0.13.

comment:3 Changed 4 years ago by robertwb

  • Milestone changed from 0.13 to 0.13.1

comment:4 Changed 4 years ago by robertwb

  • Milestone changed from 0.14 to wishlist
  • Priority changed from major to minor

comment:5 Changed 4 years ago by scoder

  • Description modified (diff)
  • Summary changed from Canonical PyObject to Type checking when casting objects to pointers

Changed subject to represent the left-over parts of this bug.

Note: See TracTickets for help on using tickets.