Re: Programming Language that is Spreadsheet/Table Based

2006-11-03 Thread Gerard Flanagan
James Stroud wrote: > I have spent a lot of time making a "Table" > class over about the last year and a half, but I'm not sure what might > be an intuitive interface for most people. First, I think it should work > like a "sorted" dictionary of lists, but, at the same time, a list of > sorted dic

Re: Sorted and reversed on huge dict ?

2006-11-03 Thread vd12005
so it still unfinished :) around 1GB for 1033268 words :) (comes from a top unix command) Paul > i was also thinking on doing it like that by pip-ing to 'sort | uniq -c | sort -nr' , but i'm pleased if Python can handle it. (well but maybe Python is slower? will check later...) Klaas > i do not

Re: Having trouble with file modes

2006-11-03 Thread Fredrik Lundh
erikcw wrote: > To make it write over the data, I ended up adding, which seems to work > fine. > > f = open('_i_defines.php', 'w+') that doesn't work; you need to use "r+" if you want to keep the original contents. "w+" means truncate first, update then: >>> f = open("foo.txt", "r") >>> f.r

Re: Javascript is turning into Python?!

2006-11-03 Thread Fredrik Lundh
Steve Holden wrote: > Wouldn't that be > > with f() as x, g() as y: > blah(x, y) or with f(), g() as x, y: pass see guido's comment at the bottom of this page: http://effbot.org/pyref/with.htm -- http://mail.python.org/mailman/listinfo/python-list

Re: Javascript is turning into Python?!

2006-11-03 Thread Paul Rubin
Steve Holden <[EMAIL PROTECTED]> writes: > Wouldn't that be > > with f() as x, g() as y: > blah(x, y) Probably. I haven't started using 2.5 yet. -- http://mail.python.org/mailman/listinfo/python-list

Re: numpy help

2006-11-03 Thread Robert Kern
Chris Smith wrote: > 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

Re: Python in sci/tech applications

2006-11-03 Thread Robert Kern
Thomas Nelson wrote: > How hard would it be to have numpy/ scipy part of the python standard > library? scipy will never, ever be part of the standard library. Some subset of numpy may eventually make it into the standard library, but not any time soon. -- Robert Kern "I have come to believe th

Re: Having trouble with file modes

2006-11-03 Thread Hendrik van Rooyen
"erikcw" <[EMAIL PROTECTED]> wrote: 8< > #loop through patterns list and find/replace data > for o, r in patterns: > data = data.replace(o, r) > print "Replaced %s with %s" % (o, r) > f.write(data) > f.close() > > This results in an empty file. All of the

Re: Programming Language that is Spreadsheet/Table Based

2006-11-03 Thread James Stroud
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, bu

Re: WSDL?

2006-11-03 Thread [EMAIL PROTECTED]
WSDL is a way to describe a webservice (using a XML dialect) in terms of: operations (that have input and output messages) and endpoints (the actual URL to access the webservice). When you accessed your other guy's URL, the "XML API description" you got back was the actual WSDL. So it wasnt' that

Re: how do I pass values between classes?

