Pyro 4.0 released

2010-06-13 Thread Irmen de Jong
Pyro 4.0 - I'm extremely pleased to announce the release of Pyro 4.0! This is the first official release of the new incarnation of Pyro. What is Pyro? - PYthon Remote Objects provides a very easy way of remote communication between python objects somewhere in a network. It

Re: safer ctype? (was GUIs - A modest Proposal)

2010-06-13 Thread Stephen Hansen
On 6/12/10 8:26 PM, Gregory Ewing wrote: On Jun 12, 6:05 pm, Stephen Hansen me+list/pyt...@ixokai.io wrote: A programming goof, oversight or unexpected event causes an exception. It doesn't cause a buffer overflow. The important thing here isn't so much the exception as the *traceback*.

Re: safer ctype? (was GUIs - A modest Proposal)

2010-06-13 Thread Stephen Hansen
On 6/12/10 8:42 PM, Gregory Ewing wrote: Stephen Hansen wrote: Its one thing for Python to make available foot-shooting tools(this is good! I love ctypes, with care) for the developer, its another thing entirely for it to shoot at the ground in the normal course of its operation and hope it

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

2010-06-13 Thread Antti Andy Ylikoski
13.6.2010 7:02, Antti Andy Ylikoski kirjoitti: 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, mine stems

Re: GUIs - A Modest Proposal

2010-06-13 Thread Stephen Hansen
On 6/12/10 8:34 PM, Gregory Ewing wrote: lkcl wrote: * in neither gtk nor qt does there exist an auto-layout widget that's equivalent to putting some span / DOM objects into a div /, to flow widgets that wrap around. You essentially seem to be complaining here that pqyqt and pygtk are

Re: GUIs - A Modest Proposal

2010-06-13 Thread Stephen Hansen
On 6/12/10 8:22 PM, Gregory Ewing wrote: Terry Reedy wrote: Would it be possible to write a program that converts a module that uses ctypes to interface to a dll to a corresponding C extension program that would compile to a drop in replacement extension module? Probably, but I don't see

Re: Community (A Modest Proposal)

2010-06-13 Thread Stephen Hansen
I call bullshit. The Python community is vibrant, accessible, and willing to endure far more then anyone has any right to expect when people come to it for help. The community seems willing to explain fundamental concepts to newbies over, and over, and over again; to go out of their way, time

Re: Community (A Modest Proposal)

2010-06-13 Thread Stephen Hansen
On 6/12/10 10:10 PM, Cameron Simpson wrote: Python advocacy seems to be by example, not cheerleading. +1 QOTW -- Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io ... Blog: http://meh.ixokai.io/ signature.asc Description: OpenPGP digital signature --

Re: GUIs - A Modest Proposal

2010-06-13 Thread Jeremy Sanders
lkcl wrote: * in neither gtk nor qt does there exist an auto-layout widget that's equivalent to putting some span / DOM objects into a div /, to flow widgets that wrap around. yes, you can put words into a Label and get them to flow, but not _widgets_. I'm pretty sure in PyQt4 that you can

Re: Community (A Modest Proposal)

2010-06-13 Thread Martin P. Hellwig
snip all At first I wanted to response in the style of 'karma is a bitch' or 'what goes around comes around' but then I considered that won't be helping much, so I only did at first in a meta sort of way, sorry for that. The thing is that sometimes for no good or appealing reasons, which I

Re: Re: Deformed Form

2010-06-13 Thread Dave Angel
Victor Subervi wrote: snip DaveA suggested I not use the same name for my fn. as I do for my var; however, there is a difference in capitalization, and I'm trying to standardize this way. It makes it easy to recognize the difference (caps) and easy to recognize which vars go with which fns.

Re: GUIs - A Modest Proposal

2010-06-13 Thread lkcl
On Jun 13, 3:34 am, Gregory Ewing greg.ew...@canterbury.ac.nz wrote: lkcl wrote:  * in neither gtk nor qt does there exist an auto-layout widget that's equivalent to putting some span / DOM objects into a div /, to flow widgets that wrap around. You essentially seem to be complaining here

