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 so

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

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)) (auto

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 installe

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 settin

Re: python command not working

2009-04-22 Thread 83nini
On 22 Apr, 09:59, Ben Finney 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 and libraries,

Re: python command not working

2009-04-22 Thread karlos barlos
--- On Wed, 4/22/09, karlos barlos wrote: From: karlos barlos Subject: Re: python command not working To: "Ben Finney" Date: Wednesday, April 22, 2009, 3:05 AM look for envaroment   variables__   in system menu__path_paste the python path in ___- done i recomend you add scripts too

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 setup

Re: Essential tools for Python development

2009-04-22 Thread Jeremiah Dodds
On Wed, Apr 22, 2009 at 3:50 AM, Esmail 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 step-through deb

Re: python command not working

2009-04-22 Thread 83nini
On 22 Apr, 10:04, David Cournapeau 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 PATH=C:\python25;%PATH% > > And

Re: python command not working

2009-04-22 Thread Tim Golden
83nini wrote: On 22 Apr, 10:04, David Cournapeau 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 PATH=C:\python25;%PATH%

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 bef

Re: python command not working

2009-04-22 Thread 83nini
On 22 Apr, 10:31, Tim Golden wrote: > 83nini wrote: > > On 22 Apr, 10:04, David Cournapeau 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'

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 install

Re: best "void" return of a member function

2009-04-22 Thread Tim Rowe
2009/4/20 Stefan Behnel : > 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 hand, a thin wrapper

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

Re: installer for py2exe files?

2009-04-22 Thread Chris Rebert
On Wed, Apr 22, 2009 at 2:17 AM, 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 scri

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

Re: Memory footpring of python objects

2009-04-22 Thread Chris Rebert
On Wed, Apr 22, 2009 at 2:24 AM, BlueBird 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 want to expe

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 wrote: > Hello everyone, > > I am wanting to create an installe

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 tur

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 repres

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

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 con

Re: python command not working

2009-04-22 Thread 83nini
On 22 Apr, 11:24, Christian Heimes 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 py

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

Re: Install NumPy in python 2.6

2009-04-22 Thread Ole Streicher
Hi David, David Cournapeau writes: > On Fri, Mar 13, 2009 at 8:20 PM, gopal mishra 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 windows. If you are in a > hurry, you can

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 enviro

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 a

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 go

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 ins

Re: python command not working

2009-04-22 Thread David Cournapeau
On Wed, Apr 22, 2009 at 6:24 PM, Christian Heimes 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 it to your user

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 in

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

Re: python command not working

2009-04-22 Thread David Cournapeau
On Wed, Apr 22, 2009 at 8:43 PM, Christian Heimes 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 need this too,

Re: Install NumPy in python 2.6

2009-04-22 Thread David Cournapeau
On Wed, Apr 22, 2009 at 6:38 PM, Ole Streicher 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 build it without it

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 f

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

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 featu

Re: Memory footpring of python objects

2009-04-22 Thread BlueBird
On 22 avr, 11:56, Steven D'Aprano wrote: > On Wed, 22 Apr 2009 02:30:32 -0700, Chris Rebert wrote: > > On Wed, Apr 22, 2009 at 2:24 AM, BlueBird wrote: > > >> Hi, > > >> I have a program that manages several thousands instances of one > >> object. To reduce memory > >> consumption, I want of cour

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() mailServer.ehlo(

Re: Install NumPy in python 2.6

2009-04-22 Thread Ole Streicher
Hi Eduardo, Eduardo Lenz writes: > On Wednesday 22 April 2009 04:47:54 David Cournapeau wrote: >> On Wed, Apr 22, 2009 at 6:38 PM, Ole Streicher > wrote: >> > but scipy then fails: >> > error: Lapack (http://www.netlib.org/lapack/) libraries not found. >> > What is the reason for that? > try A

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

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 20

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

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 cl

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 prescr

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 fi

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

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 fo

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 wh

Re: Best Python Web Framework ?

2009-04-22 Thread SKYLAB
On 21 Nisan, 23:56, "laplacia...@gmail.com" wrote: > On Apr 21, 2:46 pm, SKYLAB 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 youtube is PHP applic

Re: Please help me grok: webserver > python

2009-04-22 Thread bobicanprogram
On Apr 21, 3:20 pm, Phillip B Oldham 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 in the same way. > >

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. -- http://mail.python.org/

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 my

Re: Install NumPy in python 2.6

2009-04-22 Thread David Cournapeau
On Wed, Apr 22, 2009 at 9:11 PM, Ole Streicher wrote: > Hi Eduardo, > > Eduardo Lenz writes: >> On Wednesday 22 April 2009 04:47:54 David Cournapeau wrote: >>> On Wed, Apr 22, 2009 at 6:38 PM, Ole Streicher >> wrote: >>> > but scipy then fails: >>> > error: Lapack (http://www.netlib.org/lapack/)

Re: Python, MS SQL, and batch inserts

2009-04-22 Thread pruebauno
On Apr 21, 5:21 pm, Scott David Daniels wrote: > ericwoodwo...@gmail.com wrote: > > On Apr 21, 4:01 pm, ericwoodwo...@gmail.com wrote: > >> On Apr 21, 3:36 pm, Scott David Daniels wrote: > >>> I forget the name of the SQL Server bulk loader, > > bcp (bulk copy) was the name of the 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 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 > See th

Re: python command not working

2009-04-22 Thread 83nini
On 22 Apr, 13:45, David Cournapeau wrote: > On Wed, Apr 22, 2009 at 8:43 PM, Christian Heimes 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. >

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

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 wrote: > > > On Wed, Apr 22, 2009 at 8:43 PM, Christian Heimes 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

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 a

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

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 int

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 n

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 To: python-list@python.org Sent: Wednesday, 22 April, 2009 7:51:33 PM Subject: Re:

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 u

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 ca

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 yo

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

2009-04-22 Thread Aahz
In article , 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

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 con

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 b

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 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 rich-client (in which case

Re: pyflakes, pylint, pychecker - and other tools

2009-04-22 Thread Aahz
In article , Colin J. Williams 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 to the standard library, so PEP 8 is

Re: gethostbyname blocking

2009-04-22 Thread Jean-Paul Calderone
On Wed, 22 Apr 2009 08:08:51 -0700 (PDT), marc wyburn 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 socket.gethostbyname if there is no record

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

Re: gethostbyname blocking

2009-04-22 Thread marc wyburn
On Apr 22, 5:19 pm, Jean-Paul Calderone wrote: > On Wed, 22 Apr 2009 08:08:51 -0700 (PDT), marc wyburn > 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

Re: relation class

2009-04-22 Thread Aaron Brady
On Apr 22, 12:09 am, Chris Rebert wrote: > On Tue, Apr 21, 2009 at 5:51 PM, Aaron Brady 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 > aware ofhttp://docs.pytho

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 new

Re: unpythonic use of property()?

2009-04-22 Thread J Kenneth King
Luis Zarrabeitia 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 breaking onc

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 bef

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

2009-04-22 Thread Benjamin Kaplan
On Wed, Apr 22, 2009 at 12:13 PM, Mike Driscoll wrote: > On Apr 22, 10:51 am, Tim Chase 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 th

Re: pylab quick reference? (matplotlib)

2009-04-22 Thread norseman
Esmail wrote: 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

Splice decorator out of exception stack trace?

2009-04-22 Thread Ben Weaver
Hi, Is there any way to "splice" a decorator out of an exception stack trace? For example: >>> def decorator(proc): ... def internal(*args, **kwargs): ... return proc(*args, **kwargs) ... return internal >>> @decorator ... def foo(): ... assert False, 'simulate failure' >>>

Re: Splice decorator out of exception stack trace?

2009-04-22 Thread Chris Rebert
On Wed, Apr 22, 2009 at 11:19 AM, Ben Weaver wrote: > Hi, > > Is there any way to "splice" a decorator out of an exception stack > trace?  For example: > def decorator(proc): > ...     def internal(*args, **kwargs): > ...         return proc(*args, **kwargs) > ...     return internal > @

Re: Essential tools for Python development

2009-04-22 Thread Phillip B Oldham
On Apr 22, 5:00 am, Ben Finney wrote: > [snip] and code each module so that the > behaviour is easily introspected and tested from outside the module. If > I'm not able to easily introspect the code at an interactive prompt, > that's a clear sign that the code interface is poorly designed. So I fi

Re: unpythonic use of property()?

2009-04-22 Thread Luis Zarrabeitia
On Wednesday 22 April 2009 01:44:38 pm J Kenneth King wrote: > > Then, take this opportunity fix the server and prevent it from breaking > > once you change the ID, because: > > Unfortunately it's not my server to fix. I can suggest a patch, but > that's it. Yes, that's unfortunate. Btw, when I re

  1   2   >