Re: math.erfc OverflowError

2010-06-13 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 i

Re: file handling

2010-06-13 Thread Cameron Simpson
On 14Jun2010 11:05, madhuri vio 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 | ["PK\x03\x04\x14\x00\x00\x00\x00\x00\xd6+\xce<^\xc62\x0c'\x00\x00\x00'\x00\x

Re: file handling

2010-06-13 Thread Benjamin Kaplan
On Sun, Jun 13, 2010 at 10:35 PM, madhuri vio 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 > ["PK\x03\x04\x14\x00\x00\x00\x00\x00\xd6+\xce<^\xc62\x0c'\x00\x00\

file handling

2010-06-13 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-13 Thread James Mills
On Mon, Jun 14, 2010 at 3:35 PM, madhuri vio 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 > ["PK\x03\x04\x14\x00\x00\x00\x00\x00\xd6+\xce<^\xc62\x0c'\x00\x00\x

Re: Python on Android Mobile?

2010-06-13 Thread Shashwat Anand
Well, AFAIK Nokia N900 supports python fully. On Mon, Jun 14, 2010 at 4:08 AM, Anthony Papillion wrote: > 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 t

file handling

2010-06-13 Thread madhuri vio
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 ["PK\x03\x04\x14\x00\x00\x00\x00\x00\xd6+\xce<^\xc62\x0c'\x00\x00\x00'\x00\x00\x00\x08\x00\x00\x00mimetypeapplication/vnd.oasis.opendocum

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

2010-06-13 Thread Terry Reedy
On 6/13/2010 9:43 PM, alex23 wrote: a...@pythoncraft.com (Aahz) wrote: If a new-ish term is being introduced, expecting each person to search for the meaning is rude. The question then becomes how does one determine whether a term one is using needs defining? If it has never be used before o

Re: Temporary but named file with BSDDB

2010-06-13 Thread Tim Pinkawa
On Sun, Jun 13, 2010 at 11:01 PM, Jason wrote: > I'd like to use the BSDDB module in an app (intended only for GNU/ > Linux like OSes). > > I don't need the on-disk file to hang around after I've used it. So as > per the docs I gave it "None" for the filename. > > The problem is, it creates the te

Temporary but named file with BSDDB

2010-06-13 Thread Jason
I'd like to use the BSDDB module in an app (intended only for GNU/ Linux like OSes). I don't need the on-disk file to hang around after I've used it. So as per the docs I gave it "None" for the filename. The problem is, it creates the temporary file in /var/tmp. If the user uses separate root and

Re: pyreadline: default editable input; please, help.

2010-06-13 Thread Tim Roberts
rbenit68 wrote: > >I would like to run this minimal example: I get the prompt >(Question?), but not the 'default editable signal'. Please ¿any hints? >(Windows XP-SP3, Python 2.6, pyreadline 1.5) PyReadline on Windows is not identical to readline on Linux, in part because the low-level operating

Re: C interpreter in Lisp/scheme/python

2010-06-13 Thread nanothermite911fbibustards
> 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 from screwing Palestinians, and other false-flags, you will find ideas like these How to make Lisp go faster than C Didier Verna Abstract Contrary to po

Re: a +b ?

2010-06-13 Thread Steven D'Aprano
On Sun, 13 Jun 2010 18:35:52 -0700, alex23 wrote: > I have little sympathy for Steven's > hypothetical "new programmer who isn't familiar with map and reduce". Perhaps you need to spend some more time helping beginners then, and less time hanging around Lisp gurus *wink* > Python isn't PHP, its

Re: math.erfc OverflowError

2010-06-13 Thread Ben Finney
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 should presumably be going into that report. This issue isn't abo

Re: math.erfc OverflowError

2010-06-13 Thread Steven D'Aprano
On Sun, 13 Jun 2010 19:05:28 -0700, geremy condra wrote: > On Sun, Jun 13, 2010 at 6:44 PM, Ben Finney > wrote: >> a...@pythoncraft.com (Aahz) writes: >> >>> In article , >>> geremy condra   wrote: >>> > >>> >Bug filed, http://bugs.python.org/issue8986. [...] > You know, I've never been a part

Re: a +b ?

2010-06-13 Thread Ben Finney
alex23 writes: > (Although I have to say, I have little sympathy for Steven's > hypothetical "new programmer who isn't familiar with map and reduce". With ‘reduce’ gone in Python 3 [0], I can only interpret that as “I have little sympathy for programmers who start with Python 3”. Is that in line

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

2010-06-13 Thread Steven D'Aprano
On Sun, 13 Jun 2010 18:43:01 -0700, alex23 wrote: > a...@pythoncraft.com (Aahz) wrote: >> If a new-ish term is being introduced, expecting each person to search >> for the meaning is rude. > > The question then becomes how does one determine whether a term one is > using needs defining? Does OO?

Lord Headley .. nice story

2010-06-13 Thread reader
Lord Headley Al-Farooq (England) Peer, Statesman, and Author About the Author: Lord Headley al-Farooq (Rt. Hon. Sir Rowland George Allanson) was born in 1855 A.D. and was a leading British peer, statesman and author. Educated in Cambridge, he became a peer in 1877, served in the army as a captai

Re: math.erfc OverflowError

2010-06-13 Thread geremy condra
On Sun, Jun 13, 2010 at 6:44 PM, Ben Finney wrote: > a...@pythoncraft.com (Aahz) writes: > >> In article , >> geremy condra   wrote: >> > >> >Bug filed, http://bugs.python.org/issue8986. >> >> Please don't put extraneous punctuation on URLs. > > The punctuation isn't extraneous; it's a necessary p

wow !!

2010-06-13 Thread reader
Excuse me!! Would you stop for a moment?! O...man...Haven't you thought-one day- about yourself ? Who has made it? Have you seen a design which hasn't a designer ?! Have you seen a wonderful,delicate work without a worker ?! It's you and the whole universe!.. Who has made them all ?!! You know wh

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

2010-06-13 Thread Robert Kern
On 6/13/10 8:43 PM, alex23 wrote: a...@pythoncraft.com (Aahz) wrote: If a new-ish term is being introduced, expecting each person to search for the meaning is rude. The question then becomes how does one determine whether a term one is using needs defining? When someone asks for the definiti

Re: a +b ?

2010-06-13 Thread geremy condra
On Sun, Jun 13, 2010 at 9:46 AM, 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[0]) + int(t[

Re: C interpreter in Lisp/scheme/python

2010-06-13 Thread nanothermite911fbibustards
On Jun 13, 4: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

Re: math.erfc OverflowError

2010-06-13 Thread Ben Finney
a...@pythoncraft.com (Aahz) writes: > In article , > geremy condra wrote: > > > >Bug filed, http://bugs.python.org/issue8986. > > Please don't put extraneous punctuation on URLs. The punctuation isn't extraneous; it's a necessary part of a natural English sentence. That's where it belongs. Bet

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

2010-06-13 Thread alex23
a...@pythoncraft.com (Aahz) wrote: > If a new-ish term is being introduced, > expecting each person to search for the meaning is rude. The question then becomes how does one determine whether a term one is using needs defining? Does OO? How about FP? Or TDD? Is there a metric for how many years or

Re: a +b ?

2010-06-13 Thread alex23
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 isn't familiar with map

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 Pyt

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 g

Re: math.erfc OverflowError

2010-06-13 Thread Aahz
In article , D'Arcy J.M. Cain 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 it's not obvious to the >> reader whether the period should b

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 shou

Re: C interpreter in Lisp/scheme/python

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

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

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 Sean DiZazzo
On Jun 13, 4:39 pm, Vincent Davis wrote: > On Sun, Jun 13, 2010 at 5:28 PM, Gerry Reno 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) >

Re: Community (A Modest Proposal)

2010-06-13 Thread John Bokma
Someone Something 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 will refrain from

Re: C interpreter in Lisp/scheme/python

2010-06-13 Thread Vinay
On 2010-06-13 16:07:54 -0700, bolega 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 code. Are there alr

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 wrote:> soun

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

Re: C interpreter in Lisp/scheme/python

2010-06-13 Thread geremy condra
On Sun, Jun 13, 2010 at 4:07 PM, bolega 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 criteria would be t

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 th

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 appro

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

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

Re: Python OpenSSL library

2010-06-13 Thread Michael Crute
On Sun, Jun 13, 2010 at 5:59 PM, astral 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 version 2.5.4 ? And how to unin

Re: Python OpenSSL library

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

Re: Python on Android Mobile?

2010-06-13 Thread Simon Brunning
On 13 June 2010 21:39, Anthony Papillion 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 the Android envi

Re: Python OpenSSL library

2010-06-13 Thread geremy condra
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 library. Evpy[1] is designed to be a very easy-to-use interface to Open

Re: Python on Android Mobile?

2010-06-13 Thread geremy condra
On Sun, Jun 13, 2010 at 1:39 PM, Anthony Papillion 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 the An

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 re

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" wrote: > 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 "o

Re: Python OpenSSL library

2010-06-13 Thread Michael Crute
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 a look at m2crypto[0]. While I have not

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

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 fro

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

2010-06-13 Thread Martin
On Jun 13, 6:15 pm, 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: > > 1. allocate a buffer of a certain size > 2. fill it > 3. return it as an array. >

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

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: math.erfc OverflowError

2010-06-13 Thread Mark Dickinson
On Jun 13, 12:56 am, geremy condra wrote: > On Sat, Jun 12, 2010 at 4:40 PM, Robert Kern 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 inconsistent with the > >> erf

Re: Printing forms and labels in Python

2010-06-13 Thread Benjamin Kaplan
On Sun, Jun 13, 2010 at 12:25 PM, Monte Milanuk 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 finely tuned

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

Re: Printing forms and labels in Python

2010-06-13 Thread rantingrick
On Jun 13, 1:13 pm, Monte Milanuk 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 python does

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

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 suppo

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

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 forma

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 thos

Re: Community (A Modest Proposal)

2010-06-13 Thread David Robinow
On Sun, Jun 13, 2010 at 1:57 PM, Steven D'Aprano 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. Eagerly awaiting the transfer of thi

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 Walzer 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 - Cross-platform - Lo

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: Printing forms and labels in Python

2010-06-13 Thread Anssi Saari
Monte Milanuk 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 > big 'featur

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

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

Re: Printing forms and labels in Python

2010-06-13 Thread Diez B . Roggisch
Monte Milanuk 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 cross-

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 Pyt

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

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

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 modul

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

Re: GUIs - A Modest Proposal

2010-06-13 Thread lkcl
On Jun 13, 3:52 pm, Arndt Roger Schneider 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 > >the power

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

2010-06-13 Thread Aahz
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 Selenium/Windmill? -- Aahz (a...@pythoncraft.com) <*>

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

Re: math.erfc OverflowError

2010-06-13 Thread Aahz
In article , geremy condra 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 part of the URL. URLs in gener

Re: a +b ?

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

Re: Community (A Modest Proposal)

2010-06-13 Thread Aahz
In article <0912f443-e83a-4436-80db-b1cb915d5...@r27g2000yqb.googlegroups.com>, Zeth wrote: >On Jun 13, 4:09=A0am, rantingrick 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

Re: how to get a reference to the "__main__" module

2010-06-13 Thread Aahz
In article , WH 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) <*> http://www.pythoncraft.com/

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 peopl

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 wrote: >Tycho Andersen 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. My apologies for the

Re: Community (A Modest Proposal)

2010-06-13 Thread Zeth
On Jun 13, 4:09 am, rantingrick 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: a +b ?

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

Re: Community (A Modest Proposal)

2010-06-13 Thread rantingrick
On Jun 13, 1:50 am, Stephen Hansen 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 politician and an self-hel

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 image

  1   2   >