2008年08月07日 星期四 09:25
On Thu, Aug 7, 2008 at 09:21, ccnusjy <ccnusjy在gmail.com> wrote: > > Differences with Karrigell 2.4.0 ;-) quietly and power! is perfect! hope karrigell growning up and up! > 1 - Syntax > > 1.1 Relative file names > . os.getcwd() always return the server directory (NOT the directory > where the script is running) > . the built-in string CWD is current script directory > . the built-in function REL(filename) converts a relative file name to > the absolute file name, based on the current script directory > . for convenience and compatibility with previous versions, the Python > built-ins open() and file() convert relative path names to absolute > path names based on current script directory > > 1.2 Imports > . for each request, current script directory is added to sys.path > . at the end of the request, sys.path is restored in a thread-safe way > > 1.3 Outputs > . sys.stdout can't be used to send the response to user agent. The > built-in function print can be used for that ; it is internally > translated into the built-in function PRINT() which can also be used > directly : > PRINT(data) is the same as print data > > . to avoid whitespace and line breaks introduced by print or PRINT, > use the built-in function STDOUT() > > > 2 - Implementation > > 2.1 Threading server > Using the built-in threading server makes it possible to serve long- > running scripts without blocking other requests > > 2.2 Session management > Sessions are always in memory. The life duration of a session in the > session database can be configured > --~--~---------~--~----~------------~-------~--~----~ > You received this message because you are subscribed to the Google Groups "karrigell" group. > To post to this group, send email to karrigell在googlegroups.com > To unsubscribe from this group, send email to karrigell+unsubscribe在googlegroups.com > For more options, visit this group at http://groups.google.com/group/karrigell?hl=en > -~----------~----~----~----~------~----~------~--~--- > > -- http://zoomquiet.org''' 过程改进乃是催生可促生靠谱的人的组织! PE keeps evolving organizations which promoting people be good!'''
Zeuux © 2024
京ICP备05028076号