Wing IDE for Python v. 3.0 beta1 released

2007-07-31 Thread Wingware
Hi, I'm happy to announce the first beta release of Wing IDE 3.0. It is available from http://wingware.com/wingide/beta Wing IDE is a commercial IDE designed specifically for Python programmers. More information about the product and free trials are available at http://wingware.com/ The major

Python Package Index hostname change

2007-07-31 Thread Martin v. Löwis
The Python Packaging Index (the software formerly known as Cheeseshop) is now available at http://pypi.python.org/pypi The old addresses (www.python.org/pypi, and cheeseshop.python.org/pypi) will continue to work, either as aliases or using HTTP redirections. The software was renamed to its old

MailingLogger 3.2.0 Released!

2007-07-31 Thread Chris Withers
With help from Jens Vagelpohl, I'm pleased to announce a new release of Mailinglogger that now supports filtering of log entries... Mailinglogger enables log entries to be emailed either as the entries are logged or as a summary at the end of the running process. This pair of enhanced emailing

PyCon UK talks announced

2007-07-31 Thread PyConUK Publicist
Details of the talks we'll be having at the UK Python conference in September are now appearing on the website: http://www.pyconuk.org/talks.html. -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation:

Re: Reading a two-column file into an array?

2007-07-31 Thread Marc 'BlackJack' Rintsch
On Mon, 30 Jul 2007 21:57:17 -0700, Nagarajan wrote: a = [] import csv reader = csv.reader(open(filename, r), delimiter='\t' ) for row in reader: a.append( row ) I would keep a reference to the file to close it properly and the loop can be replaced by a call to `list()`: import csv

Re: Pysqlite storing file as blob example

2007-07-31 Thread 7stud
On Jul 30, 6:25 pm, [EMAIL PROTECTED] wrote: I'm trying to store binary data in a sqlite database and call into the db using pysqlite 3. What I've got so far is this: import sqlite con = sqlite.connect(DB_PATH) cur = con.cursor() query = create table t1( ID INTEGER PRIMARY

Re: Directory

2007-07-31 Thread markacy
On 30 Lip, 23:43, Rohan [EMAIL PROTECTED] wrote: I would like to get a list of sub directories in a directory. If I use os.listdir i get a list of directories and files in that . i only want the list of directories in a directory and not the files in it. anyone has an idea regarding this. Hi

Re: Replacing overloaded functions with closures.

2007-07-31 Thread king kikapu
Ok, i see... Thank you all :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Where do they tech Python officialy ?

2007-07-31 Thread Bruno Desthuilliers
Star a écrit : MIT's freshman survey, EECS 1 is taught in Python and Scheme, soon to be just Python. they should keep scheme or replace it with another (statically typed ?) functional language IMHO. OT please do the world (or at least usenet and mailing lists users) a favour : learn to

Simple question about logging module.

2007-07-31 Thread Gabor Urban
Hullo, I have started to use Python's logging, and got a problem. I have created some loggers and wrote some lines in the log. The problem is, that most of the lines appear doubled in the log, and some lines do not appear at all. Any ideas or comments are wellcome, Gabor Here is the code:

Re: File handle not being released by close

2007-07-31 Thread Gary Duzan
In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: [ ... ] for fileName in fileNames: fileBeginning = os.path.splitext(fileName)[0] fileEnd = os.path.splitext(fileName)[1] if fileEnd == .py: print fileName f=open(fileBeginning+.tmp, 'w') f.write(Hello) f.close

simple string backspace question

2007-07-31 Thread vedrandekovic
Hello, I have one simple string, backspace character question.Here is my example: text=Hello\bworld print text HelloBSworld Should this character \b (backspace) in this text return this: Helloworld? Regards, Vedran -- http://mail.python.org/mailman/listinfo/python-list

Re: simple string backspace question

2007-07-31 Thread Lawrence Oluyede
[EMAIL PROTECTED] wrote: text=Hello\bworld print text HelloBSworld Should this character \b (backspace) in this text return this: Helloworld? [EMAIL PROTECTED] ~ % python Python 2.5.1 (r251:54869, Apr 18 2007, 22:08:04) [GCC 4.0.1 (Apple

Re: simple string backspace question

2007-07-31 Thread vedrandekovic
On 31 srp, 11:44, [EMAIL PROTECTED] wrote: Hello, I have one simple string, backspace character question.Here is my example: text=Hello\bworld print text HelloBSworld Should this character \b (backspace) in this text return this: Helloworld? Regards, Vedran Hi, If you mean on

Re: simple string backspace question

2007-07-31 Thread Lawrence Oluyede
[EMAIL PROTECTED] wrote: If you mean on operating system then unfortunately Windows XP. I don't know for sure but maybe it doesn't support all ASCII escapes codes. Why do you care about \b anyway :-) ? -- Lawrence, oluyede.org - neropercaso.it It is difficult to get a man to understand

Re: simple string backspace question

2007-07-31 Thread vedrandekovic
On 31 srp, 12:03, [EMAIL PROTECTED] (Lawrence Oluyede) wrote: [EMAIL PROTECTED] wrote: If you mean on operating system then unfortunately Windows XP. I don't know for sure but maybe it doesn't support all ASCII escapes codes. Why do you care about \b anyway :-) ? -- Lawrence,

Re: win32 question in Python

2007-07-31 Thread Ali
On Jul 30, 11:49 pm, Brad Johnson [EMAIL PROTECTED] wrote: Huang, Shun-Hsien shuang at ercot.com writes: but how do I copy a excel file into database table by using Python? I'm not sure if this helps, but you can access the Excel Automation model very easily with: import

Re: simple string backspace question

2007-07-31 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: On 31 srp, 12:03, [EMAIL PROTECTED] (Lawrence Oluyede) wrote: [EMAIL PROTECTED] wrote: If you mean on operating system then unfortunately Windows XP. I don't know for sure but maybe it doesn't support all ASCII escapes codes. Why do you care about \b anyway :-)

