Re: Where do they tech Python officialy ?

2007-07-31 Thread NicolasG
> 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 any of the many open source projects that use Python, > and yo

Re: A way to re-organize a list

2007-07-31 Thread Marc 'BlackJack' Rintsch
On Wed, 01 Aug 2007 01:33:49 +, beginner wrote: > On Jul 19, 10:05 am, beginner <[EMAIL PROTECTED]> wrote: >> Hi Everyone, >> >> I have a simple list reconstruction problem, but I don't really know >> how to do it. >> >> I have a list that looks like this: >> >> l=[ ("A", "a", 1), ("A", "a", 2

Re: Extending Python by Adding Keywords & Data types

2007-07-31 Thread Marc 'BlackJack' Rintsch
On Wed, 01 Aug 2007 01:42:38 +, Maximus Decimus wrote: > Since, I am an amateur in using python, could you please be more > specific. For new data types, you had asked to implement the classes. > I intend to use C for implementing these data types. So where do i > need to implement these class

Re: Python end of file marker similar to perl's __END__

2007-07-31 Thread Stargaming
On Wed, 01 Aug 2007 05:44:21 +, Michele Simionato wrote: > On Aug 1, 5:53 am, beginner <[EMAIL PROTECTED]> wrote: >> Hi All, >> >> This is just a very simple question about a python trick. >> >> In perl, I can write __END__ in a file and the perl interpreter will >> ignore everything below tha

Re: How does xmlrpc work ?

2007-07-31 Thread Marc 'BlackJack' Rintsch
On Wed, 01 Aug 2007 05:32:14 +, [EMAIL PROTECTED] wrote: > I am working on a system which used XMLRPC to communicate between > hundreds of computer. One administrative computer keeps hundreds of > xmlrpc instance of other computers. I want to know if evey instance > use a single connection an

Re: Any way to monitor windows network connection?

2007-07-31 Thread Gordon Airporte
momobear wrote: > hi, Is there any way to show me detailed listings of all TCP and UDP > endpoints in my microsoft windows XP in python way? > thanks. Unless you're looking for a programming exercise: http://www.microsoft.com/technet/sysinternals/Utilities/TcpView.mspx -- http://mail.python.org/

Re: Python end of file marker similar to perl's __END__

2007-07-31 Thread Michele Simionato
On Aug 1, 5:53 am, beginner <[EMAIL PROTECTED]> wrote: > Hi All, > > This is just a very simple question about a python trick. > > In perl, I can write __END__ in a file and the perl interpreter will > ignore everything below that line. This is very handy when testing my > program. Does python have

Re: Python end of file marker similar to perl's __END__

2007-07-31 Thread Martin v. Löwis
> In perl, I can write __END__ in a file and the perl interpreter will > ignore everything below that line. This is very handy when testing my > program. Does python have something similar? Sorry, no, it doesn't. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

How does xmlrpc work ?

2007-07-31 Thread [EMAIL PROTECTED]
Hi everyone I am working on a system which used XMLRPC to communicate between hundreds of computer. One administrative computer keeps hundreds of xmlrpc instance of other computers. I want to know if evey instance use a single connection and keep it alive forever OR create a new connection when a

Re: Comparing Dictionaries

2007-07-31 Thread Alex Martelli
Kenneth Love <[EMAIL PROTECTED]> wrote: ... > Python in a Nutshell (2nd ed.) ... > I am a slow reader. So, if Doctests are mentioned in any of the above, > I haven't encountered it yet. Yep, I cover doctest in the chapter on testing, debugging, profiling and optimizing. Alex -- http://ma

Re: Scipy and Mcafee Site Advisor?

2007-07-31 Thread John Nagle
David Lees wrote: > I know scipy.org is legit and supplies widely used and useful python > packages. Can someone explain why my McAfee SiteAdvisor software, flags > scipy.org as a dangerous site? Pardon my ignorance, but is this a > temporary error in the SiteAdvisor database or is there some

