good way to avoid recomputations?

2016-04-05 Thread Maurice
Hi. I working on a project where I have 5 scripts loading the same file at the very beginning so I would like to know the best way I can get this file without having to compute it 5 times. I also perform, in all the scripts, a list comprehension using this file that takes 30s to run. Would be c

[smtplib] how to assure login was succesful?

2016-05-24 Thread maurice
Hello to all. I have the following question: Once my python script reaches the point where I login in my email account with: server.login(username,password) (where server server = smtplib.SMTP('smtp.office365.com:587')), it returns a tuple like this: (235, '2.7.0 Authentication successful tar

fast dictionary initialization

2016-06-10 Thread maurice
Hi. If I have already a list of values, let's call it valuesList and the keysList, both same sized lists, what is the easiest/quickest way to initialize a dictionary with those keys and list, in terms of number of lines perhaps? example: valuesList = [1,2,3] keysList = ['1','2','3'] So the di

Convert list to another form but providing same information

2016-03-21 Thread Maurice
Hello, hope everything is okay. I think someone might have dealt with a similar issue I'm having. Basically I wanna do the following: I have a list such [6,19,19,21,21,21] (FYI this is the item of a certain key in the dictionary) And I need to convert it to a list of 32 elements (meaning days

Re: Convert list to another form but providing same information

2016-03-21 Thread Maurice
Just figured why: If I type this on the kernel: weirdList = [[0]*3]*5 weirdList Out[257]: [[0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0]] weirdList[0][0] = 1 weirdList Out[259]: [[1, 0, 0], [1, 0, 0], [1, 0, 0], [1, 0, 0], [1, 0, 0]] All first elements of the sublists also changes. I

Re: New Python book

2005-10-07 Thread Maurice LING
pages) is mainly found in the context of GUI programming. maurice Dick Moores wrote: > (Sorry, my previous post should not have had "Tutor" in the subject > header.) > > Magnus Lie Hetland's new book, _Beginning Python: From Novice to > Professional_ was published

Is there anything that pickle + copy_reg cannot serialize?

2005-12-08 Thread Maurice LING
that pickle/copy_reg/marshal combination cannot serialize? If so, what are the workarounds? Thanks Maurice -- http://mail.python.org/mailman/listinfo/python-list

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

2005-12-08 Thread Maurice LING
ek assistance for: 1. Is code object the only thing can cannot be pickled (less facing recursion limits)? 2. In the above example, how copy_reg works with pickle? Thanks and Cheers Maurice > > However, both pickle implementations are recursive, so you will be > limited by the amount of

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

2005-12-09 Thread Maurice LING
'ListType', 'LongType', 'MethodType', 'ModuleType', 'NoneType', 'NotImplementedType', 'ObjectType', 'SliceType', 'StringType', 'StringTypes', 'TracebackType', 'TupleType', 'TypeT

Re: How to make executable file ?

2005-01-02 Thread Maurice LING
't do that with C bindings. Any suggestions? Thanks, Maurice -- http://mail.python.org/mailman/listinfo/python-list

Re: Embedding a restricted python interpreter

2005-01-04 Thread Maurice LING
l the details of how it works. In gist, you may be able to craft a global and local environment for your script to run in. I do not know if it is possible to disable or override 'import'.. maurice -- http://mail.python.org/mailman/listinfo/python-list

Connecting to Firebird database using Kinterbasdb+Python

2005-07-04 Thread Maurice LING
(*args, **keywords_args) File "/usr/lib/python2.2/site-packages/kinterbasdb/__init__.py", line 608, in __init__ self._C_con = _k.attach_db(dsn, dpb, dialect) Any ideas or solutions? Thanks in advance. Cheers maurice -- http://mail.python.org/mailman/listinfo/python-list

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
d been achieved in Java (http://www-128.ibm.com/developerworks/java/library/j-super.html) but wondering if it is possible in Python. Is so, how? Thanks. Cheers Maurice -- http://mail.python.org/mailman/listinfo/python-list

Re: Java RMI-like services in Python

2005-07-18 Thread Maurice LING
object (containing methods) be loaded into PyLinda's TupleSpace? Sorry, this may be a dumb question as lists are technically objects. Just want to be doubly sure. Thanks and cheers maurice -- http://mail.python.org/mailman/listinfo/python-list

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
ftp = FTP('ftp.geneontology.org') ftp.login() ftp.cwd('/pub/go/ontology') ftp.retrbinary('retr gene_ontology.obo', open('gdata/gene_ontology', 'wb').write) ftp.quit() if __name__ == '__main__': grab_geneontology() maurice -- http://mail.python.org/mailman/listinfo/python-list

Do thread die?

2005-09-16 Thread Maurice LING
unc).start() myThread(self.bFunc).start() if __name__=='__main__': myClass().runAll() Is this a good way? Thanks and cheers Maurice -- http://mail.python.org/mailman/listinfo/python-list

