Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!newsreader4.netcologne.de!news.netcologne.de!fu-berlin.de!uni-berlin.de!not-for-mail From: Alan Evangelista Newsgroups: comp.lang.python Subject: Re: Structure of program development Date: Mon, 4 Jul 2016 13:40:04 -0300 Lines: 21 Message-ID: References: <95C250EE0EE1485FAB159FFB82C178BB@mike> <577A9164.8030808@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de ESt27PiZEDzmom5vmWpi9gKVHrw3s7ocGCv9S0EjtK/g== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.011 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'repeated': 0.07; 'runtime': 0.09; 'python': 0.10; 'interpreter': 0.15; '500+': 0.16; 'code?': 0.16; 'editor,': 0.16; 'library).': 0.16; 'perl.': 0.16; 'received:9': 0.16; 'received:ibm.com': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:program': 0.16; 'instance,': 0.18; 'library,': 0.18; 'linux,': 0.18; 'python?': 0.18; 'language': 0.19; 'together.': 0.20; 'machine': 0.21; 'not,': 0.22; 'libraries': 0.22; 'programming': 0.22; 'code.': 0.23; 'second': 0.24; 'header:In-Reply-To:1': 0.24; "i've": 0.25; 'header:User-Agent:1': 0.26; 'installed': 0.26; 'question': 0.27; 'developing': 0.28; 'perl': 0.29; 'environment': 0.29; 'program,': 0.29; 'books': 0.30; 'option': 0.31; 'software,': 0.32; 'run': 0.33; 'worked': 0.34; 'text': 0.35; 'but': 0.36; 'there': 0.36; 'lines': 0.36; 'possible': 0.36; 'basic': 0.36; 'to:addr:python- list': 0.36; 'subject:: ': 0.37; 'method': 0.37; 'does': 0.39; 'system.': 0.39; 'to:addr:python.org': 0.40; 'software': 0.40; 'save': 0.60; 'header:Message-Id:1': 0.61; 'charset:windows-1252': 0.62; 'more': 0.63; 'different': 0.63; 'series': 0.65; 'developed': 0.66; 'reuse': 0.66; 'products': 0.70; 'design.': 0.72; 'gotten': 0.76; 'chapters': 0.93 X-IBM-Helo: d24dlp02.br.ibm.com X-IBM-MailFrom: alanoe@linux.vnet.ibm.com X-IBM-RcptTo: python-list@python.org User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 In-Reply-To: <95C250EE0EE1485FAB159FFB82C178BB@mike> X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16070416-0032-0000-0000-00000261BF96 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16070416-0033-0000-0000-00000E994841 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2016-07-04_10:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1604210000 definitions=main-1607040153 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <577A9164.8030808@linux.vnet.ibm.com> X-Mailman-Original-References: <95C250EE0EE1485FAB159FFB82C178BB@mike> Xref: csiph.com comp.lang.python:111087 > I am new to this programming adventure. I've gotten past the introductory chapters in 'How to..." books and now want to start developing a much more complicated program that I will use repeated for different applications. When I worked in Perl there was an option to write a program in a text editor, save it, and then run in with Perl. Is such a thing possible in Python? If not, how do I develop a 500+ lines of code? Yes. You can do it for every programming language I know, otherwise development would be impossible. > A second question of the basic design. If I write a program, can I move it to a computer that is without any Python software, or does that machine have to download the Python software? Does Python products contain all parts of a developed program or is it a series of 'call' statements? The target system must have the Python interpreter and standard library, which are always installed together. A software developed in Python must contain the method calls to the Python standard library, 3rd party libraries and/or custom code. It may or not contain the Python runtime environment (interpreter and std library). In Linux, for instance, it is standard to not include dependencies (eg Python runtime environment) in an application, but reuse the one already installed in the target system. Regards