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
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
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
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
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
Dear python-list@python.org,
I am making a program of the quadratic sieve on python 2.5.2. I am also
using sympy to find linear dependencies in mod 2. For example matrix A is :
10110
01101
00011
1
And using sympy I can type in a command to solve ax=0, which is:
1=0
01002=0
0010-1=0
ng my request.
Maurice Shih
--
http://mail.python.org/mailman/listinfo/python-list
On Aug 25, 4:01 pm, John Passaniti wrote:
> On Aug 25, 5:01 pm, Joshua Maurice wrote:
>
> > I agree. Sadly, with managers, especially non-technical
> > managers, it's hard to make this case when the weasel
> > guy says "See! It's working.".
&
On Aug 25, 1:44 pm, John Passaniti wrote:
> On Aug 24, 9:05 pm, Hugh Aguilar wrote:
>
> > What about using what I learned to write programs that work?
> > Does that count for anything?
>
> It obviously counts, but it's not the only thing that matters. Where
> I'm employed, I am currently managin
My apologies.
It should be Volume 4 Issue 1 instead of Issue 4 Volume 1.
Thank you Scott for pointing this out.
Regards
Maurice
On May 6, 10:08 pm, "mauricel...@acm.org"
wrote:
> Welcome to Issue 4 Volume 1 of The Python Papers. This marks our 4th
> year in business. It i
nd numbing regularity of the layout of the
> suburb of the city after which it seems to be named -
> For all I know 'manhatten' could be a native american word that
> means "net".
>
> Have you noticed that when people say "Sorry.but" they are
> no
Carsten Haese wrote:
> On Tue, 2008-03-18 at 07:14 +0000, Maurice LING wrote:
>> Hi,
>>
>> Assuming that I have this code for Cherrypy 3
>>
>> class Welcome:
>> def index(self):
>> return """
>>
>>
erform different
actions when different button is pressed?
Thanks in advance
Cheers
maurice
--
http://mail.python.org/mailman/listinfo/python-list
The Python Papers
5. How will you propose to improve The Python Papers
Please direct any queries to [EMAIL PROTECTED]
Thank you
Maurice Ling
Associate Editor, The Python Papers
--
http://mail.python.org/mailman/listinfo/python-list
ny queries to
[EMAIL PROTECTED]
Thank you
Maurice Ling
Associate Editor, The Python Papers
--
http://mail.python.org/mailman/listinfo/python-list
llset are?
How much time you can commit?
What do you want to learn?
etc etc
Alternatively look in Sourceforge.com, there is never enough hands.
maurice
--
http://mail.python.org/mailman/listinfo/python-list
Diez B. Roggisch wrote:
> Maurice LING schrieb:
>> Hi,
>>
>> I have a problem:
>>
>> 1. Assuming that my application is a SOAP server that uses SOAPpy,
>> 2. I am given port 35021 for use.
>>
>> What I normally do (simply) is:
>>
>> f
ursory glance while standing in the bookshop suggest that I should
give it a closer read - there are some interesting stuffs that caught my
eyes but I only have time for a quick flip then.
maurice
--
http://mail.python.org/mailman/listinfo/python-list
should have been killed).
Thanks in advance.
Cheers
maurice
--
http://mail.python.org/mailman/listinfo/python-list
The editorial committee of The Python Papers (ISSN 1834-3147) calls for
proposals for The Python Papers Monograph Series.
Potential authors should contact the editors at [EMAIL PROTECTED]
at an early stage of preparation.
We await your indications of interests.
Regards
Maurice Ling
Associate
The editorial committee of The Python Papers (ISSN 1834-3147) calls for
proposals for The Python Papers Monograph Series.
Potential authors should contact the editors at [EMAIL PROTECTED]
at an early stage of preparation.
We await your indications of interests.
Regards
Maurice Ling
Associate
yphant - A Python Framework for Modelling Reusable Information
Processing TasksPages 28-43
We will like to thank the community for their contributions and support.
Regards
Maurice Ling
Associate Editor
--
http://mail.python.org/mailman/listinfo/python-list
(volume 2 issue 2,
http://archive.pythonpapers.org/ThePythonPapersVolume2Issue2.pdf) has an
article on Django, a web framework. It may help you see what you are
missing out on.
maurice
--
http://mail.python.org/mailman/listinfo/python-list
go, CherryPy, TurboGears and many other tools
Best book(s): Dive into Python, Learning Python
maurice
--
http://mail.python.org/mailman/listinfo/python-list
Hi David,
I can't download from your link
http://www.freenet.org.nz/python/yahooquote/YahooQuote-0.1.tar.gz
Cheers
maurice
DavidM wrote:
> Hi,
>
> After a 3-year break from working with it, I've just released version 0.1.0
> (the first formally packaged release) of Y
Python. I am into text mining as
well. Perhaps we can communicate more on this...
I am also interested in your data mining tools, orange... Care to give
more details.
Thanks in advance
Maurice
--
http://mail.python.org/mailman/listinfo/python-list
walterbyrd wrote:
> I mean other than sysadmins, programmers, and web-site developers?
>
> I have heard of some DBAs who use a lot of python.
>
> I suppose some scientists. I think python is used in bioinformatics. I
> think some math and physics people use python.
>
> I suppose some people use
at the Open Source Developer's Conference 2006 (Melbourne, Australia).
Thank you everyone for all your support.
Cheers
Maurice Ling
(Associate Editor)
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
>
> 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
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
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
y on python
VM. Is this still a blue sky dream?
maurice
--
http://mail.python.org/mailman/listinfo/python-list
Linda (http://www-users.cs.york.ac.uk/aw/pylinda/)
Cheers
maurice
--
http://mail.python.org/mailman/listinfo/python-list
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. :-(
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
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
'ListType', 'LongType',
'MethodType', 'ModuleType', 'NoneType', 'NotImplementedType',
'ObjectType', 'SliceType', 'StringType', 'StringTypes', 'TracebackType',
'TupleType', 'TypeT
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
that pickle/copy_reg/marshal
combination cannot serialize? If so, what are the workarounds?
Thanks
Maurice
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
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
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
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
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
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
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
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
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
(*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
the site-package is
symlinked to /Library/Python. Do not attempt to touch that. This
installation can be accessed in Terminal by typing "pythonw".
Are you or will you be using package managers such as darwinports or Fink?
maurice
--
http://mail.python.org/mailman/listinfo/python-list
blem with say 2 programs using the same ports?
Thanks in advance.
Maurice
--
http://mail.python.org/mailman/listinfo/python-list
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 gene
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 .p
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
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
--
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
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
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.
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
>>
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
>>
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
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:
>>>
>>>
>>>
>>>>
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
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
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
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
--
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
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
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
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
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
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
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
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
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
PI. I hope I
can hear from them soon and generate some starting points...
Maurice
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
elease the JAR files without needing to release your codes.
Cheers
Maurice
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
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
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
1 - 100 of 129 matches
Mail list logo