boost.python error with DirectX

2007-09-30 Thread Ling
I am using boost.python to wrap C++ function which includes directmusic libraries to simply play the midi, but lots of linkage errors "error LNK2001: unresolved external symbol". I wonder if it is possible to work with DirectX - directmusic libs. Are there any ways to wrap it? ***

Re: New Python book

2005-10-07 Thread Maurice LING
I had the opportunity to glance through the book in Borders yesterday. On the whole, I think it is well covered and is very readable. Perhaps I was looking for a specific aspect, and I find that threads did not get enough attention. Looking at the index pages, the topics on threads (about 4-5 p

Is there anything that pickle + copy_reg cannot serialize?

2005-12-08 Thread Maurice LING
Hi, I need to look into serialization for python objects, including codes, recursive types etc etc. Currently, I have no idea exactly what needs to be serialized, so my scope is to be as wide as possible. I understand that marshal is extended by pickle to serialize class instances, shared elem

Re: Is there anything that pickle + copy_reg cannot serialize?

2005-12-08 Thread Maurice LING
> Since copy_reg lets you specify arbitrary code to serialize arbitrary > objects, you shouldn't run into any single object that you cannot > serialize to a pickle. In http://www.effbot.org/librarybook/pickle.htm, it specifically mentions that code objects cannot be pickled and require the use

Re: Is there anything that pickle + copy_reg cannot serialize?

2005-12-09 Thread Maurice LING
>>> Since copy_reg lets you specify arbitrary code to serialize arbitrary >>> objects, you shouldn't run into any single object that you cannot >>> serialize to a pickle. >> >> >> [snip - example of pickling code objects] >> >> >> I cannot understand 2 things, which I seek assistance for: >> 1. Is

Re: How to make executable file ?

2005-01-02 Thread Maurice LING
Hi all, This may be OT but is there a way to do the same for *nix type of system? Like cast a python interpreter with scripts together? I'm running Mac OSX here. The only remote idea I have is to use jythonc to convert everything into .class files and package that as a .jar file but I can't do t

Re: Embedding a restricted python interpreter

2005-01-04 Thread Maurice LING
Rolf Magnus wrote: Hi, I would like to embed a python interpreter within a program, but since that program would be able to automatically download scripts from the internet, I'd like to run those in a restricted environment, which basically means that I want to allow only a specific set of modules

Connecting to Firebird database using Kinterbasdb+Python

2005-07-04 Thread Maurice LING
Hi, I've been using FB1.5 and access the database using Kinterbasdb + Python. My connection is established using kinterbasdb.connect() method and the parameters host, dns, database, user, password are all defaulted to 'None'. On my own machine running Mac OSX 10.3, I can connect using the foll

Re: Connecting to Firebird database using Kinterbasdb+Python

2005-07-04 Thread Maurice LING
Mathias Waack wrote: > Maurice LING wrote: > > >>I've been using FB1.5 and access the database using Kinterbasdb + >>Python. My connection is established using kinterbasdb.connect() method >>and the parameters host, dns, database, user, password are all defau

Java RMI-like services in Python

2005-07-18 Thread Maurice LING
Hi, I am wondering if Python has services or frameworks that does the same as Java RMI? What I am seeking is to do "pseudo-clustering". That is, a server will contains a program to control what is needed for execution. This will be pretty much like process management. Call this controller, He

Re: Java RMI-like services in Python

2005-07-18 Thread Maurice LING
Thank you Harald and Alan, Pyro seems to be used widely in this area but PyLinda is much cleaner and simpler to use. However, given that the object or class to be executed by execution machines are not known at development time, I wish to seek you advice on remote class loading. Can an object

Re: Standalone applications ?

2005-08-14 Thread Maurice LING
henne wrote: > > I should have added that my platform is Linux. > > http://davidf.sjsoft.com/mirrors/mcmillan-inc/install1.html > > Squeeze works on Linux too. It tells me that the installer files are not found. M -- http://mail.python.org/mailman/listinfo/python-list

Re: Calling ftp commands from python

2005-08-31 Thread Maurice LING
Thierry Lam wrote: > Is it possible to run an ftp command to connect to some remote computer > on the network. > > For example, if I want to retrieve some data from > \\remcomputer\datafiles on the network and copy it to my local > computer, how do I do it in python on the Unix side? > > I don't

Do thread die?

2005-09-16 Thread Maurice LING
Hi, I just have a simple question about threads. My classes inherits from threading.Thread class. I am calling threading.Thread.run() method to spawn a few threads to parallel some parts of my program. No thread re-use, pooling, joining ... just plainly spawn a thread, run a routine. So, at th

Re: Do thread die?

2005-09-17 Thread Maurice LING
> >> My current implementation may be ugly. I have a class >> >> class myThread(threading.Thread): >> def __init__(self, func): >> self.func = func >> threading.Thread.__init__(self) >> def run(self): >> print '%s function running' % self.func >> self.func(

reading files with error

2005-09-17 Thread Maurice LING
Hi, I'm trying to read some files (video files) that seems to have some errors in it. Basically, I cannot copy it out of discs as that gives me an error message but I can still play the file using a media player like VLC or QuickTime. I understand that copying a file will also invoke checking

Re: reading files with error

2005-09-17 Thread Maurice Ling
stderr.write("%8d %8d %8d %3.1f%% %6d:%02d %6.1fMB/s\r" % (i, f, i-f, i * 100. / total, rm, rs, spd)) sys.stderr.write("\n") Sorry but what are SEEK_END and SEEK_SET? Maurice -- Maurice Han Tong LING, BSc(Hons)(Biochem), AdvDipComp, CPT, SSN, FIFA, MASBMB, MAMBIS, M

Re: plateform info.

2005-09-22 Thread Maurice LING
Mikael Olofsson wrote: > Monu Agrawal wrote: > >> Hi I want to know whether the program is being run on windows or on >> Xnix. Is there any variable or method which tells me that it's windows? > > > Will this help? > > >>> import sys > >>> sys.platform > 'win32' > > There is also the platfor

Re: Do thread die?

2005-09-22 Thread Maurice LING
Frithiof Andreas Jensen wrote: > "Maurice LING" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > >>I do have another dumb question which is OT here. Say aFunc method >>instantiates a SOAP server that serves forever, will it prevent b

Re: plateform info.

2005-09-22 Thread Maurice LING
Mikael Olofsson wrote: > Monu Agrawal wrote: > >> Hi I want to know whether the program is being run on windows or on >> Xnix. Is there any variable or method which tells me that it's windows? > > > Will this help? > > >>> import sys > >>> sys.platform > 'win32' > > There is also the platfo

Re: Do thread die?

2005-09-22 Thread Maurice LING
Frithiof Andreas Jensen wrote: > "Maurice LING" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > >>I do have another dumb question which is OT here. Say aFunc method >>instantiates a SOAP server that serves forever, will it prevent b

Re: Considering python - have a few questions.

2005-02-13 Thread Maurice LING
Hi, I feel that you have a consideration if Python is suitable from the perspective that you hadn't programmed for a long time. Assuming that you had been convinced that Python is a suitable language in terms of functionalities you need, please allow me to ensure that Python is simple enough to

Re: Python for Palm OS?

2004-12-07 Thread Maurice LING
Peter Hansen wrote: Erik Max Francis wrote: I just got myself a new Treo 650 and was looking around for Python for Palm projects. The only ones I find are Pippy http://pippy.sourceforge.net/ and Python to Palm Pilot Port http://www.isr.uci.edu/projects/sensos/python/ both of which look t

Re: Best book on Python?

2004-12-12 Thread Maurice LING
Google for Dive Into Python. Its a free online publication, see if is any good for you. Cheers, I like "Dive into Python" for the fact that it tends to explain examples line by line in an annotated form but it may just be my personal preference. If the focus is only on printed books and there

Re: Best book on Python?

2004-12-12 Thread Maurice LING
Michael McGarry wrote: I have many years of programming experience and know a little bit of Tcl. I am looking for a book to detail on the features including GUI in a reference style. Thanks, Michael I am assuming that you do not want to venture pass the standard libraries at this moment, so in

Re: Best book on Python?

2004-12-12 Thread Maurice Ling
se on the cover :) But maybe that's just me. Daniel Bickett Yes it is somewhat ironic. I do think that a snake or something closer to a long, tube-like, legless animal will be more suitable. I have absolutely no idea how animals are chosen in O'Reilly. maurice begin:vcard fn:Maurice Li

Re: Installing new version, erasing previous versions of Python

2004-12-22 Thread Maurice LING
Hi David, I'm using Python on Mac OSX and although my case is not precisely your scenario but it is pretty common to have more than 1 pythons installed in Mac OSX 10.3, if Fink is used. If I understand the above correctly, 1) "make install" and "make altinstall" use the same process, the only di

Re: What's the best GUI toolkit in Python,Tkinter,wxPython,QT,GTK?

2005-03-27 Thread Maurice LING
Tom wrote: 1) Portable to Windows, Unix-like platforms, and the Macintosh; 2) Powerful, GUI is very beautiful ; 3) Efficiency of development is high; What's the best, Tkinter, wxPython, QT, GTK or other? Thanks! That's almost like asking which way of cooking chicken is the best? steam, fried, stew

