Re: Executing python script stored as a string

2009-09-01 Thread Xavier Ho
I'm afraid I'm not much of a help here, but was there any reason you didn't want to wrap those "string functions" inside a function, and just call the function? Cheers, -Xav -- http://mail.python.org/mailman/listinfo/python-list

Re: Executing python script stored as a string

2009-09-01 Thread Xavier Ho
On Tue, Sep 1, 2009 at 9:29 AM, Ecir Hana wrote: > - if I understood it correctly defining a function in the string and > exec-ing it created the function in current scope. This is something I > really don't want > Oops, missed that point. May I ask what is there you don't want, and what about

Re: An assessment of the Unicode standard

2009-09-01 Thread r
Well despite all my rantings over Unicode i highly doubt Guido will remove it from Python or any other language devs will follow suit. As i pointed out the real issue is not so much a Unicode problem (which is just a monkey patch) but stems from the multi-language problem. I think a correlation c

Re: lambda functions

2009-09-01 Thread alex23
Pierre wrote: > I would like to know if it is possible to define a loop in a lambda > function It is if you can easily replace the for loop with a call to map(): >>> s_minus_1 = lambda s: map(lambda x: x-1, s) >>> test = range(1, 100, 10) >>> test [1, 11, 21, 31, 41, 51, 61, 71, 81, 91] >>>

Re: IDE for python similar to visual basic

2009-09-01 Thread r
On Aug 30, 4:12 pm, Nobody wrote: (snip) > Creating a GUI programmatically is almost always the wrong approach. It > tends to be adopted due to a path of least resistance, rather than any > affirmative reason. so i guess it'e safe to say that you use a GUI builder? :-) -- http://mail.python.org/

Re: win32ui DLL Load Failed

2009-09-01 Thread Gregor Horvath
Am Mon, 31 Aug 2009 12:43:04 -0700 (PDT) schrieb MikeC : > I have a python executable that's failing to load on a user's machine > running Windows XP. My developer machine is also running Windows XP. I > have determined that it is failing when it attempts to load win32ui. > > I have Python 2.6 on

Re: An assessment of the Unicode standard

2009-09-01 Thread Terry Reedy
r wrote: Well despite all my rantings over Unicode i highly doubt Guido will remove it from Python or any other language devs will follow suit. As i pointed out the real issue is not so much a Unicode problem (which is just a monkey patch) but stems from the multi-language problem. Unicode is a

Re: Python Noob - gui module, book, annoying questions

2009-09-01 Thread Mark
On Aug 29, 8:20 am, Pherdnut wrote: > I want to write cross-platform stuff. Any opinions on the best GUI > module for that? The "big three" cross-platform ones are PyQt4, wxPython, and PyGtk. I prefer PyQt4, but I'm biased as you'll see. > I like a good juicy, but concise book for reading on my

Using select.kqueue()

2009-09-01 Thread Ritesh Nadhani
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 to port it to Python: http://www.bpast

Re: PyQt GUI

2009-09-01 Thread Helvin
Having left my problem with this embedding vtk business for a month, I came back to it yesterday, and with a bit more programming knowledge, found that my problem was simply with the python path. All I needed to do was to append, in my GUI file, the path to the python bindings, which came with the

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

2009-09-01 Thread Raji Seetharaman
Hi all, i tried to develop a calculator using glade and python. When i run the script(python calculatorglade.py), i didn't get any errors. A calculator gui is supposed to be displayed. But no window appears. With Ctrl + C, i killed it. I got the following response from the terminal ^CTraceback (m

Re: Executing python script stored as a string

2009-09-01 Thread Ecir Hana
On Sep 1, 5:31 am, Steven D'Aprano wrote: > > You can pass in a global and local namespaces to exec as arguments: > > >>> x = 4 > >>> ns = {'x': 4} > >>> exec "x += 1" in ns > >>> x > 4 > >>> ns['x'] > > 5 > > See the docs for details. Thanks! This is very useful! > You can copy the parts of the

Re: Executing python script stored as a string

2009-09-01 Thread Ecir Hana
On Sep 1, 5:31 am, Steven D'Aprano wrote: > But are you sure you really want to take this approach? exec is up to ten > times slower than just executing the code directly. Oh, you mean because of parsing and compiling? But otherwise it's as fast as regular python? That's perfectly ok. Or maybe

Re: Executing python script stored as a string

2009-09-01 Thread Steven D'Aprano
On Tue, 01 Sep 2009 01:34:33 -0700, Ecir Hana wrote: >> You can copy the parts of the current scope into the namespace you pass >> to exec, then later copy the revised values out again. >> >> But are you sure you really want to take this approach? exec is up to >> ten times slower than just execut

Python word to text

2009-09-01 Thread 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? Thanks in advance. -- mvh Björn -- http://mail.python.org/m

Re: Why does this group have so much spam?

2009-09-01 Thread Andre Engels
On Sun, Aug 30, 2009 at 11:18 AM, David<71da...@libero.it> wrote: > Il Sat, 29 Aug 2009 17:18:46 -0700 (PDT), casebash ha scritto: > >> So much of it could be removed even by simple keyword filtering. > > I think there is only one final solution to the spam pestilence: a tiny tax > on email and pos

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

2009-09-01 Thread anusha k
hi, You forgot to show the window.So in init method of py file and add self.window = self.wTree.get_widget("window_calculator") self.window.show() Njoy the share of Freedom, Anusha Kadambala On Tue, Sep 1, 2009 at 2:04 PM, Raji Seetharaman wrote: > Hi all, > i tried to develop a calculator us

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  1   2   >