ANN: PyEnchant 1.4.0

2008-04-19 Thread Ryan Kelly
Hi All, I'm pleased to announce the release of PyEnchant version 1.4.0. This version brings compatibility with the latest release of the underlying enchant library, including some new features. Cheers, Ryan ChangeLog for 1.4.0: * upgrade to enchant v1.4.0,

Inheritance confusion

2008-04-19 Thread Hook
Hi, I'm having a problem with multiple inheritance - it's clearly something I've missed, but the web pages and books that I've consulted aren't helping, so I'll throw myself on the mercy and collective wisdom of Usenet! I've got 4 files (what I'll show has the active content removed for

Re: Inheritance confusion

2008-04-19 Thread Kay Schluehr
On 19 Apr., 08:37, Hook [EMAIL PROTECTED] wrote: Traceback (most recent call last): File ./3.py, line 20, in module Obj.Connect ('Database') File /mnt/isis/Projects/Python/Learning/DB_m.py, line 102, in Connect self.TRACE (DB::Connect ( + database + , + mode) File

Re: Inheritance confusion

2008-04-19 Thread Peter Otten
Hook wrote: When I run the script I get this: Traceback (most recent call last): File ./3.py, line 20, in module Obj.Connect ('Database') File /mnt/isis/Projects/Python/Learning/DB_m.py, line 102, in Connect self.TRACE (DB::Connect ( + database + , + mode) File

Re: Inheritance confusion

2008-04-19 Thread 7stud
On Apr 19, 12:37 am, Hook [EMAIL PROTECTED] wrote: Hi, I'm having a problem with multiple inheritance - it's clearly something I've missed, but the web pages and books that I've consulted aren't helping, so I'll throw myself on the mercy and collective wisdom of Usenet! I've got 4 files

Re: Inheritance confusion

2008-04-19 Thread Mark Shroyer
In article [EMAIL PROTECTED], Hook [EMAIL PROTECTED] wrote: Hi, I'm having a problem with multiple inheritance - it's clearly something I've missed, but the web pages and books that I've consulted aren't helping, so I'll throw myself on the mercy and collective wisdom of Usenet!

Re: Inheritance confusion

2008-04-19 Thread Ben Finney
Hook [EMAIL PROTECTED] writes: I'm having a problem with multiple inheritance You aren't alone. Multiple inheritance (MI) is difficult to implement, and once implemented, usually difficult to understand and sometimes counterintuitive. I recommend you read and absorb the article The Truth about

www.tradertrade.com(accept paypal).buy sell nike shox R4sneaker trainer sports shoes.nike jordan airforce one shoes nike airmax shox shoes gucci prada timberland shoes

2008-04-19 Thread tradertrade13
We (www.tradertrade.com) china wholesale and retail new Nike Sneakers,Air Jordan Sneakers,air force ones 1s,Nike Dunks SB,Bape Sta from nike outlets and factory stores,also Nike wholesale - Jordan Shoes we supply nike sneakers jordan sneaker air force 1s ... Featuring unique gift ideas for

Re: How to print a unicode string?

2008-04-19 Thread Martin v. Löwis
Is it possible to change an environment variable, so that Python uses this coding automatically? No. Or pass a command-line argument when Emacs python-mode invokes the Python interpreter? No. Or execute this line of Python in a startup script which is invoked whenever a new Python

Re: Tkinter, getting canvas-object, how?

2008-04-19 Thread Rafał Wysocki
[EMAIL PROTECTED] napisał(a): so i load a gif onto a canvas and when i click the canvs i want to get the color of the pixel that is clicked. so i need to ge the object im clicking. i was told in another thread to use find_withtag or find_closest but it is not working, maybe im using the

Re: python setup.py install on Vista?

2008-04-19 Thread Steve Holden
Patrick Mullen wrote: On Fri, Apr 18, 2008 at 4:29 PM, globalrev [EMAIL PROTECTED] wrote: type python setup.py install that is used in most addons for python. well using windows vista, where the h*** am i supposed to type this? if it is not doable in windows, what do i have to do

Re: py3k concerns. An example

2008-04-19 Thread Carl Banks
On Apr 18, 11:58 am, Aaron Watters [EMAIL PROTECTED] wrote: Why is the migration to py3k a concern? For example I have libraries which use string%dictionary substitution where the dictionary is actually an object which emulates a dictionary. The __getitem__ for the object can be very

Re: Python Workshop

2008-04-19 Thread m.moghimi
On Apr 14, 9:53 pm, m.moghimi [EMAIL PROTECTED] wrote: On Apr 14, 5:15 pm, Twayne [EMAIL PROTECTED] wrote: Hi, We are to hold a workshop about python (introduction). It will be two one hour and half sessions. I wanted to know which subjects do you suggest to be presented and is

Re: Python 2.5 adoption

2008-04-19 Thread Carl Banks
On Apr 18, 2:08 pm, Joseph Turian [EMAIL PROTECTED] wrote: How widely adopted is python 2.5? We are doing some development, and have a choice to make: a) Use all the 2.5 features we want. b) Maintain backwards compatability with 2.4. So I guess the question is, does anyone have a sense of

