text
stringlengths
200
200k
source
stringclasses
2 values
# How do I get the path and name of the file that is currently executing? ## Question I have scripts calling other script files but I need to get the filepath of the file that is currently running within the process. For example, let's say I have three files. Using execfile: script_1.py calls script_2.py. In turn...
stackoverflow-qa
# How do I get the path and name of the file that is currently executing? ## Question I have scripts calling other script files but I need to get the filepath of the file that is currently running within the process. For example, let's say I have three files. Using execfile: script_1.py calls script_2.py. In turn...
stackoverflow-qa
# How do I get the path and name of the file that is currently executing? ## Question I have scripts calling other script files but I need to get the filepath of the file that is currently running within the process. For example, let's say I have three files. Using execfile: script_1.py calls script_2.py. In turn...
stackoverflow-qa
# How do I get the path and name of the file that is currently executing? ## Question I have scripts calling other script files but I need to get the filepath of the file that is currently running within the process. For example, let's say I have three files. Using execfile: script_1.py calls script_2.py. In turn...
stackoverflow-qa
# Django Sessions ## Question I'm looking at sessions in Django, and by default they are stored in the database. What are the benefits of filesystem and cache sessions and when should I use them? ## Answer The filesystem backend is only worth looking at if you're not going to use a database for any other part of you...
stackoverflow-qa
# Django Sessions ## Question I'm looking at sessions in Django, and by default they are stored in the database. What are the benefits of filesystem and cache sessions and when should I use them? ## Answer I'm no Django expert, so this answer is about session stores generally. Downvote if I'm wrong. Performance and...
stackoverflow-qa
# Django Sessions ## Question I'm looking at sessions in Django, and by default they are stored in the database. What are the benefits of filesystem and cache sessions and when should I use them? ## Answer One thing that has to be considered when choosing session backend is "how often session data is modified"? Even...
stackoverflow-qa
# Django Sessions ## Question I'm looking at sessions in Django, and by default they are stored in the database. What are the benefits of filesystem and cache sessions and when should I use them? ## Answer If the database have a DBA that isn't you, you may not be allowed to use a database-backed session (it being a ...
stackoverflow-qa
# Django Sessions ## Question I'm looking at sessions in Django, and by default they are stored in the database. What are the benefits of filesystem and cache sessions and when should I use them? ## Answer As of Django 1.1 you can use the cached_db session back end. This stores the session in the cache (only use wi...
stackoverflow-qa
# How do you create a weak reference to an object in Python? ## Question How do you create a weak reference to an object in Python? ## Answer >>> import weakref >>> class Object: ... pass ... >>> o = Object() >>> r = weakref.ref(o) >>> # if the reference is still active, r() will be o, otherwise None >>> do_somet...
stackoverflow-qa
# What is the simplest way to find the difference between 2 times in python? ## Question I have 2 time values which have the type datetime.time. I want to find their difference. The obvious thing to do is t1 - t2, but this doesn't work. It works for objects of type datetime.datetime but not for datetime.time. So what ...
stackoverflow-qa
# What is the simplest way to find the difference between 2 times in python? ## Question I have 2 time values which have the type datetime.time. I want to find their difference. The obvious thing to do is t1 - t2, but this doesn't work. It works for objects of type datetime.datetime but not for datetime.time. So what ...
stackoverflow-qa
# What is the simplest way to find the difference between 2 times in python? ## Question I have 2 time values which have the type datetime.time. I want to find their difference. The obvious thing to do is t1 - t2, but this doesn't work. It works for objects of type datetime.datetime but not for datetime.time. So what ...
stackoverflow-qa
# What is the simplest way to find the difference between 2 times in python? ## Question I have 2 time values which have the type datetime.time. I want to find their difference. The obvious thing to do is t1 - t2, but this doesn't work. It works for objects of type datetime.datetime but not for datetime.time. So what ...
stackoverflow-qa
# How to write a download progress indicator in Python? ## Question I am writing a little application to download files over http (as, for example, described here). I also want to include a little download progress indicator showing the percentage of the download progress. Here is what I came up with: sys.stdo...
stackoverflow-qa
# How to write a download progress indicator in Python? ## Question I am writing a little application to download files over http (as, for example, described here). I also want to include a little download progress indicator showing the percentage of the download progress. Here is what I came up with: sys.stdo...
stackoverflow-qa
# How to write a download progress indicator in Python? ## Question I am writing a little application to download files over http (as, for example, described here). I also want to include a little download progress indicator showing the percentage of the download progress. Here is what I came up with: sys.stdo...
stackoverflow-qa
# How to write a download progress indicator in Python? ## Question I am writing a little application to download files over http (as, for example, described here). I also want to include a little download progress indicator showing the percentage of the download progress. Here is what I came up with: sys.stdo...
stackoverflow-qa
# How to write a download progress indicator in Python? ## Question I am writing a little application to download files over http (as, for example, described here). I also want to include a little download progress indicator showing the percentage of the download progress. Here is what I came up with: sys.stdo...
stackoverflow-qa
# How can I retrieve the page title of a webpage using Python? ## Question How can I retrieve the page title of a webpage (title html tag) using Python? ## Answer I'll always use lxml for such tasks. You could use beautifulsoup as well. import lxml.html t = lxml.html.parse(url) print t.find(".//title").text Tags: p...
stackoverflow-qa
# How can I retrieve the page title of a webpage using Python? ## Question How can I retrieve the page title of a webpage (title html tag) using Python? ## Answer This is probably overkill for such a simple task, but if you plan to do more than that, then it's saner to start from these tools (mechanize, BeautifulSoup...
stackoverflow-qa
# How can I retrieve the page title of a webpage using Python? ## Question How can I retrieve the page title of a webpage (title html tag) using Python? ## Answer The mechanize Browser object has a title() method. So the code from this post can be rewritten as: from mechanize import Browser br = Browser() br.open("h...
stackoverflow-qa
# How can I retrieve the page title of a webpage using Python? ## Question How can I retrieve the page title of a webpage (title html tag) using Python? ## Answer Here's a simplified version of @Vinko Vrsalovic's answer: import urllib2 from BeautifulSoup import BeautifulSoup soup = BeautifulSoup(urllib2.urlopen("ht...
stackoverflow-qa
# How can I retrieve the page title of a webpage using Python? ## Question How can I retrieve the page title of a webpage (title html tag) using Python? ## Answer soup.title.string actually returns a unicode string. To convert that into normal string, you need to do string=string.encode('ascii','ignore') Tags: pytho...
stackoverflow-qa
# Passing on named variable arguments in python ## Question Say I have the following methods: def methodA(arg, **kwargs): pass def methodB(arg, *args, **kwargs): pass In methodA I wish to call methodB, passing on the kwargs. However, it seems that if I define methodA as follows, the second argument will be...
stackoverflow-qa
# Passing on named variable arguments in python ## Question Say I have the following methods: def methodA(arg, **kwargs): pass def methodB(arg, *args, **kwargs): pass In methodA I wish to call methodB, passing on the kwargs. However, it seems that if I define methodA as follows, the second argument will be...
stackoverflow-qa
# Passing on named variable arguments in python ## Question Say I have the following methods: def methodA(arg, **kwargs): pass def methodB(arg, *args, **kwargs): pass In methodA I wish to call methodB, passing on the kwargs. However, it seems that if I define methodA as follows, the second argument will be...
stackoverflow-qa
# Improving Python readability? ## Question I've been really enjoying Python programming lately. I come from a background of a strong love for C-based coding, where everything is perhaps more complicated than it should be (but puts hair on your chest, at least). So switching from C to Python for more complex things th...
stackoverflow-qa
# Improving Python readability? ## Question I've been really enjoying Python programming lately. I come from a background of a strong love for C-based coding, where everything is perhaps more complicated than it should be (but puts hair on your chest, at least). So switching from C to Python for more complex things th...
stackoverflow-qa
# Improving Python readability? ## Question I've been really enjoying Python programming lately. I come from a background of a strong love for C-based coding, where everything is perhaps more complicated than it should be (but puts hair on your chest, at least). So switching from C to Python for more complex things th...
stackoverflow-qa
# Improving Python readability? ## Question I've been really enjoying Python programming lately. I come from a background of a strong love for C-based coding, where everything is perhaps more complicated than it should be (but puts hair on your chest, at least). So switching from C to Python for more complex things th...
stackoverflow-qa
# Improving Python readability? ## Question I've been really enjoying Python programming lately. I come from a background of a strong love for C-based coding, where everything is perhaps more complicated than it should be (but puts hair on your chest, at least). So switching from C to Python for more complex things th...
stackoverflow-qa
# How to get an absolute file path in Python ## Question Given a path such as "mydir/myfile.txt", how do I find the absolute filepath relative to the current working directory in Python? E.g. on Windows, I might end up with: "C:/example/cwd/mydir/myfile.txt" ## Answer >>> import os >>> os.path.abspath("mydir/myfile....
stackoverflow-qa
# How to get an absolute file path in Python ## Question Given a path such as "mydir/myfile.txt", how do I find the absolute filepath relative to the current working directory in Python? E.g. on Windows, I might end up with: "C:/example/cwd/mydir/myfile.txt" ## Answer >>> import os >>> os.path.abspath('mydir/myfile....
stackoverflow-qa
# How to get an absolute file path in Python ## Question Given a path such as "mydir/myfile.txt", how do I find the absolute filepath relative to the current working directory in Python? E.g. on Windows, I might end up with: "C:/example/cwd/mydir/myfile.txt" ## Answer Better still, install the path.py module, it wra...
stackoverflow-qa
# How to get an absolute file path in Python ## Question Given a path such as "mydir/myfile.txt", how do I find the absolute filepath relative to the current working directory in Python? E.g. on Windows, I might end up with: "C:/example/cwd/mydir/myfile.txt" ## Answer Today you can also use the unipath package which...
stackoverflow-qa
# How to get an absolute file path in Python ## Question Given a path such as "mydir/myfile.txt", how do I find the absolute filepath relative to the current working directory in Python? E.g. on Windows, I might end up with: "C:/example/cwd/mydir/myfile.txt" ## Answer You could use the new Python 3.4 library pathlib...
stackoverflow-qa
# How to get an absolute file path in Python ## Question Given a path such as "mydir/myfile.txt", how do I find the absolute filepath relative to the current working directory in Python? E.g. on Windows, I might end up with: "C:/example/cwd/mydir/myfile.txt" ## Answer I prefer to use glob here is how to list all fi...
stackoverflow-qa
# Why are SQL aggregate functions so much slower than Python and Java (or Poor Man's OLAP) ## Question I need a real DBA's opinion. Postgres 8.3 takes 200 ms to execute this query on my Macbook Pro while Java and Python perform the same calculation in under 20 ms (350,000 rows): SELECT count(id), avg(a), avg(b), avg(...
stackoverflow-qa
# Why are SQL aggregate functions so much slower than Python and Java (or Poor Man's OLAP) ## Question I need a real DBA's opinion. Postgres 8.3 takes 200 ms to execute this query on my Macbook Pro while Java and Python perform the same calculation in under 20 ms (350,000 rows): SELECT count(id), avg(a), avg(b), avg(...
stackoverflow-qa
# Why are SQL aggregate functions so much slower than Python and Java (or Poor Man's OLAP) ## Question I need a real DBA's opinion. Postgres 8.3 takes 200 ms to execute this query on my Macbook Pro while Java and Python perform the same calculation in under 20 ms (350,000 rows): SELECT count(id), avg(a), avg(b), avg(...
stackoverflow-qa
# Why are SQL aggregate functions so much slower than Python and Java (or Poor Man's OLAP) ## Question I need a real DBA's opinion. Postgres 8.3 takes 200 ms to execute this query on my Macbook Pro while Java and Python perform the same calculation in under 20 ms (350,000 rows): SELECT count(id), avg(a), avg(b), avg(...
stackoverflow-qa
# Why are SQL aggregate functions so much slower than Python and Java (or Poor Man's OLAP) ## Question I need a real DBA's opinion. Postgres 8.3 takes 200 ms to execute this query on my Macbook Pro while Java and Python perform the same calculation in under 20 ms (350,000 rows): SELECT count(id), avg(a), avg(b), avg(...
stackoverflow-qa
# Why are SQL aggregate functions so much slower than Python and Java (or Poor Man's OLAP) ## Question I need a real DBA's opinion. Postgres 8.3 takes 200 ms to execute this query on my Macbook Pro while Java and Python perform the same calculation in under 20 ms (350,000 rows): SELECT count(id), avg(a), avg(b), avg(...
stackoverflow-qa
# Cross-platform space remaining on volume using python ## Question I need a way to determine the space remaining on a disk volume using python on linux, Windows and OS X. I'm currently parsing the output of the various system calls (df, dir) to accomplish this - is there a better way? ## Answer The os.statvfs() func...
stackoverflow-qa
# Cross-platform space remaining on volume using python ## Question I need a way to determine the space remaining on a disk volume using python on linux, Windows and OS X. I'm currently parsing the output of the various system calls (df, dir) to accomplish this - is there a better way? ## Answer If you dont like to a...
stackoverflow-qa
# Cross-platform space remaining on volume using python ## Question I need a way to determine the space remaining on a disk volume using python on linux, Windows and OS X. I'm currently parsing the output of the various system calls (df, dir) to accomplish this - is there a better way? ## Answer import ctypes import ...
stackoverflow-qa
# Cross-platform space remaining on volume using python ## Question I need a way to determine the space remaining on a disk volume using python on linux, Windows and OS X. I'm currently parsing the output of the various system calls (df, dir) to accomplish this - is there a better way? ## Answer A good cross-platform...
stackoverflow-qa
# Cross-platform space remaining on volume using python ## Question I need a way to determine the space remaining on a disk volume using python on linux, Windows and OS X. I'm currently parsing the output of the various system calls (df, dir) to accomplish this - is there a better way? ## Answer You could use the wmi...
stackoverflow-qa
# Cross-platform space remaining on volume using python ## Question I need a way to determine the space remaining on a disk volume using python on linux, Windows and OS X. I'm currently parsing the output of the various system calls (df, dir) to accomplish this - is there a better way? ## Answer Install psutil using ...
stackoverflow-qa
# Cross-platform space remaining on volume using python ## Question I need a way to determine the space remaining on a disk volume using python on linux, Windows and OS X. I'm currently parsing the output of the various system calls (df, dir) to accomplish this - is there a better way? ## Answer From Python 3.3 you c...
stackoverflow-qa
# Large Python Includes ## Question I have a file that I want to include in Python but the included file is fairly long and it'd be much neater to be able to split them into several files but then I have to use several include statements. Is there some way to group together several files and include them all at once?...
stackoverflow-qa
# Large Python Includes ## Question I have a file that I want to include in Python but the included file is fairly long and it'd be much neater to be able to split them into several files but then I have to use several include statements. Is there some way to group together several files and include them all at once?...
stackoverflow-qa
# How can I do a line break (line continuation) in Python? ## Question I have a long line of code that I want to break up among multiple lines. What do I use and what is the syntax? For example, adding a bunch of strings, e = 'a' + 'b' + 'c' + 'd' and have it like this: e = 'a' + 'b' + 'c' + 'd' ## Answer Pu...
stackoverflow-qa
# How can I do a line break (line continuation) in Python? ## Question I have a long line of code that I want to break up among multiple lines. What do I use and what is the syntax? For example, adding a bunch of strings, e = 'a' + 'b' + 'c' + 'd' and have it like this: e = 'a' + 'b' + 'c' + 'd' ## Answer Wh...
stackoverflow-qa
# How can I do a line break (line continuation) in Python? ## Question I have a long line of code that I want to break up among multiple lines. What do I use and what is the syntax? For example, adding a bunch of strings, e = 'a' + 'b' + 'c' + 'd' and have it like this: e = 'a' + 'b' + 'c' + 'd' ## Answer Fr...
stackoverflow-qa
# How can I do a line break (line continuation) in Python? ## Question I have a long line of code that I want to break up among multiple lines. What do I use and what is the syntax? For example, adding a bunch of strings, e = 'a' + 'b' + 'c' + 'd' and have it like this: e = 'a' + 'b' + 'c' + 'd' ## Answer Fr...
stackoverflow-qa
# How can I do a line break (line continuation) in Python? ## Question I have a long line of code that I want to break up among multiple lines. What do I use and what is the syntax? For example, adding a bunch of strings, e = 'a' + 'b' + 'c' + 'd' and have it like this: e = 'a' + 'b' + 'c' + 'd' ## Answer Th...
stackoverflow-qa
# How can I do a line break (line continuation) in Python? ## Question I have a long line of code that I want to break up among multiple lines. What do I use and what is the syntax? For example, adding a bunch of strings, e = 'a' + 'b' + 'c' + 'd' and have it like this: e = 'a' + 'b' + 'c' + 'd' ## Answer Yo...
stackoverflow-qa
# How do you check whether a python method is bound or not? ## Question Given a reference to a method, is there a way to check whether the method is bound to an object or not? Can you also access the instance that it's bound to? ## Answer im_self attribute Tags: python, python-datamodel
stackoverflow-qa
# How do you check whether a python method is bound or not? ## Question Given a reference to a method, is there a way to check whether the method is bound to an object or not? Can you also access the instance that it's bound to? ## Answer def isbound(method): return method.im_self is not None def instance(bound...
stackoverflow-qa
# How do you check whether a python method is bound or not? ## Question Given a reference to a method, is there a way to check whether the method is bound to an object or not? Can you also access the instance that it's bound to? ## Answer In python 3 the __self__ attribute is only set on bound methods. It's not set ...
stackoverflow-qa
# Best way to check if a list is empty ## Question For example, if passed the following: a = [] How do I check to see if a is empty? ## Answer if not a: print("List is empty") Using the implicit booleanness of the empty list a is quite pythonic. Tags: python, list
stackoverflow-qa
# Best way to check if a list is empty ## Question For example, if passed the following: a = [] How do I check to see if a is empty? ## Answer I have seen the below as preferred, as it will catch the null list as well: if not a: print "The list is empty or null" Tags: python, list
stackoverflow-qa
# Best way to check if a list is empty ## Question For example, if passed the following: a = [] How do I check to see if a is empty? ## Answer An empty list is itself considered false in true value testing (see python documentation): a = [] if a: print "not empty" @Daren Thomas EDIT: Another point agai...
stackoverflow-qa
# Best way to check if a list is empty ## Question For example, if passed the following: a = [] How do I check to see if a is empty? ## Answer I prefer the following: if a == []: print "The list is empty." Readable and you don't have to worry about calling a function like len() to iterate through the variabl...
stackoverflow-qa
# Best way to check if a list is empty ## Question For example, if passed the following: a = [] How do I check to see if a is empty? ## Answer The pythonic way to do it is from the PEP 8 style guide: For sequences, (strings, lists, tuples), use the fact that empty sequences are false. Yes: if not seq: ...
stackoverflow-qa
# Best way to check if a list is empty ## Question For example, if passed the following: a = [] How do I check to see if a is empty? ## Answer len() is an O(1) operation for Python lists, strings, dicts, and sets. Python internally keeps track of the number of elements in these containers. JavaScript has a simila...
stackoverflow-qa
# Best way to check if a list is empty ## Question For example, if passed the following: a = [] How do I check to see if a is empty? ## Answer I prefer it explicitly: if len(li) == 0: print 'the list is empty' This way it's 100% clear that li is a sequence (list) and we want to test its size. My problem wit...
stackoverflow-qa
# Best way to check if a list is empty ## Question For example, if passed the following: a = [] How do I check to see if a is empty? ## Answer Other methods don't work for numpy arrays Other people seem to be generalizing your question beyond just lists, so I thought I'd add a caveat for a different type of seque...
stackoverflow-qa
# Best way to check if a list is empty ## Question For example, if passed the following: a = [] How do I check to see if a is empty? ## Answer I had written: if isinstance(a, (list, some, other, types, i, accept)) and not a: do_stuff which was voted -1. I'm not sure if that's because readers objected to the...
stackoverflow-qa
# Best way to check if a list is empty ## Question For example, if passed the following: a = [] How do I check to see if a is empty? ## Answer Python is very uniform about the treatment of emptiness. Given the following: a = [] . . . if a: print("List is not empty.") else: print("List is empty.") You si...
stackoverflow-qa
# Best way to check if a list is empty ## Question For example, if passed the following: a = [] How do I check to see if a is empty? ## Answer A Python list is considered False when it is empty and True when it is not empty. The following will work quite nicely if seq:print('List has items') if not seq:p...
stackoverflow-qa
# Best way to check if a list is empty ## Question For example, if passed the following: a = [] How do I check to see if a is empty? ## Answer some methods what i use: if not a: print "list is empty" if not bool(a): print "list is empty" if len(a) == 0: print "list is empty" Tags: python, list
stackoverflow-qa
# Best way to check if a list is empty ## Question For example, if passed the following: a = [] How do I check to see if a is empty? ## Answer Patrick's (accepted) answer is right: if not a: is the right way to do it. Harley Holcombe's answer is right that this is in the PEP 8 style guide. But what none of the ans...
stackoverflow-qa
# Best way to check if a list is empty ## Question For example, if passed the following: a = [] How do I check to see if a is empty? ## Answer Try: if list: #Not empty else: #Empty if executes the first statement if bool(condition) returns True. bool(condition) returns False if condition is an empty seq...
stackoverflow-qa
# Best way to check if a list is empty ## Question For example, if passed the following: a = [] How do I check to see if a is empty? ## Answer No one seems to have addressed questioning your need to test the list in the first place. Because you provided no additional context, I can imagine that you may not need t...
stackoverflow-qa
# Best way to check if a list is empty ## Question For example, if passed the following: a = [] How do I check to see if a is empty? ## Answer From documentation on truth value testing: All values other than what is listed here are considered True None False zero of any numeric type, for example, 0, 0.0, 0j. an...
stackoverflow-qa
# Best way to check if a list is empty ## Question For example, if passed the following: a = [] How do I check to see if a is empty? ## Answer There is of course also print a or "List is empty" Tags: python, list
stackoverflow-qa
# Best way to check if a list is empty ## Question For example, if passed the following: a = [] How do I check to see if a is empty? ## Answer def list_test (L): if L is None : print 'list is None' elif not L : print 'list is empty' else: print 'list has %d elements' % len(L) list_test(None) l...
stackoverflow-qa
# Best way to check if a list is empty ## Question For example, if passed the following: a = [] How do I check to see if a is empty? ## Answer You could also do : if len(a_list): print "it's not empty" Tags: python, list
stackoverflow-qa
# What are some strategies to write python code that works in CPython, Jython and IronPython ## Question Having tries to target two of these environments at the same time I can safely say the if you have to use a database etc. you end up having to write unique code for that environment. Have you got a great way to han...
stackoverflow-qa
# What are some strategies to write python code that works in CPython, Jython and IronPython ## Question Having tries to target two of these environments at the same time I can safely say the if you have to use a database etc. you end up having to write unique code for that environment. Have you got a great way to han...
stackoverflow-qa
# What are some strategies to write python code that works in CPython, Jython and IronPython ## Question Having tries to target two of these environments at the same time I can safely say the if you have to use a database etc. you end up having to write unique code for that environment. Have you got a great way to han...
stackoverflow-qa
# What are some strategies to write python code that works in CPython, Jython and IronPython ## Question Having tries to target two of these environments at the same time I can safely say the if you have to use a database etc. you end up having to write unique code for that environment. Have you got a great way to han...
stackoverflow-qa
# How do i generate a histogram for a given probability distribution (for functional testing a server)? ## Question I am trying to automate functional testing of a server using a realistic frequency distribution of requests. (sort of load testing, sort of simulation) I've chosen the Weibull distribution as it "sort o...
stackoverflow-qa
# How do i generate a histogram for a given probability distribution (for functional testing a server)? ## Question I am trying to automate functional testing of a server using a realistic frequency distribution of requests. (sort of load testing, sort of simulation) I've chosen the Weibull distribution as it "sort o...
stackoverflow-qa
# How do i generate a histogram for a given probability distribution (for functional testing a server)? ## Question I am trying to automate functional testing of a server using a realistic frequency distribution of requests. (sort of load testing, sort of simulation) I've chosen the Weibull distribution as it "sort o...
stackoverflow-qa
# Any good AJAX framework for Google App Engine apps? ## Question I am trying to implement AJAX in my Google App Engine application, and so I am looking for a good AJAX framework that will help me. Anyone has any idea? I am thinking about Google Web Toolkit, how good it is in terms of creating AJAX for Google App Eng...
stackoverflow-qa
# Any good AJAX framework for Google App Engine apps? ## Question I am trying to implement AJAX in my Google App Engine application, and so I am looking for a good AJAX framework that will help me. Anyone has any idea? I am thinking about Google Web Toolkit, how good it is in terms of creating AJAX for Google App Eng...
stackoverflow-qa
# Any good AJAX framework for Google App Engine apps? ## Question I am trying to implement AJAX in my Google App Engine application, and so I am looking for a good AJAX framework that will help me. Anyone has any idea? I am thinking about Google Web Toolkit, how good it is in terms of creating AJAX for Google App Eng...
stackoverflow-qa
# Any good AJAX framework for Google App Engine apps? ## Question I am trying to implement AJAX in my Google App Engine application, and so I am looking for a good AJAX framework that will help me. Anyone has any idea? I am thinking about Google Web Toolkit, how good it is in terms of creating AJAX for Google App Eng...
stackoverflow-qa
# Any good AJAX framework for Google App Engine apps? ## Question I am trying to implement AJAX in my Google App Engine application, and so I am looking for a good AJAX framework that will help me. Anyone has any idea? I am thinking about Google Web Toolkit, how good it is in terms of creating AJAX for Google App Eng...
stackoverflow-qa
# Any good AJAX framework for Google App Engine apps? ## Question I am trying to implement AJAX in my Google App Engine application, and so I am looking for a good AJAX framework that will help me. Anyone has any idea? I am thinking about Google Web Toolkit, how good it is in terms of creating AJAX for Google App Eng...
stackoverflow-qa
# Any good AJAX framework for Google App Engine apps? ## Question I am trying to implement AJAX in my Google App Engine application, and so I am looking for a good AJAX framework that will help me. Anyone has any idea? I am thinking about Google Web Toolkit, how good it is in terms of creating AJAX for Google App Eng...
stackoverflow-qa
# Any good AJAX framework for Google App Engine apps? ## Question I am trying to implement AJAX in my Google App Engine application, and so I am looking for a good AJAX framework that will help me. Anyone has any idea? I am thinking about Google Web Toolkit, how good it is in terms of creating AJAX for Google App Eng...
stackoverflow-qa
# Any good AJAX framework for Google App Engine apps? ## Question I am trying to implement AJAX in my Google App Engine application, and so I am looking for a good AJAX framework that will help me. Anyone has any idea? I am thinking about Google Web Toolkit, how good it is in terms of creating AJAX for Google App Eng...
stackoverflow-qa
# What is the difference between old style and new style classes in Python? ## Question What is the difference between old style and new style classes in Python? Is there ever a reason to use old-style classes these days? ## Answer From http://docs.python.org/2/reference/datamodel.html#new-style-and-classic-classes ...
stackoverflow-qa
# What is the difference between old style and new style classes in Python? ## Question What is the difference between old style and new style classes in Python? Is there ever a reason to use old-style classes these days? ## Answer Or rather, you should always use new-style classes, unless you have code that needs t...
stackoverflow-qa
# What is the difference between old style and new style classes in Python? ## Question What is the difference between old style and new style classes in Python? Is there ever a reason to use old-style classes these days? ## Answer New-style classes inherit from object and must be written as such in Python 2.2 onwar...
stackoverflow-qa