Re: Python vs Ruby

2005-10-21 Thread Robert Boyd
On 10/19/05, Jason Stitt <[EMAIL PROTECTED]> wrote:

>
> How can we improve Python's competitiveness in this arena? "Pie"? Or
> can we do even better than Lua? Ptooey!

I'm sure I could really evangelize use of it at work were it called Ptooey ;)

As if Plone, Zope, and (non-Python) Shibboleth weren't getting me
enough funny looks. And I haven't even started telling co-workers
about Django.

Rob
-- 
http://mail.python.org/mailman/listinfo/python-list


Question: New editions of Python books?

2005-10-27 Thread Robert Boyd
Hi,

Are any new editions in the works for either "Python Essential
Reference" or "Python in a Nutshell"? I'm holding off buying one or the
other existing editions, although my library overdue fines for them
would have paid for them by now!

Thanks,
Rob
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: Python's website does a great disservice to the language

2005-11-01 Thread Robert Boyd
On 11/1/05, CppNewB <[EMAIL PROTECTED]> wrote:
...First comment; "I hope the language is designed better than the site."  Thesite is readable, but is amateurish.  If I had an ounce of design skills inme, I would take a stab at it.

Does boss have a problem with java.sun.com as well? The main visual
difference I see is Sun's pages have some gradients and rounded
corners. The Python site is clean and to-the-point.  I guess I
could admin that the various Python logos look dated, but that's about
it. Oh, and my browser is still not finished loading php.net in the
time I wrote this.

Rob

-- 
http://mail.python.org/mailman/listinfo/python-list

Re: Add attribute using pyxml

2005-11-01 Thread Robert Boyd
On 1 Nov 2005 11:09:10 -0800, PyPK <[EMAIL PROTECTED]> wrote:
How do I add a new attribute to the existing xml Document tree???
Add an attribute of an element, or add a new element? 

I hope I've understood your question correctly...this demonstrates both
adding a brand new element (tag) and an attribute for it.

from xml.dom.ext.reader.Sax2 import FromXmlStream

doc = FromXmlStream(stream)  # or FromXmlStream(open(name_of_file))
NewElement = doc.createElement('NewElement')
NewElement.setAttribute('attribute_name', 'attribute_value')
doc.documentElement.appendChild(NewElement)

You'll wind up with 
You may need to use getElementsByTagName or other means to find the
exact node to place your new element if you aren't putting it directly
under the root element.

To save into the original xml file, I create a filehandle to the file, then PrettyPrint(doc, fh).

DISLAIMER: I just learned this last week, so if anything is wrong or could be improved, the list is welcome to correct me ;)

Rob
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: Object-Relational Mapping API for Python

2005-11-01 Thread Robert Boyd
On 1 Nov 2005 11:22:23 -0800, Aquarius <[EMAIL PROTECTED]> wrote:
I explored Java's Hibernate a bit and I was intrigued by how you canmap entity objects to database tables, preserving all the relations andconstraits. I am interested if there is something like this for Python
- I noticed some APIs in the "Cheeseshop", but most of them were alpha,better, or seemed to be forsaken a long time ago. Can you recommend meanything?
In addition to SQLObject, there is Modeling, axiom, whatever Django is
using, and more. Can't comment on any, though, as I have not used them.

Rob
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: installing PygreSQL and psychopg2 modules (a newbie question)

2005-11-03 Thread Robert Boyd
On 11/2/05, Zlatko Matić <[EMAIL PROTECTED]> wrote:









I was trying to install PygreSQL and psychopg2 in 
order to use python as front-end for PostgreSQL, on WIndows XP. 
When I tried to install by calling setup.py from 
command prompt ("setup.py install"), in both cases I had the same 
error:
 
"error: Python was built with version 7.1 of Visual 
Studio, and extensions need to be built with the same version of the compiler, 
but it isn't installed."
What does it mean ? What am I supposed to 
do?
It means you are trying to install from source (I assume you downloaded
tarballs of pygresql and psycopg), and it needs a compiler to build the
source. Your Python was installed as a Windows binary, right? (you did
point-and-click install of Python?) It appears you do not have Visual
Studio installed on your system. I have no idea if these database
libraries will build with VS, I've never tried on Windows. Another
thing, you need all the postgres libraries and headers to build these
packages, and I don't know if postgres win32 includes these.
 Rob
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: PYTHON LOOSING FOR JAVA???????

