ANN: Tftpy 0.1 - Pure Python TFTP Library

2006-10-03 Thread Michael P. Soulier
Announcing new project, Tftpy, a Pure Python TFTP implementation. About Release 0.1: == This is an initial release in the spirit of release early, release often. Currently the sample client works, supporting RFC 1350. The server is not yet implemented, and RFC 2347 and 2348

ANN: Urwid 0.9.7.1 - Console UI Library

2006-10-03 Thread Ian Ward
Announcing Urwid 0.9.7.1 Urwid home page: http://excess.org/urwid/ Tarball: http://excess.org/urwid/urwid-0.9.7.1.tar.gz About this release: === This release fixes bugs introduced in the Padding and Overlay classes in the previous release.

ANNOUNCE: PyGObject 2.12.2

2006-10-03 Thread Johan Dahlin
I am pleased to announce version 2.12.2 of the Python bindings for GObject. The new release is available from ftp.gnome.org as and its mirrors as soon as its synced correctly: http://download.gnome.org/sources/pygobject/2.12/ What's new since PyGObject 2.12.1: - Make PyGObject 64-bit

Dr. Dobb's Python-URL! - weekly Python news and links (Oct 4)

2006-10-03 Thread Cameron Laird
QOTW: If you want your objects to know their name, give them a name as an attribute. - Georg Brandl Unfortunately forty years of programming experience has taught me that there's an essentially infinite supply of mistakes to make ... your mistakes just get smarter most of the time. - Steve

Re: PATCH: Speed up direct string concatenation by 20+%!

2006-10-03 Thread John Machin
Larry Hastings wrote: John Machin wrote: try benchmarking this ... well style may not be the appropriate word Running this under Python 2.5 release: x = [] xappend = x.append for i in xrange(1000): xappend(a) y = .join(x) took 3281ms. Running this under

Re: saving an exception

2006-10-03 Thread Ben Cartwright
Bryan wrote: i would like to save an exception and reraise it at a later time. something similar to this: exception = None def foo(): try: 1/0 except Exception, e: exception = e if exception: raise exception with the above code, i'm able to successfully raise

Thread hijack: [was Re: php and python: how to unpickle using PHP?]

2006-10-03 Thread Steve Holden
Ted Zeng wrote: Hi, I store some test results into a database after I use python To pickle them (say, misfiles=['file1','file2']) Now I want to display the result on a web page which uses PHP. How could the web page unpickle the results and display them? Is there a PHP routine that can

Re: app with standalone gui and web interface

2006-10-03 Thread Steve Holden
Daniel Nogradi wrote: What would the simplest way to make an application that has both a web interface and runs from behind a web server but also can be used as a standalone app with a gui? More precisely is it possible to avoid creating an html/xml/whatever based web interface for the web

Re: saving an exception

2006-10-03 Thread Steve Holden
Bryan wrote: hi, i would like to save an exception and reraise it at a later time. something similar to this: exception = None def foo(): try: 1/0 except Exception, e: exception = e if exception: raise exception i have a need to do this because in

Re: Sockets in python

2006-10-03 Thread OneMustFall
What's your set-up and which cord are you pulling? Well i now i think the clue is in the OS, i have sniffed and it seems that Twisted have no magic. It is seems that i simply tested things in a wrong way - when i pulled cord from ethernet card windows determined that network lost and started

Re: Determin network interface

2006-10-03 Thread jakobsg
Thanks a bunch! That is just what I was looking for ! Best regards Jakob Bryan Olson skrev: [EMAIL PROTECTED] wrote: Hi. How can I determin the hwaddr or ipaddress of the networkinterface that is used in an outgoing connection? Is sock_object.getsockname() enough?

Re: saving an exception

2006-10-03 Thread Gabriel G
At Tuesday 3/10/2006 02:15, Bryan wrote: i would like to save an exception and reraise it at a later time. def foo(): Â Â try: Â Â Â Â 1/0 Â Â except Exception, e: Â Â Â Â exception = e if exception: raise exception with the above code, i'm able to successfully raise the exception,

Re: CGI - mod_python

