PyTexas 2010 Call for Proposals

2010-06-14 Thread Brad Allen
PyTexas 2010, the fourth annual Python programming conference for Texas and the surrounding region, will take place Saturday August 28, 2010 at the Baylor University in Waco, Texas. A variety of activities are under consideration, including tutorials, scheduled talks, Lightning Talks, Open Spaces,

Re: file handling

2010-06-14 Thread James Mills
On Mon, Jun 14, 2010 at 3:35 PM, madhuri vio madhuri@gmail.com wrote: i have a doubt about ...this..can u look into this.. a = open(human.odt,r) b = a.readlines() print b and i get d output something else... python monday.py

file handling

2010-06-14 Thread madhuri vio
i am waiting for the reply..as ia m unable to proceed -- madhuri :) -- http://mail.python.org/mailman/listinfo/python-list

Re: file handling

2010-06-14 Thread Benjamin Kaplan
On Sun, Jun 13, 2010 at 10:35 PM, madhuri vio madhuri@gmail.com wrote: i have a doubt about ...this..can u look into this.. a = open(human.odt,r) b = a.readlines() print b and i get d output something else... python monday.py

Re: file handling

2010-06-14 Thread Cameron Simpson
On 14Jun2010 11:05, madhuri vio madhuri@gmail.com wrote: | i have a doubt about ...this..can u look into this.. | | a = open(human.odt,r) | b = a.readlines() | print b | | and i get d output something else... | | python monday.py |

Re: math.erfc OverflowError

2010-06-14 Thread D'Arcy J.M. Cain
On 13 Jun 2010 18:23:28 -0700 a...@pythoncraft.com (Aahz) wrote: What's your cite that URLs never end with a period? AFAIK, that's perfectly valid by the rules. Technically that may be true but when do you ever see one? If your email client discards trailing periods I think you can expect it

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 ben+pyt...@benfinney.id.au wrote: geremy condra debat...@gmail.com 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

Re: Community (A Modest Proposal)

2010-06-14 Thread rantingrick
On Jun 13, 12:45 pm, Terry Reedy tjre...@udel.edu 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*

Re: Python on Android Mobile?

2010-06-14 Thread geremy condra
On Mon, Jun 14, 2010 at 1:55 AM, Shashwat Anand anand.shash...@gmail.com 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 --

Re: what are some good python modules?

2010-06-14 Thread Ben Finney
Robin rob...@cnsp.com 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, URL:http://pypi.python.org/. For more specific advice, you'll need to tell us more about what your specific purpose

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 madhuri@gmail.com wrote: | On Mon, Jun 14, 2010 at 11:39 AM, Cameron Simpson c...@zip.com.au wrote: | ODT

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

Re: what are some good python modules?

2010-06-14 Thread James Mills
On Mon, Jun 14, 2010 at 5:02 PM, Robin rob...@cnsp.com 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

Re: Community (A Modest Proposal)

2010-06-14 Thread geremy condra
On Mon, Jun 14, 2010 at 3:07 AM, rantingrick rantingr...@gmail.com wrote: snip  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

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, bolegagnuist...@gmail.com 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

Re: Community (A Modest Proposal)

2010-06-14 Thread rantingrick
On Jun 14, 2:32 am, geremy condra debat...@gmail.com 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

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

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

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 zasaconsult...@gmail.com 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

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 zasaconsult...@gmail.com 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

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 Python

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 pywi...@gmail.com 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

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 st...@remove-this- cybersource.com.au 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

Re: C interpreter in Lisp/scheme/python

2010-06-14 Thread Albert van der Horst
In article e1aa09cd-3bcd-4e9b-8f4c-e307a1424...@a2g2000prd.googlegroups.com, bolega gnuist...@gmail.com 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

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

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

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
answering the OP - didn't show up on c.l.py On Sun, Jun 13, 2010 at 4:07 PM, bolega gnuist...@gmail.com 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

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 st...@remove-this-cybersource.com.au 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()

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

2010-06-14 Thread Hrvoje Niksic
Thomas Jollans tho...@jollans.com 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

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 tho...@jollans.com 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

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 irmen-nosp...@xs4all.nl 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

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 irmen-nosp...@xs4all.nl 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

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 cf08e777-b98b-4b7c-96df-e7b127c02...@y4g2000yqy.googlegroups.com, lkcl  luke.leigh...@gmail.com wrote: i'm recording all of these, and any other web browser manipulation technology that i've ever encountered, here:

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 stdin, line 1, in module File

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 tho...@jollans.com wrote: On 06/14/2010 02:37 PM, Vincent Davis wrote: On Sun, Jun 13, 2010 at 6:24 PM, Irmen de Jong irmen-nosp...@xs4all.nl wrote: On 14-6-2010 1:19, Vincent Davis wrote: I just installed 2.6 and 3.1 from current maintenance

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

Re: C interpreter in Lisp/scheme/python