Re: Simple question about logging module.

2007-07-31 Thread Alex Popescu
Gabor Urban [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: --=_Part_36089_18686793.1185871599583 Hullo, I have started to use Python's logging, and got a problem. I have created some loggers and wrote some lines in the log. The problem is, that most of the lines appear doubled in

interaction of 'with' and 'yield'

2007-07-31 Thread Neal Becker
I'm wondering if a generator that is within a 'with' scope exits the 'with' when it encounters 'yield'. I would like to use a generator to implement RAII without having to syntactically enclose the code in the 'with' scope, and I am hoping that the the yield does not exit the 'with' scope and

Re: problems with logging module

2007-07-31 Thread Alia Khouri
You are not going beyond basicConfig - I'd write the above as: Intentionally didn't go beyond basicConfig. The problem is global level configuration vs. easy local (in function or in class) configuration. logging.basicConfig(...) def __init__(self, x): self.x = x self.log =

Re: interaction of 'with' and 'yield'

2007-07-31 Thread Jean-Paul Calderone
On Tue, 31 Jul 2007 07:34:09 -0400, Neal Becker [EMAIL PROTECTED] wrote: I'm wondering if a generator that is within a 'with' scope exits the 'with' when it encounters 'yield'. I would like to use a generator to implement RAII without having to syntactically enclose the code in the 'with' scope,

Plotting Images

2007-07-31 Thread Pei-Yu CHAO
Hi ALL: I have only been switched from matlab to python few months ago. I having trouble of plotting images from a matrix size of 8x1 (unfortunately that is the size of my data.) for example, x = rand(8,1) inshow(x) I have tried to use matplotlib function imshow(), but all i get is

Re: What is the functional way of doing this?

2007-07-31 Thread Ricardo Aráoz
Considering I am a beginner I did a little test. Funny results too. The function I proposed (lists1.py) took 11.4529998302 seconds, while the other one (lists2.py) took 16.141324 seconds, thats about 40% more. They were run in IDLE from their own windows (F5). Of course my little test may me

Re: simple string backspace question

2007-07-31 Thread John Machin
On Jul 31, 8:01 pm, [EMAIL PROTECTED] wrote: On 31 srp, 11:44, [EMAIL PROTECTED] wrote: Hello, I have one simple string, backspace character question.Here is my example: text=Hello\bworld print text HelloBSworld Should this character \b (backspace) in this text return this:

Re: simple string backspace question

2007-07-31 Thread Dustan
On Jul 31, 7:17 am, John Machin [EMAIL PROTECTED] wrote: On Jul 31, 8:01 pm, [EMAIL PROTECTED] wrote: On 31 srp, 11:44, [EMAIL PROTECTED] wrote: Hello, I have one simple string, backspace character question.Here is my example: text=Hello\bworld print text HelloBSworld

Nasm_with_C++_with_Python

2007-07-31 Thread Jason Ward
I am wanting to write a library in nasm and call it from python. Because python can call c++ libraries. And nasm can be used in c++. So I was wondering how I would go about using nasm in python? -- http://mail.python.org/mailman/listinfo/python-list

Re: Pysqlite storing file as blob example

2007-07-31 Thread Carsten Haese
On Tue, 2007-07-31 at 00:13 -0700, 7stud wrote: On Jul 30, 6:25 pm, [EMAIL PROTECTED] wrote: I'm trying to store binary data in a sqlite database and call into the db using pysqlite 3. What I've got so far is this: import sqlite con = sqlite.connect(DB_PATH) cur = con.cursor()

Re: Why no maintained wrapper to Win32?

2007-07-31 Thread Bruno Desthuilliers
Gilles Ganault a écrit : On Sun, 29 Jul 2007 06:40:35 +0200, Martin v. Löwis [EMAIL PROTECTED] wrote: Why do you say that the Win32 API lacks documentation? I find the documentation at msdn.microsoft.com to be quite useful. No, I meant documentation on how to write Win32 apps using PyWin.

Re: Why no maintained wrapper to Win32?

2007-07-31 Thread Bruno Desthuilliers
Gilles Ganault a écrit : On Sun, 29 Jul 2007 21:49:04 -0700, sturlamolden [EMAIL PROTECTED] wrote: Why inflict suffering on yourself with MFC when you can use wxPython or PyGTK? Because I'd like to avoid having to pack several MB + having to install the toolkit. Considering the size of the

Re: simple string backspace question

2007-07-31 Thread John Machin
On Jul 31, 10:33 pm, Dustan [EMAIL PROTECTED] wrote: On Jul 31, 7:17 am, John Machin [EMAIL PROTECTED] wrote: On Jul 31, 8:01 pm, [EMAIL PROTECTED] wrote: On 31 srp, 11:44, [EMAIL PROTECTED] wrote: Hello, I have one simple string, backspace character question.Here is my

create a toolbar + images using wxpython for windows

2007-07-31 Thread yadin Bocuma Rivas
hi everery one I Need help on getting examles of how to create a toolbar with images using wxpython on a windows pc how can i add a toolbar to a GUI all sample codes i could find contain errors. i did the following but it is wrong! what is it with the IMAGES? do i have to create them, load

Re: Plotting Images

2007-07-31 Thread kyosohma
On Jul 31, 6:41 am, Pei-Yu CHAO [EMAIL PROTECTED] wrote: Hi ALL: I have only been switched from matlab to python few months ago. I having trouble of plotting images from a matrix size of 8x1 (unfortunately that is the size of my data.) for example, x = rand(8,1) inshow(x) I

how to add a toolbar to a Frame using wxpython

2007-07-31 Thread yadin
hi please am learning wxpython and I Need help on getting examles of how to create a toolbar with images that is add a toolbar to a Frame using wxpython using wxpython on a windows pc how can i add a toolbar to a GUI all sample codes i could find contain errors. i did the following but it is

Re: Directory

2007-07-31 Thread brad
Rohan wrote: I would like to get a list of sub directories in a directory. If I use os.listdir i get a list of directories and files in that . i only want the list of directories in a directory and not the files in it. anyone has an idea regarding this. How far down do you want to go? All

Re: Plotting Images

2007-07-31 Thread Stef Mientki
Pei-Yu CHAO wrote: Hi ALL: I have only been switched from matlab to python few months ago. I having trouble of plotting images from a matrix size of 8x1 (unfortunately that is the size of my data.) for example, x = rand(8,1) inshow(x) I have tried to use matplotlib

get directory and file names

2007-07-31 Thread Alchemist
I am working with Python 2.5 on Windows XP (SP2). How can I traverse a folder, loop through a list of files and get their file name and extension in an elegant, pythonic way? Thank you. -- http://mail.python.org/mailman/listinfo/python-list

Re: get directory and file names

2007-07-31 Thread Marc 'BlackJack' Rintsch
On Tue, 31 Jul 2007 07:23:06 -0700, Alchemist wrote: I am working with Python 2.5 on Windows XP (SP2). How can I traverse a folder, loop through a list of files and get their file name and extension in an elegant, pythonic way? Take a look at the `os` and the `os.path` modules. In

Re: get directory and file names

2007-07-31 Thread Bruno Desthuilliers
Alchemist a écrit : I am working with Python 2.5 on Windows XP (SP2). How can I traverse a folder, loop through a list of files and get their file name and extension in an elegant, pythonic way? http://docs.python.org/lib/module-os.path.html http://docs.python.org/lib/os-file-dir.html (=

Re: Plotting Images

2007-07-31 Thread Andr
On Jul 31, 8:41 am, Pei-Yu CHAO [EMAIL PROTECTED] wrote: Hi ALL: I have only been switched from matlab to python few months ago. I having trouble of plotting images from a matrix size of 8x1 (unfortunately that is the size of my data.) for example, x = rand(8,1) inshow(x) I

Re: What is the functional way of doing this?

2007-07-31 Thread Ricardo Aráoz
Kept testing (just in case). There was this other version of lists2.py (see below). So I created lists3.py and lists4.py. The resulting times are lists1.py : 11.4529998302 lists2.py : 16.141324 lists3.py : 3.1713134 lists4.py : 20.983676 lists3.py is by

Re: how to add a toolbar to a Frame using wxpython

2007-07-31 Thread kyosohma
On Jul 31, 8:24 am, yadin [EMAIL PROTECTED] wrote: hi please am learning wxpython and I Need help on getting examles of how to create a toolbar with images that is add a toolbar to a Frame using wxpython using wxpython on a windows pc how can i add a toolbar to a GUI all sample codes i

Re: Compiling 2.5.1 on OpenBSD 4.1

2007-07-31 Thread nazgul
I don't have OpenBSD available, so I have to do all my research over the web. I would really appreciate if this problem could be solved for good. In the past, it was always difficult that the *BSDs would hide interfaces if I say that my program uses XOPEN/Unix. Python uses a POSIX+ approach:

Re: get directory and file names

2007-07-31 Thread brad
Alchemist wrote: I am working with Python 2.5 on Windows XP (SP2). How can I traverse a folder, loop through a list of files and get their file name and extension in an elegant, pythonic way? Thank you. try this: for root, dirs, files in os.walk('.'): for f in files: print

Re: Where do they tech Python officialy ?

2007-07-31 Thread Alex Martelli
NicolasG [EMAIL PROTECTED] wrote: ... The problem is that I would like to work as a Python programmer but all the job vacancies I can find requires a couple of years of professional experience ... that I don't have. How a wanna be programmer can start working as a programmer if there is no

Re: Reading a two-column file into an array?

2007-07-31 Thread Alex Martelli
Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote: On Mon, 30 Jul 2007 21:57:17 -0700, Nagarajan wrote: a = [] import csv reader = csv.reader(open(filename, r), delimiter='\t' ) for row in reader: a.append( row ) I would keep a reference to the file to close it properly and the

Re: From D

2007-07-31 Thread Alex Martelli
[EMAIL PROTECTED] [EMAIL PROTECTED] wrote: code files? What's the regular expression for locating a number with an arbitrary number of digits seperated into an arbitrary number of blocks of an arbitray number of digits with an arbitrary number of whitespace characters between each block?

Re: What is the functional way of doing this?

2007-07-31 Thread beginner
On Jul 30, 5:48 pm, beginner [EMAIL PROTECTED] wrote: Hi, If I have a number n and want to generate a list based on like the following: def f(n): l=[] while n0: l.append(n%26) n /=26 return l I am wondering what is the 'functional' way to do the same.

standalone process to interact with the web

2007-07-31 Thread beginner
Hi Everyone, I am looking for a way to allow a standalone python process to easily interactive with a few web pages. It has to be able to easily receive requests from the web and post data to the web. I am thinking about implementing a standalone soap server, but I am not sure which library is

Re: standalone process to interact with the web

2007-07-31 Thread Steve Holden
beginner wrote: Hi Everyone, I am looking for a way to allow a standalone python process to easily interactive with a few web pages. It has to be able to easily receive requests from the web and post data to the web. I am thinking about implementing a standalone soap server, but I am not

Re: Where do they tech Python officialy ?

2007-07-31 Thread bill . punch
On Jul 31, 11:37 am, [EMAIL PROTECTED] (Alex Martelli) wrote: NicolasG [EMAIL PROTECTED] wrote: ... The problem is that I would like to work as a Python programmer but all the job vacancies I can find requires a couple of years of professional experience ... that I don't have. How a

encode() question

2007-07-31 Thread 7stud
s1 = hello s2 = s1.encode(utf-8) s1 = an accented 'e': \xc3\xa9 s2 = s1.encode(utf-8) The last line produces the error: --- Traceback (most recent call last): File test1.py, line 6, in ? s2 = s1.encode(utf-8) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 17: ordinal

Re: What is the functional way of doing this?

2007-07-31 Thread Steven D'Aprano
On Tue, 31 Jul 2007 09:01:42 -0300, Ricardo Aráoz wrote: Considering I am a beginner I did a little test. Funny results too. The function I proposed (lists1.py) took 11.4529998302 seconds, while the other one (lists2.py) took 16.141324 seconds, thats about 40% more. They were run in IDLE

Re: encode() question

2007-07-31 Thread Gabriel Genellina
En Tue, 31 Jul 2007 13:53:11 -0300, 7stud [EMAIL PROTECTED] escribió: s1 = hello s2 = s1.encode(utf-8) s1 = an accented 'e': \xc3\xa9 s2 = s1.encode(utf-8) The last line produces the error: --- Traceback (most recent call last): File test1.py, line 6, in ? s2 =

Encryption recommendation

2007-07-31 Thread JS
Can someone help me find the proper way to do AES encryption/decryption using Python? Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Error with Tkinter and tkMessageBox

2007-07-31 Thread Fabio Z Tessitore
hi all, this Tkinter very simple code work fine: ## from Tkinter import * win = Tk() win.mainloop() ## but if I try to open a message box, it happens: Exception in Tkinter callback Traceback (most recent call last): File lib-tk/Tkinter.py,

Re: encode() question

2007-07-31 Thread 7stud
On Jul 31, 11:18 am, Gabriel Genellina [EMAIL PROTECTED] wrote: str.decode and unicode.encode should NOT exist, or at least issue a warning (IMHO). Yes, that sounds like a good idea. -- http://mail.python.org/mailman/listinfo/python-list

Re: Encryption recommendation

2007-07-31 Thread Azazello
On Jul 31, 10:19 am, JS [EMAIL PROTECTED] wrote: Can someone help me find the proper way to do AES encryption/decryption using Python? Thanks! I did a quick look around the internet and found this seemingly good link AES in general. Might be a good start.

Iteration over strings

2007-07-31 Thread Robert Dailey
Hi, I have the following code: str = C:/somepath/folder/file.txt for char in str: if char == \\: char = / The above doesn't modify the variable 'str' directly. I'm still pretty new to Python so if someone could explain to me why this isn't working and what I can do to achieve the

Re: standalone process to interact with the web

2007-07-31 Thread beginner
Hi Steve, On Jul 31, 11:42 am, Steve Holden [EMAIL PROTECTED] wrote: beginner wrote: Hi Everyone, I am looking for a way to allow a standalone python process to easily interactive with a few web pages. It has to be able to easily receive requests from the web and post data to the web.

Re: Encryption recommendation

2007-07-31 Thread Paul Rubin
JS [EMAIL PROTECTED] writes: Can someone help me find the proper way to do AES encryption/decryption using Python? http://google.com/search?q=AES+Python -- http://mail.python.org/mailman/listinfo/python-list

Re: Iteration over strings

2007-07-31 Thread Jay Loden
Robert Dailey wrote: Hi, I have the following code: str = C:/somepath/folder/file.txt for char in str: if char == \\: char = / The above doesn't modify the variable 'str' directly. I'm still pretty new to Python so if someone could explain to me why this isn't working

Re: standalone process to interact with the web

2007-07-31 Thread Cameron Laird
In article [EMAIL PROTECTED], Steve Holden [EMAIL PROTECTED] wrote: beginner wrote: Hi Everyone, I am looking for a way to allow a standalone python process to easily interactive with a few web pages. It has to be able to easily receive requests from the web and post data to the web. I

Re: standalone process to interact with the web

2007-07-31 Thread Steve Holden
beginner wrote: Hi Steve, On Jul 31, 11:42 am, Steve Holden [EMAIL PROTECTED] wrote: beginner wrote: Hi Everyone, I am looking for a way to allow a standalone python process to easily interactive with a few web pages. It has to be able to easily receive requests from the web and post data

Re: Iteration over strings

2007-07-31 Thread Brett g Porter
Robert Dailey wrote: Hi, I have the following code: str = C:/somepath/folder/file.txt for char in str: if char == \\: char = / The above doesn't modify the variable 'str' directly. I'm still pretty new to Python so if someone could explain to me why this isn't working

Re: Iteration over strings

2007-07-31 Thread Hexamorph
Jay Loden schrieb: Robert Dailey wrote: str = C:/somepath/folder/file.txt for char in str: if char == \\: char = / strings in Python are immutable - in other words, they cannot be updated in place as you're doing above. However, that doesn't mean you can't achieve what

Re: Encryption recommendation

2007-07-31 Thread Ricardo Aráoz
Azazello wrote: On Jul 31, 10:19 am, JS [EMAIL PROTECTED] wrote: Can someone help me find the proper way to do AES encryption/decryption using Python? Thanks! I did a quick look around the internet and found this seemingly good link AES in general. Might be a good start.

Re: What is the functional way of doing this?

2007-07-31 Thread Ricardo Aráoz
Steven D'Aprano wrote: On Tue, 31 Jul 2007 09:01:42 -0300, Ricardo Aráoz wrote: Considering I am a beginner I did a little test. Funny results too. The function I proposed (lists1.py) took 11.4529998302 seconds, while the other one (lists2.py) took 16.141324 seconds, thats about 40%

With Statement Contexts and Context Managers

2007-07-31 Thread G
Hi, Could somebody please point me to a good resource to read about the contexts, context managers, and with_statement Best Rgd, G. -- http://mail.python.org/mailman/listinfo/python-list

Re: Where do they tech Python officialy ?

2007-07-31 Thread Aahz
In article [EMAIL PROTECTED], Alex Martelli [EMAIL PROTECTED] wrote: Open source projects do not require previous professional experience to accept volunteers. So, one way out of your dilemma is to make a name for yourself as an open source contributor -- help out with Python itself and/or with

Re: standalone process to interact with the web

2007-07-31 Thread beginner
On Jul 31, 1:11 pm, Steve Holden [EMAIL PROTECTED] wrote: beginner wrote: Hi Steve, On Jul 31, 11:42 am, Steve Holden [EMAIL PROTECTED] wrote: beginner wrote: Hi Everyone, I am looking for a way to allow a standalone python process to easily interactive with a few web pages. It has

Re: Error with Tkinter and tkMessageBox

2007-07-31 Thread kyosohma
On Jul 31, 12:30 pm, Fabio Z Tessitore [EMAIL PROTECTED] wrote: hi all, this Tkinter very simple code work fine: ## from Tkinter import * win = Tk() win.mainloop() ## but if I try to open a message box, it happens: Exception in Tkinter

Re: Plotting Images

2007-07-31 Thread Fernando Perez
Pei-Yu CHAO wrote: Hi ALL: I have only been switched from matlab to python few months ago. I having trouble of plotting images from a matrix size of 8x1 (unfortunately that is the size of my data.) for example, x = rand(8,1) inshow(x) Read the docstrings, they explain

Re: Error with Tkinter and tkMessageBox

2007-07-31 Thread Fabio Z Tessitore
Il Tue, 31 Jul 2007 19:12:48 +, kyosohma ha scritto: I'm not sure, but I don't think you need the win variable at all. I can get it to work as follows: code from Tkinter import * from tkMessageBox import showinfo def reply(): showinfo(title='ciao', message='hello')

Wing IDE for Python v. 3.0 beta1 released

2007-07-31 Thread Wingware
Hi, I'm happy to announce the first beta release of Wing IDE 3.0. It is available from http://wingware.com/wingide/beta Wing IDE is a commercial IDE designed specifically for Python programmers. More information about the product and free trials are available at http://wingware.com/ The major

Re: Simple question about logging module.

2007-07-31 Thread Gabor Urban
Thx guys You gave me good ideas. At the moment I do not have time for it, but I would like to write a summary. Have fun -- http://mail.python.org/mailman/listinfo/python-list

Re: Encryption recommendation

2007-07-31 Thread James Stroud
JS wrote: Can someone help me find the proper way to do AES encryption/decryption using Python? Thanks! Use pycrypto. You can roll it into a standalone program for any major OS. See http://passerby.sf.net. Don't attempt to write your own AES implementation for production software.

Re: With Statement Contexts and Context Managers

2007-07-31 Thread Carsten Haese
On Tue, 2007-07-31 at 14:57 -0400, G wrote: Hi, Could somebody please point me to a good resource to read about the contexts, context managers, and with_statement There's PEP 343 at http://www.python.org/dev/peps/pep-0343/. I don't know if that fits your definition of good, but it

Re: encode() question

2007-07-31 Thread Marc 'BlackJack' Rintsch
On Tue, 31 Jul 2007 10:45:26 -0700, 7stud wrote: On Jul 31, 11:18 am, Gabriel Genellina [EMAIL PROTECTED] wrote: str.decode and unicode.encode should NOT exist, or at least issue a warning (IMHO). Yes, that sounds like a good idea. It sounds like horrible idea as those are the ones

Creating a shared object in python

2007-07-31 Thread Delgado, Edgardo CIV NAVAIR 4.1.4.3
Is there a way to create a shared object in python? Thx, Edgar -- http://mail.python.org/mailman/listinfo/python-list

Re: Why no maintained wrapper to Win32?

2007-07-31 Thread sturlamolden
On Jul 31, 4:35 am, Gilles Ganault [EMAIL PROTECTED] wrote: Because I'd like to avoid having to pack several MB + having to install the toolkit. Considering the size of the typical Python script, it seemed overkill. But you are happy to pack a Python runtime and PyWin32? This is really a dumb

Re: Creating a shared object in python

2007-07-31 Thread kyosohma
On Jul 31, 2:37 pm, Delgado, Edgardo CIV NAVAIR 4.1.4.3 [EMAIL PROTECTED] wrote: Is there a way to create a shared object in python? Thx, Edgar You can save variables in a separate module. Something like this structure works quite well: code # shared.py # shared variables / object someNum

Re: zip() function troubles

2007-07-31 Thread Paul Rubin
Chris Mellon [EMAIL PROTECTED] writes: Better hand in your computer, then. You're never going to find a situation where the environment won't affect the running time of your algorithms. The environment may affect the running time by an additive or linear multiplicative constant but it should

Re: Iteration over strings

2007-07-31 Thread Robert Dailey
Hey, Thanks a lot for your answers guys. I had already known that strings are immutable, but having been a C++ programmer for years I'm still trying to get over the fact that it's not std::string :) The python documentation isn't that easy to navigate in my opinion, so I wasn't able to find the

