Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I am starting off with Lettuce to test a web application. The problem is I am unaware of how to configure Eclipse so that it runs my steps file. The web also seems pretty unaware of this and this is hence my last resort.
For an automated solution you can look at the Eclipse External Tools capability. This is documented in the Eclipse help for the workbench. Follow the links Workbench User Guide ==> Concepts ==> Ant & External Tools ==> External Tools .
for interactive use, you can run lettuce from the Python console within Eclipse if you have Pydev installed, and you should if you use Eclipse for Python development.
Related
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 3 years ago.
Improve this question
I've been doing Python applications lately, but I've only tested it on Windows 10 (and sometimes on Windows 7).
Now, I need to create an app to be available on Windows XP and 98 also. From my research, I've seen Python drooped Win9x/NT support at version 2.5.4.
There are alternative builds: http://www.msfn.org/board/topic/162317-python-27-for-windows-95/ but, I want to know from your experience, what is the best practice to create this application and to make it as plug and play?
Everything under python 2.7 is just death, try to make it as cross-platform friendly so you can work it out.
One tip I know when working with that kind of stuff is not to use os.system() functions and such. It's better to find a library that interacts with it under the hood.
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 want to understand the difference between distributing a python application. The application should be used on both Windows and Mac OS platforms. I see there are two ways of doing it.
Either create a executable using py2exe / py2app etc
Distribute the application using pip.
I would like to understand the use-cases for both the solutions.
A few things. As Sam Chats mentioned, one possible use case for creating the executable is if you don't want to share your source code, while if you distribute the application using pip, you will be able to. Additionally, if you distribute using pip vs. creating an application, more users may be able to easily access your application. As an example, check out this StackOverflow answer as a reason for using pip over Anaconda
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
How to debug python in c level?
in PyCharm,i cannot step into the c level code.
could it?
or which tool can do it?
Use GDB, there's a ton of information on it here.
https://wiki.python.org/moin/DebuggingWithGdb
You need to install the python version with debugging symbols and then step through it with GDB the same way you would a C program.
I highly recommend Visual Studio with PTVS. It provides mixed-mode debugging. link to PTVS project onGithub. Also, you can download a community version of VS2015 for free.
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 6 years ago.
Improve this question
I make web applications using Ruby on Rails as my backend. I use React and Flux on the frontend, which is JavaScript. I can fully use the debugging tools I need. I simply add the line of code "debugger" anywhere in my app, so that execution stops there. I use byebug gem in Rails. When the "debugger" line of code is executed on backend code, the debugging happens on the command line; when it happens in JavaScript code, the debugging happens in Chrome Dev Tools. In other words, I can work very quickly to debug.
What is the equivalent convenient debugging tool in Python? In other words, what should a person who can already program in general, and just wants to rapidly be able to debug in Python use? I am using Atom editor (like I use when I am making a web app).
You can use pdb
To add a breakpoint, insert:
import pdb; pdb.set_trace()
where you want to stop.
NB:
Since python 3.7, you just can do
breakpoint()
In the debugger mode you can use the following commands.
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
is it possible to write Metro apps with Python? Because Python is my primary language.
You can't write a full application yet. The easiest path to that would be to use a Python Binding for the CLR, such as IronPython. Unfortunately, they're still working on support.
There's clearly a lot of interest in adding support for Metro, since they even had a work item in, which has now been migrated to GitHub.
Citing their own documentation,
Support for Android, Windows 8 Store Apps (Metro), Window Phone 8, and
iOS are also planned (in roughly that order).
When that happens, the project will be able to target the subset of the BCL that WinRT supports.
No. Python is not a supported language for Windows Store apps.
That said, some people have ported python to run scripts in a Windows Store app (for example: Python 3 for Metro). The app itself is not written in python.