Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
I just start an online Python course and the first approach is using the console commands to create some files, moving around with dir, etc.
I know how to program in Java but I always used Eclipse to do my projects.
It is worth to learn how to do stuff using command lines in CMD, or it is irrelevant if we have good IDEs that we can use.
Most programmers won't generally touch the windows shell. If you are going to become an advanced programmer it is most likely that you will end up becoming familiar with the UNIX shell. Learning shell is a good idea, and if you are on the Windows platform I would recommend Cygwin as it allows you to learn the UNIX style shell while working in Windows.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I have a Perl script that can convert a binary file into a text file. Rather than rewriting the script in Python, I was wonder I could use this Perl script in my Python program, package it, and distribute it to computers that don't have Perl preinstalled into it.
Perl has ways to embed a perl interpreter into another program: mod_perl for Apache is such a thing. If you wanted to make a Python module that had an embedded perl in it, you could probably make that happen.
It's probably less work to rewrite the functionality in Python though.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I was wondering what language are windows programs coded in? Can a python program run on windows if the computer doesn't have python installed?
I would recommend reading into this:
https://en.wikipedia.org/wiki/Portable_Executable
An EXE is a bundle of machine code. Take a look in a hex editor and grab an opcode manual. You probably won't be able to make sense of it without a lot of studying, but they're basically micro instructions.
To your other question, though. Yes, you can make an exe from a Python script. This works by bundling the python runtime with the script itself. Take a look at pyinstaller:
http://www.pyinstaller.org/
EDIT: As pointed out in the comments, use pyinstaller instead of py2exe. It is more actively maintained.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
i have heard this is an environment variable but Can someone tell me the purpose of PYTHONSTARTUP?
PYTHONSTARTUP is an environment variable you will define specifying the location of the path to a python file.
This python script will be run by python before starting the python interactive mode (interpreter). You can use it for various enhancements like preloading modules, setting colors. (Here) is a helpful post.
Developers use something called dotfiles to enhance the bash environment. Lookup github for sample dotfile scripts which enhances the bash. You can use it with a similar state of mind. Here is a github startup script.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I'm new to Python and downloaded the 2.x version on my Mac (I'm not using 3.x because my University course only allows us to submit work using 2.x).
However, having downloaded I'm not sure where to type my code, it was much more simple with Mathematica and Maple which I learnt last term. Here is a screenshot of all of the results when I type Python into my applications:
Then I click on the Python 2.7 option and this comes up:
I click on IDLE and it comes up with a platform for typing code, which looks like this
but I'm not sure if it's the correct one that I would be expected to submit work using. The reason for this is that it's called IDLE, whereas when I used Mathematica and Maple all I had to do was click on 'Mathematica' or 'Maple' and a platform would come up for typing code straight away.
Is IDLE the correct platform for typing code using Python?
It's not the correct one, it's just one of many possible ways to edit your .py files and work on Python projects. There are many other IDEs around, and some developers just use their favorite text editors with Python plugins
Unlike Mathematica, Maple and MATLAB, you're not really bound to any particular development environment
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I want to port a web application scanning framework from Python 2.6.5-2.7.3 to Python 3 without causing much harm to the compatibility with Python 2.6+.
I have read briefly about six: Python 2 and 3 Compatibility Library and python-modernize.
The framework I am intending to port uses libraries like twisted which are natively supported in Python 2. I have read http://twistedmatrix.com/trac/wiki/Plan/Python3 which warns against usage of 2to3 at any stage during this process. The fact that python-modernize is a version of 2to3 has been another source of confusion.
May I have some suggesions on the optimal approach to carry out such a porting and some common bugs that I might encounter ?