Elisa Media Center 0.5.16 Release

2008-10-28 Thread Olivier Tilloy
Dear Python users, The Elisa team is happy to announce the release of Elisa Media Center 0.5.16, code-named La Gallina Feliz. Elisa is a cross-platform and open-source Media Center written in Python. It uses GStreamer [1] for media playback and pigment [2] to create an appealing and intuitive

Pydev 1.3.24 Released

2008-10-28 Thread Fabio Zadrozny
Hi All, Pydev and Pydev Extensions 1.3.24 have been released This is a high-priority release to fix some blocker bugs (that's why it was released in such a short time from the last release) Details on Pydev Extensions: http://www.fabioz.com/pydev Details on Pydev: http://pydev.sf.net Details on

Re: Looking for a pure python Mysql module

2008-10-28 Thread James Mills
On Tue, Oct 28, 2008 at 9:41 AM, Carl [EMAIL PROTECTED] wrote: Does anyone know of a package that can connect and query a mysql server that is platform independent and does not need to compile any extra c modules (IE a pure python module)? There was a recent discussion on this mailing list

Re: ........ JUNGLE BUNNIES IN ALASKA ..........

2008-10-28 Thread Sydney Gondomer
On Sun, 15 May 2005 22:55:25 -0500, Michel Catudal [EMAIL PROTECTED] wrote: Richard Keebler wrote: racist bullshit removed I found the perfect site for assholes like you http://www.amishrakefight.org/gfy/ Are there any of GOD's frozen chosen beautiful African Americans on this Alaska forum?

Re: Finding the instance reference of an object

2008-10-28 Thread Gabriel Genellina
En Tue, 28 Oct 2008 01:16:04 -0200, Dale Roberts [EMAIL PROTECTED] escribió: So, then, what to tell a C++ programmer about how Python passes arguments? You say: tell them Python only passes by value. I disagree, because I think that would confuse them. Rather than try to map C++

Re: Database specialized in storing directed graphs?

2008-10-28 Thread Chris Rebert
On Mon, Oct 27, 2008 at 5:32 PM, Carl Banks [EMAIL PROTECTED] wrote: I was wondering if anyone had any advice on this. This is not to study graph theory; I'm using the graph to represent a problem domain. The graphs could be arbitrarily large, and could easily have millions of nodes, and

Re: 2.6, 3.0, and truly independent intepreters

2008-10-28 Thread Rhamphoryncus
On Oct 26, 6:57 pm, Andy O'Meara [EMAIL PROTECTED] wrote: Grrr... I posted a ton of lengthy replies to you and other recent posts here using Google and none of them made it, argh. Poof. There's nothing that fires more up more than lost work,  so I'll have to revert short and simple answers for

Python suitable for Midi ?

2008-10-28 Thread Protocol
Hello all Is Python suitable for building a multi-track midi sequencer (with a gui), that would run on windows / mac ? I fail to find sufficient information on this, being a newbie and all. Furthermore, i found references on Python not being really able of multi-threading, that further adds to

Setting up Python on a network of machines

2008-10-28 Thread John [H2O]
I have set up the Python computing environment on a machine within a network to include the following Python modules: 1) Scipy 2) Numpy 3) Matplotlib v.98 or greater 4) Matplotlib toolkit Basemap v.99 or greater 5) Scientific These are standard module products available via sourceforge.net or

Re: 2.6, 3.0, and truly independent intepreters

2008-10-28 Thread Michael Sparks
Glenn Linderman wrote: so a 3rd party library might be called to decompress the stream into a set of independently allocated chunks, each containing one frame (each possibly consisting of several allocations of memory for associated metadata) that is independent of other frames We use a

Re: Python suitable for Midi ?

