Embeded python without filesystem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jacek Cz

    Embeded python without filesystem

    Do you have some tips about making Python small (minimal list of
    modules) and isolated from filesystem. I have an idea

    #define Py_WITHOUT_FILE S
    This switch should disable some function/modules from modules sys,
    fileobject, but also import from file, path resolving etd.
  • SimonVC

    #2
    Re: Embeded python without filesystem

    Maybe have a look at Pippy, which is python for the Palm.
    As i understand it there is no file system on the Palm.



    Cheers
    VC

    Jacek Cz <michalw@trylog ia.pl> wrote in message news:<c5o5em$bq $1@taurus.webco rp.pl>...[color=blue]
    > Do you have some tips about making Python small (minimal list of
    > modules) and isolated from filesystem. I have an idea
    >
    > #define Py_WITHOUT_FILE S
    > This switch should disable some function/modules from modules sys,
    > fileobject, but also import from file, path resolving etd.[/color]

    Comment

    • Martin v. Löwis

      #3
      Re: Embeded python without filesystem

      Jacek Cz wrote:[color=blue]
      > Do you have some tips about making Python small (minimal list of
      > modules) and isolated from filesystem. I have an idea
      >
      > #define Py_WITHOUT_FILE S
      > This switch should disable some function/modules from modules sys,
      > fileobject, but also import from file, path resolving etd.[/color]

      It would be good if you could try to develop such a patch, and would
      volunteer to maintain it. If you do volunteer, there is a good chance
      that it gets included with Python.

      Regards,
      Martin

      Comment

      Working...