question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DOC/DEP: Document and/or deprecate `uint0` and `int0`

See original GitHub issue

Hi.

The page at https://numpy.org/devdocs/user/basics.types.html does not include a valid data type in numpy, that is, int0. Request to edit the datatype into the doc.

<------ reproducing code example ------>

>>> import numpy as np
>>> np.int0 is np.int64
True
>>> np.__version__
'1.81.1'
>>> exit()

After exiting

[user@linux~]$ python --version Python 3.8.1

The code example is provided thanks to user ‘Right leg’ from here, https://stackoverflow.com/questions/48350693/what-is-numpy-method-int0 .

Thank you.


EDIT by seberg: In gh-11025 Robert notes that “In Numeric, Int0 is indeed equivalent to Int8” if this is documented, we have to make sure to be correct as to whether this is an alias to intp or to int8.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
eric-wiesercommented, Jan 15, 2020

We should deprecate them in code as well, but that is only reasonable in 3.7+

We should probably focus on writing the NEP for #14901 before we try and deprecate anything else like it.

0reactions
Rubix982commented, Jan 18, 2020

@eric-wieser alright, I’ll keep this issue open till then.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found