2008-10-28 Thread Michael Sparks
Protocol wrote: Is Python suitable for building a multi-track midi sequencer (with a gui), that would run on windows / mac ? I fail to find sufficient information on this, being a newbie and all. We had a Google Summer of Code student working on this sort of thing this year (This clearly

Test, please ignore.

2008-10-28 Thread Protocol
Test, please ignore. -- http://mail.python.org/mailman/listinfo/python-list

[newbie] Right way to access item in array?

2008-10-28 Thread Gilles Ganault
Hello I'd like to know what the right way is to access an item in a row as returned by a database: = import apsw connection=apsw.Connection(test.sqlite) cursor=connection.cursor() rows=cursor.execute(SELECT isbn,price FROM books WHERE price IS NULL) for row in rows: #Is this

Re: 2.6, 3.0, and truly independent intepreters

2008-10-28 Thread Michael Sparks
Philip Semanchuk wrote: On Oct 25, 2008, at 7:53 AM, Michael Sparks wrote: Glenn Linderman wrote: In the module multiprocessing environment could you not use shared memory, then, for the large shared data items? If the poshmodule had a bit of TLC, it would be extremely useful for this,...

Re: Python barcode decoding

2008-10-28 Thread Marco Bizzarri
On Fri, Oct 24, 2008 at 6:05 PM, Robocop [EMAIL PROTECTED] wrote: Does anyone know of any decent (open source or commercial) python barcode recognition tools or libraries. I need to read barcodes from pdfs or images, so it will involve some OCR algorithm. I also only need to read the code 93

Re: Urllib vs. FireFox

2008-10-28 Thread Gilles Ganault
On Fri, 24 Oct 2008 13:15:49 -0700 (PDT), Mike Driscoll [EMAIL PROTECTED] wrote: On Oct 24, 2:53 pm, Rex [EMAIL PROTECTED] wrote: By the way, if you're doing non-trivial web scraping, the mechanize module might make your work much easier. You can install it with

Re: [newbie] Right way to access item in array?

2008-10-28 Thread Diez B. Roggisch
Gilles Ganault wrote: Hello I'd like to know what the right way is to access an item in a row as returned by a database: = import apsw connection=apsw.Connection(test.sqlite) cursor=connection.cursor() rows=cursor.execute(SELECT isbn,price FROM books WHERE price IS NULL) for

Re: Database specialized in storing directed graphs?

2008-10-28 Thread M.-A. Lemburg
On 2008-10-28 01:32, Carl Banks wrote: I was wondering if anyone had any advice on this. This is not to study graph theory; I'm using the graph to represent a problem domain. The graphs could be arbitrarily large, and could easily have millions of nodes, and most nodes have a substantial

Re: Python barcode decoding

2008-10-28 Thread Wolfgang Draxinger
Robocop wrote: Any tips would be great! The open source OCR software 'gocr' does also implement some 1D barcode recognition. In my experience it does this better then recognizing the text: http://jocr.sourceforge.net/ I know about only one open source library for the DataMatrix 2D code, but

Python 2.5 + sqlite full text search possible?

2008-10-28 Thread Guillermo
Hi! Is it possible to load the full-text search module for the SQLite version bundled with Python 2.5? I've tested it and the stand-alone SQLite distribution doesn't seem to include it (sqlite .load fts2), nor does Python. I'm on Windows XP. Regards, Guillermo --

Re: [newbie] Right way to access item in array?

2008-10-28 Thread Gerhard Häring
Diez B. Roggisch wrote: Gilles Ganault wrote: Hello I'd like to know what the right way is to access an item in a row as returned by a database: = import apsw connection=apsw.Connection(test.sqlite) cursor=connection.cursor() rows=cursor.execute(SELECT isbn,price FROM books WHERE price

Re: Python 2.5 + sqlite full text search possible?

2008-10-28 Thread Gerhard Häring
Guillermo wrote: Hi! Is it possible to load the full-text search module for the SQLite version bundled with Python 2.5? [...] I'm on Windows XP. Yes, it's possible. But not easily. You have to replace the sqlite3.dll that comes with Python 2.5 with one that includes fulltext search. If you

mySQL problems

2008-10-28 Thread Alfons Nonell-Canals
Hello, I've developed a program using python that have to connect to a mysql server several times. In a local machine (running the program in the same machine where the mysql server is) I have no problems. I can run several instances of the program at the same time with no problem. Them problem

Re: mySQL problems

2008-10-28 Thread Tino Wildenhain
Hi, Alfons Nonell-Canals wrote: Hello, I've developed a program using python that have to connect to a mysql server several times. In a local machine (running the program in the same machine where the mysql server is) I have no problems. I can run several instances of the program at the same

Need advice/suggestion for small project

2008-10-28 Thread AEB
Hello, my supervisor has requested that I write a program to display 2D waves in 3D using Python. Basically I have a time series file that has the heights of the wave over time steps, and I want to extrude these waves lengthwise so that they appear in a 3D manor. I am not very familiar with

Re: Need advice/suggestion for small project

2008-10-28 Thread Marc 'BlackJack' Rintsch
On Tue, 28 Oct 2008 05:47:32 -0700, AEB wrote: Hello, my supervisor has requested that I write a program to display 2D waves in 3D using Python. Basically I have a time series file that has the heights of the wave over time steps, and I want to extrude these waves lengthwise so that they

Re: Ordering python sets

2008-10-28 Thread Steven D'Aprano
On Mon, 27 Oct 2008 17:03:58 -0700, Glenn Linderman wrote: A little harder question is how to create a key that corresponds to ascending string followed by descending string? To do that you can sort the data two times, relying on the stable nature of the Python sort. Ick. Costs

Sorting a list

2008-10-28 Thread RC
unsortedList = list([XYZ,ABC]) sortedList = unsortedList.sort() print sortedList Why this return None? How do I get return as [ABC, XYZ]? -- http://mail.python.org/mailman/listinfo/python-list

Re: mySQL problems

2008-10-28 Thread Alfons Nonell-Canals
Hi, Maybe there is a certain connection limit which hits if your client programms reconnect in random order? I saw this on some PHP web sites. Probably some configuration adjustments and persistent connections could help you in this situation. I know I can check it but I am not the admin

Re: [newbie] Right way to access item in array?

2008-10-28 Thread Steve Holden
Gilles Ganault wrote: Hello I'd like to know what the right way is to access an item in a row as returned by a database: = import apsw connection=apsw.Connection(test.sqlite) cursor=connection.cursor() rows=cursor.execute(SELECT isbn,price FROM books WHERE price IS NULL) If

Re: Sorting a list

2008-10-28 Thread Tino Wildenhain
RC wrote: unsortedList = list([XYZ,ABC]) sortedList = unsortedList.sort() print sortedList Why this return None? Because you did not read the documentation. Regards Tino smime.p7s Description: S/MIME Cryptographic Signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Sorting a list

2008-10-28 Thread Steve Holden
RC wrote: unsortedList = list([XYZ,ABC]) sortedList = unsortedList.sort() print sortedList Why this return None? How do I get return as [ABC, XYZ]? The list's .sort method returns None because it modifies the list in-place, so after the call it is sorted. So you can either not assign

Re: Sorting a list

2008-10-28 Thread J Sisson
To expand on Tino's response, sort() sorts in place and does not *return* a sorted copy of the list. In other words: unsortedList = list([XYZ,ABC]) unsortedList.sort() print sortedList is correct. Since sort() returns None, you lose your list if you do: unsortedList = unsortedList.sort()

Re: dictionary

2008-10-28 Thread Steve Holden
Scott David Daniels wrote: Hendrik van Rooyen wrote: ... You had Compilers! You had Compiler Vendors! When I was lad, we had nowt but raw hardware. We had to sit in cold room, ears deafened by whine of fan, clicking switches to load our octal in computer. We just had error light...

Re: Sorting a list

2008-10-28 Thread Brian Blais
On Oct 28, 2008, at 9:45 , RC wrote: unsortedList = list([XYZ,ABC]) sortedList = unsortedList.sort() print sortedList the sort method is in-place, so it modifies the object which calls it, and doesn't return anything: In [1]:unsortedList = list([XYZ,ABC]) In [2]:sortedList =

Re: mySQL problems

2008-10-28 Thread Tino Wildenhain
Alfons Nonell-Canals wrote: Hi, Maybe there is a certain connection limit which hits if your client programms reconnect in random order? I saw this on some PHP web sites. Probably some configuration adjustments and persistent connections could help you in this situation. I know I can check

Re: [newbie] Right way to access item in array?

2008-10-28 Thread Gilles Ganault
On Tue, 28 Oct 2008 12:12:26 +0100, Gerhard Häring [EMAIL PROTECTED] wrote: You can do it even in one step with APSW (and pysqlite, and others): for isbn, price in cur.execute(select isbn, price ...): Thanks much guys. For those interested, here's some working code: == import apsw

Re: [newbie] Right way to access item in array?

2008-10-28 Thread Gilles Ganault
On Tue, 28 Oct 2008 09:56:11 -0400, Steve Holden [EMAIL PROTECTED] wrote: If you are dealing with a DB API-compliant module then the return value from the cursor's execute method is undefined, and you need to call one of the fetch methods to extract the retrieved data. Thanks for pointing it out.

Re: 2.6, 3.0, and truly independent intepreters

2008-10-28 Thread Andy O'Meara
On Oct 26, 10:11 pm, James Mills [EMAIL PROTECTED] wrote: On Mon, Oct 27, 2008 at 12:03 PM, Andy O'Meara [EMAIL PROTECTED] wrote: I think we miscommunicated there--I'm actually agreeing with you.  I was trying to make the same point you were: that intricate and/or large structures are meant

parsing MS word docs -- tutorial request

2008-10-28 Thread bp . tralfamadore
All, I am trying to write a script that will parse and extract data from a MS Word document. Can / would anyone refer me to a tutorial on how to do that? (perhaps from tables). I am aware of, and have downloaded the pywin32 extensions, but am unsure of how to proceed -- I'm not familiar with

Python 2.5 + sqlite full text search possible?

2008-10-28 Thread Guillermo
Hi! Is it possible to use the full-text module of SQLite with the sqlite3 module? I've done a bit of investigation and it seems the stand-alone distribution of SQLite is compiled without it, and so does the version bundled with Python. Regards, Guillermo --

Re: dictionary

2008-10-28 Thread Steve Holden
D'Arcy J.M. Cain wrote: On Tue, 28 Oct 2008 10:06:31 -0400 Steve Holden [EMAIL PROTECTED] wrote: Bizarre though it may sound in this age of integrated circuits there really was a storage device that used a cathode ray tube to store (IIRC) a kilobit of information. It detected, by the use of a

How to get an object's name as a string?

2008-10-28 Thread Shannon Mayne
I would like to create objects with algorithmically determined names based on other object names and use object names for general algorithm input. How would one extract the name of an object from an object instance as a string. I would think that it is stored as an attribute of the object but

Re: Unpacking byte strings from a file of unknown size

2008-10-28 Thread Mark
Thanks I tested your solution and that works. One of the things that didn't work was for chunk in myfile.read(10): info1, info2, info3 = struct.unpack('IIH', chunk) It gets an error saying unpack requires a string of length 10, which I thought chunk would be after the read(10). I'm still a

parse a table in HTML page.

2008-10-28 Thread antonio_wn8
Hi all, I have a need to read and parse a table in HTML page. I’m using the following script: http://trac.davidgrant.ca/browser/src/python/misc/siteuptime/TableParser.py It works fine aside from link in href. Example: String to parse: trtda href='vaffa.html'elog/a/tdtdnormal text/td/tr

Unit Testing: a couple of questions

2008-10-28 Thread Emanuele D'Arrigo
Hi everybody, I'm just having a go with Unit Testing for the first time and my feeling about it in short is: Neat! I'm a bit worried about the time it's taking me to develop the tests but after only a day or so I'm already much faster than when I started with it and the code is already much

Re: How to get an object's name as a string?

2008-10-28 Thread Larry Bates
Shannon Mayne wrote: I would like to create objects with algorithmically determined names based on other object names and use object names for general algorithm input. How would one extract the name of an object from an object instance as a string. I would think that it is stored as an

Re: 2.6, 3.0, and truly independent intepreters

2008-10-28 Thread Andy O'Meara
On Oct 27, 4:05 am, Martin v. Löwis [EMAIL PROTECTED] wrote: Andy O'Meara wrote: Well, when you're talking about large, intricate data structures (which include opaque OS object refs that use process-associated allocators), even a shared memory region between the child process and the

Re: 2.6, 3.0, and truly independent intepreters

2008-10-28 Thread Greg Ewing
Glenn Linderman wrote: So your 50% number is just a scare tactic, it would seem, based on wild guesses. Was there really any benefit to the comment? All I was really trying to say is that it would be a mistake to assume that the overhead will be negligible, as that would be just as much a

ignoring NAs in a dataset with numpy

2008-10-28 Thread mrafi
Hey All, I am working with numpy I have a data set with a lot of nan values, and i want to calculate standard deviation is there a direct function to do it for example nansum(or something like this), to calculate standard deviation ignoring nan values?? Thanks Rafi -- View this message in

list versions of all installed modules

2008-10-28 Thread John [H2O]
Is there a quick way to list the version of each installed module? -- View this message in context: http://www.nabble.com/list-versions-of-all-installed-modules-tp20204095p20204095.html Sent from the Python - python-list mailing list archive at Nabble.com. --

Re: dictionary

2008-10-28 Thread D'Arcy J.M. Cain
On Tue, 28 Oct 2008 10:06:31 -0400 Steve Holden [EMAIL PROTECTED] wrote: Bizarre though it may sound in this age of integrated circuits there really was a storage device that used a cathode ray tube to store (IIRC) a kilobit of information. It detected, by the use of a capacitance plate A

Re: How to get an object's name as a string?

2008-10-28 Thread Joe Strout
On Oct 28, 2008, at 8:41 AM, Shannon Mayne wrote: I would like to create objects with algorithmically determined names based on other object names and use object names for general algorithm input. What do you mean by the name of an object? Objects don't generally have names, unless you

Re: Python 2.5 + sqlite full text search possible?

2008-10-28 Thread Guilherme Polo
On 10/28/08, Guillermo [EMAIL PROTECTED] wrote: Hi! Is it possible to use the full-text module of SQLite with the sqlite3 module? I've done a bit of investigation and it seems the stand-alone distribution of SQLite is compiled without it, and so does the version bundled with Python.

Re: 2.6, 3.0, and truly independent intepreters

2008-10-28 Thread Andy O'Meara
On Oct 25, 9:46 am, M.-A. Lemburg [EMAIL PROTECTED] wrote: These discussion pop up every year or so and I think that most of them are not really all that necessary, since the GIL isn't all that bad. Thing is, if the topic keeps coming up, then that may be an indicator that change is truly

Re: Python 2.5 + sqlite full text search possible?

2008-10-28 Thread Gerhard Häring
Guillermo wrote: Hi! Is it possible to use the full-text module of SQLite with the sqlite3 module? I've done a bit of investigation and it seems the stand-alone distribution of SQLite is compiled without it, Yes, though compiling using the amalgamation and defining SQLITE_ENABLE_FTS3 helps.

Re: Question about scope

2008-10-28 Thread Kirk Strauser
At 2008-10-24T01:08:12Z, Pat [EMAIL PROTECTED] writes: --- myGlobals.py file: class myGlobals(): remote_device_enabled = bool --- my initialize.py file: from myGlobals import * def initialize(): myGlobals.remote_device_enabled = True --- my main.py file: import from

Re: Unpacking byte strings from a file of unknown size

2008-10-28 Thread Scott David Daniels
Mark wrote: Thanks I tested your solution and that works. One of the things that didn't work was for chunk in myfile.read(10): info1, info2, info3 = struct.unpack('IIH', chunk) It gets an error saying unpack requires a string of length 10, which I thought chunk would be after the read(10).

Re: Finding the instance reference of an object

2008-10-28 Thread Joe Strout
On Oct 27, 2008, at 11:28 PM, Gabriel Genellina wrote: En Tue, 28 Oct 2008 00:58:10 -0200, greg [EMAIL PROTECTED] escribió: Let's look at the definitions of the terms: (1) Call by value: The actual parameter is an expression. It is evaluated and the result is assigned to the formal

Re: Python barcode decoding

2008-10-28 Thread Kirk Strauser
At 2008-10-24T17:05:25Z, Robocop [EMAIL PROTECTED] writes: Does anyone know of any decent (open source or commercial) python barcode recognition tools or libraries. I need to read barcodes from pdfs or images, so it will involve some OCR algorithm. I also only need to read the code 93

Re: Need advice/suggestion for small project

2008-10-28 Thread Scott David Daniels
AEB wrote: Hello, my supervisor has requested that I write a program to display 2D waves in 3D using Python. Basically I have a time series file that has the heights of the wave over time steps, and I want to extrude these waves lengthwise so that they appear in a 3D manor. I am not very

Re: dictionary

2008-10-28 Thread Hendrik van Rooyen
Steve Holden [EMAIL PROTECTED] wrote: I don't ever remember programming to cope with equipment failure, however. Did you make that bit up? Not at the bit level in my case - but I do remember doing silly things like multiplying after a divide (all integer arithmetic) to make sure the

Re: list versions of all installed modules

2008-10-28 Thread Gerhard Häring
John [H2O] wrote: Is there a quick way to list the version of each installed module? $ sudo easy_install yolk $ yolk -l -- Gerhard -- http://mail.python.org/mailman/listinfo/python-list

Re: Unit Testing: a couple of questions

2008-10-28 Thread Antoine De Groote
I'm wondering if don't want your class to look something like this: class myClass(): def __init__(self, data): self.__data = data def getData(self): return self.__data def setData(self, data): self.__data = data For the rest I'll let the experts argue, I

Re: parse a table in HTML page.

2008-10-28 Thread Thomas Guettler
Have you looked at beautiful soup? http://www.crummy.com/software/BeautifulSoup/ antonio_wn8 schrieb: Hi all, I have a need to read and parse a table in HTML page. I’m using the following script: http://trac.davidgrant.ca/browser/src/python/misc/siteuptime/TableParser.py It works fine

Re: list versions of all installed modules

2008-10-28 Thread Scott David Daniels
John [H2O] wrote: Is there a quick way to list the version of each installed module? import sys for name, module in sorted(sys.modules.items()): if hasattr(module, '__version__'): print name, module.__version__ Of course if you add __VERSION__, VERSION, and version, you may get

Re: 2.6, 3.0, and truly independent intepreters

2008-10-28 Thread Andy O'Meara
On Oct 27, 10:55 pm, Glenn Linderman [EMAIL PROTECTED] wrote: And I think we still are miscommunicating!  Or maybe communicating anyway! So when you said object, I actually don't know whether you meant Python object or something else.  I assumed Python object, which may not have been

explanation of values, references, assignment, and method calls

2008-10-28 Thread Joe Strout
I've tried to write up this topic in a clear, step-by-step manner, with the help of diagrams and short examples from several different OOP languages. I hope it will help clear up the confusion that seems to be pervading the Python community (and which is far more rare in the other

Re: Unit Testing: a couple of questions

2008-10-28 Thread Orestis Markou
For the first bit, a colleague has recently asked the philosophical question, How do you test what happens when the power goes down? :) In other words, only test the bits that your code does. If you want to provide type checking, then yes, you have to test that. It's fair to assume that

