Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/django/contrib/gis/__pycache__/ |
Upload File : |
o ���_ � @ s d dl mZ G dd� d�ZdS )� )�c_void_pc @ sB e Zd ZdZdZeZdZeZ e dd� �Zejdd� �Zdd� Z dS )�CPointerBasezz Base class for objects that have a pointer access property that controls access to the underlying C pointer. Nc C s | j r| j S | �d| jj ��)NzNULL %s pointer encountered.)�_ptr�null_ptr_exception_class� __class__�__name__��self� r �8/usr/lib/python3/dist-packages/django/contrib/gis/ptr.py�ptr s zCPointerBase.ptrc C s. |d u st || j�stdt|� ��|| _d S )NzIncompatible pointer type: %s.)� isinstance�ptr_type� TypeError�typer )r r r r r r s c C sB | j r| jrz | � | j� W dS tttfy Y dS w dS dS )z9 Free the memory used by the C++ object. N)� destructorr r �AttributeError�ImportErrorr r r r r �__del__ s ��zCPointerBase.__del__)r � __module__�__qualname__�__doc__r r r r r r �propertyr �setterr r r r r r s r N)�ctypesr r r r r r �<module> s