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 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 came up with in

Re: Server programming

2009-03-03 Thread koranthala
On Feb 24, 1:02 am, Bruno Desthuilliers 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 > > complex web program (e

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 wrote: > - Show quoted text - > On Mon, Mar 2, 2009 at 9:18 PM, William Heath 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 windows executable while it i

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. http://pypi.python.org/pypi?:action=browse&c=533&

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 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. I'd recommend

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 http:

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

2009-03-03 Thread odeits
On Mar 3, 12:07 am, Andre Engels wrote: > On Tue, Mar 3, 2009 at 7:35 AM, Hyunchul Kim 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 e

Re: Characters aren't displayed correctly

2009-03-03 Thread Hussein B
On Mar 2, 5:40 pm, John Machin wrote: > On Mar 3, 1:50 am, Hussein B wrote: > > > > > On Mar 2, 4:31 pm, John Machin wrote:> On Mar 2, > > 7:30 pm, Hussein B wrote: > > > > > On Mar 1, 4:51 pm, Philip Semanchuk wrote: > > > > > > On Mar 1, 2009, at 8:31 AM, Hussein B wrote: > > > > > > > Hey,

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 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. Since you'

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 n

Re: HTTPError... read the response body?

2009-03-03 Thread Stuart Davenport
On Mar 2, 11:50 pm, Wojtek Walczak 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 can rea

Re: Characters aren't displayed correctly

2009-03-03 Thread Hussein B
On Mar 3, 11:05 am, Hussein B wrote: > On Mar 2, 5:40 pm, John Machin wrote: > > > > > On Mar 3, 1:50 am, Hussein B wrote: > > > > On Mar 2, 4:31 pm, John Machin wrote:> On Mar 2, > > > 7:30 pm, Hussein B wrote: > > > > > > On Mar 1, 4:51 pm, Philip Semanchuk wrote: > > > > > > > On Mar 1, 2

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) pickle.dump(res3.total_resul

Re: Upgrade Python on a Mac

2009-03-03 Thread Graham Dumpleton
On Mar 3, 8:53 am, Rey Bango 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 image installe

[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 engine.

Re: Characters aren't displayed correctly

2009-03-03 Thread John Machin
On Mar 3, 8:49 pm, Hussein B wrote: > On Mar 3, 11:05 am, Hussein B wrote: > > > > > On Mar 2, 5:40 pm, John Machin wrote: > > > > On Mar 3, 1:50 am, Hussein B wrote: > > > > > On Mar 2, 4:31 pm, John Machin wrote:> On Mar 2, > > > > 7:30 pm, Hussein B wrote: > > > > > > > On Mar 1, 4:51 pm,

Re: HTTPError... read the response body?

2009-03-03 Thread Diez B. Roggisch
Stuart Davenport schrieb: On Mar 2, 11:50 pm, Wojtek Walczak 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 anyw

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 a

Re: Pickle Problem

2009-03-03 Thread Chris Rebert
On Tue, Mar 3, 2009 at 1:52 AM, Fab86 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) > pickle.dump

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 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 must double it when

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) > So the question is: How is the magic function called which returns me the bound method of a c

Re: Pickle Problem

2009-03-03 Thread Fab86
On Mar 3, 10:34 am, Chris Rebert wrote: > On Tue, Mar 3, 2009 at 1:52 AM, Fab86 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') > > > pickl

Re: Get bound method by name

2009-03-03 Thread Chris Rebert
On Tue, Mar 3, 2009 at 3:12 AM, 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") getattr() is the function you se

Re: Get bound method by name

2009-03-03 Thread John Machin
On Mar 3, 10:12 pm, 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) > > > > So the question is: How

Re: Characters aren't displayed correctly

2009-03-03 Thread Hussein B
On Mar 3, 12:21 pm, John Machin wrote: > On Mar 3, 8:49 pm, Hussein B wrote: > > > > > On Mar 3, 11:05 am, Hussein B wrote: > > > > On Mar 2, 5:40 pm, John Machin wrote: > > > > > On Mar 3, 1:50 am, Hussein B wrote: > > > > > > On Mar 2, 4:31 pm, John Machin wrote:> On Mar > > > > > 2, 7:30 

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) > So the question is: How is the magic function called which returns me

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

2009-03-03 Thread odeits
On Mar 2, 11:26 pm, Hyunchul Kim wrote: > Dear Odeits, > > Yes, I meant directly connected to each other. > > Thanks. > > Hyunchul > > odeits wrote: > > On Mar 2, 10:35 pm, Hyunchul Kim wrote: > > >> Hi, all, > > >> How can I find all "completely connected subgraphs" in a graph when node > >> and

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 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 working fi

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 = open('fil

Re: Characters aren't displayed correctly

2009-03-03 Thread John Machin
On Mar 3, 10:22 pm, Hussein B 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 did

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'

Re: RichCompare and RichCompareBool

2009-03-03 Thread Gabriel Genellina
En Tue, 03 Mar 2009 04:42:02 -0200, Aaron Brady 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 miss anything) -

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" 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 this? > > no.

Re: Characters aren't displayed correctly

2009-03-03 Thread Hussein B
On Mar 3, 1:54 pm, John Machin wrote: > On Mar 3, 10:22 pm, Hussein B 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

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', 'L

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

Re: Pickle Problem