MailingLogger 3.2.0 Released!

2007-07-31 Thread Chris Withers
With help from Jens Vagelpohl, I'm pleased to announce a new release of Mailinglogger that now supports filtering of log entries... Mailinglogger enables log entries to be emailed either as the entries are logged or as a summary at the end of the running process. This pair of enhanced emailing

◘ Legally Access FREE Satellite TV on PC ◘

2007-07-31 Thread Min w
Turn your Computer into a Ultimate TV • Watch all your favorite shows on your Computer TV! • Channels you can’t get any other place in the U.S.A! • Watch from anywhere in the world! • Save 1000's of $$$ over many years on cable and satellite bills • INSTANT DOWNLOAD • And much, much more! For

Re: Creating a shared object in python

2007-07-31 Thread Fabio Z Tessitore
Il Tue, 31 Jul 2007 15:37:26 -0400, Delgado, Edgardo CIV NAVAIR 4.1.4.3 ha scritto: Is there a way to create a shared object in python? Thx, Edgar Usually object are shared in Python. i.e. # a list l = [ 1 , 2 , 3 ] # a list containing l m = [ l, 4, 5 ] # now m is [ [1,2,3] , 4

Re: Iteration over strings

2007-07-31 Thread Jay Loden
Robert Dailey wrote: Hey, Thanks a lot for your answers guys. I had already known that strings are immutable, but having been a C++ programmer for years I'm still trying to get over the fact that it's not std::string :) The python documentation isn't that easy to navigate in my opinion, so