Re: Do thread die?

2005-09-17 Thread Maurice LING
alhost', 8000], 'hi') Will the 2nd thread (bFunc) ever run since the 1st thread is running forever? Intuitively, I think that both threads will run but I just want to be doubly sure, because some of my program logic depends on the 2nd thread running while the 1st thread acts as a SOAP server or something. Thanks and Cheers Maurice -- http://mail.python.org/mailman/listinfo/python-list

reading files with error

2005-09-17 Thread Maurice LING
rop copying fail-point but may or may not be full length. What determines if Python is able to make it pass drag-and-drop copying fail-point? Is there anyway to do what I want, force read full length? Thanks and cheers Maurice -- http://mail.python.org/mailman/listinfo/python-list

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
ere a way of getting the path to the site-packages directory? Considering that Mac OSX with Fink installs python libraries in /sw/lib/python, Mac OSX itself has python libraries in /System/Library/Frameworks/Python.framework/Versions//lib, etc etc... maurice -- http://mail.python.org/mailman/listinfo/python-list

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
here a way of getting the path to the site-packages directory? Considering that Mac OSX with Fink installs python libraries in /sw/lib/python, Mac OSX itself has python libraries in /System/Library/Frameworks/Python.framework/Versions//lib, etc etc... maurice -- http://mail.python.org/mailman/listinfo/python-list

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
nough to learn. So please do not let your apparent "lack of programming experiences" be a mental hinderance to your progress. Cheers Maurice -- http://mail.python.org/mailman/listinfo/python-list

Re: Python for Palm OS?

2004-12-07 Thread Maurice LING
on rather old code base, can it be assumed that not much is happening at this front? This might be dumb to ask then, does anyone know if Pippy had been used in any noticeable form for Palm development anywhere? Or it's more of an proof of concept kind of thing? Or has anyone envisioned

Re: Best book on Python?

2004-12-12 Thread Maurice LING
ot;I have to learn python" situation, rather than "it is nice to know" situation. If the focus includes online materials, then there is a mountain of free online tutorials to wade through. Although somehow the materials seems fragmented but it is a nice source as wel

Re: Best book on Python?

2004-12-12 Thread Maurice LING
are other GUI kits like wxPython etc etc., each carries a set of online documentations. maurice -- http://mail.python.org/mailman/listinfo/python-list

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
tory. If any causes trouble, I'll guess it will be this. Hope this helps. Maurice -- http://mail.python.org/mailman/listinfo/python-list

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

2005-03-27 Thread Maurice LING
eam, fried, stew, roast? I may offend heaps of people by saying this but Tkinter is included in the standard package, so it should be given a look, then decide what is lacking... Maurice -- http://mail.python.org/mailman/listinfo/python-list

UnicodeEncodeError in string conversion

2005-03-30 Thread Maurice LING
From what I've gathered, it looks like the conversion from the results from SOAP interface to string results in the error. Is there any way to get thru this? Thanks maurice -- http://mail.python.org/mailman/listinfo/python-list

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
.py into CPython? My impression is that NLTK is more of a teaching tool rather than for production use. Please correct me if I'm wrong... The main reason I'm looking at NLTK is that it is pure python and is about the comprehensive text analysis toolkit in python. Are there any projects

Re: text analysis in python

2005-04-03 Thread Maurice LING
ferent end. Is there anyone in this forum that is using or had used MontyLingua and is happy to comment more on it? I'm happy to get more opinions. Thanks and cheers Maurice -- http://mail.python.org/mailman/listinfo/python-list

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
r='[', closer=']'): opener = re.escape(opener) closer = re.escape(closer) pattern = re.compile(opener + '([_A-Za-z][_A-Za-z0-9]*)' + closer) return re.sub(pattern, r'%(\1)s', template.replace('%','%%')) Cheers Maurice -- http://mail.python.org/mailman/listinfo/python-list

Re: text processing problem

2005-04-07 Thread Maurice LING
(there)", where between the word and the same bracketted word is more than one whitespaces... Cheers Maurice -- http://mail.python.org/mailman/listinfo/python-list

Re: text processing problem