2006-10-03 Thread grahamd
[EMAIL PROTECTED] wrote: Hi, it is a kind of nooby question. Is there a way to transfer a CGI python script to mod_python without rewriting the code? Did you look in the mod_python documentation? http://www.modpython.org/live/current/doc-html/hand-cgi.html It certainly isn't the

Re: switch user

2006-10-03 Thread Nick Vatamaniuc
Check out the os module, especially the os.getgid(), os.getuid(), os.setgid(), os.getuid(), methods. There are more , take at a look at Python documentation. You can start a script as root then change your priveleges with os.setgid() os.setuid() methods. Note: those methods operate with integer

Re: postgresql database

2006-10-03 Thread Paolo
Michele Simionato ha scritto: Paolo wrote: Ciao a tutti, sto cercando di implementare un applicazione che si interfaccia con postgresql(8.1), utilizzando Psycopg2, in ambiente windows (python versione 2.5). Ho installato Psycopg2 e provando solamente fare: import psycopg mi ritorna il

Re: VIdeo Converence Software: Tk and thread synchronization

2006-10-03 Thread Eric Brunel
On Mon, 02 Oct 2006 14:42:15 +0200, Paolo Pantaleo [EMAIL PROTECTED] wrote: Hi, I am going on writing my video conference software. I wrote the video grab, code/decode, and netwoark (multicast) transport. I have one thread doing this: [thread 1] while True: for some times:

Re: VIdeo Converence Software: Tk and thread synchronization

2006-10-03 Thread Paul Rubin
Eric Brunel [EMAIL PROTECTED] writes: General answer: no, it isn't. The only thing that seems to work everytime on tk widgets from secondary threads is generating events as above. I wouldn't bet on even that always being safe. If you try to do anything else, you may experience deadlocks or

How Build VTK for Python 2.5 under Windows?

2006-10-03 Thread Sébastien Ramage
Hello, I'm running on Windows and I want to test VTK but I don't understand how build it Somebody can help me to build VTK for Python 2.5 under Windows? (or Python 2.43 if python 2.5 is a problem) I have no C compiler but I can install one if it's free. Thank you Seb --

I need Cryptogrphy in Python please .

2006-10-03 Thread NicolasG
Looking around for a Cryptography tool kit, the best recommendations I found about was for pyCrypto. I try to install it unsuccessfully in my windowsXP SP2 with python 2.4.3 and I get the following message : C:\Python24\pycrypto-2.0.1python setup.py build running build running build_py running

Re: Need help with an array problem.

2006-10-03 Thread Thomas Bellman
Dennis Lee Bieber [EMAIL PROTECTED] wrote: Of course, there is also the confusion between type cast and type conversion -- at least, for me... cast taking the bit-pattern of a value in one type and interpreting the same bit-pattern as if it were a different type conversion

Re: I need Cryptogrphy in Python please .

2006-10-03 Thread Paul Rubin
NicolasG [EMAIL PROTECTED] writes: Can some one guide me how to fix the problem above or point me to another Cyrptography library that I can use easily ? There are several. What do you want to do with it? -- http://mail.python.org/mailman/listinfo/python-list

Re: I need Cryptogrphy in Python please .

2006-10-03 Thread MonkeeSage
NicolasG wrote: I have installed .NET framework latest release. The SDK is different from the framework. ;) Can some one guide me how to fix the problem above or point me to another Cyrptography library that I can use easily ? Prebuilt binaries:

Re: Sockets in python

2006-10-03 Thread Christophe
OneMustFall a écrit : What's your set-up and which cord are you pulling? Well i now i think the clue is in the OS, i have sniffed and it seems that Twisted have no magic. It is seems that i simply tested things in a wrong way - when i pulled cord from ethernet card windows determined

Python to use a non open source bug tracker?

2006-10-03 Thread Giovanni Bajo
Hello, I just read this mail by Brett Cannon: http://mail.python.org/pipermail/python-dev/2006-October/069139.html where the PSF infrastracture committee, after weeks of evaluation, recommends using a non open source tracker (called JIRA - never heard before of course) for Python itself. Does

Re: app with standalone gui and web interface

2006-10-03 Thread [EMAIL PROTECTED]
Hi Daniel. What would the simplest way to make an application that has both a web interface and runs from behind a web server but also can be used as a standalone app with a gui? More precisely is it possible to avoid creating an html/xml/whatever based web interface for the web version and

