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


Groups > comp.lang.python > #31873

Re: program loaded in memory

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <d@davea.name>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.009
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'syntax': 0.03; 'parser': 0.07; 'python': 0.09; 'yet)': 0.09; 'cc:addr:python-list': 0.10; '2.7': 0.13; 'subject:program': 0.16; 'sync': 0.16; 'url.': 0.16; 'www': 0.16; 'wrote:': 0.17; 'fix': 0.17; 'config': 0.17; 'windows': 0.19; 'variable': 0.20; 'define': 0.20; 'import': 0.21; 'sorry,': 0.22; 'cc:2**0': 0.23; 'example': 0.23; 'task': 0.23; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'errors.': 0.27; "i'm": 0.29; 'file': 0.32; 'thanks': 0.34; 'pm,': 0.35; 'loaded': 0.36; 'subject:: ': 0.38; 'some': 0.38; 'received:192': 0.39; 'received:192.168': 0.40; 'your': 0.60; 'more': 0.63; 'else.': 0.65; 'header:Reply-To:1': 0.68; 'received:74.208': 0.71; 'reply-to:no real name:2**0': 0.72; 'ini': 0.84; 'received:74.208.4.194': 0.84; 'eliminates': 0.93
Date Sun, 21 Oct 2012 20:47:32 -0400
From Dave Angel <d@davea.name>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120912 Thunderbird/15.0.1
MIME-Version 1.0
To Anatoli Hristov <tolidtm@gmail.com>
Subject Re: program loaded in memory
References <CAKhY55NWpOxpTdTNi6i1vio0u9utL72Gq6CA1w81QFNmQz8+RQ@mail.gmail.com> <50849151.1080807@davea.name> <8497844152128210023@unknownmsgid>
In-Reply-To <8497844152128210023@unknownmsgid>
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 7bit
X-Provags-ID V02:K0:HF6z5hXgng1IArB8f4G6zo0JGIbOi2ShkOP62oImfLA W+6KML+Lp4VyCHPr6QH741OiZTq9z+CHT6IymsnS0fCka/2NJV 66OLJwR7fWDPt5AuvFT8a2oLyRY/2QwV0I9YRb9sc3jOKtm6/L jJC/mwjOftcyg5PvEvRryNBY2OWKgUsorbhaPSz9HgkuHtpKGJ qvoGb64kDrLdPGk0H2NgL6ato9ll+pLzezUM6gvHb5i5mfoZ7I EBoLEnRzCkrAUl6aBSqmqHr+hL/AEC1g/HR6swwHYxN6sQzvib JAUSyXeVIjLExkdj4jxyE4GRPTEYfXS7r/ghFq1EWoMLPRANw= =
Cc "python-list@python.org" <python-list@python.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
Reply-To d@davea.name
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2615.1350866882.27098.python-list@python.org> (permalink)
Lines 25
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1350866882 news.xs4all.nl 6903 [2001:888:2000:d::a6]:48741
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:31873

Show key headers only | View raw


On 10/21/2012 08:31 PM, Anatoli Hristov wrote:
> Yes sorry, the name var(interval) is loaded from the ini file and also
> the Url. The reason is that the ini file will be configured from
> someone else. Example of the file
> 
> URL = www # define your url
> interval = 1 # minutes for sync
> 
> I see in the task manager each time it downloads the file that it
> grows up with 30kb.
> And I'm using Python 2.7 on windows 7
> 
> Thanks
> 
So now, that eliminates one of the errors.  (Though import is much more
reasonable than exec(), and some config parser is better yet)

To fix the syntax error, you need + signs before and after the variable URL




-- 

DaveA

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


Thread

Re: program loaded in memory Dave Angel <d@davea.name> - 2012-10-21 20:47 -0400

csiph-web