2005-11-07 Thread Robert Boyd
On 7 Nov 2005 14:04:53 -0800, Fcamattti <[EMAIL PROTECTED]> wrote:
So I have a doubt. I'd like to know what do you think about the jointof efforts of Sun Microsystems and the Google to create a office webbased. I sincerely enjoy the idea althoug I'd like to know what will bethe future of this wonderful language called Python??
 
The last I read, Sun and Google have squashed the rumor that they
intend to produce a Google Office. Whether or not their denial is true,
and even with Google packaging Java runtime in their toolbar
application, why should it impact the future of Python, or any
programming language? What is your doubt about Python?

Rob
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: Any available SAML 2.0 tools in Python ?

2005-11-09 Thread Robert Boyd
On 11/9/05, Roland Hedberg <[EMAIL PROTECTED]> wrote:
Hi!The subject says it all.If there isn't anything already available, does anyone know aboutanyone working on something ?
Have you talked to any developers of Lasso?
(http://lasso.entrouvert.org) It has Python bindings, and the project
also produced Souk, a Python framework that implements the Liberty Alliance ID-FF 1.2 protocols. They might be working on future versions for SAML 2.

-- 
http://mail.python.org/mailman/listinfo/python-list

Re: The Python cross? Was New Python.org website

2006-01-19 Thread Robert Boyd
On 1/18/06, Paul McGuire <[EMAIL PROTECTED]> wrote:

> Looks like a plus sign to me, evoking the idea of "incremental improvement".
> A cross (as in Christian symbol) really has an elongated leg to the bottom.
> But it most closely resembles two snakes (see the little eyes
> at the top and bottom?), presumably pythons.
>
> Personally, I like the stylized snakes, and the symmetry of the logo, a big
> improvement over the cartooney cutesy snakes we've seen in the past.
>
> -- Paul

I really like it too, and it reminds me more of a MesoAmerican motif
than a Christian one.

-Rob
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: ActiveGrid and Python Frameworks.

2006-02-06 Thread Robert Boyd
On 5 Feb 2006 01:19:43 -0800, Ravi Teja <[EMAIL PROTECTED]> wrote:
>   Why is no one talking about ActiveGrid, which at least on the surface
> seems to be the most polished way to build web applications in Python
> so far. They have a sound financial backing, $10 million when I last
> heard, made news on non-Python circles, have a relatively friendly
> authoring environment and are probably addressing the enterprise more
> specifically than any other web framework.
>
>   It somehow did not grow on me but I would love to hear what others'
> experiences are compared to other frameworks they use.
>

No one is talking about it because AG themselves are hardly talking
about it, except in the business press, it seems. All that time
"addressing the enterprise" apparently leaves no time for addressing
the developer community. Other recent Python web projects have been
much more committed to buy-in from developers, with sites geared
towards developers.

They once had mailing lists which were dead, and now they have only
SourceForge forums which are fairly quiet. The help forum is answered
quickly and the AG folks on the forums seem congenial enough, but
there's just not much buzz that I've seen. Every now and again I see
an article mentioning them in the same sentence as "LAMP/Web 2.0
replacing tired old Java". But I have not heard anything from people
who've used AG in production work. Maybe the company's really taking
off and I'm just not aware of it.

I've been following AG and trying their App Builder from the
beginning. I was really intrigued by the development environment and
I'd like to see some of that technology (like BPEL and XForms) in
other Python web frameworks, even if they don't include the same
visual editing capabilities. I have not used AG in anything other than
tutorials and attempts at quick mock-ups, but I often ran into
problems when it came to tasks that were a little outside the typical.
This got frustrating. I'd like to hear from others have experienced,
as well.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Curios issues with Editors

2006-02-09 Thread Robert Boyd
On 9 Feb 2006 04:46:21 -0800, rodmc <[EMAIL PROTECTED]> wrote:
> As I said I am most likely to have made an error, being a newbie and
> all that. Here is the offending function. I said i would not post
> source code but there you go...
>
> As I said I plan to change this function, so it will no doubt be out of
> date quite soon.
>
> def senddata(msg):
> host = "localhost"
> port = 21568
> buf = 1024
> addr = (host,port)
>
> UDPSock = socket(AF_INET,SOCK_DGRAM)
> UDPSock.sendto(msg,addr)
> UDPSock.close()


Are you doing this?
import socket
from socket import AF_INET, SOCK_DGRAM
UDPSock = socket(AF_INET, SOCK_DGRAM)

>>> TypeError: 'module' object is not callable


When you should be calling socket.socket, or from socket import socket.

This code runs in SPE:

from socket import socket, AF_INET, SOCK_DGRAM

host = "localhost"
port = 21568
buf = 1024
addr = (host,port)
msg = 'foo'

UDPSock = socket(AF_INET, SOCK_DGRAM)
UDPSock.sendto(msg,addr)
UDPSock.close()
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: newbie needs serious help

2006-02-09 Thread Robert Boyd
On 2/9/06, Hunsberger, Joy <[EMAIL PROTECTED]> wrote:

> OK. Never used python. I need it to install the Google Sitemap program on
> our WindowsServer2003(SE) server.
>

> I downloaded the Python 2.4.2 msi file, and installed it.
>
> All went well. Now, I have no idea what to do.

> And I tried to launch the python.exe, and type it in there but that doesn't
> work either.

As already mentioned, you were confusing instructions for unix
platforms with the Windows instructions. Installing with the msi and
following the prompts is all that's needed.  You say you launched
python.exe and tried to type 'configure' in it?  If by launching
python.exe means you next saw a command-line like prompt that started
with some info about python, then the >>> prompt characters, that
means you've installed Python and you're done (except for installing
Sitemap). That black window is an interactive shell -- a place to type
Python commands and see a result. You don't have to do that if all you
need is Python installed to support the Google application.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: new wooden door step - fixing and finishing

2006-02-22 Thread Robert Boyd
On 2/22/06, Magnus Lycka <[EMAIL PROTECTED]> wrote:
> jkn wrote:
> > Hi all
>
> Hi!
>
> > I'm considering having a go at replacing the wooden door step to
> > our back door. The original is loose and rotting.
>
> Aha, like old perl scripts.
>
> > I'm sure some of this will be clearer when I remove the (metal) door
> > frame - how is such a step fixed? Vertical frame fixings?
>
> cx_freeze maybe?
>
> > Also, any suggestions for treating/finishing such an item, subject to
> > heavy use, to prevent future rot? I was wondering about treating it
> > wilth liberal amounts of Teak Oil or similar...
>
> Perhaps a list comprehension will do? Or a regular expression?

No, no, first things first -- which IDE or editor should he use, and
which Door Framework, or should he roll his own Door?
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: editor for Python on Linux

2006-02-24 Thread Robert Boyd
On 2/19/06, Mladen Adamovic <[EMAIL PROTECTED]> wrote:
> Hi!
>
> I wonder which editor or IDE you can recommend me for writing Python
> programs. I tried with jEdit but it isn't perfect.
>

I know you said in the thread that you had problems with jEdit for
Python, and didn't care for Emacs or Vi(m).

Still -- in my experience, I've used jEdit for Python for about the
past 5 years, and never had a problem with jEdit's indentation. I did
not set up as a full-fledged IDE with code completion or module
browsing -- I never got the jpydebug plugin working to my
satisfaction. I think jEdit is an excellent editor.

I've tried pretty much all of the well-known editor/IDE options.
Komodo is nice to work with, but expensive (I code for pay, so can't
use the cheap license) compared to even WingIDE. Also, I don't like
the Komodo module browser. The latest pydev for Eclipse is greatly
improved. But with Eclipse you get all the overhead of a
projects-requiring IDE, which may feel like overkill if you're writing
small scripts. Plus, for the Python stuff to work, you have to import
files into a project that's defined as a Python project (not true for
the other full-blown IDEs). For fast and small (opposite of Eclipse),
Scite is nice, but auto-completion can only use words that exist in
the opened file, not the available methods in your namespace.