UnicodeEncodeError in string conversion

2005-03-30 Thread Maurice LING
Hi, I'm working on a script that searches a public database and retrives results using SOAP interface. However, it seems that the results may contains unicodes. When I try to pump the results into Firebird database using kinterbasdb module, some results will give me a UnicodeEncodeError. From w

text analysis in python

2005-04-03 Thread Maurice Ling
ce. Cheers Maurice begin:vcard fn:Maurice Ling n:Ling;Maurice org:The University of Melbourne;Department of Zoology adr:;;Gate 12, Genetics Lane;Parkville;Victoria;3010;Australia email;internet:[EMAIL PROTECTED] title:Probatory Ph.D. Candidate tel;cell:+61 4 22781753 x-mozilla-html:FALS

Re: text analysis in python

2005-04-03 Thread Maurice LING
. I don't know if you're aware that, in a fairly strong sense, anything "[i]n the Java world" *is* "for Python". If you program with Jython (for example--there are other ways to achieve much the same end), your source code can be in Python, but you have full access to any library coded in Java.

Re: text analysis in python

2005-04-03 Thread Maurice LING
Mark Winrock wrote: You might try http://web.media.mit.edu/~hugo/montylingua/ "Liu, Hugo (2004). MontyLingua: An end-to-end natural language processor with common sense. Available at: web.media.mit.edu/~hugo/montylingua." Thanks Mark. I've downloaded MontyLingua and it looks pretty cool. To me,