2005-04-07 Thread Maurice LING
ng that I hardly used in the past, so gone far too rusty. Before my post, I've tried my_expr = re.compile(r'(\w+) \s* (\(\1\))') instead but it doesn't work, so I'm a bit stumped.. Thanks again, Maurice -- http://mail.python.org/mailman/listinfo/python-list

Re: PPC OSX vs. x86 Linux

2005-04-09 Thread Maurice LING
ou might want to install a version of Python using Fink and see how it compares up... Maurice -- http://mail.python.org/mailman/listinfo/python-list

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

2005-04-11 Thread Maurice LING
sumption comes from the fact that in cx_freeze, there isn't a "Python distribution", so it seems to be bootstrapping the python system from the host platform. Please correct me if I'm wrong... Cheers Maurice -- http://mail.python.org/mailman/listinfo/python-list

Re: new to mac OS10

2005-04-14 Thread Maurice LING
g, how did you "destroy" it? What I am thinking is, it may not be as destroyed as you think it might have... cheers maurice -- http://mail.python.org/mailman/listinfo/python-list

Re: new to mac OS10

2005-04-14 Thread Maurice LING
or presence of /System/Library/Framework/Python.framework 3. do a "which python" 4. do a "which pythonw" 5. execute "python" 6. execute "pythonw" i need to assess the damage done :P Cheers Maurice -- http://mail.python.org/mailman/listinfo/python-list

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
, '/sw/lib/python2.3/lib-dynload', '/sw/lib/python2.3/site-packages', '/sw/lib/python2.3/site-packages/Numeric', '/sw/lib/python2.3/site-packages/libsbml', '/sw/lib/python2.3/site-packages/gtk-2.0'] >>> There is no problem with having multiple versions and copies of Pythons in your system. The problems are: 1. get all the symlinks correct 2. know when to use what and how to use 3. means that you may have to install the same 3rd party library x-times for x-numbers of Pythons you might have... quite a pain... Cheers Maurice -- http://mail.python.org/mailman/listinfo/python-list

Re: new to mac OS10

2005-04-17 Thread Maurice LING
y for Fink installed Python 2.3.5 in my system. So, /usr/bin/python -> /sw/bin/python and the newly installed Python 2.4.1 created /usr/local/bin/python -> /Library/Frameworks/Python.framework/python Does /usr/bin/python takes precedence over /usr/local/bin/python? Somehow it rings an ala

Re: goto statement

2005-04-20 Thread Maurice Caret
Simon Brunning a écrit : On 4/20/05, praba kar <[EMAIL PROTECTED]> wrote: In Python what is equivalent to goto statement http://docs.python.org/tut/node6.html See, it's those dratted node numbers again. ;-) other equivalents are in http://docs.python.org/tut/node10.html -- http://mail.python.org

Using Jython in Ant Build Process

2005-04-20 Thread Maurice LING
e way, I'm using Eclipse. Thanks again. Cheers Maurice -- http://mail.python.org/mailman/listinfo/python-list

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 concernin

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
ich can be quite a bit of work... I do hope this problem will be sorted out some day. Cheers Maurice -- http://mail.python.org/mailman/listinfo/python-list

Re: bytecode non-backcompatibility

2005-04-25 Thread Maurice LING
des) be made stable, like Java bytecodes, which are pretty stable? Perhaps a better question will be, what techniques Java VM designers use that enables Java class files (and JAR files) to be stable and usable across versions that is lacking in Python? Thanks. Cheers Maurice -- http://mail.python.org/mailman/listinfo/python-list

Re: bytecode non-backcompatibility

2005-04-26 Thread Maurice LING
which may happen... I am not yet masochistic enough to take pleasures in this... I also hope some python developers are reading this thread as well.. Call this a desperate plea from some of us.. Cheers Maurice -- http://mail.python.org/mailman/listinfo/python-list

Re: bytecode non-backcompatibility

2005-04-26 Thread Maurice LING
if you're not on such a system, I know. The long-term solution is for PyPI to grow to include this functionality. I must say that I do not quite understand your system. Please enlighten me. Thanks and cheers Maurice -- http://mail.python.org/mailman/listinfo/python-list

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
with .so files here). What I do have resources (time and energy) for is to work with the maintainers of PyPI to implement the package maintenance system I've described.. maurice -- http://mail.python.org/mailman/listinfo/python-list

Re: Can .py be complied?

2005-04-26 Thread Maurice LING
elease the JAR files without needing to release your codes. Cheers Maurice -- http://mail.python.org/mailman/listinfo/python-list

