python - How do I read numpy source? -


i built myself on python 3.3, can't life of me find class definition of numpy.array(). i've looked through code , found core c files, dang array class??

can tell me directory in, or how find out python shell?

  • np.array not class itself, convenience function create np.ndarray
  • ndarray aliased multiarray, implemented in c code (i think in .so i.e. shared object, compiled code)
  • you can start looking @ ndarray interfaces here in numeric.py.
  • most of meat of implementation in c code, here in multiarray.
  • array() implemented in core/src/multiarray/methods.c in array_getarray()

Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -