text stringlengths 200 200k | source stringclasses 2
values |
|---|---|
# Get Last Day of the Month in Python
## Question
Is there a way using Python's standard library to easily determine (i.e. one function call) the last day of a given month?
If the standard library doesn't support that, does the dateutil package support this?
## Answer
EDIT: See @Blair Conrad's answer for a cleaner s... | stackoverflow-qa |
# Get Last Day of the Month in Python
## Question
Is there a way using Python's standard library to easily determine (i.e. one function call) the last day of a given month?
If the standard library doesn't support that, does the dateutil package support this?
## Answer
EDIT: see my other answer. It has a better imple... | stackoverflow-qa |
# Get Last Day of the Month in Python
## Question
Is there a way using Python's standard library to easily determine (i.e. one function call) the last day of a given month?
If the standard library doesn't support that, does the dateutil package support this?
## Answer
I didn't notice this earlier when I was looking ... | stackoverflow-qa |
# Get Last Day of the Month in Python
## Question
Is there a way using Python's standard library to easily determine (i.e. one function call) the last day of a given month?
If the standard library doesn't support that, does the dateutil package support this?
## Answer
Another solution would be to do something like t... | stackoverflow-qa |
# Get Last Day of the Month in Python
## Question
Is there a way using Python's standard library to easily determine (i.e. one function call) the last day of a given month?
If the standard library doesn't support that, does the dateutil package support this?
## Answer
This does not address the main question, but one... | stackoverflow-qa |
# Get Last Day of the Month in Python
## Question
Is there a way using Python's standard library to easily determine (i.e. one function call) the last day of a given month?
If the standard library doesn't support that, does the dateutil package support this?
## Answer
If you don't want to import the calendar module,... | stackoverflow-qa |
# Get Last Day of the Month in Python
## Question
Is there a way using Python's standard library to easily determine (i.e. one function call) the last day of a given month?
If the standard library doesn't support that, does the dateutil package support this?
## Answer
This is actually pretty easy with dateutil.relat... | stackoverflow-qa |
# Get Last Day of the Month in Python
## Question
Is there a way using Python's standard library to easily determine (i.e. one function call) the last day of a given month?
If the standard library doesn't support that, does the dateutil package support this?
## Answer
import datetime
now = datetime.datetime.now()
s... | stackoverflow-qa |
# Get Last Day of the Month in Python
## Question
Is there a way using Python's standard library to easily determine (i.e. one function call) the last day of a given month?
If the standard library doesn't support that, does the dateutil package support this?
## Answer
If you wand to make your own small function, thi... | stackoverflow-qa |
# Get Last Day of the Month in Python
## Question
Is there a way using Python's standard library to easily determine (i.e. one function call) the last day of a given month?
If the standard library doesn't support that, does the dateutil package support this?
## Answer
from datetime import timedelta
(any_day.replace(... | stackoverflow-qa |
# Get Last Day of the Month in Python
## Question
Is there a way using Python's standard library to easily determine (i.e. one function call) the last day of a given month?
If the standard library doesn't support that, does the dateutil package support this?
## Answer
For me it's the simplest way:
selected_date = d... | stackoverflow-qa |
# Get Last Day of the Month in Python
## Question
Is there a way using Python's standard library to easily determine (i.e. one function call) the last day of a given month?
If the standard library doesn't support that, does the dateutil package support this?
## Answer
Using relativedelta you would get last date of m... | stackoverflow-qa |
# Get Last Day of the Month in Python
## Question
Is there a way using Python's standard library to easily determine (i.e. one function call) the last day of a given month?
If the standard library doesn't support that, does the dateutil package support this?
## Answer
>>> import datetime
>>> import calendar
>>> date... | stackoverflow-qa |
# Get Last Day of the Month in Python
## Question
Is there a way using Python's standard library to easily determine (i.e. one function call) the last day of a given month?
If the standard library doesn't support that, does the dateutil package support this?
## Answer
You can calculate the end date yourself. the sim... | stackoverflow-qa |
# How can I get a commit message from a bzr post-commit hook?
## Question
I'm trying to write a bzr post-commit hook for my private bugtracker, but I'm stuck at the function signature of post_commit(local, master, old_revno, old_revid, new_revno, mew_revid). How can I extract the commit message for the branch from th... | stackoverflow-qa |
# How to generate urls in django
## Question
In Django's template language, you can use {% url [viewname] [args] %} to generate a URL to a specific view with parameters. How can you programatically do the same in Python code?
What I need is to create a list of menu items where each item has name, URL, and an active f... | stackoverflow-qa |
# How to generate urls in django
## Question
In Django's template language, you can use {% url [viewname] [args] %} to generate a URL to a specific view with parameters. How can you programatically do the same in Python code?
What I need is to create a list of menu items where each item has name, URL, and an active f... | stackoverflow-qa |
# How to generate urls in django
## Question
In Django's template language, you can use {% url [viewname] [args] %} to generate a URL to a specific view with parameters. How can you programatically do the same in Python code?
What I need is to create a list of menu items where each item has name, URL, and an active f... | stackoverflow-qa |
# Can I write native iPhone apps using Python
## Question
Using PyObjC, you can use Python to write Cocoa applications for OS X. Can I write native iPhone apps using Python and if so, how?
## Answer
Not currently, currently the only languages available to access the iPhone SDK are C/C++, Objective C and Swift.
There... | stackoverflow-qa |
# Can I write native iPhone apps using Python
## Question
Using PyObjC, you can use Python to write Cocoa applications for OS X. Can I write native iPhone apps using Python and if so, how?
## Answer
You can use PyObjC on the iPhone as well, due to the excellent work by Jay Freeman (saurik). See iPhone Applications in... | stackoverflow-qa |
# Can I write native iPhone apps using Python
## Question
Using PyObjC, you can use Python to write Cocoa applications for OS X. Can I write native iPhone apps using Python and if so, how?
## Answer
The iPhone SDK agreement is also rather vague about whether you're even allowed to run scripting languages (outside of... | stackoverflow-qa |
# Can I write native iPhone apps using Python
## Question
Using PyObjC, you can use Python to write Cocoa applications for OS X. Can I write native iPhone apps using Python and if so, how?
## Answer
You can do this with PyObjC, with a jailbroken phone of course. But if you want to get it into the App Store, they will... | stackoverflow-qa |
# Can I write native iPhone apps using Python
## Question
Using PyObjC, you can use Python to write Cocoa applications for OS X. Can I write native iPhone apps using Python and if so, how?
## Answer
Yes you can. You write your code in tinypy (which is restricted Python), then use tinypy to convert it to C++, and fina... | stackoverflow-qa |
# Can I write native iPhone apps using Python
## Question
Using PyObjC, you can use Python to write Cocoa applications for OS X. Can I write native iPhone apps using Python and if so, how?
## Answer
An update to the iOS Developer Agreement means that you can use whatever you like, as long as you meet the developer gu... | stackoverflow-qa |
# Can I write native iPhone apps using Python
## Question
Using PyObjC, you can use Python to write Cocoa applications for OS X. Can I write native iPhone apps using Python and if so, how?
## Answer
Technically, as long as the interpreted code ISN'T downloaded (excluding JavaScript), the app may be approved. Rhomobil... | stackoverflow-qa |
# Can I write native iPhone apps using Python
## Question
Using PyObjC, you can use Python to write Cocoa applications for OS X. Can I write native iPhone apps using Python and if so, how?
## Answer
It seems this is now something developers are allowed to do: the iOS Developer Agreement was changed yesterday and appe... | stackoverflow-qa |
# Can I write native iPhone apps using Python
## Question
Using PyObjC, you can use Python to write Cocoa applications for OS X. Can I write native iPhone apps using Python and if so, how?
## Answer
I think it was not possible earlier but I recently heard about PyMob, which seems interesting because the apps are writ... | stackoverflow-qa |
# Can I write native iPhone apps using Python
## Question
Using PyObjC, you can use Python to write Cocoa applications for OS X. Can I write native iPhone apps using Python and if so, how?
## Answer
Yes, nowadays you can develop apps for iOS in Python.
There are two frameworks that you may want to checkout: Kivy an... | stackoverflow-qa |
# Can I write native iPhone apps using Python
## Question
Using PyObjC, you can use Python to write Cocoa applications for OS X. Can I write native iPhone apps using Python and if so, how?
## Answer
Pythonista has an Export to Xcode feature that allows you to export your Python scripts as Xcode projects that build st... | stackoverflow-qa |
# A python web application framework for tight DB/GUI coupling?
## Question
I'm a firm believer of the heretic thought of tight coupling between the backend and frontend: I want existing, implied knowledge about a backend to be automatically made use of when generating user interfaces. E.g., if a VARCHAR column has a ... | stackoverflow-qa |
# A python web application framework for tight DB/GUI coupling?
## Question
I'm a firm believer of the heretic thought of tight coupling between the backend and frontend: I want existing, implied knowledge about a backend to be automatically made use of when generating user interfaces. E.g., if a VARCHAR column has a ... | stackoverflow-qa |
# A python web application framework for tight DB/GUI coupling?
## Question
I'm a firm believer of the heretic thought of tight coupling between the backend and frontend: I want existing, implied knowledge about a backend to be automatically made use of when generating user interfaces. E.g., if a VARCHAR column has a ... | stackoverflow-qa |
# A python web application framework for tight DB/GUI coupling?
## Question
I'm a firm believer of the heretic thought of tight coupling between the backend and frontend: I want existing, implied knowledge about a backend to be automatically made use of when generating user interfaces. E.g., if a VARCHAR column has a ... | stackoverflow-qa |
# A python web application framework for tight DB/GUI coupling?
## Question
I'm a firm believer of the heretic thought of tight coupling between the backend and frontend: I want existing, implied knowledge about a backend to be automatically made use of when generating user interfaces. E.g., if a VARCHAR column has a ... | stackoverflow-qa |
# How to find the mime type of a file in python?
## Question
Let's say you want to save a bunch of files somewhere, for instance in BLOBs. Let's say you want to dish these files out via a web page and have the client automatically open the correct application/viewer.
Assumption: The browser figures out which applicat... | stackoverflow-qa |
# How to find the mime type of a file in python?
## Question
Let's say you want to save a bunch of files somewhere, for instance in BLOBs. Let's say you want to dish these files out via a web page and have the client automatically open the correct application/viewer.
Assumption: The browser figures out which applicat... | stackoverflow-qa |
# How to find the mime type of a file in python?
## Question
Let's say you want to save a bunch of files somewhere, for instance in BLOBs. Let's say you want to dish these files out via a web page and have the client automatically open the correct application/viewer.
Assumption: The browser figures out which applicat... | stackoverflow-qa |
# How to find the mime type of a file in python?
## Question
Let's say you want to save a bunch of files somewhere, for instance in BLOBs. Let's say you want to dish these files out via a web page and have the client automatically open the correct application/viewer.
Assumption: The browser figures out which applicat... | stackoverflow-qa |
# How to find the mime type of a file in python?
## Question
Let's say you want to save a bunch of files somewhere, for instance in BLOBs. Let's say you want to dish these files out via a web page and have the client automatically open the correct application/viewer.
Assumption: The browser figures out which applicat... | stackoverflow-qa |
# How to find the mime type of a file in python?
## Question
Let's say you want to save a bunch of files somewhere, for instance in BLOBs. Let's say you want to dish these files out via a web page and have the client automatically open the correct application/viewer.
Assumption: The browser figures out which applicat... | stackoverflow-qa |
# How to find the mime type of a file in python?
## Question
Let's say you want to save a bunch of files somewhere, for instance in BLOBs. Let's say you want to dish these files out via a web page and have the client automatically open the correct application/viewer.
Assumption: The browser figures out which applicat... | stackoverflow-qa |
# How to find the mime type of a file in python?
## Question
Let's say you want to save a bunch of files somewhere, for instance in BLOBs. Let's say you want to dish these files out via a web page and have the client automatically open the correct application/viewer.
Assumption: The browser figures out which applicat... | stackoverflow-qa |
# How to find the mime type of a file in python?
## Question
Let's say you want to save a bunch of files somewhere, for instance in BLOBs. Let's say you want to dish these files out via a web page and have the client automatically open the correct application/viewer.
Assumption: The browser figures out which applicat... | stackoverflow-qa |
# How to find the mime type of a file in python?
## Question
Let's say you want to save a bunch of files somewhere, for instance in BLOBs. Let's say you want to dish these files out via a web page and have the client automatically open the correct application/viewer.
Assumption: The browser figures out which applicat... | stackoverflow-qa |
# Pros and Cons of different approaches to web programming in Python
## Question
I'd like to do some server-side scripting using Python. But I'm kind of lost with the number of ways to do that.
It starts with the do-it-yourself CGI approach and it seems to end with some pretty robust frameworks that would basically d... | stackoverflow-qa |
# Pros and Cons of different approaches to web programming in Python
## Question
I'd like to do some server-side scripting using Python. But I'm kind of lost with the number of ways to do that.
It starts with the do-it-yourself CGI approach and it seems to end with some pretty robust frameworks that would basically d... | stackoverflow-qa |
# Pros and Cons of different approaches to web programming in Python
## Question
I'd like to do some server-side scripting using Python. But I'm kind of lost with the number of ways to do that.
It starts with the do-it-yourself CGI approach and it seems to end with some pretty robust frameworks that would basically d... | stackoverflow-qa |
# Pros and Cons of different approaches to web programming in Python
## Question
I'd like to do some server-side scripting using Python. But I'm kind of lost with the number of ways to do that.
It starts with the do-it-yourself CGI approach and it seems to end with some pretty robust frameworks that would basically d... | stackoverflow-qa |
# Pros and Cons of different approaches to web programming in Python
## Question
I'd like to do some server-side scripting using Python. But I'm kind of lost with the number of ways to do that.
It starts with the do-it-yourself CGI approach and it seems to end with some pretty robust frameworks that would basically d... | stackoverflow-qa |
# Pros and Cons of different approaches to web programming in Python
## Question
I'd like to do some server-side scripting using Python. But I'm kind of lost with the number of ways to do that.
It starts with the do-it-yourself CGI approach and it seems to end with some pretty robust frameworks that would basically d... | stackoverflow-qa |
# Pros and Cons of different approaches to web programming in Python
## Question
I'd like to do some server-side scripting using Python. But I'm kind of lost with the number of ways to do that.
It starts with the do-it-yourself CGI approach and it seems to end with some pretty robust frameworks that would basically d... | stackoverflow-qa |
# Pros and Cons of different approaches to web programming in Python
## Question
I'd like to do some server-side scripting using Python. But I'm kind of lost with the number of ways to do that.
It starts with the do-it-yourself CGI approach and it seems to end with some pretty robust frameworks that would basically d... | stackoverflow-qa |
# Pros and Cons of different approaches to web programming in Python
## Question
I'd like to do some server-side scripting using Python. But I'm kind of lost with the number of ways to do that.
It starts with the do-it-yourself CGI approach and it seems to end with some pretty robust frameworks that would basically d... | stackoverflow-qa |
# Modulus operation with negatives values - weird thing?
## Question
Can you please tell me how much is (-2) % 5?
According to my Python interpreter is 3, but do you have a wise explanation for this?
I've read that in some languages the result can be machine-dependent, but I'm not sure though.
## Answer
Your Python ... | stackoverflow-qa |
# Modulus operation with negatives values - weird thing?
## Question
Can you please tell me how much is (-2) % 5?
According to my Python interpreter is 3, but do you have a wise explanation for this?
I've read that in some languages the result can be machine-dependent, but I'm not sure though.
## Answer
The result o... | stackoverflow-qa |
# Modulus operation with negatives values - weird thing?
## Question
Can you please tell me how much is (-2) % 5?
According to my Python interpreter is 3, but do you have a wise explanation for this?
I've read that in some languages the result can be machine-dependent, but I'm not sure though.
## Answer
Well, 0 % 5 ... | stackoverflow-qa |
# Modulus operation with negatives values - weird thing?
## Question
Can you please tell me how much is (-2) % 5?
According to my Python interpreter is 3, but do you have a wise explanation for this?
I've read that in some languages the result can be machine-dependent, but I'm not sure though.
## Answer
By the way: ... | stackoverflow-qa |
# Modulus operation with negatives values - weird thing?
## Question
Can you please tell me how much is (-2) % 5?
According to my Python interpreter is 3, but do you have a wise explanation for this?
I've read that in some languages the result can be machine-dependent, but I'm not sure though.
## Answer
As explained... | stackoverflow-qa |
# Modulus operation with negatives values - weird thing?
## Question
Can you please tell me how much is (-2) % 5?
According to my Python interpreter is 3, but do you have a wise explanation for this?
I've read that in some languages the result can be machine-dependent, but I'm not sure though.
## Answer
Like the doc... | stackoverflow-qa |
# How do I document a module in Python?
## Question
That's it. If you want to document a function or a class, you put a string just after the definition. For instance:
def foo():
"""This function does nothing."""
pass
But what about a module? How can I document what a file.py does?
## Answer
It's easy, you... | stackoverflow-qa |
# How do I document a module in Python?
## Question
That's it. If you want to document a function or a class, you put a string just after the definition. For instance:
def foo():
"""This function does nothing."""
pass
But what about a module? How can I document what a file.py does?
## Answer
For the packag... | stackoverflow-qa |
# How do I document a module in Python?
## Question
That's it. If you want to document a function or a class, you put a string just after the definition. For instance:
def foo():
"""This function does nothing."""
pass
But what about a module? How can I document what a file.py does?
## Answer
You do it the ... | stackoverflow-qa |
# How do I document a module in Python?
## Question
That's it. If you want to document a function or a class, you put a string just after the definition. For instance:
def foo():
"""This function does nothing."""
pass
But what about a module? How can I document what a file.py does?
## Answer
Add your docst... | stackoverflow-qa |
# Iterate over subclasses of a given class in a given module
## Question
In Python, given a module X and a class Y, how can I iterate or generate a list of all subclasses of Y that exist in module X?
## Answer
Here's one way to do it:
import inspect
def get_subclasses(mod, cls):
"""Yield the classes in module `... | stackoverflow-qa |
# Iterate over subclasses of a given class in a given module
## Question
In Python, given a module X and a class Y, how can I iterate or generate a list of all subclasses of Y that exist in module X?
## Answer
Given the module foo.py
class foo(object): pass
class bar(foo): pass
class baz(foo): pass
class grar(Excep... | stackoverflow-qa |
# Iterate over subclasses of a given class in a given module
## Question
In Python, given a module X and a class Y, how can I iterate or generate a list of all subclasses of Y that exist in module X?
## Answer
Can I suggest that neither of the answers from Chris AtLee and zacherates fulfill the requirements?
I think ... | stackoverflow-qa |
# Iterate over subclasses of a given class in a given module
## Question
In Python, given a module X and a class Y, how can I iterate or generate a list of all subclasses of Y that exist in module X?
## Answer
Although Quamrana's suggestion works fine, there are a couple of possible improvements I'd like to suggest t... | stackoverflow-qa |
# How would you make a comma-separated string from a list?
## Question
What would be your preferred way to concatenate strings from a sequence such that between each two consecutive pair a comma is added. That is, how do you map, for instance, [ 'a', 'b', 'c' ] to 'a,b,c'? (The cases [ s ] and [] should be mapped to s... | stackoverflow-qa |
# How would you make a comma-separated string from a list?
## Question
What would be your preferred way to concatenate strings from a sequence such that between each two consecutive pair a comma is added. That is, how do you map, for instance, [ 'a', 'b', 'c' ] to 'a,b,c'? (The cases [ s ] and [] should be mapped to s... | stackoverflow-qa |
# How would you make a comma-separated string from a list?
## Question
What would be your preferred way to concatenate strings from a sequence such that between each two consecutive pair a comma is added. That is, how do you map, for instance, [ 'a', 'b', 'c' ] to 'a,b,c'? (The cases [ s ] and [] should be mapped to s... | stackoverflow-qa |
# How would you make a comma-separated string from a list?
## Question
What would be your preferred way to concatenate strings from a sequence such that between each two consecutive pair a comma is added. That is, how do you map, for instance, [ 'a', 'b', 'c' ] to 'a,b,c'? (The cases [ s ] and [] should be mapped to s... | stackoverflow-qa |
# How would you make a comma-separated string from a list?
## Question
What would be your preferred way to concatenate strings from a sequence such that between each two consecutive pair a comma is added. That is, how do you map, for instance, [ 'a', 'b', 'c' ] to 'a,b,c'? (The cases [ s ] and [] should be mapped to s... | stackoverflow-qa |
# How would you make a comma-separated string from a list?
## Question
What would be your preferred way to concatenate strings from a sequence such that between each two consecutive pair a comma is added. That is, how do you map, for instance, [ 'a', 'b', 'c' ] to 'a,b,c'? (The cases [ s ] and [] should be mapped to s... | stackoverflow-qa |
# How would you make a comma-separated string from a list?
## Question
What would be your preferred way to concatenate strings from a sequence such that between each two consecutive pair a comma is added. That is, how do you map, for instance, [ 'a', 'b', 'c' ] to 'a,b,c'? (The cases [ s ] and [] should be mapped to s... | stackoverflow-qa |
# How would you make a comma-separated string from a list?
## Question
What would be your preferred way to concatenate strings from a sequence such that between each two consecutive pair a comma is added. That is, how do you map, for instance, [ 'a', 'b', 'c' ] to 'a,b,c'? (The cases [ s ] and [] should be mapped to s... | stackoverflow-qa |
# How would you make a comma-separated string from a list?
## Question
What would be your preferred way to concatenate strings from a sequence such that between each two consecutive pair a comma is added. That is, how do you map, for instance, [ 'a', 'b', 'c' ] to 'a,b,c'? (The cases [ s ] and [] should be mapped to s... | stackoverflow-qa |
# How would you make a comma-separated string from a list?
## Question
What would be your preferred way to concatenate strings from a sequence such that between each two consecutive pair a comma is added. That is, how do you map, for instance, [ 'a', 'b', 'c' ] to 'a,b,c'? (The cases [ s ] and [] should be mapped to s... | stackoverflow-qa |
# Can someone explain __all__ in Python?
## Question
I have been using Python more and more, and I keep seeing the variable __all__ set in different __init__.py files. Can someone explain what this does?
## Answer
It's a list of public objects of that module. It overrides the default of hiding everything that begins... | stackoverflow-qa |
# Can someone explain __all__ in Python?
## Question
I have been using Python more and more, and I keep seeing the variable __all__ set in different __init__.py files. Can someone explain what this does?
## Answer
From (An Unofficial) Python Reference Wiki:
The public names defined by a module are determined by ... | stackoverflow-qa |
# Can someone explain __all__ in Python?
## Question
I have been using Python more and more, and I keep seeing the variable __all__ set in different __init__.py files. Can someone explain what this does?
## Answer
Linked to, but not explicitly mentioned here, is exactly when __all__ is used. It is a list of strings ... | stackoverflow-qa |
# Can someone explain __all__ in Python?
## Question
I have been using Python more and more, and I keep seeing the variable __all__ set in different __init__.py files. Can someone explain what this does?
## Answer
It also changes what pydoc will show:
module1.py
a = "A"
b = "B"
c = "C"
module2.py
__all__ = ['a'... | stackoverflow-qa |
# Can someone explain __all__ in Python?
## Question
I have been using Python more and more, and I keep seeing the variable __all__ set in different __init__.py files. Can someone explain what this does?
## Answer
I'm just adding this to be precise:
All other answers refer to modules. The original question explicit... | stackoverflow-qa |
# Can someone explain __all__ in Python?
## Question
I have been using Python more and more, and I keep seeing the variable __all__ set in different __init__.py files. Can someone explain what this does?
## Answer
Explain __all__ in Python?
I keep seeing the variable __all__ set in different __init__.py files.
... | stackoverflow-qa |
# Can someone explain __all__ in Python?
## Question
I have been using Python more and more, and I keep seeing the variable __all__ set in different __init__.py files. Can someone explain what this does?
## Answer
__all__ customizes the asterisk in from <module> import *
""" cheese.py """
__all__ = ['swiss', 'ch... | stackoverflow-qa |
# Can someone explain __all__ in Python?
## Question
I have been using Python more and more, and I keep seeing the variable __all__ set in different __init__.py files. Can someone explain what this does?
## Answer
__all__ is used to document the public API of a Python module. Here is the relevant excerpt from the Py... | stackoverflow-qa |
# Can the HTTP version or headers affect the visual appearance of a web page?
## Question
I know, I would have thought the answer was obviously "no" as well, but I am experiencing a strange situation where when I view my site from our staging server it appears slightly larger than when I view it from my local dev serv... | stackoverflow-qa |
# Python packages - import by class, not file
## Question
Say I have the following file structure:
app/
app.py
controllers/
__init__.py
project.py
plugin.py
If app/controllers/project.py defines a class Project, app.py would import it like this:
from app.controllers.project import Project
I'd lik... | stackoverflow-qa |
# Where can I find the time and space complexity of the built-in sequence types in Python
## Question
I've been unable to find a source for this information, short of looking through the Python source code myself to determine how the objects work. Does anyone know where I could find this online?
## Answer
If your ask... | stackoverflow-qa |
# Where can I find the time and space complexity of the built-in sequence types in Python
## Question
I've been unable to find a source for this information, short of looking through the Python source code myself to determine how the objects work. Does anyone know where I could find this online?
## Answer
Raymond D. ... | stackoverflow-qa |
# Where can I find the time and space complexity of the built-in sequence types in Python
## Question
I've been unable to find a source for this information, short of looking through the Python source code myself to determine how the objects work. Does anyone know where I could find this online?
## Answer
Checkout th... | stackoverflow-qa |
# Wacom tablet Python interface
## Question
If possible I want to catch pressure sensitive input from a Wacom tablet in Python. Are there any Python libraries available that can do this?
## Answer
You could perhaps take a look at the software described here. It is a gnome applet, written in Python.
From the web site... | stackoverflow-qa |
# Wacom tablet Python interface
## Question
If possible I want to catch pressure sensitive input from a Wacom tablet in Python. Are there any Python libraries available that can do this?
## Answer
Use PySide (wrapper for QT)'s QTabletEvent: http://www.pyside.org/docs/pyside/PySide/QtGui/QTabletEvent.html#PySide.QtGui... | stackoverflow-qa |
# Wacom tablet Python interface
## Question
If possible I want to catch pressure sensitive input from a Wacom tablet in Python. Are there any Python libraries available that can do this?
## Answer
For Mac OS X:
https://bitbucket.org/AnomalousUnderdog/pythonmactabletlib
A small Python library to allow Python scri... | stackoverflow-qa |
# Wacom tablet Python interface
## Question
If possible I want to catch pressure sensitive input from a Wacom tablet in Python. Are there any Python libraries available that can do this?
## Answer
Pressure data is available in PyGObject to access Gtk+ 3 on multiple platforms, though "Windows users may still want to k... | stackoverflow-qa |
# Is there a Python library for generating .ico files?
## Question
I'm looking to create favicon.ico files programatically from Python, but PIL only has support for reading ico files.
## Answer
Perhaps the following would work:
Generate your icon image using PIL
Convert the image to .ico format using the python int... | stackoverflow-qa |
# Is there a Python library for generating .ico files?
## Question
I'm looking to create favicon.ico files programatically from Python, but PIL only has support for reading ico files.
## Answer
I don't know if this applies for all cases, but on WinXP an .ico can be a bmp of size 16x16, 32x32 or 64x64. Just change the... | stackoverflow-qa |
# Is there a Python library for generating .ico files?
## Question
I'm looking to create favicon.ico files programatically from Python, but PIL only has support for reading ico files.
## Answer
According to Wikipedia modern browsers can handle favicons in PNG format, so maybe you could just generate that?
Alternativ... | stackoverflow-qa |
# Is there a Python library for generating .ico files?
## Question
I'm looking to create favicon.ico files programatically from Python, but PIL only has support for reading ico files.
## Answer
You can use Pillow:
from PIL import Image
filename = r'logo.png'
img = Image.open(filename)
img.save('logo.ico')
Optional... | stackoverflow-qa |
# How to know whether a window with a given title is already open in Tk?
## Question
Iâve writen a little python script that just pops up a message box containing the text passed on the command line. I want to pop it up only when the window âresulting from a previous callâ is not open.
from Tkinter import *
imp... | stackoverflow-qa |
# Analizing MIPS binaries: is there a Python library for parsing binary data?
## Question
I'm working on a utility which needs to resolve hex addresses to a symbolic function name and source code line number within a binary. The utility will run on Linux on x86, though the binaries it analyzes will be for a MIPS-based... | stackoverflow-qa |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.