what are some good python modules?

2010-06-14 Thread Robin
What are some good python modules that can be downloaded for any purpose that is recomended? -Robin -- http://mail.python.org/mailman/listinfo/python-list

Re: math.erfc OverflowError

2010-06-14 Thread geremy condra
On Sun, Jun 13, 2010 at 10:36 PM, Ben Finney wrote: > geremy condra writes: > >> You know, I've never been a part of a community in which the URL >> format was the most contentious part of filing a bug report. > > Heck no, the bug report is already filed, and contentions about the bug > report sh

Re: Community (A Modest Proposal)

2010-06-14 Thread rantingrick
On Jun 13, 12:45 pm, Terry Reedy wrote: > On 6/13/2010 12:14 PM, rantingrick wrote: > > > I have documented time and again the poor state of IDLE. The only > > responses i ever get are... > > >   "Nobody uses IDLE" > >   "Only a dumbass would use IDLE" > >   "I have never used IDLE but i *know* no

Re: Python on Android Mobile?

2010-06-14 Thread geremy condra
On Mon, Jun 14, 2010 at 1:55 AM, Shashwat Anand wrote: > Well, AFAIK Nokia N900 supports python fully. Yup, my code has to run on these before it passes build tests. I almost never have to do anything crazy to it. Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: what are some good python modules?

2010-06-14 Thread Ben Finney
Robin writes: > What are some good python modules that can be downloaded for any > purpose that is recomended? You will want to start at the Python Package Index, http://pypi.python.org/>. For more specific advice, you'll need to tell us more about what your specific purpose is. Recommended for

Re: file handling

2010-06-14 Thread Cameron Simpson
Please don't top post; post below and trim the content. Also, please do a reply-to-all to keep the discussion on the list. Further content is below... On 14Jun2010 11:44, madhuri vio wrote: | On Mon, Jun 14, 2010 at 11:39 AM, Cameron Simpson wrote: | > ODT files are _not_ text files. If I recal

Re: a +b ?

2010-06-14 Thread Steven D'Aprano
On Mon, 14 Jun 2010 12:24:59 +1000, Ben Finney wrote: > With ‘reduce’ gone in Python 3 [0] ... > [0] http://docs.python.org/py3k/library/functions.html> It's not gone, it's just resting. http://docs.python.org/py3k/library/functools.html#functools.reduce -- Steven -- http://mail.python.org/

Re: what are some good python modules?

2010-06-14 Thread James Mills
On Mon, Jun 14, 2010 at 5:02 PM, Robin wrote: > What are some good python modules that can be downloaded for any > purpose that is recomended? That's a rather vauge question Robin. There are tonnes of packages on PyPi (1). cheers James 1. http://pypi.python.org/ -- -- "Problems are solved by

Re: Community (A Modest Proposal)

2010-06-14 Thread geremy condra
On Mon, Jun 14, 2010 at 3:07 AM, rantingrick wrote: >  Hopefully i'll get the motivation for that re-write real soon. So far > i have only corrected a few small but very annoying facets of the UI > in between my other various up-and-coming projects. However it would > be nice to get all the "ID

Re: Which is the best implementation of LISP family of languages for real world programming ?

2010-06-14 Thread Jean-Michel Pichavant
Andrew Philpot wrote: On 06/11/10 08:48, Elena wrote: On 10 Giu, 23:33, bolega wrote: I mean ordinary people, who may want to do things with their computers for scripting, tasks that python can do... Lisp is not for ordinary people, Python is. Python is for ordinary people. Lisp is for ext

Re: Community (A Modest Proposal)

2010-06-14 Thread rantingrick
On Jun 14, 2:32 am, geremy condra wrote: > And now we come to the crux of the matter- you cheerlead and do > nothing because you need to have people patting you on the back > to know you're going the right direction. ...yes and if i ever need a swift kick in the grapes well then i know who to ca

how to build with 2.4 having 2.6 as main python

2010-06-14 Thread Alexzive
Hello there, my Mandriva has the 2.6.4 python pre-installed (in /usr/lib64/ python2.6/) I need to install numpy 1.4 for python 2.4.3 (I installed it separately from source on/usr/local/lib/python2.4/ ) but still typing "python" I get: Python 2.6.4 (r264:75706, Jan 8 2010, 18:59:59) [GCC 4.4.1] o

Re: Good solutions for passing around large numbers of arguments in a layered architecture?

2010-06-14 Thread Jean-Michel Pichavant
Nathan Rice wrote: I've been running into a problem lately where I have an architecture like so: Main class -> facade/configuration class -> low level logic class. The main class is what the user interacts with. The facade/config class is responsible for loading and managing the lower level cl

Re: how to build with 2.4 having 2.6 as main python