Extracting name strings from assigned objects

2008-10-28 Thread Shannon Mayne
I would like to ask how one might obtain the assigned name of an assigned object as a string. I would like to use object names as an algorithmic input. To demonstrate... So if i have: foo = {} what can I do to the object 'foo' so as to return the string 'foo'? Thanks! --

Re: explanation of values, references, assignment, and method calls

2008-10-28 Thread Bruno Desthuilliers
Joe Strout a écrit : I've tried to write up this topic in a clear, step-by-step manner, with the help of diagrams and short examples from several different OOP languages. I hope it will help clear up the confusion that seems to be pervading the Python community May I suggest

Re: using modules in destructors

2008-10-28 Thread MRAB
On Oct 27, 5:40 pm, Scott David Daniels [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: It seems to me that deleting local instances before imported modules would solve the problem. Is it not possible for the interpreter to get this right? Or are there cases where this would break stuff.

Re: Database specialized in storing directed graphs?

2008-10-28 Thread George Sakkis
On Oct 27, 8:32 pm, Carl Banks [EMAIL PROTECTED] wrote: I was wondering if anyone had any advice on this. This is not to study graph theory; I'm using the graph to represent a problem domain.  The graphs could be arbitrarily large, and could easily have millions of nodes, and most nodes have

Re: Database specialized in storing directed graphs?

2008-10-28 Thread bearophileHUGS
Sorry Carl Banks for the answering delay, there are problems in Google Groups. This is not to study graph theory; I'm using the graph to represent a problem domain. The graphs could be arbitrarily large, and could easily have millions of nodes, and most nodes have a substantial amount of

Re: Python suitable for Midi ?

2008-10-28 Thread Chuckk Hubbard
I'm writing a sequencer in Python, although it's microtonal and not MIDI. I'm using the Python bindings for the Csound API, all the timing, MIDI, OSC, etc. stuff, essentially all but the GUI capabilities, having been done by the Csound developers already. Documentation is here and there, and

Re: Finding the instance reference of an object

2008-10-28 Thread Dale Roberts
On Oct 28, 2:33 am, Gabriel Genellina [EMAIL PROTECTED] wrote: En Tue, 28 Oct 2008 01:16:04 -0200, Dale Roberts [EMAIL PROTECTED]   escribió: So, then, what to tell a C++ programmer about how Python passes   arguments? You say: tell them Python only passes by value. I disagree,  

Re: Extracting name strings from assigned objects

2008-10-28 Thread Simon Brunning
2008/10/28 Shannon Mayne [EMAIL PROTECTED]: I would like to ask how one might obtain the assigned name of an assigned object as a string. That's in the FAQ: http://tinyurl.com/3xkeac. -- Cheers, Simon B. [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Python suitable for Midi ?

2008-10-28 Thread Derek Martin
On Tue, Oct 28, 2008 at 06:54:57PM +0200, Chuckk Hubbard wrote: The problem I've run into is that I can't set the audio to a higher priority than the GUI (Tkinter). If I move the mouse over the app, no matter what, I get audio dropouts. AFAICT this is the same for all Python, regardless of

Re: Unit Testing: a couple of questions

2008-10-28 Thread Mel
Emanuele D'Arrigo wrote: I'm a bit worried about the time it's taking me to develop the tests but after only a day or so I'm already much faster than when I started with it and the code is already much improved in terms of robustness. A couple of philosophical questions have emerged in the

Re: dictionary

2008-10-28 Thread D'Arcy J.M. Cain
On Tue, 28 Oct 2008 10:41:20 -0400 Steve Holden [EMAIL PROTECTED] wrote: Sorry, you are thinking of bistable multivibrators. I was talking about the Wiliams tube store: http://ed-thelen.org/comp-hist/SEAC-Williams-tube-desc.html Very cool. Yes, I was thinking of something else. However,

Re: Web crawler on python

2008-10-28 Thread Alex
On Oct 26, 9:54 pm, sonich [EMAIL PROTECTED] wrote: I need simple web crawler, I found Ruya, but it's seems not currently maintained. Does anybody know good web crawler on python or with python interface? You should try Orchid http://pypi.python.org/pypi/Orchid/1.1 or you can have a look at

Contracts for Python

2008-10-28 Thread Paulo J. Matos
Hi all, I am wondering if there is any work on contracts for Python. I could only find PEP316, however, I am wondering if there is any official support for it already (tools I mean), and if it is or if it will be officially supported in any of the next releases of Python. Cheers, -- Paulo Jorge

404 not found on for Python 2.6 Itanium

2008-10-28 Thread csgrimes1
Anyone know where else I can download 2.6 for x64 windows? Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Specifying an IP address for outbound connections?

2008-10-28 Thread erikcw
Python seems to default to the main system IP for outbound connections (such as urllib), but I want to bind to one of my other IPs for outbound connections. Any ideas? Thanks! -- http://mail.python.org/mailman/listinfo/python-list

zipping a directory

2008-10-28 Thread Callie Bertsche
Hey Python-ers, I apologize if this is covered in the archives; I think I saw one instance of it but I couldn't get the solution to work out. I'm working on zipping an entire directory to one zip file. I can zip a flat group of files, but when my code encounters a hierarchy of folders, for some

Return lines in file that match string

2008-10-28 Thread Travis Kirstine
I am new to python and could use some help with a fairly easy task. I would like to return all lines in a file that have the string 'coordinates' to a list. Regards, -- Travis K. Toronto, Canada She knows there's no success like

Re: Unit Testing: a couple of questions

2008-10-28 Thread Marco Bizzarri
On Tue, Oct 28, 2008 at 3:56 PM, Emanuele D'Arrigo [EMAIL PROTECTED] wrote: Hi everybody, I'm just having a go with Unit Testing for the first time and my feeling about it in short is: Neat! I'm a bit worried about the time it's taking me to develop the tests but after only a day or so I'm

Re: 404 not found on for Python 2.6 Itanium

2008-10-28 Thread Christian Heimes
[EMAIL PROTECTED] wrote: Anyone know where else I can download 2.6 for x64 windows? x64 is AMD64 aka X64_86 and not the Itanium version. Itanium is IA64. We don't build Python for IA64 anymore. Christian -- http://mail.python.org/mailman/listinfo/python-list

Re: Contracts for Python

2008-10-28 Thread Chris Rebert
On Tue, Oct 28, 2008 at 10:47 AM, Paulo J. Matos [EMAIL PROTECTED] wrote: Hi all, I am wondering if there is any work on contracts for Python. I could only find PEP316, however, I am wondering if there is any official support for it already (tools I mean), and if it is or if it will be

Re: Return lines in file that match string

2008-10-28 Thread Chris Rebert
On Tue, Oct 28, 2008 at 11:37 AM, Travis Kirstine [EMAIL PROTECTED] wrote: I am new to python and could use some help with a fairly easy task. I would like to return all lines in a file that have the string 'coordinates' to a list. from __future__ import with_statement with

Re: Database specialized in storing directed graphs?

2008-10-28 Thread flyingfrog
Don't really know if this will be useful but i'd try pytables: http://www.pytables.org/moin it deals very well with every kind of hierarchical data sets, doesn't matter the size. It will let you load only significant data, and you'll be able to query your data. It's built on top of HDF5 libraries

import foo vs. python -m foo

2008-10-28 Thread Simon Bierbaum
Hi all, what is the difference between saying import foo in an interactive prompt and starting one using python -m foo? The -m switch is not covered in the man page, is it even officially supported? I'm asking because one of my modules fails on import in the second version but succeeds

Re: big objects and avoiding deepcopy?

2008-10-28 Thread Aaron Brady
On Oct 27, 1:10 pm, Terry Reedy [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Robert Kern: This is similar to implementing Undo functionality in applications. In a quite-high-level language (like Python, but not necessarily in Python itself) it may become eventually advantageous to

Re: ignoring NAs in a dataset with numpy

2008-10-28 Thread Robert Kern
mrafi wrote: Hey All, I am working with numpy I have a data set with a lot of nan values, and i want to calculate standard deviation is there a direct function to do it for example nansum(or something like this), to calculate standard deviation ignoring nan values?? You will want to ask

Re: question about the textwrap module

2008-10-28 Thread TP
Gabriel Genellina wrote: You may pre-process your text (stripping redundant whitespace) before using textwrap: Thanks Gabriel for your answers! I finally have subclassed textwrap.TextWrapper. Julien -- python -c print ''.join([chr(154 - ord(c)) for c in '*9(9(18%.91+,\'Z (55l4(']) When a

Re: Finding the instance reference of an object

2008-10-28 Thread Dale Roberts
On Oct 28, 11:59 am, Joe Strout [EMAIL PROTECTED] wrote: ... There are only the two cases, which Greg quite succinctly and   accurately described above.  One is by value, the other is by   reference.  Python quite clearly uses by value.  Parameters are   expressions that are evaluated, and

HTML File Parsing

2008-10-28 Thread Felipe De Bene
I'm having problems parsing an HTML file with the following syntax : TABLE cellspacing=0 cellpadding=0 ALIGN=CENTER BORDER=1 width='100%' TH BGCOLOR='#c0c0c0' Width='3%'User ID/TH TH Width='10%' BGCOLOR='#c0c0c0'Name/THTH width='7%' BGCOLOR='#c0c0c0'Date/TH and so on whenever I feed

Re: big objects and avoiding deepcopy?

2008-10-28 Thread Daniel da Silva
http://groups.google.com/group/perl.perl6.language/msg/b0cfa757f0ce1cfd?pli=1 : ) On Mon, Oct 27, 2008 at 1:12 PM, [EMAIL PROTECTED] wrote: Robert Kern: This is similar to implementing Undo functionality in applications. In a quite-high-level language (like Python, but not necessarily in

Re: 2.6, 3.0, and truly independent intepreters

2008-10-28 Thread Rhamphoryncus
On Oct 28, 9:30 am, Andy O'Meara [EMAIL PROTECTED] wrote: On Oct 25, 9:46 am, M.-A. Lemburg [EMAIL PROTECTED] wrote: These discussion pop up every year or so and I think that most of them are not really all that necessary, since the GIL isn't all that bad. Thing is, if the topic keeps

Re: parse a table in HTML page.

2008-10-28 Thread Stefan Behnel
antonio_wn8 wrote: I have a need to read and parse a table in HTML page. I’m using the following script: http://trac.davidgrant.ca/browser/src/python/misc/siteuptime/TableParser.py It works fine aside from link in href. Example: String to parse: trtda

  1   2   >