Re: Python 2.5 adoption

2008-04-19 Thread Graham Breed
On Apr 19, 3:16 am, Joseph Turian [EMAIL PROTECTED] wrote: Basically, we're planning on releasing it as open-source, and don't want to alienate a large percentage of potential users. How about Java users? Jython was recently at 2.2 (still is for all I know). I'm pleased they've got that far

Mondaine Women's Railway watch #A669.30305.11SBC - Replica Watch Fake

2008-04-19 Thread watches0802
Mondaine Women's Railway watch #A669.30305.11SBC - Replica Watch Fake Mondaine Women's Railway watch #A669.30305.11SBC Link : http://www.watchesprice.net/Replica-Mondaine-10291.html Replica Watches Home : http://www.watchesprice.net/ Replica Mondaine Brands :

Bulova Watches, Bulova Ladies' Sport Marine Star Mother of Pearl Dial Diamond Bezel Women's Watch - Replica Watch Fake

2008-04-19 Thread watches0802
Bulova Watches, Bulova Ladies' Sport Marine Star Mother of Pearl Dial Diamond Bezel Women's Watch - Replica Watch Fake Bulova Watches, Bulova Ladies' Sport Marine Star Mother of Pearl Dial Diamond Bezel Women's Watch Link : http://www.watchesprice.net/Replica-Bulova-2208.html Replica Watches

Re: TypeNone field detection

2008-04-19 Thread Joe Blow
On Wed, 16 Apr 2008 21:13:18 -0400, Steve Holden wrote: Since there is only one instance of TypeNone (the value we reference as None) the easiest test is if x is None: Thanks... the if x is None: statement is exactly what I was looking for. --

Re: Python 2.5 adoption

2008-04-19 Thread Donald 'Paddy' McCarthy
Joseph Turian wrote: Basically, we're planning on releasing it as open-source, and don't want to alienate a large percentage of potential users. Then develop for 2.5 with an eye on what is to come this year in 2.6 with regard to already planned deprecations. - Paddy. --

Re: Python 2.5 adoption

2008-04-19 Thread castironpi
On Apr 18, 2:16 pm, Joseph Turian [EMAIL PROTECTED] wrote: Basically, we're planning on releasing it as open-source, and don't want to alienate a large percentage of potential users. 99% is a big percent. My 1% doesn't like something. -- http://mail.python.org/mailman/listinfo/python-list

winreg module, need help to understand why i'm getting exception

2008-04-19 Thread hellt
HI all, i found winreg module from http://www.rutherfurd.net/python/winreg/index.html very useful and simple, instead _winreg. But i have a problem with this module, in its iterable part. look at the following code key = Key(HKLM,rSYSTEM\CurrentControlSet\Services\Tcpip\Enum) for i in

eggy IDE

2008-04-19 Thread mark
Hello, I have written an open source IDE in python and Qt, called eggy. Eggy supports several languages, including python, ruby, C, C++, java, perl and others. Eggy also supports group projects over the lan or internet - with live changes, lets you compile and run your code, supports

Re: How to print a unicode string?

