text stringlengths 200 200k | source stringclasses 2
values |
|---|---|
# Does an application-wide exception handler make sense?
## Question
Long story short, I have a substantial Python application that, among other things, does outcalls to "losetup", "mount", etc. on Linux. Essentially consuming system resources that must be released when complete.
If my application crashes, I want to... | stackoverflow-qa |
# Does an application-wide exception handler make sense?
## Question
Long story short, I have a substantial Python application that, among other things, does outcalls to "losetup", "mount", etc. on Linux. Essentially consuming system resources that must be released when complete.
If my application crashes, I want to... | stackoverflow-qa |
# Does an application-wide exception handler make sense?
## Question
Long story short, I have a substantial Python application that, among other things, does outcalls to "losetup", "mount", etc. on Linux. Essentially consuming system resources that must be released when complete.
If my application crashes, I want to... | stackoverflow-qa |
# Does an application-wide exception handler make sense?
## Question
Long story short, I have a substantial Python application that, among other things, does outcalls to "losetup", "mount", etc. on Linux. Essentially consuming system resources that must be released when complete.
If my application crashes, I want to... | stackoverflow-qa |
# How to associated the cn in an ssl cert of pyOpenSSL verify_cb to a generated socket
## Question
I am a little new to pyOpenSSL. I am trying to figure out how to associate the generated socket to an ssl cert. verify_cb gets called which give me access to the cert and a conn but how do I associate those things when... | stackoverflow-qa |
# How to load a python module into a fresh interactive shell in Komodo?
## Question
When using PyWin I can easily load a python file into a fresh interactive shell and I find this quite handy for prototyping and other exploratory tasks.
I would like to use Komodo as my python editor, but I haven't found a replacement... | stackoverflow-qa |
# How do I use Django templates without the rest of Django?
## Question
I want to use the Django template engine in my (Python) code, but I'm not building a Django-based web site. How do I use it without having a settings.py file (and others) and having to set the DJANGO_SETTINGS_MODULE environment variable?
If I ru... | stackoverflow-qa |
# How do I use Django templates without the rest of Django?
## Question
I want to use the Django template engine in my (Python) code, but I'm not building a Django-based web site. How do I use it without having a settings.py file (and others) and having to set the DJANGO_SETTINGS_MODULE environment variable?
If I ru... | stackoverflow-qa |
# How do I use Django templates without the rest of Django?
## Question
I want to use the Django template engine in my (Python) code, but I'm not building a Django-based web site. How do I use it without having a settings.py file (and others) and having to set the DJANGO_SETTINGS_MODULE environment variable?
If I ru... | stackoverflow-qa |
# How do I use Django templates without the rest of Django?
## Question
I want to use the Django template engine in my (Python) code, but I'm not building a Django-based web site. How do I use it without having a settings.py file (and others) and having to set the DJANGO_SETTINGS_MODULE environment variable?
If I ru... | stackoverflow-qa |
# How do I use Django templates without the rest of Django?
## Question
I want to use the Django template engine in my (Python) code, but I'm not building a Django-based web site. How do I use it without having a settings.py file (and others) and having to set the DJANGO_SETTINGS_MODULE environment variable?
If I ru... | stackoverflow-qa |
# How do I use Django templates without the rest of Django?
## Question
I want to use the Django template engine in my (Python) code, but I'm not building a Django-based web site. How do I use it without having a settings.py file (and others) and having to set the DJANGO_SETTINGS_MODULE environment variable?
If I ru... | stackoverflow-qa |
# How do I use Django templates without the rest of Django?
## Question
I want to use the Django template engine in my (Python) code, but I'm not building a Django-based web site. How do I use it without having a settings.py file (and others) and having to set the DJANGO_SETTINGS_MODULE environment variable?
If I ru... | stackoverflow-qa |
# How do I use Django templates without the rest of Django?
## Question
I want to use the Django template engine in my (Python) code, but I'm not building a Django-based web site. How do I use it without having a settings.py file (and others) and having to set the DJANGO_SETTINGS_MODULE environment variable?
If I ru... | stackoverflow-qa |
# What is the best solution for database connection pooling in python?
## Question
I have developed some custom DAO-like classes to meet some very specialized requirements for my project that is a server-side process that does not run inside any kind of framework.
The solution works great except that every time a n... | stackoverflow-qa |
# What is the best solution for database connection pooling in python?
## Question
I have developed some custom DAO-like classes to meet some very specialized requirements for my project that is a server-side process that does not run inside any kind of framework.
The solution works great except that every time a n... | stackoverflow-qa |
# What is the best solution for database connection pooling in python?
## Question
I have developed some custom DAO-like classes to meet some very specialized requirements for my project that is a server-side process that does not run inside any kind of framework.
The solution works great except that every time a n... | stackoverflow-qa |
# What is the best solution for database connection pooling in python?
## Question
I have developed some custom DAO-like classes to meet some very specialized requirements for my project that is a server-side process that does not run inside any kind of framework.
The solution works great except that every time a n... | stackoverflow-qa |
# What is the best solution for database connection pooling in python?
## Question
I have developed some custom DAO-like classes to meet some very specialized requirements for my project that is a server-side process that does not run inside any kind of framework.
The solution works great except that every time a n... | stackoverflow-qa |
# What is the best solution for database connection pooling in python?
## Question
I have developed some custom DAO-like classes to meet some very specialized requirements for my project that is a server-side process that does not run inside any kind of framework.
The solution works great except that every time a n... | stackoverflow-qa |
# What is a metaclass in Python?
## Question
What are metaclasses? What do you use them for?
## Answer
Metaclasses are the secret sauce that make 'class' work. The default metaclass for a new style object is called 'type'.
class type(object)
| type(object) -> the object's type
| type(name, bases, dict) -> a ne... | stackoverflow-qa |
# What is a metaclass in Python?
## Question
What are metaclasses? What do you use them for?
## Answer
I think the ONLamp introduction to metaclass programming is well written and gives a really good introduction to the topic despite being several years old already.
http://www.onlamp.com/pub/a/python/2003/04/17/meta... | stackoverflow-qa |
# What is a metaclass in Python?
## Question
What are metaclasses? What do you use them for?
## Answer
One use for metaclasses is adding new properties and methods to an instance automatically.
For example, if you look at Django models, their definition looks a bit confusing. It looks as if you are only defining cla... | stackoverflow-qa |
# What is a metaclass in Python?
## Question
What are metaclasses? What do you use them for?
## Answer
A metaclass is the class of a class. Like a class defines how an instance of the class behaves, a metaclass defines how a class behaves. A class is an instance of a metaclass.
While in Python you can use arbitrar... | stackoverflow-qa |
# What is a metaclass in Python?
## Question
What are metaclasses? What do you use them for?
## Answer
Others have explained how metaclasses work and how they fit into the Python type system. Here's an example of what they can be used for. In a testing framework I wrote, I wanted to keep track of the order in which c... | stackoverflow-qa |
# What is a metaclass in Python?
## Question
What are metaclasses? What do you use them for?
## Answer
Classes as objects
Before understanding metaclasses, you need to master classes in Python. And Python has a very peculiar idea of what classes are, borrowed from the Smalltalk language.
In most languages, classes ... | stackoverflow-qa |
# What is a metaclass in Python?
## Question
What are metaclasses? What do you use them for?
## Answer
A metaclass is a class that tells how (some) other class should be created.
This is a case where I saw metaclass as a solution to my problem:
I had a really complicated problem, that probably could have been solved... | stackoverflow-qa |
# What is a metaclass in Python?
## Question
What are metaclasses? What do you use them for?
## Answer
What are metaclasses? What do you use them for?
A class is to an instance as a metaclass is to a class.
Put another way, a class is an instance of a metaclass.
Put a third way, a metaclass is a class's class.
... | stackoverflow-qa |
# What is a metaclass in Python?
## Question
What are metaclasses? What do you use them for?
## Answer
Python 3 update
There are (at this point) two key methods in a metaclass:
__prepare__, and
__new__
__prepare__ lets you supply a custom mapping (such as an OrderedDict) to be used as the namespace while the cla... | stackoverflow-qa |
# What is a metaclass in Python?
## Question
What are metaclasses? What do you use them for?
## Answer
type is actually a metaclass -- a class that creates another classes.
Most metaclass are the subclasses of type. The metaclass receives the new class as its first argument and provide access to class object with det... | stackoverflow-qa |
# What is the standard way to add N seconds to datetime.time in Python?
## Question
Given a datetime.time value in Python, is there a standard way to add an integer number of seconds to it, so that 11:34:59 + 3 = 11:35:02, for example?
These obvious ideas don't work:
>>> datetime.time(11, 34, 59) + 3
TypeError: unsu... | stackoverflow-qa |
# What is the standard way to add N seconds to datetime.time in Python?
## Question
Given a datetime.time value in Python, is there a standard way to add an integer number of seconds to it, so that 11:34:59 + 3 = 11:35:02, for example?
These obvious ideas don't work:
>>> datetime.time(11, 34, 59) + 3
TypeError: unsu... | stackoverflow-qa |
# What is the standard way to add N seconds to datetime.time in Python?
## Question
Given a datetime.time value in Python, is there a standard way to add an integer number of seconds to it, so that 11:34:59 + 3 = 11:35:02, for example?
These obvious ideas don't work:
>>> datetime.time(11, 34, 59) + 3
TypeError: unsu... | stackoverflow-qa |
# What is the standard way to add N seconds to datetime.time in Python?
## Question
Given a datetime.time value in Python, is there a standard way to add an integer number of seconds to it, so that 11:34:59 + 3 = 11:35:02, for example?
These obvious ideas don't work:
>>> datetime.time(11, 34, 59) + 3
TypeError: unsu... | stackoverflow-qa |
# What is the standard way to add N seconds to datetime.time in Python?
## Question
Given a datetime.time value in Python, is there a standard way to add an integer number of seconds to it, so that 11:34:59 + 3 = 11:35:02, for example?
These obvious ideas don't work:
>>> datetime.time(11, 34, 59) + 3
TypeError: unsu... | stackoverflow-qa |
# What is the standard way to add N seconds to datetime.time in Python?
## Question
Given a datetime.time value in Python, is there a standard way to add an integer number of seconds to it, so that 11:34:59 + 3 = 11:35:02, for example?
These obvious ideas don't work:
>>> datetime.time(11, 34, 59) + 3
TypeError: unsu... | stackoverflow-qa |
# How can I analyze Python code to identify problematic areas?
## Question
I have a large source repository split across multiple projects. I would like to produce a report about the health of the source code, identifying problem areas that need to be addressed.
Specifically, I'd like to call out routines with a high... | stackoverflow-qa |
# How can I analyze Python code to identify problematic areas?
## Question
I have a large source repository split across multiple projects. I would like to produce a report about the health of the source code, identifying problem areas that need to be addressed.
Specifically, I'd like to call out routines with a high... | stackoverflow-qa |
# How can I analyze Python code to identify problematic areas?
## Question
I have a large source repository split across multiple projects. I would like to produce a report about the health of the source code, identifying problem areas that need to be addressed.
Specifically, I'd like to call out routines with a high... | stackoverflow-qa |
# How can I analyze Python code to identify problematic areas?
## Question
I have a large source repository split across multiple projects. I would like to produce a report about the health of the source code, identifying problem areas that need to be addressed.
Specifically, I'd like to call out routines with a high... | stackoverflow-qa |
# How can I analyze Python code to identify problematic areas?
## Question
I have a large source repository split across multiple projects. I would like to produce a report about the health of the source code, identifying problem areas that need to be addressed.
Specifically, I'd like to call out routines with a high... | stackoverflow-qa |
# How can I analyze Python code to identify problematic areas?
## Question
I have a large source repository split across multiple projects. I would like to produce a report about the health of the source code, identifying problem areas that need to be addressed.
Specifically, I'd like to call out routines with a high... | stackoverflow-qa |
# How can I analyze Python code to identify problematic areas?
## Question
I have a large source repository split across multiple projects. I would like to produce a report about the health of the source code, identifying problem areas that need to be addressed.
Specifically, I'd like to call out routines with a high... | stackoverflow-qa |
# Python on Windows - how to wait for multiple child processes?
## Question
How to wait for multiple child processes in Python on Windows, without active wait (polling)? Something like this almost works for me:
proc1 = subprocess.Popen(['python','mytest.py'])
proc2 = subprocess.Popen(['python','mytest.py'])
proc1... | stackoverflow-qa |
# Python on Windows - how to wait for multiple child processes?
## Question
How to wait for multiple child processes in Python on Windows, without active wait (polling)? Something like this almost works for me:
proc1 = subprocess.Popen(['python','mytest.py'])
proc2 = subprocess.Popen(['python','mytest.py'])
proc1... | stackoverflow-qa |
# Python on Windows - how to wait for multiple child processes?
## Question
How to wait for multiple child processes in Python on Windows, without active wait (polling)? Something like this almost works for me:
proc1 = subprocess.Popen(['python','mytest.py'])
proc2 = subprocess.Popen(['python','mytest.py'])
proc1... | stackoverflow-qa |
# Python on Windows - how to wait for multiple child processes?
## Question
How to wait for multiple child processes in Python on Windows, without active wait (polling)? Something like this almost works for me:
proc1 = subprocess.Popen(['python','mytest.py'])
proc2 = subprocess.Popen(['python','mytest.py'])
proc1... | stackoverflow-qa |
# Python on Windows - how to wait for multiple child processes?
## Question
How to wait for multiple child processes in Python on Windows, without active wait (polling)? Something like this almost works for me:
proc1 = subprocess.Popen(['python','mytest.py'])
proc2 = subprocess.Popen(['python','mytest.py'])
proc1... | stackoverflow-qa |
# Why is "if not someobj:" better than "if someobj == None:" in Python?
## Question
I've seen several examples of code like this:
if not someobj:
#do something
But I'm wondering why not doing:
if someobj == None:
#do something
Is there any difference? Does one have an advantage over the other?
## Answer... | stackoverflow-qa |
# Why is "if not someobj:" better than "if someobj == None:" in Python?
## Question
I've seen several examples of code like this:
if not someobj:
#do something
But I'm wondering why not doing:
if someobj == None:
#do something
Is there any difference? Does one have an advantage over the other?
## Answer... | stackoverflow-qa |
# Why is "if not someobj:" better than "if someobj == None:" in Python?
## Question
I've seen several examples of code like this:
if not someobj:
#do something
But I'm wondering why not doing:
if someobj == None:
#do something
Is there any difference? Does one have an advantage over the other?
## Answer... | stackoverflow-qa |
# Why is "if not someobj:" better than "if someobj == None:" in Python?
## Question
I've seen several examples of code like this:
if not someobj:
#do something
But I'm wondering why not doing:
if someobj == None:
#do something
Is there any difference? Does one have an advantage over the other?
## Answer... | stackoverflow-qa |
# Why is "if not someobj:" better than "if someobj == None:" in Python?
## Question
I've seen several examples of code like this:
if not someobj:
#do something
But I'm wondering why not doing:
if someobj == None:
#do something
Is there any difference? Does one have an advantage over the other?
## Answer... | stackoverflow-qa |
# Why is "if not someobj:" better than "if someobj == None:" in Python?
## Question
I've seen several examples of code like this:
if not someobj:
#do something
But I'm wondering why not doing:
if someobj == None:
#do something
Is there any difference? Does one have an advantage over the other?
## Answer... | stackoverflow-qa |
# Building Python C extension modules for Windows
## Question
I have a C extension module and it would be nice to distribute built binaries. Setuptools makes it easy to build extensions modules on OS X and GNU/Linux, since those OSs come with GCC, but I don't know how to do it in Windows.
Would I need to buy a copy o... | stackoverflow-qa |
# Building Python C extension modules for Windows
## Question
I have a C extension module and it would be nice to distribute built binaries. Setuptools makes it easy to build extensions modules on OS X and GNU/Linux, since those OSs come with GCC, but I don't know how to do it in Windows.
Would I need to buy a copy o... | stackoverflow-qa |
# How do I read text from the (windows) clipboard from python?
## Question
How do I read text from the (windows) clipboard from python?
## Answer
Try win32clipboard from the win32all package (that's probably installed if you're on ActiveState Python).
See sample here: http://code.activestate.com/recipes/474121/
Tag... | stackoverflow-qa |
# How do I read text from the (windows) clipboard from python?
## Question
How do I read text from the (windows) clipboard from python?
## Answer
You can use the module called win32clipboard, which is part of pywin32.
Here is an example that first sets the clipboard data then gets it:
import win32clipboard
# set c... | stackoverflow-qa |
# How do I read text from the (windows) clipboard from python?
## Question
How do I read text from the (windows) clipboard from python?
## Answer
I've seen many suggestions to use the win32 module, but Tkinter provides the shortest and easiest method I've seen, as in this post: How do I copy a string to the clipboard... | stackoverflow-qa |
# How do I read text from the (windows) clipboard from python?
## Question
How do I read text from the (windows) clipboard from python?
## Answer
The most upvoted answer above is weird in a way that it simply clears the Clipboard and then gets the content (which is then empty). One could clear the clipboard to be sur... | stackoverflow-qa |
# How do I read text from the (windows) clipboard from python?
## Question
How do I read text from the (windows) clipboard from python?
## Answer
If you don't want to install extra packages, ctypes can get the job done as well.
import ctypes
CF_TEXT = 1
kernel32 = ctypes.windll.kernel32
user32 = ctypes.windll.user... | stackoverflow-qa |
# How do I read text from the (windows) clipboard from python?
## Question
How do I read text from the (windows) clipboard from python?
## Answer
you can easily get this done through the built-in module Tkinter which is basically a GUI library. This code creates a blank widget to get the clipboard content from OS.
#... | stackoverflow-qa |
# How do I read text from the (windows) clipboard from python?
## Question
How do I read text from the (windows) clipboard from python?
## Answer
For my console program the answers with tkinter above did not quite work for me because the .destroy() always gave an error,:
can't invoke "event" command: application ... | stackoverflow-qa |
# How do I read text from the (windows) clipboard from python?
## Question
How do I read text from the (windows) clipboard from python?
## Answer
Use Pythons library Clipboard
Its simply used like this:
import clipboard
clipboard.copy("this text is now in the clipboard")
print clipboard.paste()
Tags: python, win... | stackoverflow-qa |
# Is there a zip-like method in .Net?
## Question
In Python there is a really neat function called zip which can be used to iterate through two lists at the same time:
list1 = [1, 2, 3]
list2 = ["a", "b", "c"]
for v1, v2 in zip(list1, list2):
print v1 + " " + v2
The above code shoul produce the following:
1 a
... | stackoverflow-qa |
# Is there a zip-like method in .Net?
## Question
In Python there is a really neat function called zip which can be used to iterate through two lists at the same time:
list1 = [1, 2, 3]
list2 = ["a", "b", "c"]
for v1, v2 in zip(list1, list2):
print v1 + " " + v2
The above code shoul produce the following:
1 a
... | stackoverflow-qa |
# Is there a zip-like method in .Net?
## Question
In Python there is a really neat function called zip which can be used to iterate through two lists at the same time:
list1 = [1, 2, 3]
list2 = ["a", "b", "c"]
for v1, v2 in zip(list1, list2):
print v1 + " " + v2
The above code shoul produce the following:
1 a
... | stackoverflow-qa |
# Is there a zip-like method in .Net?
## Question
In Python there is a really neat function called zip which can be used to iterate through two lists at the same time:
list1 = [1, 2, 3]
list2 = ["a", "b", "c"]
for v1, v2 in zip(list1, list2):
print v1 + " " + v2
The above code shoul produce the following:
1 a
... | stackoverflow-qa |
# IronClad equivalent for Jython
## Question
For IronPython there is a project - IronClad, that aims to transparently run C extensions in it. Is there a similiar project for Jython?
## Answer
You can probably use Java's loadLibrary to do that (provided it works in your platform's java). It is in the java library: jav... | stackoverflow-qa |
# IronClad equivalent for Jython
## Question
For IronPython there is a project - IronClad, that aims to transparently run C extensions in it. Is there a similiar project for Jython?
## Answer
Keep an eye on JyNI (http://www.jyni.org), which is to Jython exactly what is Ironclad to IronPython. As of this writing JyNI ... | stackoverflow-qa |
# How do you access an authenticated Google App Engine service from a (non-web) python client?
## Question
I have a Google App Engine app - http://mylovelyapp.appspot.com/
It has a page - mylovelypage
For the moment, the page just does self.response.out.write('OK')
If I run the following Python at my computer:
impo... | stackoverflow-qa |
# How do you access an authenticated Google App Engine service from a (non-web) python client?
## Question
I have a Google App Engine app - http://mylovelyapp.appspot.com/
It has a page - mylovelypage
For the moment, the page just does self.response.out.write('OK')
If I run the following Python at my computer:
impo... | stackoverflow-qa |
# How do you access an authenticated Google App Engine service from a (non-web) python client?
## Question
I have a Google App Engine app - http://mylovelyapp.appspot.com/
It has a page - mylovelypage
For the moment, the page just does self.response.out.write('OK')
If I run the following Python at my computer:
impo... | stackoverflow-qa |
# Is there a way to run Python on Android?
## Question
We are working on an S60 version and this platform has a nice Python API.
However, there is nothing official about Python on Android, but since Jython exists, is there a way to let the snake and the robot work together?
## Answer
Not at the moment and you would... | stackoverflow-qa |
# Is there a way to run Python on Android?
## Question
We are working on an S60 version and this platform has a nice Python API.
However, there is nothing official about Python on Android, but since Jython exists, is there a way to let the snake and the robot work together?
## Answer
As a Python lover and Android p... | stackoverflow-qa |
# Is there a way to run Python on Android?
## Question
We are working on an S60 version and this platform has a nice Python API.
However, there is nothing official about Python on Android, but since Jython exists, is there a way to let the snake and the robot work together?
## Answer
I just posted some directions f... | stackoverflow-qa |
# Is there a way to run Python on Android?
## Question
We are working on an S60 version and this platform has a nice Python API.
However, there is nothing official about Python on Android, but since Jython exists, is there a way to let the snake and the robot work together?
## Answer
YES!
An example via Matt Cutts... | stackoverflow-qa |
# Is there a way to run Python on Android?
## Question
We are working on an S60 version and this platform has a nice Python API.
However, there is nothing official about Python on Android, but since Jython exists, is there a way to let the snake and the robot work together?
## Answer
There is also the new Android S... | stackoverflow-qa |
# Is there a way to run Python on Android?
## Question
We are working on an S60 version and this platform has a nice Python API.
However, there is nothing official about Python on Android, but since Jython exists, is there a way to let the snake and the robot work together?
## Answer
Check out the blog post http://... | stackoverflow-qa |
# Is there a way to run Python on Android?
## Question
We are working on an S60 version and this platform has a nice Python API.
However, there is nothing official about Python on Android, but since Jython exists, is there a way to let the snake and the robot work together?
## Answer
"The Pygame Subset for Android ... | stackoverflow-qa |
# Is there a way to run Python on Android?
## Question
We are working on an S60 version and this platform has a nice Python API.
However, there is nothing official about Python on Android, but since Jython exists, is there a way to let the snake and the robot work together?
## Answer
There's also python-on-a-chip p... | stackoverflow-qa |
# Is there a way to run Python on Android?
## Question
We are working on an S60 version and this platform has a nice Python API.
However, there is nothing official about Python on Android, but since Jython exists, is there a way to let the snake and the robot work together?
## Answer
There's also SL4A written by a ... | stackoverflow-qa |
# Is there a way to run Python on Android?
## Question
We are working on an S60 version and this platform has a nice Python API.
However, there is nothing official about Python on Android, but since Jython exists, is there a way to let the snake and the robot work together?
## Answer
I've posted instructions and a ... | stackoverflow-qa |
# Is there a way to run Python on Android?
## Question
We are working on an S60 version and this platform has a nice Python API.
However, there is nothing official about Python on Android, but since Jython exists, is there a way to let the snake and the robot work together?
## Answer
One way is to use Kivy:
Ope... | stackoverflow-qa |
# Is there a way to run Python on Android?
## Question
We are working on an S60 version and this platform has a nice Python API.
However, there is nothing official about Python on Android, but since Jython exists, is there a way to let the snake and the robot work together?
## Answer
Using SL4A (which has already b... | stackoverflow-qa |
# Is there a way to run Python on Android?
## Question
We are working on an S60 version and this platform has a nice Python API.
However, there is nothing official about Python on Android, but since Jython exists, is there a way to let the snake and the robot work together?
## Answer
From the Python for android sit... | stackoverflow-qa |
# Is there a way to run Python on Android?
## Question
We are working on an S60 version and this platform has a nice Python API.
However, there is nothing official about Python on Android, but since Jython exists, is there a way to let the snake and the robot work together?
## Answer
SL4A
Scripting Layer for Andro... | stackoverflow-qa |
# Is there a way to run Python on Android?
## Question
We are working on an S60 version and this platform has a nice Python API.
However, there is nothing official about Python on Android, but since Jython exists, is there a way to let the snake and the robot work together?
## Answer
Yet another attempt: https://co... | stackoverflow-qa |
# Is there a way to run Python on Android?
## Question
We are working on an S60 version and this platform has a nice Python API.
However, there is nothing official about Python on Android, but since Jython exists, is there a way to let the snake and the robot work together?
## Answer
You can run your Python code us... | stackoverflow-qa |
# Is there a way to run Python on Android?
## Question
We are working on an S60 version and this platform has a nice Python API.
However, there is nothing official about Python on Android, but since Jython exists, is there a way to let the snake and the robot work together?
## Answer
I use the QPython application. ... | stackoverflow-qa |
# Is there a way to run Python on Android?
## Question
We are working on an S60 version and this platform has a nice Python API.
However, there is nothing official about Python on Android, but since Jython exists, is there a way to let the snake and the robot work together?
## Answer
Didn't see this posted here, bu... | stackoverflow-qa |
# Is there a way to run Python on Android?
## Question
We are working on an S60 version and this platform has a nice Python API.
However, there is nothing official about Python on Android, but since Jython exists, is there a way to let the snake and the robot work together?
## Answer
Kivy
I want to post this as ... | stackoverflow-qa |
# Is there a way to run Python on Android?
## Question
We are working on an S60 version and this platform has a nice Python API.
However, there is nothing official about Python on Android, but since Jython exists, is there a way to let the snake and the robot work together?
## Answer
Another option if you are looki... | stackoverflow-qa |
# Is there a way to run Python on Android?
## Question
We are working on an S60 version and this platform has a nice Python API.
However, there is nothing official about Python on Android, but since Jython exists, is there a way to let the snake and the robot work together?
## Answer
One more option seems to be pyq... | stackoverflow-qa |
# Sorting a dict on __iter__
## Question
I am trying to sort a dict based on its key and return an iterator to the values from within an overridden iter method in a class. Is there a nicer and more efficient way of doing this than creating a new list, inserting into the list as I sort through the keys?
## Answer
By f... | stackoverflow-qa |
# Sorting a dict on __iter__
## Question
I am trying to sort a dict based on its key and return an iterator to the values from within an overridden iter method in a class. Is there a nicer and more efficient way of doing this than creating a new list, inserting into the list as I sort through the keys?
## Answer
How ... | stackoverflow-qa |
# Sorting a dict on __iter__
## Question
I am trying to sort a dict based on its key and return an iterator to the values from within an overridden iter method in a class. Is there a nicer and more efficient way of doing this than creating a new list, inserting into the list as I sort through the keys?
## Answer
def ... | stackoverflow-qa |
# What can you use Python generator functions for?
## Question
I'm starting to learn Python and I've come across generator functions, those that have a yield statement in them. I want to know what types of problems that these functions are really good at solving.
## Answer
See the "Motivation" section in PEP 255.
A... | stackoverflow-qa |
# What can you use Python generator functions for?
## Question
I'm starting to learn Python and I've come across generator functions, those that have a yield statement in them. I want to know what types of problems that these functions are really good at solving.
## Answer
Generators give you lazy evaluation. You us... | stackoverflow-qa |
# What can you use Python generator functions for?
## Question
I'm starting to learn Python and I've come across generator functions, those that have a yield statement in them. I want to know what types of problems that these functions are really good at solving.
## Answer
Basically avoiding call-back functions when... | stackoverflow-qa |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.