Overriding builtin getattr method

2006-10-03 Thread Raja Raman Sundararajan
Hello guys, I have data stored in the database which has special characters like , etc. Case 1: Whenever I wanted to present the output to a browser I need to escape these special characters into the browser equivalent like lt; gt; etc.( for example by using the cgi module) Case 2:

Re: Overriding builtin getattr method

2006-10-03 Thread Raja Raman Sundararajan
Correction: I meant __builtin__.getattr method and not the other one I mentioned. :-) Thanks Raja Raja Raman Sundararajan skrev: Hello guys, I have data stored in the database which has special characters like , etc. Case 1: Whenever I wanted to present the output to a browser I

Re: Python to use a non open source bug tracker?

2006-10-03 Thread Robert Kern
Giovanni Bajo wrote: Hello, I just read this mail by Brett Cannon: http://mail.python.org/pipermail/python-dev/2006-October/069139.html where the PSF infrastracture committee, after weeks of evaluation, recommends using a non open source tracker (called JIRA - never heard before of

Re: Simple but fast 2D lib for drawing pixels

2006-10-03 Thread Peter Ilgenschütz
Thanks Dave for this tip, this is excellent, exactly what I have been looking for! I'm using it already :-) Kind Regards, Peter [EMAIL PROTECTED] wrote: On Oct 1, 2006, at 6:28 PM, Peter Mexbacher wrote: Hello, we want to teach absolute programming newbies a first language, so they can

Re: Python to use a non open source bug tracker?

2006-10-03 Thread Fredrik Lundh
Giovanni Bajo wrote: I just read this mail by Brett Cannon: http://mail.python.org/pipermail/python-dev/2006-October/069139.html where the PSF infrastracture committee, after weeks of evaluation, recommends using a non open source tracker (called JIRA - never heard before of course) for

Re: I need Cryptogrphy in Python please .

2006-10-03 Thread NicolasG
I have made a site using Karrigell as a web server and I want to provide cryptography services to the visitors. They should wirte their text on the site and be able choose different encryption algorithms to apply on the text . MonkeeSage wrote: NicolasG wrote: I have installed .NET framework

Re: I need Cryptogrphy in Python please .

2006-10-03 Thread Paul Rubin
NicolasG [EMAIL PROTECTED] writes: I have made a site using Karrigell as a web server and I want to provide cryptography services to the visitors. They should wirte their text on the site and be able choose different encryption algorithms to apply on the text . Um, why? Just as an exercise?

Re: Python to use a non open source bug tracker?

2006-10-03 Thread Paul Rubin
Giovanni Bajo [EMAIL PROTECTED] writes: I just read this mail by Brett Cannon: http://mail.python.org/pipermail/python-dev/2006-October/069139.html where the PSF infrastracture committee, after weeks of evaluation, recommends using a non open source tracker (called JIRA - never heard before

Re: Overriding builtin getattr method

2006-10-03 Thread Gabriel Genellina
At Tuesday 3/10/2006 05:24, Raja Raman Sundararajan wrote: Hello guys, I have data stored in the database which has special characters like , etc. Case 1: Whenever I wanted to present the output to a browser I need to escape these special characters into the browser equivalent like

Re: Python to use a non open source bug tracker?

2006-10-03 Thread Fredrik Lundh
Robert Kern wrote: Does this smell Bitkeeper fiasco to anyone else than me? No. that's just not true. lots of people have voiced concerns over using closed-sourced stuff originally designed for enterprise-level Java users for an application domain where Python has several widely used

Re: Overriding builtin getattr method

2006-10-03 Thread Diez B. Roggisch
I have data stored in the database which has special characters like , etc. Case 1: Whenever I wanted to present the output to a browser I need to escape these special characters into the browser equivalent like lt; gt; etc.( for example by using the cgi module) Case 2: Whenever

Re: loop beats generator expr creating large dict!?

2006-10-03 Thread Ant
George Young wrote: ... I am puzzled that creating large dicts with an explicit iterable of key,value pairs seems to be slow. I thought to save time by doing: palettes = dict((w,set(w)) for w in words) instead of: palettes={} for w in words: palettes[w]=set(w) In the

