itools 0.60.0 released

2009-04-22 Thread J. David Ibáñez
itools is a Python library, it groups a number of packages into a single meta-package for easier development and deployment: itools.abnf itools.i18n itools.stl itools.core itools.ical itools.tmx itools.csv itools.odf

ikaaro 0.60.0 released

2009-04-22 Thread J. David Ibáñez
This is a Content Management System built on Python itools, among other features ikaaro provides: - content and document management (indexsearch, metadata, etc.) - multilingual user interfaces and content - high level modules: wiki, forum, tracker, etc. This version adds versioning of the

ANN: Python-SIMPL precompiled (i386) binary v1.3.1 released

2009-04-22 Thread bobicanprogram
The SIMPL open source project (http://www.icanprogram.com/simpl) produces an ultra lightweight toolkit which is useful for connecting Python modules to modules written in any number of other languages (C,C ++, Tcl/Tk or JAVA) using the Send/Receive/Reply messaging scheme first pioneered by QNX.

Re: Any adv. in importing a module and some objects in the same module, into the same file?

2009-04-22 Thread Gabriel Genellina
En Mon, 20 Apr 2009 02:22:08 -0300, alex23 wuwe...@gmail.com escribió: On Apr 17, 7:19 pm, Visco Shaun visc...@gmail.com wrote: What is the use of second import as the first import will be enough(AFAIK) to access anything intended by the second import? Is there any kind of advantage? While

Re: Hello everyone!

2009-04-22 Thread Dotan Cohen
I'm a newby here, I love python very much. Is there any Chinese here? http://wiki.python.org/moin/LocalUserGroups#China You also might want to start a Chinese mailing list and add it here: http://mail.python.org/mailman/listinfo -- Dotan Cohen http://what-is-what.com http://gibberish.co.il

PEP 383: Non-decodable Bytes in System Character Interfaces

2009-04-22 Thread Martin v. Löwis
I'm proposing the following PEP for inclusion into Python 3.1. Please comment. Regards, Martin PEP: 383 Title: Non-decodable Bytes in System Character Interfaces Version: $Revision: 71793 $ Last-Modified: $Date: 2009-04-22 08:42:06 +0200 (Mi, 22. Apr 2009) $ Author: Martin v. Löwis

python command not working

2009-04-22 Thread 83nini
Hi guys, I'm new to python, i downloaded version 2.5, opened windows (vista) command line and wrote python, this should take me to the python command line, but it did not! i'm getting : python is not an internal command, external command, program, or command file. anybody has a clue how do i

Re: python command not working

2009-04-22 Thread David Cournapeau
On Wed, Apr 22, 2009 at 4:20 PM, 83nini 83n...@gmail.com wrote: Hi guys, I'm new to python, i downloaded version 2.5, opened windows (vista) command line and wrote python, this should take me to the python command line, but it did not! i'm getting : python is not an internal command,

Re: python command not working

2009-04-22 Thread 83nini
On 22 Apr, 09:36, David Cournapeau courn...@gmail.com wrote: On Wed, Apr 22, 2009 at 4:20 PM, 83nini 83n...@gmail.com wrote: Hi guys, I'm new to python, i downloaded version 2.5, opened windows (vista) command line and wrote python, this should take me to the python command line, but it

python in Emacs (windows)

2009-04-22 Thread Mark Zweers
Hi! I'm trying to run python from within Emacs. This is in my .emacs file : (setq auto-mode-alist ; trigger python mode automatically (cons '(\\.py$ . python-mode) auto-mode-alist)) (setq interpreter-mode-alist (cons '(python . python-mode) interpreter-mode-alist))

Re: python command not working

2009-04-22 Thread Ben Finney
83nini 83n...@gmail.com writes: I'm new to python, i downloaded version 2.5 What exactly did you download? Give us the URL to the file if possible. opened windows (vista) command line and wrote python The Python interpreter and libraries, like any other application, needs to be installed

Re: python command not working

2009-04-22 Thread David Cournapeau
On Wed, Apr 22, 2009 at 4:44 PM, 83nini 83n...@gmail.com wrote: thanks for the tip, how do i add the path of python into my %PATH%? From the command line (and from memory, I don't use windows regularly): set PATH=C:\python25;%PATH% And you can set it up permanently in the advanced settings

Re: python command not working

2009-04-22 Thread 83nini
On 22 Apr, 09:59, Ben Finney ben+pyt...@benfinney.id.au wrote: 83nini 83n...@gmail.com writes: I'm new to python, i downloaded version 2.5 What exactly did you download? Give us the URL to the file if possible. opened windows (vista) command line and wrote python The Python interpreter

Re: python command not working

2009-04-22 Thread karlos barlos
--- On Wed, 4/22/09, karlos barlos karlosbar...@yahoo.com wrote: From: karlos barlos karlosbar...@yahoo.com Subject: Re: python command not working To: Ben Finney ben+pyt...@benfinney.id.au Date: Wednesday, April 22, 2009, 3:05 AM look for envaroment   variables__   in system

setuptools setup.py and extras

2009-04-22 Thread Chadrik
in addition to resolving install dependencies, setuptools supports extras with their own dependencies. these can be installed using easy_install, like so: $ easy_install mypackage[extraFeature] what is the best way to cause an extra's dependencies to be installed when using the `python

Re: Essential tools for Python development

2009-04-22 Thread Jeremiah Dodds
On Wed, Apr 22, 2009 at 3:50 AM, Esmail ebo...@hotmail.com wrote: Great list Ben, I use emacs and will check out the tools you listed. What techniques/tools do you recommend for debugging? Esmail -- http://mail.python.org/mailman/listinfo/python-list pdb is good if you need to do

Re: python command not working

2009-04-22 Thread 83nini
On 22 Apr, 10:04, David Cournapeau courn...@gmail.com wrote: On Wed, Apr 22, 2009 at 4:44 PM, 83nini 83n...@gmail.com wrote: thanks for the tip, how do i add the path of python into my %PATH%? From the command line (and from memory, I don't use windows regularly): set

Re: python command not working

2009-04-22 Thread Tim Golden
83nini wrote: On 22 Apr, 10:04, David Cournapeau courn...@gmail.com wrote: On Wed, Apr 22, 2009 at 4:44 PM, 83nini 83n...@gmail.com wrote: thanks for the tip, how do i add the path of python into my %PATH%? From the command line (and from memory, I don't use windows regularly): set

Re: Would you support adding UNC support to os.path on Windows?

2009-04-22 Thread Tim Golden
Larry Hastings wrote: I've written a patch for Python 3.1 that changes os.path so it handles UNC paths on Windows. You can read about it at the Python bug tracker: http://bugs.python.org/issue5799 I'd like to gauge community interest in the patch. After all, it's has been declined

Re: python command not working

2009-04-22 Thread 83nini
On 22 Apr, 10:31, Tim Golden m...@timgolden.me.uk wrote: 83nini wrote: On 22 Apr, 10:04, David Cournapeau courn...@gmail.com wrote: On Wed, Apr 22, 2009 at 4:44 PM, 83nini 83n...@gmail.com wrote: thanks for the tip, how do i add the path of python into my %PATH%? From the command line

installer for py2exe files?

2009-04-22 Thread Gabriel Rossetti
Hello everyone, I am wanting to create an installer for my project. I first use py2exe to create win32 executables and then would like to have an easy to use (for the end user) installer. I would need the installer to launch a script (a python script also turned into an exec) after the

Re: best void return of a member function

2009-04-22 Thread Tim Rowe
2009/4/20 Stefan Behnel stefan...@behnel.de: That's the typical SWIG problem: you can generate wrappers for tons of languages, mostly automatically. But none of them will feel 'native' to the users of each of the target languages (well, possibly excluding C and Java here). On the other

Re: python command not working

2009-04-22 Thread Christian Heimes
David Cournapeau schrieb: On Wed, Apr 22, 2009 at 4:20 PM, 83nini 83n...@gmail.com wrote: Hi guys, I'm new to python, i downloaded version 2.5, opened windows (vista) command line and wrote python, this should take me to the python command line, but it did not! i'm getting : python is not an

Re: installer for py2exe files?

2009-04-22 Thread Chris Rebert
On Wed, Apr 22, 2009 at 2:17 AM, Gabriel Rossetti gabriel.rosse...@arimaz.com wrote: Hello everyone, I am wanting to create an installer for my project. I first use py2exe to create win32 executables and then would like to have an easy to use (for the end user) installer. I would need the

Memory footpring of python objects

2009-04-22 Thread BlueBird
Hi, I have a program that manages several thousands instances of one object. To reduce memory consumption, I want of course that specific object to have the smallest memory footpring possible. I have a few ideas that I want to experiment with, like using __slots__, using a tuple or using a

Re: Memory footpring of python objects

2009-04-22 Thread Chris Rebert
On Wed, Apr 22, 2009 at 2:24 AM, BlueBird p...@freehackers.org wrote: Hi, I have a program that manages several thousands instances of one object. To reduce memory consumption, I want of course that specific object to have the smallest memory footpring possible. I have a few ideas that I

Re: installer for py2exe files?

2009-04-22 Thread David Lyon
Hi Gabriel, look at ... - inno setup http://jrsoftware.org/isinfo.php - nsis http://sourceforge.net/projects/nsis/ I think these are the two clear leaders for open source... On Wed, 22 Apr 2009 11:17:10 +0200, Gabriel Rossetti gabriel.rosse...@arimaz.com wrote: Hello everyone, I am

Re: [Py2exe-users] installer for py2exe files?

2009-04-22 Thread Yann Leboulanger
Gabriel Rossetti wrote: Hello everyone, I am wanting to create an installer for my project. I first use py2exe to create win32 executables and then would like to have an easy to use (for the end user) installer. I would need the installer to launch a script (a python script also turned

Re: Memory footpring of python objects

2009-04-22 Thread Marco Mariani
BlueBird wrote: I have a program that manages several thousands instances of one object. To reduce memory consumption, I want of course that specific object to have the smallest memory footpring possible. Have you thought of using something like the flyweight pattern and a compact data

Re: Memory footpring of python objects

2009-04-22 Thread Steven D'Aprano
On Wed, 22 Apr 2009 02:30:32 -0700, Chris Rebert wrote: On Wed, Apr 22, 2009 at 2:24 AM, BlueBird p...@freehackers.org wrote: Hi, I have a program that manages several thousands instances of one object. To reduce memory consumption, I want of course that specific object to have the

Problem with base64 mimeparts and email.*

2009-04-22 Thread seal
Hello, I'm writing a rss2mbox program as a first python project. I'm using feedparser, mailbox and email.* modules. I have a problem. The produced MIME- message (see below) seems right, as far as I know, but the base64-encoded part isn't decoded in the MUAs. I've tried cone and vm. The encoded

Re: python command not working

2009-04-22 Thread 83nini
On 22 Apr, 11:24, Christian Heimes li...@cheimes.de wrote: David Cournapeau schrieb: On Wed, Apr 22, 2009 at 4:20 PM, 83nini 83n...@gmail.com wrote: Hi guys, I'm new to python, i downloaded version 2.5, opened windows (vista) command line and wrote python, this should take me to the

Re: python command not working

2009-04-22 Thread 83nini
On 22 Apr, 12:06, 83nini 83n...@gmail.com wrote: On 22 Apr, 11:24, Christian Heimes li...@cheimes.de wrote: David Cournapeau schrieb: On Wed, Apr 22, 2009 at 4:20 PM, 83nini 83n...@gmail.com wrote: Hi guys, I'm new to python, i downloaded version 2.5, opened windows (vista)

Re: Install NumPy in python 2.6

2009-04-22 Thread Ole Streicher
Hi David, David Cournapeau courn...@gmail.com writes: On Fri, Mar 13, 2009 at 8:20 PM, gopal mishra gop...@infotechsw.com wrote: error: Setup script exited with error: None Numpy 1.3.0 (to be released 1st April 2009) will contain everything to be buildable and usable with python 2.6 on

Re: [Python-Dev] PEP 383: Non-decodable Bytes in System Character Interfaces

2009-04-22 Thread Nick Coghlan
Martin v. Löwis wrote: I'm proposing the following PEP for inclusion into Python 3.1. Please comment. That seems like a much nicer solution than having parallel bytes/Unicode APIs everywhere. When the locale encoding is UTF-8, would UTF-8b also be used for the command line decoding and

py2exe with BeautifulSoup and simplejson error

2009-04-22 Thread Gabriel Rossetti
Hello everyone, I am tryng to use py2exe with BeautifulSoup and simplejson. I have already successfully used it with storm and twisted, but for some reason py2exe does not find neither BeautifulSoup nor simplejson. I did do something different when installing those packages, I used easy_install

Serving html and python cgi through BaseHTTPServer.py

2009-04-22 Thread Mads Nielsen
Hello all. im tinkering with some beginner cgi stuff in python. (form processing) i have a basic html document with a form and some inputs and i have a cgi.py file to process the form. how does one serve html and python cgi through the BaseHTTPServer included with python 2.6 ? i have tried to

Re: installer for py2exe files?

2009-04-22 Thread Werner F. Bruhin
Hi Gabriel, Gabriel Rossetti wrote: Hello everyone, I am wanting to create an installer for my project. I first use py2exe to create win32 executables and then would like to have an easy to use (for the end user) installer. I use InnoSetup - link already given by David. I would need the

Re: python command not working

2009-04-22 Thread David Cournapeau
On Wed, Apr 22, 2009 at 6:24 PM, Christian Heimes li...@cheimes.de wrote: I highly recommend against adding C:\Python25 to your %PATH%. You can get the same effect by adding a simple bat file to C:\Windows\System32 I am curious, what's the difference ? And does this work if you want to add

Re: execfile (exec?) create non consistent locals() state

2009-04-22 Thread David Stanek
I expected exec to work the same, but apparently I was wrong. Is there is a way to exec a file more correctly? thus avoid the need to resort to awkward solutions such as using the locals() dictionary? I don't know personally. Perhaps a kind soul will chime in. Why not just exec into a

Re: python command not working

2009-04-22 Thread Christian Heimes
David Cournapeau schrieb: On Wed, Apr 22, 2009 at 6:24 PM, Christian Heimes li...@cheimes.de wrote: I highly recommend against adding C:\Python25 to your %PATH%. You can get the same effect by adding a simple bat file to C:\Windows\System32 I am curious, what's the difference ? And does

Re: python command not working

2009-04-22 Thread David Cournapeau
On Wed, Apr 22, 2009 at 8:43 PM, Christian Heimes li...@cheimes.de wrote: My way doesn't add the dlls to the search path. It allows you to have multiple python commands at once, too. I have shortcuts for python24, python25 and python26 on my Windows box. Ah, thanks, that's really useful. I

Re: Install NumPy in python 2.6

2009-04-22 Thread David Cournapeau
On Wed, Apr 22, 2009 at 6:38 PM, Ole Streicher ole-usenet-s...@gmx.net wrote: Unfortunately, www.netlib.org is not reachable, so I cannot try to install lapack. What is the reason for that? I don't know, I think netlib.org will be back soon. You need LAPACK for scipy, it is not possible to

Weird lambda behavior

2009-04-22 Thread Rüdiger Ranft
Hi all, I want to generate some methods in a class using setattr and lambda. Within each generated function a name parameter to the function is replaced by a string constant, to keep trail which function was called. The problem I have is, that the substituted name parameter is not replaced by the

Re: Binary IP address representation

2009-04-22 Thread Philipp Hagemeister
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi Dave, I've solved this now using ipaddr. ipaddr will be in the stdlib as soon as its developers realize there are actually not one, but two proposals to fix the remaining issues waiting for their input. Anyway, since ipaddr:r68, you can do the

Re: Install NumPy in python 2.6

2009-04-22 Thread Eduardo Lenz
On Wednesday 22 April 2009 04:47:54 David Cournapeau wrote: On Wed, Apr 22, 2009 at 6:38 PM, Ole Streicher ole-usenet-s...@gmx.net wrote: Unfortunately, www.netlib.org is not reachable, so I cannot try to install lapack. What is the reason for that? I don't know, I think netlib.org

Tryton 1.2 released

2009-04-22 Thread ced
Tryton is a three-tiers high-level general purpose application platform under the license GPL-3 written in Python and using PostgreSQL as database engine. It is the core base of a complete business solution providing modularity, scalability and security. Step by step Tryton is getting more

Re: Memory footpring of python objects

2009-04-22 Thread BlueBird
On 22 avr, 11:56, Steven D'Aprano ste...@remove.this.cybersource.com.au wrote: On Wed, 22 Apr 2009 02:30:32 -0700, Chris Rebert wrote: On Wed, Apr 22, 2009 at 2:24 AM, BlueBird p...@freehackers.org wrote: Hi, I have a program that manages several thousands instances of one object. To

use smtpd as a gmail proxy server

2009-04-22 Thread Robin Becker
A bit of googling reveals that it's possible to use smtplib to do mailing using gmail. Is there a way to use smtpd as a proxy server with gmail. This apparently works with smtplib, mailServer = smtplib.SMTP('smtp.gmail.com', 587) mailServer.ehlo() mailServer.starttls()

Re: Install NumPy in python 2.6

2009-04-22 Thread Ole Streicher
Hi Eduardo, Eduardo Lenz l...@joinville.udesc.br writes: On Wednesday 22 April 2009 04:47:54 David Cournapeau wrote: On Wed, Apr 22, 2009 at 6:38 PM, Ole Streicher ole-usenet-s...@gmx.net wrote: but scipy then fails: error: Lapack (http://www.netlib.org/lapack/) libraries not found.

Re: execfile (exec?) create non consistent locals() state

2009-04-22 Thread Peter Otten
[original post is not on my news server] [Doron Tal] Recently I tried to execute a python file using execfile (exec performed just the same for that reason). Not over here: Python 2.4.4 (#2, Aug 1 2008, 00:04:43) [GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2 Type

Re: PEP 383: Non-decodable Bytes in System Character Interfaces

2009-04-22 Thread MRAB
Martin v. Löwis wrote: [snip] To convert non-decodable bytes, a new error handler python-escape is introduced, which decodes non-decodable bytes using into a private-use character U+F01xx, which is believed to not conflict with private-use characters that currently exist in Python codecs. The

Re: [Python-Dev] PEP 383: Non-decodable Bytes in System Character Interfaces

2009-04-22 Thread Walter Dörwald
Martin v. Löwis wrote: I'm proposing the following PEP for inclusion into Python 3.1. Please comment. Regards, Martin PEP: 383 Title: Non-decodable Bytes in System Character Interfaces Version: $Revision: 71793 $ Last-Modified: $Date: 2009-04-22 08:42:06 +0200 (Mi, 22. Apr 2009) $

Re: Weird lambda behavior

2009-04-22 Thread Chris Rebert
On Wed, Apr 22, 2009 at 4:50 AM, Rüdiger Ranft _r...@web.de wrote: Hi all, I want to generate some methods in a class using setattr and lambda. Within each generated function a name parameter to the function is replaced by a string constant, to keep trail which function was called. The

namespace query

2009-04-22 Thread Dr Mephesto
Hi, I have a quick question about global namespace, and I'm hoping someone could give a quick reply to sort me out :) I have a single file program that uses numpy, and it works just fine. I want to move some classes into their own files, to make the code reusable. When I cut and paste the the

Re: pyflakes, pylint, pychecker - and other tools

2009-04-22 Thread Colin J. Williams
Esmail wrote: What is the consensus of the Python community regarding these code checkers? In particular, are the stylistic recommendations that pylint makes considered sensible/valid? pylint seems a bit heavy handled, a bit too much PEP 8, which was intended as a guide, rather than a

Re: Essential tools for Python development

2009-04-22 Thread Colin J. Williams
Esmail wrote: Great list Ben, I use emacs and will check out the tools you listed. What techniques/tools do you recommend for debugging? I like PyScripter for Windows, which provides a tool for PyLint. Colin W. Esmail -- http://mail.python.org/mailman/listinfo/python-list

Re: namespace query

2009-04-22 Thread Marco Mariani
Dr Mephesto wrote: Why are the class files I created not seeing the top namespace? Because it's how python works. What you think is a top namespace, it's not at the top. It's just the namespace of the module you run the program with. You must import numpy from the all the modules that make

Re: namespace query

2009-04-22 Thread Steven D'Aprano
On Wed, 22 Apr 2009 05:21:06 -0700, Dr Mephesto wrote: If I add a global numpy to the beginning of each class in the new files, the program runs. Do I really have to add global XXX for every module I import in the main program into every module I create and import? Why are the class files I

Re: namespace query

2009-04-22 Thread Peter Otten
Dr Mephesto wrote: I have a quick question about global namespace, and I'm hoping someone could give a quick reply to sort me out :) I have a single file program that uses numpy, and it works just fine. I want to move some classes into their own files, to make the code reusable. When I

Re: pyflakes, pylint, pychecker - and other tools

2009-04-22 Thread Esmail
Colin J. Williams wrote: Esmail wrote: What is the consensus of the Python community regarding these code checkers? In particular, are the stylistic recommendations that pylint makes considered sensible/valid? pylint seems a bit heavy handled, a bit too much PEP 8, Just having used this

Re: Re: Weird lambda behavior

2009-04-22 Thread Rüdiger Ranft
Chris Rebert schrieb: On Wed, Apr 22, 2009 at 4:50 AM, Rüdiger Ranft _r...@web.de wrote: Hi all, I want to generate some methods in a class using setattr and lambda. Within each generated function a name parameter to the function is replaced by a string constant, to keep trail which function

Re: Best Python Web Framework ?

2009-04-22 Thread SKYLAB
On 21 Nisan, 23:56, laplacia...@gmail.com laplacia...@gmail.com wrote: On Apr 21, 2:46 pm, SKYLAB zky...@gmail.com wrote: Greetings.. First , my english is not good . I heard that was written in python ( Youtube Programming Language : PYTHON :S ) Correct ? That's not correct ? Then

Re: Please help me grok: webserver python

2009-04-22 Thread bobicanprogram
On Apr 21, 3:20 pm, Phillip B Oldham phillip.old...@gmail.com wrote: I'm having trouble grok'ing how to get python talking through a webserver. I've got a lot of experience working with nginx+php-fcgi (via a unix socket) and I'd like to know what would be the bare minimum to get python talking

What is the best framework or module in Python for a small GUI based application development?

2009-04-22 Thread srinivasan srinivas
Hi, Could you suggest me some modules in Python which can be used to develop GUI based applications? and tell me which could be the best(in terms of efficiency) one for a small GUI based application development? Thanks, Srini Bollywood news, movie reviews, film trailers and more! Go to

Re: namespace query

2009-04-22 Thread Dr Mephesto
ok, sorted. I had thought that when a module was imported, it was added to a larger shared namespace used by all the modules. And yes, you are all correct; the global numpy thing was an illusion caused by saving the file at the wrong time after making a few changes. --

Re: namespace query

2009-04-22 Thread Marco Mariani
Dr Mephesto wrote: ok, sorted. I had thought that when a module was imported, it was added to a larger shared namespace used by all the modules. Now, that would be awfulll Because one of the most important things about python (and the reason I can live without an IDE) is that I can point

Re: Install NumPy in python 2.6

2009-04-22 Thread David Cournapeau
On Wed, Apr 22, 2009 at 9:11 PM, Ole Streicher ole-usenet-s...@gmx.net wrote: Hi Eduardo, Eduardo Lenz l...@joinville.udesc.br writes: On Wednesday 22 April 2009 04:47:54 David Cournapeau wrote: On Wed, Apr 22, 2009 at 6:38 PM, Ole Streicher ole-usenet-s...@gmx.net wrote: but scipy then

Re: Python, MS SQL, and batch inserts

2009-04-22 Thread pruebauno
On Apr 21, 5:21 pm, Scott David Daniels scott.dani...@acm.org wrote: ericwoodwo...@gmail.com wrote: On Apr 21, 4:01 pm, ericwoodwo...@gmail.com wrote: On Apr 21, 3:36 pm, Scott David Daniels scott.dani...@acm.org wrote: I forget the name of the SQL Server bulk loader, bcp (bulk

need help with a multiloop error

2009-04-22 Thread Brian
I'm trying to run a python program with a multiloop and I am getting this error message. I was wondering if anyone could tell from this message what I'm doing wrong or where I've made a mistake. Let me know if you need some of the code for this to make more sense. Thanks a lot. How much labor

Re: What is the best framework or module in Python for a small GUI based application development?

2009-04-22 Thread Mike Driscoll
On Apr 22, 8:11 am, srinivasan srinivas sri_anna...@yahoo.co.in wrote: Hi, Could you suggest me some modules in Python which can be used to develop GUI based applications? and tell me which could be the best(in terms of efficiency) one for a small GUI based application development? Thanks,

Re: python command not working

2009-04-22 Thread 83nini
On 22 Apr, 13:45, David Cournapeau courn...@gmail.com wrote: On Wed, Apr 22, 2009 at 8:43 PM, Christian Heimes li...@cheimes.de wrote: My way doesn't add the dlls to the search path. It allows you to have multiple python commands at once, too. I have shortcuts for python24, python25 and

Re: need help with a multiloop error

2009-04-22 Thread MRAB
Brian wrote: I'm trying to run a python program with a multiloop and I am getting this error message. I was wondering if anyone could tell from this message what I'm doing wrong or where I've made a mistake. Let me know if you need some of the code for this to make more sense. Thanks a lot.

Re: need help with a multiloop error

2009-04-22 Thread Jeremiah Dodds
On Wed, Apr 22, 2009 at 3:07 PM, Brian b_glass...@hotmail.com wrote: I'm trying to run a python program with a multiloop and I am getting this error message. I was wondering if anyone could tell from this message what I'm doing wrong or where I've made a mistake. Let me know if you need

Re: Weird lambda behavior

2009-04-22 Thread Dave Angel
Rüdiger Ranft wrote: Hi all, I want to generate some methods in a class using setattr and lambda. Within each generated function a name parameter to the function is replaced by a string constant, to keep trail which function was called. The problem I have is, that the substituted name parameter

Re: python command not working

2009-04-22 Thread 83nini
On 22 Apr, 16:23, 83nini 83n...@gmail.com wrote: On 22 Apr, 13:45, David Cournapeau courn...@gmail.com wrote: On Wed, Apr 22, 2009 at 8:43 PM, Christian Heimes li...@cheimes.de wrote: My way doesn't add the dlls to the search path. It allows you to have multiple python commands at once,

Re: [Py2exe-users] installer for py2exe files?

2009-04-22 Thread Gabriel Rossetti
Gabriel Rossetti wrote: Hello everyone, I am wanting to create an installer for my project. I first use py2exe to create win32 executables and then would like to have an easy to use (for the end user) installer. I would need the installer to launch a script (a python script also turned into

gethostbyname blocking

2009-04-22 Thread marc wyburn
Hi, I am writing an asynchronous ping app to check if 1000s of hosts are alive very quickly. Everything works extremely quickly unless the host name doesn't have a DNS record. when calling socket.gethostbyname if there is no record for the host the result seems to block all other threads. As an

Re: python in Emacs (windows)

2009-04-22 Thread David Robinow
On Wed, Apr 22, 2009 at 3:52 AM, Mark Zweers zweers.m...@gmail.com wrote: Hi! I'm trying to run python from within Emacs. This is in my .emacs file : (setq auto-mode-alist ; trigger python mode automatically    (cons '(\\.py$ . python-mode) auto-mode-alist)) (setq interpreter-mode-alist

pylab quick reference? (matplotlib)

2009-04-22 Thread Esmail
Hello all, Does anyone know of a quick reference for the various plotting functions for pylab? I'm just getting started with this after years of work with gnuplot. I found this http://matplotlib.sourceforge.net/api/pyplot_api.html which is very comprehensive and would be good for digging

Re: python command not working

2009-04-22 Thread Scott David Daniels
83nini wrote: ... at last i made the bat file (python25.bat) that contains the following contents: --- @C:\Python25\python.exe %* --- could you tell me how to call python25 in the batch files? what batch files do you mean? where do i find them? python25.bat or python25.cmd are acceptable

Re: What is the best framework or module in Python for a small GUI based application development?

2009-04-22 Thread srinivasan srinivas
Thanks for the info. My requirement is to write an application which is GUI based has to run on browsers. Could you tell me which one would be suitable for this? - Original Message From: Mike Driscoll kyoso...@gmail.com To: python-list@python.org Sent: Wednesday, 22 April, 2009

Ending data exchange through multiprocessing pipe

2009-04-22 Thread Michal Chruszcz
Hi, I am adding support for parallel processing to an existing program which fetches some data and then performs some computation with results saved to a database. Everything went just fine until I wanted to gather all of the results from the subprocesses. First idea, which came to my mind, was

Re: What is the best framework or module in Python for a small GUI based application development?

2009-04-22 Thread Diez B. Roggisch
srinivasan srinivas wrote: Thanks for the info. My requirement is to write an application which is GUI based has to run on browsers. Could you tell me which one would be suitable for this? There is no GUI-framework on browsers. There is HTML/CSS + JS, which is produced by servers that can

Re: Weird lambda behavior

2009-04-22 Thread Diez B. Roggisch
Rüdiger Ranft wrote: Hi all, I want to generate some methods in a class using setattr and lambda. Within each generated function a name parameter to the function is replaced by a string constant, to keep trail which function was called. The problem I have is, that the substituted name

Re: What is the best framework or module in Python for a small GUI based application development?

2009-04-22 Thread Tim Chase
My requirement is to write an application which is GUI based has to run on browsers. Could you tell me which one would be suitable for this? These are generally 2 different things: either you're writing a local GUI rich-client (in which case, use the GuiProgramming wiki link Mike sent), or

Re: Would you support adding UNC support to os.path on Windows?

2009-04-22 Thread Aahz
In article mailman.4310.1240363364.11746.python-l...@python.org, Larry Hastings la...@facebook.com wrote: I've written a patch for Python 3.1 that changes os.path so it handles UNC paths on Windows. You can read about it at the Python bug tracker: http://bugs.python.org/issue5799 I'd

Re: Weird lambda behavior

2009-04-22 Thread Scott David Daniels
Dave Angel wrote: ... Incidentally, in your example, I believe you needed the *y and **z in the actual parameters to __callFn__() Also, use a name like __callFn rhather than __callFn__ -- You are treading on Pythons internal names if you put __ at the beginning _and_ the end, and will

Re: generating random tuples in python

2009-04-22 Thread Michael Spencer
Robert Kern wrote: On 2009-04-20 23:04, per wrote: to be more formal by very different, i would be happy if they were maximally distant in ordinary euclidean space... so if you just plot the 3-tuples on x, y, z i want them to all be very different from each other. i realize this is obviously

Re: What is the best framework or module in Python for a small GUI based application development?

2009-04-22 Thread Mike Driscoll
On Apr 22, 10:51 am, Tim Chase python.l...@tim.thechases.com wrote: My requirement is to write an application which is GUI based has to run on browsers. Could you tell me which one would be suitable for this? These are generally 2 different things:  either you're writing a local GUI

Re: pyflakes, pylint, pychecker - and other tools

2009-04-22 Thread Aahz
In article gsn283$jf...@theodyn.ncf.ca, Colin J. Williams c...@ncf.ca wrote: pylint seems a bit heavy handled, a bit too much PEP 8, which was intended as a guide, rather than a prescription. That's half-true on both counts: First of all, any new library must be PEP 8-compliant for submission

Re: gethostbyname blocking

2009-04-22 Thread Jean-Paul Calderone
On Wed, 22 Apr 2009 08:08:51 -0700 (PDT), marc wyburn marc.wyb...@googlemail.com wrote: Hi, I am writing an asynchronous ping app to check if 1000s of hosts are alive very quickly. Everything works extremely quickly unless the host name doesn't have a DNS record. when calling

Re: Ending data exchange through multiprocessing pipe

2009-04-22 Thread MRAB
Michal Chruszcz wrote: Hi, I am adding support for parallel processing to an existing program which fetches some data and then performs some computation with results saved to a database. Everything went just fine until I wanted to gather all of the results from the subprocesses. First idea,

Re: gethostbyname blocking

2009-04-22 Thread marc wyburn
On Apr 22, 5:19 pm, Jean-Paul Calderone exar...@divmod.com wrote: On Wed, 22 Apr 2009 08:08:51 -0700 (PDT), marc wyburn marc.wyb...@googlemail.com wrote: Hi, I am writing an asynchronous ping app to check if 1000s of hosts are alive very quickly.  Everything works extremely quickly unless the

Re: relation class

2009-04-22 Thread Aaron Brady
On Apr 22, 12:09 am, Chris Rebert c...@rebertia.com wrote: On Tue, Apr 21, 2009 at 5:51 PM, Aaron Brady castiro...@gmail.com wrote: Hi all, I think Python should have a relation class in the standard library. Fat chance. Perhaps I'm not understanding relation correctly, but are you not

Re: unpythonic use of property()?

2009-04-22 Thread Luis Zarrabeitia
On Monday 20 April 2009 11:29:19 am J Kenneth King wrote: Changing the ID value would break things on the server, so I wanted to write the interface class to respect those conventions. Then, take this opportunity fix the server and prevent it from breaking once you change the ID, because:

RE: pylab quick reference? (matplotlib)

2009-04-22 Thread Benjamin J. Racine
Not exactly what you've described, but I like this... I just spot the type of plot I'm looking for, copy the code, and I'm off... http://matplotlib.sourceforge.net/gallery.html I like this technique better than any formal documentation almost. Btw, there is a specific matplotlib list as well.

Re: What is the best framework or module in Python for a small GUI based application development?

2009-04-22 Thread John Fabiani
srinivasan srinivas wrote: Hi, Could you suggest me some modules in Python which can be used to develop GUI based applications? and tell me which could be the best(in terms of efficiency) one for a small GUI based application development? Thanks, Srini Bollywood news, movie

Re: unpythonic use of property()?

2009-04-22 Thread J Kenneth King
Luis Zarrabeitia ky...@uh.cu writes: On Monday 20 April 2009 11:29:19 am J Kenneth King wrote: Changing the ID value would break things on the server, so I wanted to write the interface class to respect those conventions. Then, take this opportunity fix the server and prevent it from

Re: Would you support adding UNC support to os.path on Windows?

2009-04-22 Thread norseman
Larry Hastings wrote: I've written a patch for Python 3.1 that changes os.path so it handles UNC paths on Windows. You can read about it at the Python bug tracker: http://bugs.python.org/issue5799 I'd like to gauge community interest in the patch. After all, it's has been declined

  1   2   3   4   >