Re: text analysis in python

2005-04-03 Thread Maurice LING
Terry Reedy wrote: "Maurice LING" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Say I code my stuffs in Jython (importing java libraries) in a file "text.py" Just to be clear, Jython is not a separate langague that you code *in*, but a separate i

text processing problem

2005-04-07 Thread Maurice LING
Hi, I'm looking for a way to do this: I need to scan a text (paragraph or so) and look for occurrences of " ()". That is, if the text just before the open bracket is the same as the text in the brackets, then I have to delete the brackets, with the text in it. Does anyone knows any way to achie

Re: text processing problem

2005-04-07 Thread Maurice LING
Matt wrote: Try this: import re my_expr = re.compile(r'(\w+) (\(\1\))') s = "this is (is) a test" print my_expr.sub(r'\1', s) #prints 'this is a test' M@ Thank you Matt. It works out well. The only think that gives it problem is in events as "there (there)", where between the word and the same

Re: text processing problem

2005-04-07 Thread Maurice LING
Matt wrote: I'd HIGHLY suggest purchasing the excellent http://www.oreilly.com/catalog/regex2/index.html";>Mastering Regular Expressions by Jeff Friedl. Although it's mostly geared towards Perl, it will answer all your questions about regular expressions. If you're going to work with regexs, this

Re: PPC OSX vs. x86 Linux

2005-04-09 Thread Maurice LING
Sells, Fred wrote: I'm no expert on internals, but I seem to recall that in the past, the string module could be implemented in either C or Python and I think there is a strop module that is related to all this. Could it be that on the Mac, your string processing is using interpreted Python byte c

Re: The convenient compiler for Python Apps and Distribution of it

2005-04-11 Thread Maurice LING
fred.dixon wrote: google for cx_freeze nevermind, here http://starship.python.net/crew/atuining/cx_Freeze/ linux and windows Thanks. I think the question is really asking "is there an application that can compile standalone python applications in various platforms?" That is, is it possible to bui

