Re: Guido at Google

2005-12-22 Thread Alex Martelli
<[EMAIL PROTECTED]> wrote: > Anand wrote: > > This is very good news. I wish Guido all the best! > > > > I wonder if this has got to do something with Microsoft developing > > IronPython. Incidentellay it is reaching a 1.0 release pretty soon. > > Perhaps Google has some cards up their sleeve. Wha

new style and classic style classes ?

2005-12-22 Thread ankit
Hello, Please put some light on, What are new style classes and classic style classes in python. The basic differences in them. And How can I decide to choose one. -- http://mail.python.org/mailman/listinfo/python-list

Re: Guido at Google

2005-12-22 Thread bonono
Alex Martelli wrote: > <[EMAIL PROTECTED]> wrote: > > > Anand wrote: > > > This is very good news. I wish Guido all the best! > > > > > > I wonder if this has got to do something with Microsoft developing > > > IronPython. Incidentellay it is reaching a 1.0 release pretty soon. > > > Perhaps Googl

Re: Guido at Google

2005-12-22 Thread Gary Herron
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.

Re: Globals, Locals Dictionaries + Callbacks Question

2005-12-22 Thread Steve Holden
Faisal Alquaddoomi wrote: > Steve Holden wrote: > >>Faisal Alquaddoomi wrote: >> >> >>>Hello, >>> >>>I'm having a bit of trouble isolating my scripts from each other in my >>>embedded Python interpreter, so that their global namespaces don't get >>>all entangled. >> >> >>[tales of woe ...] >> >

Re: Guido at Google

2005-12-22 Thread bonono
Gary Herron wrote: > You don't appear to understand Open Source very well. > > Python is the way it is because we, the community, *like* it that way. > It evolves in directions that we (all) decide it is to evolve. Guido is > our leader in this because we trust him and *choose* to follow his lead.

Re: Guido at Google

2005-12-22 Thread Alex Martelli
<[EMAIL PROTECTED]> wrote: ... > > > > I wonder if this has got to do something with Microsoft developing > > > > IronPython. Incidentellay it is reaching a 1.0 release pretty soon. > > > > Perhaps Google has some cards up their sleeve. What other best way to > > > > counter this than to hire th

Re: new style and classic style classes ?

2005-12-22 Thread Alex Martelli
ankit <[EMAIL PROTECTED]> wrote: > Hello, > Please put some light on, What are new style classes and classic style > classes in python. The basic differences in them. And How can I decide > to choose one. "Classic" (old-style) classes are ones with no ancestor classes that are built-in types; "n

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

2005-12-22 Thread Peter Otten
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 integer, and another if not. >>> >>> /David >>> >> >> others alre

Re: Guido at Google

2005-12-22 Thread Bengt Richter
On Wed, 21 Dec 2005 21:47:29 -0500, Peter Hansen <[EMAIL PROTECTED]> wrote: >Bengt Richter wrote: >[roughly "an inch is not exactly 25.4mm"] >> At least according to my dusty 37th Edition Handbook of Chemistry and >> Physics (c) 1955. >> Maybe things have changed since then ;-) > >Wikipedia concu

Re: Guido at Google

2005-12-22 Thread bonono
Alex Martelli wrote: > <[EMAIL PROTECTED]> wrote: >... > > > > > I wonder if this has got to do something with Microsoft developing > > > > > IronPython. Incidentellay it is reaching a 1.0 release pretty soon. > > > > > Perhaps Google has some cards up their sleeve. What other best way to > >

Re: Find out the schema with psycopg?

2005-12-22 Thread Steve Holden
[EMAIL PROTECTED] wrote: > I am trying to discover the schema of a PostgreSQL database > programatically at runtime. > > I'm using psycopg (I assume that's still the best library). Is there a > way to query the schema other than opening a system pipe like "psql -d > '\d'", "psql -d '\d tablename'

Re: parsing engineering symbols

2005-12-22 Thread Fredrik Lundh
Peter Hansen wrote: > > Did you put the SI_prefixes outside the def so you could wrap the > > whole thing in a module and reuse it in other blocks? > > Do "import dis" and then try "dis.dis(myfloat)" on Fredrik's version and > on your suggested variation... (Hint, it's likely more an instinct fo