Re: GUIs - A Modest Proposal

2010-06-13 Thread lkcl
On Jun 13, 9:01 am, Jeremy Sanders jeremy +complangpyt...@jeremysanders.net wrote: lkcl wrote:  * in neither gtk nor qt does there exist an auto-layout widget that's equivalent to putting some span / DOM objects into a div /, to flow widgets that wrap around.  yes, you can put words into a

Re: Community (*sigh*)

2010-06-13 Thread Thomas Jollans
You want to contribute to the stdlib? No problem, it's easy! I did so recently. You file an issue on the python.org bug tracker, describing the problem, and attach a patch that fixes it. A nice developer with commit rights will be with you shortly. The guy that committed my tiny little patch the

Re: What's a good XSL to translate xmlrunner.py output into a test report?

2010-06-13 Thread Stefan Behnel
Phlip, 06.06.2010 19:12: Here's xmlrunner.py: http://www.rittau.org/python/xmlrunner.py you attach it to your developer tests, and it emits a file called TEST-unittest.TestSuite.xml, containing auspicious wackiness like this: testcase

Re: Issue with xml iterparse

2010-06-13 Thread Stefan Behnel
bfrederi, 03.06.2010 22:44: I am using lxml iterparse and running into a very obscure error. When I run iterparse on a file, it will occasionally return an element that has a element.text == None when the element clearly has text in it. I assume you are referring to the 'start' event here,

Re: Printing forms and labels in Python

2010-06-13 Thread Mel
Monte Milanuk wrote: I realized today that one thing I have never seen covered in any Python tutorial is how to format and print things to a physical printer. I did a little bit of searching and didn't come up with much... either I'm really not using the right search terms, or physical

Mark built-in module as deprecated

2010-06-13 Thread moerchendiser2k3
Hi, can anyone give me a hint how to mark a built-in module as deprecated? So mark via warnings... I create a module with Py_InitModule4. Thanks in advance!! Bye, moerchendiser2k3 -- http://mail.python.org/mailman/listinfo/python-list

Re: Community (*sigh*)

2010-06-13 Thread John Bokma
Thomas Jollans tho...@jollans.com writes: Also, I'm sick of reading a modest proposal in hundreds of subject lines. OK, how about a modest proposal in the body? Please do not top post. Or at least don't quote a very, very long article. Thank you. -- John Bokma

Re: Mark built-in module as deprecated

2010-06-13 Thread Thomas Jollans
On 06/13/2010 03:54 PM, moerchendiser2k3 wrote: Hi, can anyone give me a hint how to mark a built-in module as deprecated? So mark via warnings... I create a module with Py_InitModule4. How are modules ever marked as deprecated? I think all there is to it is issuing a DeprecationWarning...

Re: Printing forms and labels in Python

2010-06-13 Thread jfabiani
Monte Milanuk wrote: Hello, I'm still a relative newbie to python, so I apologize if this is covered in detail somewhere and I missed it. I have a program or two that I want to work on once I get more proficient with python and sqlite and tkinter/wxpython. One of the big 'features' of

Re: GUIs - A Modest Proposal

2010-06-13 Thread Stephen Hansen
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 just call DOM manipulation simple with a straight face? I

Re: Deformed Form

2010-06-13 Thread Stephen Hansen
On 6/12/10 12:50 PM, Dennis Lee Bieber wrote: On Sat, 12 Jun 2010 14:42:27 -0400, Victor Subervi victorsube...@gmail.com declaimed the following in gmane.comp.python.general: Interestingly, ls -al reveals *no* *.pyc files. Which would seem to indicate that you have no user modules

Re: Printing forms and labels in Python

2010-06-13 Thread Joel Goldstick
Monte Milanuk wrote: Hello, I'm still a relative newbie to python, so I apologize if this is covered in detail somewhere and I missed it. I have a program or two that I want to work on once I get more proficient with python and sqlite and tkinter/wxpython. One of the big 'features' of