Despite all the good choices, I have gone back to my old standby, Vim,
alongside IPython.  If you dislike the vim way of editing, there's a
user-friendlier version of Vim called Cream. With vim plus IPython,
you get syntax highlighting, auto-indent, code completion, code
browser (tags), interactive help, ability to run your code and drop
into a debugger, file explorer, etc (and I haven't even gotten all the
vim Python tools installed yet). Add winpdg if you like a more GUI
debugger, and you've got the makings of a great development
environment.

If you really _have_ to have a full-blown IDE with a modern-looking
GUI, with dockable windows and all that, try the Komodo and WingIDE
trials. If you aren't coding for a living, you might want to pay the
price for a non-professional license. Try Eclipse with pydev, too. But
for your intended purpose, you might decide you can use a
lighter-weight setup.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Is Python a Zen language?

2006-03-01 Thread Robert Boyd
On 25 Feb 2006 15:00:37 -0800, Paul Rubin
<"http://phr.cx"@nospam.invalid> wrote:
> "Kay Schluehr" <[EMAIL PROTECTED]> writes:
> > I have at times the impression that many people who talk about Zen
> > philosophy confuse it with some home brewn mixture of platonism with
> > its transgressive move towards the true reality, a stoic hedonism of
> > contemplation and the taoistic being-in-doing. Zen on the other side is
> > more radical: if you erase yourself there is no-one "who" is in the
> > flow but chances are that you and the computer over there are the same
> > thing.
>
> QOTW or something.
> --