Re: Please enlighten me about PyPy

2005-12-22 Thread Steve Holden
Kevin Yuan wrote: > > > 21 Dec 2005 19:33:20 -0800, Luis M. González <[EMAIL PROTECTED] > >: > > ... ... > This implementation requires a minimal core, writen in a restricted > subset of python called "rpython". This subset avoids many of the most > dyn

Re: Guido at Google

2005-12-22 Thread Alex Martelli
<[EMAIL PROTECTED]> wrote: ... > > > > > I wonder how high a particular programming language is in the prioirty > > > > > of either organisations of such size ? ... > from me), there really is nothing I can do other changing the mail name > which I am intended to. Sorry, can't parse this (I

Re: Guido at Google

2005-12-22 Thread Steve Holden
[EMAIL PROTECTED] wrote: > Nicola Musatti wrote: > >>By the way, I hear that you've become collegues also with Matt Austern, >>formerly of Apple, and Danny Thorpe, formerly of Borland. I guess we >>mere mortals don't stand a chance of being hired, but if the trend >>continues there are going to be

Re: Which Python web framework is most like Ruby on Rails?

2005-12-22 Thread Richie Hindle
[Paul] > The web app gets run by Karrigell like a CGI script > is run by Apache, like a Linux app is run by the Linux kernel. Paul, you keep making comparisons between Python web frameworks and the Linux kernel. Are you aware that there is a special note attached to the Linux GPL[1] explaining t

Re: Please enlighten me about PyPy

2005-12-22 Thread Kevin Yuan
2005/12/22, Steve Holden <[EMAIL PROTECTED]>: Fairly standard bootstrapping technique..Thanks, I get it.BTW I like the word "bootstrapping", very vivid, isn't it?:) -- http://mail.python.org/mailman/listinfo/python-list

Re: Guido at Google

2005-12-22 Thread Bengt Richter
On Wed, 21 Dec 2005 18:30:03 -0700 (MST), Jim Benson <[EMAIL PROTECTED]> wrote: >On Thu, 22 Dec 2005, Bengt Richter wrote: > >> >> >> >> For Americans: 15 meters is roughly 50 feet. >> > >> >Google can do that too, of course. >> > >> >http://www.google.com/search?q=convert+15+meters+to+feet >> >

Re: Which Python web framework is most like Ruby on Rails?

2005-12-22 Thread Paul Rubin
Richie Hindle <[EMAIL PROTECTED]> writes: > Paul, you keep making comparisons between Python web frameworks and the > Linux kernel. Are you aware that there is a special note attached to the > Linux GPL[1] explaining that user-space code is not considered a derived > work of the Linux kernel? Wit

UNew to Tkinter nicodeEncodeError:Japanese

2005-12-22 Thread rajasekaran . natarajan
Hi friends, I am writing my Japanese study program and a GUIt. I am facing a problem in an entry widget where I enter Japanese words. The entered Japanese word is accessed by the callback function and used for some processes. It is working well when I enter english values. But giving unicodeEnco

Python IMAP4 Memory Error

2005-12-22 Thread Dody Suria Wijaya
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 "", line 1, in ? File "C:\Python24

Re: Guido at Google

2005-12-22 Thread EP
[EMAIL PROTECTED] wrote: >Anand wrote: > > >>This is very good news. I wish Guido all the best! >> >>I wonder if this has got to do something with Microsoft developing >>IronPython. Incidentellay it is reaching a 1.0 release pretty soon. >>Perhaps Google has some cards up their sleeve. What othe

Re: Guido at Google

