Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.016 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'that?': 0.05; 'dynamically': 0.07; 'subject:file': 0.07; 'subject:create': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'subject:python': 0.16; 'wrote:': 0.18; 'file,': 0.19; 'email addr:gmail.com>': 0.22; 'cc:addr:python.org': 0.22; 'file.': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; '>': 0.26; 'header:In-Reply- To:1': 0.27; 'generally': 0.29; 'said,': 0.30; 'message- id:@mail.gmail.com': 0.30; 'anyone': 0.31; 'file': 0.32; 'text': 0.33; 'good.': 0.35; 'received:google.com': 0.35; 'doing': 0.36; 'hi,': 0.36; 'subject:new': 0.38; 'bad': 0.39; 'how': 0.40; 'tell': 0.60; 'new': 0.61; "you're": 0.61; 'to:addr:gmail.com': 0.65; 'within': 0.65; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Ba1qULEVwDbSSaRAo/eGoWnGgS77VQCrrWcLjJNyRdY=; b=g5h8rkVUgGnypac4jOdum3rtN4ynAWhp1T0Kb/Hn3POB1x0uvuowpx7xbdZgWAzEX0 wOlCQdymBiM2kOO7vwLWLFPgGUlCovqzn1iyr3GENq5/P0sCK5GtxeAbAYFIJE+16jh/ kNtZ3jjK9JH4ys338V8JvN7dgExso/COU+OjPmkDHXe++rEIR09nhDV5ynFA0uukM3uO IIEDLCFA6xiYFuB0Gq60Q97R6xQ6GdqfMUn3FxGp9lJFZT91bNWSoHiCMv0QDKuwczF3 sfxLU9jvrSulTJvNk+ZY0rALuBnkUHlFvUchXFVlZv8YVWDOfgXwPyWXULv66OtpuKi3 Z2Yg== MIME-Version: 1.0 X-Received: by 10.49.107.2 with SMTP id gy2mr27968378qeb.21.1370362708216; Tue, 04 Jun 2013 09:18:28 -0700 (PDT) In-Reply-To: References: Date: Tue, 4 Jun 2013 17:18:28 +0100 Subject: Re: create new python file From: =?ISO-8859-1?Q?F=E1bio_Santos?= To: kakararunachalservice@gmail.com Content-Type: multipart/alternative; boundary=047d7bdc13ce6fe6dd04de566e4a Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 26 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1370362716 news.xs4all.nl 15893 [2001:888:2000:d::a6]:43640 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:46937 --047d7bdc13ce6fe6dd04de566e4a Content-Type: text/plain; charset=ISO-8859-1 On 4 Jun 2013 17:14, wrote: > > Hi, > Can anyone please tell me how to dynamically create a new python file within a program??? That's generally a bad idea. Why are you doing that? That said, it's just like writing to a text file. So if you write python in a text file, you're good. --047d7bdc13ce6fe6dd04de566e4a Content-Type: text/html; charset=ISO-8859-1


On 4 Jun 2013 17:14, <kakararunachalservice@gmail.com> wrote:
>
> Hi,
> Can anyone please tell me how to dynamically create a new python file within a program???

That's generally a bad idea. Why are you doing that?

That said, it's just like writing to a text file. So if you write python in a text file, you're good.

--047d7bdc13ce6fe6dd04de566e4a--