Re: Merging Subway and TurboGears

2005-12-22 Thread Gregory Petrosyan
+1 for Kid -- it's more pythonic IMHO. -- http://mail.python.org/mailman/listinfo/python-list

Re: Please enlighten me about PyPy

2005-12-22 Thread Scott David Daniels
Luis M. González wrote: > At this moment, the traslated python-in-python version is, or intends > to be, something more or less equivalent to Cpython in terms of > performance. Actually, I think here it is more or less equivalent in behavior. > Because it is in essence almost the same thing: ano

Re: jython: True and False boolean literals?

2005-12-22 Thread keirr
[EMAIL PROTECTED] wrote: > Aren't there boolean literals for "True" and "False" in Python >>> True != False True >>> type(True) works for most people :-) All the best, Keir -- http://mail.python.org/mailman/listinfo/python-list

Re: jython: True and False boolean literals?

2005-12-22 Thread keirr
keirr wrote: > [EMAIL PROTECTED] wrote: > > Aren't there boolean literals for "True" and "False" in Python > > >>> True != False > True > >>> type(True) > > > works for most people :-) > Ahem, who use python. For jython this looks like >>> True != False 1 >>> type(True) Keir. -- http://mail.p

Re: Guido at Google

2005-12-22 Thread drew . smathers
And I have around one year to wait for Ruby to get rid of the nasty syntax copied from Perl and make it look as beautiful as Python Then I'll consider switching. ;) Ummm, I'm sorry, did you say clean reflective meta-model??? So this: caller[0] =~ /in `([^']+)'/ ? $1 : '(anonymous)' vs. th

Re: jython: True and False boolean literals?

2005-12-22 Thread Kent Johnson
[EMAIL PROTECTED] wrote: > Aren't there boolean literals for "True" and "False" in Python > (jython)? I can't get "true", "True", "false", or "False" to work. I > ended up having to use "(1==1)" and "(1==0)". No, there are not. Jython implements Python 2.1 which did not have boolean literals. Y

Re: Providing 'default' value with raw_input()?

2005-12-22 Thread Bengt Richter
On 22 Dec 2005 08:55:17 -0800, "planetthoughtful" <[EMAIL PROTECTED]> wrote: >Hi All, > >As always, my posts come with a 'Warning: Newbie lies ahead!' >disclaimer... > >I'm wondering if it's possible, using raw_input(), to provide a >'default' value with the prompt? Sure, depending on what you mea

Re: Providing 'default' value with raw_input()?

2005-12-22 Thread planetthoughtful
Hi Noah, I can't find any mention of a 'raw_default' function. So, lol, yes I'm kind of saying that it would not work for me (well, it won't unless I can find where / how you sources and implemented that function, bearing in mind this will be running on Windows). Many thanks and much warmth, pla

problem adding list values

2005-12-22 Thread David M. Synck
Hi all, I am fairly new to Python and trying to figure out a syntax error concerning lists and iteration through the same. What I am trying to do is sum a list of float values and store the sum in a variable for use later. The relevant code looks like this - def getCredits(): """ This func

Re: jython: True and False boolean literals?

2005-12-22 Thread keirr
Kent Johnson wrote: > [EMAIL PROTECTED] wrote: > > Aren't there boolean literals for "True" and "False" in Python > > (jython)? I can't get "true", "True", "false", or "False" to work. I > > ended up having to use "(1==1)" and "(1==0)". > > No, there are not. Jython implements Python 2.1 which di

serialize object in jython, read into python

2005-12-22 Thread py
I want to serialize an object in jython and then be able to read it in using python, and vice versa. Any suggestions on how to do this? pickle doesnt work, nor does using ObjectOutputStream (from jython). I prefer to do it file based ...something like pickle.dump(someObj, open("output.txt", "w"

Re: jython: True and False boolean literals?

2005-12-22 Thread Bengt Richter
On 22 Dec 2005 10:51:22 -0800, [EMAIL PROTECTED] wrote: >Aren't there boolean literals for "True" and "False" in Python >(jython)? I can't get "true", "True", "false", or "False" to work. I >ended up having to use "(1==1)" and "(1==0)". > You may want to upgrade to a newer version. Regards, Ben

Re: Guido at Google

2005-12-22 Thread Ilias Lazaridis
[EMAIL PROTECTED] wrote: > And I have around one year to wait for Ruby to get rid of the nasty > syntax copied from Perl and make it look as beautiful as Python > Then I'll consider switching. ;) > > Ummm, I'm sorry, did you say clean reflective meta-model??? yes. > So this: > > caller[0]

Re: Is it possible to use python to unit test C++ code?

2005-12-22 Thread Giles Brown
I have used the Python version of this: http://cxxtest.sourceforge.net/ unit testing framework successfully (but not heavily). Hth, Giles Brown -- http://mail.python.org/mailman/listinfo/python-list

Re: problem adding list values

2005-12-22 Thread Gerard Flanagan
David M. Synck wrote: > Hi all, > > I am fairly new to Python and trying to figure out a syntax error > concerning lists and iteration through the same. What I am trying to do is > sum a list of float values and store the sum in a variable for use later. > > The relevant code looks like this - >

Herds of cats (was: Guido at Google)

2005-12-22 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Nicola Musatti <[EMAIL PROTECTED]> wrote: . . . >Ah, the closed source days! Back then you could just buy the company >and be done with it. Now you have to chase developers one by one all >over t

Python's ontology and governance (was: Guido at Google)

2005-12-22 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: . . . >The question is, can anyone just fork a new one using the python name, >as part of the project, without the permission from the foundation ? >Say for example, a

The Varieties of Pythonic Experience (was: Guido at Google)

2005-12-22 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Graham Fawcett <[EMAIL PROTECTED]> wrote: . . . >...though not a lot of forks/variations that have persisted past the >early-alpha phase. Many of those projects are stale or defunct, alas. > >Per

Pydev questions: versions and keybindings

2005-12-22 Thread Kenneth McDonald
I'm trying to find out if I have the most recent version of Pydev for Eclipse installed, but can't find the version number in the Pydev user interface. Is it available anywhere in there? And, the reason that I'm trying to find the most recent update is because I can't redefine one keystroke

Re: Guido at Google

2005-12-22 Thread Thomas Wouters
On Thu, 22 Dec 2005 19:38:12 +0200, Ilias Lazaridis wrote: > As expressed above, I am afraid about pythons evolution-speed and futher > evolution in general. Yet you don't seem to be worried for any (Python) specific reason. Python evolution has known its ups and downs. For instance, back when

Re: UDP socket, need help setting sending port

2005-12-22 Thread Steve Horsley
Sells, Fred wrote: > I'm using MSW XP Pro with Python 2.4 to develop but production will be Linux > with Python 2.3. (could upgrade to 2.4 if absolutely necessary) I can also > switch to Linux for development if necessary. > > I am writing some python to replace proprietary software that talks to

Re: Guido at Google

2005-12-22 Thread Fredrik Lundh
Gary Herron wrote: > So how about it... What's your complaint, what's your solution, and why > should we listen? Nobody will ever know. Check the comp.lang.python/ruby/lisp/etc archives for more. -- http://mail.python.org/mailman/listinfo/python-list

Re: pyUnit and dynamic test functions

2005-12-22 Thread Sakcee
Excellent , your example is elegant and runs beautifully so the idea is to create a testcase which runs a general function "testRun" (which calls the function defined in file )and loads data based on type , add this testcase to suite and run suite. thanks , this is exactly what I was looking for

Re: problem adding list values

2005-12-22 Thread Dave Hansen
On Thu, 22 Dec 2005 19:43:15 GMT in comp.lang.python, "David M. Synck" <[EMAIL PROTECTED]> wrote: [...] >temp = float(raw_input("Please enter the first credit \n")) > >while temp != 0: >credlist.append(temp) >temp = float(raw_input("Please enter the next credit \n")) Here

Re: Please enlighten me about PyPy

2005-12-22 Thread Carl Friedrich Bolz
Hi! Scott David Daniels wrote: > Luis M. González wrote: > > >>At this moment, the traslated python-in-python version is, or intends >>to be, something more or less equivalent to Cpython in terms of >>performance. > > Actually, I think here it is more or less equivalent in behavior. Yes, apart

Re: Providing 'default' value with raw_input()?

2005-12-22 Thread planetthoughtful
Bengt Richter wrote: > On 22 Dec 2005 08:55:17 -0800, "planetthoughtful" <[EMAIL PROTECTED]> wrote: > > >I would like to include the ability to edit an existing value (drawn > >from an SQLite table) using a DOS console Python app, but my gut > >feeling from reading what I can find about raw_input

Re: Providing 'default' value with raw_input()?

2005-12-22 Thread planetthoughtful
Hi Kier, Any idea where I'd find documentation on using this extension? I've downloaded and installed, but haven't had any luck finding docs for it. Much warmth, planetthoughtful -- http://mail.python.org/mailman/listinfo/python-list

Re: problem adding list values

2005-12-22 Thread andy
David M. Synck wrote: >Hi all, > >I am fairly new to Python and trying to figure out a syntax error >concerning lists and iteration through the same. What I am trying to do is >sum a list of float values and store the sum in a variable for use later. > >The relevant code looks like this - > >def

Re: Providing 'default' value with raw_input()?

2005-12-22 Thread keirr
planetthoughtful wrote: > Hi Kier, > > Any idea where I'd find documentation on using this extension? I've > downloaded and installed, but haven't had any luck finding docs for it. > As it's a windows version of the standard readline module (usually available on Unix only) I'd _guess_ that you coul

Re: A simple list question.

2005-12-22 Thread Larry Bates
KraftDiner wrote: > Is there a cleaner way to implement this code? > > if len(self.listOfObjects) == 0: > self.listOfObjects.append(self.currentObject) > elif: > self.listOfObjects[self.currentS

Re: A simple list question.

2005-12-22 Thread Tim Williams (gmail)
On 22 Dec 2005 10:14:10 -0800, KraftDiner <[EMAIL PROTECTED]> wrote: Is there a cleaner way to implement this code?if len(self.listOfObjects) == 0:self.listOfObjects.append(self.currentObject)elif:  

Re: problem adding list values

2005-12-22 Thread mrmakent
Glad to help. Your relevant code: > i = 0 > for i in credlist: > credits += credlist[i] > i = i + 1 credlist is your list of credits, which are floating point numbers. You use a for-loop to iterate thru this list of floating point numbers, so each time thru the loop, the

Re: serialize object in jython, read into python

2005-12-22 Thread Noah
py wrote: > I want to serialize an object in jython and then be able to read it in > using python, and vice versa. > > Any suggestions on how to do this? pickle doesnt work, nor does using > ObjectOutputStream (from jython). > > I prefer to do it file based ...something like > > pickle.dump(someOb

Re: Python's ontology and governance

2005-12-22 Thread Martin v. Löwis
Cameron Laird wrote: > Apart from a few very mild constraints that prohibit you from little > more than saying that you're Guido and you invented Python, you have > remarkable liberty to adapt Python to your own needs. Moreover, this > freedom is not merely a theoretical principle; *numerous* wo

Re: A simple list question.

2005-12-22 Thread Tim Williams (gmail)
On 22/12/05, Tim Williams (gmail) <[EMAIL PROTECTED]> wrote: On 22 Dec 2005 10:14:10 -0800, KraftDiner < [EMAIL PROTECTED]> wrote: Is there a cleaner way to implement this code?if len(self.listOfObjects) == 0:self.listOfObjects.append(self.cur

File object question

2005-12-22 Thread S. D. Rose
Hello all. If I read a binary file: file = open('c:\\logo.gif', 'rw'') # Read from FS as one way to get the object, d/l from website another... file.read() is there anyway I can determine the 'size' of the object file? (Without going to the filesystem and reading the filesize from the directory

Re: Pydev questions: versions and keybindings

2005-12-22 Thread S. D. Rose
Would (Eclipse) Help | About -> [Plug-in Details] | Plug-in Name -> PyDev - Python Development Environment do the trick for you? -Dave "Kenneth McDonald" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm trying to find out if I have the most recent version of Pydev for > Eclipse

Re: File object question

2005-12-22 Thread mrmakent
See http://www.python.org/doc/2.4.2/lib/os-file-dir.html for the 'stat' function import os os.stat(path).st_size This will return the size in bytes of the file designated by 'path'. -- http://mail.python.org/mailman/listinfo/python-list

Re: Guido at Google

2005-12-22 Thread blumberg
lazy bastard -- http://mail.python.org/mailman/listinfo/python-list

Re: serialize object in jython, read into python

2005-12-22 Thread py
Noah wrote: > You can give up on pickle, because pickle is only > guaranteed to work with the exact same version of the Python > interpreter. :( > How complex of a serialization do you need? simple I just wrote the info out to a file. then i have a thread which reads in the files and parses t

Re: serialize object in jython, read into python

2005-12-22 Thread Paul Rubin
"py" <[EMAIL PROTECTED]> writes: > Noah wrote: > > You can give up on pickle, because pickle is only > > guaranteed to work with the exact same version of the Python > > interpreter. > > :( No that's confusing pickle with marshal. Pickle is supposed to work across versions, though it has recentl

Re: Providing 'default' value with raw_input()?

2005-12-22 Thread Kent Johnson
planetthoughtful wrote: > I think that would be a great solution if the value being 'edited' was > relatively short, or numeric, etc. But the values I want to 'edit' can > be several hundred characters long (ie they're text fields containing > todo notes), and using your method, I'd either accept t

Re: serialize object in jython, read into python

2005-12-22 Thread Fredrik Lundh
"Noah" <[EMAIL PROTECTED]> wrote: > > Thanks for the help in advance. > > You can give up on pickle, because pickle is only guaranteed > to work with the exact same version of the Python interpreter. nope. maybe you're thinking of marshalled bytecode, but I don't think that's what the OP was tal

Interesting little "gotcha" with generators

2005-12-22 Thread Kenneth McDonald
I recently had need to write the following code: def compileOuter(self): if False: yield None else: return "compileOuter" is a generator function which is implemented in various classes. In this particular class, it always yields nothing. However, none of the following

GUI and graph

2005-12-22 Thread questions?
I have a graph with different parameters along different parts of the graph. I want to have a program that can display the graph with coloring for different part of the graph. Is this possible in Python? What should I read? Thanks for any comments -- http://mail.python.org/mailman/listinfo/pyth

Re: Guido at Google

2005-12-22 Thread Bugs
So when *is* someone (either Guido himself or Google) going to officially announce that Guido has moved to Google? If at all? Also, it would be nice to know from Guido's perspective what, if any at all, impact this will have on Python? Maybe here? http://www.artima.com/weblogs/index.jsp?blogg

sorting with expensive compares?

2005-12-22 Thread Dan Stromberg
Hi folks. Python appears to have a good sort method, but when sorting array elements that are very large, and hence have very expensive compares, is there some sort of already-available sort function that will merge like elements into a chain, so that they won't have to be recompared as many time

Re: How to check if a string "is" an int?

2005-12-22 Thread Steven D'Aprano
On Thu, 22 Dec 2005 09:33:20 +0100, Peter Otten wrote: > Steven D'Aprano wrote: > >> On Wed, 21 Dec 2005 16:39:19 +0100, Daniel Schüle wrote: >> >>> [EMAIL PROTECTED] wrote: How do I check if a string contains (can be converted to) an int? I want to do one thing if I am parsing and int

Re: Interesting little "gotcha" with generators

2005-12-22 Thread Duncan Booth
Kenneth McDonald wrote: > I recently had need to write the following code: > > def compileOuter(self): > if False: yield None > else: return > > "compileOuter" is a generator function which is implemented in > various classes. In this particular class, it always yields n

Re: Interesting little "gotcha" with generators

2005-12-22 Thread Aahz
In article <[EMAIL PROTECTED]>, Kenneth McDonald <[EMAIL PROTECTED]> wrote: > >I recently had need to write the following code: > > def compileOuter(self): > if False: yield None > else: return What's wrong with def foo(): if False: yield None -- Aahz ([EMAIL PRO

Re: Guido at Google

2005-12-22 Thread Greg Stein
Guido would acknowledge a query, but never announce it. That's not his style. This should have a positive impact on Python. His job description has a *very* significant portion of his time dedicated specifically to working on Python. (much more than his previous "one day a week" jobs have given hi

Socket programming design problem

2005-12-22 Thread David
After programming with Python for a few hours, I've come up with some code: http://p.shurl.net/3n. However, now I've realised there's a bit of a problem with the original design. I have a number of questions, if anybody could answer I'd be grateful. a) Big problem, I can't see how to receive fro

Re: Interesting little "gotcha" with generators

2005-12-22 Thread Will McGugan
Kenneth McDonald wrote: > I recently had need to write the following code: > > def compileOuter(self): > if False: yield None > else: return > > "compileOuter" is a generator function which is implemented in various > classes. In this particular class, it always yields nothi

Re: The Varieties of Pythonic Experience (was: Guido at Google)

2005-12-22 Thread Robert Hicks
You mean Jython is still going? ; ) Robert -- http://mail.python.org/mailman/listinfo/python-list

Re: Interesting little "gotcha" with generators

2005-12-22 Thread Paul Rubin
[EMAIL PROTECTED] (Aahz) writes: > What's wrong with > > def foo(): > if False: yield None Does the following work? def foo(): raise StopIteration -- http://mail.python.org/mailman/listinfo/python-list

Re: GUI and graph

2005-12-22 Thread mneyer
Look up the information on graphical displays in Tk for python. http://www.pythonware.com/library/tkinter/introduction/ -- http://mail.python.org/mailman/listinfo/python-list

How do I get a dictionary of argument names with their default values?

2005-12-22 Thread Noah
Is there a simple way to get a dictionary of argument names and their default values for a method or function? I came up with one solution, but I feel like Python must have a simpler way. Python provide a way to get a sequence of argument names and a different way to get a sequence of default argu

Re: Interesting little "gotcha" with generators

2005-12-22 Thread Aahz
In article <[EMAIL PROTECTED]>, Paul Rubin wrote: >[EMAIL PROTECTED] (Aahz) writes: >> >> What's wrong with >> >> def foo(): >> if False: yield None > >Does the following work? > >def foo(): >raise StopIteration Nope. -- Aahz ([EMAIL PROTECTED]

Re: Guido at Google

2005-12-22 Thread Jay Parlar
On Dec 22, 2005, at 2:20 PM, Greg Stein wrote: > Guido would acknowledge a query, but never announce it. That's not his > style. > > This should have a positive impact on Python. His job description has a > *very* significant portion of his time dedicated specifically to > working on Python. (much

Re: A simple list question.

2005-12-22 Thread KraftDiner
I am trying to implement a two dimensional array. mylist = [[a,b,c],[d,e,f,c],[g,h,i]] So the array is of length 3 here... So how do I initialize this array and then set each object? At some point in my code I know there will be 3 lists in the list. So how do I initialize this list such that I can

Re: Guido at Google

2005-12-22 Thread Robert Kern
Jay Parlar wrote: > On Dec 22, 2005, at 2:20 PM, Greg Stein wrote: > >>Guido would acknowledge a query, but never announce it. That's not his >>style. >> >>This should have a positive impact on Python. His job description has a >>*very* significant portion of his time dedicated specifically to >>w

Re: Faster copying of composite new-class objects

2005-12-22 Thread John J. Lee
"Alex" <[EMAIL PROTECTED]> writes: > My program requires copying thousands of composite new-class objects. I > found that the following: objCopy=cPickle.loads(cPickle.dumps(obj, > protocol=2)) works about 4 times faster than > copyObj=copy.deepcopy(obj). Is there any way to do it even faster? > >

Re: How do I get a dictionary of argument names with their default values?

2005-12-22 Thread Fredrik Lundh
"Noah" <[EMAIL PROTECTED]> wrote: > Is there a simple way to get a dictionary of > argument names and their default values for > a method or function? I came up with one solution, but > I feel like Python must have a simpler way. >>> import inspect >>> help(inspect.getargspec) Help on function ge

Re: Guido at Google

2005-12-22 Thread casioculture
Ilias Lazaridis wrote: > Greg Stein wrote: > > Yeah... we recognize that we could certainly open-source more of our > > software. While we've released some stuff > > (code.google.com/projects.html), there is a LOT more that we want to > > http://code.google.com/projects.html > > > do. Getting engi

Re: Socket programming design problem

2005-12-22 Thread John J. Lee
David <[EMAIL PROTECTED]> writes: [...] > a) Big problem, I can't see how to receive from more than one socket at > once. I need to do this so that data from the TCP connection can be sent > out on the UDP one and vice versa. Do I need a thread for each, or is > there some other way I can listen

Re: Python IMAP4 Memory Error

2005-12-22 Thread Fredrik Lundh
Dody Suria Wijaya wrote: > Hi, I encountered a Memory Error Exception on using IMAP4 just like in > Python documentation example, on a specially large email (10 MB). Any > idea how to fix/circumvent this? > > >>> typ, data = M.fetch(89, '(RFC822)') > Traceback (most recent call last): >File "

Re: How do I get a dictionary of argument names with their default values?

2005-12-22 Thread Noah
Thanks! Much more handy than what I was trying to do and it looks like I might even learn something new :-) Yours, Noah -- http://mail.python.org/mailman/listinfo/python-list

Re: Guido at Google

2005-12-22 Thread Tim Peters
[Greg Stein] >>> Guido would acknowledge a query, but never announce it. That's not his >>> style. He's been very low-key about it, but did make an informal announcement on the PSF-Members mailing list. >>> This should have a positive impact on Python. His job description has a >>> *very* signifi

Re: A simple list question.

2005-12-22 Thread Kent Johnson
KraftDiner wrote: > I am trying to implement a two dimensional array. > mylist = [[a,b,c],[d,e,f,c],[g,h,i]] > > So the array is of length 3 here... > So how do I initialize this array and then set each object? > At some point in my code I know there will be 3 lists in the list. > So how do I init

Re: How to check if a string "is" an int?

2005-12-22 Thread Peter Otten
Steven D'Aprano wrote: > But since you're going to take my protests about regexes more seriously > than I intended you to, it is ironic that you supplied a regex that > is nice and fast but doesn't work: I think you said that "exceptions are cheap" elsewhere in this thread and I read your post ab

Re: File object question

2005-12-22 Thread Tim Williams (gmail)
On 22/12/05, S. D. Rose <[EMAIL PROTECTED]> wrote: Hello all.  If I read a binary file:file = open('c:\\logo.gif', 'rw'') # Read from FS as one way to get theobject, d/l from website another...file.read()is there anyway I can determine the 'size' of the object file? (Without going to the filesystem

Re: serialize object in jython, read into python

2005-12-22 Thread Erik Max Francis
Noah wrote: > You can give up on pickle, because pickle is only > guaranteed to work with the exact same version of the Python > interpreter. Not true. You're thinking of marshal. -- Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/ San Jose, CA, USA && 37 20 N 121 53 W && A

Re: Guido at Google

2005-12-22 Thread Greg Stein
50% "on" 100% "with" On 12/22/05, Jay Parlar <[EMAIL PROTECTED]> wrote: > > On Dec 22, 2005, at 2:20 PM, Greg Stein wrote: > > Guido would acknowledge a query, but never announce it. That's not his > > style. > > > > This should have a positive impact on Python. His job description has a > > *very

Re: Please enlighten me about PyPy

2005-12-22 Thread Ray
Luis M. González wrote: > Well, first and foremost, when I said that I leave the door open for > further explanations, I meant explanations by other people more > knowlegeable than me :-) Thanks for clearing up some of my confusion with PyPy, Luis! Cheers, Ray -- http://mail.python.org/mailma

Re: Please enlighten me about PyPy

2005-12-22 Thread Ray
Carl Friedrich Bolz wrote: > Hi! > > some more pointers in addition to the good stuff that Luis wrote... Thanks Carl! That solidified my mental picture of PyPy a lot more :) Warm regards, Ray -- http://mail.python.org/mailman/listinfo/python-list

Re: Guido at Google

2005-12-22 Thread Bugs
Greg Stein wrote: > 50% "on" > 100% "with" > Wow, that's great to know, thanks Greg! -- http://mail.python.org/mailman/listinfo/python-list

Re: GUI and graph

2005-12-22 Thread Avell Diroll
questions? wrote: > I have a graph with different parameters along different parts of the > graph. > > I want to have a program that can display the graph with coloring for > different part of the graph. Is this possible in Python? What should I > read? > > Thanks for any comments > I would sug

Re: serialize object in jython, read into python

2005-12-22 Thread Kent Johnson
py wrote: > I want to serialize an object in jython and then be able to read it in > using python, and vice versa. > > Any suggestions on how to do this? pickle doesnt work, nor does using > ObjectOutputStream (from jython). > > I prefer to do it file based ...something like > > pickle.dump(som

Re: Guido at Google

2005-12-22 Thread x600y
JB wrote: > long life to Guido & Goole ! many things to come ;) Google is merely the new Microsoft and surely just as unethical at its core. And your spelling Goole is probably closer to the mark, since it is merely the next ghoulish big company, come to restrict our freedoms and blot out the s

Re: File object question

2005-12-22 Thread Kent Johnson
S. D. Rose wrote: > Hello all. > If I read a binary file: > > file = open('c:\\logo.gif', 'rw'') # Read from FS as one way to get the > object, d/l from website another... > file.read() > > is there anyway I can determine the 'size' of the object file? (Without > going to the filesystem and rea

Re: GUI and graph

2005-12-22 Thread Kent Johnson
questions? wrote: > I have a graph with different parameters along different parts of the > graph. > > I want to have a program that can display the graph with coloring for > different part of the graph. Is this possible in Python? What should I > read? pydot is pretty amazing in its abilitity to

Re: Please enlighten me about PyPy

2005-12-22 Thread Bugs
Scott David Daniels wrote: > [snip] The big trick is that you can specialize the interpreter for > running _its_ input (a Python program), thus giving you a new > interpreter that only runs your Python program -- a very specialized > interpreter indeed. > Now THAT will be slick! What is the curr

Re: The Varieties of Pythonic Experience

2005-12-22 Thread Kent Johnson
Robert Hicks wrote: > You mean Jython is still going? ; ) Yes, I see the smiley but there are too many "is Jython dead?" posts on the Jython lists for me to leave this alone... Jython is going strong. Thanks to Brian Zimmer and a grant from PSF it is under active development again and workin

Re: Wingide is a beautiful application

2005-12-22 Thread jussij
> I don't like, that one of the latest UltraEdit releases > was buggy causing 100%CPU load and 2MByte of harddisk > data traffic beeing idle, so I am looking for an alternative > for years, but instead of finding it I was forced lately > to spend money again on renewing my license. Have you tried

Re: Please enlighten me about PyPy

2005-12-22 Thread Luis M. González
> Thanks for clearing up some of my confusion with PyPy, Luis! Hey, I'm glad you brought up this topic! This thread really helped me to understand some dark corners of this exciting project. I also want to thank Carl and all the other Pypy developers for their outstanding work! I've been quietly

Re: Socket programming design problem

2005-12-22 Thread Dan Sommers
On Thu, 22 Dec 2005 22:12:09 +, David <[EMAIL PROTECTED]> wrote: > a) Big problem, I can't see how to receive from more than one socket > at once. I need to do this so that data from the TCP connection can > be sent out on the UDP one and vice versa. Do I need a thread for > each, or is ther

Re: Wingide is a beautiful application

2005-12-22 Thread jussij
> The best not free overall text editing tool on Windows > is UltraEdit As I mentioned before, you should give Zeus a test drive. Many Zeus users think it is the best programming tool for the Windows platform: http://www.zeusedit.com/awards.html Jussi Jumppanen Author: Zeus for Windows --

Run Oracle stored procedure without ODBC

2005-12-22 Thread John61
Is there a way to call a stored procedure on an Oracle database using Python with a runtime connection? -- http://mail.python.org/mailman/listinfo/python-list

Re: Run Oracle stored procedure without ODBC

2005-12-22 Thread Jorge Godoy
"John61" <[EMAIL PROTECTED]> writes: > Is there a way to call a stored procedure on an Oracle database using Python > with a runtime connection? There seems to be a cxOracle (something like that) module that allows connecting to Oracle. With it you can connect and call the stored procedure.

Re: Guido at Google

2005-12-22 Thread Luis M. González
[EMAIL PROTECTED] wrote: > JB wrote: > > > long life to Guido & Goole ! many things to come ;) > > Google is merely the new Microsoft and surely just as unethical > at its core. > > And your spelling Goole is probably closer to the mark, > since it is merely the next ghoulish big company, > come to

Re: Guido at Google

2005-12-22 Thread bearophileHUGS
This is interesting. With more Python time in Guido's hands maybe Py 3.0 is a bit closer... :-) I don't know if this is a silly idea: A small part of the wealth of a modern state is probably determined by the software it uses/produces, and a small part of this software is open source or free. This

Re: Run Oracle stored procedure without ODBC

2005-12-22 Thread hubbardmail
Try http://www.computronix.com/utilities.shtml Jason -- http://mail.python.org/mailman/listinfo/python-list

print UTF-8 file with BOM

2005-12-22 Thread davihigh
Hi Friends: fileObj = codecs.open( filename, "r", "utf-8" ) u = fileObj.read() # Returns a Unicode string from the UTF-8 bytes in the file print u It says error: UnicodeEncodeError: 'gbk' codec can't encode character u'\ufeff' in position 0: illegal multiby

"Humane" programmer interfaces

2005-12-22 Thread Dave Benjamin
There's been a lot of discussion lately regarding Ruby and the notion of a "humane" interface to objects like arrays and maps, as opposed to "minimalist" ones. I believe the article that started the debates was this one by Martin Fowler: http://www.developertesting.com/archives/month200512/20051

[ANN] python-dateutil 1.1

2005-12-22 Thread Gustavo Niemeyer
Changes since 1.0 - - Fixed rrule byyearday handling. Abramo Bagnara pointed out that RFC2445 allows negative numbers. - Fixed --prefix handling in setup.py (by Sidnei da Silva). - Now tz.gettz() returns a tzlocal instance when not given any arguments and no other timezone i

Re: Wingide is a beautiful application

2005-12-22 Thread Claudio Grondi
[EMAIL PROTECTED] wrote: >>I don't like, that one of the latest UltraEdit releases >>was buggy causing 100%CPU load and 2MByte of harddisk >>data traffic beeing idle, so I am looking for an alternative >>for years, but instead of finding it I was forced lately >>to spend money again on renewing my

Re: Guido at Google

2005-12-22 Thread Ilias Lazaridis
[EMAIL PROTECTED] wrote: > Ilias Lazaridis wrote: [...] >> http://lazaridis.com/case/lang/python.html [...] > Hi there, I wonder what comments you would have about XOTCL, or other > OO extensions for tcl, like snit, and dozens more. I looked at the > various scripting languages available to me

Re: Python IMAP4 Memory Error

2005-12-22 Thread Dody Suria Wijaya
Fredrik Lundh wrote: > try adding a print statement to lib/imaplib.py, just before that read > statement, > > print size, read, size-read > data = self.sslobj.read(size-read) > > and let us know what it prints. 14130601 0 14130601 14130601 16353 14114248 14130601 32737 14097864 1

Re: Python IMAP4 Memory Error

2005-12-22 Thread Dody Suria Wijaya
Noah wrote: > This looks like a bug in your build of Python 2.4.2 for Windows. > Basically it means that C's malloc() function in the Python interpreter > failed. > On a second trial, it's also failed on Python 2.3.5 for Windows, Python 2.3.3 for Windows, and Python 2.2.3 for Windows. So this se

Re: Guido at Google

2005-12-22 Thread Robert Kern
[EMAIL PROTECTED] wrote: > This is interesting. With more Python time in Guido's hands maybe Py > 3.0 is a bit closer... :-) > > I don't know if this is a silly idea: > A small part of the wealth of a modern state is probably determined by > the software it uses/produces, and a small part of this

<    1   2   3   >