[ANN] Release 0.61.0 of Task Coach

2006-11-03 Thread Frank Niessink
Hi all, I'm pleased to announce release 0.61.0 of Task Coach. New in this release: Bugs fixed: * Displaying a previously hidden toolbar would result in an incorrectly drawn window. * Exported HTML didn't contain an explicit charset. * Negative effort preventation was not working correctly.

python-dev Summary for 2006-09-16 through 2006-09-30

2006-11-03 Thread steven . bethard
python-dev Summary for 2006-09-16 through 2006-09-30 .. contents:: [The HTML version of this Summary is available at http://www.python.org/dev/summary/2006-09-16_2006-09-30] = Summaries = --- Import features

python-dev Summary for 2006-09-01 through 2006-09-15

2006-11-03 Thread steven . bethard
python-dev Summary for 2006-09-01 through 2006-09-15 .. contents:: [The HTML version of this Summary is available at http://www.python.org/dev/summary/2006-09-01_2006-09-15] = Announcements =

Re: Javascript is turning into Python?!

2006-11-03 Thread Ben Finney
Paul Rubin http://phr.cx@NOSPAM.invalid writes: I hadn't seen this before. New Javascript 1.7 features: - Generators - Iterators - Array comprehensions - Destructuring assignment Sounds like another language we know. The current developers of Javascript have been quite open during

Re: SE 2.3 temporarily unavailable. Cheese shop defeats upload with erratic behavior. Urgently requesting help.

2006-11-03 Thread Frederic Rentsch
jim-on-linux wrote: Frederic, I've been trying to get back into my package in the Cheese Shop for over a year. The phone company changed my e:mail address and to make a long and frustrating story short I can't get back into the Cheese Shop to make changes to my file. Time is money.

problems with matplotlib on mac os x

2006-11-03 Thread spross
hi all i have to use matplotlib on mac os x. on the official site of matplotlib, i found a link to precompiled python packages for mac os x: http://pythonmac.org/packages/py24-fat/index.html so first, i installed python 2.4. that works great! if i type 'python' in the terminal, it loads python

Re: a newbi problem: can't find complete python curses library

2006-11-03 Thread Fredrik Lundh
krishnakant Mane wrote: does python possess a complete wrapper to ncurses and its related libraries like menu, panel and form? if yes then where can I find documentation? if you want to have good documentation and save a lot of time and energy, I recommend building on top of Urwid rather

Defaultdict and speed

2006-11-03 Thread bearophileHUGS
This post sums some things I have written in another Python newsgroup. More than 40% of the times I use defaultdict like this, to count things: from collections import defaultdict as DD s = abracadabra d = DD(int) for c in s: d[c] += 1 ... d defaultdict(type 'int', {'a': 5, 'r': 2, 'b': 2,

Re: __doc__ in compiled script

2006-11-03 Thread Peter Otten
Fredrik Lundh wrote: Gabriel Genellina wrote: co.co_consts[list(co.co_names).index(__doc__)] 'This is a docstring' Good! I'll buy this one :) thanks! however, there's no 1:1 mapping between names and constants; if you want code that works by accident, you might as well use

Directory Listing output to a file

2006-11-03 Thread wifighost
Hi All, I am a newbie to the Python language and already love it. I am working on my first script. I am trying to create a script that will get the contents of a directory and export (output) that information in a file that exists or creates. Mainly its going to read my network drive

Re: __doc__ in compiled script

2006-11-03 Thread Peter Otten
Gabriel Genellina wrote: I have a script starting with a docstring. After compiling it with compile(), is there any way I could get the docstring? __doc__ on the code object doesn't work. The lazy coder's approach: compiler.parse( ... 'the docstring' ... print 42 ... ).doc 'the docstring'

Re: Exploiting Dual Core's with Py_NewInterpreter's separated GIL ?

2006-11-03 Thread Daniel Dittmar
robert wrote: I'd like to use multiple CPU cores for selected time consuming Python computations (incl. numpy/scipy) in a frictionless manner. Interprocess communication is tedious and out of question, so I thought about simply using a more Python interpreter instances

Re: Exploiting Dual Core's with Py_NewInterpreter's separated GIL ?

2006-11-03 Thread robert
Jean-Paul Calderone wrote: On Thu, 2 Nov 2006 14:15:58 -0500, Jean-Paul Calderone [EMAIL PROTECTED] wrote: On Thu, 02 Nov 2006 19:32:54 +0100, robert [EMAIL PROTECTED] wrote: I'd like to use multiple CPU cores for selected time consuming Python computations (incl. numpy/scipy) in a

Re: Javascript is turning into Python?!

2006-11-03 Thread Robert Thorpe
Paul Rubin wrote: I hadn't seem this before. New Javascript 1.7 features: - Generators - Iterators - Array comprehensions - Destructuring assignment Sounds like another language we know. http://developer.mozilla.org/en/docs/New_in_JavaScript_1.7 Indeed, this is a consequence of

Feature Request: Py_NewInterpreter to create separate GIL (branch)

2006-11-03 Thread robert
Feature Request: Py_NewInterpreter to create separate GIL (branch) Daniel Dittmar wrote: robert wrote: I'd like to use multiple CPU cores for selected time consuming Python computations (incl. numpy/scipy) in a frictionless manner. Interprocess communication is tedious and out of question,

Re: Feature Request: Py_NewInterpreter to create separate GIL (branch)

2006-11-03 Thread Andre Meyer
Hi allStrange enough, there does not even seem to be interest in removing the GIL in Python 3000.For some interesting answers on this topic you may read through the thread Kill GIL on the py3k mailing list archives: http://mail.python.org/pipermail/python-3000/2006-September/thread.html.kind

Re: refcounting errors???

2006-11-03 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: The invokation of the foo-function goes somewhere in the line of: PyObject *up = PyBool_FromLong(1L); if (! up) PyErr_Print(); PyObject *res = PyObject_CallFunction(action.u.button.u.s, (NIH), what happens if you use (OIH) instead

Re: Exploiting Dual Core's with Py_NewInterpreter's separated GIL ?

2006-11-03 Thread Filip Wasilewski
robert wrote: I'd like to use multiple CPU cores for selected time consuming Python computations (incl. numpy/scipy) in a frictionless manner. Interprocess communication is tedious and out of question, so I thought about simply using a more Python interpreter instances (Py_NewInterpreter)

ANN: SE 2.3. Available now

2006-11-03 Thread Frederic Rentsch
A few Cheese Shop upload problems have been solved with the help of this creative group. Thank you all! Version 2.2 beta should be phased out. It has a functional defect, missing matches with a very low statistical probability. Version 2.3 has this fixed. Download URL:

Re: SE 2.3 temporarily unavailable. Cheese shop defeats upload with erratic behavior. Urgently requesting help.

2006-11-03 Thread Steve Holden
Frederic Rentsch wrote: jim-on-linux wrote: Frederic, I've been trying to get back into my package in the Cheese Shop for over a year. The phone company changed my e:mail address and to make a long and frustrating story short I can't get back into the Cheese Shop to make changes to my

Re: Exploiting Dual Core's with Py_NewInterpreter's separated GIL ?

2006-11-03 Thread robert
Filip Wasilewski wrote: robert wrote: I'd like to use multiple CPU cores for selected time consuming Python computations (incl. numpy/scipy) in a frictionless manner. Interprocess communication is tedious and out of question, so I thought about simply using a more Python interpreter

Re: Python in sci/tech applications

2006-11-03 Thread Magnus Lycka
robert wrote: When one follows .. http://docs.python.org/inst/tweak-flags.html#SECTION000622000 http://www.zope.org/Members/als/tips/win32_mingw_modules ..this seems only to cover the immediate python dll issues. What happens with the C runtime libraries? You'll bind 2

Re: Keyboard interrupts, Idle vs. SciTE

2006-11-03 Thread robert
John Ladasky wrote: Hi there. The following minimal code in Python 2.3.4 works under Idle v. 1.0.3, but not under SciTE v. 1.66: from time import sleep try: while True: sleep(0.25) print ., except KeyboardInterrupt: print \nKeyboard interrupt received.

Re: emacs shell hangs on W32 with python

2006-11-03 Thread emin . shopper
Hmm, it doesn't even work if I run the cygwin version of GNU Emacs and have it start the Windows version of python through python-mode or if I start a shell in emacs and then start the Windows version of python through the shell. Interestingly, however, things DO seem to work if I use cygwin emacs

Re: Python in sci/tech applications

2006-11-03 Thread John Coleman
John Coleman wrote: Robert Kern wrote: John Coleman wrote: Maybe I don't know what I'm looking for, but I downloaded Enthought a few days ago and don't seem to find MinGW on my system. There are 2 relatively small (totalling about 13 kb IIRC) *python* files deeply buried in the

MemoDepot: build YOUR OWN online notes library - anything, anytime, anywhere

2006-11-03 Thread ompaniess
Just like everybody else nowadays, you are facing infinite amount of information everyday. how can you keep those that truly matters to you? MemoDepot allows you to do just that, and much more! - Capture any information, store as notes in your MemoDepot account, and access from anywhere -

Re: SE 2.3 temporarily unavailable. Cheese shop defeats upload with erratic behavior. Urgently requesting help.

2006-11-03 Thread jim-on-linux
On Thursday 02 November 2006 14:59, Frederic Rentsch wrote: jim-on-linux wrote: Frederic, I've been trying to get back into my package in the Cheese Shop for over a year. The phone company changed my e:mail address and to make a long and frustrating story short I can't get back

Converting Microsoft Works databases.... *shudder*

2006-11-03 Thread Michael B. Trausch
I was wondering if anyone has had any experience with this. Someone I know is trying to move away from Microsoft Works, and I am trying to look into a solution that would convert their data in a lossless fashion to a more modern format. The database has more than 65K rows, so converting it to be

Re: emacs shell hangs on W32 with python

2006-11-03 Thread emin . shopper
The same problems occur with the latest emacs binary from CVS (emacs-version) GNU Emacs 23.0.0.1 (i386-mingw-nt5.1.2600) of 2006-10-16 on DTOP Lennart Borgman wrote: Would it not be a good idea to try the CVS version of Emacs for this now since the pretest will soon begin? Go here for

Re: Exploiting Dual Core's with Py_NewInterpreter's separated GIL ?

2006-11-03 Thread Daniel Dittmar
robert wrote: Question Besides: do concurrent INC/DEC machine OP-commands execute atomically on Multi-Cores as they do in Single-Core threads? No on the level that that Python reference counting is implemented. The CPUs have often special assembler ops for these operations. I think that

Re: refcounting errors???

2006-11-03 Thread [EMAIL PROTECTED]
Bingo, that works. Thanks! Fredrik Lundh wrote: [EMAIL PROTECTED] wrote: The invokation of the foo-function goes somewhere in the line of: PyObject *up = PyBool_FromLong(1L); if (! up) PyErr_Print(); PyObject *res =

Re: Python in sci/tech applications

2006-11-03 Thread Robert Kern
Magnus Lycka wrote: robert wrote: When one follows .. http://docs.python.org/inst/tweak-flags.html#SECTION000622000 http://www.zope.org/Members/als/tips/win32_mingw_modules ..this seems only to cover the immediate python dll issues. What happens with the C runtime libraries?

Re: Converting Microsoft Works databases.... *shudder*

2006-11-03 Thread GISDude
Mike, I totally forgot that MS Works was out there. Haven't used that one in about 6 or 7 years. Honestly, your best bet is to convert to .csv or some delimited .txt file. Once that is done, all your rows/columns will be nice and neat . Once that is done, (and since your client doesn't have

Re: SE 2.3 temporarily unavailable. Cheese shop defeats upload with erratic behavior. Urgently requesting help.

2006-11-03 Thread jim-on-linux
On Friday 03 November 2006 08:21, Steve Holden wrote: Frederic Rentsch wrote: jim-on-linux wrote: Frederic, I've been trying to get back into my package in the Cheese Shop for over a year. The phone company changed my e:mail address and to make a long and frustrating story short I

Is there a way to define a true global across modules?

2006-11-03 Thread Hendrik van Rooyen
I am struggling with this - I want to define a system-wide flag for use as a semaphore. It looks to me as if the only way to do it is to import all the modules that need to access it into the main namespace using the from whatever import * form. Is there a way to have one global object known

Tools for Java/Python scripting

2006-11-03 Thread Steve
I have added a page to the wiki, listing tools for Java-Python scripting (Java-Python interoperability). http://wiki.python.org/moin/Java_Scripting I have included information about all of the tools that I could find. If you know others, please add information about them to the page. --

Re: is mod_python borked?

2006-11-03 Thread Magnus Lycka
walterbyrd wrote: *sigh* maybe I'll just use php until the web-hosters catch up, if they ever do. The first general availability release of Apache 2.0 (2.0.35) appeared in April 2002. There are many ISPs. Perhaps you should limit yourself to those who lag behind less than four years? I can

Re: Is there a way to define a true global across modules?

2006-11-03 Thread Fredrik Lundh
Hendrik van Rooyen wrote: I am struggling with this - I want to define a system-wide flag for use as a semaphore. http://www.effbot.org/pyfaq/how-do-i-share-global-variables-across-modules.htm /F -- http://mail.python.org/mailman/listinfo/python-list

Re: Best way to have intermediate object description format

2006-11-03 Thread Larry Bates
[EMAIL PROTECTED] wrote: Hi, Is there any standard text format for storing data of object oriented nature. The text file should be readable. That is, Is there any better way than having to write out a file like this from the original place and read it in python and process it.

Re: Converting Microsoft Works databases.... *shudder*

2006-11-03 Thread Larry Bates
Michael B. Trausch wrote: I was wondering if anyone has had any experience with this. Someone I know is trying to move away from Microsoft Works, and I am trying to look into a solution that would convert their data in a lossless fashion to a more modern format. The database has more than

setting up wxPython on a Mac

2006-11-03 Thread Brian Blais
Hello, I have a wxPython program that I would like to give to a friend of mine who has a Mac. Is there a resource out there that can tell me what steps I need to follow to do this? Under windows, I would just install Enthought, and it would work without any modifications. I don't know

Re: setting up wxPython on a Mac

2006-11-03 Thread Kevin Walzer
Brian Blais wrote: Hello, I have a wxPython program that I would like to give to a friend of mine who has a Mac. Is there a resource out there that can tell me what steps I need to follow to do this? Under windows, I would just install Enthought, and it would work without any

Re: ANN: SE 2.3. Available now

2006-11-03 Thread Gary Herron
Frederic Rentsch wrote: A few Cheese Shop upload problems have been solved with the help of this creative group. Thank you all! Version 2.2 beta should be phased out. It has a functional defect, missing matches with a very low statistical probability. Version 2.3 has this fixed.

Re: Tools for Java/Python scripting

2006-11-03 Thread skip
steve http://wiki.python.org/moin/Java_Scripting Renamed to JavaScripting. Skip -- http://mail.python.org/mailman/listinfo/python-list

Re: Tools for Java/Python scripting

2006-11-03 Thread Paul Boddie
[EMAIL PROTECTED] wrote: steve http://wiki.python.org/moin/Java_Scripting Renamed to JavaScripting. You might want to coordinate this amongst yourselves: the original page is still being edited whilst the new one remains as a snapshot of the original page at the point of renaming. Paul --

Re: ANN: SE 2.3. Available now

2006-11-03 Thread Fredrik Lundh
Gary Herron wrote: As a matter of polite netiquette, a message like this really ought to have a paragraph telling us what SE *is*.(Unless it's a secret :-)) nah, if you've spent more than five minutes on c.l.python lately, you'd noticed that it's the Solution to Everything (up there with

Re: Keyboard interrupts, Idle vs. SciTE

2006-11-03 Thread John Ladasky
Thanks for the SciTE info, Neil. Yes, it was silly of me to forget to state that I'm using Win32. Normally, when I post to comp.lang.python, I remember to include that fact... :^P +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ | Ladasky Home Solar, Inc.: blowing sunshine up your

Re: Tools for Java/Python scripting

2006-11-03 Thread Rob Williscroft
wrote in news:[EMAIL PROTECTED] in comp.lang.python: steve http://wiki.python.org/moin/Java_Scripting Renamed to JavaScripting. Skip So nobody around here has heared of that other language called JavaScript then ? Perhaps Scripting_Java might be better. Pythoning-ly yr's Rob.

Re: Keyboard interrupts, Idle vs. SciTE

2006-11-03 Thread John Ladasky
Thanks Robert, I just poked around and found a PythonWin web page: http://aspn.activestate.com/ASPN/docs/ActivePython/2.3/pywin32/html/pythonwin/readme.html From other links it appears that SciTE was based on PythonWin, and not the other way around. For people coding in other languages besides

Re: Exploiting Dual Core's with Py_NewInterpreter's separated GIL ?

2006-11-03 Thread robert
Daniel Dittmar wrote: robert wrote: Question Besides: do concurrent INC/DEC machine OP-commands execute atomically on Multi-Cores as they do in Single-Core threads? No on the level that that Python reference counting is implemented. The CPUs have often special assembler ops for

Re: setting up wxPython on a Mac

2006-11-03 Thread Brian Blais
Kevin Walzer wrote: Brian Blais wrote: Hello, I have a wxPython program that I would like to give to a friend of mine who has a Mac. Is there a resource out there that can tell me what steps I need to follow to do this? Install Python from the Python website--a Python 2.5 installer is

Re: Python in sci/tech applications

2006-11-03 Thread robert
Robert Kern wrote: Magnus Lycka wrote: robert wrote: When one follows .. http://docs.python.org/inst/tweak-flags.html#SECTION000622000 http://www.zope.org/Members/als/tips/win32_mingw_modules ..this seems only to cover the immediate python dll issues. What happens with the C

Re: Best way to have intermediate object description format

2006-11-03 Thread Paddy
[EMAIL PROTECTED] wrote: Thanks paddy, Since the original language from which I am translating does not support any of these formats, I will have to write one myself. So, which one is easy to write out in a C like environment. regards, Suresh Paddy wrote: [EMAIL PROTECTED] wrote: Hi,

Re: Is there a way to define a true global across modules?

2006-11-03 Thread robert
Fredrik Lundh wrote: Hendrik van Rooyen wrote: I am struggling with this - I want to define a system-wide flag for use as a semaphore. http://www.effbot.org/pyfaq/how-do-i-share-global-variables-across-modules.htm Or worse style - if you are too lazy to create a extra global

Re: Exploiting Dual Core's with Py_NewInterpreter's separated GIL ?

2006-11-03 Thread Daniel Dittmar
robert wrote: (IPython is only a special python network terminal as already said.) Sorry, I thought of IronPython, the .NET variant. Does Jython really eliminate the GIL? What happens when different Yes. threads alter/read a dict concurrently - the basic operation in python, which is

Re: Python in sci/tech applications

2006-11-03 Thread Robert Kern
robert wrote: In past I asked for linking Python2.5 and next Pythons on Win against such standard DLL (MSVCRT4 or MSVCRT.DLL)- yet Martin v. Löwis somehow explained in http://groups.google.de/group/comp.lang.python/msg/fcbe41f9df595c35 somehow that MSVCRT.dll is not intended for normal

Re: Forum written in Python?

2006-11-03 Thread slav0nic
http://diamanda.googlecode.com forum + wiki sorry i was mistaken fist link at previous post%) -- http://mail.python.org/mailman/listinfo/python-list

Re: SE

2006-11-03 Thread Frederic Rentsch
C or L Smith wrote: Hello, I'm evaluating different methods of handling a transliteration (from an ascii-based representation of the devanagari/indian script to a romanized representation). I found SE and have been working with it today. One thing that I ran into (that I don't see a

Re: MemoDepot: build YOUR OWN online notes library - anything, anytime, anywhere

2006-11-03 Thread Terry Reedy
ompaniess [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [spam snipped] Any comments or suggestions, send to: [EMAIL PROTECTED] [cc'ed] Don't spam random technical newsgroups with completely off-topic posts. Such constitute anti-advertising. --

Re: setting up wxPython on a Mac

2006-11-03 Thread Kevin Walzer
Brian Blais wrote: Kevin Walzer wrote: Brian Blais wrote: Hello, I have a wxPython program that I would like to give to a friend of mine who has a Mac. Is there a resource out there that can tell me what steps I need to follow to do this? Install Python from the Python website--a Python

Re: ANN: SE 2.3. Available now

2006-11-03 Thread Frederic Rentsch
Gary Herron wrote: Frederic Rentsch wrote: A few Cheese Shop upload problems have been solved with the help of this creative group. Thank you all! Version 2.2 beta should be phased out. It has a functional defect, missing matches with a very low statistical probability. Version 2.3 has

Re: SE 2.3 temporarily unavailable. Cheese shop defeats upload with erratic behavior. Urgently requesting help.

2006-11-03 Thread Steve Holden
jim-on-linux wrote: On Friday 03 November 2006 08:21, Steve Holden wrote: Frederic Rentsch wrote: jim-on-linux wrote: Frederic, I've been trying to get back into my package in the Cheese Shop for over a year. The phone company changed my e:mail address and to make a long and frustrating

py2exe questions

2006-11-03 Thread Doug Stell
I have 2 questions about py2exe or any similar utility. 1. Is it possible to create a single Windows executable that does not blow out to a folder full of files and can be called from scripts using command line arguments? 2. If the above can be done, it is possible to hide parts of the Python

Re: ANN: SE 2.3. Available now

2006-11-03 Thread Frederic Rentsch
Fredrik Lundh wrote: Gary Herron wrote: As a matter of polite netiquette, a message like this really ought to have a paragraph telling us what SE *is*.(Unless it's a secret :-)) nah, if you've spent more than five minutes on c.l.python lately, you'd noticed that it's the

python-dev Summary for 2006-09-16 through 2006-09-30

2006-11-03 Thread steven . bethard
python-dev Summary for 2006-09-16 through 2006-09-30 .. contents:: [The HTML version of this Summary is available at http://www.python.org/dev/summary/2006-09-16_2006-09-30] = Summaries = --- Import features

python-dev Summary for 2006-09-01 through 2006-09-15

2006-11-03 Thread steven . bethard
python-dev Summary for 2006-09-01 through 2006-09-15 .. contents:: [The HTML version of this Summary is available at http://www.python.org/dev/summary/2006-09-01_2006-09-15] = Announcements =

Sorted and reversed on huge dict ?

2006-11-03 Thread vd12005
Hello, i would like to sort(ed) and reverse(d) the result of many huge dictionaries (a single dictionary will contain ~ 15 entries). Keys are words, values are count (integer). i'm wondering if i can have a 10s of these in memory, or if i should proceed one after the other. but moreover i'm

Re: Tools for Java/Python scripting

2006-11-03 Thread Steve
The URL is now: http://wiki.python.org/moin/JavaScripting -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: SE 2.3. Available now

2006-11-03 Thread Fredrik Lundh
Frederic Rentsch wrote: And here's the proof I am being perceived as a nuisance. I apologize, keeping to myself that I don't care. since you're constantly targeting newbies, and are hawking your stuff also for things for which there are simple and efficient solutions available in Python's

Re: Sorted and reversed on huge dict ?

2006-11-03 Thread Paul Rubin
[EMAIL PROTECTED] writes: i would like to sort(ed) and reverse(d) the result of many huge dictionaries (a single dictionary will contain ~ 15 entries). Keys are words, values are count (integer). i'm wondering if i can have a 10s of these in memory, Depends on how much memory your

Re: Sorted and reversed on huge dict ?

2006-11-03 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: i would like to sort(ed) and reverse(d) the result of many huge dictionaries (a single dictionary will contain ~ 15 entries). Keys are words, values are count (integer). not sure 150k entries qualify as huge, though, unless you're short on memory. i'm wondering

Re: Converting Microsoft Works databases.... *shudder*

2006-11-03 Thread Steve Holden
Larry Bates wrote: Michael B. Trausch wrote: I was wondering if anyone has had any experience with this. Someone I know is trying to move away from Microsoft Works, and I am trying to look into a solution that would convert their data in a lossless fashion to a more modern format. The

Re: Sorted and reversed on huge dict ?

2006-11-03 Thread Paul Rubin
Fredrik Lundh [EMAIL PROTECTED] writes: items = d.items() items.sort(key=operator.itemgetter(1), reverse=True) the items list would require a couple of megabytes for 150k dictionary entries, or so. the key map needs some memory too, but the rest of the sort is done in place. I

Re: Javascript is turning into Python?!

2006-11-03 Thread MC
Hi! (ECMAscript), then, well I haven't seen any progress there. 1) in IE-7, the last release (of JScript) has few evolutions (more important, a new garbage collector) 2) in Windows, with Active-Scripting, it's possible to integrate JScript in Python, call JScript's functions from Python's

Re: Sorted and reversed on huge dict ?

2006-11-03 Thread Fredrik Lundh
Paul Rubin wrote: items = d.items() items.sort(key=operator.itemgetter(1), reverse=True) the items list would require a couple of megabytes for 150k dictionary entries, or so. the key map needs some memory too, but the rest of the sort is done in place. I think the OP's method

Re: setting up wxPython on a Mac

2006-11-03 Thread Russell E. Owen
In article [EMAIL PROTECTED], Kevin Walzer [EMAIL PROTECTED] wrote: Brian Blais wrote: I'm not sure about numpy/scipy/matplotlib. I don't think there are pre-built packages for them; you may have to build them from source. You could also post to the MacPython mailing list, someone there has

Re: emacs shell hangs on W32 with python

2006-11-03 Thread emin . shopper
Lennart Borgman wrote: Could you then please post a bug report? Just choose Help - Send bug report from the menus. I sent a bug-report to the emacs list as requested and got an email reply saying the message is being held for a moderator to look at. Since the bug seems to be in the interaction

Re: Converting Microsoft Works databases.... *shudder*

2006-11-03 Thread John Machin
GISDude wrote: Mike, I totally forgot that MS Works was out there. Haven't used that one in about 6 or 7 years. Honestly, your best bet is to convert to .csv or some delimited .txt file. Once that is done, all your rows/columns will be nice and neat . Nice and neat? What is that supposed to

Having trouble with file modes

2006-11-03 Thread erikcw
Hi all, I've created a script that reads in a file, replaces some data (regex), then writes the new data back to the file. At first I was convinced that w+ was the tool for the job. But now I'm finding that the contents of the file are deleted (so I can't read the data in). f =

getattrfunc vs. tp_methods

2006-11-03 Thread Fabiano Sidler
Hello list! Writing a C extension module, which way is better to implement attribute retrieval, by a getattr function in the PyTypeObject struct or by an entry tp_methods? I don't need any black magic being executed on attribute access, so I would tend towards the tp_methods entry. Any argument

Re: Having trouble with file modes

2006-11-03 Thread martdi
At first I was convinced that w+ was the tool for the job. But now I'm finding that the contents of the file are deleted (so I can't read the data in). Possible File Modes: a : Append -- Add data at the end of the file r : Read -- Read from the file w : write -- Flush contents of the file

Re: py2exe questions

2006-11-03 Thread Grant Edwards
On 2006-11-03, Doug Stell [EMAIL PROTECTED] wrote: I have 2 questions about py2exe or any similar utility. 1. Is it possible to create a single Windows executable that does not blow out to a folder full of files and can be called from scripts using command line arguments? The default

Programming Language that is Spreadsheet/Table Based

2006-11-03 Thread Omar
I'm looking for a programming language or module that sorta looks and feels like MS Excel (I love and think in tables), yet has the power and open-endedness of python or javascript. I'm still pretty new to python. any ideas? i've been having some fun with VBA in excel, but I want something I

WSDL?

2006-11-03 Thread tobiah
Is WSDL the right answer for in house communication between programs written in different languages, or is it more for publishing interfaces for use by parties outside your own company? What else is available for sharing complex structures with processes running programs that were written in

Re: Programming Language that is Spreadsheet/Table Based

2006-11-03 Thread Fuzzyman
Omar wrote: I'm looking for a programming language or module that sorta looks and feels like MS Excel (I love and think in tables), yet has the power and open-endedness of python or javascript. I'm still pretty new to python. any ideas? i've been having some fun with VBA in excel, but I

Re: py2exe questions

2006-11-03 Thread Larry Bates
Doug Stell wrote: I have 2 questions about py2exe or any similar utility. 1. Is it possible to create a single Windows executable that does not blow out to a folder full of files and can be called from scripts using command line arguments? 2. If the above can be done, it is possible to

Re: Programming Language that is Spreadsheet/Table Based

2006-11-03 Thread MC
Hi! You can expand VBA/Excel with Python, with Pywin32 for to make a dynamic COM server. -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Having trouble with file modes

2006-11-03 Thread erikcw
To make it write over the data, I ended up adding, which seems to work fine. f = open('_i_defines.php', 'w+') data = f.read() f.seek(0) f.truncate(0) ...process data, write file, close... Now that I look at it, I could probably take out the f.seek(). Thanks for your help! On Nov 3, 4:00 pm,

Re: Having trouble with file modes

2006-11-03 Thread Larry Bates
Don't do that. Do something like renaming the old file to .bak (or .aside or something) and then create the entire file by opening it with 'w'. -Larry -- http://mail.python.org/mailman/listinfo/python-list

Re: WSDL?

2006-11-03 Thread Marc 'BlackJack' Rintsch
In [EMAIL PROTECTED], tobiah wrote: What else is available for sharing complex structures with processes running programs that were written in other languages? Corba? Ciao, Marc 'BlackJack' Rintsch -- http://mail.python.org/mailman/listinfo/python-list

Re: Make all files extension lower by a given directory name

2006-11-03 Thread Martin Miller
Tim Chase wrote, in part: ... I've found that Win32 doesn't often take a rename if the origin and destination differ only in case[*]. Thus, to change the case, I've had to do *two* renames...one to, say, prefix with an underscore and change the case to my desired case, and then one to strip

Re: Sorted and reversed on huge dict ?

2006-11-03 Thread vd12005
thanks for your replies :) so i just have tried, even if i think it will not go to the end = i was wrong : it is around 1.400.000 entries by dict... but maybe if keys of dicts are not duplicated in memory it can be done (as all dicts will have the same keys, with different (count) values)?

Re: Python in sci/tech applications

2006-11-03 Thread Thomas Nelson
How hard would it be to have numpy/ scipy part of the python standard library? Tom mattf wrote: I've discovered Python and have been trying it out lately as a possible replacement for computations that would ordinarily be done with a commercial package like Matlab or IDL. I'd like to mention

Re: Python and SSL enabled

2006-11-03 Thread matey
It appears my __m2crypto.so didn't get built correctly. cengsu01:/home/mmedina/crypt/m2kcrypto/m2crypto-0.16 python setup.py build /usr/local/lib/python2.3/distutils/extension.py:128: UserWarning: Unknown Extension options: 'swig_opts'

Re: WSDL?

2006-11-03 Thread WakeBdr
XMLRPC and SOAP are the two I'm working with right now. tobiah wrote: Is WSDL the right answer for in house communication between programs written in different languages, or is it more for publishing interfaces for use by parties outside your own company? What else is available for sharing

Re: Sorted and reversed on huge dict ?

2006-11-03 Thread Paul Rubin
[EMAIL PROTECTED] writes: but maybe if keys of dicts are not duplicated in memory it can be done (as all dicts will have the same keys, with different (count) values)? There will still be a pointer for each key, the strings themselves won't be duplicated. memory is 4Gb of ram, That sounds

Re: WSDL?

2006-11-03 Thread tobiah
I recently wrote a SOAP client(?) to read what the guy from the other company called a WSDL, which was just a URL that served an XML API description. Is that the same as XMLRPC (I ask because you mention SOAP). Thanks, Toby WakeBdr wrote: XMLRPC and SOAP are the two I'm working with right

how do I pass values between classes?

2006-11-03 Thread kath
hi everyone. I have a task, I have fragmented the task into subtask. I have planned to create a class to each subclass and one parent class to handle the sub tasks. Each subclass are saved in seperate file and all my subclasses and parent class are placed in the same folder. The parent

numpy help

2006-11-03 Thread Chris Smith
Howdy, I'm a college student and for one of we are writing programs to numerically compute the parameters of antenna arrays. I decided to use Python to code up my programs. Up to now I haven't had a problem, however we have a problem set where we are creating a large matrix and finding it's

Re: Python in sci/tech applications

2006-11-03 Thread robert
Robert Kern wrote: This is what Martin said: It used to be possible to link with it. See http://msdn2.microsoft.com/en-us/library/abx4dbyh(VS.80).aspx This is now a known DLL, and meant for use by system-level components only. Note the words used to and now. Mingw is a somewhat

  1   2   >