First
|
Prev |
Next
|
Last
Pages: 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115
Tryton 1.6 series is out Tryton is a three-tiers high-level general purpose application platform under the license GPL-3 written in Python and using PostgreSQL as main database engine. It is the core base of a complete business solution providing modularity, scalability and security. This new release comes with the support of MySQL and ... 27 May 2010 17:02
dbf files and indexes Let's say I have two tables: CatLovers DogLovers ------------------- ------------------- | name | age | | name | age | |-----------------| |-----------------| | Allen | 42 | | Alexis | 7 | | Jerod | 29 | | Michael | 21 | | Samuel | 17 | ... 29 May 2010 19:01
matplotlib: show xticks only for discrete times I am plotting data that depends on time and height using pcolor. The data is collected every 30 minutes, so there will be data at 1PM and again at 1:30PM for instance. My question deals with how to get xticks to show up only for time values that actually exist in the dataset. As an example, ticks will curre... 27 May 2010 14:49
Yet Another MySQL Problem On Thu, 2010-05-27 at 08:34 -0400, Victor Subervi wrote: Hi; I have this code: sql = "insert into %s (%s) values ('%%s');" % (personalDataTable, string.join(cols[1:], ', ')) # cursor.execute(sql, string.join(vals[1:], "', '")) cursor.execute('insert into %s (%s) values ("%s");' % (pe... 28 May 2010 12:38
Minor annoyances with properties Hello all, I've been using Python properties quite a lot lately and I've found a few things that are a bit annoying about them in some cases. I wondered if I missed something or if anybody else has this kind of problems too, and if there are better solutions than the ones I'm using ATM. The first annoyance is... 28 May 2010 11:31
if, continuation and indentation I have a question about best practices when it comes to line wrapping/ continuation and indentation, specifically in the case of an if statement. When I write an if statement with many conditions, I prefer to use a parenthesis around the whole block and get the implicit continuation, rather than ending each line... 9 Jun 2010 13:04
type error raise what is the problem with this code? _base={"repeat":False,"string":"Progres has failed","works":True} print _base class dictreturn(_base):pass this error Traceback (most recent call last): File "<string>", line 244, in run_nodebug File "C:\Documents and Settings\Owner\Desktop\Python\assistent new \user\... 27 May 2010 08:09
Fastest way to apply a function to an iterable Shashank Singh, 26.05.2010 21:48: What is the most efficient way of applying a function to all the elements of an iterable while discarding the result (i.e. operations are done only for side-effects). For example if I want to save all elements in a list of items (and am not interested in what save() r... 26 May 2010 18:03
atexit/signal for non-interactive jobs I want to implement clean-up functions for scripts to be run on a Linux cluster (through LSF). The goal is to make sure that a minimal wrap-up sequence (print diagnostic info, flush buffers, etc.) gets executed if the job is terminated for some reason. (The most common reason for premature termination is ... 26 May 2010 19:09
Fetching a gzipped webpage Hi, Here's my attempt at petching a webpage which is gzip encoded - import urllib.request import gzip import io request = urllib.request.Request(url='http://en.wiktionary.org/wiki/ baby',headers={'Accept': 'text/html','User-Agent':'Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit... 26 May 2010 15:47 |