#15593: sqlalchemy and gdmodule should not be standard packages
-------------------------------------+-------------------------------------
       Reporter:  ohanar             |        Owner:
           Type:  enhancement        |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.2
      Component:  packages:          |   Resolution:
  standard                           |    Merged in:
       Keywords:                     |    Reviewers:
        Authors:  R. Andrew Ohana    |  Work issues:
Report Upstream:  N/A                |       Commit:
         Branch:                     |  d701c15354193da3ba02762ca61e6763a74b6b40
  u/ohanar/optionalize               |     Stopgaps:
   Dependencies:                     |
-------------------------------------+-------------------------------------

Comment (by jdemeyer):

 I dislike
 {{{
 fn = open(filename, 'wb') # check filename
 fn.close()

 cdef FILE *out = fopen(filename, 'wb')

 gdImagePng(im, out)

 fclose(out)
 }}}
 You can open the file using Python and access its `FILE*` with
 [http://docs.python.org/2/c-api/file.html#PyFile_AsFile PyFile_AsFile].

--
Ticket URL: <http://trac.sagemath.org/ticket/15593#comment:4>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to