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


Groups > comp.lang.python > #74273

Re:Writing Python File at Specific Interval

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.003
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.06; 'problem?': 0.07; 'string': 0.09; 'encode': 0.09; 'filename': 0.09; 'part,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'wrote': 0.14; 'received:80.91.229.3': 0.16; 'received:97': 0.16; 'received:plane.gmane.org': 0.16; 'subject:File': 0.16; 'subject:Writing': 0.16; 'trying': 0.19; 'module,': 0.24; 'file.': 0.24; 'logging': 0.26; 'header:X-Complaints-To:1': 0.27; 'went': 0.31; 'getting': 0.31; 'file': 0.32; 'but': 0.35; 'next': 0.36; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'tips': 0.61; 'new': 0.61; 'email addr:gmail.com': 0.63; 'name': 0.63; 'date,': 0.68; 'results': 0.69; "today's": 0.70; 'researched': 0.84; 'subject::': 0.85
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Dave Angel <davea@davea.name>
Subject Re:Writing Python File at Specific Interval
Date Wed, 9 Jul 2014 14:55:11 -0400 (EDT)
Organization news.gmane.org
References <33d2582e-06b6-4cb9-8d60-7f94aa32283c@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host 97.73.240.27
X-Newsreader PiaoHong.Usenet.Client.VIP:1.56
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
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>
Newsgroups comp.lang.python
Message-ID <mailman.11707.1404931993.18130.python-list@python.org> (permalink)
Lines 24
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1404931993 news.xs4all.nl 2896 [2001:888:2000:d::a6]:39044
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:74273

Show key headers only | View raw


subhabangalore@gmail.com Wrote in message:
> 
> 
> In the next part, I am trying to store the daily 
> results to a new file. 
> 
> As I researched I found some tips around time module,
> logging module, pythoncom etc. But not getting any important
> lead.
> 

What exactly is the problem? Perhaps you want the file name to
 encode the date, so that today's filename might be 2014-07-09.txt
 ?

So you need to look up the current date, make a string from it,
 and create that file. 

What have you tried,  and what went wrong? 


-- 
DaveA

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


Thread

Writing Python File at Specific Interval subhabangalore@gmail.com - 2014-07-09 07:36 -0700
  Re:Writing Python File at Specific Interval Dave Angel <davea@davea.name> - 2014-07-09 14:55 -0400
  Re: Writing Python File at Specific Interval Shubham Tomar <tomarshubham24@gmail.com> - 2014-07-09 22:47 +0530
  Re: Writing Python File at Specific Interval Abhiram R <abhi.darkness@gmail.com> - 2014-07-09 23:09 +0530
  Re: Writing Python File at Specific Interval Denis McMahon <denismfmcmahon@gmail.com> - 2014-07-09 23:51 +0000
    Re: Writing Python File at Specific Interval subhabangalore@gmail.com - 2014-07-20 04:15 -0700
      Re: Writing Python File at Specific Interval Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-07-20 12:46 +0100

csiph-web