Re: GUIs - A Modest Proposal

2010-06-13 Thread Michael Torrie
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 really on any particular topic. I have to say I'm really

Re: Community (A Modest Proposal)

2010-06-13 Thread rantingrick
On Jun 13, 5:04 am, Martin P. Hellwig martin.hell...@dcuktec.org wrote: So I would propose that, instead of beating up a dead horse (I try to write from your point of view) you fork the project, call it Rython (or whatever you fancy) and create the community you want by patching up the

Re: GUIs - A Modest Proposal

2010-06-13 Thread Arndt Roger Schneider
lkcl schrieb: [snip] it's the exact same thing for SVG image file-format. i'm _definitely_ not convinced that SVG the image fileformat is The One True Way to design images - but i'm equally definitely convinced of the power of SVG manipulation libraries which allow for the creation SVG images

Re: Community (A Modest Proposal)

2010-06-13 Thread rantingrick
On Jun 13, 1:50 am, Stephen Hansen me+list/pyt...@ixokai.io wrote: You don't argue a position; you don't support it with facts, logic, reason. You start immediately into this emotional rhetoric, pseudo-inspirational nonsense which just comes off as inane. It's like a bad cross between a

Re: a +b ?

2010-06-13 Thread alex23
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() print(int(t[0]) + int(t[1])) # no need for temporary variables a and b Not that we're playing a

Re: Community (A Modest Proposal)

2010-06-13 Thread Zeth
On Jun 13, 4:09 am, rantingrick rantingr...@gmail.com wrote:  Where is the community? In Birmingham from 17th to 22nd of July: http://www.europython.eu/talks/timetable/ (Couldn't resist - one good troll deserves another) -- http://mail.python.org/mailman/listinfo/python-list

Re: introducing Lettuce, BDD tool for python with Django integration

2010-06-13 Thread Aahz
In article 83dddac7-7a3a-4dee-9944-ee2f0ec72...@u20g2000pru.googlegroups.com, alex23 wuwe...@gmail.com wrote: Tycho Andersen ty...@tycho.ws wrote: I think his point may have been that there could be more than one meaning. My first guess would have been binary decision diagram. Ah, good point.

Re: Printing forms and labels in Python

2010-06-13 Thread Monte Milanuk
On 6/13/10 8:00 AM, Joel Goldstick wrote: Why not go the other direction. Use python to do your processing, and send the results to excel. There are python modules that read and write excel files. Well... partly because Excel is not exactly cross-platform. Granted, the mass majority of

Re: how to get a reference to the __main__ module

2010-06-13 Thread Aahz
In article hun8s4$h4...@news.albasani.net, WH whz...@gmail.com wrote: 'x' in getattr() should be a reference to the __main__ module, right? How to get it? Just for the record, the best way to get a reference to __main__ is to import it: import __main__ -- Aahz (a...@pythoncraft.com)

Re: Community (A Modest Proposal)

2010-06-13 Thread Aahz
In article 0912f443-e83a-4436-80db-b1cb915d5...@r27g2000yqb.googlegroups.com, Zeth theol...@gmail.com wrote: On Jun 13, 4:09=A0am, rantingrick rantingr...@gmail.com wrote: Where is the community? In Birmingham from 17th to 22nd of July: http://www.europython.eu/talks/timetable/ (Couldn't

Re: a +b ?

2010-06-13 Thread exarkun
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() print(int(t[0]) + int(t[1])) # no need for temporary

Re: math.erfc OverflowError

2010-06-13 Thread Aahz
In article mailman.1348.1276386991.32709.python-l...@python.org, geremy condra debat...@gmail.com wrote: Bug filed, http://bugs.python.org/issue8986. Please don't put extraneous punctuation on URLs. That period is a valid URL character, but it's invalid for this URL, and it's not obvious to

Re: safer ctype? (was GUIs - A modest Proposal)

