[ANN] pysqlite 2.5.2

2009-03-03 Thread Gerhard Häring
pysqlite 2.5.2 released === Release focus: minor bugfixes, minor new features. pysqlite is a DB-API 2.0-compliant database interface for SQLite. SQLite is a in-process library that implements a self-contained, serverless, zero-configuration, transactional SQL database

Re: how to find all completely connected sub-graphs?

2009-03-03 Thread Andre Engels
On Tue, Mar 3, 2009 at 7:35 AM, Hyunchul Kim sun...@sfc.keio.ac.jp wrote: How can I find all completely connected subgraphs in a graph when node and edge data are available? completely connected subgraph is a group, all members of which are connected to each other. Here is an algorithm I

Re: Server programming

2009-03-03 Thread koranthala
On Feb 24, 1:02 am, Bruno Desthuilliers bdesth.quelquech...@free.quelquepart.fr wrote: koranthalaa écrit : Hi,       Is server programming in Python procedure oriented or object oriented? It's how you want it to be.       I have this question because lately I am asked to make a medium

Re: py2exe automatic upgrades of a program while it is running, is that possible?

2009-03-03 Thread Patrick Mullen
On Mon, Mar 2, 2009 at 6:56 PM, Maxim Khitrov mkhit...@gmail.com wrote: - Show quoted text - On Mon, Mar 2, 2009 at 9:18 PM, William Heath wghe...@gmail.com wrote: Hi All, I am using py2exe to create a windows executable.  I am curious if anyone knows a way to automatically upgrade a py2exe

qt, gtk, wx for py3 ?

2009-03-03 Thread Peter Billam
I've been trying (newbie warning still on) tkinter with python3.0, and I'm getting to that stage where I'm beginning to think there must be a better a way to do this... But I'm unsure if the big names Qt, Gtk and Wx are available for Py3 yet - e.g.

Re: Upgrade Python on a Mac

2009-03-03 Thread Diez B. Roggisch
Wes James schrieb: On Mon, Mar 2, 2009 at 2:53 PM, Rey Bango reyba...@gmail.com wrote: Hi, I'd like to upgrade the installed version of Python that came standard on OS X (Leopard) with either 2.6.1 or 3.0.1. Before I stick my foot in it, I just wanted to get a better understanding of the

Re: yaml for persistence

2009-03-03 Thread Diez B. Roggisch
Paul schrieb: class User(object): def __init__(self, uid): self.uid = uid self.__dict__.update(yaml.load(str('uid')+'.yaml')) def save(self): f=open(str(self.uid)+'.yaml') yaml.dump(self.__dict__, f) is there a better way to persist using Yaml Paul

Re: how to find all completely connected sub-graphs?

2009-03-03 Thread odeits
On Mar 3, 12:07 am, Andre Engels andreeng...@gmail.com wrote: On Tue, Mar 3, 2009 at 7:35 AM, Hyunchul Kim sun...@sfc.keio.ac.jp wrote: How can I find all completely connected subgraphs in a graph when node and edge data are available? completely connected subgraph is a group, all members

Re: Characters aren't displayed correctly

2009-03-03 Thread Hussein B
On Mar 2, 5:40 pm, John Machin sjmac...@lexicon.net wrote: On Mar 3, 1:50 am, Hussein B hubaghd...@gmail.com wrote: On Mar 2, 4:31 pm, John Machin sjmac...@lexicon.net wrote: On Mar 2, 7:30 pm, Hussein B hubaghd...@gmail.com wrote: On Mar 1, 4:51 pm, Philip Semanchuk

Re: how to find all completely connected sub-graphs?

2009-03-03 Thread wwwayne
Hi Hyunchul, On Tue, 03 Mar 2009 15:35:11 +0900, Hyunchul Kim sun...@sfc.keio.ac.jp wrote: Hi, all, How can I find all completely connected subgraphs in a graph when node and edge data are available? completely connected subgraph is a group, all members of which are connected to each other.

Re: how to find all completely connected sub-graphs?

2009-03-03 Thread andrew cooke
if you mean strongly connected components then see http://en.wikipedia.org/wiki/Strongly_connected_component. there is no need to invent a solution; standard methods already exist. andrew Hyunchul Kim wrote: Hi, all, How can I find all completely connected subgraphs in a graph when node

Re: HTTPError... read the response body?

2009-03-03 Thread Stuart Davenport
On Mar 2, 11:50 pm, Wojtek Walczak gmin...@bzt.bzt wrote: On Mon, 2 Mar 2009 14:29:12 -0800 (PST), Stuart Davenport wrote: Hi, I am trying to connect to a web service but I am getting HTTP 400, I am not too concerned about the HTTP error - but what I'd like to know if there is anyway I