Re: I need Cryptogrphy in Python please .

2006-10-03 Thread MonkeeSage
NicolasG wrote: I need the modules source to use it with my web server. I thought you were trying to compile and install the pyCrypto extension? If that is the case, then download the installer from the page I linked to. Regards, Jordan -- http://mail.python.org/mailman/listinfo/python-list

Ctypes and freeing memory

2006-10-03 Thread Oliver Andrich
Hi everybody, I am currently playing around with ctypes and a C library (libWand from ImageMagick), and as I want to easily deploy it on Mac, Linux and Windows, I prefer a ctypes solution over a C module. At least on windows, I would have resource problems to compile the C module. So, ctypes is

Howto pass Array/Hash into Function

2006-10-03 Thread Wijaya Edward
Hi, How can I pass Array, Hash, and a plain variable in to a function at the same time. I come from Perl. Where as you probably know it is done like this: sub myfunc { my ($plain_var, $hash_ref,$arref) = @_; # Do sth with those variables return; } I wonder how can that be

Re: Howto pass Array/Hash into Function

2006-10-03 Thread MonkeeSage
Wijaya Edward wrote: I wonder how can that be done in Python. def myfunc(plain_var, hash_ref, arref): # Do sth with those variables return Regards, Jordan -- http://mail.python.org/mailman/listinfo/python-list

Re: Howto pass Array/Hash into Function

2006-10-03 Thread Wildemar Wildenburger
MonkeeSage wrote: Wijaya Edward wrote: I wonder how can that be done in Python. def myfunc(plain_var, hash_ref, arref): # Do sth with those variables return At the risk of being a jerk (sorry, I'm really just curious): Why isn't that obvious? wildemar (sorry) --

Re: Howto pass Array/Hash into Function

2006-10-03 Thread MonkeeSage
Wildemar Wildenburger wrote: MonkeeSage wrote: Wijaya Edward wrote: I wonder how can that be done in Python. def myfunc(plain_var, hash_ref, arref): # Do sth with those variables return At the risk of being a jerk (sorry, I'm really just curious): Why isn't that obvious?

Re: Howto pass Array/Hash into Function

2006-10-03 Thread Gabriel G
At Tuesday 3/10/2006 06:05, Wijaya Edward wrote: How can I pass Array, Hash, and a plain variable in to a function at the same time. I come from Perl. Where as you probably know it is done like this: sub myfunc { my ($plain_var, $hash_ref,$arref) = @_; # Do sth with those variables

Re: CGI - mod_python

2006-10-03 Thread Paul Boddie
[EMAIL PROTECTED] wrote: it is a kind of nooby question. Is there a way to transfer a CGI python script to mod_python without rewriting the code? Had you used WebStack [1] to begin with, this migration would involve changing a few lines of glue code. However, as others have pointed out, WSGI

Re: app with standalone gui and web interface

2006-10-03 Thread Daniel Nogradi
What would the simplest way to make an application that has both a web interface and runs from behind a web server but also can be used as a standalone app with a gui? More precisely is it possible to avoid creating an html/xml/whatever based web interface for the web version and

Re: CGI - mod_python

2006-10-03 Thread Jon Ribbens
In article [EMAIL PROTECTED], Paul Boddie wrote: it is a kind of nooby question. Is there a way to transfer a CGI python script to mod_python without rewriting the code? Had you used WebStack [1] to begin with, this migration would involve changing a few lines of glue code. Or Jonpy ;-)

Artificial Mind - Part One - Basic Architecture and Cognitive Structure is now available

2006-10-03 Thread tommak
It's a dream of human beings to build machines that can think and behave like human beings. The most important part of of such a machine is an artificial mind that can emulate the cognitive processing of human mind. This book, Next Generation Artificial Intelligence, Artificial Mind - Part One -

Raw strings and escaping

2006-10-03 Thread Matthew Warren
Hi, I would expect this to work, rawstring=r'some things\new things\some other things\' But it fails as the last backslash escapes the single quote. ..although writing this I think I have solved my own problem. Is \' the only thing escaped in a raw string so you can place ' in a raw string?

Re: Python to use a non open source bug tracker?

2006-10-03 Thread Steve Holden
Paul Rubin wrote: Giovanni Bajo [EMAIL PROTECTED] writes: I just read this mail by Brett Cannon: http://mail.python.org/pipermail/python-dev/2006-October/069139.html where the PSF infrastracture committee, after weeks of evaluation, recommends using a non open source tracker (called JIRA -

Best way to handle large lists?

2006-10-03 Thread Chaz Ginger
I have a system that has a few lists that are very large (thousands or tens of thousands of entries) and some that are rather small. Many times I have to produce the difference between a large list and a small one, without destroying the integrity of either list. I was wondering if anyone has any

Re: Raw strings and escaping

2006-10-03 Thread Rob Williscroft
Matthew Warren wrote in news:mailman.1152.1159872720.10491.python- [EMAIL PROTECTED] in comp.lang.python: I would expect this to work, rawstring=r'some things\new things\some other things\' It in the docs: url:http://docs.python.org/ref/strings.html#l2h-14 ... Specifically, a raw string

Re: Raw strings and escaping

2006-10-03 Thread Duncan Booth
Matthew Warren [EMAIL PROTECTED] wrote: I would expect this to work, rawstring=r'some things\new things\some other things\' But it fails as the last backslash escapes the single quote. ..although writing this I think I have solved my own problem. Is \' the only thing escaped in a raw

Re: Best way to handle large lists?

2006-10-03 Thread Duncan Booth
Chaz Ginger [EMAIL PROTECTED] wrote: I have a system that has a few lists that are very large (thousands or tens of thousands of entries) and some that are rather small. Many times I have to produce the difference between a large list and a small one, without destroying the integrity of

Re: Best way to handle large lists?

2006-10-03 Thread Paul Rubin
Chaz Ginger [EMAIL PROTECTED] writes: I have a system that has a few lists that are very large (thousands or tens of thousands of entries) and some that are rather small. Many times I have to produce the difference between a large list and a small one, without destroying the integrity of

Re: Raw strings and escaping

2006-10-03 Thread Jon Ribbens
In article [EMAIL PROTECTED], Matthew Warren wrote: I would expect this to work, rawstring=r'some things\new things\some other things\' But it fails as the last backslash escapes the single quote. String constants in Python are weird - raw strings doubly so. In a raw string, backslashes

Re: app with standalone gui and web interface

2006-10-03 Thread [EMAIL PROTECTED]
Johan, your way of doing it resembles XUL somewhat, although I can't say I fully understand XUL I just took a look some days ago. Let me see if I understand your approach: Yes it's a lot like XUL, but there are some major differences. The most important one is that, at least back then, you had

Re: app with standalone gui and web interface

2006-10-03 Thread olive
I agree with Steve and I would advise to use an Ajax toolkit (such as JQuery for example) which will help to make your UI act as a desktop application (and even better if you are creative). Olive. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python to use a non open source bug tracker?

2006-10-03 Thread [EMAIL PROTECTED]
Giovanni Bajo wrote: Does this smell Bitkeeper fiasco to anyone else than me? I can't understand why people waste time arguing this stuff. Use whatever tool is best at it's job... if it's not written in Python it doesn't mean that Python is not good for the task, only that there hasn't been

py2app console

2006-10-03 Thread James Stroud
Hello, Does anyone know of the most straightforward way to get rid of the intensely annoying console window that py2app feels so compelled to create? On a related but less important note, why would anyone want that stupid window in the first place? James --

Re: Raw strings and escaping

2006-10-03 Thread Duncan Booth
Jon Ribbens [EMAIL PROTECTED] wrote: I presume there was originally some reason for this bizarre behaviour - it'd be interesting to know what it is/was, if anyone knows? See the FAQ for the explanation:

Re: Best way to handle large lists?

2006-10-03 Thread durumdara
Chaz Ginger írta: I have a system that has a few lists that are very large (thousands or tens of thousands of entries) and some that are rather small. Many times I have to produce the difference between a large list and a small one, without destroying the integrity of either list. I was

Re: Python to use a non open source bug tracker?

2006-10-03 Thread Ben Finney
Steve Holden [EMAIL PROTECTED] writes: Paul Rubin wrote: Giovanni Bajo [EMAIL PROTECTED] writes: I just read this mail by Brett Cannon: http://mail.python.org/pipermail/python-dev/2006-October/069139.html where the PSF infrastracture committee, after weeks of evaluation, recommends using a

Manipulate PDFs

2006-10-03 Thread Weko Altamirano
Hi Everyone, am a developer using Zope and wanted to know if any of you have ever implemented a pdf generating/creating system using python? This just means mostly manipulating pdfs (create and/or edit) via web. If you guys have any suggestions or recommendations please post, thanks. --

Re: Python to use a non open source bug tracker?

2006-10-03 Thread Paul Boddie
Paul Rubin wrote: Giovanni Bajo [EMAIL PROTECTED] writes: Does this smell Bitkeeper fiasco to anyone else than me? I probably said as much before, possibly to the distaste of some individuals. Still, the BitKeeper story should serve as a reminder about relinquishing control of infrastructure

py_s60 HELP

2006-10-03 Thread vedran_dekovic
Hello, I using py_s60 for calling from my program to phone,but I have one problem. When I want run py_s60 with python 2.4: FIRST ERROR: import telephone Traceback (most recent call last): File pyshell#2, line 1, in -toplevel- if e32.s60_version_info=(3,0): AttributeError: 'module' object

was python implemented as a object oriented langage at the beginning ?

2006-10-03 Thread Bertrand Ballis
Hello,I heard a lot of people from the Ruby community claiming that Python, like Perl, was a scripting langagethat was changed aftewards to be object compatible, and that was making it not as good as Ruby, object-oriented from the begenning. Is that true ?Thanks for your answersBertrand --

Re: Howto pass Array/Hash into Function

2006-10-03 Thread Steve Holden
MonkeeSage wrote: Wildemar Wildenburger wrote: MonkeeSage wrote: Wijaya Edward wrote: I wonder how can that be done in Python. def myfunc(plain_var, hash_ref, arref): # Do sth with those variables return At the risk of being a jerk (sorry, I'm really just curious): Why isn't that

Re: Python to use a non open source bug tracker?

2006-10-03 Thread Oliver Andrich
Hi, On 10/3/06, Giovanni Bajo [EMAIL PROTECTED] wrote: I just read this mail by Brett Cannon: http://mail.python.org/pipermail/python-dev/2006-October/069139.html where the PSF infrastracture committee, after weeks of evaluation, recommends using a non open source tracker (called JIRA -

Re: py2app console

2006-10-03 Thread James Stroud
James Stroud wrote: Hello, Does anyone know of the most straightforward way to get rid of the intensely annoying console window that py2app feels so compelled to create? On a related but less important note, why would anyone want that stupid window in the first place? James I

Re: Overriding builtin getattr method

2006-10-03 Thread Raja Raman Sundararajan
Hello Gabriel Genellina and Diez B. Roggisch, Thanks for sharing your opinions. I agree with Gabriel when he talks about the separation between the presentation and the DB level access and the drawbacks of introducing character manipulation. The problem that I am facing right now is that the

Re: Artificial Mind - Part One - Basic Architecture and Cognitive Structure is now available

2006-10-03 Thread Steve Holden
tommak wrote: It's a dream of human beings to build machines that can think and behave like human beings. The most important part of of such a machine is an artificial mind that can emulate the cognitive processing of human mind. This book, Next Generation Artificial Intelligence,

Re: Raw strings and escaping

2006-10-03 Thread Fredrik Lundh
Matthew Warren wrote: I would expect this to work, rawstring=r'some things\new things\some other things\' But it fails as the last backslash escapes the single quote. raw string literals are parsed in exactly the same way as ordinary string literals; it's just the mapping from the string

Re: was python implemented as a object oriented langage at the beginning ?

2006-10-03 Thread Fredrik Lundh
Bertrand Ballis wrote: I heard a lot of people from the Ruby community claiming that Python, like Perl, was a scripting langage that was changed aftewards to be object compatible, and that was making it not as good as Ruby, object-oriented from the begenning. Is that true ? nope. /F

Re: Python to use a non open source bug tracker?

2006-10-03 Thread Paul Boddie
[EMAIL PROTECTED] wrote: Giovanni Bajo wrote: Does this smell Bitkeeper fiasco to anyone else than me? I can't understand why people waste time arguing this stuff. Because people care about it, I guess. Use whatever tool is best at it's job... if it's not written in Python it doesn't

Re: Python to use a non open source bug tracker?

2006-10-03 Thread A.M. Kuchling
On Tue, 03 Oct 2006 08:19:10 GMT, Giovanni Bajo [EMAIL PROTECTED] wrote: ... using a non open source tracker (called JIRA - never heard before of course) for Python itself. Other projects do use it; see http://wiki.apache.org/general/ApacheJira for a partial list, and a link to the

anyone make any non-wx python plugins for boa-constructor

2006-10-03 Thread [EMAIL PROTECTED]
I was looking at vpython and it would seem to be an easy thing to add to boa-constuctors classes but I am not sure if that is possible within the boa-constructor interface. Is it possible to do without combining it with wxwindows?? Is there any examples besides the simple one that comes

Re: Python to use a non open source bug tracker?

2006-10-03 Thread Paul Rubin
Ben Finney [EMAIL PROTECTED] writes: The existing SourceForge system runs on non-free software, which is a significant differentiator from Bugzilla. The SourceForge software, at least in some versions, is free software. See for example http://savannah.gnu.org for an instantiation, which may be

Re: Python to use a non open source bug tracker?

2006-10-03 Thread Martin v. Löwis
Giovanni Bajo schrieb: I just read this mail by Brett Cannon: http://mail.python.org/pipermail/python-dev/2006-October/069139.html where the PSF infrastracture committee, after weeks of evaluation, recommends using a non open source tracker (called JIRA - never heard before of course) for

Re: Python to use a non open source bug tracker?

2006-10-03 Thread Martin v. Löwis
Ben Finney schrieb: I would be greatly dismayed to see the PSF choosing to move critical Python development data into a non-free system. Then volunteer to help operating the Roundup installation. It will become reality if there are enough volunteers to keep it running. I hope this

Re: Raw strings and escaping

2006-10-03 Thread Jon Ribbens
In article [EMAIL PROTECTED], Duncan Booth wrote: I presume there was originally some reason for this bizarre behaviour - it'd be interesting to know what it is/was, if anyone knows? See the FAQ for the explanation:

Re: Python to use a non open source bug tracker?

2006-10-03 Thread Martin v. Löwis
Paul Rubin schrieb: Sounds crazy, what's wrong with bugzilla? Nobody offers to operate it: that's wrong. We put out a call for trackers, and nobody (niemand, nirgendwo) was willing to setup a bugzilla installation, work on an SF data import, and offered to operate this installation for the

Re: was python implemented as a object oriented langage at the beginning ?

2006-10-03 Thread MonkeeSage
Bertrand Ballis wrote: I heard a lot of people from the Ruby community claiming that Python, like Perl, was a scripting langage that was changed aftewards to be object compatible, and that was making it not as good as Ruby, object-oriented from the begenning. Sounds like a bunch of hooey on

Re: I need Cryptogrphy in Python please .

2006-10-03 Thread hg
NicolasG wrote: Looking around for a Cryptography tool kit, the best recommendations I found about was for pyCrypto. I try to install it unsuccessfully in my windowsXP SP2 with python 2.4.3 and I get the following message : C:\Python24\pycrypto-2.0.1python setup.py build running build

Re: loop beats generator expr creating large dict!?

2006-10-03 Thread David Isaac
Does George's example raise the question: why do dictionaries not implement efficient creation for two common cases? - Making a dict from two sequences of the same length. - Making a dict from a sequence and a function (as in George's example in this thread). The current situation is: use a

