Re: An assessment of the Unicode standard

2009-09-01 Thread Gabriel Genellina
En Tue, 01 Sep 2009 19:49:57 -0300, r escribió: On Sep 1, 1:52 pm, Hyuga wrote: (snip) I'd say don't feel the troll, but too late for that I guess.   The only trolls in this thread are you and the others who breaks into MY THREAD just for the knee-jerk reaction of troll calling! Even though

Problem with multiprocessing

2009-09-01 Thread tleeuwenb...@gmail.com
I have a problem using multiprocessing in a simple way. I created a file, testmp.py, with the following contents: --- import multiprocessing as mp p = mp.Pool(5) def f(x): return x * x print map(f, [1,2,3,4,5]) print p.map(f, [1,2,3,4,5]) -

Re: Why does this group have so much spam?

2009-09-01 Thread Terry Reedy
Steven D'Aprano wrote: I have read more that one person advocating leaving one's wi-fi base open for anyone to use as the 'neighborly' thing to do. That's a different kettle of fish. You don't do anybody any harm by paying for Internet access for your neighbours (and anyone driving down the

Re: Seeking a python code browser

2009-09-01 Thread Daniel Fetchinson
> Is there any recommendation for a python code browser (aka xref) tool. > I am a Source Navigator user, but seems like its python support is > flaky. Unless you can help me with that...which is my preferred way. Check out code investigator: http://codeinvestigator.googlepages.com/main HTH, Dani

Re: Python-list Digest, Vol 72, Issue 10

2009-09-01 Thread Raji Seetharaman
Thanks MRAB. Now it works. -- http://mail.python.org/mailman/listinfo/python-list

Re: Daemon process

2009-09-01 Thread Gabriel Genellina
En Wed, 02 Sep 2009 00:57:02 -0300, Shan escribió: I have XML RPC Server listening on a port. This XML RPC Server works fine when i run it as foreground process. All the clients are able to connect with the XML RPC Server. But when i run it as daemon(not using &. I am doing it in python way o

Re: Every thing on a database

2009-09-01 Thread Steven D'Aprano
On Tue, 01 Sep 2009 19:16:29 -0700, zelegolas wrote: > I really like python but I have one thing that I don't like: Every > packages are defined with folder tree. To deploy an application it's not > really clean. > > It's why I thought about "Is that possible to put everything that I need > for m

Re: Why does this group have so much spam?

2009-09-01 Thread r
On Sep 1, 10:16 pm, Steven D'Aprano wrote: (snip) > That's a different kettle of fish. You don't do anybody any harm by > paying for Internet access for your neighbours (and anyone driving down > the street with a laptop and wi-fi). naughty, naughty! somebody's been wardriving! ;-) > Took me t

Re: Every thing on a database

2009-09-01 Thread Gabriel Genellina
En Tue, 01 Sep 2009 23:16:29 -0300, zelegolas escribió: I guess it's may be a strange idea that I will explain: I really like python but I have one thing that I don't like: Every packages are defined with folder tree. To deploy an application it's not really clean. It's why I thought about

using queue

2009-09-01 Thread Tim Arnold
Hi, I've been using the threading module with each thread as a key in a dictionary. I've been reading about Queues though and it looks like that's what I should be using instead. Just checking here to see if I'm on the right path. The code I have currently compiles a bunch of chapters in a book

Daemon process

2009-09-01 Thread Shan
I have XML RPC Server listening on a port. This XML RPC Server works fine when i run it as foreground process. All the clients are able to connect with the XML RPC Server. But when i run it as daemon(not using &. I am doing it in python way only), then no clients are able to connect with the Server

Re: Is behavior of += intentional for int?

2009-09-01 Thread Steven D'Aprano
On Tue, 01 Sep 2009 16:43:06 -0700, Carl Banks wrote: >> Numbers are immutable by nature (math). The number 3.14 remains 3.14 >> whatever you try to do with it. What you call an immutable number is in >> fact a container that contains a number. > > I wouldn't agree with that terminology or logic.

Re: Overriding iadd for dictionary like objects

2009-09-01 Thread Aahz
In article <7f82416a-53be-41b3-9503-1492454cc...@upsg2000gro.googlegroups.com>, RunThePun wrote: >On Sep 1, 3:00=A0am, a...@pythoncraft.com (Aahz) wrote: >> In article .com>, >> RunThePun =A0 wrote: >>>On Aug 30, 10:33=3DA0pm, a...@pythoncraft.com (Aahz) wrote: In article ups=3D >>>.com>, >>

Re: Why does this group have so much spam?

2009-09-01 Thread Steven D'Aprano
On Tue, 01 Sep 2009 19:33:47 -0400, Terry Reedy wrote: > David wrote: >> >> I'm not saying that criminals shouldn't being prosecuted, but we are >> talking of something else: creating and environment that discurages >> criminals, because present enviroment is pretty wild and criminals have >> a bi

Re: Can't set attribute?!

2009-09-01 Thread dolgion ch
alex23 u were right with ur suspicion about the RPCGateway, i hadn't seen that there were attributes with the names db, uid, and password already set. I resolved the issue by simply giving the attributes different names :P the problem with the slots wasn't going to occur since i was talking about

Re: Can't set attribute?!

2009-09-01 Thread alex23
dolgion ch wrote: > the NETRPCGateway attribute self.db can't be set? why not? i've tried > changing the RPCSession login function > to set the variable like this as well: > > self.gateway.db = db > > which doesn't work either, same exception. > > any suggestions? The problem is this line in

Can't set attribute?!

2009-09-01 Thread dolgion ch
Hi there, i'm new to Python, and i don't understand why following exception occurs in this code: class NETRPCGateway(RPCGateway): """NETRPC Implementation. """ def __init__(self, host, port): self.host = host self.port = port super(NETRPCGateway, self).__init_

Every thing on a database

2009-09-01 Thread zelegolas
Hi I guess it's may be a strange idea that I will explain: I really like python but I have one thing that I don't like: Every packages are defined with folder tree. To deploy an application it's not really clean. It's why I thought about "Is that possible to put everything that I need for my pyt

Re: Q on naming nested packages/modules

2009-09-01 Thread Stephen Hansen
> >> An implication of all this is that if now I wanted to create a new > >> module x.y.z.w, this means that the previously "leaf"-module x.y.z > >> would become "non-leaf". In other words, I'd have to: > >> > >> 1. create the new directory x/y/z > >> 2. *rename* the file x/y/z.py to x/y/z/__init_

Re: Why does this group have so much spam?

2009-09-01 Thread r
On Sep 1, 6:33 pm, Terry Reedy wrote: (snip) > I have read at least one person saying he did not mind his machine being > used to send out spam. That's "aiding and abetting" and can be prosecuted! > I have read more that one person advocating > leaving one's wi-fi base open for anyone to use as

Re: Why does this group have so much spam?

2009-09-01 Thread r
On Sep 1, 6:33 pm, Terry Reedy wrote: (snip) > I have read at least one person saying he did not mind his machine being > used to send out spam. That's "aiding and abetting" and can be prosecuted! > I have read more that one person advocating > leaving one's wi-fi base open for anyone to use as

Re: Why does this group have so much spam?

2009-09-01 Thread Grant Edwards
On 2009-09-01, Terry Reedy wrote: > David wrote: > >> I'm not saying that criminals shouldn't being prosecuted, but >> we are talking of something else: creating and environment >> that discurages criminals, because present enviroment is >> pretty wild and criminals have a big advantage. The mail-

Re: PyGTK problems after Linux update...

2009-09-01 Thread barcaroller
"barcaroller" wrote in message news:h7ev9g$dc...@news.eternal-september.org... > Okay, I won't disagree, but how do I fix this? Never mind. The latest update today included a new pygtk which seems to have fixed the problem. All is good now. -- http://mail.python.org/mailman/listinfo/pytho

Re: Overriding iadd for dictionary like objects

2009-09-01 Thread RunThePun
On Sep 1, 3:00 am, a...@pythoncraft.com (Aahz) wrote: > In article > , > > > > > > RunThePun   wrote: > >On Aug 30, 10:33=A0pm, a...@pythoncraft.com (Aahz) wrote: > >> In article >.com>, > >> RunThePun =A0 wrote: > > >>>I made a DictMixin where the keys are filenames and the values are the > >>>f

Re: Why does this group have so much spam?

2009-09-01 Thread Steven D'Aprano
On Tue, 01 Sep 2009 20:48:19 +0200, David wrote: > Il Tue, 1 Sep 2009 11:50:14 +0200, Andre Engels ha scritto: > > >> What about mailing lists? There exist well-functioning mailing lists >> with thousands of subscribers. Being a posting member of those will >> significantly increase your interne

python module for data comparison of 2 MySQL servers

2009-09-01 Thread none
I have 2 MySQL servers in 2 different data centers. Between them, there is data replication setup. Is there a python tool so I can do data comparison for daily records? Basically, just access both servers and do a diff in memory and print out records. Thanks -- http://mail.python.org/mailman/

Re: Is behavior of += intentional for int?

2009-09-01 Thread Terry Reedy
Steven D'Aprano wrote: I'm asking what *problem* you are trying to solve with mutable numbers, where immutable numbers are not satisfactory. The only answer I can imagine is that you're worried about the overhead of creating new integer objects instead of just flipping a few bits in an existi

Re: An assessment of the Unicode standard

2009-09-01 Thread Rami Chowdhury
On Tue, 01 Sep 2009 16:29:54 -0700, r wrote: [snip: variety of almost-alliterative epithets] Well, if you admit you set out to offend people, then you're trolling. -- Rami Chowdhury "Never attribute to malice that which can be attributed to stupidity" -- Hanlon's Razor 408-597-7068 (US)

Re: Is behavior of += intentional for int?

2009-09-01 Thread Carl Banks
On Sep 1, 10:40 am, Piet van Oostrum wrote: > > zaur (z) wrote: > >z> On 29 авг, 16:45, zaur wrote: > >>> Python 2.6.2 (r262:71600, Apr 16 2009, 09:17:39) > >>> [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin > >>> Type "copyright", "credits" or "license()" for more information.>>> a

Re: Why does this group have so much spam?

2009-09-01 Thread Terry Reedy
David wrote: I'm not saying that criminals shouldn't being prosecuted, but we are talking of something else: creating and environment that discurages criminals, because present enviroment is pretty wild and criminals have a big advantage. The mail-tax proposal aims to change this situation. I

Re: An assessment of the Unicode standard

2009-09-01 Thread r
On Sep 1, 6:06 pm, "Rami Chowdhury" wrote: (snip: trolling tirade) I don't think when i started this thread i had any intentions what-so- ever of pleasing asinine-anthropologist, sociology-sickos, or neo-nazi- linguist. No, actually i am quite sure of that is the case! -- http://mail.python.org/

Re: An assessment of the Unicode standard

2009-09-01 Thread Steven D'Aprano
On Tue, 01 Sep 2009 08:35:46 -0700, Rami Chowdhury wrote: >> SI is preferred, >> but Imperial is permitted. > > IME most people in the UK under the age of 40 can speak SI without > trouble. > > On the other hand, "let's nip down to the pub for 580ml of beer" just > doesn't have the right ring to

Re: An assessment of the Unicode standard

2009-09-01 Thread Rami Chowdhury
The only trolls in this thread are you and the others who breaks into MY THREAD just for the knee-jerk reaction of troll calling! How does this make one's opinion any less relevant? I think the fact that you are coming across in this thread as closed-minded, bigoted, and uninformed gives eve

Re: Is behavior of += intentional for int?

2009-09-01 Thread Steven D'Aprano
On Tue, 01 Sep 2009 07:04:09 -0700, zaur wrote: > On 1 сен, 03:31, Steven D'Aprano > wrote: >> On Mon, 31 Aug 2009 10:21:22 -0700, zaur wrote: >> > As a result of this debate is not whether we should conclude that >> > there should be two types of integers in python: 1) immutable >> > numbers, wh

Re: An assessment of the Unicode standard

2009-09-01 Thread r
On Sep 1, 1:52 pm, Hyuga wrote: (snip) > I'd say don't feel the troll, but too late for that I guess.   The only trolls in this thread are you and the others who breaks into MY THREAD just for the knee-jerk reaction of troll calling! Even though you *did* offer some argument to one of the subject

Re: port of GWT GChart to python pyjamas

2009-09-01 Thread lkcl
> been ported already, enough to show that the libray is in a mostly > useable state, even after only three days. pie-charts are proving > slightly problematic (as GChartExample24, which is a pie chart editor, > shows). fixed. demo at : http://pyjs.org/examples/gcharttestapp/output/GChartTestAp

port of GWTCanvas to python / pyjamas

2009-09-01 Thread lkcl
as part of the recent porting of GGhart to pyjamas, a massive performance gain can be had by using SVG Canvas. unfortunately, that meant porting GWTCanvas to pyjamas as well. this is also progressing well: http://pyjs.org/examples/gwtcanvas/ if anyone would like to help with the porting effort a

fastPATX Lion now out for your speedy web browsing needs!

2009-09-01 Thread patx
fastPATX Lion is now out! New features include, tabbed browsing, less dependencies, and and a better download manager. The new version is by far the most stable! There was only one crash recored in the fastPATX Lion-Alpha testing! The bug that caused the crash has also been taking care of! fastPATX

Re: Q on naming nested packages/modules

2009-09-01 Thread kj
In "Rami Chowdhury" writes: >> An implication of all this is that if now I wanted to create a new >> module x.y.z.w, this means that the previously "leaf"-module x.y.z >> would become "non-leaf". In other words, I'd have to: >> >> 1. create the new directory x/y/z >> 2. *rename* the file x/y/z

Re: Why does this group have so much spam?

2009-09-01 Thread David
Il Mon, 31 Aug 2009 20:06:54 -0700 (PDT), r ha scritto: > Is the car owner not a victim too? :). i am ok with the filthy > insurance company paying as long as the owners rates don't increase. He is, unless he left keys in the cockpit, but he is 'less victim' of the people involved in the accident

Re: Python community buildbot page still 503

2009-09-01 Thread Martin v. Löwis
> On reading your previous email, I assumed that someone (you, perhaps) > had tried to contact Grig Gheorghiu (he was in charge of it last I > heard) to let him know that some maintenance was required and that > someone (you, perhaps) only made the decision to remove the community > buildbots after

Re: Python community buildbot page still 503

2009-09-01 Thread exarkun
On 07:27 pm, mar...@v.loewis.de wrote: If I am not mistaken http://python.org/dev/buildbot/community/all/ has been down since python.org had its harddrive issues. Anyone know a time line on getting it back up and running. This service is, unfortunately, unmaintained. It broke when I upgraded

Re: An assessment of the Unicode standard

2009-09-01 Thread Terry Reedy
r wrote: On Sep 1, 2:39 am, Terry Reedy wrote: (snip) There is, of course, an international system of measure. The US is the only major holdout. (I recall Burma, or somesuch, is another.) An interesting proposition would be for the US to adopt the metric system in exchange for the rest of the w

ANN: eGenix mxODBC - Python ODBC Database Interface 3.0.3

2009-09-01 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix.com mxODBC - Python ODBC Database Interface Version 3.0.3 mxODBC is our commercially supported Python extension providing ODBC database connectivity to Python

Re: copy object?

2009-09-01 Thread Terry Reedy
lallous wrote: Hello I am new to python and have some questions. How to copy objects using another method than this: class op: def __init__(self, op): What do you expect op to be? Certainly not the class 'op'. for x in dir(op): if x[:2] == "__": cont

Re: Q on naming nested packages/modules

2009-09-01 Thread Rami Chowdhury
An implication of all this is that if now I wanted to create a new module x.y.z.w, this means that the previously "leaf"-module x.y.z would become "non-leaf". In other words, I'd have to: 1. create the new directory x/y/z 2. *rename* the file x/y/z.py to x/y/z/__init__.py 3. create the file x/y/

Re: An assessment of the Unicode standard

2009-09-01 Thread r
On Sep 1, 2:39 am, Terry Reedy wrote: (snip) > There is, of course, an international system of measure. The US is the > only major holdout. (I recall Burma, or somesuch, is another.) An > interesting proposition would be for the US to adopt the metric system > in exchange for the rest of the world

Re: Q on naming nested packages/modules

2009-09-01 Thread Terry Reedy
kj wrote: But now suppose that I want to factor out some code in spam/ham.py to a helper module. (The reason behind factoring out this new module is to "declutter" spam/ham.py, and improve its readibility.) My instinct (from my Perl past) is to put this factored-out code in a file spam/ham/egg

Re: An assessment of the Unicode standard

2009-09-01 Thread Hyuga
On Aug 29, 8:20 pm, John Machin wrote: > On Aug 30, 8:46 am, r wrote: > > > > > Take for instance the Chinese language with it's thousands of > > characters and BS, it's more of an art than a language.  Why do we > > need such complicated languages in this day and time. Many languages > > have be

Re: Why does this group have so much spam?

2009-09-01 Thread David
Il Tue, 1 Sep 2009 11:50:14 +0200, Andre Engels ha scritto: > What about mailing lists? There exist well-functioning mailing lists > with thousands of subscribers. Being a posting member of those will > significantly increase your internet bill under your proposal. It's an implementation issue,

Re: Python community buildbot page still 503

2009-09-01 Thread Martin v. Löwis
> If I am not mistaken http://python.org/dev/buildbot/community/all/ has > been down since python.org had its harddrive issues. > > Anyone know a time line on getting it back up and running. This service is, unfortunately, unmaintained. It broke when I upgraded the buildbot master to a new code b

Re: executable path finding

2009-09-01 Thread ryles
On Aug 31, 12:37 pm, koranthala wrote: > On Aug 31, 9:07 pm, "Diez B. Roggisch" wrote: > > > > > koranthala wrote: > > > Hi, > > >     I am creating a python application using py2exe. I am facing a > > > problem which I am not sure how to solve. > > >     The application contains many other files

Seeking a python code browser

2009-09-01 Thread Medi
Is there any recommendation for a python code browser (aka xref) tool. I am a Source Navigator user, but seems like its python support is flaky. Unless you can help me with that...which is my preferred way. Thanks Medi -- http://mail.python.org/mailman/listinfo/python-list

Re: Is behavior of += intentional for int?

2009-09-01 Thread Piet van Oostrum
> zaur (z) wrote: >z> On 29 авг, 16:45, zaur wrote: >>> Python 2.6.2 (r262:71600, Apr 16 2009, 09:17:39) >>> [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin >>> Type "copyright", "credits" or "license()" for more information.>>> a=1 >>> >>> x=[a] >>> >>> id(a)==id(x[0]) >>> True >>>

Re: Python word to text

2009-09-01 Thread BJörn Lindqvist
2009/9/1 Tino Wildenhain : > Am 01.09.2009 13:42, schrieb Nitebirdz: >> >> On Tue, Sep 01, 2009 at 11:38:30AM +0200, BJörn Lindqvist wrote: >>> >>> Hello everybody, >>> >>> I'm looking for a pure Python solution for converting word documents >>> to text. App Engine doesn't allow external programs,

[ANN] doit: bringing the power of build-tools to execute any kind of task

2009-09-01 Thread schettino72
doit 0.3 released! doit comes from the idea of bringing the power of build-tools to execute any kind of task. It will keep track of dependencies between "tasks" and execute them only when necessary. It was designed to be easy to use and "get out of your way". http://pypi.python.org/pypi/doit/0.3.

Re: Q on naming nested packages/modules

2009-09-01 Thread Carl Banks
On Sep 1, 8:58 am, kj wrote: > I'm having a hard time getting the hang of Python's package/module > scheme.  I'd like to find out what's considered best practice when > dealing with the scenario illustrated below. > > The quick description of the problem is: how can I have two nested > modules, sp

Re: Q on naming nested packages/modules

2009-09-01 Thread Ethan Furman
kj wrote: In kj writes: I'm having a hard time getting the hang of Python's package/module scheme. I'd like to find out what's considered best practice when dealing with the scenario illustrated below. The quick description of the problem is: how can I have two nested modules, spam.ham

Re: Q on naming nested packages/modules

2009-09-01 Thread kj
In kj writes: >I'm having a hard time getting the hang of Python's package/module >scheme. I'd like to find out what's considered best practice when >dealing with the scenario illustrated below. >The quick description of the problem is: how can I have two nested >modules, spam.ham and spam.ham

Re: Q on naming nested packages/modules

2009-09-01 Thread Benjamin Kaplan
On Tue, Sep 1, 2009 at 11:58 AM, kj wrote: > > > > I'm having a hard time getting the hang of Python's package/module > scheme.  I'd like to find out what's considered best practice when > dealing with the scenario illustrated below. > > The quick description of the problem is: how can I have two n

Re: Python3: hex() on arbitrary classes

2009-09-01 Thread Philipp Hagemeister
Mark Dickinson wrote: > (...) If you want to be > able to interpret instances of X as integers in the various Python > contexts that expect integers (e.g., hex(), but also things like list > indexing), you should implement the __index__ method: Thanks. Somehow forgot this magic method and deleted i

Re: AttributeError: 'NoneType' object has no attribute 'get_text'

2009-09-01 Thread MRAB
Raji Seetharaman wrote: Hi all, i worked out python and glade example program to add two numbers and display its output from the following link http://www.dreamincode.net/forums/showtopic63885.htm When i run the script, i received the following error python add.py Traceback (most recent call la

Re: Python3: hex() on arbitrary classes

2009-09-01 Thread Stephen Hansen
On Tue, Sep 1, 2009 at 8:22 AM, Philipp Hagemeister wrote: > class X(object): >def __int__(self): return 42 >def __hex__(self): return '2b' #sic > > hex(X()) > > > What would you expect? Python2 returns '2b', but python 3(74624) throws > TypeError: 'X' object cannot be interpreted as an in

Re: Python3: hex() on arbitrary classes

2009-09-01 Thread Mark Dickinson
On Sep 1, 4:22 pm, Philipp Hagemeister wrote: > class X(object): >     def __int__(self): return 42 >     def __hex__(self): return '2b' #sic > > hex(X()) > > What would you expect? Python2 returns '2b', but python 3(74624) throws > TypeError: 'X' object cannot be interpreted as an integer. Why do

Re: Permanently adding to the Python path in Ubuntu

2009-09-01 Thread David C. Ullrich
When I wanted to set PYTHONPATH I had the advantage of knowing nothing about how Linux/Ubuntu was supposed to work, so I tried everything. ~/.profile worked for me. In article , Chris Colbert wrote: > I'm having an issue with sys.path on Ubuntu. I want some of my home > built packages to oversh

Q on naming nested packages/modules

2009-09-01 Thread kj
I'm having a hard time getting the hang of Python's package/module scheme. I'd like to find out what's considered best practice when dealing with the scenario illustrated below. The quick description of the problem is: how can I have two nested modules, spam.ham and spam.ham.eggs? Suppose I h

Python3: hex() on arbitrary classes

2009-09-01 Thread Philipp Hagemeister
class X(object): def __int__(self): return 42 def __hex__(self): return '2b' #sic hex(X()) What would you expect? Python2 returns '2b', but python 3(74624) throws TypeError: 'X' object cannot be interpreted as an integer. Why doesn't python convert the object to int before constructing t

Re: An assessment of the Unicode standard

2009-09-01 Thread Rami Chowdhury
SI is preferred, but Imperial is permitted. IME most people in the UK under the age of 40 can speak SI without trouble. On the other hand, "let's nip down to the pub for 580ml of beer" just doesn't have the right ring to it ;-) On Tue, 01 Sep 2009 06:17:00 -0700, Matthew Barnett wrote:

Re: [ANN] Pida 0.6beta3

2009-09-01 Thread Gary Herron
poelzi wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 We are proud to announce the hopfully last beta of Pida 0.6. [1] Wouldn't this be a good time to tell us what Pida does? It was a long time since beta2 and a lot of changes happened since then: == Core Highlights == • multiproc

Re: Python word to text

2009-09-01 Thread Nitebirdz
On Tue, Sep 01, 2009 at 03:20:29PM +0200, Tino Wildenhain wrote: >> >> A quick search returned this: >> >> http://code.activestate.com/recipes/279003/ >> >> >> Did you give it a try? > > Thats a funny advice. Did you read that receipe? ;-) > "Requires the Python for Windows extensions, and MS Word.

Re: Logging contents of IRC channel

2009-09-01 Thread Dan Upton
http://www.irchelp.org/irchelp/rfc/rfc.html describes (more or less) the protocol. It's actually pretty easy to write something which can connect and monitor one or more channels on a server--that's how I learned network programming in Java many moons ago. I'd say look at the RFC and start off lo

AttributeError: 'NoneType' object has no attribute 'get_text'

2009-09-01 Thread Raji Seetharaman
Hi all, i worked out python and glade example program to add two numbers and display its output from the following link http://www.dreamincode.net/forums/showtopic63885.htm When i run the script, i received the following error python add.py Traceback (most recent call last): File "add.py", line

Re: Ban Xah Lee

2009-09-01 Thread markspace
Gernot Hassenpflug wrote: Crap, what the hell are *you* doing here, Arved. This is so frightening! LOL Gernot (shocked to find people have other interests, hehe) Thanks for cross posting this to five different newsgroups. Your garbage is not wanted here, here being clj.programmer. Learn

An iteration idiom (Was: Re: [Guppy-pe-list] loading files containing multiple dumps)

2009-09-01 Thread Sverker Nilsson
A question arose on guppy-pe-list about how to iterate over objects returned one by one by a method (load) called repeatedly. I defined a generator to do this (loadall), but this seems unwieldy in general. Is there a common idiom here that can usefully be encapsulated in a general method? On Mon,

Re: An assessment of the Unicode standard

2009-09-01 Thread steve
I'm a lurker on this list and am here more to learn rather than teach and although better sense tells me not to feed the troll -- I'll bite. Mainly because, r, unlike XL does seem to offer help every one in a while. So, ... On 08/31/2009 03:58 AM, r wrote: On Aug 30, 2:05 pm, Paul Boddie wrot

Python community buildbot page still 503

2009-09-01 Thread Graeme Glass
If I am not mistaken http://python.org/dev/buildbot/community/all/ has been down since python.org had its harddrive issues. Anyone know a time line on getting it back up and running. I have mailed the buildbot mailing list, but heard nothing for a week, so thought I would try here. Kind regards,

Re: Python word to text

2009-09-01 Thread Gabriel
2009/9/1 BJörn Lindqvist : > Hello everybody, > > I'm looking for a pure Python solution for converting word documents > to text. App Engine doesn't allow external programs, which means that > external programs like catdoc and antiword can't be used. Anyone know > of any? > You could use the googl

copy object?

2009-09-01 Thread lallous
Hello I am new to python and have some questions. How to copy objects using another method than this: class op: def __init__(self, op): for x in dir(op): if x[:2] == "__": continue setattr(self, x, getattr(op, x)) o = op(src) I tried to copy wi

Re: Is behavior of += intentional for int?

2009-09-01 Thread zaur
On 1 сен, 03:31, Steven D'Aprano wrote: > On Mon, 31 Aug 2009 10:21:22 -0700, zaur wrote: > > As a result of this debate is not whether we should conclude that there > > should be two types of integers in python: 1) immutable numbers, which > > behave as constant value; 2) mutable numbers, which b

Re: Python word to text

2009-09-01 Thread Tim Golden
BJörn Lindqvist wrote: 2009/9/1 Nitebirdz : On Tue, Sep 01, 2009 at 11:38:30AM +0200, BJörn Lindqvist wrote: Hello everybody, I'm looking for a pure Python solution for converting word documents to text. App Engine doesn't allow external programs, which means that external programs like catdoc

Re: Python word to text

2009-09-01 Thread Tino Wildenhain
Am 01.09.2009 13:42, schrieb Nitebirdz: On Tue, Sep 01, 2009 at 11:38:30AM +0200, BJörn Lindqvist wrote: Hello everybody, I'm looking for a pure Python solution for converting word documents to text. App Engine doesn't allow external programs, which means that external programs like catdoc and

Re: Python word to text

2009-09-01 Thread BJörn Lindqvist
2009/9/1 Nitebirdz : > On Tue, Sep 01, 2009 at 11:38:30AM +0200, BJörn Lindqvist wrote: >> Hello everybody, >> >> I'm looking for a pure Python solution for converting word documents >> to text. App Engine doesn't allow external programs, which means that >> external programs like catdoc and antiwo

Re: Object Reference question

2009-09-01 Thread Bruno Desthuilliers
Ethan Furman a écrit : (snip) The best answer I can give is that you do not want to use 'name' to reference the object itself, but only for printing/debugging purposes. Which is what the OP stated !-) 'name' is just a label for your object, and not necessarily the only label; that particul

Re: An assessment of the Unicode standard

2009-09-01 Thread Matthew Barnett
Kurt Mueller wrote: Am 01.09.2009 um 09:39 schrieb Terry Reedy: But this same problem also extends into monies, nation states, units of measure, etc. There is, of course, an international system of measure. The US is the only major holdout. (I recall Burma, or somesuch, is another.) An inte

Re: Select column from a list

2009-09-01 Thread hoffik
Wow, I didn't expect so many answers and possibilities! I'll try to go through it and surely find the best solution for me :jumping: Thank you all! -- View this message in context: http://www.nabble.com/Select-column-from-a-list-tp25185508p25240207.html Sent from the Python - python-list mailin

Re: Python and glade program - without errors but didn't display anything

2009-09-01 Thread Raji Seetharaman
Thanks Anusha. Now my calculator gui window is displayed. -- http://mail.python.org/mailman/listinfo/python-list

Re: IDLE file saving problem

2009-09-01 Thread r
On Aug 23, 4:12 am, Harald Luessen wrote: (snip) > When the cursor is somewhere in the white space at the > beginning of the lines and I use Ctrl-rightArrow  [ctrl]-[->] > to go to the first word in the line then IDLE skips > the position with the first non-whitespace letter and places > the curso

Re: An assessment of the Unicode standard

2009-09-01 Thread r
On Aug 30, 1:08 pm, Nobody wrote: (snip) > Because that would be the likely consequence of such a stance. Japanese > websites will continue to use Shift-JIS, Japanese cellphones (or > Scandanavian cellphones aimed at the Japanese market, for that matter) > will continue to render websites which us

Re: Why does this group have so much spam?

2009-09-01 Thread David
Il Mon, 31 Aug 2009 21:04:27 +0200, David ha scritto: > Obviously the owner can not be charged I mean: can not be jailed for crimes made by the thief using his car. D. -- http://mail.python.org/mailman/listinfo/python-list

Re: Why does this group have so much spam?

2009-09-01 Thread David
Il Sun, 30 Aug 2009 16:08:46 -0700 (PDT), r ha scritto: > Yes i agree but your logic is flawed. If someone cuts my brake lines > and i cannot stop who is to blame? Or if someone throws nails on the > highway and i crash, who is to blame? Obviously you cannot blame the > car owner. However if i le

Re: Why does this group have so much spam?

2009-09-01 Thread David
Il Sun, 30 Aug 2009 19:13:38 +0100, Nobody ha scritto: > Apart from the impossibility of implementing such a tax, it isn't going to > discourage spammers when the tax will be paid by the owner of the > compromised PC from which they're sending their spam. I don't agree. Each computer connected to

Re: Determining the metaclass

2009-09-01 Thread casebash
Thanks, I am silly > > > I cannot determine if a class is an instance of a particular > > metaclass. Here is my best attempt > > > >>> class tmp(type): > > > ...     pass > > ...>>> def c(metaclass=tmp): > > > ...     pass > > ...>>> isinstance(c, tmp) > > False > > >>> isinstance(c.__class__, tm

Re: An assessment of the Unicode standard

2009-09-01 Thread Paul Boddie
On 31 Aug, 00:28, r wrote: > > I said it before and i will say it again. I DON"T CARE WHAT LANGUAGE > WE USE AS LONG AS IT IS A MODERN LANGUAGE FOUNDED ON IDEALS OF > SIMPLICITY [Esperanto] > English is by far already the de-facto lingua franca throughout the > world. You don't care, but he

Re: An assessment of the Unicode standard

2009-09-01 Thread Paul Boddie
On 30 Aug, 18:00, r wrote: > > Hold the phone Paul you are calling me a retarded bigot and i don't > much appreciate that. I think you are completely misinterpreting my > post. i and i ask you read it again especially this part... I didn't call you a "retarded bigot", and yet I did read your post

Re: An assessment of the Unicode standard

2009-09-01 Thread Kurt Mueller
Am 01.09.2009 um 09:39 schrieb Terry Reedy: But this same problem also extends into monies, nation states, units of measure, etc. There is, of course, an international system of measure. The US is the only major holdout. (I recall Burma, or somesuch, is another.) An interesting proposition

Re: map

2009-09-01 Thread Jan Kaliszewski
Another possibilities, if you really *desire* to use map() and not list-comprehension (I'd prefer the latter), are: # Python 2.x: map(func, mylist, itertools.repeat('booHoo', len(mylist))) # Python 3.x, where map() works like Py2.x's itertools.imap(): list(map(func, mylist, itertools.repeat('boo

Re: Using select.kqueue()

2009-09-01 Thread exarkun
On 07:51 am, rite...@gmail.com wrote: Hi I am trying to use kqueue. Since, I am on v2.5, I use the baclport: http://pypi.python.org/pypi/select26/0.1a3. Following the example at: http://julipedia.blogspot.com/2004/10/example-of-kqueue.html (which works perfectly as it tells all events), I tried

Re: Python word to text

2009-09-01 Thread Nitebirdz
On Tue, Sep 01, 2009 at 11:38:30AM +0200, BJörn Lindqvist wrote: > Hello everybody, > > I'm looking for a pure Python solution for converting word documents > to text. App Engine doesn't allow external programs, which means that > external programs like catdoc and antiword can't be used. Anyone kn

Re: Executing python script stored as a string

2009-09-01 Thread Hendrik van Rooyen
On Tuesday 01 September 2009 11:32:29 Steven D'Aprano wrote: > Possibly there is a way to have a thread halt itself after a certain > amount of time? I'm not an expert on threads, I've hardly ever used them. Not automagically, as far as I can see. You are on your own if you want to somehow kill a

Re: Executing python script stored as a string

2009-09-01 Thread Ecir Hana
On Sep 1, 11:32 am, Steven D'Aprano wrote: > > But I don't quite understand why is it security > > risk. How is it different to run: > > exec 'format(your_hdd)' > > than: > > /bin/python format.py > > ? > > It's not different. But read what I said -- "if the string is coming from > an UNTRUSTED so

  1   2   >