Re: new to mac OS10

2005-04-14 Thread Maurice LING
Thomas Nelson wrote: I'm on a mac OS X (10.3.8), and I seem to have accidentally destroyed the default python installation. How should I put it on? Do I need to use the unix version? any help would be greatly appreciated. THN Hi Thomas, I'm using OSX 10.3.8 as well. Just wondering, how did yo

Re: new to mac OS10

2005-04-14 Thread Maurice LING
I was actually trying to update to the newest python version, and I had read something saying it would conflict with the old version, so I went through and deleted all the folders that had "python" in the name =]. clever of me, huh? now I can't make either the new or the old work. Once again,

RE Engine error with sub()

2005-04-14 Thread Maurice LING
Cookbook (http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/81330) and [EMAIL PROTECTED] Copyright: The methods _make_regex(), __call__() and substitute() were the work of Xavier Defrang, __init__() was the work of [EMAIL PROTECTED], all others were the work of Maurice Ling"""

Re: RE Engine error with sub()

2005-04-15 Thread Maurice LING
Hi Dennis, Dennis Benzinger wrote: Maurice LING schrieb: Hi, I have the following codes: from __future__ import nested_scopes > [...] Are you still using Python 2.1? In every later version you don't need the "from __future__ import nested_scopes" line. So, if you are using Pyt

Re: RE Engine error with sub()

2005-04-16 Thread Maurice LING
match inputs My workaround is to change it to list of dictionaries, list of REs, list of RE matcher... iterative matching of inputs. Can someone kindly help me out here? Thanks in advance. Cheers, Maurice Maurice LING wrote: Hi, I have the following codes: from __future__ import nested_scopes import

Re: RE Engine error with sub()

2005-04-16 Thread Maurice LING
your advices. Cheers Maurice Maurice LING wrote: Hi all, I think I might have a workaround to this problem but have no idea how to work it through. I hope that someone can kindly help me out because I do not quite understand the mechanics of the _make_regex() method in the original codes... My

Re: new to mac OS10

2005-04-16 Thread Maurice LING
Hi Thomas, It seems that you've cleanly killed the Apple-installed Python, which isn't too bad a thing after all. What I can suggest you do is this... Copy the entire /System/Library/Frameworks/Python.framework directory from someone and drop it into your system (same place of course). I will n

Re: new to mac OS10

2005-04-17 Thread Maurice LING
Robert Kern wrote: 3. Apple-installed Python's command line tools are symlinked from /usr/bin to /System/Library/Frameworks/Python.framework but the OSX installer for Python 2.4.1 places the commandline tools in /usr/local/bin and symlinked to /Library/Frameworks/Python.framework. So it seems t

Using Jython in Ant Build Process

2005-04-20 Thread Maurice LING
Hi, I am looking for a way to use Jython in Ant build process. I have some pure Python scripts (not using any C extensions) that I'll like to incorporate into Java using Jython. I heard that this can be done but you can I set up Ant to do this? Sorry, I'm no expert with Ant. By the way, I'm usi

Re: Embedding & Extending Python &other scripting languages

2005-04-20 Thread Maurice LING
Hi Tommy, After reading what you've written, it is still very vague for me. Is it a program that reads a specification and outputs the corresponding codes in the langauge you want? Cheers Maurice Tommy Nordgren wrote: I'm interested in doing a rather ambitious project concerning compiler constru

Re: python LEX

2005-04-21 Thread Maurice LING
jozo wrote: I have to work on python lexical definition in Lex. I spent lots of my time to find regular expresions written for Lex of Python language but nothing. Can somebody help me? I nEED hELP Jython has a Python language lexer written using JavaCC. -- http://mail.python.org/mailman/listinfo

bytecode non-backcompatibility

2005-04-24 Thread Maurice LING
Hi, I've been using Python for about 2 years now, for my honours project and now my postgrad project. I must say that I am loving it more and more now. From my knowledge, Python bytecodes are not back-compatible. I must say that my technical background isn't strong enough but is there any good

Re: bytecode non-backcompatibility

2005-04-25 Thread Maurice LING
It is a nuisance. It's more of a nuisance when third part modules with 'c' components are compiled for the new version of python (a windows specific problem). I did find that the last upgrade forced me to evaluate which extensions I actually used. The answer was 'a few less than I thought'. It beca

Re: bytecode non-backcompatibility

2005-04-26 Thread Maurice LING
All you have to do is convince the developers to declare the set of bytecodes fixed, and they'd be stable. I don't think that will be easy, as it removes one of the methods used to improve the performance of Python. Since rebuilding the bytecode files is trivial (just invoke compileall.py in the l

Re: bytecode non-backcompatibility

2005-04-26 Thread Maurice LING
2. The current compilation scheme (compiling to bytecode as and when it is needed) works well for scripting purposes but is less desirable in commercial settings. Less distribution happens when it is used purely for scripting purposes, such as system maintenance or tuning. The solution with the c

Re: bytecode non-backcompatibility

2005-04-26 Thread Maurice LING
Terry Reedy wrote: "Maurice LING" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Now I understand that Python bytecodes are only dealing with pure python source codes. Then stop blaming (machine-independent) CPython 'bytecodes' for any problems you hav

Re: bytecode non-backcompatibility

2005-04-26 Thread Maurice LING
One difference between Java and Python is this: Java bytecodes are, as I understand it, part of the Java language definition. CPython bytecodes are intentionally not part of the language at all. Except maybe fore PyPy, other implementations do not use them. Jython translates Python source to

Re: Can .py be complied?

2005-04-26 Thread Maurice LING
monkey wrote: Hi all, I am new to programming, already have a glace on introduction of c++, java and finally decided on python. But I found that the .py file is just like the source file, how can I make a program without revealing its source? (may be my question is a little bit stupid) It is gener

Re: Python internal design

2005-04-26 Thread Maurice LING
Emre Turkay wrote: Hi Folks, I am designing a tool, in which there are dynamic types and variables with these types. In this respect, it is more like an interpreted language design. I wonder how these issues are implemented in Python are there any documents or articles about it, which I can read an

Re: bytecode non-backcompatibility

2005-04-26 Thread Maurice LING
The same *can* be said for some decade-old .py files. Certainly, most everything written for 2.0 onward still works. The same will also be true for .pyc files as long as you run them with their corresponding binary and as long as the binary stills run. However, .pyc files are private, tempora

Re: bytecode non-backcompatibility

2005-04-26 Thread Maurice LING
What can be done in PYAN is to encourage all 3rd party library developers to centralize their libraries in it, which I think all will gladly respond. All that is needed to be deposited in PYAN is a description file, like the simplest setup.py file. All that is needed in this description file is 1.

Re: bytecode non-backcompatibility

2005-04-26 Thread Maurice LING
Mike Meyer wrote: Maurice LING <[EMAIL PROTECTED]> writes: The idea of having to release the program or library as source files does ring alarms in many executives in corporate world. Less freezing the modules (which renders it platform dependent) or using Jython (which is not possible

Re: bytecode non-backcompatibility

2005-04-27 Thread Maurice LING
Martin v. Löwis wrote: Maurice LING wrote: technicalities are wrong but situation remains unchanged. For C modules, it is very likely that new versions of Python will continue to break the ABI, by changing the layout of structures. The most straight-forward way to deal with it as a sysadmin or

Re: bytecode non-backcompatibility

2005-04-27 Thread Maurice LING
Terry Reedy wrote: I doubt anyone disputes that upgrades are more hassle than we would like. My main point was that freezing CPython's technology is not the solution. Any other upgrade helper that you can contribute will be welcome. Terry J. Reedy So there is no way of releasing a close-source

Re: bytecode non-backcompatibility

2005-04-27 Thread Maurice LING
Martin v. Löwis wrote: [automatically install a set of packages] What do you think? That would certainly be possible. Contributions are welcome. Regards, Martin I've emailed to catelog-sig mailing list and is still waiting to hear something. Currently, I have no idea of the structure of PyPI. I h

bytecode non-backcompatibility

2005-04-28 Thread Maurice LING
Martin v. Löwis wrote: Maurice LING wrote: I've emailed to catelog-sig mailing list and is still waiting to hear something. Currently, I have no idea of the structure of PyPI. I hope I can hear from them soon and generate some starting points... Posting questions is not the only way to

Re: Can .py be complied?

2005-04-28 Thread Maurice LING
steve.leach wrote: python -o foo.exe foo.py at the command line, and get an executable, without any further effort. Hence making the resulting program useless to users of most operating systems. In close sourced development, which most corporates may prefer, yes, the resulting program is useless

Re: Python site-packages and import

2005-04-28 Thread Maurice LING
Peter Saffrey wrote: I'm trying to write a python service, with an executable in /usr/local/bin, but modules that are kept in a sub-directory of /usr/lib/python/site-packages. Using apt-proxy as my template, I've put the modules in /usr/lib/python/site-packages/mymodules and tried to import them wi

Re: New Python website

2005-04-28 Thread Maurice LING
ld installscript=sudo python setup.py install centipyde.py is the following: ===== """ Author: Maurice H.T. Ling <[EMAIL PROTECTED]> Copyright (c) 2005 Maurice H.T. Ling Date created : 28th April 2005 """ PKGINFOPA

Re: New Python website

2005-04-28 Thread Maurice LING
Michael Soulier wrote: On 28 Apr 2005 17:45:02 -0700, lpe <[EMAIL PROTECTED]> wrote: http://www.pycode.com I was kinda suprised when I could not find any good sites with 3rd party modules (other than the Vaults of Parnassus, where you must host files elsewhere), so I decided to write one myself :)

Re: New Python website

2005-04-29 Thread Maurice LING
lpe wrote: Hi maurice thanks for your interest, that surely looks interesting (and promising) I had no experience with any of the packages you mentioned, but it may well be usefull. Please email me with more details of what you had in mind. Hi, I've just read PEP 262 last night and finds that it do

Re: Python site-packages and import

2005-04-29 Thread Maurice LING
Peter Saffrey wrote: (apologies for starting a new thread - Google can't retrieve the other message for some reason) Yes, /usr/lib/python/site-packages is in sys.path. This series of commands should explain what I mean: I've put the Python ID3 module in a sub-directory of site-packages as an illust

"implementation" of PEP 262 as an academic project

2005-04-29 Thread Maurice LING
Hi all, I reckoned that if I'm on this work, I might as well make it into an academic engineering-type project for my pass degree. Hence, I am sending this posting out to everyone to inform of my intentions. Despite the possible interests in this work, academic requires a 'personal' project wit

Re: Visual Python, really "Visual"?

2005-12-14 Thread Maurice LING
Tolga wrote: > After a very rapid entrance into the Python, I have immediately looked > for a good IDE. Komodo and Wing IDE look very good and I think they are > enough. But now, I am searching for a Pyhton environment which should > look like Delphi / Kylix, Borland's C++ builder or Allegro Common

Re: When Python *Eggs* better than Python *distutils*?? What's Eggs?

2005-12-21 Thread Maurice LING
Xavier Morel wrote: > [EMAIL PROTECTED] wrote: > >> So basically Python Eggs precompiles and compresses >> binaries for you so you just have to load it to run >> your app? >> > > Nah, Eggs is a packaging system, what you don't have to do is > compile/configure, because the packaging does that f

Re: state of SOAP and python?

2006-08-10 Thread Maurice LING
Hi, I've been using SOAPpy for a number of my work. Looks good. maurice Mark Harrison wrote: > So I'm investigating doing some SOAP work... Any concensus on > what the best python libraries are for doing this? > > Too bad, xmlrpc is choking on our long longs. :-( > > Many TIA, > Mark > -- htt

Re: Easy to use distributed system?

2006-08-13 Thread Maurice LING
Jim Jones wrote: > I am looking for a system in Python that will easily allow me to distribute > processes across multiple systems?So, if I have a function 'foo', I'd > like to be able to call something along the lines of > > distribute(foo(x)) > > And have the system figure out which node

Re: Will GPL Java eat into Python marketshare?

2006-11-15 Thread Maurice LING
walterbyrd wrote: > Some think it will. > > Up untill now, Java has never been standard across different versions > of Linux and Unix. Some think that is one reason that some developers > have avoided Java in favor of Python. Now that Java has been GPL'd that > might change. > > IMO: it won't mak

Re: Python deployment options.

2006-11-15 Thread Maurice LING
Cameron Laird wrote: > In article <[EMAIL PROTECTED]>, > Richard Charts <[EMAIL PROTECTED]> wrote: > . > . > . > >>Well on a Win machine, probably. >>Almost every Linux machine you come across will have (most likely a >>fairly rece

Re: Will GPL Java eat into Python marketshare?

2006-11-16 Thread Maurice LING
Dennis Lee Bieber wrote: > On Wed, 15 Nov 2006 22:41:19 GMT, Maurice LING <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > > >>I'm hoping for a more optimistic outcome that this may open a >>possibility for tigher interoperabili

Re: Will GPL Java eat into Python marketshare?

2006-11-16 Thread Maurice LING
> > I once wrote a partial JVM in Modula-3 (strictly a researchware > effort), so I can imagine it being done technically. But why? > > The big problem with Java-and-Python is not the VMs underneath. It is > the fact that Java has layers upon layers upon layers of idiosyncratic > libraries and

Re: Will GPL Java eat into Python marketshare?

2006-11-16 Thread Maurice LING
Stephen Eilert wrote: > Maurice LING escreveu: > > >>>I once wrote a partial JVM in Modula-3 (strictly a researchware >>>effort), so I can imagine it being done technically. But why? >>> >>>The big problem with Java-and-Python is not the VMs undern

Re: Will GPL Java eat into Python marketshare?

2006-11-16 Thread Maurice LING
Paul Boddie wrote: > Maurice LING wrote: > >>Say given cytoscape.jar, I'll like to be able to do this: >> >> >>> from cytoscape javaimport cytoscape >> >>> c = cytoscape() >> >>And the tighest way I see that this can be done i

Python setup script problem

2006-07-10 Thread John Ling
ild/temp.aix-5.2-2.4/src/gaussian/extension/gaussian_wrap.o -o build/lib.aix-5.2-2.4/MAT/_gaussian.so c++: `-b' must come at the start of the command line error: command 'c++' failed with exit status 1 Much Appreciated, -- John Ling Software developer, UBC Bioinformatics Centre & UBC Proteomics Centre -- http://mail.python.org/mailman/listinfo/python-list

Re: The Python Papers Edition One

2006-11-24 Thread Maurice LING
Jerry Hill wrote: > On 11/25/06, Jerry Hill <[EMAIL PROTECTED]> wrote: > >> On 23 Nov 2006 15:09:11 -0800, [EMAIL PROTECTED] >> <[EMAIL PROTECTED]> wrote: >> > Yes, it's true that you can't resell copies of The Python Papers for >> > personal profits, but you may derive from it, reproduce and prop

Re: db.commit() to take effect

2006-12-02 Thread Maurice LING
John Machin wrote: > progman wrote: > >>I was testing the python+mysql >> >>here are my sample codes: >> >>import MySQLdb >>from pprint import pprint >>db = MySQLdb.connect(host="localhost", user="root", passwd="password", >>db="database") >>cursor = db.cursor() >>cursor.ex

Re: So many things that need to be decided....

2005-05-02 Thread Maurice LING
Hi, It seems that you are just starting on Python, same as my situation a year ago. After almost going down the same route as you do, I tell myself just start on something. You can decide on everything but by the time you've decided, everything changes again. Initially, I started on Java t

hard memory limits

2005-05-06 Thread Maurice LING
Hi, I think I've hit a system limit in python when I try to construct a list of 200,000 elements. My error is malloc: vm_allocate (size = 2400256) failed.. Just wondering is this specific to my system or what? Will adding more RAM helps in this case? Thanks and cheers Maurice -- http://m

Re: hard memory limits

2005-05-06 Thread Maurice LING
Hi everyone, thanks for your help. Yes, I'm using Mac OSX 1.3 with 256MB Ram. Each element in the list is a float. The list is actually a retrieved results of document IDs from SOAP interface. And Mac OSX does not have 'unlimit' command as shown, Maurice-Lings-Computer:~ mauriceling$ unlimit -

Re: hard memory limits

2005-05-06 Thread Maurice LING
James Stroud wrote: > Sorry Maurice, apparently in bash its "ulimit" (no n). I don't use bash, so I > don't know all of the differences offhand. Try that. > > James Thanks guys, It doesn't seems to help. I'm thinking that it might be a SOAPpy problem. The allocation fails when I grab a list o

Re: hard memory limits

2005-05-06 Thread Maurice LING
John Machin wrote: > On Sat, 07 May 2005 02:29:48 GMT, [EMAIL PROTECTED] (Bengt Richter) wrote: > > >>On Sat, 07 May 2005 11:08:31 +1000, Maurice LING <[EMAIL PROTECTED]> wrote: >> >>>It doesn't seems to help. I'm thinking that it might be a SOAPpy

Re: hard memory limits

2005-05-07 Thread Maurice LING
Bengt Richter wrote: > On Sat, 07 May 2005 14:03:34 +1000, Maurice LING <[EMAIL PROTECTED]> wrote: > > >>John Machin wrote: >> >>>On Sat, 07 May 2005 02:29:48 GMT, [EMAIL PROTECTED] (Bengt Richter) wrote: >>> >>> >>> >>>>

Re: Is Python suitable for a huge, enterprise size app?

2005-05-19 Thread Maurice LING
> >> You can >>see Python going down the sewer pipes, right on their faces. Two, >>security. "This python sounds pretty interesting. Tell me about the >>security. How can we prevent people from stealing our source code, >>which we just spent millions developing? ... Hmm, trust the developer

Re: Is Python suitable for a huge, enterprise size app?

2005-05-19 Thread Maurice LING
Peter Hansen wrote: > Maurice LING wrote: > >> It makes big difference (legally) to if the codes are there and >> someone sees it, to if the codes are locked in some packaged or zipped >> form and someone reverse-engineer it. It is legally as different as if >>

Re: Is Python suitable for a huge, enterprise size app?

2005-05-19 Thread Maurice LING
Peter Hansen wrote: > Maurice LING wrote: > >> It makes big difference (legally) to if the codes are there and >> someone sees it, to if the codes are locked in some packaged or zipped >> form and someone reverse-engineer it. It is legally as different as if >>

Re: Melbourne (Australia) Python User Group

2005-05-24 Thread Maurice LING
Hi Anthony, count me in... Cheers Maurice Anthony wrote: > Hi all, > > I'm interested in starting a Python user group in Melbourne, > Australia. So far there seems to have been a lot of interest from > various parties, but for whatever reasons it's fizzled out. So I've > decided that if there's

Re: something like CPAN, PPMs?

2005-05-31 Thread Maurice LING
Hi Alex, I am actually working on something like that as an academic project. At this stage, at least for the purpose of my scope, it will not be as extensive as CPAN but a set of mechanisms for the same effect for Python. maurice Alex Gittens wrote: > I'm new to Python from Perl, and loving i

Re: something like CPAN, PPMs?

2005-06-02 Thread Maurice LING
deelan wrote: > Maurice LING wrote: > >> Hi Alex, >> >> I am actually working on something like that as an academic project. >> At this stage, at least for the purpose of my scope, it will not be as >> extensive as CPAN but a set of mechanisms for the same ef

provide 3rd party lib or not... philosophical check

2005-06-02 Thread Maurice LING
Hi, Just a philosophical check here. When a program is distributed, is it more appropriate to provide as much of the required 3rd party libraries, like SOAPpy, PLY etc etc, in the distribution itself or it is the installer's onus to get that part done? Cheers Maurice -- http://mail.python.org

UML to Python/Java code generation

2005-06-15 Thread Maurice LING
Hi, Is there any UML tools that is able to take UML and generate Python codes? Cheers Maurice -- http://mail.python.org/mailman/listinfo/python-list

Re: Generating .pyo from .py

2005-06-16 Thread Maurice LING
say your code is "test.py" and you usually run it as "python test.py", then the "-O" option will generate .pyo files. That is "python -O test.py" Cheers maurice skn wrote: > Hello., > > Does the python compiler provide an option to generate a .pyo(optimized byte > code file) from a .py (source

Re: UML to Python/Java code generation

2005-06-16 Thread Maurice LING
Thanks James. I've googled a few times and it is always tools that generates UML from Python codes that comes up in the top hits, which brings me to wonder if there is something that does the opposite. maurice James wrote: >>Is there any UML tools that is able to take UML and generate Python co

  1   2   >