How about, cue the "Philosophers' Song"?
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: "Python" is not a good name, should rename to "Athon"

2007-12-05 Thread Robert Boyd
On Dec 4, 2007 10:02 AM, George Sakkis <[EMAIL PROTECTED]> wrote:
> On Dec 3, 12:50 pm, "Russ P." <[EMAIL PROTECTED]> wrote:
>
> > I know this because I've been through it myself. When I tell people
> > that I use Python, I often qualify it by pointing out that it is used
> > extensively at Google. In other words, I'm banking on the reputation
> > of Google to offset the goofiness of the "Python" name.
> >
> > Come to think of it, maybe it should be called "Googlang" or "Googon"?
>
> I see, so Python has to somehow offset the "goofiness" of its name
> while Google can rest on its reputation. Never occured to you that the
> goofiness of the name "Google" is at least an order of magnitude
> greater than Python.

And it never occurred to him that Guido could have named the
programming language Google, and later, the search-engine guys could
have founded a company named Python. He'd be defending his choice of
programming in the Google language by pointing to the reputation of
the Python company, while complaining to a list that Google was a
goofy name.

I'll bet he uses the word "google" as a verb yet doesn't realize how
goofy that sounds to someone unfamiliar with Google? Oh well, I
suppose he'll never try programming in Caml, he'd be too embarrassed
to tell anyone.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: John Bokma harassment

2006-05-24 Thread Robert Boyd
On 24 May 2006 08:29:57 -0700, Rune Strand <[EMAIL PROTECTED]> wrote:
>

> I can just declare my support. Reading Mr. Bokmas comments below [*]
> certainly makes my suport stronger.
>

I sent an email in support of Xah, which I wouldn't have bothered to
do had I not read the rapid-fire posts from Bokma which were abusive,
insulting, and arrogant. Xah's posts often make me roll my eyes, or I
skip them, but sometimes (and more so lately) they have been
intriguing and foster thought-provoking replies. I'd prefer debate and
discussion be fostered, rather than squelched. But what does this
clueless sock-puppet know? ;)
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: New python.org website

2006-03-08 Thread Robert Boyd
On 8 Mar 2006 07:47:15 -0800, Michael Tobis <[EMAIL PROTECTED]> wrote:
> > No one
> > of the complainers and negativists do claim that they could do it much
> > better.
>
> Indeed, I do not have to be able to write a particular program to
> notice it has bugs.
>
> On the other hand, (since I think the design, while not brilliant, is
> good) fixing the logo is something that can be achieved without too
> much fuss.
> [snip]

While I don't dislike the logo, there has been a lot of grumbling
about it. Dislike has been due to aesthetic reasons, or the
resemblance to a cross, or general "it's not as good as x".

So I gave it another close look, and I wondered if this would improve it:

Retain the stylized blue snake. Remove the yellow snake, but keep its
body that's in line horizontally with the blue snake's, and color it
blue. Result: one snake with a horizontal tail that curls up slightly
at the right edge.

Or, again remove the yellow snake, but have the blue snake's tail go
down, and lengthen the head to be flush with the left edge of the
logo. Result: a stylized snake that resembles the letter P. (maybe too
corny)

Both ideas lose the symmetry, but retain the simplicity, of the
current logo. And hopefully will look like a snake instead of tadpoles
(??)

Or, we just grow to like the logo as is and get back to programming ;)

Rob
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python Evangelism

