Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #100118

Re: Understanding Python from a PHP coder's perspective

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Ian Kelly <ian.g.kelly@gmail.com>
Newsgroups comp.lang.python
Subject Re: Understanding Python from a PHP coder's perspective
Date Mon, 7 Dec 2015 16:10:31 -0700
Lines 19
Message-ID <mailman.39.1449529878.12405.python-list@python.org> (permalink)
References <f39f97f5-d7a1-4d7c-a7ac-527c2ffff76b@googlegroups.com> <44d92f52-4f92-470d-a724-102a14d185de@googlegroups.com> <mailman.35.1449525620.12405.python-list@python.org> <3e30fc58-4460-40a6-a639-22cd4d406f0b@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace news.uni-berlin.de DX/TOyrqEBbxgVSsdmYn6wydpMrJ6Bfv7Qsrc6YOZcTA==
Return-Path <ian.g.kelly@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.024
X-Spam-Evidence '*H*': 0.95; '*S*': 0.00; 'received:209.85.223': 0.03; 'subject:Python': 0.05; '(except': 0.05; 'cache': 0.05; 'php,': 0.09; 'restarted': 0.09; '3:27': 0.16; 'anyway).': 0.16; 'in-memory': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'storing': 0.16; 'subject:perspective': 0.16; 'wsgi': 0.16; 'wrote:': 0.16; '2015': 0.20; "user's": 0.22; 'dec': 0.23; 'header :In-Reply-To:1': 0.24; 'mon,': 0.24; 'separate': 0.27; 'message- id:@mail.gmail.com': 0.27; 'preserve': 0.29; 'reset': 0.29; "i'm": 0.30; 'related': 0.32; 'received:google.com': 0.35; 'but': 0.36; 'received:209.85': 0.36; 'possible': 0.36; 'framework': 0.36; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:209': 0.38; 'thank': 0.38; 'data': 0.39; 'sure': 0.39; 'does': 0.39; 'subject:from': 0.39; 'along': 0.39; 'to:addr:python.org': 0.40; 'where': 0.40; 'your': 0.60; 'different': 0.63; 'between': 0.65; 'reuse': 0.66; 'feeling': 0.72; 'state.': 0.72; 'insight': 0.79; '"it': 0.84; 'all!': 0.84; 'openly': 0.84; 'to:name:python': 0.84; 'different.': 0.91; 'relate': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=kx/r7/cC13NnOgMD3iwp5Yw0XISqL9K8LJRBYtKeWQM=; b=YL4agPpkmrkor54X9+JvT0hI1eNsGqRBE8PVaGkpysA8DBa/8RyPypWsAbNqKQgjC9 UxJhLfPiXPWbzRzWcQtmmZh2YZ4/FTvt6QUgXTKCw9lS14A+KkjTaoGQoUKEceASqUaj 0hauWz6wnLYda0budmK9vSmlXnnSj0NgHs4gZ3yKCz+GrTYcSYfpKNxhj71BXJL3+wZd 68s5wzLkIkrXoFcWGvlc8RqED1JNPtQGignAixLEVjb+z35SX1/1CsZmjiuZZ3FdH7ma xo6MRzlrwVAfrC2mETqCiuzQiq0eo2obWFNklBzFgVS8hws3wI6eWM5YqHuOYXt31+5p kLIw==
X-Received by 10.107.19.12 with SMTP id b12mr1062397ioj.11.1449529870696; Mon, 07 Dec 2015 15:11:10 -0800 (PST)
In-Reply-To <3e30fc58-4460-40a6-a639-22cd4d406f0b@googlegroups.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:100118

Show key headers only | View raw


On Mon, Dec 7, 2015 at 3:27 PM,  <villascape@gmail.com> wrote:
> Thank you all!
>
> Okay, the concept of a WSGI along with a framework provides insight on my main questions.
>
> In regards to Chris's statement: "It openly and honestly does NOT reset its state between page requests"
>
> With PHP, I have sessions to preserve state.  I have a feeling that this is significantly different.  Yes?  How?  Does this somehow relate to how websockets are implemented?

Session state is different from process state. Whether you start a new
process for each request or reuse an existing process has no bearing
on whether you're storing and reading data related to the user's
session (except that in the reuse case it's possible to cache the data
in-process, whereas an in-memory cache for a restarted process must be
in a separate process; but it's good practice to have your in-memory
cache in a separate process anyway).

I'm not sure where websockets come into this, as that's a completely
separate technology that is not used by most web apps.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Understanding Python from a PHP coder's perspective villascape@gmail.com - 2015-12-07 13:07 -0800
  Re: Understanding Python from a PHP coder's perspective villascape@gmail.com - 2015-12-07 13:21 -0800
    Re: Understanding Python from a PHP coder's perspective Chris Angelico <rosuav@gmail.com> - 2015-12-08 09:00 +1100
      Re: Understanding Python from a PHP coder's perspective villascape@gmail.com - 2015-12-07 14:27 -0800
        Re: Understanding Python from a PHP coder's perspective Chris Angelico <rosuav@gmail.com> - 2015-12-08 10:09 +1100
          Re: Understanding Python from a PHP coder's perspective villascape@gmail.com - 2015-12-07 17:00 -0800
            Re: Understanding Python from a PHP coder's perspective Chris Angelico <rosuav@gmail.com> - 2015-12-08 14:26 +1100
        Re: Understanding Python from a PHP coder's perspective Ian Kelly <ian.g.kelly@gmail.com> - 2015-12-07 16:10 -0700
        Re: Understanding Python from a PHP coder's perspective Cameron Simpson <cs@zip.com.au> - 2015-12-08 10:07 +1100
        Re: Understanding Python from a PHP coder's perspective Tim Chase <python.list@tim.thechases.com> - 2015-12-07 21:11 -0600
        Re: Understanding Python from a PHP coder's perspective Chris Angelico <rosuav@gmail.com> - 2015-12-08 14:47 +1100
  Re: Understanding Python from a PHP coder's perspective Cameron Simpson <cs@zip.com.au> - 2015-12-08 08:33 +1100
  Re: Understanding Python from a PHP coder's perspective Ian Kelly <ian.g.kelly@gmail.com> - 2015-12-07 14:37 -0700
  Re: Understanding Python from a PHP coder's perspective Chris Angelico <rosuav@gmail.com> - 2015-12-08 08:40 +1100
  Re: Understanding Python from a PHP coder's perspective Terry Reedy <tjreedy@udel.edu> - 2015-12-07 16:53 -0500
  Re: Understanding Python from a PHP coder's perspective Ian Kelly <ian.g.kelly@gmail.com> - 2015-12-07 14:59 -0700
  Re: Understanding Python from a PHP coder's perspective Chris Angelico <rosuav@gmail.com> - 2015-12-08 09:03 +1100
  Re: Understanding Python from a PHP coder's perspective Tim Chase <python.list@tim.thechases.com> - 2015-12-07 16:28 -0600
  Re: Understanding Python from a PHP coder's perspective villascape@gmail.com - 2015-12-07 20:11 -0800
  Re: Understanding Python from a PHP coder's perspective Peter Otten <__peter__@web.de> - 2015-12-08 10:24 +0100
  Re: Understanding Python from a PHP coder's perspective Chris Angelico <rosuav@gmail.com> - 2015-12-08 20:40 +1100

csiph-web