excepthook doesn't give exact line number

2006-10-03 Thread Hari Sekhon
Hi, I'm wondering if anyone can please help me on figuring out a better way of doing an excepthook. I have a script which is using an excepthook to catch any uncaught exceptions - there usually aren't any except when I am messing with the code, like right now :-) The problem is that the

Re: loop beats generator expr creating large dict!?

2006-10-03 Thread Fredrik Lundh
David Isaac wrote: The current situation is: use a loop because the obvious generator approach is not efficient. not efficient compared to what ? /F -- http://mail.python.org/mailman/listinfo/python-list

Re: How Build VTK for Python 2.5 under Windows?

2006-10-03 Thread Sébastien Ramage
I've install MS Visual C++ toolkit 2003 and cmake but I don't really know how it work. there's somebody who can compile VTK for python 2.5 under windows for me ? thank you (And sorry for my english, I'm French) Seb Sébastien Ramage wrote: Hello, I'm running on Windows and I want to test

Python components

2006-10-03 Thread Jorge Vilela
Hello group!We know that Python have many components not too knowledge.I think that I'm looking for one of them.I need embed a good document editor ( as Word or Writer ) in my small python application, for document editing. It's to lawyers make important documents and control them using the

Re: Manipulate PDFs

2006-10-03 Thread Simon Brunning
On 10/3/06, Weko Altamirano [EMAIL PROTECTED] wrote: Hi Everyone, am a developer using Zope and wanted to know if any of you have ever implemented a pdf generating/creating system using python? This just means mostly manipulating pdfs (create and/or edit) via web. If you guys have any