2009-03-03 Thread odeits
On Mar 3, 4:16 am, Fab86 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, res1.total_results_available"

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_availa

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 total

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 MySQL-

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 wit

Re: Pickle Problem

2009-03-03 Thread Fab86
On Mar 3, 1:02 pm, MRAB 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 = srch2

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 beh

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 wrote: > I have a Python web client that uses urllib2.  It is easy enough to > add my own HTTP headers to the outgoing requests. I just create

Re: Newbie - pass variable to cscript

2009-03-03 Thread Gabriel Genellina
En Tue, 03 Mar 2009 12:19:22 -0200, 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 Genellina -- http://

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 muc

Re: Newbie - pass variable to cscript

2009-03-03 Thread plsullivan1
On Mar 3, 10:07 am, "Gabriel Genellina" wrote: > En Tue, 03 Mar 2009 12:19:22 -0200, 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. Tha

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 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: > > test = {'na

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, escribió: On Mar 3, 10:07 am, "Gabriel Genellina" wrote: En Tue, 03 Mar 2009 12:19:22 -0200, 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

Re: getting all HTTP headers from urllib2 Request?

2009-03-03 Thread Gabriel Genellina
En Tue, 03 Mar 2009 13:44:12 -0200, cgoldberg 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 headers that are produced

Re: easy_install with MySQL-python

2009-03-03 Thread Mike Driscoll
On Mar 3, 7:44 am, Ske 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 > specified" message. Fu

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 -- http://mail.python.org/mailman/listinfo/pyth

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 escribió: On Mar 3, 1:01 pm, Loredana 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()

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" 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 kind of c

[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 strings... My script runs in China, and I receive requests coded in both "utf-8" and "gb18030" encoding...

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

2009-03-03 Thread Ed Singleton
On Feb 28, 5:54 pm, Lie Ryan 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 to fake a

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 w

Re: Indentifying types?

2009-03-03 Thread Mike Driscoll
On Mar 3, 10:57 am, Oltmans 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 if someth

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 an

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: http://groups.google

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 an

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: > > > > > > > > >

Re: how to manage CLOB type with cx_oracle

2009-03-03 Thread Loredana
On Mar 3, 5:12 pm, "Gabriel Genellina" wrote: > En Tue, 03 Mar 2009 13:33:19 -0200, Loredana   > escribió: > > > > > > > On Mar 3, 1:01 pm, Loredana wrote: > >> Hi, > > >> I need to read CLOB field type (it is long text) > > >> if I use this code: > > >> curs.execute(sqlstr) > >> rows['name_of_c

Re: Server programming

2009-03-03 Thread koranthala
On Mar 3, 8:09 pm, Bruno Desthuilliers 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 > > development, I am unable to do s

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 escribió: I try this code and it works: curs.execute(sqlstr) for rows in curs: for col in rows: try: print col.read() except: print col onother q

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 an

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. I

Re: Indentifying types?

2009-03-03 Thread Gabriel Genellina
En Tue, 03 Mar 2009 14:57:29 -0200, Oltmans 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 to make sure if somethin

Re: Indentifying types?

2009-03-03 Thread Chris Rebert
On Tue, Mar 3, 2009 at 9:03 AM, Mike Driscoll wrote: > - Show quoted text - > On Mar 3, 10:57 am, Oltmans 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

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 an

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 co

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 wrote: > On Mon, 2 Mar 2009 16:56:58 -0800 (PST), Nick Mellor > declaimed the following in >> >>     def __init(self): >>         self.forename = RandomName("h:\\Testing\\NameDb\ >> \Forenames.csv", namefield = "Forename") > >        Where is "Ran

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 so

Re: Indentifying types?

2009-03-03 Thread Mike Driscoll
On Mar 3, 11:44 am, Chris Rebert wrote: > On Tue, Mar 3, 2009 at 9:03 AM, Mike Driscoll wrote: > > - Show quoted text - > > On Mar 3, 10:57 am, Oltmans wrote: > >> I'm reading from a file that contains text like > > >> > >> 5 > >> google_company > >> apple_fruit > >> pencil_object > >> 4 >

Re: Perl-python regex-performance comparison

2009-03-03 Thread Chris Rebert
On Tue, Mar 3, 2009 at 9:05 AM, Ivan 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 a

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: > http://www.google.com/tr

Re: Pickle Problem

2009-03-03 Thread Gabriel Genellina
En Tue, 03 Mar 2009 16:39:43 -0200, Fab86 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 would be to include a

Re: Pickle Problem

2009-03-03 Thread Fab86
On Mar 3, 6:48 pm, "Gabriel Genellina" wrote: > En Tue, 03 Mar 2009 16:39:43 -0200, Fab86 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 in

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" 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 pseudo statement like th

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 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 found per

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. http://pypi.python.org/pypi

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 prop

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

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 federal

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 federal

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 federal

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 federal

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 federal

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 : > > 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 = cd

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 ex

Re: qt, gtk, wx for py3 ?

2009-03-03 Thread Mike Driscoll
On Mar 3, 1:15 pm, Scott David Daniels 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 Qt, Gtk and

Re: Perl / python regex / performance comparison

2009-03-03 Thread Ciprian Dorin, Craciun
On Tue, Mar 3, 2009 at 7:03 PM, Ivan 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 a

  1   2   >