Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , ,

Sponsored Links


Python Programming Beginner question

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 22-04-2012
Member
 
Join Date: Sep 2010
Posts: 15
Python Programming Beginner question

Sponsored Links
Hello I have just completed my graduation and I am started learning Python. I am using 'A Byte of python' to learn python and I have choose this book because this easy to learn although I have some question on this programming first of all I need to know is this best book for beginner and and i have below questions:
  • To be able to run the Python script What would you like to do
  • It might take a long time to start the Python Why?
  • *. Pyd file the same as What is DLL?
  • Python program to run on Windows What would you like to do?

Reply With Quote
  #2  
Old 22-04-2012
Member
 
Join Date: Jul 2011
Posts: 376
Re: Python Programming Beginner question

Answer for To be able to run the Python script What would you like to do:

In Windows, Python is an open standard installer command associated with a certain file type extension already py (Python.File), to run the interpreter on the file type (D:. \ Program Files \ Python \ python.exe "% gives a 1 "% *). To be able to run the script as 'foo.py' from the command prompt, this is sufficient. If you want to run it just type 'foo' script without the extension, please add. Py environment variable PATHEXT.

In Windows NT, by the above-mentioned step is performed by the installer, you will be able to run in 'foo.py' the script, due to a bug in many years, to the redirection of input or output in NT command processor, You can not use this method. This will be the often significant.

Charm that allows you to run a Python script WinNT is that the extension cmd to a file, add the following statement in the first row.:
Code:
  @ Setlocal enableextensions & python-x% ~ f0% * & goto: EOF
Reply With Quote
  #3  
Old 22-04-2012
Member
 
Join Date: Apr 2009
Posts: 475
Re: Python Programming Beginner question

It might take a long time to start the Python Why:
There is a bug report usually Python will start very quickly in Windows, it began to take a long time to suddenly start Python from time to time. To further complicate matters, Python is a Windows system which configured just like any other software. This problem may be caused by mis-configured anti-virus software on your machine. In the virus scanner, which are available if you configured to monitor all read from the file system, can cause the startup very slow. so therefore Please ensure that you make sure the settings for virus scanning software on your system have been set up to properly.
Reply With Quote
  #4  
Old 22-04-2012
Shreevats's Avatar
Member
 
Join Date: May 2009
Posts: 514
Re: Python Programming Beginner question

*. Pyd file the same as What is DLL?

Yes,. Pyd file is the same as dll although there are some differences. if there were a DLL named foo.pyd, it must contain () initfoo function. Over the "import foo" with Python That way, Python is (foo.py and, foo.pyc) foo.pyd looking for, if any, will attempt to call the initialize () initfoo. Unlike to require the presence of a DLL is Windows, but does not link to foo.lib. Exe file.

In addition, the path to search for foo.pyd is PYTHONPATH, may not be the same as the Windows path to search for foo.dll. In addition, when you link to dll the program requires a dll to run the program, foo.pyd is to run is not necessary. Of course, foo.pyd is required if you want to import foo. In the DLL, the link will be declared by the (dllexport) __declspec in the source code. . In pyd, is defined by a list of link function is usable.
Reply With Quote
  #5  
Old 22-04-2012
Member
 
Join Date: May 2011
Posts: 95
Re: Python Programming Beginner question

Python program to run on Windows What would you like to do?
This may not be a simple problem. If you are accustomed to operate the program from the Windows command line already, but all you can see immediately, you need a little information otherwise. Windows 95,98, there is a difference also between the, 2000, XP NT, ME, has become a source of confusion.

Unless you are using an integrated development environment of some kind you, you will want to type in what is called in various ways and eventually "DOS window" Windows command "command prompt window." Typically, such a window can be issued from the Start menu. Menu choice is Start ‣ Programs ‣ Accessories ‣ Command Prompt in Windows 2000. Such that the window is open, you'll see from that there is a Windows "command prompt" like this: Normal

Code:
  C: \>
This character can have different, or because there is continued, there will be set or computer, also depending on what you did recently you have become like this:
Code:
  D: \ Steve \ Projects \ Python>
Even if you open such a window, run the Python program step will proceed smoothly.
Reply With Quote
Reply

  TechArena Community > Software > Software Development


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Python Programming Beginner question"
Thread Thread Starter Forum Replies Last Post
Good books for learning Python programming language afroditaa Software Development 6 21-01-2013 09:42 AM
Ebook for learning Python programming language Thaddeu$ Ebooks 6 20-12-2012 05:37 PM
Which Programming Language is good for a Beginner? Mykola Software Development 4 10-04-2011 10:28 AM
Programming in python Hashim Software Development 4 21-03-2011 10:05 PM
Question on classes in Python Nutty Software Development 5 16-03-2009 11:55 AM


All times are GMT +5.5. The time now is 09:20 AM.