text
stringlengths
200
200k
source
stringclasses
2 values
# What's the best way to duplicate fork() in windows? ## Question How do I implement some logic that will allow me to reproduce on Windows the functionality that I have on Linux with the fork() system call, using Python? I'm specifically trying to execute a method on the SAPI Com component, while continuing the other...
stackoverflow-qa
# How can I graph the Lines of Code history for git repo? ## Question Basically I want to get the number of lines-of-code in the repository after each commit. The only (really crappy) ways I have found is to use git filter-branch to run "wc -l *", and a script that run git reset --hard on each commit, then ran wc -l ...
stackoverflow-qa
# How can I graph the Lines of Code history for git repo? ## Question Basically I want to get the number of lines-of-code in the repository after each commit. The only (really crappy) ways I have found is to use git filter-branch to run "wc -l *", and a script that run git reset --hard on each commit, then ran wc -l ...
stackoverflow-qa
# How can I graph the Lines of Code history for git repo? ## Question Basically I want to get the number of lines-of-code in the repository after each commit. The only (really crappy) ways I have found is to use git filter-branch to run "wc -l *", and a script that run git reset --hard on each commit, then ran wc -l ...
stackoverflow-qa
# How can I graph the Lines of Code history for git repo? ## Question Basically I want to get the number of lines-of-code in the repository after each commit. The only (really crappy) ways I have found is to use git filter-branch to run "wc -l *", and a script that run git reset --hard on each commit, then ran wc -l ...
stackoverflow-qa
# Python code generator for Visual Studio? ## Question I had an idea, if I add a python .py file to my C# project, and tag the file with a custom generator that would execute the python file, and treat the output as the result of the code generation, ie. put it into a C# file, that would allow me to do quite a lot of ...
stackoverflow-qa
# Python code generator for Visual Studio? ## Question I had an idea, if I add a python .py file to my C# project, and tag the file with a custom generator that would execute the python file, and treat the output as the result of the code generation, ie. put it into a C# file, that would allow me to do quite a lot of ...
stackoverflow-qa
# Python code generator for Visual Studio? ## Question I had an idea, if I add a python .py file to my C# project, and tag the file with a custom generator that would execute the python file, and treat the output as the result of the code generation, ie. put it into a C# file, that would allow me to do quite a lot of ...
stackoverflow-qa
# Python code generator for Visual Studio? ## Question I had an idea, if I add a python .py file to my C# project, and tag the file with a custom generator that would execute the python file, and treat the output as the result of the code generation, ie. put it into a C# file, that would allow me to do quite a lot of ...
stackoverflow-qa
# Python code generator for Visual Studio? ## Question I had an idea, if I add a python .py file to my C# project, and tag the file with a custom generator that would execute the python file, and treat the output as the result of the code generation, ie. put it into a C# file, that would allow me to do quite a lot of ...
stackoverflow-qa
# How to capture Python interpreter's and/or CMD.EXE's output from a Python script? ## Question Is it possible to capture Python interpreter's output from a Python script? Is it possible to capture Windows CMD's output from a Python script? If so, which librar(y|ies) should I look into? ## Answer You want subproces...
stackoverflow-qa
# How to capture Python interpreter's and/or CMD.EXE's output from a Python script? ## Question Is it possible to capture Python interpreter's output from a Python script? Is it possible to capture Windows CMD's output from a Python script? If so, which librar(y|ies) should I look into? ## Answer If you are talking...
stackoverflow-qa
# How to capture Python interpreter's and/or CMD.EXE's output from a Python script? ## Question Is it possible to capture Python interpreter's output from a Python script? Is it possible to capture Windows CMD's output from a Python script? If so, which librar(y|ies) should I look into? ## Answer Actually, you defi...
stackoverflow-qa
# How to capture Python interpreter's and/or CMD.EXE's output from a Python script? ## Question Is it possible to capture Python interpreter's output from a Python script? Is it possible to capture Windows CMD's output from a Python script? If so, which librar(y|ies) should I look into? ## Answer I think I can poin...
stackoverflow-qa
# Binary buffer in Python ## Question In Python you can use StringIO for a file-like buffer for character data. Memory-mapped file basically does similar thing for binary data, but it requires a file that is used as the basis. Does Python have a file object that is intended for binary data and is memory only, equivale...
stackoverflow-qa
# Binary buffer in Python ## Question In Python you can use StringIO for a file-like buffer for character data. Memory-mapped file basically does similar thing for binary data, but it requires a file that is used as the basis. Does Python have a file object that is intended for binary data and is memory only, equivale...
stackoverflow-qa
# Binary buffer in Python ## Question In Python you can use StringIO for a file-like buffer for character data. Memory-mapped file basically does similar thing for binary data, but it requires a file that is used as the basis. Does Python have a file object that is intended for binary data and is memory only, equivale...
stackoverflow-qa
# pyGame within a pyGTK application ## Question What is the best way to use PyGame (SDL) within a PyGTK application? I'm searching for a method that allows me to have a drawing area in the GTK window and at the same time being able to manage both GTK and SDL events. ## Answer You may be interested in this message th...
stackoverflow-qa
# pyGame within a pyGTK application ## Question What is the best way to use PyGame (SDL) within a PyGTK application? I'm searching for a method that allows me to have a drawing area in the GTK window and at the same time being able to manage both GTK and SDL events. ## Answer I've never attempted it myself, but hear...
stackoverflow-qa
# pyGame within a pyGTK application ## Question What is the best way to use PyGame (SDL) within a PyGTK application? I'm searching for a method that allows me to have a drawing area in the GTK window and at the same time being able to manage both GTK and SDL events. ## Answer PyGame works much better when it can man...
stackoverflow-qa
# pyGame within a pyGTK application ## Question What is the best way to use PyGame (SDL) within a PyGTK application? I'm searching for a method that allows me to have a drawing area in the GTK window and at the same time being able to manage both GTK and SDL events. ## Answer http://faq.pygtk.org/index.py?file=faq23...
stackoverflow-qa
# Python super class reflection ## Question If I have Python code class A(): pass class B(): pass class C(A, B): pass and I have class C, is there a way to iterate through it's super classed (A and B)? Something like pseudocode: >>> magicGetSuperClasses(C) (<type 'A'>, <type 'B'>) One solution seems ...
stackoverflow-qa
# Python super class reflection ## Question If I have Python code class A(): pass class B(): pass class C(A, B): pass and I have class C, is there a way to iterate through it's super classed (A and B)? Something like pseudocode: >>> magicGetSuperClasses(C) (<type 'A'>, <type 'B'>) One solution seems ...
stackoverflow-qa
# Python super class reflection ## Question If I have Python code class A(): pass class B(): pass class C(A, B): pass and I have class C, is there a way to iterate through it's super classed (A and B)? Something like pseudocode: >>> magicGetSuperClasses(C) (<type 'A'>, <type 'B'>) One solution seems ...
stackoverflow-qa
# Python super class reflection ## Question If I have Python code class A(): pass class B(): pass class C(A, B): pass and I have class C, is there a way to iterate through it's super classed (A and B)? Something like pseudocode: >>> magicGetSuperClasses(C) (<type 'A'>, <type 'B'>) One solution seems ...
stackoverflow-qa
# Is there any difference between "foo is None" and "foo == None"? ## Question Is there any difference between: if foo is None: pass and if foo == None: pass The convention that I've seen in most Python code (and the code I myself write) is the former, but I recently came across code which uses the latter. None...
stackoverflow-qa
# Is there any difference between "foo is None" and "foo == None"? ## Question Is there any difference between: if foo is None: pass and if foo == None: pass The convention that I've seen in most Python code (and the code I myself write) is the former, but I recently came across code which uses the latter. None...
stackoverflow-qa
# Is there any difference between "foo is None" and "foo == None"? ## Question Is there any difference between: if foo is None: pass and if foo == None: pass The convention that I've seen in most Python code (and the code I myself write) is the former, but I recently came across code which uses the latter. None...
stackoverflow-qa
# Is there any difference between "foo is None" and "foo == None"? ## Question Is there any difference between: if foo is None: pass and if foo == None: pass The convention that I've seen in most Python code (and the code I myself write) is the former, but I recently came across code which uses the latter. None...
stackoverflow-qa
# Is there any difference between "foo is None" and "foo == None"? ## Question Is there any difference between: if foo is None: pass and if foo == None: pass The convention that I've seen in most Python code (and the code I myself write) is the former, but I recently came across code which uses the latter. None...
stackoverflow-qa
# Is there any difference between "foo is None" and "foo == None"? ## Question Is there any difference between: if foo is None: pass and if foo == None: pass The convention that I've seen in most Python code (and the code I myself write) is the former, but I recently came across code which uses the latter. None...
stackoverflow-qa
# Is there any difference between "foo is None" and "foo == None"? ## Question Is there any difference between: if foo is None: pass and if foo == None: pass The convention that I've seen in most Python code (and the code I myself write) is the former, but I recently came across code which uses the latter. None...
stackoverflow-qa
# Is there any difference between "foo is None" and "foo == None"? ## Question Is there any difference between: if foo is None: pass and if foo == None: pass The convention that I've seen in most Python code (and the code I myself write) is the former, but I recently came across code which uses the latter. None...
stackoverflow-qa
# Is there any difference between "foo is None" and "foo == None"? ## Question Is there any difference between: if foo is None: pass and if foo == None: pass The convention that I've seen in most Python code (and the code I myself write) is the former, but I recently came across code which uses the latter. None...
stackoverflow-qa
# Is there any difference between "foo is None" and "foo == None"? ## Question Is there any difference between: if foo is None: pass and if foo == None: pass The convention that I've seen in most Python code (and the code I myself write) is the former, but I recently came across code which uses the latter. None...
stackoverflow-qa
# wxpython: How do I examine dragged data in OnDragOver? ## Question I'm a bit perplexed by drag and drop in wxPython (but perhaps this questions pertains to drag and drop in other GUI frameworks as well). The frameworks provides a couple of callbacks (OnEnter and OnDragOver) that purportedly allow me to inform the sy...
stackoverflow-qa
# wxpython: How do I examine dragged data in OnDragOver? ## Question I'm a bit perplexed by drag and drop in wxPython (but perhaps this questions pertains to drag and drop in other GUI frameworks as well). The frameworks provides a couple of callbacks (OnEnter and OnDragOver) that purportedly allow me to inform the sy...
stackoverflow-qa
# Where can I learn more about PyPy's translation function? ## Question I've been having a hard time trying to understand PyPy's translation. It looks like something absolutely revolutionary from simply reading the description, however I'm hard-pressed to find good documentation on actually translating a real world p...
stackoverflow-qa
# Where can I learn more about PyPy's translation function? ## Question I've been having a hard time trying to understand PyPy's translation. It looks like something absolutely revolutionary from simply reading the description, however I'm hard-pressed to find good documentation on actually translating a real world p...
stackoverflow-qa
# Where can I learn more about PyPy's translation function? ## Question I've been having a hard time trying to understand PyPy's translation. It looks like something absolutely revolutionary from simply reading the description, however I'm hard-pressed to find good documentation on actually translating a real world p...
stackoverflow-qa
# Where can I learn more about PyPy's translation function? ## Question I've been having a hard time trying to understand PyPy's translation. It looks like something absolutely revolutionary from simply reading the description, however I'm hard-pressed to find good documentation on actually translating a real world p...
stackoverflow-qa
# Where can I learn more about PyPy's translation function? ## Question I've been having a hard time trying to understand PyPy's translation. It looks like something absolutely revolutionary from simply reading the description, however I'm hard-pressed to find good documentation on actually translating a real world p...
stackoverflow-qa
# Does PHP have an equivalent to this type of Python string substitution? ## Question Python has this wonderful way of handling string substitutions using dictionaries: >>> 'The %(site)s site %(adj)s because it %(adj)s' % {'site':'Stackoverflow', 'adj':'rocks'} 'The Stackoverflow site rocks because it rocks' I love...
stackoverflow-qa
# Does PHP have an equivalent to this type of Python string substitution? ## Question Python has this wonderful way of handling string substitutions using dictionaries: >>> 'The %(site)s site %(adj)s because it %(adj)s' % {'site':'Stackoverflow', 'adj':'rocks'} 'The Stackoverflow site rocks because it rocks' I love...
stackoverflow-qa
# Does PHP have an equivalent to this type of Python string substitution? ## Question Python has this wonderful way of handling string substitutions using dictionaries: >>> 'The %(site)s site %(adj)s because it %(adj)s' % {'site':'Stackoverflow', 'adj':'rocks'} 'The Stackoverflow site rocks because it rocks' I love...
stackoverflow-qa
# Is "safe_eval" really safe? ## Question I'm looking for a "safe" eval function, to implement spreadsheet-like calculations (using numpy/scipy). The functionality to do this (the rexec module) has been removed from Python since 2.3 due to apparently unfixable security problems. There are several third-party hacks ou...
stackoverflow-qa
# Is "safe_eval" really safe? ## Question I'm looking for a "safe" eval function, to implement spreadsheet-like calculations (using numpy/scipy). The functionality to do this (the rexec module) has been removed from Python since 2.3 due to apparently unfixable security problems. There are several third-party hacks ou...
stackoverflow-qa
# Is "safe_eval" really safe? ## Question I'm looking for a "safe" eval function, to implement spreadsheet-like calculations (using numpy/scipy). The functionality to do this (the rexec module) has been removed from Python since 2.3 due to apparently unfixable security problems. There are several third-party hacks ou...
stackoverflow-qa
# Is "safe_eval" really safe? ## Question I'm looking for a "safe" eval function, to implement spreadsheet-like calculations (using numpy/scipy). The functionality to do this (the rexec module) has been removed from Python since 2.3 due to apparently unfixable security problems. There are several third-party hacks ou...
stackoverflow-qa
# Most Pythonic way equivalent for: while ((x = next()) != END) ## Question What's the best Python idiom for this C construct? while ((x = next()) != END) { .... } I don't have the ability to recode next(). update: and the answer from seems to be: for x in iter(next, END): .... ## Answer Maybe it's not ...
stackoverflow-qa
# Most Pythonic way equivalent for: while ((x = next()) != END) ## Question What's the best Python idiom for this C construct? while ((x = next()) != END) { .... } I don't have the ability to recode next(). update: and the answer from seems to be: for x in iter(next, END): .... ## Answer What are you tr...
stackoverflow-qa
# Most Pythonic way equivalent for: while ((x = next()) != END) ## Question What's the best Python idiom for this C construct? while ((x = next()) != END) { .... } I don't have the ability to recode next(). update: and the answer from seems to be: for x in iter(next, END): .... ## Answer It depends a bi...
stackoverflow-qa
# Most Pythonic way equivalent for: while ((x = next()) != END) ## Question What's the best Python idiom for this C construct? while ((x = next()) != END) { .... } I don't have the ability to recode next(). update: and the answer from seems to be: for x in iter(next, END): .... ## Answer If you need to ...
stackoverflow-qa
# Most Pythonic way equivalent for: while ((x = next()) != END) ## Question What's the best Python idiom for this C construct? while ((x = next()) != END) { .... } I don't have the ability to recode next(). update: and the answer from seems to be: for x in iter(next, END): .... ## Answer Short answer: t...
stackoverflow-qa
# Most Pythonic way equivalent for: while ((x = next()) != END) ## Question What's the best Python idiom for this C construct? while ((x = next()) != END) { .... } I don't have the ability to recode next(). update: and the answer from seems to be: for x in iter(next, END): .... ## Answer Can you provide...
stackoverflow-qa
# Most Pythonic way equivalent for: while ((x = next()) != END) ## Question What's the best Python idiom for this C construct? while ((x = next()) != END) { .... } I don't have the ability to recode next(). update: and the answer from seems to be: for x in iter(next, END): .... ## Answer @Mark Harrison'...
stackoverflow-qa
# Best way to extract data from a FileMaker Pro database in a script? ## Question My job would be easier, or at least less tedious if I could come up with an automated way (preferably in a Python script) to extract useful information from a FileMaker Pro database. I am working on Linux machine and the FileMaker databa...
stackoverflow-qa
# Best way to extract data from a FileMaker Pro database in a script? ## Question My job would be easier, or at least less tedious if I could come up with an automated way (preferably in a Python script) to extract useful information from a FileMaker Pro database. I am working on Linux machine and the FileMaker databa...
stackoverflow-qa
# Best way to extract data from a FileMaker Pro database in a script? ## Question My job would be easier, or at least less tedious if I could come up with an automated way (preferably in a Python script) to extract useful information from a FileMaker Pro database. I am working on Linux machine and the FileMaker databa...
stackoverflow-qa
# What refactoring tools do you use for Python? ## Question I have a bunch of classes I want to rename. Some of them have names that are small and that name is reused in other class names, where I don't want that name changed. Most of this lives in Python code, but we also have some XML code that references class na...
stackoverflow-qa
# What refactoring tools do you use for Python? ## Question I have a bunch of classes I want to rename. Some of them have names that are small and that name is reused in other class names, where I don't want that name changed. Most of this lives in Python code, but we also have some XML code that references class na...
stackoverflow-qa
# What refactoring tools do you use for Python? ## Question I have a bunch of classes I want to rename. Some of them have names that are small and that name is reused in other class names, where I don't want that name changed. Most of this lives in Python code, but we also have some XML code that references class na...
stackoverflow-qa
# What refactoring tools do you use for Python? ## Question I have a bunch of classes I want to rename. Some of them have names that are small and that name is reused in other class names, where I don't want that name changed. Most of this lives in Python code, but we also have some XML code that references class na...
stackoverflow-qa
# What refactoring tools do you use for Python? ## Question I have a bunch of classes I want to rename. Some of them have names that are small and that name is reused in other class names, where I don't want that name changed. Most of this lives in Python code, but we also have some XML code that references class na...
stackoverflow-qa
# What's the best way to use web services in python? ## Question I have a medium sized application that runs as a .net web-service which I do not control, and I want to create a loose pythonic API above it to enable easy scripting. I wanted to know what is the best/most practical solution for using web-services in py...
stackoverflow-qa
# What's the best way to use web services in python? ## Question I have a medium sized application that runs as a .net web-service which I do not control, and I want to create a loose pythonic API above it to enable easy scripting. I wanted to know what is the best/most practical solution for using web-services in py...
stackoverflow-qa
# How do I create an xml document in python ## Question Here is my sample code: from xml.dom.minidom import * def make_xml(): doc = Document() node = doc.createElement('foo') node.innerText = 'bar' doc.appendChild(node) return doc if __name__ == '__main__': make_xml().writexml(sys.stdout) wh...
stackoverflow-qa
# How do I create an xml document in python ## Question Here is my sample code: from xml.dom.minidom import * def make_xml(): doc = Document() node = doc.createElement('foo') node.innerText = 'bar' doc.appendChild(node) return doc if __name__ == '__main__': make_xml().writexml(sys.stdout) wh...
stackoverflow-qa
# How do I create an xml document in python ## Question Here is my sample code: from xml.dom.minidom import * def make_xml(): doc = Document() node = doc.createElement('foo') node.innerText = 'bar' doc.appendChild(node) return doc if __name__ == '__main__': make_xml().writexml(sys.stdout) wh...
stackoverflow-qa
# Python distutils - does anyone know how to use it? ## Question I wrote a quick program in python to add a gtk GUI to a cli program. I was wondering how I can create an installer using distutils. Since it's just a GUI frontend for a command line app it only works in *nix anyway so I'm not worried about it being cross...
stackoverflow-qa
# Python distutils - does anyone know how to use it? ## Question I wrote a quick program in python to add a gtk GUI to a cli program. I was wondering how I can create an installer using distutils. Since it's just a GUI frontend for a command line app it only works in *nix anyway so I'm not worried about it being cross...
stackoverflow-qa
# Python distutils - does anyone know how to use it? ## Question I wrote a quick program in python to add a gtk GUI to a cli program. I was wondering how I can create an installer using distutils. Since it's just a GUI frontend for a command line app it only works in *nix anyway so I'm not worried about it being cross...
stackoverflow-qa
# Python distutils - does anyone know how to use it? ## Question I wrote a quick program in python to add a gtk GUI to a cli program. I was wondering how I can create an installer using distutils. Since it's just a GUI frontend for a command line app it only works in *nix anyway so I'm not worried about it being cross...
stackoverflow-qa
# Python distutils - does anyone know how to use it? ## Question I wrote a quick program in python to add a gtk GUI to a cli program. I was wondering how I can create an installer using distutils. Since it's just a GUI frontend for a command line app it only works in *nix anyway so I'm not worried about it being cross...
stackoverflow-qa
# Install Python to match directory layout in OS X 10.5 ## Question The default Python install on OS X 10.5 is 2.5.1 with a fat 32 bit (Intel and PPC) client. I want to setup apache and mysql to run django. In the past I have run apache and mysql to match this install in 32 bit mode (even stripping out the 64 bit stuf...
stackoverflow-qa
# Install Python to match directory layout in OS X 10.5 ## Question The default Python install on OS X 10.5 is 2.5.1 with a fat 32 bit (Intel and PPC) client. I want to setup apache and mysql to run django. In the past I have run apache and mysql to match this install in 32 bit mode (even stripping out the 64 bit stuf...
stackoverflow-qa
# Install Python to match directory layout in OS X 10.5 ## Question The default Python install on OS X 10.5 is 2.5.1 with a fat 32 bit (Intel and PPC) client. I want to setup apache and mysql to run django. In the past I have run apache and mysql to match this install in 32 bit mode (even stripping out the 64 bit stuf...
stackoverflow-qa
# How do threads work in Python, and what are common Python-threading specific pitfalls? ## Question I've been trying to wrap my head around how threads work in Python, and it's hard to find good information on how they operate. I may just be missing a link or something, but it seems like the official documentation is...
stackoverflow-qa
# How do threads work in Python, and what are common Python-threading specific pitfalls? ## Question I've been trying to wrap my head around how threads work in Python, and it's hard to find good information on how they operate. I may just be missing a link or something, but it seems like the official documentation is...
stackoverflow-qa
# How do threads work in Python, and what are common Python-threading specific pitfalls? ## Question I've been trying to wrap my head around how threads work in Python, and it's hard to find good information on how they operate. I may just be missing a link or something, but it seems like the official documentation is...
stackoverflow-qa
# How do threads work in Python, and what are common Python-threading specific pitfalls? ## Question I've been trying to wrap my head around how threads work in Python, and it's hard to find good information on how they operate. I may just be missing a link or something, but it seems like the official documentation is...
stackoverflow-qa
# How do threads work in Python, and what are common Python-threading specific pitfalls? ## Question I've been trying to wrap my head around how threads work in Python, and it's hard to find good information on how they operate. I may just be missing a link or something, but it seems like the official documentation is...
stackoverflow-qa
# How do threads work in Python, and what are common Python-threading specific pitfalls? ## Question I've been trying to wrap my head around how threads work in Python, and it's hard to find good information on how they operate. I may just be missing a link or something, but it seems like the official documentation is...
stackoverflow-qa
# How can I render a tree structure (recursive) using a django template? ## Question I have a tree structure in memory that I would like to render in HTML using a Django template. class Node(): name = "node name" children = [] There will be some object root that is a Node, and children is a list of Nodes. root...
stackoverflow-qa
# How can I render a tree structure (recursive) using a django template? ## Question I have a tree structure in memory that I would like to render in HTML using a Django template. class Node(): name = "node name" children = [] There will be some object root that is a Node, and children is a list of Nodes. root...
stackoverflow-qa
# How can I render a tree structure (recursive) using a django template? ## Question I have a tree structure in memory that I would like to render in HTML using a Django template. class Node(): name = "node name" children = [] There will be some object root that is a Node, and children is a list of Nodes. root...
stackoverflow-qa
# How can I render a tree structure (recursive) using a django template? ## Question I have a tree structure in memory that I would like to render in HTML using a Django template. class Node(): name = "node name" children = [] There will be some object root that is a Node, and children is a list of Nodes. root...
stackoverflow-qa
# How can I render a tree structure (recursive) using a django template? ## Question I have a tree structure in memory that I would like to render in HTML using a Django template. class Node(): name = "node name" children = [] There will be some object root that is a Node, and children is a list of Nodes. root...
stackoverflow-qa
# How can I render a tree structure (recursive) using a django template? ## Question I have a tree structure in memory that I would like to render in HTML using a Django template. class Node(): name = "node name" children = [] There will be some object root that is a Node, and children is a list of Nodes. root...
stackoverflow-qa
# How can I render a tree structure (recursive) using a django template? ## Question I have a tree structure in memory that I would like to render in HTML using a Django template. class Node(): name = "node name" children = [] There will be some object root that is a Node, and children is a list of Nodes. root...
stackoverflow-qa
# Programmatically editing Python source ## Question This is something that I think would be very useful. Basically, I'd like there to be a way to edit Python source programmatically without requiring human intervention. There are a couple of things I would like to do with this: Edit the configuration of Python ap...
stackoverflow-qa
# Is it possible to run a Python script as a service in Windows? If possible, how? ## Question I am sketching the architecture for a set of programs that share various interrelated objects stored in a database. I want one of the programs to act as a service which provides a higher level interface for operations on the...
stackoverflow-qa
# Is it possible to run a Python script as a service in Windows? If possible, how? ## Question I am sketching the architecture for a set of programs that share various interrelated objects stored in a database. I want one of the programs to act as a service which provides a higher level interface for operations on the...
stackoverflow-qa
# Is it possible to run a Python script as a service in Windows? If possible, how? ## Question I am sketching the architecture for a set of programs that share various interrelated objects stored in a database. I want one of the programs to act as a service which provides a higher level interface for operations on the...
stackoverflow-qa
# How to generate dynamic (parametrized) unit tests in python? ## Question I have some kind of test data and want to create an unit test for each item. My first idea was to do it like this: import unittest l = [["foo", "a", "a",], ["bar", "a", "b"], ["lee", "b", "b"]] class TestSequence(unittest.TestCase): def ...
stackoverflow-qa
# How to generate dynamic (parametrized) unit tests in python? ## Question I have some kind of test data and want to create an unit test for each item. My first idea was to do it like this: import unittest l = [["foo", "a", "a",], ["bar", "a", "b"], ["lee", "b", "b"]] class TestSequence(unittest.TestCase): def ...
stackoverflow-qa
# How to generate dynamic (parametrized) unit tests in python? ## Question I have some kind of test data and want to create an unit test for each item. My first idea was to do it like this: import unittest l = [["foo", "a", "a",], ["bar", "a", "b"], ["lee", "b", "b"]] class TestSequence(unittest.TestCase): def ...
stackoverflow-qa
# How to generate dynamic (parametrized) unit tests in python? ## Question I have some kind of test data and want to create an unit test for each item. My first idea was to do it like this: import unittest l = [["foo", "a", "a",], ["bar", "a", "b"], ["lee", "b", "b"]] class TestSequence(unittest.TestCase): def ...
stackoverflow-qa
# How to generate dynamic (parametrized) unit tests in python? ## Question I have some kind of test data and want to create an unit test for each item. My first idea was to do it like this: import unittest l = [["foo", "a", "a",], ["bar", "a", "b"], ["lee", "b", "b"]] class TestSequence(unittest.TestCase): def ...
stackoverflow-qa
# How to generate dynamic (parametrized) unit tests in python? ## Question I have some kind of test data and want to create an unit test for each item. My first idea was to do it like this: import unittest l = [["foo", "a", "a",], ["bar", "a", "b"], ["lee", "b", "b"]] class TestSequence(unittest.TestCase): def ...
stackoverflow-qa