text stringlengths 200 200k | source stringclasses 2
values |
|---|---|
# Is there a reason Python strings don't have a string length method?
## Question
I know that python has a len() function that is used to determine the size of a string, but I was wondering why its not a method of the string object.
Update
Ok, I realized I was embarrassingly mistaken. __len__() is actually a method ... | stackoverflow-qa |
# Is there a reason Python strings don't have a string length method?
## Question
I know that python has a len() function that is used to determine the size of a string, but I was wondering why its not a method of the string object.
Update
Ok, I realized I was embarrassingly mistaken. __len__() is actually a method ... | stackoverflow-qa |
# Is there a reason Python strings don't have a string length method?
## Question
I know that python has a len() function that is used to determine the size of a string, but I was wondering why its not a method of the string object.
Update
Ok, I realized I was embarrassingly mistaken. __len__() is actually a method ... | stackoverflow-qa |
# Multiple mouse pointers?
## Question
Is there a way to accept input from more than one mouse separately? I'm interested in making a multi-user application and I thought it would be great if I could have 2 or more users holding wireless mice each interacting with the app individually with a separate mouse arrow.
Is ... | stackoverflow-qa |
# Multiple mouse pointers?
## Question
Is there a way to accept input from more than one mouse separately? I'm interested in making a multi-user application and I thought it would be great if I could have 2 or more users holding wireless mice each interacting with the app individually with a separate mouse arrow.
Is ... | stackoverflow-qa |
# Multiple mouse pointers?
## Question
Is there a way to accept input from more than one mouse separately? I'm interested in making a multi-user application and I thought it would be great if I could have 2 or more users holding wireless mice each interacting with the app individually with a separate mouse arrow.
Is ... | stackoverflow-qa |
# Multiple mouse pointers?
## Question
Is there a way to accept input from more than one mouse separately? I'm interested in making a multi-user application and I thought it would be great if I could have 2 or more users holding wireless mice each interacting with the app individually with a separate mouse arrow.
Is ... | stackoverflow-qa |
# Multiple mouse pointers?
## Question
Is there a way to accept input from more than one mouse separately? I'm interested in making a multi-user application and I thought it would be great if I could have 2 or more users holding wireless mice each interacting with the app individually with a separate mouse arrow.
Is ... | stackoverflow-qa |
# Multiple mouse pointers?
## Question
Is there a way to accept input from more than one mouse separately? I'm interested in making a multi-user application and I thought it would be great if I could have 2 or more users holding wireless mice each interacting with the app individually with a separate mouse arrow.
Is ... | stackoverflow-qa |
# Any python libs for parsing apache config files?
## Question
Any python libs for parsing apache config files or if not python anyone aware of such thing in other languages (perl, php, java, c#)?
As i'll be able to rewrite them in python.
## Answer
No Python libraries exist that I know of, but here's a perl one:
htt... | stackoverflow-qa |
# Any python libs for parsing apache config files?
## Question
Any python libs for parsing apache config files or if not python anyone aware of such thing in other languages (perl, php, java, c#)?
As i'll be able to rewrite them in python.
## Answer
Red Hat's Emerging Technologies group has Augeas (written in C, but ... | stackoverflow-qa |
# Any python libs for parsing apache config files?
## Question
Any python libs for parsing apache config files or if not python anyone aware of such thing in other languages (perl, php, java, c#)?
As i'll be able to rewrite them in python.
## Answer
I did find an interesting Apache Config parser for python here: http... | stackoverflow-qa |
# Any python libs for parsing apache config files?
## Question
Any python libs for parsing apache config files or if not python anyone aware of such thing in other languages (perl, php, java, c#)?
As i'll be able to rewrite them in python.
## Answer
There is also one new parser released.
http://pypi.python.org/pypi... | stackoverflow-qa |
# How do you programmatically reorder children of an ATFolder subclass?
## Question
I have Plone product that uses a custom folder type for containing a set of custom content objects. The folder type was created by subclassing BaseFolder and it has a schema with a couple of text fields. Currently, when custom object... | stackoverflow-qa |
# How to disable HTML encoding when using Context in django
## Question
In my django application I am using a template to construct email body, one of the parameters is url, note there are two parametes separated by ampersand in the url.
t = loader.get_template("sometemplate")
c = Context({
'foo': 'bar',
'url':... | stackoverflow-qa |
# How to disable HTML encoding when using Context in django
## Question
In my django application I am using a template to construct email body, one of the parameters is url, note there are two parametes separated by ampersand in the url.
t = loader.get_template("sometemplate")
c = Context({
'foo': 'bar',
'url':... | stackoverflow-qa |
# python properties and inheritance
## Question
I have a base class with a property which (the get method) I want to overwrite in the subclass. My first thought was something like:
class Foo(object):
def _get_age(self):
return 11
age = property(_get_age)
class Bar(Foo):
def _get_age(self):
... | stackoverflow-qa |
# python properties and inheritance
## Question
I have a base class with a property which (the get method) I want to overwrite in the subclass. My first thought was something like:
class Foo(object):
def _get_age(self):
return 11
age = property(_get_age)
class Bar(Foo):
def _get_age(self):
... | stackoverflow-qa |
# python properties and inheritance
## Question
I have a base class with a property which (the get method) I want to overwrite in the subclass. My first thought was something like:
class Foo(object):
def _get_age(self):
return 11
age = property(_get_age)
class Bar(Foo):
def _get_age(self):
... | stackoverflow-qa |
# python properties and inheritance
## Question
I have a base class with a property which (the get method) I want to overwrite in the subclass. My first thought was something like:
class Foo(object):
def _get_age(self):
return 11
age = property(_get_age)
class Bar(Foo):
def _get_age(self):
... | stackoverflow-qa |
# python properties and inheritance
## Question
I have a base class with a property which (the get method) I want to overwrite in the subclass. My first thought was something like:
class Foo(object):
def _get_age(self):
return 11
age = property(_get_age)
class Bar(Foo):
def _get_age(self):
... | stackoverflow-qa |
# python properties and inheritance
## Question
I have a base class with a property which (the get method) I want to overwrite in the subclass. My first thought was something like:
class Foo(object):
def _get_age(self):
return 11
age = property(_get_age)
class Bar(Foo):
def _get_age(self):
... | stackoverflow-qa |
# How do I parse a listing of files to get just the filenames in python?
## Question
So lets say I'm using Python's ftplib to retrieve a list of log files from an FTP server. How would I parse that list of files to get just the file names (the last column) inside a list? See the link above for example output.
## Answ... | stackoverflow-qa |
# How do I parse a listing of files to get just the filenames in python?
## Question
So lets say I'm using Python's ftplib to retrieve a list of log files from an FTP server. How would I parse that list of files to get just the file names (the last column) inside a list? See the link above for example output.
## Answ... | stackoverflow-qa |
# How do I parse a listing of files to get just the filenames in python?
## Question
So lets say I'm using Python's ftplib to retrieve a list of log files from an FTP server. How would I parse that list of files to get just the file names (the last column) inside a list? See the link above for example output.
## Answ... | stackoverflow-qa |
# How do I parse a listing of files to get just the filenames in python?
## Question
So lets say I'm using Python's ftplib to retrieve a list of log files from an FTP server. How would I parse that list of files to get just the file names (the last column) inside a list? See the link above for example output.
## Answ... | stackoverflow-qa |
# How do I parse a listing of files to get just the filenames in python?
## Question
So lets say I'm using Python's ftplib to retrieve a list of log files from an FTP server. How would I parse that list of files to get just the file names (the last column) inside a list? See the link above for example output.
## Answ... | stackoverflow-qa |
# Daylight savings time change affecting the outcome of saving and loading an icalendar file?
## Question
I have some unit tests that started failing today after a switch in daylight savings time.
We're using the iCalendar python module to load and save ics files.
The following script is a simplified version of our ... | stackoverflow-qa |
# Formatting dict.items() for wxPython
## Question
I have a text box in wxPython that takes the output of dictionary.items() and displays it to the user as items are added to the dictionary. However, the raw data is very ugly, looking like
[(u'BC',45)
(u'CHM',25)
(u'CPM',30)]
I know dictionary.items() is a list of... | stackoverflow-qa |
# Refactoring "to hit" values for a game
## Question
I'm making a game and one of the methods calculates a character's base hit numbers based on skill values. The method currently calculates each value individually, since each skill can be used at short, medium, and long range.
I originally thought I could combine th... | stackoverflow-qa |
# Refactoring "to hit" values for a game
## Question
I'm making a game and one of the methods calculates a character's base hit numbers based on skill values. The method currently calculates each value individually, since each skill can be used at short, medium, and long range.
I originally thought I could combine th... | stackoverflow-qa |
# How do you log server errors on django sites
## Question
So, when playing with the development I can just set settings.DEBUG to True and if an error occures I can see it nicely formatted, with good stack trace and request information.
But on kind of production site I'd rather use DEBUG=False and show visitors some ... | stackoverflow-qa |
# How do you log server errors on django sites
## Question
So, when playing with the development I can just set settings.DEBUG to True and if an error occures I can see it nicely formatted, with good stack trace and request information.
But on kind of production site I'd rather use DEBUG=False and show visitors some ... | stackoverflow-qa |
# How do you log server errors on django sites
## Question
So, when playing with the development I can just set settings.DEBUG to True and if an error occures I can see it nicely formatted, with good stack trace and request information.
But on kind of production site I'd rather use DEBUG=False and show visitors some ... | stackoverflow-qa |
# How do you log server errors on django sites
## Question
So, when playing with the development I can just set settings.DEBUG to True and if an error occures I can see it nicely formatted, with good stack trace and request information.
But on kind of production site I'd rather use DEBUG=False and show visitors some ... | stackoverflow-qa |
# How do you log server errors on django sites
## Question
So, when playing with the development I can just set settings.DEBUG to True and if an error occures I can see it nicely formatted, with good stack trace and request information.
But on kind of production site I'd rather use DEBUG=False and show visitors some ... | stackoverflow-qa |
# How do you log server errors on django sites
## Question
So, when playing with the development I can just set settings.DEBUG to True and if an error occures I can see it nicely formatted, with good stack trace and request information.
But on kind of production site I'd rather use DEBUG=False and show visitors some ... | stackoverflow-qa |
# Pattern matching of lists in Python
## Question
I want to do some pattern matching on lists in Python. For example, in Haskell, I can do something like the following:
fun (head : rest) = ...
So when I pass in a list, head will be the first element, and rest will be the trailing elements.
Likewise, in Python, I c... | stackoverflow-qa |
# Pattern matching of lists in Python
## Question
I want to do some pattern matching on lists in Python. For example, in Haskell, I can do something like the following:
fun (head : rest) = ...
So when I pass in a list, head will be the first element, and rest will be the trailing elements.
Likewise, in Python, I c... | stackoverflow-qa |
# Pattern matching of lists in Python
## Question
I want to do some pattern matching on lists in Python. For example, in Haskell, I can do something like the following:
fun (head : rest) = ...
So when I pass in a list, head will be the first element, and rest will be the trailing elements.
Likewise, in Python, I c... | stackoverflow-qa |
# Pattern matching of lists in Python
## Question
I want to do some pattern matching on lists in Python. For example, in Haskell, I can do something like the following:
fun (head : rest) = ...
So when I pass in a list, head will be the first element, and rest will be the trailing elements.
Likewise, in Python, I c... | stackoverflow-qa |
# Pattern matching of lists in Python
## Question
I want to do some pattern matching on lists in Python. For example, in Haskell, I can do something like the following:
fun (head : rest) = ...
So when I pass in a list, head will be the first element, and rest will be the trailing elements.
Likewise, in Python, I c... | stackoverflow-qa |
# Pattern matching of lists in Python
## Question
I want to do some pattern matching on lists in Python. For example, in Haskell, I can do something like the following:
fun (head : rest) = ...
So when I pass in a list, head will be the first element, and rest will be the trailing elements.
Likewise, in Python, I c... | stackoverflow-qa |
# Pattern matching of lists in Python
## Question
I want to do some pattern matching on lists in Python. For example, in Haskell, I can do something like the following:
fun (head : rest) = ...
So when I pass in a list, head will be the first element, and rest will be the trailing elements.
Likewise, in Python, I c... | stackoverflow-qa |
# Pattern matching of lists in Python
## Question
I want to do some pattern matching on lists in Python. For example, in Haskell, I can do something like the following:
fun (head : rest) = ...
So when I pass in a list, head will be the first element, and rest will be the trailing elements.
Likewise, in Python, I c... | stackoverflow-qa |
# Pattern matching of lists in Python
## Question
I want to do some pattern matching on lists in Python. For example, in Haskell, I can do something like the following:
fun (head : rest) = ...
So when I pass in a list, head will be the first element, and rest will be the trailing elements.
Likewise, in Python, I c... | stackoverflow-qa |
# Is there a windows implementation to python libsvn?
## Question
Because windows is case-insensitive and because SVN is case-sensitive and because VS2005 tends to rename files giving them the lower-case form which messes my repositories' history, I've tried to add the pre-commit hook script from http://svn.collab.net... | stackoverflow-qa |
# Is there a windows implementation to python libsvn?
## Question
Because windows is case-insensitive and because SVN is case-sensitive and because VS2005 tends to rename files giving them the lower-case form which messes my repositories' history, I've tried to add the pre-commit hook script from http://svn.collab.net... | stackoverflow-qa |
# Match unicode in ply's regexes
## Question
I'm matching identifiers, but now I have a problem: my identifiers are allowed to contain unicode characters. Therefore the old way to do things is not enough:
t_IDENTIFIER = r"[A-Za-z](\\.|[A-Za-z_0-9])*"
In my markup language parser I match unicode characters by allowi... | stackoverflow-qa |
# Match unicode in ply's regexes
## Question
I'm matching identifiers, but now I have a problem: my identifiers are allowed to contain unicode characters. Therefore the old way to do things is not enough:
t_IDENTIFIER = r"[A-Za-z](\\.|[A-Za-z_0-9])*"
In my markup language parser I match unicode characters by allowi... | stackoverflow-qa |
# Match unicode in ply's regexes
## Question
I'm matching identifiers, but now I have a problem: my identifiers are allowed to contain unicode characters. Therefore the old way to do things is not enough:
t_IDENTIFIER = r"[A-Za-z](\\.|[A-Za-z_0-9])*"
In my markup language parser I match unicode characters by allowi... | stackoverflow-qa |
# Match unicode in ply's regexes
## Question
I'm matching identifiers, but now I have a problem: my identifiers are allowed to contain unicode characters. Therefore the old way to do things is not enough:
t_IDENTIFIER = r"[A-Za-z](\\.|[A-Za-z_0-9])*"
In my markup language parser I match unicode characters by allowi... | stackoverflow-qa |
# How can I support wildcards in user-defined search strings in Python?
## Question
Is there a simple way to support wildcards ("*") when searching strings - without using RegEx?
Users are supposed to enter search terms using wildcards, but should not have to deal with the complexity of RegEx:
"foo*" => str.start... | stackoverflow-qa |
# XPath search with ElementTree
## Question
New to xml. Looking for XPath to search a xml file with python ElementTree format
<root>
<child>One</child>
<child>Two</child>
<child>Three</child>
</root>
to do search for child with "Two" and return true/false
if it was started off like
from elementtree import Eleme... | stackoverflow-qa |
# XPath search with ElementTree
## Question
New to xml. Looking for XPath to search a xml file with python ElementTree format
<root>
<child>One</child>
<child>Two</child>
<child>Three</child>
</root>
to do search for child with "Two" and return true/false
if it was started off like
from elementtree import Eleme... | stackoverflow-qa |
# How do I install plpython on MacOs X 10.5?
## Question
I have just installed PostgreSQL 8.3.4 on Mac OS X 10.5 (using ports), but I cannot figure out how to enable PL/Python. When I run the CREATE LANGUAGE plpythonu I get the following errors:
ERROR: could not access file "$libdir/plpython": No such file or direct... | stackoverflow-qa |
# How can I call a DLL from a scripting language?
## Question
I have a third-party product, a terminal emulator, which provides a DLL that can be linked to a C program to basically automate the driving of this product (send keystrokes, detect what's on the screen and so forth).
I want to drive it from a scripting lan... | stackoverflow-qa |
# How can I call a DLL from a scripting language?
## Question
I have a third-party product, a terminal emulator, which provides a DLL that can be linked to a C program to basically automate the driving of this product (send keystrokes, detect what's on the screen and so forth).
I want to drive it from a scripting lan... | stackoverflow-qa |
# How can I call a DLL from a scripting language?
## Question
I have a third-party product, a terminal emulator, which provides a DLL that can be linked to a C program to basically automate the driving of this product (send keystrokes, detect what's on the screen and so forth).
I want to drive it from a scripting lan... | stackoverflow-qa |
# How can I call a DLL from a scripting language?
## Question
I have a third-party product, a terminal emulator, which provides a DLL that can be linked to a C program to basically automate the driving of this product (send keystrokes, detect what's on the screen and so forth).
I want to drive it from a scripting lan... | stackoverflow-qa |
# How can I call a DLL from a scripting language?
## Question
I have a third-party product, a terminal emulator, which provides a DLL that can be linked to a C program to basically automate the driving of this product (send keystrokes, detect what's on the screen and so forth).
I want to drive it from a scripting lan... | stackoverflow-qa |
# Python: DISTINCT on GQuery result set (GQL, GAE)
## Question
Imagine you got an entity in the Google App Engine datastore, storing links for anonymous users.
You would like to perform the following SQL query, which is not supported:
SELECT DISTINCT user_hash FROM links
Instead you could use:
user = db.GqlQuery(... | stackoverflow-qa |
# Python: DISTINCT on GQuery result set (GQL, GAE)
## Question
Imagine you got an entity in the Google App Engine datastore, storing links for anonymous users.
You would like to perform the following SQL query, which is not supported:
SELECT DISTINCT user_hash FROM links
Instead you could use:
user = db.GqlQuery(... | stackoverflow-qa |
# Python: DISTINCT on GQuery result set (GQL, GAE)
## Question
Imagine you got an entity in the Google App Engine datastore, storing links for anonymous users.
You would like to perform the following SQL query, which is not supported:
SELECT DISTINCT user_hash FROM links
Instead you could use:
user = db.GqlQuery(... | stackoverflow-qa |
# WindowsError: priveledged instruction when saving a FreeImagePy Image in script, works in IDLE
## Question
I'm working on a program to do some image wrangling in Python for work. I'm using FreeImagePy because PIL doesn't support multi-page TIFFs. Whenever I try to save a file with it from my program I get this err... | stackoverflow-qa |
# Python list of lists, changes reflected across sublists unexpectedly
## Question
I needed to create a list of lists in Python, so I typed the following:
myList = [[1] * 4] * 3
The list looked like this:
[[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]
Then I changed one of the innermost values:
myList[0][0]... | stackoverflow-qa |
# Python list of lists, changes reflected across sublists unexpectedly
## Question
I needed to create a list of lists in Python, so I typed the following:
myList = [[1] * 4] * 3
The list looked like this:
[[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]
Then I changed one of the innermost values:
myList[0][0]... | stackoverflow-qa |
# Python list of lists, changes reflected across sublists unexpectedly
## Question
I needed to create a list of lists in Python, so I typed the following:
myList = [[1] * 4] * 3
The list looked like this:
[[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]
Then I changed one of the innermost values:
myList[0][0]... | stackoverflow-qa |
# Python list of lists, changes reflected across sublists unexpectedly
## Question
I needed to create a list of lists in Python, so I typed the following:
myList = [[1] * 4] * 3
The list looked like this:
[[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]
Then I changed one of the innermost values:
myList[0][0]... | stackoverflow-qa |
# Python list of lists, changes reflected across sublists unexpectedly
## Question
I needed to create a list of lists in Python, so I typed the following:
myList = [[1] * 4] * 3
The list looked like this:
[[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]
Then I changed one of the innermost values:
myList[0][0]... | stackoverflow-qa |
# Python list of lists, changes reflected across sublists unexpectedly
## Question
I needed to create a list of lists in Python, so I typed the following:
myList = [[1] * 4] * 3
The list looked like this:
[[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]
Then I changed one of the innermost values:
myList[0][0]... | stackoverflow-qa |
# post_save signal on m2m field
## Question
I have a pretty generic Article model, with m2m relation to Tag model. I want to keep count of each tag usage, i think the best way would be to denormalise count field on Tag model and update it each time Article being saved. How can i accomplish this, or maybe there's a bet... | stackoverflow-qa |
# post_save signal on m2m field
## Question
I have a pretty generic Article model, with m2m relation to Tag model. I want to keep count of each tag usage, i think the best way would be to denormalise count field on Tag model and update it each time Article being saved. How can i accomplish this, or maybe there's a bet... | stackoverflow-qa |
# Possible to integrate Google AppEngine and Google Code for continuous integration?
## Question
Anyone have any thoughts on how/if it is possible to integrate Google Code commits to cause a Google AppEngine deployment of the most recent code?
I have a simple Google AppEngine project's source hosted on Google Code an... | stackoverflow-qa |
# Possible to integrate Google AppEngine and Google Code for continuous integration?
## Question
Anyone have any thoughts on how/if it is possible to integrate Google Code commits to cause a Google AppEngine deployment of the most recent code?
I have a simple Google AppEngine project's source hosted on Google Code an... | stackoverflow-qa |
# Possible to integrate Google AppEngine and Google Code for continuous integration?
## Question
Anyone have any thoughts on how/if it is possible to integrate Google Code commits to cause a Google AppEngine deployment of the most recent code?
I have a simple Google AppEngine project's source hosted on Google Code an... | stackoverflow-qa |
# Possible to integrate Google AppEngine and Google Code for continuous integration?
## Question
Anyone have any thoughts on how/if it is possible to integrate Google Code commits to cause a Google AppEngine deployment of the most recent code?
I have a simple Google AppEngine project's source hosted on Google Code an... | stackoverflow-qa |
# Possible to integrate Google AppEngine and Google Code for continuous integration?
## Question
Anyone have any thoughts on how/if it is possible to integrate Google Code commits to cause a Google AppEngine deployment of the most recent code?
I have a simple Google AppEngine project's source hosted on Google Code an... | stackoverflow-qa |
# Python lazy list
## Question
I would like create my own collection that has all the attributes of python list and also knows how to save/load itself into/from a database. Also I want to make the load implicit and lazy, as in it doesn't happen at the point of creation of the list, but waits until its first used.
Is... | stackoverflow-qa |
# Python lazy list
## Question
I would like create my own collection that has all the attributes of python list and also knows how to save/load itself into/from a database. Also I want to make the load implicit and lazy, as in it doesn't happen at the point of creation of the list, but waits until its first used.
Is... | stackoverflow-qa |
# Python lazy list
## Question
I would like create my own collection that has all the attributes of python list and also knows how to save/load itself into/from a database. Also I want to make the load implicit and lazy, as in it doesn't happen at the point of creation of the list, but waits until its first used.
Is... | stackoverflow-qa |
# Python lazy list
## Question
I would like create my own collection that has all the attributes of python list and also knows how to save/load itself into/from a database. Also I want to make the load implicit and lazy, as in it doesn't happen at the point of creation of the list, but waits until its first used.
Is... | stackoverflow-qa |
# Python lazy list
## Question
I would like create my own collection that has all the attributes of python list and also knows how to save/load itself into/from a database. Also I want to make the load implicit and lazy, as in it doesn't happen at the point of creation of the list, but waits until its first used.
Is... | stackoverflow-qa |
# Single Table Inheritance in Django
## Question
Is there explicit support for Single Table Inheritance in Django? Last I heard, the feature was still under development and debate.
Are there libraries/hacks I can use in the meantime to capture the basic behavior? I have a hierarchy that mixes different objects. The ... | stackoverflow-qa |
# Single Table Inheritance in Django
## Question
Is there explicit support for Single Table Inheritance in Django? Last I heard, the feature was still under development and debate.
Are there libraries/hacks I can use in the meantime to capture the basic behavior? I have a hierarchy that mixes different objects. The ... | stackoverflow-qa |
# Single Table Inheritance in Django
## Question
Is there explicit support for Single Table Inheritance in Django? Last I heard, the feature was still under development and debate.
Are there libraries/hacks I can use in the meantime to capture the basic behavior? I have a hierarchy that mixes different objects. The ... | stackoverflow-qa |
# Single Table Inheritance in Django
## Question
Is there explicit support for Single Table Inheritance in Django? Last I heard, the feature was still under development and debate.
Are there libraries/hacks I can use in the meantime to capture the basic behavior? I have a hierarchy that mixes different objects. The ... | stackoverflow-qa |
# Single Table Inheritance in Django
## Question
Is there explicit support for Single Table Inheritance in Django? Last I heard, the feature was still under development and debate.
Are there libraries/hacks I can use in the meantime to capture the basic behavior? I have a hierarchy that mixes different objects. The ... | stackoverflow-qa |
# Python snippet to remove C and C++ comments
## Question
I'm looking for Python code that removes C and C++ comments from a string. (Assume the string contains an entire C source file.)
I realize that I could .match() substrings with a Regex, but that doesn't solve nesting /*, or having a // inside a /* */.
Ideally... | stackoverflow-qa |
# Python snippet to remove C and C++ comments
## Question
I'm looking for Python code that removes C and C++ comments from a string. (Assume the string contains an entire C source file.)
I realize that I could .match() substrings with a Regex, but that doesn't solve nesting /*, or having a // inside a /* */.
Ideally... | stackoverflow-qa |
# Python snippet to remove C and C++ comments
## Question
I'm looking for Python code that removes C and C++ comments from a string. (Assume the string contains an entire C source file.)
I realize that I could .match() substrings with a Regex, but that doesn't solve nesting /*, or having a // inside a /* */.
Ideally... | stackoverflow-qa |
# Python snippet to remove C and C++ comments
## Question
I'm looking for Python code that removes C and C++ comments from a string. (Assume the string contains an entire C source file.)
I realize that I could .match() substrings with a Regex, but that doesn't solve nesting /*, or having a // inside a /* */.
Ideally... | stackoverflow-qa |
# Python snippet to remove C and C++ comments
## Question
I'm looking for Python code that removes C and C++ comments from a string. (Assume the string contains an entire C source file.)
I realize that I could .match() substrings with a Regex, but that doesn't solve nesting /*, or having a // inside a /* */.
Ideally... | stackoverflow-qa |
# Python snippet to remove C and C++ comments
## Question
I'm looking for Python code that removes C and C++ comments from a string. (Assume the string contains an entire C source file.)
I realize that I could .match() substrings with a Regex, but that doesn't solve nesting /*, or having a // inside a /* */.
Ideally... | stackoverflow-qa |
# Python snippet to remove C and C++ comments
## Question
I'm looking for Python code that removes C and C++ comments from a string. (Assume the string contains an entire C source file.)
I realize that I could .match() substrings with a Regex, but that doesn't solve nesting /*, or having a // inside a /* */.
Ideally... | stackoverflow-qa |
# Python snippet to remove C and C++ comments
## Question
I'm looking for Python code that removes C and C++ comments from a string. (Assume the string contains an entire C source file.)
I realize that I could .match() substrings with a Regex, but that doesn't solve nesting /*, or having a // inside a /* */.
Ideally... | stackoverflow-qa |
# Reading collections of extended elements in an RSS feed with Universal Feed Parser
## Question
Is there any way to read a collection of extension elements with Universal Feed Parser?
This is just a short snippet from Kuler RSS feed:
<channel>
<item>
<!-- snip: regular RSS elements -->
<kuler:themeItem>
... | stackoverflow-qa |
# I want a program that writes every possible combination to a different line of a text file
## Question
I want to write a program that would print every combination of a set of variables to a text file, creating a word list. Each answer should be written on a separate line and write all of the results for 1 digit, 2 ... | stackoverflow-qa |
# I want a program that writes every possible combination to a different line of a text file
## Question
I want to write a program that would print every combination of a set of variables to a text file, creating a word list. Each answer should be written on a separate line and write all of the results for 1 digit, 2 ... | stackoverflow-qa |
# I want a program that writes every possible combination to a different line of a text file
## Question
I want to write a program that would print every combination of a set of variables to a text file, creating a word list. Each answer should be written on a separate line and write all of the results for 1 digit, 2 ... | stackoverflow-qa |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.