Re: Operator += works once, fails if called again

2006-10-03 Thread Frederic Rentsch
John Machin wrote: Frederic Rentsch wrote: Hi all, I have a class Time_Series derived from list. It lists days and contains a dictionary of various Lists also derived from list which contain values related to said days. (e.g. Stock quotes, volumes traded, etc.) I defined an

Newbie question: python doesn't search the cwd for my module

2006-10-03 Thread izak marais
Hello AllI want to import a module I wrote to use it in a script. But, it is not in the same directory as the script I want to import it into. So my solution is to put the following piece of code in the script:import osos.chdir(the direcotry where the module is kept)import the moduleThis generates

Re: Best way to handle large lists?

2006-10-03 Thread Bill Williams
I don't know enough about Python internals, but the suggested solutions all seem to involve scanning bigList. Can this presumably linear operation be avoided by using dict or similar to find all occurrences of smallist items in biglist and then deleting those occurrences? Bill Williams In

RE: Howto pass Array/Hash into Function

2006-10-03 Thread Wijaya Edward
Thanks for your understanding Steve. Furthermore, my related concern is how does Python actually deal with 'reference' in Perl. But now, it is clear to me now that Python simply treats them as object. Regards, Edward WIJAYA SINGAPORE From: [EMAIL

Re: Best way to handle large lists?

2006-10-03 Thread Hari Sekhon
I don't know much about the python internals either, so this may be the blind leading the blind, but aren't dicts much slower to work with than lists and therefore wouldn't your suggestion to use dicts be much slower? I think it's something to do with the comparative overhead of using keys in

Re: Newbie question: python doesn't search the cwd for my module

2006-10-03 Thread Ben Finney
izak marais [EMAIL PROTECTED] writes: I want to import a module I wrote to use it in a script. But, it is not in the same directory as the script I want to import it into. I can think of two sensible solutions. One is to change the 'sys.path' list to include the directory where you want

Re: Ctypes and freeing memory

2006-10-03 Thread Chris Mellon
On 10/3/06, Oliver Andrich [EMAIL PROTECTED] wrote: Hi everybody, I am currently playing around with ctypes and a C library (libWand from ImageMagick), and as I want to easily deploy it on Mac, Linux and Windows, I prefer a ctypes solution over a C module. At least on windows, I would have

Instantiating an object when the type is only known at runtime

2006-10-03 Thread Samuel
Hi, I am trying to replace the eval() in the following code: def myfunc(type, table): module = __import__(type) type = 'module' + '.' + type obj = eval(type) return obj(row[table.c.name], row[table.c.handle]) I am out of ideas. Any hints? Thanks, -Samuel --

Re: Making sure script only runs once instance at a time.

2006-10-03 Thread Eric S. Johansson
MonkeeSage wrote: Eric S. Johansson wrote: the problem with this solution is that it does not handle the read nonexclusive/write exclusive locking model. In this model, reads don't block, they only register that the request is in process. writes lock request block until all outstanding

Re: Best way to handle large lists?

2006-10-03 Thread Sybren Stuvel
Bill Williams enlightened us with: I don't know enough about Python internals, but the suggested solutions all seem to involve scanning bigList. Can this presumably linear operation be avoided by using dict or similar to find all occurrences of smallist items in biglist and then deleting those

  1   2   3   >