2010-06-14 Thread Shashwat Anand
You can try a package : python_select On Mon, Jun 14, 2010 at 2:00 PM, Alexzive wrote: > Hello there, > > my Mandriva has the 2.6.4 python pre-installed (in /usr/lib64/ > python2.6/) > I need to install numpy 1.4 for python 2.4.3 (I installed it > separately from source on/usr/local/lib/python2.

Re: how to build with 2.4 having 2.6 as main python

2010-06-14 Thread James Mills
On Mon, Jun 14, 2010 at 6:30 PM, Alexzive wrote: > what to change in order to get "python" calling python 2.4.3 instead > of 2.6.4 (at least during python setup.py build)? > > I suppose I need something like changing the link to /usr/local/bin/ > python.. > but I fear to do something bad by myself

Re: Mark built-in module as deprecated

2010-06-14 Thread Thomas Jollans
On 06/14/2010 02:30 AM, moerchendiser2k3 wrote: > PyErr_WarnEx(PyExc_DeprecationWarning, "foo deprecated. use fuzz", > 1); > > But where can I write this? With Py_InitModule4 I can just > pass a list of functions but no real execution part which > is executed when a module is imported. This is Py

Re: how to build with 2.4 having 2.6 as main python

2010-06-14 Thread Steven D'Aprano
On Mon, 14 Jun 2010 01:30:09 -0700, Alexzive wrote: > what to change in order to get "python" calling python 2.4.3 instead of > 2.6.4 (at least during python setup.py build)? That will do bad things to your system, which will be expecting the system Python to be 2.6 and instead will be 2.4. You

Re: Tkinter Toplevel sizing issue (using a grid)

2010-06-14 Thread eb303
On Jun 12, 1:40 am, random joe wrote: > Hello all, > > Hi this i my first post here. I would like to create a tkinter > toplevel window with a custom resize action based on a grid. From the > Tk docs it say you can do this but for the life of me i cannot figure > out how? In my app i wish for the

Re: how to build with 2.4 having 2.6 as main python

2010-06-14 Thread Alexzive
thanks guys, the solution for me was python2.4 setup.py install --prefix=/usr/local cheers, AZ On Jun 14, 11:00 am, Steven D'Aprano wrote: > On Mon, 14 Jun 2010 01:30:09 -0700, Alexzive wrote: > > what to change in order to get "python" calling python 2.4.3 instead of > > 2.6.4 (at least durin

Re: C interpreter in Lisp/scheme/python

2010-06-14 Thread Albert van der Horst
In article , bolega wrote: >I am trying to compare LISP/Scheme/Python for their expressiveness. > >For this, I propose a vanilla C interpreter. I have seen a book which >writes C interpreter in C. > >The criteria would be the small size and high readability of the code. > >Are there already answe

configuration setting for python server

2010-06-14 Thread shanti bhushan
I want to update the configuration file for python server ,but i am not able to locate the python configuration file. Please guide me in this respect. I am using a python web server This is the code for it --- import string,cgi,time from os impo

Re: a +b ?

2010-06-14 Thread Mark Leander
(pytyhon 2.x code): print input('Enter expression: ') Example uses: Enter expression: 3+4 7 Enter expression: 1+2+3+4+5 15 Enter expression: 7*18 126 Enter expression: 2**19-1 524287 -- http://mail.python.org/mailman/listinfo/python-list

Re: a +b ?

2010-06-14 Thread cristeto1981
alex23 wrote: > > exar...@twistedmatrix.com wrote: >> Fore! >> >>     print(sum(map(int, input('enter two numbers: ').split( > > Well, I _was_ trying to stick to Steven's more simple map-less form :) > > (Although I have to say, I have little sympathy for Steven's > hypothetical "new prog

Convert .doc to .pdf

2010-06-14 Thread Thales
Good morning, I need to convert some files from .doc to .pdf. I've googled it a little bit and all the solutions I've found used the OpenOffice API, but I can't use it. Anybody knows a library that I can use to do it? Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: C interpreter in Lisp/scheme/python

2010-06-14 Thread Bruno Desthuilliers
On Sun, Jun 13, 2010 at 4:07 PM, bolega wrote: I am trying to compare LISP/Scheme/Python for their expressiveness. Scheme is actually a lisp, isn't it ? For this, I propose a vanilla C interpreter. I have seen a book which writes C interpreter in C. The criteria would be the small size a

Re: a +b ?

2010-06-14 Thread Mark Dickinson
On Jun 13, 5:46 pm, exar...@twistedmatrix.com wrote: > On 04:25 pm, wuwe...@gmail.com wrote: > > > > >Steven D'Aprano wrote: > >>No, I think your code is very simple. You can save a few lines by > >>writing > >>it like this: > > >>s = input('enter two numbers: ') > >>t = s.split() > >>print(int(t[

Re: efficiently create and fill array.array from C code?

2010-06-14 Thread Hrvoje Niksic
Thomas Jollans writes: > 1. allocate a buffer of a certain size > 2. fill it > 3. return it as an array. The fastest and more robust approach (I'm aware of) is to use the array.array('typecode', [0]) * size idiom to efficiently preallocate the array, and then to get hold of the pointer pointing

Re: efficiently create and fill array.array from C code?

2010-06-14 Thread Thomas Jollans
On 06/14/2010 01:18 PM, Hrvoje Niksic wrote: > Thomas Jollans writes: > >> 1. allocate a buffer of a certain size >> 2. fill it >> 3. return it as an array. > > The fastest and more robust approach (I'm aware of) is to use the > array.array('typecode', [0]) * size idiom to efficiently preallocat

Re: getting up arrow in terminal to scroll thought history of python commands

2010-06-14 Thread Vincent Davis
On Sun, Jun 13, 2010 at 6:24 PM, Irmen de Jong wrote: > On 14-6-2010 1:19, Vincent Davis wrote: >> >> I just installed 2.6 and 3.1 from current maintenance source on Mac >> OSx. When I am running as an interactive terminal session the up arrow >> does not scroll thought the history of the py comma

Re: getting up arrow in terminal to scroll thought history of python commands

2010-06-14 Thread Thomas Jollans
On 06/14/2010 02:37 PM, Vincent Davis wrote: > On Sun, Jun 13, 2010 at 6:24 PM, Irmen de Jong > wrote: >> On 14-6-2010 1:19, Vincent Davis wrote: >>> >>> I just installed 2.6 and 3.1 from current maintenance source on Mac >>> OSx. When I am running as an interactive terminal session the up arrow

Re: WebBrowserProgramming [was: GUIs - A Modest Proposal]

2010-06-14 Thread lkcl
On Jun 13, 4:52 pm, a...@pythoncraft.com (Aahz) wrote: > In article , > > lkcl   wrote: > > > i'm recording all of these, and any other web browser manipulation > >technology that i've ever encountered, here: > > >http://wiki.python.org/moin/WebBrowserProgramming > > Neat!  Why aren't you including

biopython

2010-06-14 Thread madhuri vio
i cudnt run this!! and this was the error occured for seq_record in SeqIO.parse("ls_MTbH37Rv.fasta","fasta"): ... print seq_record.id ... print repr(seq_record.seq) ... print len(seq_record) ... Traceback (most recent call last): File "", line 1, in File "/var/lib/python-supp

Re: getting up arrow in terminal to scroll thought history of python commands

2010-06-14 Thread Vincent Davis
On Mon, Jun 14, 2010 at 6:49 AM, Thomas Jollans wrote: > On 06/14/2010 02:37 PM, Vincent Davis wrote: >> On Sun, Jun 13, 2010 at 6:24 PM, Irmen de Jong >> wrote: >>> On 14-6-2010 1:19, Vincent Davis wrote: I just installed 2.6 and 3.1 from current maintenance source on Mac OSx. Wh

Re: biopython

2010-06-14 Thread Thomas Jollans
On 06/14/2010 02:59 PM, madhuri vio wrote: > i cudnt run this!! Take a deep breath, and read the error message. It's very informative, and tells you exactly what the problem is, and how to fix it, if you'd just try to understand it. It would be much appreciated if you had a look at http://www

Re: C interpreter in Lisp/scheme/python

2010-06-14 Thread fortunatus
On Jun 13, 7:07 pm, bolega wrote: > I am trying to compare LISP/Scheme/Python for their expressiveness. > > For this, I propose a vanilla C interpreter. I have seen a book which > writes C interpreter in C. > > The criteria would be the small size and high readability of the code. > > Are there al

subprocess.Popen()/call() and appending file

2010-06-14 Thread hiral
Hi, Do we have any facility to append file from Popen()/call(); see below example... 1 import subprocess 2 f=open('log', 'w') 3 ...# writing some log-into into log file 4 p = subprocess.Popen(cmd, stdout=f, stderr=f) # (Q) 5 ...# do remaining stuff Q: At line# 4, the output of the 'cmd' will wip

subprocess.Popen()/call() and appending file

2010-06-14 Thread hiral
Hi, Do we have any facility to append file from Popen()/call(); see below example... 1 import subprocess 2 f=open('log', 'w') 3 ...# writing some log-into into log file 4 p = subprocess.Popen(cmd, stdout=f, stderr=f) # (Q) 5 ...# do remaining stuff Q: At line# 4, the output of the 'cmd' will wip

pyqt4 vs pygtk2 vs pyjamas (was: GUIs - A Modest Proposal)

2010-06-14 Thread lkcl
On Jun 13, 3:43 pm, Michael Torrie wrote: > On 06/13/2010 05:29 AM, lkcl wrote: > > >  really?  drat.  i could have done with knowing that at the time. > > hmmm, perhaps i will return to the pyqt4 port after all. > > We're now wandering well off-topic here, but then again this thread was > never r

biopython

2010-06-14 Thread madhuri vio
i have tried this still unable to get an output from Bio import Seq from Bio import SeqIO from Bio import SeqRecord for seq_record in SeqIO.read("ls_MTbH37Rv.fasta", "fasta"): print seq_record.id print repr(seq_record.seq) print len(seq_record) python bio.py Traceback (most recent ca

Re: Convert .doc to .pdf

2010-06-14 Thread Marco Nawijn
On 14 jun, 13:19, Thales wrote: > Good morning, > > I need to convert some files from .doc to .pdf. I've googled it a > little bit and all the solutions I've found used the OpenOffice API, > but I can't use it. > > Anybody knows a library that I can use to do it? > > Thanks What about using the w

Re: Python OpenSSL library

2010-06-14 Thread Antoine Pitrou
On Sun, 13 Jun 2010 14:13:32 -0700 geremy condra wrote: > On Sun, Jun 13, 2010 at 1:29 PM, astral > wrote: > > I am looking for Python OpenSSL library, for Python version 2.5.4 (on > > Windows) > > Which does not require to install Cygwin package. Need just to decrypt file, > > then uninstall lib

Re: subprocess.Popen()/call() and appending file

2010-06-14 Thread Kushal Kumaran
On Mon, Jun 14, 2010 at 7:01 PM, hiral wrote: > Hi, > > Do we have any facility to append file from Popen()/call(); see below > example... > > 1 import subprocess > 2 f=open('log', 'w') > 3 ...# writing some log-into into log file > 4 p = subprocess.Popen(cmd, stdout=f, stderr=f) # (Q) > 5 ...# do

Re: biopython

2010-06-14 Thread Mark Lawrence
On 14/06/2010 15:02, madhuri vio wrote: i have tried this still unable to get an output from Bio import Seq from Bio import SeqIO from Bio import SeqRecord for seq_record in SeqIO.read("ls_MTbH37Rv.fasta", "fasta"): print seq_record.id print repr(seq_record.seq) print len(seq_rec

Re: GUIs - A Modest Proposal

2010-06-14 Thread lkcl
On Jun 13, 2:34 pm, Stephen Hansen wrote: > On 6/13/10 4:29 AM, lkcl wrote: > > >  it's in fact how the entire pyjamas UI widget set is created, by > > doing nothing more than direct manipulation of bits of DOM and direct > > manipulation of the style properties.  really really simple. > > Did you

File descriptor to file object

2010-06-14 Thread Nathan Huesken
Hi, tempfile.mkstemp returns a file name and a file descriptor (as returned by os.open). Can I somehow convert this descriptor to a file object? Thanks! Nathan -- http://mail.python.org/mailman/listinfo/python-list

Re: File descriptor to file object

2010-06-14 Thread Thomas Jollans
On 06/14/2010 04:57 PM, Nathan Huesken wrote: > Hi, > > tempfile.mkstemp returns a file name and a file descriptor (as returned > by os.open). Can I somehow convert this descriptor to a file object? the builtin open function should work. http://docs.python.org/py3k/library/functions.html#open A

Re: getting up arrow in terminal to scroll thought history of python commands

2010-06-14 Thread Benjamin Kaplan
On Mon, Jun 14, 2010 at 6:09 AM, Vincent Davis wrote: > On Mon, Jun 14, 2010 at 6:49 AM, Thomas Jollans wrote: >> On 06/14/2010 02:37 PM, Vincent Davis wrote: >>> On Sun, Jun 13, 2010 at 6:24 PM, Irmen de Jong >>> wrote: On 14-6-2010 1:19, Vincent Davis wrote: > > I just installed

Re: getting up arrow in terminal to scroll thought history of python commands

2010-06-14 Thread Thomas Jollans
On 06/14/2010 03:09 PM, Vincent Davis wrote: > On Mon, Jun 14, 2010 at 6:49 AM, Thomas Jollans wrote: >> On 06/14/2010 02:37 PM, Vincent Davis wrote: >>> On Sun, Jun 13, 2010 at 6:24 PM, Irmen de Jong >>> wrote: On 14-6-2010 1:19, Vincent Davis wrote: > > I just installed 2.6 and 3.

Re: how to build with 2.4 having 2.6 as main python

2010-06-14 Thread Benjamin Kaplan
On Mon, Jun 14, 2010 at 3:09 AM, Alexzive wrote: > thanks guys, > > the solution for me was > > python2.4 setup.py install --prefix=/usr/local > > cheers, AZ > Don't do that! Like Steven said, you'll kill your system that way. Lots of programs in Linux use Python and those programs expect /usr/bi

Re: getting up arrow in terminal to scroll thought history of python commands

2010-06-14 Thread Thomas Jollans
>>> Anyway, make sure readline is installed, and then recompile Python. >> >> So I should run >> ./configure >> make install >> again? >> Will this overwrite other py packages I have installed? >> >> Vincent >> > > That should be > ./configure > make > make install > > You missed a rather importan

How to print via python on windows

2010-06-14 Thread loial
What is the easiest way to send a text file to a networked printer from a python script running on windows? -- http://mail.python.org/mailman/listinfo/python-list

biopython

2010-06-14 Thread madhuri vio
i am still waiting for some help. -- madhuri :) -- http://mail.python.org/mailman/listinfo/python-list

Will and Abe's "Guide to Pyjamas"

2010-06-14 Thread lkcl
>  oh look - there's a common theme, there: "web technology equals > useless" :) this is getting sufficiently ridiculous, i thought it best to summarise the discussions of the past few days, from the perspective of four-year-olds: http://pyjs.org/will_and_abe_guide_to_pyjamas.html l. -- http://

Re: How to print via python on windows

2010-06-14 Thread Tim Golden
On 14/06/2010 16:31, loial wrote: What is the easiest way to send a text file to a networked printer from a python script running on windows? http://timgolden.me.uk/python/win32_how_do_i/print.html TJG -- http://mail.python.org/mailman/listinfo/python-list

Re: biopython

2010-06-14 Thread Benjamin Kaplan
On Mon, Jun 14, 2010 at 8:45 AM, madhuri vio wrote: > > i am still waiting for some help. > -- > madhuri :) > You already have your help- the traceback tells you everything you need to know. If you don't understand what the traceback is saying, come back here and specifically ask about the p

Re: Convert .doc to .pdf

2010-06-14 Thread Thales
On 14 jun, 11:01, Marco Nawijn wrote: > On 14 jun, 13:19, Thales wrote: > > > Good morning, > > > I need to convert some files from .doc to .pdf. I've googled it a > > little bit and all the solutions I've found used the OpenOffice API, > > but I can't use it. > > > Anybody knows a library that I

Re: Will and Abe's "Guide to Pyjamas"

2010-06-14 Thread lkcl
On Jun 14, 3:53 pm, lkcl wrote: > this is getting sufficiently ridiculous, i thought it best to > summarise the discussions of the past few days, from the perspective > of four-year-olds: not, of course, to imply in _any way_, that anyone but myself on comp.lang.python is juvenile and/or delinq

Re: GUIs - A Modest Proposal

2010-06-14 Thread Stephen Hansen
On 6/14/10 7:15 AM, lkcl wrote: > On Jun 13, 2:34 pm, Stephen Hansen wrote: >> On 6/13/10 4:29 AM, lkcl wrote: >> >>> it's in fact how the entire pyjamas UI widget set is created, by >>> doing nothing more than direct manipulation of bits of DOM and direct >>> manipulation of the style properties

Re: biopython

2010-06-14 Thread Thomas Jollans
On 06/14/2010 05:45 PM, madhuri vio wrote: > > i am still waiting for some help. WHAT?! Your behaviour on this list is making me really, really angry. We are not a tech support company. You are not paying for the privilege of sending your mail here. However, Sir, you are acting as if you were

Re: Convert .doc to .pdf

2010-06-14 Thread Marco Nawijn
On 14 jun, 17:55, Thales wrote: > On 14 jun, 11:01, Marco Nawijn wrote: > > > > > > > On 14 jun, 13:19, Thales wrote: > > > > Good morning, > > > > I need to convert some files from .doc to .pdf. I've googled it a > > > little bit and all the solutions I've found used the OpenOffice API, > > > b

Re: Convert .doc to .pdf

2010-06-14 Thread Stephen Hansen
On 6/14/10 8:55 AM, Thales wrote: > Thanks for your help Marco, but it has to work on linux, not on > windows. Is possible to import this win32com on linux systems? How? You should include your full requirements when you originally ask :) That said... I think you're out of luck. Doc's are a prop

Re: Convert .doc to .pdf

2010-06-14 Thread Thomas Jollans
On 06/14/2010 01:19 PM, Thales wrote: > Good morning, > > I need to convert some files from .doc to .pdf. I've googled it a > little bit and all the solutions I've found used the OpenOffice API, > but I can't use it. > > Anybody knows a library that I can use to do it? Why can't you use OpenOffi

Re: biopython

2010-06-14 Thread Mark Lawrence
On 14/06/2010 16:45, madhuri vio wrote: i am still waiting for some help. You cheeky git, this is simply *NOT* cricket! Your 1st post was timed at 13:59 BST, the response from Thomas Jollans at 14:12. Your 2nd post was at 15:02 and I replied at 15:12. Now you're back again at 16:45, to

Is Scheme/LISP faster than C/C++

2010-06-14 Thread bolega
Quoting the following post :- I am looking for expert opinions http://groups.google.com/group/gnu.emacs.help/browse_thread/thread/54fb97d15b234d31# > Probably doesn't meet your intent, but this is a really impressive bit > of (whacky) art: Lisp runs faster than C. Once you get more time away fr

Re: Python OpenSSL library

2010-06-14 Thread geremy condra
On Mon, Jun 14, 2010 at 10:08 AM, Antoine Pitrou wrote: > On Sun, 13 Jun 2010 14:13:32 -0700 > geremy condra wrote: >> On Sun, Jun 13, 2010 at 1:29 PM, astral >> wrote: >> > I am looking for Python OpenSSL library, for Python version 2.5.4 (on >> > Windows) >> > Which does not require to install

Re: Is Scheme/LISP faster than C/C++

2010-06-14 Thread bolega
Sorry, I dont have access to the journal papers ... or I would do research myself. On Jun 14, 10:10 am, bolega wrote: > Quoting the following post :- > > I am looking for expert opinions > > http://groups.google.com/group/gnu.emacs.help/browse_thread/thread/54... > > > Probably doesn't meet your

Re: Python OpenSSL library

2010-06-14 Thread Antoine Pitrou
Le lundi 14 juin 2010 à 13:18 -0400, geremy condra a écrit : > >> > >> Evpy[1] is designed to be a very easy-to-use interface to OpenSSL, > >> although it is by design limited to doing things the right way, so it > >> may not meet your needs. > > > > How about contributing to the standard hashlib a

Re: Is Scheme/LISP faster than C/C++

2010-06-14 Thread Stephen Hansen
On 6/14/10 10:17 AM, bolega wrote: > Sorry, I dont have access to the journal papers ... or I would do > research myself. This has what to do with Python? -- Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io ... Blog: http://meh.ixokai.io/ signature.as

Re: Python OpenSSL library

2010-06-14 Thread John Nagle
On 6/13/2010 1:59 PM, Michael Crute wrote: On Sun, Jun 13, 2010 at 4:29 PM, astral wrote: I am looking for Python OpenSSL library, for Python version 2.5.4 (on Windows) Which does not require to install Cygwin package. Need just to decrypt file, then uninstall library. You might want to take

Re: Is Scheme/LISP faster than C/C++

2010-06-14 Thread nanothermite911fbibustards
On Jun 14, 10:17 am, bolega wrote: > Sorry, I dont have access to the journal papers ... or I would do > research myself. > > On Jun 14, 10:10 am, bolega wrote: > > > Quoting the following post :- > > > I am looking for expert opinions > > >http://groups.google.com/group/gnu.emacs.help/browse_thr

Re: getting up arrow in terminal to scroll thought history of python commands

2010-06-14 Thread Irmen de Jong
On 14-6-2010 15:09, Vincent Davis wrote: Anyway, make sure readline is installed, and then recompile Python. So I should run ./configure make install again? Will this overwrite other py packages I have installed? Vincent Often there is no need to run the configure script again if you're just

Re: Is Scheme/LISP faster than C/C++

2010-06-14 Thread fortunatus
For crying out loud, the best any compiler can do is make optimal machine language. Many C compilers can do that over most inputs. So can many Lisp compilers if you give the right type data. So it's a moot point. The only point to discuss would be that Scheme - in the R5 version of the spec at

Re: GUIs - A Modest Proposal

2010-06-14 Thread rantingrick
On Jun 14, 11:17 am, Stephen Hansen wrote: > And the recursive flow of the DOM is powerful This style of speaking reminds me of our former hillbilly president (no not Clinton, he was the eloquent hillbilly!) No i am referring to good old "George Dubya". He left us with so many juicy sound bites..

Re: Which is the best implementation of LISP family of languages for real world programming ?

2010-06-14 Thread nanothermite911fbibustards
On Jun 14, 8:29 am, t...@sevak.isi.edu (Thomas A. Russ) wrote: > Pascal Costanza writes: > > On 12/06/2010 19:36, bolega wrote: > > > Is there anything in this old > > > norvig book that makes it worth pursuing as a text ? > > > >http://norvig.com/paip.html > > > This "old" book by Peter Norvig is

Re: Is Scheme/LISP faster than C/C++

2010-06-14 Thread fortunatus
One point that might be interesting, you do include C++ in your post. Therefore some compare/contrast of C++ class member function invocation rate versus Lisp object method invocation rate might be meaningful. I'm sure if you Google back through comp.lang.lisp you will find plenty on it already. -

Re: Python OpenSSL library

2010-06-14 Thread geremy condra
On Mon, Jun 14, 2010 at 10:25 AM, Antoine Pitrou wrote: > Le lundi 14 juin 2010 à 13:18 -0400, geremy condra a écrit : >> >> >> >> Evpy[1] is designed to be a very easy-to-use interface to OpenSSL, >> >> although it is by design limited to doing things the right way, so it >> >> may not meet your

Re: How to print via python on windows

2010-06-14 Thread rantingrick
On Jun 14, 10:55 am, Tim Golden wrote: > On 14/06/2010 16:31, loial wrote: > > > What is the easiest way to send a text file to a networked printer > > from a python script running on windows? > >    http://timgolden.me.uk/python/win32_how_do_i/print.html Hello Tim, Thanks for posting this wond

Re: GUIs - A Modest Proposal

2010-06-14 Thread Ricardo Aráoz
On 14/06/2010 02:57 p.m., rantingrick wrote: On Jun 14, 11:17 am, Stephen Hansen wrote: And the recursive flow of the DOM is powerful This style of speaking reminds me of our former hillbilly president (no not Clinton, he was the eloquent hillbilly!) No i am referring to good old "Ge

Re: GUIs - A Modest Proposal

2010-06-14 Thread lkcl
On Jun 14, 4:17 pm, Stephen Hansen wrote: > >> Did you just call DOM manipulation simple with a straight face? I don't > >> think I've ever seen that before. > > >  *lol* - wait for it: see below.  summary: once you start using high- > > level widgets: yes.  without such, yeah you're damn right.

Re: Python OpenSSL library

2010-06-14 Thread Nobody
On Mon, 14 Jun 2010 10:43:02 -0700, John Nagle wrote: > The new SSL module in Python 2.6 There isn't an SSL module in Python 2.6. There is a module named "ssl" which pretends to implement SSL, but in fact doesn't. > is convenient, but insecure. In which case, it isn't actually convenient, i

Re: GUIs - A Modest Proposal

2010-06-14 Thread lkcl
On Jun 14, 5:57 pm, rantingrick wrote: > On Jun 14, 11:17 am, Stephen Hansen wrote: > > > And the recursive flow of the DOM is powerful > > This style of speaking reminds me of our former hillbilly president > (no not Clinton, he was the eloquent hillbilly!) the one with an IQ of 185? > No i a

Re: Python OpenSSL library

2010-06-14 Thread geremy condra
On Mon, Jun 14, 2010 at 11:47 AM, Nobody wrote: > On Mon, 14 Jun 2010 10:43:02 -0700, John Nagle wrote: > >>     The new SSL module in Python 2.6 > > There isn't an SSL module in Python 2.6. There is a module named "ssl" > which pretends to implement SSL, but in fact doesn't. > >> is convenient, b

Re: Which is the best implementation of LISP family of languages for real world programming ?

2010-06-14 Thread Pascal J. Bourguignon
"Antti \"Andy\" Ylikoski" writes: > 12.6.2010 22:54, Pascal J. Bourguignon kirjoitti: >> bolega writes: >>> [PAIP] >>> >>> Is there anything in this old norvig book that makes it worth >>> pursuing as a text ? >> >> Yes. >> > > I agree with his criticism that the book is "old", mine stems f

Re: File descriptor to file object

2010-06-14 Thread Robert Kern
On 6/14/10 9:57 AM, Nathan Huesken wrote: Hi, tempfile.mkstemp returns a file name and a file descriptor (as returned by os.open). Can I somehow convert this descriptor to a file object? Thomas Jollans' advice is likely best, but to answer your specific question, use os.fdopen() to make a fil

Re: a +b ?

2010-06-14 Thread Ian
On 14/06/2010 02:35, alex23 wrote: Python isn't PHP, its built-ins are nowhere near as exhaustive, something like 80ish vs 2000+ functions? Not exactly a huge lookup burden. The problem is not learning Python, its learning about the standard libraries that Python gives you access to! .NET

Re: GUIs - A Modest Proposal

2010-06-14 Thread lkcl
On Jun 14, 5:57 pm, rantingrick wrote: > I'll have to very much agree with this assessment Stephan. There > exists not elegant API for these "web" UI's. The people over at > SketchUp (my second love after python) have this problem on a daily > bases with WebDialogs. Even the javascript gurus have

setprocname

2010-06-14 Thread Tomasz Pajor
Hello, Why there is no setprocname function in standard library, or am I missing something? -- http://mail.python.org/mailman/listinfo/python-list

Re: setprocname

2010-06-14 Thread Grant Edwards
On 2010-06-14, Tomasz Pajor wrote: > Why there is no setprocname function in standard library, or am I > missing something? Dunno. Before we start guessing, would you care to explain what you think "setprocname" ought to do? -- Grant Edwards grant.b.edwardsYow! If I pul

Re: GUIs - A Modest Proposal

2010-06-14 Thread Stephen Hansen
On 6/14/10 11:47 AM, lkcl wrote: > On Jun 14, 4:17 pm, Stephen Hansen wrote: > yes. that's effectively what pyjs applications are about: as much > HTML/CSS as you can stand, then _absolute_ pure javascript from there- > on in... only using a compiler (python-to-javascript) so as not to go > comp

Re: setprocname

2010-06-14 Thread Thomas Jollans
On 06/14/2010 08:41 PM, Tomasz Pajor wrote: > Hello, > > Why there is no setprocname function in standard library, or am I > missing something? why should there be one? what should it do? This sounds like you expect there to be a wrapper of a C system call or other libc function called "setprocn

Re: a +b ?

2010-06-14 Thread Thomas Jollans
On 06/14/2010 09:15 AM, Steven D'Aprano wrote: > On Mon, 14 Jun 2010 12:24:59 +1000, Ben Finney wrote: > >> With ‘reduce’ gone in Python 3 [0] > ... >> [0] http://docs.python.org/py3k/library/functions.html> > > > It's not gone, it's just resting. It's pinin' for the fjords. (sorry ^^) > >

Re: GUIs - A Modest Proposal

2010-06-14 Thread Stephen Hansen
On 6/14/10 12:16 PM, lkcl wrote: > from thereon in, you DO NOT do *any* HTML page "GETs": it's a one- > time static HTML/JS load, and THAT's IT. > > the only further interaction that we recommend is first and foremost > JSONRPC (and so, out of the 30 or so pyjamas wiki pages, about 10 of > them

Re: Is Scheme/LISP faster than C/C++

2010-06-14 Thread Raymond Toy
On 6/14/10 1:53 PM, fortunatus wrote: > For crying out loud, the best any compiler can do is make optimal > machine language. Many C compilers can do that over most inputs. So Is that why I had to use assembly code instead of C for some parts of my previous projects? There was even one example

Re: setprocname

2010-06-14 Thread MRAB
Grant Edwards wrote: On 2010-06-14, Tomasz Pajor wrote: Why there is no setprocname function in standard library, or am I missing something? Dunno. Before we start guessing, would you care to explain what you think "setprocname" ought to do? I think it's to set the name of the OS process.

Standard Library SSL Module (was: Python OpenSSL library)

2010-06-14 Thread Michael Crute
On Mon, Jun 14, 2010 at 1:25 PM, Antoine Pitrou wrote: > That was not my question. My question was whether there was a reason to > rewrite a separate OpenSSL-accessing library rather than contributing to > improve the "hashlib" and "ssl" modules which are already part of the > Python stdlib. The

Re: Convert .doc to .pdf

2010-06-14 Thread Colin J. Williams
On 14-Jun-10 10:01 AM, Marco Nawijn wrote: On 14 jun, 13:19, Thales wrote: Good morning, I need to convert some files from .doc to .pdf. I've googled it a little bit and all the solutions I've found used the OpenOffice API, but I can't use it. Anybody knows a library that I can use to do it?

Re: How to print via python on windows

2010-06-14 Thread Tim Golden
On 14/06/2010 7:29 PM, rantingrick wrote: On Jun 14, 10:55 am, Tim Golden wrote: On 14/06/2010 16:31, loial wrote: What is the easiest way to send a text file to a networked printer from a python script running on windows? http://timgolden.me.uk/python/win32_how_do_i/print.html H

Re: GUIs - A Modest Proposal

2010-06-14 Thread lkcl
On Jun 14, 7:30 pm, Stephen Hansen wrote: > On 6/14/10 11:47 AM, lkcl wrote: > > > On Jun 14, 4:17 pm, Stephen Hansen wrote: > >  yes.  that's effectively what pyjs applications are about: as much > > HTML/CSS as you can stand, then _absolute_ pure javascript from there- > > on in... only using a

Re: setprocname

2010-06-14 Thread John Nagle
On 6/14/2010 12:31 PM, Thomas Jollans wrote: On 06/14/2010 08:41 PM, Tomasz Pajor wrote: Hello, Why there is no setprocname function in standard library, or am I missing something? why should there be one? what should it do? This sounds like you expect there to be a wrapper of a C system cal

Re: setprocname

2010-06-14 Thread Grant Edwards
On 2010-06-14, MRAB wrote: > Grant Edwards wrote: >> On 2010-06-14, Tomasz Pajor wrote: >> >>> Why there is no setprocname function in standard library, or am I >>> missing something? >> >> Dunno. Before we start guessing, would you care to explain what you >> think "setprocname" ought to do?

  1   2   >