2010-06-13 Thread Terry Reedy
On 6/12/2010 11:42 PM, Gregory Ewing wrote: Seriously, though, if you can't trust someone to write safe ctypes-using code, can you trust them to write safe C code any better? No, and I think you are missing the concern about ctypes. There are two issues of ctypes versus safety/security:

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

2010-06-13 Thread Aahz
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: http://wiki.python.org/moin/WebBrowserProgramming Neat! Why aren't

Re: GUIs - A Modest Proposal

2010-06-13 Thread lkcl
On Jun 13, 3:52 pm, Arndt Roger Schneider arndt.ro...@addcom.de wrote: lkcl schrieb: [snip] it's the exact same thing for SVG image file-format.  i'm _definitely_ not convinced that SVG the image fileformat is The One True Way to design images - but i'm equally definitely convinced of

Re: Community (*sigh*)

2010-06-13 Thread Terry Reedy
On 6/13/2010 7:40 AM, Thomas Jollans wrote: You want to contribute to the stdlib? No problem, it's easy! I did so recently. You file an issue on the python.org bug tracker, describing the problem, and attach a patch that fixes it. A nice developer with commit rights will be with you shortly.

efficiently create and fill array.array from C code?

2010-06-13 Thread Thomas Jollans
Hi, I'm writing some buffer-centric number-crunching routines in C for Python code that uses array.array objects for storing/manipulating data. I would like to: 1. allocate a buffer of a certain size 2. fill it 3. return it as an array. I can't see any obvious way to do this with the array

Re: Community (A Modest Proposal)

2010-06-13 Thread Stephen Hansen
On 6/13/10 9:14 AM, rantingrick wrote: On Jun 13, 1:50 am, Stephen Hansen me+list/pyt...@ixokai.io wrote: You don't argue a position; you don't support it with facts, logic, reason. You start immediately into this emotional rhetoric, pseudo-inspirational nonsense which just comes off as

Re: GUIs - A Modest Proposal

2010-06-13 Thread Terry Reedy
On 6/13/2010 7:20 AM, lkcl wrote: I'm far from convinced that HTML and CSS are the One True Way to design GUIs these days, if you have HTML the fileformat and CSS the fileformat in mind when saying that, i can tell you right now that they're not. fortunately, with the W3C DOM functions

Re: Community (A Modest Proposal)