Scipy and Mcafee Site Advisor?

2007-07-31 Thread David Lees
I know scipy.org is legit and supplies widely used and useful python packages. Can someone explain why my McAfee SiteAdvisor software, flags scipy.org as a dangerous site? Pardon my ignorance, but is this a temporary error in the SiteAdvisor database or is there some privacy consideration i

removing redundant elements in a dictionary

2007-07-31 Thread Astan Chee
Hi, I have a dictionary which looks something like this: elem = {"co":[1,2,3],"cp":[3,2,1],"pp":[5,6,7],"cl":[1,2,3],"qw":[6,7,8],"qa":[8,7,6]} what Im trying to do is find all keys in the list that have the same value and delete those (except one); thereby removing all redundant keys so tha

Re: Any way to monitor windows network connection?

2007-07-31 Thread Jay Loden
momobear wrote: > hi, Is there any way to show me detailed listings of all TCP and UDP > endpoints in my microsoft windows XP in python way? > thanks. Not sure if it's exactly what you're looking for, but this might be of use as a starting point at least: http://aspn.activestate.com/ASPN/Cookboo

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

2007-07-31 Thread Paul McGuire
On Jul 31, 3:30 pm, Helmut Jarausch <[EMAIL PROTECTED]> wrote: > 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

Python end of file marker similar to perl's __END__

2007-07-31 Thread beginner
Hi All, This is just a very simple question about a python trick. In perl, I can write __END__ in a file and the perl interpreter will ignore everything below that line. This is very handy when testing my program. Does python have something similar? Thanks, Geoffrey -- http://mail.python.org/m

Any way to monitor windows network connection?

2007-07-31 Thread momobear
hi, Is there any way to show me detailed listings of all TCP and UDP endpoints in my microsoft windows XP in python way? thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: [OT] Google message munging (was: Live editing...)

2007-07-31 Thread Paul Rubin
Ben Finney <[EMAIL PROTECTED]> writes: > > [... more lines of broken line wrapping...] > What the blazes is Google doing with messages that such a high > proportion of them come through in this painful-to-read double-wrapped > format? I'm referring to the fact that the lines appear to have been > w

[OT] Google message munging (was: Live editing...)

2007-07-31 Thread Ben Finney
This is unrelated to the topic of the original poster, and is unrelated to Python; hence the off-topic marker. I'm also not saying anything targeted at the original poster, but rather using this message as an opportunity to ask a question. "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > There's

Re: Extending Python by Adding Keywords & Data types

2007-07-31 Thread Ben Finney
Maximus Decimus <[EMAIL PROTECTED]> writes: > II want to add some more KEYWORDS Adding keywords can only be done by changing the parser for the Python compiler. You can download the source for your preferred implementation of Python (e.g. CPython) and change it there. But likely that's not the b

Re: http client module

2007-07-31 Thread Steve Holden
stefano wrote: > Hello i'm looking for a http client for python i found this one call > httplib2 > > http://64.233.169.104/search?q=cache:0jJWNfodK6gJ:bitworking.org/projects/httplib2/+httplib2+python&hl=es&ct=clnk&cd=1&gl=cl&client=firefox-a > > but is too old > Look at urllib and urllib2 in th

Re: Reload after an exception, not possible ?

2007-07-31 Thread Steve Holden
Steve Holden wrote: [...] > The solution? Don't assign to JAL_simulation_file, and the function will > use the local instead. > Sorry, that last "local" should have been "global". regards Steve -- Steve Holden+1 571 484 6266 +1 800 494 3119 Holden Web LLC/Ltd http://www.ho

Re: Reload after an exception, not possible ?

2007-07-31 Thread Steve Holden
Stef Mientki wrote: > hello, > > I've a graphical application (wxPython), > where the code in the main GUI loop is given below. > > > 1JAL_Loaded = False > 2while len(App_Running) > 0: > 3if JALsPy_globals.State == SS_Run: > 4try: > 5if JAL_Loaded: > 6

http client module