2010-06-14 Thread fortunatus
On Jun 13, 7:07 pm, bolega gnuist...@gmail.com 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.

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

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

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

2010-06-14 Thread lkcl
On Jun 13, 3:43 pm, Michael Torrie torr...@gmail.com 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

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 call

Re: Convert .doc to .pdf

2010-06-14 Thread Marco Nawijn
On 14 jun, 13:19, Thales thales@gmail.com 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

Re: Python OpenSSL library

2010-06-14 Thread Antoine Pitrou
On Sun, 13 Jun 2010 14:13:32 -0700 geremy condra debat...@gmail.com wrote: On Sun, Jun 13, 2010 at 1:29 PM, astral ast...@news.eternal-september.org 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

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

2010-06-14 Thread Kushal Kumaran
On Mon, Jun 14, 2010 at 7:01 PM, hiral hiralsmaill...@gmail.com 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) #

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

Re: GUIs - A Modest Proposal

2010-06-14 Thread lkcl
On Jun 13, 2:34 pm, Stephen Hansen me+list/pyt...@ixokai.io 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

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

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 vinc...@vincentdavis.net wrote: On Mon, Jun 14, 2010 at 6:49 AM, Thomas Jollans tho...@jollans.com wrote: On 06/14/2010 02:37 PM, Vincent Davis wrote: On Sun, Jun 13, 2010 at 6:24 PM, Irmen de Jong irmen-nosp...@xs4all.nl wrote: On 14-6-2010

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 tho...@jollans.com wrote: On 06/14/2010 02:37 PM, Vincent Davis wrote: On Sun, Jun 13, 2010 at 6:24 PM, Irmen de Jong irmen-nosp...@xs4all.nl wrote: On 14-6-2010 1:19, Vincent Davis wrote: I just

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 zasaconsult...@gmail.com 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

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 important step. Makefiles being

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

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 madhuri@gmail.com 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

Re: Convert .doc to .pdf

2010-06-14 Thread Thales
On 14 jun, 11:01, Marco Nawijn naw...@gmail.com wrote: On 14 jun, 13:19, Thales thales@gmail.com 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

Re: Will and Abe's Guide to Pyjamas

2010-06-14 Thread lkcl
On Jun 14, 3:53 pm, lkcl luke.leigh...@gmail.com 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

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 me+list/pyt...@ixokai.io 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

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 thales@gmail.com wrote: On 14 jun, 11:01, Marco Nawijn naw...@gmail.com wrote: On 14 jun, 13:19, Thales thales@gmail.com 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

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

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

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,

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

Re: Python OpenSSL library

2010-06-14 Thread geremy condra
On Mon, Jun 14, 2010 at 10:08 AM, Antoine Pitrou solip...@pitrou.net wrote: On Sun, 13 Jun 2010 14:13:32 -0700 geremy condra debat...@gmail.com wrote: On Sun, Jun 13, 2010 at 1:29 PM, astral ast...@news.eternal-september.org wrote: I am looking for Python OpenSSL library, for Python version

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 gnuist...@gmail.com wrote: Quoting the following post :- I am looking for expert opinions http://groups.google.com/group/gnu.emacs.help/browse_thread/thread/54... Probably

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 and ssl modules?

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

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 ast...@news.eternal-september.org 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

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

2010-06-14 Thread nanothermite911fbibustards
On Jun 14, 10:17 am, bolega gnuist...@gmail.com wrote: Sorry, I dont have access to the journal papers ... or I would do research myself. On Jun 14, 10:10 am, bolega gnuist...@gmail.com wrote: Quoting the following post :- I am looking for expert opinions

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

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 me+list/pyt...@ixokai.io 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

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 p...@p-cos.net 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 solip...@pitrou.net 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

Re: How to print via python on windows

2010-06-14 Thread rantingrick
On Jun 14, 10:55 am, Tim Golden m...@timgolden.me.uk 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

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 Hansenme+list/pyt...@ixokai.io 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

Re: GUIs - A Modest Proposal

2010-06-14 Thread lkcl
On Jun 14, 4:17 pm, Stephen Hansen me+list/pyt...@ixokai.io 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

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

Re: GUIs - A Modest Proposal

2010-06-14 Thread lkcl
On Jun 14, 5:57 pm, rantingrick rantingr...@gmail.com wrote: On Jun 14, 11:17 am, Stephen Hansen me+list/pyt...@ixokai.io 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!)

Re: Python OpenSSL library

2010-06-14 Thread geremy condra
On Mon, Jun 14, 2010 at 11:47 AM, Nobody nob...@nowhere.com 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

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 antti.yliko...@gmail.com writes: 12.6.2010 22:54, Pascal J. Bourguignon kirjoitti: bolegagnuist...@gmail.com 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,

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

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 rantingr...@gmail.com 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

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 ni...@puffy.pl 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.edwards

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 me+list/pyt...@ixokai.io 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)

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

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] URL: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 involve

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 ni...@puffy.pl 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

  1   2   3   >