2010-06-13 Thread Stephen Hansen
On 6/13/10 8:42 AM, rantingrick wrote: However, if the ivory towers continue to pretend that the rest of the Python community does not exist well then they will force my hand, and i will start a fork. Then we will have a sort of ironic situation... the very people who rail *against* me (and

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

2010-06-13 Thread Stephen Hansen
On 6/13/10 10:15 AM, Thomas Jollans wrote: Hi, I'm writing some buffer-centric number-crunching routines in C for Python code that uses array.array objects for storing/manipulating data. I would like to: Take this with a grain of salt: I am *not* a C programmer, and my usage of the

Re: Printing forms and labels in Python

2010-06-13 Thread Diez B . Roggisch
Monte Milanuk memila...@gmail.com wrote: On 6/13/10 8:00 AM, Joel Goldstick wrote: Why not go the other direction. Use python to do your processing, and send the results to excel. There are python modules that read and write excel files. Well... partly because Excel is not exactly

Re: Community (A Modest Proposal)

2010-06-13 Thread Terry Reedy
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* nothing is wrong with it Perhaps you are listening selectively. I

Re: Community (A Modest Proposal)

2010-06-13 Thread Steven D'Aprano
On Sun, 13 Jun 2010 08:42:57 -0700, rantingrick wrote: i will start a fork. That is the most sensible thing you have said yet. Please do so, it will be a great thing for the Python community. -- Steven -- http://mail.python.org/mailman/listinfo/python-list

Re: Community (A Modest Proposal)

2010-06-13 Thread Someone Something
Here's the thing. Python has one of the nicest communities of most software projects (except maybe ubuntu), try Perl or C. Unless you completely know what you're talking about, have spent atleast 1/2 an hour researching your problem, those guys will refrain from helping. On Sun, Jun 13, 2010 at

Re: Printing forms and labels in Python

2010-06-13 Thread Monte Milanuk
On 6/13/10 10:23 AM, Diez B. Roggisch wrote: However, the overall problem here is that printer APIs are very different between os and they aren't abstracted in python to some common module. They need access to GUI libraries which python doesn't expose out of the box. I know the usual response

Re: Printing forms and labels in Python

2010-06-13 Thread Anssi Saari
Monte Milanuk memila...@gmail.com writes: Hello, I'm still a relative newbie to python, so I apologize if this is covered in detail somewhere and I missed it. I have a program or two that I want to work on once I get more proficient with python and sqlite and tkinter/wxpython. One of the

Colour TIFF support (PIL or otherwise)

2010-06-13 Thread Hans Georg Schaathun
Does anyone know how to handle TIFF images in Python? The pylab support uses PIL, and using either pylab or PIL directly, it messes up the colour scheme. It may look as if it loads CMY believing that it is RGB, but I am not absolutely sure. I have no problem handling Microsoft BMP colour images

Re: GUIs - A Modest Proposal

2010-06-13 Thread Mark Lawrence
On 12/06/2010 14:44, lkcl wrote: On Jun 6, 10:49 pm, Kevin Walzerk...@codebykevin.com wrote: - Pythonic - The default GUI (so it replaces Tkinter) - It has the support of the majority of the Python community - Simple and obvious to use for simple things - Comprehensive, for complicated things

Re: Community (A Modest Proposal)

2010-06-13 Thread David Robinow
On Sun, Jun 13, 2010 at 1:57 PM, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: On Sun, 13 Jun 2010 08:42:57 -0700, rantingrick wrote: i will start a fork. That is the most sensible thing you have said yet. Please do so, it will be a great thing for the Python community.

Re: Printing forms and labels in Python

2010-06-13 Thread Joel Goldstick
Monte Milanuk wrote: Hello, I'm still a relative newbie to python, so I apologize if this is covered in detail somewhere and I missed it. I have a program or two that I want to work on once I get more proficient with python and sqlite and tkinter/wxpython. One of the big 'features' of

Re: Printing forms and labels in Python

2010-06-13 Thread Monte Milanuk
On 6/13/10 11:12 AM, Anssi Saari wrote: I actually looked into label printers recently. It seems that at least the cheaper models from Brother and Dymo accept a bitmap in specific dimensions and they print it pixel exactly. Very simple, in other words. But different printers need different

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

2010-06-13 Thread Stefan Behnel
Thomas Jollans, 13.06.2010 19:15: I'm writing some buffer-centric number-crunching routines in C for Python code that uses array.array objects for storing/manipulating data. I would like to: 1. allocate a buffer of a certain size 2. fill it 3. return it as an array. Take a look at a) NumPy

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

2010-06-13 Thread Stephen Hansen
On 6/13/10 11:41 AM, Stefan Behnel wrote: Take a look at a) NumPy and b) Cython. You can also use Cython with the array module, but NumPy is a much more common way to deal with number crunching routines, especially multi-dimentional arrays. Does Cython support Py3k yet? The OP seemed to be

Re: Community (A Modest Proposal)

2010-06-13 Thread Mark Lawrence
On 13/06/2010 18:24, Stephen Hansen wrote: On 6/13/10 8:42 AM, rantingrick wrote: [big snip] Stephen, you've tried as have others with this troll, but you're wasting your time. As I said a day or two back by paraphrasing Tommy Docherty, Ranting Rick is to Python what King Herod was to baby

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

2010-06-13 Thread Stefan Behnel
Stephen Hansen, 13.06.2010 21:05: On 6/13/10 11:41 AM, Stefan Behnel wrote: Take a look at a) NumPy and b) Cython. You can also use Cython with the array module, but NumPy is a much more common way to deal with number crunching routines, especially multi-dimentional arrays. Does Cython