2007-07-31 Thread stefano
Hello i'm looking for a http client for python i found this one call httplib2 http://64.233.169.104/search?q=cache:0jJWNfodK6gJ:bitworking.org/projects/httplib2/+httplib2+python&hl=es&ct=clnk&cd=1&gl=cl&client=firefox-a but is too old -- http://mail.python.org/mailman/listinfo/python-list

Re: Finding documentation (WAS: Iteration over strings)

2007-07-31 Thread Steve Holden
Jay Loden wrote: > Steve Holden wrote: >> In this particular case the documentation is quite explicit about the >> return value and the documentation for the function runs to almost 400 >> words. Do you expect *everything* to be in the source? That isn't >> practical, as documenting everything t

Re: Finding documentation (WAS: Iteration over strings)

2007-07-31 Thread Jay Loden
Steve Holden wrote: > In this particular case the documentation is quite explicit about the > return value and the documentation for the function runs to almost 400 > words. Do you expect *everything* to be in the source? That isn't > practical, as documenting everything twice like that makes tw

Re: TypeError: unsupported operand type(s) for -: 'Decimal' and 'Decimal'. Why?

2007-07-31 Thread Zentrader
> In the utter absence of any clues from the OP, Marc was demonstrating > one possible way that the puzzling [Can't subtract one Decimal > instance from another???] error message could have been caused. Ah yes. Until this is no longer true, "In the utter absence of any clues from the OP", we can

Re: Extending Python by Adding Keywords & Data types

2007-07-31 Thread Maximus Decimus
Since, I am an amateur in using python, could you please be more specific. For new data types, you had asked to implement the classes. I intend to use C for implementing these data types. So where do i need to implement these classes ie under which file or module in the python package. Thanks in a

Re: Iteration over strings

2007-07-31 Thread Steve Holden
Jay Loden wrote: [...] > This isn't just a problem with the socket module, so please don't think I'm > picking on it or singling it out, it's something I've seen a number of > places. e.g. from os.stat: > > os.stat = stat(...) > stat(path) -> stat result > > Perform a stat system c

Re: A way to re-organize a list

2007-07-31 Thread beginner
On Jul 19, 10:05 am, beginner <[EMAIL PROTECTED]> wrote: > Hi Everyone, > > I have a simple list reconstruction problem, but I don't really know > how to do it. > > I have a list that looks like this: > > l=[ ("A", "a", 1), ("A", "a", 2), ("A", "a", 3), ("A", "b", 1), ("A", > "b", 2), ("B", "a", 1)

Re: Iteration over strings

2007-07-31 Thread Jerry Hill
On 7/31/07, Jay Loden <[EMAIL PROTECTED]> wrote: > This isn't just a problem with the socket module, so please don't think I'm > picking on it or singling it out, it's something I've seen a number of > places. e.g. from os.stat: You picked out two specific examples as being bad, so I thought I'd

Re: Iteration over strings

2007-07-31 Thread Hexamorph
Jay Loden schrieb: > Well, I don't want to start a flamewar or anything like that Nothing like that intended here either :) OTOH, on most forums, lists, boards, etc, I am active, the constant fear about "flamewars" annoys me somewhat. As long as it doesn't get insulting, derogative or bull-hea

RE: Utilizing a raw IDispatch Pointer from Python

2007-07-31 Thread Ryan Ginstrom
> On Behalf Of Brad Johnson > I would like to give the Python interpreter access to these > interfaces that were created in C++ land. > > Stated another way, how can I have Python consume a IDispatch > pointer from C++ and wrap it with one of those nice Python > classes automatically? If I und

Re: Wing IDE for Python v. 3.0 beta1 released

2007-07-31 Thread Robert Dailey
Too bad it's not free. I'll stick with PSPad & IPython On 7/31/07, Wingware <[EMAIL PROTECTED]> wrote: > > 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 Pytho

Re: Wing IDE for Python v. 3.0 beta1 released

2007-07-31 Thread Alex Popescu
Wingware <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > Hi, > > I'm happy to announce the first beta release of Wing IDE 3.0. It is > available from http://wingware.com/wingide/beta > > > [snip...] > > There is one feature that I would like to suggest: open module in project. Currentl

Re: Iteration over strings

2007-07-31 Thread Jay Loden
Hexamorph wrote: > 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 prob

Re: Process Control Help

2007-07-31 Thread Paul Rubin
Walt Leipold <[EMAIL PROTECTED]> writes: > The first time you see twenty tons of machinery move > unexpectedly because you inadvertently changed one bit in memory, you > become very conservative about your software platform. +1 QOTW -- http://mail.python.org/mailman/listinfo/python-list

Re: Process Control Help

2007-07-31 Thread Azazello
On Jul 31, 12:45 pm, Walt Leipold <[EMAIL PROTECTED]> wrote: > 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

Re: Error with Tkinter and tkMessageBox

2007-07-31 Thread jim-on-linux
On Tuesday 31 July 2007 15:24, Fabio Z Tessitore wrote: > 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: > > > > > > > > from Tkinter import * > > from tkMessageBox import s

Re: (May be OT) developing in jython, using in java?

2007-07-31 Thread Diez B. Roggisch
Gerardo Herzig schrieb: > Hi all. I dont know if this is the right place for asking this, but > maybe some of you know where i must go. > The thing is: > > Im writing a very simple class (in python) to access some LDAP server. A > companion will access to the same LDAP server too, but his develo

Nasm_with_C++_With_Python

2007-07-31 Thread Jason Ward
I am interested in writing a library in Nasm and calling it from python. Python can call C++ libraries. Nasm can be made into an inc file and can be included in C++. So I was wondering if this combination is possible or if there is a better way. If it can be done please explain how I can do this.

Re: With Statement Contexts and Context Managers

2007-07-31 Thread G
Great thanks. On 7/31/07, Carsten Haese <[EMAIL PROTECTED]> wrote: > > 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.

(May be OT) developing in jython, using in java?

2007-07-31 Thread Gerardo Herzig
Hi all. I dont know if this is the right place for asking this, but maybe some of you know where i must go. The thing is: Im writing a very simple class (in python) to access some LDAP server. A companion will access to the same LDAP server too, but his developing in java. So i said "ok, wait,

Reload after an exception, not possible ?

2007-07-31 Thread Stef Mientki
hello, I've a graphical application (wxPython), where the code in the main GUI loop is given below. 1JAL_Loaded = False 2while len(App_Running) > 0: 3if JALsPy_globals.State == SS_Run: 4try: 5if JAL_Loaded: 6reload ( JAL_simulation_

Re: Extending Python by Adding Keywords & Data types

2007-07-31 Thread Marc 'BlackJack' Rintsch
On Tue, 31 Jul 2007 20:28:59 +, Maximus Decimus wrote: > II want to add some more KEYWORDS and DATATYPES into the python script > apart from the existing ones. New data types are easy: Just implement the classes. Why do you need new keywords? Can't the problem at hand be expressed in functi

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

2007-07-31 Thread Jerry Hill
On 7/31/07, Helmut Jarausch <[EMAIL PROTECTED]> wrote: > 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

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

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

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

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

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.

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

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

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

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 ex

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

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

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]

◘ 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 M

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 h

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 'r

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 sh

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: # shared.py # shared variables / object some

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

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

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: 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 . Don't attempt to write your own AES implementation for production softw

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

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 n

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: > > > > from Tkinter import * > from tkMessageBox import showinfo > > def reply(): > showinfo(title='ciao', message='hell

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

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

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

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/

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

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

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 th

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

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 t

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 thi

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

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

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. http://msdn.microsoft.com/msd

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

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", li

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

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

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 ID

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

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 ha

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 a

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 go

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 n>0: > l.append(n%26) > n /=26 > return l > > I am wondering what is the 'functional' way to

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 bloc

  1   2   >