Re: Process Control Help

2007-07-31 Thread Walt Leipold
Azazello wrote: We're looking to run some industrial machinery from a PC. Starting with some basic servo controls and IO port reading for something like an XYZ table (just X would be a good start!). Now there is some existing software out there for PC control but this software is, to my

Extending Python by Adding Keywords Data types

2007-07-31 Thread Maximus Decimus
HI all, I am using python v2.5 and I am an amateur working on python. I am extending python for my research work and would like some help and guidance w.r.t this matter from you experienced python developers. II want to add some more KEYWORDS and DATATYPES into the python script apart from the

Re: Subprocess and pipe-fork-exec primitive

2007-07-31 Thread Martin v. Löwis
From my experience, this primitive will fail with 'no child processes' at the waitpid call if the forked child dies very quickly - before the parent is scheduled back for execution. This seems to happen because Python has a default SIGCHLD handler that, in this case, will reap the process

split a string of space separated substrings - elegant solution?

2007-07-31 Thread Helmut Jarausch
Hi, I'm looking for an elegant solution to the following (quite common) problem: Given a string of substrings separated by white space, split this into tuple/list of elements. The problem are quoted substrings like abc xy z 1 2 3 a \ x should be split into ('abc','xy z','1 2 3','a x') For

Re: encode() question