2005-12-22 Thread bonono
Alex Martelli wrote: > In the general case, it's pretty general;-). In the specific case of > your "question" above quoted (interpreting the mis-spelled words and > grammatical errors to the best of my modest ability), reading it as > rhetorical means it's in fact intended as a statement (that a

Re: Guido at Google

2005-12-22 Thread Ray
EP wrote: > Congrats, Guido. Thanks for Python and may your future at Google be bright. Congrats to BDFL too--may the future of his and his creation be bright indeed! Ray > > > EP -- http://mail.python.org/mailman/listinfo/python-list

Re: UNew to Tkinter nicodeEncodeError:Japanese

2005-12-22 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > It is working well when I enter english values. > But giving unicodeEncodeError when I try with the Japanese letter. > > I tried to decode it by but I am getting unicodeEncodeError. chances are that Tkinter has already decoded the string for you. >def search(self):

Re: Please enlighten me about PyPy

2005-12-22 Thread Luis M. González
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 :-) > Now I'm confused again--psyco translates Python into machine code--so > how does this tie in with the fact that the interpreter written in

Re: Newbie: adding string values to a list?

2005-12-22 Thread planetthoughtful
Hi, Thanks to all for your amazingly quick help! I'm learning much about Python every day. Much warmth, planetthoughtful -- http://mail.python.org/mailman/listinfo/python-list

Re: pyUnit and dynamic test functions

2005-12-22 Thread Fabrizio Milo
> thanks for any input or any alternate approach to it I think that your approach is not fair. You should create a TestCase for each of your data input, add it to a TestSuite and run the test suite. Here is a stub for loading just a 'dict' type, hoping it is helpful import unittest import glob

Re: Guido at Google

2005-12-22 Thread Fuzzyman
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 > do. Getting engineers' 20% time to do that has been difficult. > Thankfully, we know how to

Re: Guido at Google

2005-12-22 Thread Peter Hansen
[EMAIL PROTECTED] wrote: > So exactly how high is python in Google's priority list ? Or in other > words, if python is in a stand still as it is now, what would be the > impact to Google ? Since when is Python in a standstill? By all accounts I've seen, and personal observation over the last fiv

Re: Please enlighten me about PyPy

2005-12-22 Thread Claudio Grondi
Steve Holden wrote: > Kevin Yuan wrote: > >> >> >> 21 Dec 2005 19:33:20 -0800, Luis M. González <[EMAIL PROTECTED] >> >: >> >> ... ... >> This implementation requires a minimal core, writen in a restricted >> subset of python called "rpython". This subset avo

Re: parsing engineering symbols

2005-12-22 Thread Peter Hansen
Fredrik Lundh wrote: > Peter Hansen wrote: [the OP wrote] >>>Did you put the SI_prefixes outside the def so you could wrap the >>>whole thing in a module and reuse it in other blocks? >> >>Do "import dis" and then try "dis.dis(myfloat)" on Fredrik's version and >>on your suggested variation... (H

Re: UNew to Tkinter nicodeEncodeError:Japanese

2005-12-22 Thread rajasekaran . natarajan
Thanks a lot for your reply Mr.Lundh Yeah you are correct, Tkinter is automatically converting the words to unicode, so there is no need to decode again, also there is no need to encode in the print statement so, your assumption is correct but the encode statement at print gave me wrong kanjis [J

Re: UNew to Tkinter nicodeEncodeError:Japanese

2005-12-22 Thread rajasekaran . natarajan
Thanks a lot for your reply Mr.Lundh Yeah you are correct, Tkinter is automatically converting the words to unicode, so there is no need to decode again, also there is no need to encode in the print statement so, your assumption is correct but the encode statement at print gave me wrong kanjis [J

Re: Guido at Google

2005-12-22 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: . . . >Well, this may be the CPython way of open source but I don't know if >that is "Open source" in general. Another way is that if someone(or >group) don't like the

Re: Parsing a date-time string?

2005-12-22 Thread Tim N. van der Leeuw
I downloaded the tar.bz2 file, extracted it, and had no problem building it and creating a windows installer using 'python ./setup.py bdist_wininst' This windows installer I then used to install it via the 'official windows' way :) luck, --Tim -- http://mail.python.org/mailman/listinfo/python-

Re: Guido at Google

2005-12-22 Thread bonono
Cameron Laird wrote: > In article <[EMAIL PROTECTED]>, > <[EMAIL PROTECTED]> wrote: > . > . > . > >Well, this may be the CPython way of open source but I don't know if > >that is "Open source" in general. Another way is that if som

Re: Guido at Google

2005-12-22 Thread Luis M. González
> Java => Sun > .Net => Microsoft > C# => Microsoft > Linux => too many big name IT companies to mention > Python => ? I know at least one company responsible for a linux distro (Cannonical - Ubuntu), which encourages and even pays programmers for developing applications in Python. His fo

Re: Which Python web framework is most like Ruby on Rails?

2005-12-22 Thread A.M. Kuchling
On 20 Dec 2005 15:05:15 -0800, Michael Tobis <[EMAIL PROTECTED]> wrote: > Python people don't really think that way. As a community we really > seem to inherit the open source dysfunction of trying harder to impress > each other than to reach out to the rest of the world. The problem is Y

Re: Please enlighten me about PyPy

2005-12-22 Thread Carl Friedrich Bolz
Hi! 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 :-) You did a very good job to describe what PyPy is in this and the previous mail! I will try to give a jus