Re: Printing forms and labels in Python

2010-06-13 Thread Monte Milanuk
On 6/13/10 11:30 AM, Joel Goldstick wrote: Use django or another web framework, and make your application a web app. With this approach you can display output to a web page, and create a print stylesheet that can be finely tuned to print. This ups your work to get involved with a web

Re: Printing forms and labels in Python

2010-06-13 Thread rantingrick
On Jun 13, 1:13 pm, Monte Milanuk memila...@gmail.com wrote: On 6/13/10 10:23 AM, Diez B. Roggisch wrote: However, the overall problem here is that printer APIs are very different between os and they aren't abstracted in python to some common module. They need access to GUI libraries which

Re: Community (A Modest Proposal)

2010-06-13 Thread Stephen Hansen
On 6/13/10 12:08 PM, Mark Lawrence wrote: On 13/06/2010 18:24, Stephen Hansen wrote: On 6/13/10 8:42 AM, rantingrick wrote: [big snip] Stephen, you've tried as have others with this troll, but you're wasting your time. Realistically, I know. However, http://xkcd.com/386/ currently has a

Re: Printing forms and labels in Python

2010-06-13 Thread Benjamin Kaplan
On Sun, Jun 13, 2010 at 12:25 PM, Monte Milanuk memila...@gmail.com wrote: On 6/13/10 11:30 AM, Joel Goldstick wrote: Use django or another web framework, and make your application a web app.  With this approach you can display output to a web page, and create a print stylesheet that can be

Re: math.erfc OverflowError

2010-06-13 Thread Mark Dickinson
On Jun 13, 12:56 am, geremy condra debat...@gmail.com wrote: On Sat, Jun 12, 2010 at 4:40 PM, Robert Kern robert.k...@gmail.com wrote: On 2010-06-12 17:49 , geremy condra wrote: In Python3.2, calling math.erfc with a value in [-27.2, -30) raises an OverflowError: math range error. This is

Re: Community (A Modest Proposal)

2010-06-13 Thread Alf P. Steinbach
* Steven D'Aprano, on 13.06.2010 19:57: On Sun, 13 Jun 2010 08:42:57 -0700, rantingrick wrote: i will start a fork. That is the most sensible thing you have said yet. Please do so, it will be a great thing for the Python community. Not nice to quote out of context, there was an if and a

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

2010-06-13 Thread Robert Kern
On 2010-06-13 14:17 , Stefan Behnel wrote: Stephen Hansen, 13.06.2010 21:05: On 6/13/10 11:41 AM, Stefan Behnel wrote: Take a look at a) NumPy and b) Cython. You can also use Cython with the array module, but NumPy is a much more common way to deal with number crunching routines, especially

Python OpenSSL library

2010-06-13 Thread astral
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. -- http://mail.python.org/mailman/listinfo/python-list

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

2010-06-13 Thread Martin
On Jun 13, 6:15 pm, Thomas Jollans tho...@jollans.com wrote: Hi, I'm writing some buffer-centric number-crunching routines in C for Python code that uses array.array objects for storing/manipulating data. I would like to: 1. allocate a buffer of a certain size 2. fill it 3. return it as

Python on Android Mobile?

2010-06-13 Thread Anthony Papillion
I know Python is growing in popularity and some of Palms devices already let you run Python apps in a VM environment. I'm wondering if anyone knows (or can make an educated guess) if there are any plans for Python to come to the Android environment? I'm not talking backend stuff here but full

Re: a +b ?

2010-06-13 Thread Martin
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: Python OpenSSL library

2010-06-13 Thread Michael Crute
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 library. You might want to take a look at

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

2010-06-13 Thread nanothermite911fbibustards
On Jun 12, 9:02 pm, Antti \Andy\ Ylikoski antti.yliko...@gmail.com wrote: 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

Re: Community (A Modest Proposal)