Re: Characters aren't displayed correctly

2009-03-03 Thread Hussein B
On Mar 3, 11:05 am, Hussein B hubaghd...@gmail.com wrote: On Mar 2, 5:40 pm, John Machin sjmac...@lexicon.net wrote: On Mar 3, 1:50 am, Hussein B hubaghd...@gmail.com wrote: On Mar 2, 4:31 pm, John Machin sjmac...@lexicon.net wrote: On Mar 2, 7:30 pm, Hussein B hubaghd...@gmail.com

Pickle Problem

2009-03-03 Thread Fab86
Hello, I am new to using Python and am looking at exporting some of my code into a seperate document. The code I am using for the pickle is: file = open('testdoc.txt', 'w') pickle.dump(res1.total_results_available,file) pickle.dump(res2.total_results_available,file)

Re: Upgrade Python on a Mac

2009-03-03 Thread Graham Dumpleton
On Mar 3, 8:53 am, Rey Bango reyba...@gmail.com wrote: Hi, I'd like to upgrade the installed version of Python that came standard on OS X (Leopard) with either 2.6.1 or 3.0.1. Before I stick my foot in it, I just wanted to get a better understanding of the process. If I download the disk

[ANN] pysqlite 2.5.2

2009-03-03 Thread Gerhard Häring
pysqlite 2.5.2 released === Release focus: minor bugfixes, minor new features. pysqlite is a DB-API 2.0-compliant database interface for SQLite. SQLite is a in-process library that implements a self-contained, serverless, zero-configuration, transactional SQL database

Re: Characters aren't displayed correctly

2009-03-03 Thread John Machin
On Mar 3, 8:49 pm, Hussein B hubaghd...@gmail.com wrote: On Mar 3, 11:05 am, Hussein B hubaghd...@gmail.com wrote: On Mar 2, 5:40 pm, John Machin sjmac...@lexicon.net wrote: On Mar 3, 1:50 am, Hussein B hubaghd...@gmail.com wrote: On Mar 2, 4:31 pm, John Machin sjmac...@lexicon.net

Re: HTTPError... read the response body?

2009-03-03 Thread Diez B. Roggisch
Stuart Davenport schrieb: On Mar 2, 11:50 pm, Wojtek Walczak gmin...@bzt.bzt wrote: On Mon, 2 Mar 2009 14:29:12 -0800 (PST), Stuart Davenport wrote: Hi, I am trying to connect to a web service but I am getting HTTP 400, I am not too concerned about the HTTP error - but what I'd like to know

Touchscreen GUI for PyKaraoke - Job in London