2008-04-19 Thread M.-A. Lemburg
On 2008-04-19 03:09, [EMAIL PROTECTED] wrote: Another poster pointed me to sys.stdout = codecs.getwriter(UTF-8)(sys.stdout) and this works great. All I want now is some reassurance that this is the most appropriate way for me to achieve what I want (e.g. least likely to break with future

Re: winreg module, need help to understand why i'm getting exception

2008-04-19 Thread s0suk3
On Apr 19, 6:20 am, hellt [EMAIL PROTECTED] wrote: HI all, i found winreg module fromhttp://www.rutherfurd.net/python/winreg/index.html very useful and simple, instead _winreg. But i have a problem with this module, in its iterable part. look at the following code key =

Re: winreg module, need help to understand why i'm getting exception

2008-04-19 Thread s0suk3
Sorry, the above post is not complete. This is the rest: # There should be a for or a while loop around here try: name = _winreg.EnumValue(key, index) except EnvironmentError: # It raises WindowsError, but the _winreg documentation # recommends catching EnvironmentError break

Re: Inheritance confusion

2008-04-19 Thread Hook
Thanks to everyone who replied. Kay and Mark put me on the right track immediately. Ben is quite right - the fragment that I posted couldn't have given that error, but I didn't want to post the whole thing - perhaps wrongly, I thought it wouldn't help clarify what I thought the problem was.

Re: Python 2.5 adoption

2008-04-19 Thread Ray Cote
At 12:16 PM -0700 4/18/08, Joseph Turian wrote: Basically, we're planning on releasing it as open-source, and don't want to alienate a large percentage of potential users. -- http://mail.python.org/mailman/listinfo/python-list A few seconds after reading this, I read the announcement for

Re: Metaprogramming Example

2008-04-19 Thread andrew cooke
On Apr 18, 4:48 am, Bruno Desthuilliers bruno. [EMAIL PROTECTED] wrote: [...] Practically, this means that (amongst other niceties) : - you can define functions outside classes and use them as instance or class methods - you can add/replaces methods dynamically on a per-class or per-instance

Kill an OS process from script (perhaps unix specific)

2008-04-19 Thread chengiz
Hi, I'm trying to run a process from a python script. I need the exit status of that process but do not care about its output, so until now was using os.system(). But it turned out that the process often went into an infinite loop, so I wrote a SIGALRM handler. Unfortunately the code I came up

Re: Metaprogramming Example

2008-04-19 Thread Kay Schluehr
On 17 Apr., 14:25, andrew cooke [EMAIL PROTECTED] wrote: PS Is there anywhere that explains why Decorators (in the context of functions/methods) are so good? We had kind of an inverse discussion a while ago when someone asked about the fate of aspect oriented programming (AOP) in Python. My

socket.AF_INET

2008-04-19 Thread Matt Herzog
Hi All. I'm trying to write a script that will send me an email message when my IP address changes on a specific NIC. On Linux, the script works. On FreeBSD, it fails with: Traceback (most recent call last): File ./pyifcheck.py, line 22, in module if get_ip_address('xl0') == IPADDY: File

Re: is file open in system ? - other than lsof

2008-04-19 Thread paul
bvidinli schrieb: is there a way to find out if file open in system ? - please write if you know a way other than lsof. because lsof if slow for me. i need a faster way. i deal with thousands of files... so, i need a faster / python way for this. thanks. I think you can do this with inotify.

Re: why function got dictionary

2008-04-19 Thread Christian Heimes
[EMAIL PROTECTED] schrieb: A: everything (or almost) in Python is an object. Including functions, classes, modules etc. Everything you can access from or through Python code must be an object. Every object has at least a type and a reference count. Christian --

urlretrieve can't send headers

2008-04-19 Thread triplezone3
Hello. I'm using urllib.urlretrieve to download files, because it provides a handy hook function. Unfortunately, it won't let me send headers, which could be quite useful. Is there any way I could do this? __ Sent from Yahoo! Mail. A

Re: Metaprogramming Example

2008-04-19 Thread [EMAIL PROTECTED]
On 19 avr, 16:34, andrew cooke [EMAIL PROTECTED] wrote: On Apr 18, 4:48 am, Bruno Desthuilliers [EMAIL PROTECTED] wrote: [...] Practically, this means that (amongst other niceties) : - you can define functions outside classes and use them as instance or class methods - you can

Re: urlretrieve can't send headers

2008-04-19 Thread Diez B. Roggisch
triplezone3 schrieb: Hello. I'm using urllib.urlretrieve to download files, because it provides a handy hook function. Unfortunately, it won't let me send headers, which could be quite useful. Is there any way I could do this? I suggest you look into urllib2. It allows you to explicitly

Re: why function got dictionary

2008-04-19 Thread sturlamolden
On Apr 17, 4:06 pm, AlFire [EMAIL PROTECTED] wrote: Q: why function got dictionary? What it is used for? As previously mentioned, a function has a __dict__ like (most) other objects. You can e.g. use it to create static variables: int foobar() { static int i = 0; return i++; } is

Re: Kill an OS process from script (perhaps unix specific)

2008-04-19 Thread Douglas Wells
In article [EMAIL PROTECTED], [EMAIL PROTECTED] writes: Hi, I'm trying to run a process from a python script. I need the exit status of that process but do not care about its output, so until now was using os.system(). But it turned out that the process often went into an infinite loop, so

Issue with inspect module

2008-04-19 Thread ilanschnell
Hi, I have this trivial program: import inspect class A: def __init__(self, a): self.a = a def __str__(self): return 'A(%s)' % self.a a = A(8) print a the output is: A(8) A(8) Why does the inspect module cause the output to be printed twice? Thanks --

Re: urlretrieve can't send headers

2008-04-19 Thread triplezone3
I have looked in to urllib2, and I can't find a function which would allow me to get the progress of the download as it happens, bit by bit, like urlretrieve does, at least not easily. urllib.urlretrieve's returnhook is just handy. I have another question concerning urlretrieve, is there a way I

Re: Database vs Data Structure?

2008-04-19 Thread Scott David Daniels
[EMAIL PROTECTED] wrote: On Apr 18, 12:23 am, I V [EMAIL PROTECTED] wrote: On Thu, 17 Apr 2008 19:30:33 -0700, erikcw wrote: use some sort of data-structure (maybe nested dictionaries or a custom class) and store the pickled data-structure in a single row in the database (then unpickle the

Re: Issue with inspect module

2008-04-19 Thread Cristina Yenyxe González García
2008/4/19, [EMAIL PROTECTED] [EMAIL PROTECTED]: Hi, Hello, I have this trivial program: import inspect class A: def __init__(self, a): self.a = a def __str__(self): return 'A(%s)' % self.a a = A(8) print a the output is: A(8) A(8) Why does the

Re: why function got dictionary

2008-04-19 Thread [EMAIL PROTECTED]
On 19 avr, 19:39, sturlamolden [EMAIL PROTECTED] wrote: On Apr 17, 4:06 pm, AlFire [EMAIL PROTECTED] wrote: Q: why function got dictionary? What it is used for? As previously mentioned, a function has a __dict__ like (most) other objects. You can e.g. use it to create static variables:

Re: Issue with inspect module

2008-04-19 Thread Karl-Heinz Ruskowski
Why does the inspect module cause the output to be printed twice? I also tested it, no problem here either. -- http://mail.python.org/mailman/listinfo/python-list

Re: Issue with inspect module

2008-04-19 Thread ilanschnell
On Apr 19, 1:41 pm, Karl-Heinz Ruskowski [EMAIL PROTECTED] wrote: Why does the inspect module cause the output to be printed twice? I also tested it, no problem here either. I realized what the problem was. I called the file inspect.py, stupid me. Thanks --

random.random(), random not defined!?

2008-04-19 Thread globalrev
do i need to import something to use random? -- http://mail.python.org/mailman/listinfo/python-list

Re: why function got dictionary

2008-04-19 Thread sturlamolden
On Apr 19, 8:33 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: barfoo = foobar foobar = lambda x : x And boom. That's why I used the qualifier 'roughly equivalent' and not simply 'equivalent'. -- http://mail.python.org/mailman/listinfo/python-list

[ANN] DoIt 0.1.0 Released (build tool)

2008-04-19 Thread Eduardo Schettino
DoIt - A task execution tool (build-tool) = This is the first public release of DoIt Website: http://python-doit.sourceforge.net/ Release: DoIt 0.1.0 License: MIT About - DoIt is a build tool that focus not only on making/building things but on

Re: random.random(), random not defined!?

2008-04-19 Thread Eduardo Schettino
On Sun, Apr 20, 2008 at 12:58 AM, globalrev [EMAIL PROTECTED] wrote: do i need to import something to use random? -- you need to import random :) Python 2.5.1 (r251:54863, Mar 7 2008, 03:39:23) [GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2 Type help, copyright, credits

Re: Tkinter, getting canvas-object, how?

2008-04-19 Thread globalrev
On 19 Apr, 10:15, Rafał Wysocki [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] napisa³(a): so i load a gif onto a canvas and when i click the canvs i want to get the color of the pixel that is clicked. so i need to ge the object im clicking. i was told in another thread to use find_withtag

Frame work for simple physics web applications

2008-04-19 Thread Rick Muller
I'd like to use my webserver to distribute some simple python physics apps. Ideally, I'd like to use some simple form to input a few pieces of data, call a python program, and return some image from a plot or some other rendering. This is easy to do using CGI, but I was wondering whether anyone on

Re: ANN: pyspread 0.0.1

2008-04-19 Thread Martin Manns
On Fri, 18 Apr 2008 04:46:38 +0200 Martin Manns [EMAIL PROTECTED] wrote: pyspread 0.0.1 is now available at: http://pyspread.sourceforge.net Hi, I updated to version 0.0.2 that fixes the tarballs and zip files. Any information about the package working on different platforms is appreciated.

Re: I just killed GIL!!!

2008-04-19 Thread [EMAIL PROTECTED]
On Apr 18, 9:29 pm, sturlamolden [EMAIL PROTECTED] wrote: On 18 Apr, 21:28, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Passing a NULL SectionHandle to NTCreateProcess/CreateProcessEx results in a fork-style copy-on-write duplicate of the current process. I know about NtCreateProcess and

Re: [ANN] DoIt 0.1.0 Released (build tool)

2008-04-19 Thread John Machin
Eduardo Schettino wrote: DoIt - A task execution tool (build-tool) = This is the first public release of DoIt Website: http://python-doit.sourceforge.net/ Release: DoIt 0.1.0 License: MIT About - DoIt is a build tool that focus not only

Re: random.random(), random not defined!?

2008-04-19 Thread John Machin
globalrev wrote: do i need to import something to use random? No, you need to import random -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter, getting canvas-object, how?

2008-04-19 Thread globalrev
On 19 Apr, 21:43, globalrev [EMAIL PROTECTED] wrote: On 19 Apr, 10:15, Rafaù Wysocki [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] napisa³(a): so i load a gif onto a canvas and when i click the canvs i want to get the color of the pixel that is clicked. so i need to ge the object im

Re: Frame work for simple physics web applications

2008-04-19 Thread globalrev
On 19 Apr, 21:55, Rick Muller [EMAIL PROTECTED] wrote: I'd like to use my webserver to distribute some simple python physics apps. Ideally, I'd like to use some simple form to input a few pieces of data, call a python program, and return some image from a plot or some other rendering. This is

Re: Database vs Data Structure?

2008-04-19 Thread castironpi
On Apr 19, 1:27 pm, Scott David Daniels [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: On Apr 18, 12:23 am, I V [EMAIL PROTECTED] wrote: On Thu, 17 Apr 2008 19:30:33 -0700, erikcw wrote: use some sort of data-structure (maybe nested dictionaries or a custom class) and store the pickled

Re: Frame work for simple physics web applications

2008-04-19 Thread Rick Muller
On Apr 19, 2:44 pm, globalrev [EMAIL PROTECTED] wrote: www.vpython.orgmight be what you are looking for. Except, if I'm not mistaken, vpython isn't a web framework. It would work if I wanted to write some python scripts and have other people run them, but I want to run everything through a web

Re: [ANN] DoIt 0.1.0 Released (build tool)

2008-04-19 Thread Eduardo Schettino
On Sun, Apr 20, 2008 at 2:04 AM, John Machin [EMAIL PROTECTED] wrote: You may like to consider the possibility of confusion caused by the similarity of some characters in some fonts (DoIt, Do1t, Dolt) ... google(dictionary dolt) :-) -- http://mail.python.org/mailman/listinfo/python-list

manipulating class attributes from a decorator while the class is being defined

2008-04-19 Thread Wilbert Berendsen
Hi, is it possible to manipulate class attributes from within a decorator while the class is being defined? I want to register methods with some additional values in a class attribute. But I can't get a decorator to change a class attribute while the class is still being defined. Something

victoria beckham new haircut

2008-04-19 Thread billingspanshism
Just few link on some Movies Movies: http://victoria-beckham.12w.net F R E E C E L E B R I T Y M O V I E S -- http://mail.python.org/mailman/listinfo/python-list

victoria beckham biography

2008-04-19 Thread billingspanshism
Just few link on some Movies Movies: http://victoria-beckham.12w.net F R E E C E L E B R I T Y M O V I E S -- http://mail.python.org/mailman/listinfo/python-list

victoria beckham quotes

2008-04-19 Thread billingspanshism
Just few link on some Movies Movies: http://victoria-beckham.12w.net F R E E C E L E B R I T Y M O V I E S -- http://mail.python.org/mailman/listinfo/python-list

victoria beckham background

2008-04-19 Thread billingspanshism
Just few link on some Movies Movies: http://victoria-beckham.12w.net F R E E C E L E B R I T Y M O V I E S -- http://mail.python.org/mailman/listinfo/python-list

rock and republic victoria beckham

2008-04-19 Thread billingspanshism
Just few link on some Movies Movies: http://victoria-beckham.12w.net F R E E C E L E B R I T Y M O V I E S -- http://mail.python.org/mailman/listinfo/python-list

victoria beckham news

2008-04-19 Thread billingspanshism
Just few link on some Movies Movies: http://victoria-beckham.12w.net F R E E C E L E B R I T Y M O V I E S -- http://mail.python.org/mailman/listinfo/python-list

victoria beckham gallery

2008-04-19 Thread billingspanshism
Just few link on some Movies Movies: http://victoria-beckham.12w.net F R E E C E L E B R I T Y M O V I E S -- http://mail.python.org/mailman/listinfo/python-list

victoria beckham 2007

2008-04-19 Thread billingspanshism
Just few link on some Movies Movies: http://victoria-beckham.12w.net F R E E C E L E B R I T Y M O V I E S -- http://mail.python.org/mailman/listinfo/python-list

photos of victoria beckham

2008-04-19 Thread billingspanshism
Just few link on some Movies Movies: http://victoria-beckham.12w.net F R E E C E L E B R I T Y M O V I E S -- http://mail.python.org/mailman/listinfo/python-list

david victoria beckham

2008-04-19 Thread billingspanshism
Just few link on some Movies Movies: http://victoria-beckham.12w.net F R E E C E L E B R I T Y M O V I E S -- http://mail.python.org/mailman/listinfo/python-list

david beckham and victoria beckham

2008-04-19 Thread billingspanshism
Just few link on some Movies Movies: http://victoria-beckham.12w.net F R E E C E L E B R I T Y M O V I E S -- http://mail.python.org/mailman/listinfo/python-list

how tall is victoria beckham

2008-04-19 Thread billingspanshism
Just few link on some Movies Movies: http://victoria-beckham.12w.net F R E E C E L E B R I T Y M O V I E S -- http://mail.python.org/mailman/listinfo/python-list

victoria beckham lyrics

2008-04-19 Thread billingspanshism
Just few link on some Movies Movies: http://victoria-beckham.12w.net F R E E C E L E B R I T Y M O V I E S -- http://mail.python.org/mailman/listinfo/python-list

victoria beckham boobs

2008-04-19 Thread billingspanshism
Just few link on some Movies Movies: http://victoria-beckham.12w.net F R E E C E L E B R I T Y M O V I E S -- http://mail.python.org/mailman/listinfo/python-list

Re: 2's complement conversion. Is this right?

2008-04-19 Thread Bob Greschke
On 2008-04-18 23:35:12 -0600, Ivan Illarionov [EMAIL PROTECTED] said: On Sat, 19 Apr 2008 04:45:54 +, Ivan Illarionov wrote: On Fri, 18 Apr 2008 22:30:45 -0500, Grant Edwards wrote: On 2008-04-18, Bob Greschke [EMAIL PROTECTED] wrote: However, in playing around with your suggestion

Re: manipulating class attributes from a decorator while the class is being defined

2008-04-19 Thread Christian Heimes
Wilbert Berendsen schrieb: Hi, is it possible to manipulate class attributes from within a decorator while the class is being defined? I want to register methods with some additional values in a class attribute. But I can't get a decorator to change a class attribute while the class is

Re: manipulating class attributes from a decorator while the class is being defined

2008-04-19 Thread Karl-Heinz Ruskowski
How can I reach the class attribute `regexps' from within a decorator? Now, the first way that comes to my mind is simply overloading the class and set your regexps variable in your new class. The other way is to create an object and set it more manually (obj.regexps = ['.*']). Which for me

Re: 2's complement conversion. Is this right?

2008-04-19 Thread Bob Greschke
On 2008-04-18 21:33:34 -0600, Grant Edwards [EMAIL PROTECTED] said: On 2008-04-18, Bob Greschke [EMAIL PROTECTED] wrote: I'm on a Solaris 8 with Python 2.3.4 and when crunching through, literally, millions and millions of samples of seismic data fingers point out the difference nicely. :)

Re: 2's complement conversion. Is this right?

2008-04-19 Thread Bob Greschke
www.greschke.com/unlinked/files/pocus.png Darnit. www.greschke.com/unlinked/images/pocus.png -- http://mail.python.org/mailman/listinfo/python-list

Re: Frame work for simple physics web applications

2008-04-19 Thread Stef Mientki
Rick Muller wrote: On Apr 19, 2:44 pm, globalrev [EMAIL PROTECTED] wrote: www.vpython.orgmight be what you are looking for. Except, if I'm not mistaken, vpython isn't a web framework. It would work if I wanted to write some python scripts and have other people run them, but I want

Re: Python for Series 40 Nokia?

2008-04-19 Thread Dotan Cohen
On 18/04/2008, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On Apr 18, 8:46 am, Dotan Cohen [EMAIL PROTECTED] wrote: I had once heard something about python running on a Series 40 Nokia, but I am unable to google anything concrete. Might it have been Jython? Is there a known implementation

www.crazysupplier.com cheap nike shoes nike air jordans Manufacturer, Buyer, Supplier ...

2008-04-19 Thread ceo . ch2008
China wholesaler of cheap air jordan shoes,wholesale jordans,wholesale jordans from china,wholesale nike jordans (www.crazysupplier.com) Buy new jordan 23 shoes, air jordan 23 shoes,jordan xx3,nike jordan xxiii,new air jordan 23 shoes,AJ23,jordan 23 (www.crazysupplier.com) cheap Air jordan

Re: random.random(), random not defined!?

2008-04-19 Thread Mensanator
On Apr 19, 3:36�pm, John Machin [EMAIL PROTECTED] wrote: globalrev wrote: do i need to import something to use random? No, you need to import random But you could alsways import it as something. import random as something something.random() 0.45811606256668347 --

Bigger projects, including files?

2008-04-19 Thread globalrev
if i have a larger project and want to divide my program into several files, how do i include these files in the mainprogram? using import someprojectfile doesnt work because import is for site- packages right and i dont want to put all my files in that folder. so how do i do it? --

Re: Bigger projects, including files?

2008-04-19 Thread Martin P. Hellwig
globalrev wrote: if i have a larger project and want to divide my program into several files, how do i include these files in the mainprogram? using import someprojectfile doesnt work because import is for site- packages right and i dont want to put all my files in that folder. so how do

Re: Bigger projects, including files?

2008-04-19 Thread globalrev
On 20 Apr, 02:04, Martin P. Hellwig [EMAIL PROTECTED] wrote: globalrev wrote: if i have a larger project and want to divide my program into several files, how do i include these files in the mainprogram? using import someprojectfile doesnt work because import is for site- packages right

Re: 2's complement conversion. Is this right?

2008-04-19 Thread George Sakkis
On Apr 18, 9:36 pm, Ross Ridge [EMAIL PROTECTED] wrote: Ross Ridge [EMAIL PROTECTED] said: If you have Python 2.5, here's a faster version:    from struct import *    unpack_i32be = Struct(l).unpack    def from3Bytes_ross2(s):        return unpack_i32be(s + \0)[0] 8 Bob Greschke  

Re: I just killed GIL!!!

2008-04-19 Thread sturlamolden
On Apr 19, 10:29 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: FWIW, NT's POSIX subsytem fork() uses (or used to use) the NULL SectionHandle method and was POSIX certified, so it's certainly possible. Windows Vista Ultimate comes with Interix integrated, renamed 'Subsystem for Unix based

Re: Frame work for simple physics web applications

2008-04-19 Thread Brian Blais
On Apr 19, 2008, at Apr 19:3:55 PM, Rick Muller wrote: Do any of the AJAX frameworks for Python compare in simplicity to writing a simple CGI script? I've been impressed with web.py, since it seems pretty easy to use, but I would go to the trouble of learning one of the bigger frameworks if they

Any reliable obfurscator for Python 2.5

2008-04-19 Thread Banibrata Dutta
Hi, Wanted to check if there is any known, reliable, FOSS/Libre -- Obfurscator for Python 2.5 code. -- regards, Banibrata http://www.linkedin.com/in/bdutta -- http://mail.python.org/mailman/listinfo/python-list

Re: User-defined Exceptions: is self.args OK?

2008-04-19 Thread Gabriel Genellina
En Thu, 17 Apr 2008 19:11:36 -0300, Petr Jakeš [EMAIL PROTECTED] escribió: I am trying to dig through User-defined Exceptions. chapter 8.5 in http://docs.python.org/tut/node10.html I would like to know, if is it OK to add following line to the __init__ method of the TransitionError

Re: 2's complement conversion. Is this right?

2008-04-19 Thread Ross Ridge
Ross Ridge [EMAIL PROTECTED] wrote: It's the same as the previous version except that it precompiles the struct.unpack() format string. =A0It works similar to the way Python handles regular expressions. George Sakkis [EMAIL PROTECTED] wrote: I didn't know about the Struct class; pretty neat.

Re: RotatingFileHandler - ShouldRollover error

2008-04-19 Thread Gabriel Genellina
En Wed, 16 Apr 2008 10:50:44 -0300, [EMAIL PROTECTED] escribió: I am using the RotatingFileHandler logger with Python 2.5 on Windows and I am getting an error on the rollover. When the log file gets close to the size where it needs to rollover, I start getting the following error for

[issue2604] doctest.DocTestCase fails when run repeatedly

2008-04-19 Thread Piet Delport
Changes by Piet Delport [EMAIL PROTECTED]: -- keywords: +patch Added file: http://bugs.python.org/file10060/reset_globs.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2604 __

[issue2645] httplib throws ValueError

2008-04-19 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: The trunk version does already handle this: it closes the connection and raises IncompleteRead. -- resolution: - out of date status: open - closed __ Tracker [EMAIL PROTECTED]

[issue1738] filecmp.dircmp does exact match only

2008-04-19 Thread Michael Amrhein
Michael Amrhein [EMAIL PROTECTED] added the comment: There is one small issue I would like to discuss: While the comparison of directory and file names in phase1 is case-insensitive on case-insensitive systems (os.path.normcase applied to each name), the filtering of ignore and hide in phase0

[issue2658] decode_header() fails on multiline headers

2008-04-19 Thread Christoph Schneeberger
New submission from Christoph Schneeberger [EMAIL PROTECTED]: email.Header.decode_header() does not correctly deal with multiline Headerlines. header.py in revision 54371 (1) changes the behaviour, whereas previously multiline headers where parsed correctly, header.py 54371 introduced a new

[issue2658] decode_header() fails on multiline headers

2008-04-19 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- assignee: - barry nosy: +barry __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2658 __ ___ Python-bugs-list mailing

[issue2639] shutil.copyfile() documentation is vague

2008-04-19 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Fixed in r62389. -- resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2639 __

  1   2   >