2010-06-13 Thread Anthony Papillion
Why was the reaction so negative? Well i will admit some fault in the fact that i trashed Ruby pretty bad. I felt everything i said was true IMO then as is now (mostly). People should have a right to opinions. However since i was such an unknown and you could say a newbie, was this reaction

Re: Python on Android Mobile?

2010-06-13 Thread geremy condra
On Sun, Jun 13, 2010 at 1:39 PM, Anthony Papillion papill...@gmail.com wrote: I know Python is growing in popularity and some of Palms devices already let you run Python apps in a VM environment.  I'm wondering if anyone knows (or can make an educated guess) if there are any plans for Python

Re: Python OpenSSL library

2010-06-13 Thread geremy condra
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 just to decrypt file, then uninstall library. Evpy[1] is designed to be a very

Re: Python on Android Mobile?

2010-06-13 Thread Simon Brunning
On 13 June 2010 21:39, Anthony Papillion papill...@gmail.com wrote: I know Python is growing in popularity and some of Palms devices already let you run Python apps in a VM environment.  I'm wondering if anyone knows (or can make an educated guess) if there are any plans for Python to come to

Re: Python OpenSSL library

2010-06-13 Thread astral
Michael Crute mcr...@gmail.com wrote in message news:mailman.1395.1276462801.32709.python-l...@python.org... 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

Re: Python OpenSSL library

2010-06-13 Thread Michael Crute
On Sun, Jun 13, 2010 at 5:59 PM, astral ast...@news.eternal-september.org wrote: You might want to take a look at m2crypto[0]. While I have not personally run it on Windows (runs great on OS X and Linux) they do provide pre-compiled Windows binaries. which one is for windows, for Python

Re: Python OpenSSL library

2010-06-13 Thread Stephen Hansen
On 6/13/10 2:59 PM, astral wrote: which one is for windows, for Python version 2.5.4 ? And how to uninstall when required? You can try http://www.egenix.com/products/python/pyOpenSSL/ -- its fairly low-level OpenSSL, but its pretty comprehensive. And you uninstall it in Add Remove

Re: Deformed Form

2010-06-13 Thread Ethan Furman
Stephen Hansen wrote: On 6/12/10 12:50 PM, Dennis Lee Bieber wrote: On Sat, 12 Jun 2010 14:42:27 -0400, Victor Subervi victorsube...@gmail.com declaimed the following in gmane.comp.python.general: Interestingly, ls -al reveals *no* *.pyc files. Which would seem to indicate that

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

2010-06-13 Thread geremy condra
On Sun, Jun 13, 2010 at 1:20 PM, Robert Kern robert.k...@gmail.com wrote: On 2010-06-13 14:17 , Stefan Behnel wrote: Stephen Hansen, 13.06.2010 21:05: On 6/13/10 11:41 AM, Stefan Behnel wrote: Take a look at a) NumPy and b) Cython. You can also use Cython with the array module, but NumPy

Re: Deformed Form

2010-06-13 Thread Stephen Hansen
On 6/13/10 3:19 PM, Ethan Furman wrote: I thought python (well, cpython, at least) didn't use .pyc files for the main script? You're right, it doesn't. I forgot about that interaction with CGI*. -- Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io ...

Re: Python on Android Mobile?

2010-06-13 Thread Anthony Papillion
Thank you gentleman for your input. I'm starting to look at Python/GTK for desktop development and was hoping there might also be something for Android. Oh well, like Simon said (pardon the pun), it is open source so... :-) Anthony -- http://mail.python.org/mailman/listinfo/python-list

C interpreter in Lisp/scheme/python

2010-06-13 Thread bolega
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 answers anywhere ? How would a gury

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

