Skip to main content
Second iteration. Fixed the weird syntax highlighting (as a result, the diff looks more extensive than it really is - use view "Side-by-side Markdown" to compare).
Source Link
Peter Mortensen
  • 31.5k
  • 22
  • 110
  • 134

Do you mean in Python or using ctypes?

In the first case, you simply cannot, because Python does not have signed/unsigned, 16/32 bit integers.

In the second case, you can use type():

>>> import ctypes
>>> a = ctypes.c_uint() # Unsigned int
>>> type(a)
<class 'ctypes.c_ulong'>
>>> import ctypes
>>> a = ctypes.c_uint() # Unsigned int
>>> type(a)
<class 'ctypes.c_ulong'>

For more references on ctypes, and its type, see the official documentation.

Do you mean in Python or using ctypes?

In the first case, you simply cannot, because Python does not have signed/unsigned, 16/32 bit integers.

In the second case, you can use type():

>>> import ctypes
>>> a = ctypes.c_uint() # Unsigned int
>>> type(a)
<class 'ctypes.c_ulong'>

For more references on ctypes, and its type, see the official documentation.

Do you mean in Python or using ctypes?

In the first case, you simply cannot, because Python does not have signed/unsigned, 16/32 bit integers.

In the second case, you can use type():

>>> import ctypes
>>> a = ctypes.c_uint() # Unsigned int
>>> type(a)
<class 'ctypes.c_ulong'>

For more references on ctypes, and its type, see the official documentation.

Active reading [<https://en.wiktionary.org/wiki/and#Conjunction>].
Source Link
Peter Mortensen
  • 31.5k
  • 22
  • 110
  • 134

Do you mean in Python or using ctypes?

In the first case, you simply cannot -, because Python does not have signed/unsigned, 16/32 bit integers.

In the second case, you can use type():

>>> import ctypes
>>> a = ctypes.c_uint() # unsignedUnsigned int
>>> type(a)
<class 'ctypes.c_ulong'>

For more referencereferences on ctypes, anand its type, see the official documentation.

Do you mean in Python or using ctypes?

In the first case, you simply cannot - because Python does not have signed/unsigned, 16/32 bit integers.

In the second case, you can use type():

>>> import ctypes
>>> a = ctypes.c_uint() # unsigned int
>>> type(a)
<class 'ctypes.c_ulong'>

For more reference on ctypes, an its type, see the official documentation.

Do you mean in Python or using ctypes?

In the first case, you simply cannot, because Python does not have signed/unsigned, 16/32 bit integers.

In the second case, you can use type():

>>> import ctypes
>>> a = ctypes.c_uint() # Unsigned int
>>> type(a)
<class 'ctypes.c_ulong'>

For more references on ctypes, and its type, see the official documentation.

Fixed ctypes link
Source Link
rob
  • 37.9k
  • 2
  • 60
  • 67

Do you mean in Python or using ctypesctypes?

In the first case, you simply cannot - because Python does not have signed/unsigned, 16/32 bit integers.

In the second case, you can use type():

>>> import ctypes
>>> a = ctypes.c_uint() # unsigned int
>>> type(a)
<class 'ctypes.c_ulong'>

For more reference on ctypes, an its type, see the official documentation.

Do you mean in Python or using ctypes?

In the first case, you simply cannot - because Python does not have signed/unsigned, 16/32 bit integers.

In the second case, you can use type():

>>> import ctypes
>>> a = ctypes.c_uint() # unsigned int
>>> type(a)
<class 'ctypes.c_ulong'>

For more reference on ctypes, an its type, see the official documentation.

Do you mean in Python or using ctypes?

In the first case, you simply cannot - because Python does not have signed/unsigned, 16/32 bit integers.

In the second case, you can use type():

>>> import ctypes
>>> a = ctypes.c_uint() # unsigned int
>>> type(a)
<class 'ctypes.c_ulong'>

For more reference on ctypes, an its type, see the official documentation.

Copy edited.
Source Link
Peter Mortensen
  • 31.5k
  • 22
  • 110
  • 134
Loading
Source Link
rob
  • 37.9k
  • 2
  • 60
  • 67
Loading