Re: Python internal design

2005-04-26 Thread Maurice LING
pecification" and "python virtual machine specification", I am unable to find anything yet. Please tell me if you managed to find something useful. Cheers Maurice -- http://mail.python.org/mailman/listinfo/python-list

Re: bytecode non-backcompatibility

2005-04-26 Thread Maurice LING
age maintenance system I've described.. Good. I agree that we need more along that line. I've posted my idea on catelog-sig mailing list. Hope it get picked up... Cheers Maurice -- http://mail.python.org/mailman/listinfo/python-list

Re: bytecode non-backcompatibility

2005-04-26 Thread Maurice LING
it working, I think it will need 5-10x more time than I can put into it... Cheers maurice -- http://mail.python.org/mailman/listinfo/python-list

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
money. I am not advocating close source in any sense and I believe the choice of open or close source distribution is individual's and corporate's rights. Cheers Maurice -- http://mail.python.org/mailman/listinfo/python-list

Re: bytecode non-backcompatibility

2005-04-27 Thread Maurice LING
PI. I hope I can hear from them soon and generate some starting points... Maurice -- http://mail.python.org/mailman/listinfo/python-list

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
ource, nothing can be done anyway even if you have the codes, licensing agreements and contracts usually forbids everything. If the codes are open source, you will get the codes anyway and do according to the limits of the licence. maurice -- http://mail.python.org/mailman/listinfo/python-list

Re: Python site-packages and import

2005-04-28 Thread Maurice LING
fair, it is past midnight, and I'm probably just being stupid. Would anybody care to point out where? :) Peter your site-packages directory must be seen in python. try import sys sys.path and see if your site-packages directory is listed? maurice -- http://mail.python.org/mailman/listinfo/python-list

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
the Vaults of Parnassus, where you must host files elsewhere)", suggesting that he is looking for a site whereby 3rd party modules can be hosted, rather than a site telling you where 3rd party modules are hosted. maurice -- http://mail.python.org/mailman/listinfo/python-list

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 th

Re: Python site-packages and import

2005-04-29 Thread Maurice LING
an empty file but it needs to be there for python to be considered as a package. Alternatively, you can use 'from id3 import ID3' instead of 'import id3.ID3' Cheers Maurice -- http://mail.python.org/mailman/listinfo/python-list

"implementation" of PEP 262 as an academic project

2005-04-29 Thread Maurice LING
onus to inform everyone again through comp.lang.python (python-list) and catalog-sig mailing list. Thank you everyone for your kind understanding. Cheers Maurice Hi, I've just read PEP 262 last night and finds that it does more or less describes what I have in mind. However, I am not sure if

Re: Visual Python, really "Visual"?

2005-12-14 Thread Maurice LING
ast 4-6 tries). So, is there any python GUI builders based on tkinter? Personally, I prefer to drag and design a screen rather than programming it abstractly. Thanks maurice -- http://mail.python.org/mailman/listinfo/python-list

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

2005-12-21 Thread Maurice LING
software should be named > eggs or hatch, not easy_install, ugly). I think this is one very specific area that one BIG community-wide concerted effort is better than a few smaller ones. Is there any chance of better coordination in this area? maurice -- http://mail.python.org/mailman/listinfo/python-list

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

Re: Easy to use distributed system?

2006-08-13 Thread Maurice LING
Linda (http://www-users.cs.york.ac.uk/aw/pylinda/) Cheers maurice -- http://mail.python.org/mailman/listinfo/python-list

Re: Will GPL Java eat into Python marketshare?

2006-11-15 Thread Maurice LING
y on python VM. Is this still a blue sky dream? maurice -- http://mail.python.org/mailman/listinfo/python-list

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

Re: The Python Papers Edition One

2006-11-24 Thread Maurice LING
there to write a list comprehension? Copyright just says attribute credits when you use someone else's work within the limits of fair use; otherwise you might have to pay for it in the form of a licence, subject to the copyright owner. I believe you've done all these in college when wr

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
o place. Worry about it when it worries you. "do not distress yourself with imaginings" -desiderata Good luck. Cheers maurice Heather Stovold wrote: > Wow - deciding to program in python sure requires a lot of decisions! > > So far: > > I've decided on pyth

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

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

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 proble

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
ngineered quite easily but the act of doing that is criminal, unless performed under specified Council Directives (in EU) or under any statutory law in specific countries. But the act of looking at the codes if it is there is not criminal, just like reading a book in bookstore. If anyone can program

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.

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

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

  1   2   >