Re: Guido at Google

2005-12-22 Thread Carsten Haese
On Thu, 2005-12-22 at 07:01, Peter Hansen wrote: > [EMAIL PROTECTED] wrote: > > So exactly how high is python in Google's priority list ? Or in other > > words, if python is in a stand still as it is now, what would be the > > impact to Google ? > > Since when is Python in a standstill? I believ

Re: Which Python web framework is most like Ruby on Rails?

2005-12-22 Thread Ed Singleton
On 22/12/05, A.M. Kuchling <[EMAIL PROTECTED]> wrote: > On 20 Dec 2005 15:05:15 -0800, > Michael Tobis <[EMAIL PROTECTED]> wrote: > > Python people don't really think that way. As a community we really > > seem to inherit the open source dysfunction of trying harder to impress > > each othe

Re: Guido at Google

2005-12-22 Thread Renato
For what is worth, all of the native administration tools of RedHat (all versions) and Fedora Core are written in python (system-config-* and/or redhat-config-* ). And even more importantly, yum (the official software package manager for Fedora and RHEL) and Anaconda (OS installer) are written in P

Re: Guido at Google

2005-12-22 Thread Graham Fawcett
Cameron Laird wrote: > In article <[EMAIL PROTECTED]>, > <[EMAIL PROTECTED]> wrote: > . > >Well, this may be the CPython way of open source but I don't know if > >that is "Open source" in general. Another way is that if someone(or > >group) don't like the current state of a p

Re: Guido at Google

2005-12-22 Thread Steve Holden
[EMAIL PROTECTED] wrote: > Cameron Laird wrote: > >>In article <[EMAIL PROTECTED]>, >> <[EMAIL PROTECTED]> wrote: >> . >> . >> . >> >>>Well, this may be the CPython way of open source but I don't know if >>>that is "Open source" in gen

Re: Guido at Google

2005-12-22 Thread Graham Fawcett
Steve Holden wrote: > > Nicola Musatti wrote: > > Of course, I'm going on vacation next week and there was talk > > about a one-way ticket to Mexico. The real question is will they let me > > *back* in? :-) > > > I would be careful coming back across the border. I heard that the PSU [suspicous pre

Re: Guido at Google

2005-12-22 Thread bonono
Steve Holden wrote: > Well the name "Python" is a trade mark of the Python Software > Foundation. So if you invent another language and start calling it > "Python" just to get an audience you should expect to receive a > cease-and-desist letter. > That is what I expect but don't know to what exten

deal or no deal

2005-12-22 Thread rbt
The house almost always wins or are my assumptions wrong... import random amounts = [.01, 1, 5, 10, 25, 50, 75, 100, 200, 300, 400, 500, 750, 1000, 5000, 1, 25000, 5, 75000, 10, 20, 30, 40, 50, 75, 100] results = [] count = 0 while cou

Re: Guido at Google

2005-12-22 Thread Carsten Haese
On Thu, 2005-12-22 at 08:18, [EMAIL PROTECTED] wrote: > Cameron Laird wrote: > > In article <[EMAIL PROTECTED]>, > > <[EMAIL PROTECTED]> wrote: > > . > > . > > . > > >Well, this may be the CPython way of open source but I don't know if >

Re: Please enlighten me about PyPy