2007-07-31 Thread Martin v. Löwis
str.decode and unicode.encode should NOT exist, or at least issue a warning (IMHO). Yes, that sounds like a good idea. It sounds like horrible idea as those are the ones that are really needed. Correct. One could argue about `str.encode` and `unicode.decode`. But there are at least

Live editing...

2007-07-31 Thread [EMAIL PROTECTED]
There's been some chatter on edu-sig (python.org) of late regarding Python's capabilities in the edit/continue tradition, meaning debugging tools, and/or IDE tools, that give the developer real time write access to running programs. I think a good design would be something like the ZODB, or the

Re: Iteration over strings

2007-07-31 Thread Hexamorph
Jay Loden schrieb: I have to agree with you WRT to the Python documentation, it does tend to be lacking and difficult to find things at times. In this case the two ways I can think of to look for something like this would have been: Hmm, I find the Python documentation just excellent. You

Re: split a string of space separated substrings - elegant solution?

2007-07-31 Thread Wojciech Muła
Helmut Jarausch wrote: Hi, I'm looking for an elegant solution to the following (quite common) problem: Given a string of substrings separated by white space, split this into tuple/list of elements. The problem are quoted substrings like abc xy z 1 2 3 a \ x should be split into

Re: Creating a shared object in python

2007-07-31 Thread Bjoern Schliessmann
Delgado, Edgardo CIV NAVAIR 4.1.4.3 wrote: Is there a way to create a shared object in python? What's a shared object? Do you mean IPC or .so libraries, or something different? Regards, Björn -- BOFH excuse #404: Sysadmin accidentally destroyed pager with a large hammer. --

Re: Iteration over strings

2007-07-31 Thread Hexamorph
Hexamorph schrieb: Jay Loden schrieb: I have to agree with you WRT to the Python documentation, it does tend to be lacking and difficult to find things at times. Hmm, I find the Python documentation just excellent. You are searching for a *string* related problem? Then just check the

Python Package Index hostname change

2007-07-31 Thread Martin v. Löwis
The Python Packaging Index (the software formerly known as Cheeseshop) is now available at http://pypi.python.org/pypi The old addresses (www.python.org/pypi, and cheeseshop.python.org/pypi) will continue to work, either as aliases or using HTTP redirections. The software was renamed to its old

Re: split a string of space separated substrings - elegant solution?

2007-07-31 Thread Carsten Haese
On Tue, 2007-07-31 at 22:30 +0200, Helmut Jarausch wrote: Hi, I'm looking for an elegant solution to the following (quite common) problem: Given a string of substrings separated by white space, split this into tuple/list of elements. The problem are quoted substrings like abc xy z 1

  1   2   >