2010-06-13 Thread Vincent Davis
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 commands I have entered I just get ^[[A. When I install from a compiled source it works fine. Whats the fix for

Re: C interpreter in Lisp/scheme/python

2010-06-13 Thread geremy condra
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. Try the programming languages shootout. For this, I propose a vanilla C interpreter. I have seen a book which writes C interpreter in C. Good luck. The

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

2010-06-13 Thread Vincent Davis
On Sun, Jun 13, 2010 at 5:28 PM, Gerry Reno gr...@verizon.net wrote: sounds like your keymapping got messed with. you could just: set -o vi python ESC, Ctrl-j and now ESC-k and ESC-j will take you back and forth in history (std vi editing) This is done within python? Let make sure I am

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

2010-06-13 Thread Gerry Reno
These command just allow you to use 'vi editing mode' within python. If you've ever navigated a file with vi to go up and down the document you'll immediately know how it works.-GerryJun 13, 2010 07:39:35 PM, vinc...@vincentdavis.net wrote:On Sun, Jun 13, 2010 at 5:28 PM, Gerry Reno

Re: C interpreter in Lisp/scheme/python

2010-06-13 Thread Vinay
On 2010-06-13 16:07:54 -0700, bolega gnuist...@gmail.com said: 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

Re: Community (A Modest Proposal)

2010-06-13 Thread John Bokma
Someone Something fordhai...@gmail.com writes: Here's the thing. Python has one of the nicest communities of most software projects (except maybe ubuntu), try Perl or C. Unless you completely know what you're talking about, have spent atleast 1/2 an hour researching your problem, those guys

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

2010-06-13 Thread Sean DiZazzo
On Jun 13, 4:39 pm, Vincent Davis vinc...@vincentdavis.net wrote: On Sun, Jun 13, 2010 at 5:28 PM, Gerry Reno gr...@verizon.net wrote: sounds like your keymapping got messed with. you could just: set -o vi python ESC, Ctrl-j and now ESC-k and ESC-j will take you back and forth in

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

2010-06-13 Thread Irmen de Jong
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 commands I have entered I just get ^[[A. When I install from a compiled

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

2010-06-13 Thread Gerry Reno
sounds like your keymapping got messed with.you could just:set -o vipythonESC, Ctrl-jand now ESC-k and ESC-j will take you back and forth in history (std vi editing)-GerryJun 13, 2010 07:22:40 PM, vinc...@vincentdavis.net wrote:I just installed 2.6 and 3.1 from current maintenance source on

Re: Mark built-in module as deprecated

2010-06-13 Thread moerchendiser2k3
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. -- http://mail.python.org/mailman/listinfo/python-list

Re: C interpreter in Lisp/scheme/python

2010-06-13 Thread Gene
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.

Re: math.erfc OverflowError

2010-06-13 Thread D'Arcy J.M. Cain
On 13 Jun 2010 09:49:03 -0700 a...@pythoncraft.com (Aahz) wrote: Bug filed, http://bugs.python.org/issue8986. Please don't put extraneous punctuation on URLs. That period is a valid URL character, but it's invalid for this URL, and it's not obvious to the reader whether the period should be

Re: math.erfc OverflowError

2010-06-13 Thread Aahz
In article mailman.1409.1276477866.32709.python-l...@python.org, D'Arcy J.M. Cain da...@druid.net wrote: On 13 Jun 2010 09:49:03 -0700 a...@pythoncraft.com (Aahz) wrote: Please don't put extraneous punctuation on URLs. That period is a valid URL character, but it's invalid for this URL, and

The Python Web Authoring and Application Pages

2010-06-13 Thread travis
I've got five pages of information linked to from here: http://www.subspacefield.org/~travis/ LWMLs template systems static web page generators microframeworks web app frameworks It seems like many web app programmers and web authors know one system, or possibly two, and so you don't often get

Re: Community (A Modest Proposal)

2010-06-13 Thread Steven D'Aprano
On Sun, 13 Jun 2010 22:14:34 +0200, Alf P. Steinbach wrote: * Steven D'Aprano, on 13.06.2010 19:57: On Sun, 13 Jun 2010 08:42:57 -0700, rantingrick wrote: i will start a fork. That is the most sensible thing you have said yet. Please do so, it will be a great thing for the Python

  1   2   >