Skip to content

Commit

Permalink
Make sure we deal with null bytes appropriate when getting a random s…
Browse files Browse the repository at this point in the history
…tream of bytes as a Python string.
  • Loading branch information
rkern committed Jul 20, 2006
1 parent e6b71b7 commit 046388a
Show file tree
Hide file tree
Showing 3 changed files with 5,364 additions and 5,363 deletions.
1 change: 1 addition & 0 deletions numpy/random/mtrand/Python.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ cdef extern from "Python.h":
# String API
char* PyString_AsString(object string)
object PyString_FromString(char* c_string)
object PyString_FromStringAndSize(char* c_string, int length)

# Memory API
void* PyMem_Malloc(size_t n)
Expand Down
Loading

0 comments on commit 046388a

Please sign in to comment.