2005-12-22 Thread Luis M. González
Thanks Carl for your explanation! I just have one doubt regarding the way Pypy is supposed to work when its finished: We know that for translating the rpython interpreter to C, the pypy team developed a tool that relies heavily on static type inference. My question is: Will this type inference al

Re: Guido at Google

2005-12-22 Thread Steve Holden
[EMAIL PROTECTED] wrote: > Steve Holden wrote: > >>Well the name "Python" is a trade mark of the Python Software >>Foundation. So if you invent another language and start calling it >>"Python" just to get an audience you should expect to receive a >>cease-and-desist letter. >> > > That is what I

Re: Guido at Google

2005-12-22 Thread bonono
Carsten Haese wrote: > So, if there is something you don't like about Python, you have two > choices: > 1) Seek consensus with the Python community and have your changes > accepted into the "official" Python version, or > 2) Fork Python into something else with a different name. If the > different

Re: Please enlighten me about PyPy

2005-12-22 Thread Carl Friedrich Bolz
Hi! some more pointers in addition to the good stuff that Luis wrote... Ray wrote: > So the basic idea is that PyPy is an implementation of Python in Python > (i.e.: writing Python's interpreter in Python), and then translate that > into another language such as C or Java? How is it different fro

Dr. Dobb's Python-URL! - weekly Python news and links (Dec 21)

2005-12-22 Thread Cameron Laird
QOTW: "[P]ortability is an n-way street." - Paul McGuire "Python's polymorphism support is so good that it makes inheritance much less important than it is in other languages." - Ben Sizer Skip Montanaro presents the affirmative case for Python as a unit-testing framework for C++:

Re: Please enlighten me about PyPy

2005-12-22 Thread Carl Friedrich Bolz
Hi! Luis M. González wrote: > Thanks Carl for your explanation! > I just have one doubt regarding the way Pypy is supposed to work when > its finished: > > We know that for translating the rpython interpreter to C, the pypy > team developed a tool that relies heavily on static type inference. >

Re: Guido at Google

2005-12-22 Thread Thomas Wouters
On Thu, 22 Dec 2005 06:18:52 -0800, Graham Fawcett wrote: > Steve Holden wrote: >> I would be careful coming back across the border. I heard that the PSU > [suspicous premature end-of-sentence] > > Steve, I hope that the PSU is just jamming your comms, and not holding > you captive over the holi

Re: Guido at Google

2005-12-22 Thread Peter Hansen
Graham Fawcett wrote: > Steve Holden wrote: >>>Nicola Musatti wrote: >>>Of course, I'm going on vacation next week and there was talk >>>about a one-way ticket to Mexico. The real question is will they let me >>>*back* in? :-) >>I would be careful coming back across the border. I heard that the PS

isocode in python

2005-12-22 Thread Byomkesh
hi all i want run iso2uni.py. how run in xml file this .py file. plz urgent reply me. this py file also iso to unicode entity converter file. Thanks and Regards Byomkesh -- http://mail.python.org/mailman/listinfo/python-list

Re: Please enlighten me about PyPy

2005-12-22 Thread Luis M. González
Carl Friedrich Bolz wrote: > The static type inference is just a means. It will not be used for the > speeding up of running programs. The problem with the current type > inference is that it is really very static and most python programs are > not static enough for it. > > Therefore we will rather

Re: Parsing a date-time string?

2005-12-22 Thread Tim Williams (gmail)
On 21 Dec 2005 01:43:13 -0800, Tim N. van der Leeuw <[EMAIL PROTECTED]> wrote: Hi,I want to parse strings containing date-time, which look like thefollowing: "Mon Dec 19 11:06:12:333 CET 2005"[snipped]What I want to get is some sort of sortable date; either as a number or(if nothing else) as a str

Re: Which Python web framework is most like Ruby on Rails?

2005-12-22 Thread A.M. Kuchling
On Thu, 22 Dec 2005 14:05:08 +, Ed Singleton <[EMAIL PROTECTED]> wrote: >> Yes; I've long worried about this, but have no idea how to fix the >> problem. Python users largely talk to other Python users, not to the >> world at large. > > A good start would be for there to be a way for

Re: deal or no deal

2005-12-22 Thread Bengt Richter
On Thu, 22 Dec 2005 09:29:49 -0500, rbt <[EMAIL PROTECTED]> wrote: >The house almost always wins or are my assumptions wrong... > >import random > >amounts = [.01, 1, 5, 10, 25, 50, 75, 100, 200, 300, 400, 500, 750, >1000, 5000, 1, 25000, 5, 75000, 10, 20, >

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

2005-12-22 Thread skip
samuel> Thanks. When I use python to unit test my c++ code. Do I need samuel> only the .o file? or I need the .c/.h files of the c++ code? If samuel> the input is .c/.h files, how can I compile it for unit testing samuel> purposes? Your wrapper module will need the header files

Re: Guido at Google

2005-12-22 Thread Tim Peters
[EMAIL PROTECTED] > ... > What about the copyright in CPython ? Can I someone take the codebase > and make modifications then call it Sneak ? Of course they _could_ do that, and even without making modifications beyond the name change. If you want to know whether it's legal, that's a different q

Re: deal or no deal

2005-12-22 Thread rbt
Bengt Richter wrote: > On Thu, 22 Dec 2005 09:29:49 -0500, rbt <[EMAIL PROTECTED]> wrote: > >> The house almost always wins or are my assumptions wrong... >> >> import random >> >> amounts = [.01, 1, 5, 10, 25, 50, 75, 100, 200, 300, 400, 500, 750, >>1000, 5000, 1, 25000, 5, 75

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

2005-12-22 Thread Grant Edwards
On 2005-12-21, Antoon Pardon <[EMAIL PROTECTED]> wrote: >> 15 is not a digit. 1 is a digit. 5 is a digit. Putting them together to >> make 15 is not a digit. > > So? the isdigit method tests whether all characters are digits. > '15'.isdigit() > True But that is "obviously" wrong, since '15'

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

2005-12-22 Thread Steven D'Aprano
On Wed, 21 Dec 2005 13:58:01 -0800, Erik Max Francis wrote: > Steven D'Aprano wrote: > >> In that case, the name is misleadingly wrong. I suppose it is not likely >> that it could be changed before Python 3? > > Why? > > The primary purpose of the .isdigit, etc. methods is to test whether a >

Re: Please enlighten me about PyPy

2005-12-22 Thread Carl Friedrich Bolz
Luis M. González wrote: > Thanks! > I think I completely understand the whole thing now :-) If only we could say the same :-) > Anyway, I guess it's just a matter of time untill we can use this > translation tool to translate other programs, provided they are written > in restricted python, right

Re: deal or no deal

2005-12-22 Thread Rocco Moretti
rbt wrote: > The TV show on NBC in the USA running this week during primetime (Deal > or No Deal). I figure there are roughly 10, maybe 15 contestants. They > pick a briefcase that has between 1 penny and 1 million bucks and then > play this silly game where NBC tries to buy the briefcase from

Re: Guido at Google

2005-12-22 Thread rbt
Alex Martelli wrote: > Rhetorical > questions are a perfectly legitimate style of writing (although, like > all stylistic embellishments, they can be overused, and can be made much > less effective if murkily or fuzzily phrased), of course. Also, email doesn't convey rhetorical questions that wel

Re: Please enlighten me about PyPy

2005-12-22 Thread Luis M. González
> Anyway, I guess it's just a matter of time untill we can use this > translation tool to translate other programs, provided they are written > in restricted python, right? > So we will have two choices: > 1) running normal python programs on Pypy. > 2) translating rpython programs to C and compil

Re: Guido at Google

2005-12-22 Thread rbt
Luis M. González wrote: >> Java => Sun >> .Net => Microsoft >> C# => Microsoft >> Linux => too many big name IT companies to mention >> Python => ? > > I know at least one company responsible for a linux distro (Cannonical > - Ubuntu), which encourages and even pays programmers for develo

Providing 'default' value with raw_input()?

2005-12-22 Thread planetthoughtful
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? I would like to include the ability to edit an existing value (drawn from an SQLite table) using a DOS console Pyth

Re: Guido at Google

2005-12-22 Thread Alex Martelli
<[EMAIL PROTECTED]> wrote: ... > So exactly how high is python in Google's priority list ? Or in other > words, if python is in a stand still as it is now, what would be the > impact to Google ? As an outsider, I can only base on public info, like And so can I, as an insider, when I communicate

Re: Guido at Google

2005-12-22 Thread Alex Martelli
Carsten Haese <[EMAIL PROTECTED]> wrote: > On Thu, 2005-12-22 at 07:01, Peter Hansen wrote: > > [EMAIL PROTECTED] wrote: > > > So exactly how high is python in Google's priority list ? Or in other > > > words, if python is in a stand still as it is now, what would be the > > > impact to Google ?

Re: Which Python web framework is most like Ruby on Rails?

2005-12-22 Thread Ed Singleton
On 22/12/05, A.M. Kuchling <[EMAIL PROTECTED]> wrote: > On Thu, 22 Dec 2005 14:05:08 +, > Ed Singleton <[EMAIL PROTECTED]> wrote: > >> Yes; I've long worried about this, but have no idea how to fix the > >> problem. Python users largely talk to other Python users, not to the > >> world

Re: Guido at Google

2005-12-22 Thread Alex Martelli
Renato <[EMAIL PROTECTED]> wrote: > all of the native administration tools of RedHat (all versions) and > Fedora Core are written in python (system-config-* and/or > redhat-config-* ). And even more importantly, yum (the official > software package manager for Fedora and RHEL) and Anaconda (OS > i

Re: Guido at Google

2005-12-22 Thread Graham Fawcett
Peter Hansen wrote: > Graham Fawcett wrote: > > Steve Holden wrote: > >>>Nicola Musatti wrote: > >>>Of course, I'm going on vacation next week and there was talk > >>>about a one-way ticket to Mexico. The real question is will they let me > >>>*back* in? :-) > >>I would be careful coming back acro

Re: Please enlighten me about PyPy

2005-12-22 Thread Luis M. González
Carl Friedrich Bolz wrote: > Actually, one of our current rather wild ideas (which might not be > followed) is to be able to even use RPython to write extension modules > for CPython. I don't think this is a wild idea. In fact, it is absolutely reasonable. I'm sure that creating this translation

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

2005-12-22 Thread keirr
planetthoughtful wrote: > I'm wondering if it's possible, using raw_input(), to provide a > 'default' value with the prompt? > def get_input_with_default(default, prompt=">>> "): result = raw_input('['+str(default)+'] '+str(prompt)) if result == "": result = default return default > I

Re: Guido at Google

2005-12-22 Thread Kent Johnson
Cameron Laird wrote: > While I don't understand the question, it might be pertinent to > observe that, among open-source development projects, Python is > unusual for the *large* number of "forks" or alternative imple- > mentations it has supported through the years http://phaseit.net/claird/comp.

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

2005-12-22 Thread Steve Holden
planetthoughtful 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? > > I would like to include the ability to edit an existing value (drawn > fr

Re: Guido at Google

2005-12-22 Thread Brian van den Broek
Graham Fawcett said unto the world upon 2005-12-22 08:18: > Steve Holden wrote: > >>>Nicola Musatti wrote: >>>Of course, I'm going on vacation next week and there was talk >>>about a one-way ticket to Mexico. The real question is will they let me >>>*back* in? :-) >>> >> >>I would be careful comi

Re: Which Python web framework is most like Ruby on Rails?

2005-12-22 Thread Kent Johnson
A.M. Kuchling wrote: > On 20 Dec 2005 15:05:15 -0800, > Michael Tobis <[EMAIL PROTECTED]> wrote: > >>Python people don't really think that way. As a community we really >>seem to inherit the open source dysfunction of trying harder to impress >>each other than to reach out to the rest of th

Re: Python IMAP4 Memory Error

2005-12-22 Thread Dody Suria Wijaya
Mode details, this occurs on Python 2.4.2 windows, but not on Python 2.3.4 cygwin or Python 2.3.5 windows binary. 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

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

2005-12-22 Thread planetthoughtful
Hi Steve, As keir mentioned, my goal is to be able to edit the value returned from a record stored in SQLite, so that it can be updated with the new value. To give a little background: as a learning exercise I'm writing a command line app that will allow me to quickly capture todo items (based on

Re: Wingide is a beautiful application

2005-12-22 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Tony Nelson wrote: > > So, you bind check_current_block() to the Enter key? > > Yeah. The binding's not quite just "check_current_block()" > because you need a bit of magic to keep autoindent working. I'll post >

Re: Guido at Google

2005-12-22 Thread Ilias Lazaridis
Gary Herron wrote: > Ilias Lazaridis wrote: > >> Greg Stein wrote: [...] >>> provided a LOT of support to a large number of open source >>> organizations. >> >> I hope that you invest some time to _organize_ the Open Source Projects. >> >> Starting with Python and it's project-structure (e.g. buil

Re: Guido at Google

2005-12-22 Thread Bengt Richter
On Thu, 22 Dec 2005 09:07:26 -0800, [EMAIL PROTECTED] (Alex Martelli) wrote: >Renato <[EMAIL PROTECTED]> wrote: > >> all of the native administration tools of RedHat (all versions) and >> Fedora Core are written in python (system-config-* and/or >> redhat-config-* ). And even more importantly, yum

Re: Guido at Google

2005-12-22 Thread Nicola Musatti
Alex Martelli wrote: > Renato <[EMAIL PROTECTED]> wrote: > > > all of the native administration tools of RedHat (all versions) and > > Fedora Core are written in python (system-config-* and/or > > redhat-config-* ). And even more importantly, yum (the official > > software package manager for Fedo

A simple list question.

2005-12-22 Thread KraftDiner
Is there a cleaner way to implement this code? if len(self.listOfObjects) == 0: self.listOfObjects.append(self.currentObject) elif: self.listOfObjects[self.currentSlice] = self.currentO

newbie: concatenate literals (using jython)

2005-12-22 Thread davidmichaelkarr
I'm using Jython (actually WebLogic WLST), and trying to do something really simple. I want to create a string from two function calls and a literal, like: serverport = server.getListenAddress() + ':' + server.getListenPort() This complains: TypeError: __add__ nor __radd__ defined for these o

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

2005-12-22 Thread Noah
So you are saying that something like this would not work for you? current_record_value = get_value_in_database ('record_key') new_record_value = raw_default ("Enter new record value", current_record_value) set_value_in_database ('record_key', new_record_value) Maybe you are confusing

Re: Which Python web framework is most like Ruby on Rails?

2005-12-22 Thread Jean-Paul Calderone
On 21 Dec 2005 13:53:55 -0800, Pierre Quentel <[EMAIL PROTECTED]> wrote: >Just to add some more confusion to the discussion, here is what I've >found about other web frameworks : >CherryPy : BSD >Django : BSD >Jonpy : Python licence >Quixote : CNRI >Skunkweb : GPL or BSD >Snakelets : MIT >Subway :

Re: newbie: concatenate literals (using jython)

2005-12-22 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > I'm using Jython (actually WebLogic WLST), and trying to do something > really simple. I want to create a string from two function calls and a > literal, like: > > serverport = server.getListenAddress() + ':' + server.getListenPort() > > This complains: > > TypeError:

Re: Guido at Google

2005-12-22 Thread EP
rbt wrote: >Luis M. González wrote: > > >>>Java => Sun >>>.Net => Microsoft >>>C# => Microsoft >>>Linux => too many big name IT companies to mention >>>Python => ? >>> >>> >>I know at least one company responsible for a linux distro (Cannonical >>- Ubuntu), which encourages and ev

Re: Python IMAP4 Memory Error

2005-12-22 Thread Noah
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. You can catch this exception to try to recover. Here is an example: try: typ, data = M.fetch(num, '(RFC822)') exception MemoryError, e:

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

2005-12-22 Thread keirr
planetthoughtful wrote: > It seems, according to keir, that this simply can't be done via the > command line in DOS, which is a shame. Now, I said I couldn't think of a way to do it - not that it wasn't possible :-) If you don't need you program to be portable you can use extensions - in this cas

jython: True and False boolean literals?

2005-12-22 Thread davidmichaelkarr
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)". -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   >