2009-03-03 Thread alext
Hi, I am looking for someone to write a touchscreen GUI for PyKaraoke (http://www.kibosh.org/pykaraoke/). Looking for someone based in or around London with a lot of experience of Python and Linux who willl be able to complete this project quickly. Knowledge of sound and video processing on Linux

Re: Pickle Problem

2009-03-03 Thread Chris Rebert
On Tue, Mar 3, 2009 at 1:52 AM, Fab86 fabien.h...@gmail.com wrote: Hello, I am new to using Python and am looking at exporting some of my code into a seperate document. The code I am using for the pickle is: file = open('testdoc.txt', 'w') pickle.dump(res1.total_results_available,file)

Re: New User - Using tutorial and Docs - POST returns 302 Found

2009-03-03 Thread Gabriel Genellina
En Tue, 03 Mar 2009 04:13:46 -0200, JohnV loftmas...@gmail.com escribió: Thanks for your suggestion, but I am not able to get it to work for me. My original script was: f = open('C:\Users\Owner\Desktop\mydata.txt', 'r') read_data = f.read() f.close() \ is the escape character in Python. You

Get bound method by name

2009-03-03 Thread Johannes Bauer
Hello group, I'm looking for a Python function but have forgotten it's name. Essentially what I want is: class Foo(): def bar(self): pass x = Foo() y = x.MAGIC(bar) print(y) bound method Foo.bar of __main__.Foo instance at 0xb7e11fcc So the question is: How is the magic

Re: Pickle Problem

2009-03-03 Thread Fab86
On Mar 3, 10:34 am, Chris Rebert c...@rebertia.com wrote: On Tue, Mar 3, 2009 at 1:52 AM, Fab86 fabien.h...@gmail.com wrote: Hello, I am new to using Python and am looking at exporting some of my code into a seperate document. The code I am using for the pickle is: file =

Re: Get bound method by name

2009-03-03 Thread Chris Rebert
On Tue, Mar 3, 2009 at 3:12 AM, Johannes Bauer dfnsonfsdu...@gmx.de wrote: Hello group, I'm looking for a Python function but have forgotten it's name. Essentially what I want is: class Foo():        def bar(self):                pass x = Foo() y = x.MAGIC(bar) getattr() is the

Re: Get bound method by name

2009-03-03 Thread John Machin
On Mar 3, 10:12 pm, Johannes Bauer dfnsonfsdu...@gmx.de wrote: Hello group, I'm looking for a Python function but have forgotten it's name. Essentially what I want is: class Foo():         def bar(self):                 pass x = Foo() y = x.MAGIC(bar) print(y) bound method Foo.bar of

Re: Characters aren't displayed correctly

2009-03-03 Thread Hussein B
On Mar 3, 12:21 pm, John Machin sjmac...@lexicon.net wrote: On Mar 3, 8:49 pm, Hussein B hubaghd...@gmail.com wrote: On Mar 3, 11:05 am, Hussein B hubaghd...@gmail.com wrote: On Mar 2, 5:40 pm, John Machin sjmac...@lexicon.net wrote: On Mar 3, 1:50 am, Hussein B hubaghd...@gmail.com

Re: Get bound method by name

2009-03-03 Thread Graham Breed
Johannes Bauer wrote: Hello group, I'm looking for a Python function but have forgotten it's name. Essentially what I want is: class Foo(): def bar(self): pass x = Foo() y = x.MAGIC(bar) print(y) bound method Foo.bar of __main__.Foo instance at 0xb7e11fcc So the

Re: how to find all completely connected sub-graphs?

2009-03-03 Thread odeits
On Mar 2, 11:26 pm, Hyunchul Kim sun...@sfc.keio.ac.jp wrote: Dear Odeits, Yes, I meant directly connected to each other. Thanks. Hyunchul odeits wrote: On Mar 2, 10:35 pm, Hyunchul Kim sun...@sfc.keio.ac.jp wrote: Hi, all, How can I find all completely connected subgraphs in a

yaml for persistence

2009-03-03 Thread Paul
class User(object): def __init__(self, uid): self.uid = uid self.__dict__.update(yaml.load(str('uid')+'.yaml')) def save(self): f=open(str(self.uid)+'.yaml') yaml.dump(self.__dict__, f) is there a better way to persist using Yaml Paul http://bidegg.com --

Re: removing duplication from a huge list.

2009-03-03 Thread bearophileHUGS
odeits: Although this is true, that is more of an answer to the question How do i remove duplicates from a huge list in Unix?. Don't you like cygwin? Bye, bearophile -- http://mail.python.org/mailman/listinfo/python-list

Re: Pickle Problem

2009-03-03 Thread Hrvoje Niksic
Fab86 fabien.h...@gmail.com writes: when trying to pickle them they are displayed like this: I14 .I15200 .I86000 . But in console simply printing these attributes I get: 14 15200 86000 Can anyone help? Can you describe the problem in some detail? Everything seems to be

Re: Pickle Problem

2009-03-03 Thread andrew cooke
Fab86 wrote: I am wanting to store the integers in a file so that I can then run it through some software without having to edit it. Will json enable me to do this? no. ignore json - it is for something else entirely. all you need to do is to write the numbers out to a file: f =

Re: Characters aren't displayed correctly

2009-03-03 Thread John Machin
On Mar 3, 10:22 pm, Hussein B hubaghd...@gmail.com wrote: Hey, I added use_unicode and charset keyword params to the connect() method Hey, that was a brilliant idea -- I was just about to ask you to try  use_unicode=True, charset=utf8 ... what were the actual values that you used? I

Re: Pickle Problem

2009-03-03 Thread andrew cooke
maybe the following are simpler as they use print if you are using python 2.6 or python 3: from __future__ import print_function f = open('myfile.txt', 'w') print(123, file=f) print(456, file=f) f.close() alternatively, in python 2.5 or 2.6: f = open('myfile.txt', 'w') print f, 123

Re: RichCompare and RichCompareBool

2009-03-03 Thread Gabriel Genellina
En Tue, 03 Mar 2009 04:42:02 -0200, Aaron Brady castiro...@gmail.com escribió: Also, did not receive Gabriel's post. That's because I replied a month ago - and probably you had no idea what I was talking about by that time. (Sorry, I inadvertedly set the clock one month back. You didn't

Re: Pickle Problem

2009-03-03 Thread Fab86
Fantastic, just what I was looking for Andrew. Many thanks, Fabien On Mar 3, 11:50 am, andrew cooke and...@acooke.org wrote: Fab86 wrote: I am wanting to store the integers in a file so that I can then run it through some software without having to edit it. Will json enable me to do

Re: Characters aren't displayed correctly

2009-03-03 Thread Hussein B
On Mar 3, 1:54 pm, John Machin sjmac...@lexicon.net wrote: On Mar 3, 10:22 pm, Hussein B hubaghd...@gmail.com wrote: Hey, I added use_unicode and charset keyword params to the connect() method Hey, that was a brilliant idea -- I was just about to ask you to try  use_unicode=True,

how to manage CLOB type with cx_oracle

2009-03-03 Thread Loredana
Hi, I need to read CLOB field type (it is long text) if I use this code: curs.execute(sqlstr) rows['name_of_columns'] = name_of_columns rows['data'] = curs.fetchall() it returns me this values: test = {'name_of_columns': ['FILENAME', 'CRONTIME', 'SHORT_TAIL',

Re: Pickle Problem

2009-03-03 Thread Fab86
Thanks, this seems like a simpler way to do it. I plan on recording 200 values to this file from the outcome of 200 Yahoo searches. Is there any type of loop I can make to do this or do I have to have a line like print f, res1.total_results_available 200 times? Regards, Fabien On Mar 3, 12:00 

Re: Pickle Problem

2009-03-03 Thread odeits
On Mar 3, 4:16 am, Fab86 fabien.h...@gmail.com wrote: Thanks, this seems like a simpler way to do it. I plan on recording 200 values to this file from the outcome of 200 Yahoo searches. Is there any type of loop I can make to do this or do I have to have a line like print f,

Re: Pickle Problem

2009-03-03 Thread Fab86
I am getting res1 and res2 etc from this code: srch1 = WebSearch(app_id=YahooKey) srch1.query = avoir site:.al res1 = srch1.parse_results() srch2 = WebSearch(app_id=YahooKey) srch2.query = avoir site:.fr res2 = srch2.parse_results() After identifying res1, I then use the total_results_available

Re: Pickle Problem

2009-03-03 Thread MRAB
Fab86 wrote: I am getting res1 and res2 etc from this code: srch1 = WebSearch(app_id=YahooKey) srch1.query = avoir site:.al res1 = srch1.parse_results() srch2 = WebSearch(app_id=YahooKey) srch2.query = avoir site:.fr res2 = srch2.parse_results() After identifying res1, I then use the

easy_install with MySQL-python

2009-03-03 Thread Ske
Let me apologise in advance if I’m missing something obvious, I’m still very new to this! I’m attempting to install MySQL-python in Python2.6 on Windows. On running easy_install MySQL-python I get a The system cannot find the file specified message. Full output is below: Searching for

Standard CRUD

2009-03-03 Thread timmyt
my buddy and i have created a Standard CRUD (SCRUD) spec that we'd like to use across projects and frameworks before we get totally dependent on the pattern, I want to make sure there's not some better solution out there, or some ideas that will improve the design below is the spec we came up

Re: Pickle Problem

2009-03-03 Thread Fab86
On Mar 3, 1:02 pm, MRAB goo...@mrabarnett.plus.com wrote: Fab86 wrote: I am getting res1 and res2 etc from this code: srch1 = WebSearch(app_id=YahooKey) srch1.query = avoir site:.al res1 = srch1.parse_results() srch2 = WebSearch(app_id=YahooKey) srch2.query = avoir site:.fr res2 =

Newbie - pass variable to cscript

2009-03-03 Thread plsullivan1
import os os.system('cscript.exe /from:wrk-...@zzz.gov /to:plsulli...@zzz.gov' C:\\Program Files\\nasa\\nmail.vbs) nmail.vbs works. I need to make it work from a python script. Thanks. -- http://mail.python.org/mailman/listinfo/python-list

RE: file locking...

2009-03-03 Thread bruce
Hi Dennis... Thanks for the reply... Here's my solution up to now.. might change in the future... The problem: App has a bunch of clients that need to get a separate/unique list of files from a master server app. The files are created by the master server process, and reside on the filesystem

Re: getting all HTTP headers from urllib2 Request?

2009-03-03 Thread zdxerr
I didn't try it, but the Request Class from urllib2 has a method called, header_items(). That could be what your looking for. On Mar 3, 1:38 am, cgoldberg cgoldb...@gmail.com wrote: I have a Python web client that uses urllib2.  It is easy enough to add my own HTTP headers to the outgoing

Re: Newbie - pass variable to cscript

2009-03-03 Thread Gabriel Genellina
En Tue, 03 Mar 2009 12:19:22 -0200, plsulliv...@gmail.com escribió: import os os.system('cscript.exe /from:wrk-...@zzz.gov /to:plsulli...@zzz.gov' C:\\Program Files\\nasa\\nmail.vbs) nmail.vbs works. I need to make it work from a python script. Thanks. ...and the problem is...? -- Gabriel

Re: Server programming

2009-03-03 Thread Bruno Desthuilliers
koranthala a écrit : (snip) Hi Bruno, After reading your email, I tried reworking my code so that most of my logic moves to Models. But, most probably because this is my first application development, I am unable to do so. For example: I have Models A,B, C, D . Now, there is not

Re: Newbie - pass variable to cscript

2009-03-03 Thread plsullivan1
On Mar 3, 10:07 am, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Tue, 03 Mar 2009 12:19:22 -0200, plsulliv...@gmail.com escribió: import os os.system('cscript.exe /from:wrk-...@zzz.gov /to:plsulli...@zzz.gov' C:\\Program Files\\nasa\\nmail.vbs) nmail.vbs works. I need to make it

Re: Shared library Python on Mac OS X 64-bit

2009-03-03 Thread Uberman
Graham Dumpleton wrote: Why don't you want to use MacOS X Framework libraries? It is the better installation method. Because I'm not installing Python, I'm building it. If I were just interested in installing Python, I wouldn't care whether it was static or shared libraries. This is all very

Re: how to manage CLOB type with cx_oracle

2009-03-03 Thread Loredana
On Mar 3, 1:01 pm, Loredana loredana.p...@gmail.com wrote: Hi, I need to read CLOB field type (it is long text) if I use this code: curs.execute(sqlstr) rows['name_of_columns']     =   name_of_columns rows['data']                         =   curs.fetchall() it returns me this values:

Re: getting all HTTP headers from urllib2 Request?

2009-03-03 Thread cgoldberg
I didn't try it, but the Request Class from urllib2 has a method called, header_items(). That could be what your looking for. yes, that method only shows you all the headers added by urllib2. there are other headers that are produced by httplib under the covers that are added to the outgoing

Re: Newbie - pass variable to cscript

2009-03-03 Thread Gabriel Genellina
En Tue, 03 Mar 2009 13:22:20 -0200, plsulliv...@gmail.com escribió: On Mar 3, 10:07 am, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Tue, 03 Mar 2009 12:19:22 -0200, plsulliv...@gmail.com escribió: import os os.system('cscript.exe /from:wrk-...@zzz.gov /to:plsulli...@zzz.gov'

Re: getting all HTTP headers from urllib2 Request?

2009-03-03 Thread Gabriel Genellina
En Tue, 03 Mar 2009 13:44:12 -0200, cgoldberg cgoldb...@gmail.com escribió: I didn't try it, but the Request Class from urllib2 has a method called, header_items(). That could be what your looking for. yes, that method only shows you all the headers added by urllib2. there are other

Re: easy_install with MySQL-python

2009-03-03 Thread Mike Driscoll
On Mar 3, 7:44 am, Ske calypso-b...@hotmail.com wrote: Let me apologise in advance if I’m missing something obvious, I’m still very new to this! I’m attempting to install MySQL-python in Python2.6 on Windows. On running easy_install MySQL-python I get a The system cannot find the file

Re: getting all HTTP headers from urllib2 Request?

2009-03-03 Thread cgoldberg
Looking at the httplib sources, the only headers it may add are Host,   Accept-Encoding: identity, and Content-Length. those are exactly the headers I want to capture. do you know how to get a hold of them from a request using urllib2. -Corey --

Re: how to manage CLOB type with cx_oracle

2009-03-03 Thread Gabriel Genellina
En Tue, 03 Mar 2009 13:33:19 -0200, Loredana loredana.p...@gmail.com escribió: On Mar 3, 1:01 pm, Loredana loredana.p...@gmail.com wrote: Hi, I need to read CLOB field type (it is long text) if I use this code: curs.execute(sqlstr) rows['name_of_columns']     =   name_of_columns

Re: Shared library Python on Mac OS X 64-bit

2009-03-03 Thread Diez B. Roggisch
Uberman schrieb: Graham Dumpleton wrote: Why don't you want to use MacOS X Framework libraries? It is the better installation method. Because I'm not installing Python, I'm building it. If I were just interested in installing Python, I wouldn't care whether it was static or shared libraries.

Re: siple for in expression

2009-03-03 Thread Mike Driscoll
On Mar 3, 10:05 am, Matko ivastipan...@inet.hr wrote: Hello! Can someone help me to understand the following code: uv_face_mapping = [[0,0,0,0] for f in faces] Thank You very much! Matko from Croatia That looks like a list comprehension. It basically creates a list by iterating over some

[mod_python] Knowing the encoding of the URI

2009-03-03 Thread Daniel Chiaramello
Hello everybody. I am using mod_python, and I am confronted with a problem I don't know how to solve in an elegant way... The problem is that I don't know what is the encoding of the req.unparsed_uri strings... My script runs in China, and I receive requests coded in both utf-8 and

Re: How best to test functions which use date.today

2009-03-03 Thread Ed Singleton
On Feb 28, 5:54 pm, Lie Ryan lie.1...@gmail.com wrote: Yuan HOng wrote: HI, In my project I have several date related methods which I want tested for correctness. The functions use date.today() in several places. Since this could change every time I run the test, I hope to find someway

Indentifying types?

2009-03-03 Thread Oltmans
I'm reading from a file that contains text like 5 google_company apple_fruit pencil_object 4 test_one tst_two When I read the integer 5 I want to make sure it's an integer. Likewise, for strings, I want to make sure if something is indeed a string. So how do I check types in Python? I

Re: Indentifying types?

2009-03-03 Thread Mike Driscoll
On Mar 3, 10:57 am, Oltmans rolf.oltm...@gmail.com wrote: I'm reading from a file that contains text like 5 google_company apple_fruit pencil_object 4 test_one tst_two When I read the integer 5 I want to make sure it's an integer. Likewise, for strings, I want to make sure

Perl / python regex / performance comparison

2009-03-03 Thread Ivan
Hello everyone, I know this is not a direct python question, forgive me for that, but maybe some of you will still be able to help me. I've been told that for my application it would be best to learn a scripting language, so I looked around and found perl and python to be the nice. Their syntax

Python-URL! - weekly Python news and links (Mar 3)

2009-03-03 Thread Gabriel Genellina
QOTW: A sort of premature pessimization, then. - Steve Holden, in search of an adequate description for a clever indexing scheme http://groups.google.com/group/comp.lang.python/msg/37e7e9e5f9ba6159 Java best coding styles aren't adequate for Python:

Perl-python regex-performance comparison

2009-03-03 Thread Ivan
Hello everyone, I know this is not a direct python question, forgive me for that, but maybe some of you will still be able to help me. I've been told that for my application it would be best to learn a scripting language, so I looked around and found perl and python to be the nice. Their syntax

Re: Jerry Pournelle gives award to Python and Guido for 2008

2009-03-03 Thread Richard Hanson
[Tardy as well as drifting off-topic:] Terry Reedy wrote: Richard Hanson wrote: Jerry Pournelle commends Python and Guido in The Annual Orchid and Onions Parade portion of his Chaos Manor Reviews column: http://www.chaosmanorreviews.com/oa/2009/20090109_col.php [snip] Great

Re: how to manage CLOB type with cx_oracle

2009-03-03 Thread Loredana
On Mar 3, 5:12 pm, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Tue, 03 Mar 2009 13:33:19 -0200, Loredana loredana.p...@gmail.com   escribió: On Mar 3, 1:01 pm, Loredana loredana.p...@gmail.com wrote: Hi, I need to read CLOB field type (it is long text) if I use this code:

Re: Server programming

2009-03-03 Thread koranthala
On Mar 3, 8:09 pm, Bruno Desthuilliers bruno. 42.desthuilli...@websiteburo.invalid wrote: koranthala a écrit : (snip) Hi Bruno,    After reading your email, I tried reworking my code so that most of my logic moves to Models.    But, most probably because this is my first application

Re: how to manage CLOB type with cx_oracle

2009-03-03 Thread Gabriel Genellina
En Tue, 03 Mar 2009 15:23:38 -0200, Loredana loredana.p...@gmail.com escribió: I try this code and it works: curs.execute(sqlstr) for rows in curs: for col in rows: try: print col.read() except:

Perl-python regex-performance comparison

2009-03-03 Thread Ivan
Hello everyone, I know this is not a direct python question, forgive me for that, but maybe some of you will still be able to help me. I've been told that for my application it would be best to learn a scripting language, so I looked around and found perl and python to be the nice. Their syntax

Re: Perl-python regex-performance comparison

2009-03-03 Thread Tino Wildenhain
Ivan wrote: Hello everyone, ... 1. Although it is all relatively similar, there are differences between regexes of these two. Which do you believe is the more powerful variant (maybe an example) ? 2. They are both interpreted languages, and I can't really be sure how they measure in speed.

Re: Indentifying types?

2009-03-03 Thread Gabriel Genellina
En Tue, 03 Mar 2009 14:57:29 -0200, Oltmans rolf.oltm...@gmail.com escribió: I'm reading from a file that contains text like 5 google_company apple_fruit pencil_object 4 test_one tst_two When I read the integer 5 I want to make sure it's an integer. Likewise, for strings, I want

Re: Indentifying types?

2009-03-03 Thread Chris Rebert
On Tue, Mar 3, 2009 at 9:03 AM, Mike Driscoll kyoso...@gmail.com wrote: - Show quoted text - On Mar 3, 10:57 am, Oltmans rolf.oltm...@gmail.com wrote: I'm reading from a file that contains text like 5 google_company apple_fruit pencil_object 4 test_one tst_two When I read

Perl python - regex performance comparison

2009-03-03 Thread Ivan
Hello everyone, I know this is not a direct python question, forgive me for that, but maybe some of you will still be able to help me. I've been told that for my application it would be best to learn a scripting language, so I looked around and found perl and python to be the nice. Their syntax

Re: Indentifying types?

2009-03-03 Thread andrew cooke
either will work for what you want. people in the python list prefer python. you only have to post a question once. this gives an idea of the relative popularity and trends: http://www.google.com/trends?q=python+language%2C+perl+language andrew Oltmans wrote: I'm reading from a file that

Re: getting all HTTP headers from urllib2 Request?

2009-03-03 Thread cgoldberg
Looking at the httplib sources, the only headers it may add are Host,   Accept-Encoding: identity, and Content-Length. now that I think of it, if it is only 3 headers, I can just override them explicitly from urllib2 and then log that. thanks a lot for looking into the httplib source!

Re: Attribute error-- but I'm innocent(?)

2009-03-03 Thread Denis Kasak
On Tue, Mar 3, 2009 at 6:13 AM, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: On Mon, 2 Mar 2009 16:56:58 -0800 (PST), Nick Mellor nick.mellor.gro...@pobox.com declaimed the following in     def __init(self):         self.forename = RandomName(h:\\Testing\\NameDb\ \Forenames.csv, namefield

Re: Python 3D CAD -- need collaborators, or just brave souls :)

2009-03-03 Thread dazaster59
I am interested in the possibilities of a CAD system built on top of a computer algebra system. I would be willing to contribute implementations of your entities (and associated transforms) using sympy, using the current 2d geometry module as a starting point. For adequate performance it would

Re: Indentifying types?

2009-03-03 Thread Mike Driscoll
On Mar 3, 11:44 am, Chris Rebert c...@rebertia.com wrote: On Tue, Mar 3, 2009 at 9:03 AM, Mike Driscoll kyoso...@gmail.com wrote: - Show quoted text - On Mar 3, 10:57 am, Oltmans rolf.oltm...@gmail.com wrote: I'm reading from a file that contains text like 5 google_company

Re: Perl-python regex-performance comparison

2009-03-03 Thread Chris Rebert
On Tue, Mar 3, 2009 at 9:05 AM, Ivan i...@invalid.net wrote: Hello everyone, I know this is not a direct python question, forgive me for that, but maybe some of you will still be able to help me. I've been told that for my application it would be best to learn a scripting language, so I

Re: Indentifying types?

2009-03-03 Thread andrew cooke
oh crap. sorry about that - replied to the wrong thread. andrew andrew cooke wrote: either will work for what you want. people in the python list prefer python. you only have to post a question once. this gives an idea of the relative popularity and trends:

Re: Pickle Problem

2009-03-03 Thread Gabriel Genellina
En Tue, 03 Mar 2009 16:39:43 -0200, Fab86 fabien.h...@gmail.com escribió: I am having a bit on an issue getting my program to work. The online database which I am trying to contact keep timing out meaning I can not carry out my 200 searches without being interupted. I believe that the solution

Re: Pickle Problem

2009-03-03 Thread Fab86
On Mar 3, 6:48 pm, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Tue, 03 Mar 2009 16:39:43 -0200, Fab86 fabien.h...@gmail.com escribió: I am having a bit on an issue getting my program to work. The online database which I am trying to contact keep timing out meaning I can not carry

Re: Looking for a General Method to Configure Tkinter Widgets

2009-03-03 Thread W. eWatson
odeits wrote: On Mar 2, 7:14 am, W. eWatson notval...@sbcglobal.net wrote: I'm modifying a Tkinter Python program that uses hard coded initial values for several widgets. For example, latitude = 40. My plan is to put the names and values for configuration purposes into a file. For example, a

A Simple Menu , Stretching the Window Width--Tkinter

2009-03-03 Thread W. eWatson
I'd like to create a simple Menu bar with one item in it, say, called My Menu, and have a few submenu items on it like Change Data and Exit. I can do that but I'd like the title I put on the enclosing window to be completely visible. The title is, for example, Hello, out there. This is a

Re: Perl python - regex performance comparison

2009-03-03 Thread pruebauno
On Mar 3, 12:38 pm, Ivan ivan@@gmail.com wrote: Hello everyone, I know this is not a direct python question, forgive me for that, but maybe some of you will still be able to help me. I've been told that for my application it would be best to learn a scripting language, so I looked around and

Re: qt, gtk, wx for py3 ?

2009-03-03 Thread Scott David Daniels
Peter Billam wrote: I've been trying (newbie warning still on) tkinter with python3.0, and I'm getting to that stage where I'm beginning to think there must be a better a way to do this... But I'm unsure if the big names Qt, Gtk and Wx are available for Py3 yet - e.g.

Wanting to fire an event when property content changes

2009-03-03 Thread nuwandame
What I am wanting to do is execute code whenever a property of a class object has been changed. i.e. class test: testproperty = None bob = test() bob.testproperty = 'something' So, when bob.testproperty is set to a new value I can run code that changes other dependent yet loosly tied

Re: Wanting to fire an event when property content changes

2009-03-03 Thread Albert Hopkins
On Tue, 2009-03-03 at 13:41 -0600, nuwandame wrote: What I am wanting to do is execute code whenever a property of a class object has been changed. i.e. class test: testproperty = None bob = test() bob.testproperty = 'something' So, when bob.testproperty is set to a new

Opening for Python Programmer at Newport Beach

2009-03-03 Thread Cool Dude
Hello , This is Aniket from Techclique, a New Jersey based software development and IT consulting firm providing top quality technical and software professionals on a permanent and contractual basis to Government and commercial customer including fortune 500 companies and most of states and

Opening for Python Programmer at Newport Beach

2009-03-03 Thread Cool Dude
Hello , This is Aniket from Techclique, a New Jersey based software development and IT consulting firm providing top quality technical and software professionals on a permanent and contractual basis to Government and commercial customer including fortune 500 companies and most of states and

Opening for Python Programmer at Newport Beach

2009-03-03 Thread Cool Dude
Hello , This is Aniket from Techclique, a New Jersey based software development and IT consulting firm providing top quality technical and software professionals on a permanent and contractual basis to Government and commercial customer including fortune 500 companies and most of states and

Opening for Python Programmer at Newport Beach

2009-03-03 Thread Cool Dude
Hello , This is Aniket from Techclique, a New Jersey based software development and IT consulting firm providing top quality technical and software professionals on a permanent and contractual basis to Government and commercial customer including fortune 500 companies and most of states and

Opening for Python Programmer at Newport Beach

2009-03-03 Thread Cool Dude
Hello , This is Aniket from Techclique, a New Jersey based software development and IT consulting firm providing top quality technical and software professionals on a permanent and contractual basis to Government and commercial customer including fortune 500 companies and most of states and

Re: Python 2.6.1 urllib error on Mac os x PPC

2009-03-03 Thread ati
On Mon, 2009-03-02 at 13:59 -0800, Ned Deily wrote: Am 2.3.2009 22:59 Uhr schrieb Ned Deily unter n...@acm.org: First, make sure this is the real problem by trying this snippet: /usr/local/test/python/bin/python2.6 from ctypes import cdll from ctypes.util import find_library sc =

RE: A Simple Menu , Stretching the Window Width--Tkinter

2009-03-03 Thread John Posner
I'd like to create a simple Menu bar with one item in it, say, called My Menu, and have a few submenu items on it like Change Data and Exit. I can do that but I'd like the title I put on the enclosing window to be completely visible. The title is, for example, Hello, out

Re: qt, gtk, wx for py3 ?

2009-03-03 Thread Mike Driscoll
On Mar 3, 1:15 pm, Scott David Daniels scott.dani...@acm.org wrote: Peter Billam wrote: I've been trying (newbie warning still on) tkinter with python3.0, and I'm getting to that stage where I'm beginning to think there must be a better a way to do this...  But I'm unsure if the big names

  1   2   3   >