[NumPy-Tickets] [NumPy] #1660: ~2**32 byte tofile()/fromfile() limit in 64-bit Windows

NumPy Trac numpy-tickets@scipy....
Thu Nov 4 09:12:10 CDT 2010


#1660: ~2**32 byte tofile()/fromfile() limit in 64-bit Windows
------------------------------------------------------+---------------------
 Reporter:  mspacek                                   |       Owner:  somebody    
     Type:  defect                                    |      Status:  needs_review
 Priority:  normal                                    |   Milestone:  1.5.1       
Component:  numpy.core                                |     Version:  1.5.0       
 Keywords:  tofile fromfile save load 64-bit windows  |  
------------------------------------------------------+---------------------

Comment(by rgommers):

 About the unit test: you applied the slow decorator, that's all you can do
 probably. Or maybe we need @dec.very_slow ...

 A few other points:

   - {{{tempfile.mktemp()}}} is deprecated, use {{{mkstemp()}}} or
 {{{NamedTemporaryFile()}}}.
   - don't use assert but assert_() from numpy.testing. The builtin assert
 gets stripped when byte-compiling with -O.
   - don't use capitalized variable names.
   - use separate lines for {{{try: ..}}}, like:

 {{{
 except MemoryError:
     pass
 try:
     os.unlink(fname)
 except WindowsError:
     pass
 }}}

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1660#comment:12>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list