2006-03-09 Thread Robert Boyd
On 3/9/06, rtilley <[EMAIL PROTECTED]> wrote:
> Paul Boddie wrote:
> > I agree with you here, though. I want to be diplomatic here, but Cheese
> > Shop - a name for a package repository, for those who are lost already
> > - is really just a totally stupid name. Yes, I'm aware of the Monty
> > Python sketch, mediocre by the high standards of the Pythons' various
> > other works, but people really shouldn't have to buy into some kind of
> > clique to decode terminology in order to get help, support, updates,
> > and to learn more about the technology they're using. Some people
> > haven't even seen Monty Python...
>
> Even more reason to change the name.
>
> Use a name that has lots of other widely known, well thought of names
> associated with it. The Ruby name is a very good example of this.
> Although, this was accidental and not planned.
>
> People associate the words precious, valued, gem, treasured, stone
> solid, etc. with the word ruby. Also, a good product with a good name
> makes it easy for others to add value by building other good names
> around it.
>
> What do you think of when you hear 'eggs'? Many people think 'rotten',
> 'smelly' or something that made them throw-up once. The point of this is
> that names _matter_ and influence what others think even if only in a
> subconscious way.
>
> I'll leave it at that. I like Python a lot. Technically, it's awesome. I
> don't think the language is bad... just the names associated with it.


This is getting too silly! The name 'Python' is just as good a choice
as many other names. What do _you_ think of when you hear 'Linux'? Or
C? Or 'Perl'? (how many programmers visualize pearls when writing
Perl? I never did). Yet these things got very popular and didn't
suffer due to a non-shiny happy name. Some people think 'cool' when
they think of Pythons (snakes or comedy troupes). Some people think
'delicious' when they hear the word eggs. Some people may think
"girl's name" when they hear Ruby, or think Wizard of Oz and slippers.
It's not as if Python is named lark's vomit.

And re Cheeseshop, yes, it's a poor name when you consider that the
point of the skit was that the cheeseshop _had no cheese_, whose only
purpose was to "deliberately waste your time." Not a great name for a
package library, especially for those in the know of Python humor!

rb
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Cheese Shop: some history for the new-comers

2006-03-14 Thread Robert Boyd
On 3/14/06, A.M. Kuchling <[EMAIL PROTECTED]> wrote:
> On Sun, 12 Mar 2006 10:25:19 +0100,
> Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> > and while you're at it, change "python-dev" to "developers" and
> > "psf" to "foundation" (or use a title on that link).
>
> I've changed the PSF link, but am not sure what to do about the
> python-dev link.  As others have noted, "Developers" is ambiguous
> about whether it's for people who develop in Python or who develop
> Python itself."Core Development"?  (Used on both perl.org and tcl.tk, so
> maybe this is the best option.) "Development Team"?
>
> --amk
>

"Core Development" is good IMO,  or "Language Development". I think
the latter is explicit and distinguishes itself from "using the
language to write programs" aka "Developing in (or with) Python".

Rob
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Calling Web Services from Python

2006-04-10 Thread Robert Boyd
On 4/7/06, Ivan Zuzak <[EMAIL PROTECTED]> wrote:
[snip]
> I need a package/tool that generates web service proxies that will do
> all the low-level HTTP work. (Someting like the WSDL.EXE tool in .NET
> Framework) The ZSI and SOAPy packages [1] that i found (should) have
> those functionalities but either have a bug (SOAPy) or either do not
> work for arbitrary web services (ZSI). I tried the ZSI wsdl2py script on
> a wsdl of one of my services, and the script crashes. I suppose the wsdl
> was "too hard" for the script to parse.

I've successfully used wsdl2py for very complex WSDLs and gotten
better results than with .Net's equivalent! Could you post the error
you got?

I don't know of other Python SOAP modules with WSDL support, sorry.

Rob
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Help...TT Python 2.4 decompiler

2006-04-11 Thread Robert Boyd
On 4/9/06, 이광진 <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I am a sofware engineer in Korea.
>
> Would you kindly give me the way to receive(take) python deccomplier as an
> urgent business?
>
> Thanks for help..^^
>

My wife translated your Korean explanation for me - now I have a
question for the list. It seems you are an embedded systems developer
now working with Python, and you have a question about .pyc files and
how to decompile them?

Can anyone on the list shed light on this? I'm accustomed to having
readable .py files with my .pyc files and I am unfamiliar with any
scenario where one would need to turn the byte-compiled version back
to the text version.

Rob
-- 
http://mail.python.org/mailman/listinfo/python-list