2006-11-03 Thread MC
Hi! Look Candygram (http://candygram.sourceforge.net/) Candygram has features who will fun for you (like inter-threads-comunication). -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Physical constants

2006-11-03 Thread Steven D'Aprano
Apologies for breaking threading, but my ISP seems to have eaten the original post from Tommy. Hence I'm replying to a reply. Tommy Grav wrote: > I have some code for doing orbital computations. The code is kind of > extensive with many classes, each having several functions. In these > functions

Re: Physical constants

2006-11-03 Thread Steven D'Aprano
On Fri, 03 Nov 2006 18:38:33 -0800, Rares Vernica wrote: > Hi, > > I am not sure how the constants are implemented in math, >>> import math >>> math.__file__ '/usr/lib/python2.4/lib-dynload/mathmodule.so' Looks like it is all done in C. It's probably just a binding to your platform's C floating

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

2006-11-03 Thread Hendrik van Rooyen
"robert" <[EMAIL PROTECTED]> wrote: > 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 w

Re: Timing a function object versus timeit

2006-11-03 Thread Steven D'Aprano
On Fri, 03 Nov 2006 18:02:37 -0800, Carl Banks wrote: import timeit timeit.Timer("foo(1)","from __main__ import foo") > 1.1497418880462646 Well, that was scarily simple. Thank you. -- Steven. -- http://mail.python.org/mailman/listinfo/python-list

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

2006-11-03 Thread Hendrik van Rooyen
"Fredrik Lundh" <[EMAIL PROTECTED]> 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 > > Thanks - just like COBOL's data divi

Re: Defaultdict and speed

2006-11-03 Thread Klaas
[EMAIL PROTECTED] wrote: > 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 > ..

Re: Sorted and reversed on huge dict ?

2006-11-03 Thread Klaas
[EMAIL PROTECTED] wrote: > 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,

Re: Python Classes and dynamic class members

2006-11-03 Thread James Stroud
[EMAIL PROTECTED] wrote: > James Stroud wrote: > >>[EMAIL PROTECTED] wrote: >> >>>I have a text file that I am parsing. Each line is of the form: >>> >>>max_time 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.10 0.11 0.12 >>> >>>The first item is the field name and the next twelve items are valu

Re: Javascript is turning into Python?!

2006-11-03 Thread Klaas
Paul Rubin wrote: > "Carl Banks" <[EMAIL PROTECTED]> writes: > > > http://developer.mozilla.org/en/docs/New_in_JavaScript_1.7 > > Maybe in exchange, Python can borrow the let statement. > > Maybe the with statement could be extended to allow binding more than > one variable. > with x as f(), y

Re: PySchool - Online Python Web Framework Workshop.

2006-11-03 Thread Steve Holden
RobJ wrote: > Hi! My Name is Rob Johnson and I am a graduate student at The Richard > Stockton College of NJ. To make a long story short, I'm working on my > Masters project in the MAIT program (Masters of Arts in Instructional > Technology). I have written a proposal to put together a free on-line

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

2006-11-03 Thread Paul McNett
Michael B. Trausch wrote: > 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" . >>

Re: Javascript is turning into Python?!

2006-11-03 Thread Steve Holden
Paul Rubin wrote: > "Carl Banks" <[EMAIL PROTECTED]> writes: > >>>http://developer.mozilla.org/en/docs/New_in_JavaScript_1.7 >> >>Maybe in exchange, Python can borrow the let statement. > > > Maybe the with statement could be extended to allow binding more than > one variable. > with x as

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

2006-11-03 Thread Steve Holden
robert wrote: > Daniel Dittmar wrote: > >>robert wrote: [...] > >>>garbage is collected earliest, when the refcount went to 0. If it ever >>>went to 0, no one will ever use such object again. Thus GC should not >>>be different at all. >> >>Since Python 2.?, there's a mark-and-sweep garbage coll

Re: Physical constants

2006-11-03 Thread Jean-Paul Calderone
On Fri, 3 Nov 2006 18:57:49 -0500, Tommy Grav <[EMAIL PROTECTED]> wrote: >I have some code for doing orbital computations. The code is kind of >extensive with many classes, each having several functions. In these >functions I need to use constants (like the gravitational constant). >What is the bes

Re: Physical constants

2006-11-03 Thread Rares Vernica
Hi, I am not sure how the constants are implemented in math, but here is how I would do it. The main idea is to declare the constants as globals in some file. Declare all the constants in a file: const.py --- pi = 3.14 Whenever you want to use pi from another file, just do: somecode.py --- fro

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

2006-11-03 Thread Michael B. Trausch
Larry Bates wrote: > > MS ships ODBC interface to xBase databases in all versions of Windows. > You don't need Access. Just create DSN to your exported dBase database > and MS Word, MS Excel, and any other ODBC aware product can read the > data. If the data size is large or if you want to move to

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

2006-11-03 Thread Michael B. Trausch
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" . > Once that is done, (and since you

Re: Timing a function object versus timeit

2006-11-03 Thread Carl Banks
Steven D'Aprano wrote: > The timeit module is ideal for measuring small code snippets; I want to > measure large function objects. > > Because the timeit module takes the code snippet argument as a string, it > is quite handy to use from the command line, but it is less convenient for > timing lar

Timing a function object versus timeit

2006-11-03 Thread Steven D'Aprano
The timeit module is ideal for measuring small code snippets; I want to measure large function objects. Because the timeit module takes the code snippet argument as a string, it is quite handy to use from the command line, but it is less convenient for timing large pieces of code or when working i

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

2006-11-03 Thread Paul Rubin
robert <[EMAIL PROTECTED]> writes: > > I don't want to discourage you but what about reference > > counting/memory > > management for shared objects? Doesn't seem fun for me. > > in combination with some simple locking (anyway necessary) I don't > see a problem in ref-counting. > If at least any i

Re: Javascript is turning into Python?!

2006-11-03 Thread Paul Rubin
"Carl Banks" <[EMAIL PROTECTED]> writes: > > http://developer.mozilla.org/en/docs/New_in_JavaScript_1.7 > Maybe in exchange, Python can borrow the let statement. Maybe the with statement could be extended to allow binding more than one variable. with x as f(), y as g(): blah (x, y) --

Re: numpy help

2006-11-03 Thread Chris Smith
robert wrote: > Chris Smith wrote: > >>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 a

Physical constants

2006-11-03 Thread Tommy Grav
I have some code for doing orbital computations. The code is kind ofextensive with many classes, each having several functions. In thesefunctions I need to use constants (like the gravitational constant). What is the best way of implementing a solution when constants areused in several different cl

Re: Python Classes and dynamic class members

2006-11-03 Thread [EMAIL PROTECTED]
James Stroud wrote: > [EMAIL PROTECTED] wrote: > > I have a text file that I am parsing. Each line is of the form: > > > > max_time 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.10 0.11 0.12 > > > > The first item is the field name and the next twelve items are values > > for each month in the y

Re: Python Classes and dynamic class members

2006-11-03 Thread John Machin
[EMAIL PROTECTED] wrote: > I have a text file that I am parsing. Each line is of the form: > > max_time 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.10 0.11 0.12 > > The first item is the field name and the next twelve items are values > for each month in the year. There are multiple lines eac

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

2006-11-03 Thread Martin v. Löwis
robert schrieb: > in combination with some simple locking (anyway necessary) I don't see a > problem in ref-counting. In the current implementation, simple locking isn't necessary. The refcounter can be modified freely since the code modifying it will always hold the GIL. > Question Besides:

Re: Python Classes and dynamic class members

2006-11-03 Thread James Stroud
[EMAIL PROTECTED] wrote: > I have a text file that I am parsing. Each line is of the form: > > max_time 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.10 0.11 0.12 > > The first item is the field name and the next twelve items are values > for each month in the year. There are multiple lines e

Python Classes and dynamic class members

2006-11-03 Thread [EMAIL PROTECTED]
I have a text file that I am parsing. Each line is of the form: max_time 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.10 0.11 0.12 The first item is the field name and the next twelve items are values for each month in the year. There are multiple lines each for some different variable. I a

Re: Javascript is turning into Python?!

2006-11-03 Thread Carl Banks
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 Maybe in exchange, Python can b

Re: py2exe questions

2006-11-03 Thread Thomas Heller
Larry Bates schrieb: > 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 abo

Re: numpy help

2006-11-03 Thread robert
Chris Smith wrote: > 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

PySchool - Online Python Web Framework Workshop.

2006-11-03 Thread RobJ
Hi! My Name is Rob Johnson and I am a graduate student at The Richard Stockton College of NJ. To make a long story short, I'm working on my Masters project in the MAIT program (Masters of Arts in Instructional Technology). I have written a proposal to put together a free on-line Python web framewor

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

2006-11-03 Thread robert
Daniel Dittmar wrote: > 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 - th

Re: WSDL?

2006-11-03 Thread Paddy
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 complex structures > with processes running program

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"

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 inver

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 cl

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 now

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 soun

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 sh

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' warnings.wa

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 mentio

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

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

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: 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: 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, "m

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

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, bu

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 other

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 can

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 def

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 fi

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 ag

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 = open('_i_defin

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 sup

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 interacti

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 h

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 th

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 co

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 plac

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. Th

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 wonder

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

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

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 sou

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 >

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. Vers

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

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

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

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 =

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

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

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 i

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

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:

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

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 in

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 f

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

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

  1   2   >