Got questions to pose to the Python-Dev panel at PyCon?

2007-01-07 Thread [EMAIL PROTECTED]
On the first conference day of PyCon after lunch there is going to be a discussion panel for Python-Dev (see http://us.pycon.org/apps07/schedule/ for the schedule). It is going to be moderated by Steve Holden and is slated to have myself (Brett Cannon), Andrew Kuchling (AMK), Neal Norwitz, and

[ANN] Next meeting of pyCologne 10.01.2007

2007-01-07 Thread Christopher Arndt
Hello everybody, the next meeting of pyCologne, the Python User Group Köln (Cologne), takes place on: Date: 10.01.2007 Time: 18:30 h Location: Pool 0.14, computing centre (RRZK-B) of the University Cologne, Berrenrather Str. 136, 50937 Köln Detailed information can be found on our

Re: How to invoke parent's method?

2007-01-07 Thread rweth
many_years_after wrote: Hi, pythoners: My wxPython program includes a panel whose parent is a frame. The panel has a button. When I click the button , I want to let the frame destroy. How to implement it? Could the panel invoke the frame's method? Thanks. I think it could if what I

Re: Why less emphasis on private data?

2007-01-07 Thread Andrea Griffini
Paul Rubin wrote: Yes I've had plenty of pointer related bugs in C programs that don't happen in GC'd languages, so GC in that sense saves my ass all the time. My experience is different, I never suffered a lot for leaking or dangling pointers in C++ programs; and on the opposite I didn't

Re: How to invoke parent's method?

2007-01-07 Thread rweth
rweth wrote: many_years_after wrote: Hi, pythoners: My wxPython program includes a panel whose parent is a frame. The panel has a button. When I click the button , I want to let the frame destroy. How to implement it? Could the panel invoke the frame's method? Thanks. I think it

where is python on linux?

2007-01-07 Thread Frank Potter
I installed fedora core 6 and it has python installed. But the question is, where is the executable python file? I can't find it so I come here for help. I want to config pydev for eclipse and I need to know where the ececutable python file is. Thank you! --

Re: where is python on linux?

2007-01-07 Thread Sebastian Busch
Frank Potter wrote: ... where is the executable python file? ... does whereis python tell you what you want to know? sebastian. -- http://mail.python.org/mailman/listinfo/python-list

Re: where is python on linux?

2007-01-07 Thread Peter Otten
Frank Potter wrote: I installed fedora core 6 and it has python installed. But the question is, where is the executable python file? Find out yourself with $ which python Peter -- http://mail.python.org/mailman/listinfo/python-list

Re: Just Getting Started with Python on MS XP Pro

2007-01-07 Thread Jussi Salmela
W. Watson kirjoitti: Thomas Ploch wrote: snip https://sourceforge.net/projects/pywin32/ I think this is the place to go Thomas That gets me the python program (pywin), which I got from a URL in a post above (python-win.msi). I guess these are the same or at least just the

Re: where is python on linux?

2007-01-07 Thread Frank Potter
Thank you! which python works for me. I got it. Peter Otten wrote: Frank Potter wrote: I installed fedora core 6 and it has python installed. But the question is, where is the executable python file? Find out yourself with $ which python Peter --

Re: How to invoke parent's method?

2007-01-07 Thread Frank Millman
many_years_after wrote: Hi, pythoners: My wxPython program includes a panel whose parent is a frame. The panel has a button. When I click the button , I want to let the frame destroy. How to implement it? Could the panel invoke the frame's method? Thanks. Have a look at the

Re: Why less emphasis on private data?

2007-01-07 Thread Paul Rubin
Dennis Lee Bieber [EMAIL PROTECTED] writes: __ (two leading underscores) results in name-mangling. This /may/ be used to specify private data, but is really more useful when one is designing with multiple super classes: Trouble with this is you can have two classes with the same name,

Re: AES256 in PyCrypto

2007-01-07 Thread Marc 'BlackJack' Rintsch
In [EMAIL PROTECTED], mirandacascade wrote: Would the following Python code perform AES256 encryption on plainText from Crypto.Cipher import AES x = AES.new(a, AES.MODE_CBC, iv) x.encrypt(plainText) assuming: a = the key value iv = an initialization vector ? `a` must be of length 32

Re: Why less emphasis on private data?

2007-01-07 Thread Ben Artin
In article [EMAIL PROTECTED], [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Coming from a C++ / C# background, the lack of emphasis on private data seems weird to me. I've often found wrapping private data useful to prevent bugs and enforce error checking.. It appears to me (perhaps wrongly)

Re: How to write code to get focuse the application which is open from server

2007-01-07 Thread Paul McGuire
vinthan [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] hi, I am new to python. I have to write test cases in python. An application is open in the desk top ( application writen in .Net) I have to write code to get focuse the application and click on the link which in the one side

Re: Why less emphasis on private data?

2007-01-07 Thread Felipe Almeida Lessa
On 07 Jan 2007 02:01:44 -0800, Paul Rubin http://phr.cx@nospam.invalid wrote: Dennis Lee Bieber [EMAIL PROTECTED] writes: __ (two leading underscores) results in name-mangling. This /may/ be used to specify private data, but is really more useful when one is designing with multiple

Re: still struggling, howto use a list-element as a name ? Sory, hit send button to early

2007-01-07 Thread Jussi Salmela
Stef Mientki kirjoitti: In this exercise, I don't attempt to write beautiful Python code, but the first thing is to write a simple user-interface for non-Pythians. I understand that standardization about naming conventions is important, but the purpose here is to serve the user, who has to

Re: Why less emphasis on private data?

2007-01-07 Thread Paul Rubin
Felipe Almeida Lessa [EMAIL PROTECTED] writes: What is the chance of having to inherit from two classes from different modules but with exactly the same name *and* the same instance variable name? Of course you're being very pessimistic or extremely unlucky. If you want to write bug-free

Re: Why less emphasis on private data?

2007-01-07 Thread robert
[EMAIL PROTECTED] wrote: Coming from a C++ / C# background, the lack of emphasis on private data seems weird to me. I've often found wrapping private data useful to prevent bugs and enforce error checking.. What is the use of private declarations, if the names themselves are not verbose about

I want to learn

2007-01-07 Thread joeyslistings
Hi, I have been programming in the .net environment and ide for a few years and I am looking to make the switch over to python. I have absolutely no python experience whatsoever. I am looking for a python guru who has instant messenger or gtalk or whatever who can meet me online in the mornings,

Re: Why less emphasis on private data?

2007-01-07 Thread bearophileHUGS
Paul Rubin: Python certainly makes you spend more of your attention worrying about possible attribute name collisions between classes and their superclasses. And Python's name mangling scheme is leaky and bug-prone if you ever re-use class names. Trouble with this is you can have two classes

Re: I want to learn

2007-01-07 Thread bearophileHUGS
[EMAIL PROTECTED]: I am looking for a python guru who has instant messenger or gtalk or whatever who can meet me online in the mornings, give me some direction for the day and then answer some questions here and there online throughout the day. Maybe a Python gury isn't necessary, maybe a

Re: I want to learn

2007-01-07 Thread Thomas Ploch
[EMAIL PROTECTED] schrieb: Hi, I have been programming in the .net environment and ide for a few years and I am looking to make the switch over to python. I have absolutely no python experience whatsoever. I am looking for a python guru who has instant messenger or gtalk or whatever who can

Re: I want to learn

2007-01-07 Thread William Allison
Thomas Ploch wrote: [EMAIL PROTECTED] schrieb: Hi, I have been programming in the .net environment and ide for a few years and I am looking to make the switch over to python. I have absolutely no python experience whatsoever. I am looking for a python guru who has instant messenger or gtalk

Manually installing PIL

2007-01-07 Thread Ghirai
Hello, My host doesn't have PIL installed, and from what i can tell, they won't install it. Is there any way i can copy the needed files near my python script? I'm using Image, ImageFont, ImageDraw and ImageFilter. Thanks. -- Best regards, Ghirai. --

Re: Why less emphasis on private data?

2007-01-07 Thread Jorgen Grahn
On 06 Jan 2007 17:38:06 -0800, Paul Rubin http wrote: BJörn Lindqvist [EMAIL PROTECTED] writes: It is given that emphasizing private data (encapsulation) leads to more internal complexity and more lines of code because you have to write getters and setters and stuff. You can have public

Re: Why less emphasis on private data?

2007-01-07 Thread Thomas Ploch
Jorgen Grahn schrieb: On 06 Jan 2007 17:38:06 -0800, Paul Rubin http wrote: BJörn Lindqvist [EMAIL PROTECTED] writes: It is given that emphasizing private data (encapsulation) leads to more internal complexity and more lines of code because you have to write getters and setters and stuff.

Re: program deployment

2007-01-07 Thread Jorgen Grahn
On Fri, 05 Jan 2007 15:16:09 -, Grant Edwards [EMAIL PROTECTED] wrote: On 2007-01-05, king kikapu [EMAIL PROTECTED] wrote: Python code is normally deployed as straight source code. But isn't this a problem of its own? I mean, many people do not feel good if the know that their source

Got questions to pose to the Python-Dev panel at PyCon?

2007-01-07 Thread [EMAIL PROTECTED]
On the first conference day of PyCon after lunch there is going to be a discussion panel for Python-Dev (see http://us.pycon.org/apps07/schedule/ for the schedule). It is going to be moderated by Steve Holden and is slated to have myself (Brett Cannon), Andrew Kuchling (AMK), Neal Norwitz, and

Re: Why less emphasis on private data?

2007-01-07 Thread Paul Rubin
Thomas Ploch [EMAIL PROTECTED] writes: Me neither, although I have to say that the '__' prefix comes pretty close to being 'private' already. It depends on the definition of private. For me, private means 'not accessible from outside the module/class'. class A: __x = 3 class

Re: AES256 in PyCrypto

2007-01-07 Thread mirandacascade
Marc 'BlackJack' Rintsch wrote: `a` must be of length 32 for AES256. And the length of `plainText` must be a multiple of 16 because it's a block cypher algorithm. Thank you. I have some follow up questions and 1 tangential question. Follow up question: Would it be correct to infer that:

low level python read's

2007-01-07 Thread gz
Hi! I wanted to use python to test a simple character device (on linux) and I'm running into strange behaviour of read.. I have a short buffer inside my device and the idea is that it blocks read's when the buffer is empty. For reads that ask for more characters that the buffer holds the device

Re: Why less emphasis on private data?

2007-01-07 Thread Thomas Ploch
Paul Rubin schrieb: Thomas Ploch [EMAIL PROTECTED] writes: Me neither, although I have to say that the '__' prefix comes pretty close to being 'private' already. It depends on the definition of private. For me, private means 'not accessible from outside the module/class'. class A:

Re: Pausing for Python Interpreter error messages...

2007-01-07 Thread redefined . horizons
Thanks Bruno. I'll get the 2.5 python install, and I'm checking out the unit testing module that you mentioned. Scott Huey Bruno Desthuilliers wrote: [EMAIL PROTECTED] a écrit : I've written a few classes that I have been testing in IDLE. However, every time I make a change to the classes

Re: Just Getting Started with Python on MS XP Pro

2007-01-07 Thread W. Watson
Jussi Salmela wrote: W. Watson kirjoitti: Thomas Ploch wrote: snip https://sourceforge.net/projects/pywin32/ I think this is the place to go Thomas That gets me the python program (pywin), which I got from a URL in a post above (python-win.msi). I guess these are the same or at

Re: Just Getting Started with Python on MS XP Pro

2007-01-07 Thread Thomas Ploch
W. Watson schrieb: As I understand it, there are two files I'm after: 1. python interpreter, and 2. a python editor. It's #2 that I'm having trouble downloading. The link is broken. This is the python interpreter for windows: http://www.python.org/ftp/python/2.5/python-2.5.msi Here you

Re: How to invoke parent's method?

2007-01-07 Thread Peter Decker
On 7 Jan 2007 01:33:32 -0800, Frank Millman [EMAIL PROTECTED] wrote: The essential point is that you save a reference to the frame when you create the panel. Then when the button is clicked you can use the reference to call the frame's Close method. Or you could look into Dabo. This is one of

Re: Why less emphasis on private data?

2007-01-07 Thread sturlamolden
[EMAIL PROTECTED] wrote: Coming from a C++ / C# background, the lack of emphasis on private data seems weird to me. I've often found wrapping private data useful to prevent bugs and enforce error checking.. It appears to me (perhaps wrongly) that Python prefers to leave class data public.

Re: I want to learn

2007-01-07 Thread joeyslistings
Thanks for the links guys!! Dive into Python is great and I am subscribing to tutor as well. Thomas Ploch wrote: [EMAIL PROTECTED] schrieb: Hi, I have been programming in the .net environment and ide for a few years and I am looking to make the switch over to python. I have absolutely

Re: where is python on linux?

2007-01-07 Thread jim-on-linux
on linux type: whereis python You should get a list of directories where all of python lives. jim-on-linux http:\\www.inqvista.com On Sunday 07 January 2007 04:05, Frank Potter wrote: I installed fedora core 6 and it has python installed. But the question is, where is the executable

Re: Why less emphasis on private data?

2007-01-07 Thread Paul Boddie
Paul Rubin wrote: class A: __x = 3 class B(A): __x = 4 # ok class C(B): __x = 5 # oops! Consider that the above three class definitions might be in separate files and you see how clumsy this gets. What are you trying to show with the above? The

Re: Why less emphasis on private data?

2007-01-07 Thread Thomas Ploch
sturlamolden schrieb: [EMAIL PROTECTED] wrote: Coming from a C++ / C# background, the lack of emphasis on private data seems weird to me. I've often found wrapping private data useful to prevent bugs and enforce error checking.. It appears to me (perhaps wrongly) that Python prefers to leave

Re: c# application calling Scipy

2007-01-07 Thread sturlamolden
[EMAIL PROTECTED] wrote: Hi, Novice here. :) I'm building a c# application and I want to call functions in SciPy from that application. What's the best way to call SciPy methods from a C# program? You need to: 1. Embed a Python interpreter in your C# app. That is, importing from a DLL

Re:[OT] (newbie) Is there a way to prevent name redundancy in OOP ?

2007-01-07 Thread Bruno Desthuilliers
Martin Miller a écrit : (snip) Oh, contrair. I guess you mean au contraire ?-) (snip) -- http://mail.python.org/mailman/listinfo/python-list

Re: low level python read's

2007-01-07 Thread Marc 'BlackJack' Rintsch
In [EMAIL PROTECTED], gz wrote: So how do i stop python from trying to be smart and just read *at most* 1000 chars and let it go if he(it?*) reads less? For low level file stuff use the functions in the `os` module, i.e. `os.read()`. p.s *is python a he or an it? I'd say it. Ciao,

Re: Why less emphasis on private data?

2007-01-07 Thread Bruno Desthuilliers
Andrea Griffini a écrit : Paul Rubin wrote: Yes I've had plenty of pointer related bugs in C programs that don't happen in GC'd languages, so GC in that sense saves my ass all the time. My experience is different, I never suffered a lot for leaking or dangling pointers in C++

Re: Why less emphasis on private data?

2007-01-07 Thread Bruno Desthuilliers
Paul Rubin a écrit : Felipe Almeida Lessa [EMAIL PROTECTED] writes: What is the chance of having to inherit from two classes from different modules but with exactly the same name *and* the same instance variable name? Of course you're being very pessimistic or extremely unlucky. If you

Re: still struggling, howto use a list-element as a name ? Sory, hit send button to early

2007-01-07 Thread Gabriel Genellina
Stef Mientki ha escrito: class LED (device): pinlist ={ # pinname type init-value other-parameters 1: ('Cathode', _DIG_IN, [], _par2), 2: ('Anode', _DIG_OUT, [], _par33) } Status = {True:('On'), False:('Off')} def

Re: strange for loop construct

2007-01-07 Thread Gabriel Genellina
Mark Elston ha escrito: If you have a Python installation you should be able to find the Whats New section of the docs. List comprehensions are described pretty well in the What's new in Python 2.0? section. This gives some simple examples as well as the rationale behind them. Where do you

Re: AES256 in PyCrypto

2007-01-07 Thread Sebastian 'lunar' Wiesner
[ [EMAIL PROTECTED] [EMAIL PROTECTED] ] Marc 'BlackJack' Rintsch wrote: `a` must be of length 32 for AES256. And the length of `plainText` must be a multiple of 16 because it's a block cypher algorithm. Thank you. I have some follow up questions and 1 tangential question. Follow up

Re: Why less emphasis on private data?

2007-01-07 Thread Sebastian 'lunar' Wiesner
[ Thomas Ploch [EMAIL PROTECTED] ] sturlamolden schrieb: [EMAIL PROTECTED] wrote: Coming from a C++ / C# background, the lack of emphasis on private data seems weird to me. I've often found wrapping private data useful to prevent bugs and enforce error checking.. It appears to me (perhaps

Re: Just Getting Started with Python on MS XP Pro

2007-01-07 Thread Gabriel Genellina
On 7 ene, 13:22, W. Watson [EMAIL PROTECTED] wrote: https://sourceforge.net/projects/pywin32/ As I understand it, there are two files I'm after: 1. python interpreter, and 2. a python editor. It's #2 that I'm having trouble downloading. The link is broken. The above link should work. Follow

Re: Why less emphasis on private data?

2007-01-07 Thread Thomas Ploch
Sebastian 'lunar' Wiesner schrieb: Those people deserve to fail for being just extraordinary stupid... Yes, but there are a lot of them around... Thomas P.S.: I don't mean they are around here. :-) -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie XML SAX Parsing: How do I ignore an invalid token?

2007-01-07 Thread scott
Thanks, I'll work with the file on the file system, then parse it with SAX. Is there a Pythonic way to read the file and identify any illegal XML characters so I can strip them out? this would keep my program more flexible - if the vendor is going to allow one illegal character in their document,

Re: Recommended way to force a thread context switch?

2007-01-07 Thread Gabriel Genellina
On 6 ene, 20:01, Lloyd Zusman [EMAIL PROTECTED] wrote: It seems that the original writer of the app had set this interval to a high value in a part of the code that I overlooked until you mentioned this right now. [...] once one of the big number-crunching threads gets control, it starves

Re: Why less emphasis on private data?

2007-01-07 Thread John Nagle
sturlamolden wrote: [EMAIL PROTECTED] wrote: Coming from a C++ / C# background, the lack of emphasis on private data seems weird to me. I've often found wrapping private data useful to prevent bugs and enforce error checking.. It appears to me (perhaps wrongly) that Python prefers to leave

urlib.quote gives KeyError in Python 2.4.4 but workin 2.3.5

2007-01-07 Thread nyenyec
urllib.quote chokes on unicode in 2.4.4. print sys.version 2.4.4 (#1, Oct 18 2006, 10:34:39) [GCC 4.0.1 (Apple Computer, Inc. build 5341)] urllib.quote(u\xe9) Traceback (most recent call last): File stdin, line 1, in ? File

Re: find a .py path

2007-01-07 Thread Gabriel Genellina
On 5 ene, 13:33, Laszlo Nagy [EMAIL PROTECTED] wrote: Be aware with this. It is different when you do /usr/bin/python prog.py and ./prog.py In the first case, sys.argv[0] will be /usr/bin/python! No, sys.argv[0] is always the running script, and sys.argv[1] the first argument after the

Re: A problem in embedding Python in a plug-in

2007-01-07 Thread Gabriel Genellina
On 6 ene, 15:29, Koichi [EMAIL PROTECTED] wrote: Hi, I'm now making a plug-in for a CG software. I embed Python in a plugin and it works. The problem is that it conflicts with other plugins that also embeds Python because it runs in the same thread. I don't know when Py_Initialize() and

OpenBSD, Apache and Python

2007-01-07 Thread Geoff
Hi! I'm wanting to use openbsd to run a webserver because of its high security. The website is written in python. Before I was using linux with apache 2 and mod_python and this worked well. My problem is that mod_python 3.x does not work on apache 1 which is what comes with openbsd (and has been

Re: Just Getting Started with Python on MS XP Pro

2007-01-07 Thread W. Watson
Gabriel Genellina wrote: On 7 ene, 13:22, W. Watson [EMAIL PROTECTED] wrote: https://sourceforge.net/projects/pywin32/ As I understand it, there are two files I'm after: 1. python interpreter, and 2. a python editor. It's #2 that I'm having trouble downloading. The link is broken. The

Re: urlib.quote gives KeyError in Python 2.4.4 but workin 2.3.5

2007-01-07 Thread nyenyec
encode seems to solve my problem: urllib.quote(u'\xe9'.encode('utf-8')) '%C3%A9' Cheers, nyenyec nyenyec wrote: urllib.quote chokes on unicode in 2.4.4. print sys.version 2.4.4 (#1, Oct 18 2006, 10:34:39) [GCC 4.0.1 (Apple Computer, Inc. build 5341)] urllib.quote(u\xe9) Traceback

Re: Python re expr from Perl to Python

2007-01-07 Thread Florian Diesch
Michael M. [EMAIL PROTECTED] wrote: In Perl, it was: ## Example: Abc | def | ghi | jkl ## - Abc ghi jkl ## Take only the text betewwn the 2nd pipe (=cut the text in the 1st pipe). $na =~ s/\ \|(.*?)\ \|(.*?)\ \|/$2/g; ## -- remove [ and ] in text $na =~ s/\[//g;

Re: urlib.quote gives KeyError in Python 2.4.4 but workin 2.3.5

2007-01-07 Thread Gabriel Genellina
On 7 ene, 15:48, nyenyec [EMAIL PROTECTED] wrote: urllib.quote chokes on unicode in 2.4.4. urllib.quote(u\xe9) KeyError: u'\xe9' but it seems to work in Python 2.3.5 Is this a known bug? See some recent posts about urllib.unquote and unicode -- Gabriel Genellina --

Re: Just Getting Started with Python on MS XP Pro

2007-01-07 Thread Gabriel Genellina
On 7 ene, 16:20, W. Watson [EMAIL PROTECTED] wrote: We seem to be looping. I have the Python interpreter. I would like the pythonwin editor. The download link doesn't work on SourceForge. Where can I get it? If not there, where? If it can't be obtained, then I'll go to the default editor

Re: Newbie XML SAX Parsing: How do I ignore an invalid token?

2007-01-07 Thread Martin v. Löwis
[EMAIL PROTECTED] schrieb: Is there a Pythonic way to read the file and identify any illegal XML characters so I can strip them out? this would keep my program more flexible - if the vendor is going to allow one illegal character in their document, there's no way of knowing if another one will

Re: urlib.quote gives KeyError in Python 2.4.4 but workin 2.3.5

2007-01-07 Thread Duncan Booth
nyenyec [EMAIL PROTECTED] wrote: but it seems to work in Python 2.3.5 Python 2.3.5 (#1, Aug 19 2006, 21:31:42) [GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin Type help, copyright, credits or license for more information. import sys, urllib print sys.version 2.3.5 (#1, Aug 19

Capturing stderr and stdout of a subprocess as a single stream

2007-01-07 Thread Fuzzyman
Hello all, Before I ask the question a couple of notes : * This question is for implementing a script inside the Wing IDE. For some reason using the subprocess module doesn't work so I need a solution that doesn't use this module. * The platform is Windows and I'm happy with a Windoze only

Re: Why less emphasis on private data?

2007-01-07 Thread Andrea Griffini
Bruno Desthuilliers wrote: ... and on the opposite I didn't expect that fighting with object leaking in complex python applications was that difficult (I've heard of zope applications that just gave up and resorted to the reboot every now and then solution). Zope is a special case here,

Re: strange for loop construct

2007-01-07 Thread skip
Gabriel Where do you find the What's new for previous releases? I Gabriel have to read them online. Google for what's new site:python.org Skip -- http://mail.python.org/mailman/listinfo/python-list

Re: Traceback of hanged process

2007-01-07 Thread Gabriel Genellina
On 6 ene, 19:45, Hynek Hanke [EMAIL PROTECTED] wrote: please, how do I create a pythonic traceback from a python process that hangs and is not running in an interpreter that I executed manually or it is but doesn't react on CTRL-C etc? I'm trying to debug a server implemented in Python, so I

Re: Python re expr from Perl to Python

2007-01-07 Thread Thomas Ploch
Florian Diesch schrieb: Michael M. [EMAIL PROTECTED] wrote: In Perl, it was: ## Example: Abc | def | ghi | jkl ## - Abc ghi jkl ## Take only the text betewwn the 2nd pipe (=cut the text in the 1st pipe). $na =~ s/\ \|(.*?)\ \|(.*?)\ \|/$2/g; ## -- remove [ and ] in

Re: strange for loop construct

2007-01-07 Thread Gabriel Genellina
On 7 ene, 16:34, [EMAIL PROTECTED] wrote: Gabriel Where do you find the What's new for previous releases? I Gabriel have to read them online. Google for what's new site:python.org That's what I do. But this post: If you have a Python installation you should be able to find

Re: strange for loop construct

2007-01-07 Thread skip
Gabriel Where do you find the What's new for previous releases? I Gabriel have to read them online. Google for what's new site:python.org Sorry, I took I have to read them online to mean that you needed to read them online because (perhaps) you don't have a source

Re: Just Getting Started with Python on MS XP Pro

2007-01-07 Thread Jussi Salmela
W. Watson kirjoitti: Gabriel Genellina wrote: On 7 ene, 13:22, W. Watson [EMAIL PROTECTED] wrote: https://sourceforge.net/projects/pywin32/ As I understand it, there are two files I'm after: 1. python interpreter, and 2. a python editor. It's #2 that I'm having trouble downloading. The

Re: Capturing stderr and stdout of a subprocess as a single stream

2007-01-07 Thread Gabriel Genellina
On 7 ene, 16:33, Fuzzyman [EMAIL PROTECTED] wrote: Hello all, Before I ask the question a couple of notes : * This question is for implementing a script inside the Wing IDE. For some reason using the subprocess module doesn't work so I need a solution that doesn't use this module. * The

Re: Why less emphasis on private data?

2007-01-07 Thread Bruno Desthuilliers
Thomas Ploch a écrit : sturlamolden schrieb: (snip) As mentioned in other replies, it is not rocket science to access a class private data. In C++ you can cast to void*, in Java and C# you can use reflection. C++ is said to be an unsafe language because programmers can, using a few tricks, mess

Re: where is python on linux?

2007-01-07 Thread Bruno Desthuilliers
Frank Potter a écrit : I installed fedora core 6 and it has python installed. But the question is, where is the executable python file? I can't find it so I come here for help. man which -- http://mail.python.org/mailman/listinfo/python-list

Re: OpenBSD, Apache and Python

2007-01-07 Thread Martin v. Löwis
Geoff schrieb: I'm now looking at using fastcgi to run my python. This looks like it's going to work fine, though I will be using a fcgi interface such as http://jonpy.sourceforge.net/. There does not seem to be any official fastcgi module for python. Should I be worried about the stability

Re: Why less emphasis on private data?

2007-01-07 Thread Gabriel Genellina
On 7 ene, 16:13, John Nagle [EMAIL PROTECTED] wrote: Because Python doesn't have explicit declarations, scope of variables is a touchy issue. If you write x = 1 within a function, that will create a local x if x doesn't exist, or alter a global x if x was previously created in the

Re: Capturing stderr and stdout of a subprocess as a single stream

2007-01-07 Thread Fuzzyman
Gabriel Genellina wrote: On 7 ene, 16:33, Fuzzyman [EMAIL PROTECTED] wrote: [snip..] My current code works, but *doesn't* capture stderr : from threading import Thread pipe = os.popen(executable) def DisplayOutput(): while True: output = pipe.read(1) if

Re: Why less emphasis on private data?

2007-01-07 Thread Bruno Desthuilliers
Andrea Griffini a écrit : Bruno Desthuilliers wrote: ... and on the opposite I didn't expect that fighting with object leaking in complex python applications was that difficult (I've heard of zope applications that just gave up and resorted to the reboot every now and then solution).

Re: Capturing stderr and stdout of a subprocess as a single stream

2007-01-07 Thread Gabriel Genellina
On 7 ene, 17:37, Fuzzyman [EMAIL PROTECTED] wrote: Two threads and a queue sounds horrible. But unfortunately it's the only way if you don't control how the child process behaves. (It's not s ugly afterwards... certainly would be worse if you had to syncronize both reading threads and the

audio video streaming communications

2007-01-07 Thread Ken Seehart
Hello, I am looking for a good audio/video conferencing library. Ideally it should work with wxPython (or have some means of making it work there). So far my main difficulty in my attempt at searching for such a package is that there is so much stuff out there on downloading music and videos.

Python cheatsheets

2007-01-07 Thread gonzlobo
Curious if anyone has a python cheatsheet* published? I'm looking for something that summarizes all commands/functions/attributes. Having these printed on a 8 x 11 double-sided laminated paper is pretty cool. * cheatsheet probably isn't the right word, but you get the idea. :) --

Re: Re:[OT] (newbie) Is there a way to prevent name redundancy in OOP ?

2007-01-07 Thread Martin Miller
Bruno Desthuilliers wrote: Martin Miller a écrit : (snip) Oh, contrair. I guess you mean au contraire ?-) (snip) FWIW contrair is how it's spelled in the Oxford English dictionary (I actually did look it up before posting because it seemed like there ought be an 'e' on the end). The

Re: Python cheatsheets

2007-01-07 Thread Jussi Salmela
gonzlobo kirjoitti: Curious if anyone has a python cheatsheet* published? I'm looking for something that summarizes all commands/functions/attributes. Having these printed on a 8 x 11 double-sided laminated paper is pretty cool. * cheatsheet probably isn't the right word, but you get the

Re: AES256 in PyCrypto

2007-01-07 Thread mirandacascade
Sebastian 'lunar' Wiesner wrote: Since you are apparently unable to read to docstrings of this module, I will give you a short hint: yes, pycrypto supports AES with 256 bit keys. Thank you for the information. The material I consulted was: a) the PyCrypto manual:

Re: Python cheatsheets

2007-01-07 Thread Martin Miller
gonzlobo wrote: Curious if anyone has a python cheatsheet* published? I'm looking for something that summarizes all commands/functions/attributes. Having these printed on a 8 x 11 double-sided laminated paper is pretty cool. * cheatsheet probably isn't the right word, but you get the idea.

Re: how to find the longst element list of lists

2007-01-07 Thread Thomas Ploch
Michael M. schrieb: How to find the longst element list of lists? I think, there should be an easier way then this: s1 = [q, e, d] s2 = [a, b] s3 = [a, b, c, d] if len(s1) = len(s2) and len(s1) = len(s3): sx1=s1 ## s1 ist längster if len(s2) = len(s3):

Re: how to find the longst element list of lists

2007-01-07 Thread Felipe Almeida Lessa
On 1/7/07, Michael M. [EMAIL PROTECTED] wrote: How to find the longst element list of lists? s1 = [q, e, d] s2 = [a, b] s3 = [a, b, c, d] s = [s1, s2, s3] s.sort(key=len, reverse=True) print s[0] is s3 print s[1] is s1 print s[2] is s2 sx1, sx2, sx3 = s print 'sx1:', sx1 print 'sx2:', sx2

Re: Python cheatsheets

2007-01-07 Thread robert
gonzlobo wrote: Curious if anyone has a python cheatsheet* published? I'm looking for something that summarizes all commands/functions/attributes. Having these printed on a 8 x 11 double-sided laminated paper is pretty cool. * cheatsheet probably isn't the right word, but you get the idea.

Re: Why less emphasis on private data?

2007-01-07 Thread Bruno Desthuilliers
John Nagle a écrit : sturlamolden wrote: [EMAIL PROTECTED] wrote: Coming from a C++ / C# background, the lack of emphasis on private data seems weird to me. I've often found wrapping private data useful to prevent bugs and enforce error checking.. It appears to me (perhaps wrongly) that

Re: how to find the longst element list of lists

2007-01-07 Thread Jussi Salmela
Michael M. kirjoitti: How to find the longst element list of lists? I think, there should be an easier way then this: s1 = [q, e, d] s2 = [a, b] s3 = [a, b, c, d] snip After, the list ist sorted: sx1 = [a, b, c, d] sx2 = [q, e, d] sx3 = [a, b] s1 = [q, e, d] s2 =

how to find the longst element list of lists

2007-01-07 Thread Michael M.
How to find the longst element list of lists? I think, there should be an easier way then this: s1 = [q, e, d] s2 = [a, b] s3 = [a, b, c, d] if len(s1) = len(s2) and len(s1) = len(s3): sx1=s1 ## s1 ist längster if len(s2) = len(s3): sx2=s2 sx3=s3 else:

Re: strange for loop construct

2007-01-07 Thread Jorge Godoy
[EMAIL PROTECTED] writes: Gabriel Where do you find the What's new for previous releases? I Gabriel have to read them online. Google for what's new site:python.org Sorry, I took I have to read them online to mean that you needed to read them online because

Re: [OT] (newbie) Is there a way to prevent name redundancy in OOP ?

2007-01-07 Thread Bruno Desthuilliers
Martin Miller a écrit : Bruno Desthuilliers wrote: Martin Miller a écrit : (snip) Oh, contrair. I guess you mean au contraire ?-) (snip) FWIW contrair is how it's spelled in the Oxford English dictionary (I actually did look it up before posting because it seemed like there ought be

Re: strange for loop construct

2007-01-07 Thread Dustan
Mark Elston wrote: * Gabriel Genellina wrote (on 1/5/2007 12:49 PM): At Friday 5/1/2007 17:39, [EMAIL PROTECTED] wrote: wordfreq = [wordlist.count(p) for p in wordlist] I would expect for p in wordlist: wordfreq.append(wordlist.count(p)) I didn't know you could have an

Re: how to find the longst element list of lists

2007-01-07 Thread Bruno Desthuilliers
Michael M. a écrit : How to find the longst element list of lists? For what definition of find ? You want the lenght of the longest sublist, it's index, or a reference to it ? I think, there should be an easier way then this: s1 = [q, e, d] s2 = [a, b] s3 = [a, b, c, d] Err...

Working with Excel inside Python

2007-01-07 Thread AleydisGP
I have a .plt file (which is a tab delimited ASCII file) and I want to format it to get a .dbf with data in rows and columns, detele some rows/columns and substitute decimal '.' with ','. All this using Python (I'm using Pythonwin). The .plt file looks like this: * ISCST3 (02035): Tersa *

  1   2   >