Roundup Issue Tracker 1.4.14 released

2010-07-01 Thread Richard Jones
I'm proud to release version 1.4.14 of Roundup which includes a security fix and some other fixes: Features: - Preparations for getting 2to3 work, not completed yet. (Richard Jones) Fixed: - User input not escaped when a bad template name is supplied (thanks Benjamin Pollack) - The email for

Official release of itws 1.0

2010-07-01 Thread Alex Garel
Hello, Itaapy's team is proud to announce first stable release of itws, a solution to create a website, an extranet or intranet. It features RSS integration, composite pages, tags cloud, twitter stream, configurable menu, etc... itws is based on ikaaro, an Open Source Python CMS. iKaaro may

PyTables 2.2 released: entering the multi-core age

2010-07-01 Thread Francesc Alted
= Announcing PyTables 2.2 (final) = I'm happy to announce PyTables 2.2 (final). After 18 months of continuous development and testing, this is, by far, the most powerful and well-tested release ever. I hope you like it too.

Bento 0.0.3 (ex-toydist), a pythonic packaging solution

2010-07-01 Thread David
Hi, I am pleased to announce the release 0.0.3 for Bento, the pythonic packaging solution. Bento aims at being an alternative to distutils/setuptools/distribute, based on a static metadata file format. Existing packages can be converted from setup.py to bento format automatically.

Reversing backslashed escape sequences

2010-07-01 Thread Steven D'Aprano
I have a byte-string which is an escape sequence, that is, it starts with a backslash, followed by either a single character, a hex or octal escape sequence. E.g. something like one of these in Python 2.5: '\\n' '\\xFF' '\\023' If s is such a string, what is the right way to un-escape them to

Solutions for hand injury from computer use (was: I strongly dislike Python 3)

2010-07-01 Thread Ben Finney
geremy condra debat...@gmail.com writes: Right. I'm much more concerned about the position of my Ctrl key, to avoid hand injury from all the key chording done as a programmer. Not saying its a cure-all, but I broke my hand pretty badly a few years ago and had a lot of luck with a homemade

Re: Reversing backslashed escape sequences

2010-07-01 Thread Chris Rebert
On Wed, Jun 30, 2010 at 10:50 PM, Steven D'Aprano steve-remove-t...@cybersource.com.au wrote: I have a byte-string which is an escape sequence, that is, it starts with a backslash, followed by either a single character, a hex or octal escape sequence. E.g. something like one of these in Python

Re: A question about the posibility of raise-yield in Python

2010-07-01 Thread Ryan Kelly
On Wed, 2010-06-30 at 16:20 -0700, ru...@yahoo.com wrote: On Jun 30, 10:48 am, John Nagle na...@animats.com wrote: On 6/30/2010 12:13 AM, Дамјан Георгиевски wrote: A 'raise-yield' expression would break the flow of a program just like an exception, going up the call stack until it would

Re: Reversing backslashed escape sequences

2010-07-01 Thread Mark Tolonen
Steven D'Aprano steve-remove-t...@cybersource.com.au wrote in message news:4c2c2cab$0$14136$c3e8...@news.astraweb.com... I have a byte-string which is an escape sequence, that is, it starts with a backslash, followed by either a single character, a hex or octal escape sequence. E.g. something

Re: Reversing backslashed escape sequences

2010-07-01 Thread Steven D'Aprano
On Wed, 30 Jun 2010 23:11:59 -0700, Chris Rebert wrote: Python 2.6.5 (r265:79063, May 25 2010, 18:21:57) '\\xFF'.decode('string_escape') '\xff' I knew unicode-escape, obviously, and then I tried just 'escape', but never thought of 'string_escape'. Thanks for the quick answer. -- Steven

Re: Why are String Formatted Queries Considered So Magical?

2010-07-01 Thread Jorgen Grahn
On Wed, 2010-06-30, Steven D'Aprano wrote: On Wed, 30 Jun 2010 14:14:38 +, Jorgen Grahn wrote: On Tue, 2010-06-29, Stephen Hansen wrote: On 6/29/10 5:41 AM, Roy Smith wrote: Nobodynob...@nowhere.com wrote: And what about regular expressions? What about them? As the saying goes:

Re: [OT] Re: Why Is Escaping Data Considered So Magical?

2010-07-01 Thread Jorgen Grahn
On Wed, 2010-06-30, Michael Torrie wrote: On 06/30/2010 03:00 AM, Jorgen Grahn wrote: On Wed, 2010-06-30, Michael Torrie wrote: On 06/29/2010 10:17 PM, Michael Torrie wrote: On 06/29/2010 10:05 PM, Michael Torrie wrote: #include stdio.h int main(int argc, char ** argv) { char *buf =

Re: Why are String Formatted Queries Considered So Magical?

2010-07-01 Thread Stephen Hansen
On 6/30/10 11:58 PM, Jorgen Grahn wrote: On Wed, 2010-06-30, Steven D'Aprano wrote: On Wed, 30 Jun 2010 14:14:38 +, Jorgen Grahn wrote: On Tue, 2010-06-29, Stephen Hansen wrote: There's nothing silly about it. It is an exaggeration though: but it does represent a good thing to keep in

executable builder

2010-07-01 Thread King
Hi, I am trying to build python a cross platform python executable builder to deploy python app. I tried various tools such as py2exe, pyinstaller, cx_freeze but some how they are not upto the mark except py2exe. Unfortunately py2exe is working only on windows based systems. The task is divide

Re: [farther OT] Re: Why Is Escaping Data Considered So Magical?

2010-07-01 Thread Nobody
On Wed, 30 Jun 2010 23:40:06 -0600, Michael Torrie wrote: Given char buf[512], buf's type is char * according to the compiler and every C textbook I know of. No, the type of buf is char [512], i.e. array of 512 chars. If you use buf as an rvalue (rather than an lvalue), it will be implicitly

Re: Very odd output from subprocess

2010-07-01 Thread Nobody
On Wed, 30 Jun 2010 21:12:12 -0700, m wrote: If I add the line: for l in line: print ord(l),'\t',l after the first readline, I get the following: 27 91[ 480 480 109 m 27 91[ 513 557 109 m before the codes begin for the string as it

Re: Composition of functions

2010-07-01 Thread Terry Reedy
On 7/1/2010 12:32 AM, Mladen Gogala wrote: On Wed, 30 Jun 2010 21:04:28 -0700, Stephen Hansen wrote: However, you can easily get what you want by using the 'reversed' function (and similarly, the 'sorted' function), a la: y = ''.join(reversed(list(x))) The 'reversed' and 'sorted'

Re: Composition of functions

2010-07-01 Thread Stephen Hansen
On 7/1/10 12:45 AM, Terry Reedy wrote: On 7/1/2010 12:32 AM, Mladen Gogala wrote: On Wed, 30 Jun 2010 21:04:28 -0700, Stephen Hansen wrote: However, you can easily get what you want by using the 'reversed' function (and similarly, the 'sorted' function), a la: y =

stupid question about html page

2010-07-01 Thread luca72
hello with webbrowser i open the html or php etc page, how i can save the opened page with python? Thanks Luca -- http://mail.python.org/mailman/listinfo/python-list

Re: Ignorance and Google Groups (again)

2010-07-01 Thread Mithrandir
D'Arcy J.M. Cain da...@druid.net wrote in news:mailman.46.1277931314.1673.python-l...@python.org: On Wed, 30 Jun 2010 13:10:43 -0700 (PDT) garryTX garry5...@gmail.com wrote: On Jun 29, 5:31 pm, nanothermite911fbibustards [...] you ignorant mf. stfu. You shouldn't be calling people

Re: Composition of functions

2010-07-01 Thread Paul Rubin
Terry Reedy tjre...@udel.edu writes: sequential statements are a form of composition, even if strict functionalists do not like to see it that way. They actually do like to see it that way: http://blog.sigfpe.com/2006/08/you-could-have-invented-monads-and.html --

Re: stupid question about html page

2010-07-01 Thread Mithrandir
luca72 lucabe...@libero.it wrote in news:abfb7720-6132-4b7b-8084- 5c1a48164...@y11g2000yqm.googlegroups.com: hello with webbrowser i open the html or php etc page, how i can save the opened page with python? Thanks Luca Not sure of a way to capture info from a browser (like Firefox.) I

Re: stupid question about html page

2010-07-01 Thread luca72
On 1 Lug, 10:16, Mithrandir mithrandiragainw...@mailinator.com wrote: luca72 lucabe...@libero.it wrote in news:abfb7720-6132-4b7b-8084- 5c1a48164...@y11g2000yqm.googlegroups.com: hello with webbrowser i open the html or php etc page, how i can save the opened page with python? Thanks

Extract doc strings

2010-07-01 Thread moerchendiser2k3
Hi all, when I have a PyCodeObject, is there any way to extract a doc string from the code? For instance the following script ---script Hello World! def main(): pass main() /---script--- I would like to get Hello World!. Any chance? Thanks in advance!! Bye, moerchendiser2k3 --

Re: Extract doc strings

2010-07-01 Thread Ben Finney
moerchendiser2k3 googler.1.webmas...@spamgourmet.com writes: when I have a PyCodeObject, is there any way to extract a doc string from the code? I'm not very familiar with using the C interface for Python, but does it help to know that a docstring for an object is available at that object's

Re: Extract doc strings

2010-07-01 Thread moerchendiser2k3
Hi ben, thanks for your answer. Sure, __doc__ is the access point to the docstring, but in this case, I just get the docstring of the code object. So an explanation what a code object, but I need the docstring of real docstring of the script. bye, moerchendiser --

Re: Extract doc strings

2010-07-01 Thread Jean-Michel Pichavant
moerchendiser2k3 wrote: Hi all, when I have a PyCodeObject, is there any way to extract a doc string from the code? For instance the following script ---script Hello World! def main(): pass main() /---script--- I would like to get Hello World!. Any chance? Thanks in advance!! Bye,

tp_richcompare vs tp_compare

2010-07-01 Thread moerchendiser2k3
Hi all, just another question. Can anyone explain me whats the real difference between tp_richcompare and tp_compare? I read some stuff, but sometimes I believe the author doesnt know either whats the real difference or they forget it to explain. The Function definition looks very similiar,

Re: Extract doc strings

2010-07-01 Thread Thomas Jollans
On 07/01/2010 11:12 AM, moerchendiser2k3 wrote: Hi all, when I have a PyCodeObject, is there any way to extract a doc string from the code? For instance the following script Code objects don't have doc strings, as such. However, for functions at least (this may or may not be true for code

Re: Why are String Formatted Queries Considered So Magical?

2010-07-01 Thread Jean-Michel Pichavant
Stephen Hansen wrote: On 6/30/10 11:58 PM, Jorgen Grahn wrote: On Wed, 2010-06-30, Steven D'Aprano wrote: On Wed, 30 Jun 2010 14:14:38 +, Jorgen Grahn wrote: On Tue, 2010-06-29, Stephen Hansen wrote: There's nothing silly about it. It is an exaggeration though: but it does represent a

Re: Extract doc strings

2010-07-01 Thread Ben Finney
moerchendiser2k3 googler.1.webmas...@spamgourmet.com writes: thanks for your answer. Sure, __doc__ is the access point to the docstring, but in this case, I just get the docstring of the code object. So an explanation what a code object, but I need the docstring of real docstring of the

List-type attributes and name strings

2010-07-01 Thread egbert
Normally you use setattr() if the name of the attribute is in a namestring: setattr(self, namestring, value) But my attributes are lists or dictionaries, and I don't seem to be able to use setattr anymore. Now I use for a list something like: self.__dict__[namestring].append(value) and for a

Re: List-type attributes and name strings

2010-07-01 Thread Chris Rebert
On Thu, Jul 1, 2010 at 3:56 AM, egbert egber...@xs4all.nl wrote: Normally you use setattr() if the name of the attribute is in a namestring: setattr(self, namestring, value) But my attributes are lists or dictionaries, and I don't seem to be able to use setattr anymore. Because you're not

Re: CONTROLLED DEMOLITION INC explosive-charge placement technician Tom Sullivan 911 TESTIMONIAL Video

2010-07-01 Thread n...@bid.nes
On Jun 29, 9:31 am, nanothermite911fbibustards nanothermite911fbibusta...@gmail.com wrote: On Jun 29, 5:24 am, n...@bid.nes alien8...@gmail.com wrote: On Jun 26, 12:16 pm, nanothermite911fbibustards nanothermite911fbibusta...@gmail.com wrote:   Let's talk about thermite.   Do you

Re: optphart (alpha2)

2010-07-01 Thread Jean-Michel Pichavant
Stephen Hansen wrote: On 6/28/10 11:50 PM, rantingrick wrote: You just don't get the point, do you? And just what *point* an i supposed to be getting Stephen? That you don't like my contribution? If thats your point then i very much get it. This garbage: optphart is the nemisis of the

Re: List-type attributes and name strings

2010-07-01 Thread Lie Ryan
On 07/01/10 20:56, egbert wrote: self.__dict__[namestring][keystring]=value try this: getattr(self, namestring)[keystring] = value -- http://mail.python.org/mailman/listinfo/python-list

Re: List-type attributes and name strings

2010-07-01 Thread egbert
On Thu, Jul 01, 2010 at 04:02:49AM -0700, Chris Rebert wrote: switch to getattr() as demonstrated above. Thanks for opening my eyes, Chris. egbert -- Egbert Bouwman - Keizersgracht 197 II - 1016 DS Amsterdam - 020 6257991

Re: Ignorance and Google Groups (again)

2010-07-01 Thread Bruno Desthuilliers
D'Arcy J.M. Cain a écrit : On Wed, 30 Jun 2010 14:06:05 -0700 Stephen Hansen me+list/pyt...@ixokai.io wrote: Gmail and Google Groups are not one and the same. There's a number of people who subscribe to the list directly, use Gmail, and don't go anywhere near Google Groups. I know that. My

Re: Why are String Formatted Queries Considered So Magical?

2010-07-01 Thread Roy Smith
Stephen Hansen me+list/pyt...@ixokai.io wrote: The quote does not deny the power of regular expressions; it challenges widely held assumption and belief that comes from *somewhere* that they are the best way to approach any problem that is text related. Well, that assumption comes from

Re: Extract doc strings

2010-07-01 Thread Steven D'Aprano
On Thu, 01 Jul 2010 11:55:05 +0200, Thomas Jollans wrote: On 07/01/2010 11:12 AM, moerchendiser2k3 wrote: Hi all, when I have a PyCodeObject, is there any way to extract a doc string from the code? For instance the following script Code objects don't have doc strings, as such. However,

Re: List-type attributes and name strings

2010-07-01 Thread Bruno Desthuilliers
egbert a écrit : Normally you use setattr() if the name of the attribute is in a namestring: setattr(self, namestring, value) But my attributes are lists or dictionaries, and I don't seem to be able to use setattr anymore. Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41) [GCC 4.3.3] on

Re: Composition of functions

2010-07-01 Thread Wolfram Hinderer
On 1 Jul., 06:04, Stephen Hansen me+list/pyt...@ixokai.io wrote: The 'reversed' and 'sorted' functions are generators that lazilly convert an iterable as needed. 'sorted' returns a new list (and is not lazy). -- http://mail.python.org/mailman/listinfo/python-list

Re: Ignorance and Google Groups (again)

2010-07-01 Thread D'Arcy J.M. Cain
On Thu, 01 Jul 2010 14:07:27 +0200 Bruno Desthuilliers bruno.42.desthuilli...@websiteburo.invalid wrote: And AFAICT you're wrong. I read and post to c.l.py using my newsreader (so NOT going thru GG), and my personal address is @gmail.com. But... From: Bruno Desthuilliers

Re: Python dynamic attribute creation

2010-07-01 Thread Bruno Desthuilliers
Stephen Hansen a écrit : On 6/30/10 10:37 PM, Aahz wrote: In article4c29ad38$0$26210$426a7...@news.free.fr, Bruno Desthuilliersbruno.42.desthuilli...@websiteburo.invalid wrote: Aahz a écrit : In article4c285e7c$0$17371$426a7...@news.free.fr, Bruno

Re: Ignorance and Google Groups (again)

2010-07-01 Thread Bruno Desthuilliers
D'Arcy J.M. Cain a écrit : On Thu, 01 Jul 2010 14:07:27 +0200 Bruno Desthuilliers bruno.42.desthuilli...@websiteburo.invalid wrote: And AFAICT you're wrong. I read and post to c.l.py using my newsreader (so NOT going thru GG), and my personal address is @gmail.com. But... From: Bruno

Re: stupid question about html page

2010-07-01 Thread drygal
On 1 July, 09:31, luca72 lucabe...@libero.it wrote: On 1 Lug, 10:16, Mithrandir mithrandiragainw...@mailinator.com wrote: luca72 lucabe...@libero.it wrote in news:abfb7720-6132-4b7b-8084- 5c1a48164...@y11g2000yqm.googlegroups.com: hello with webbrowser i open the html or php etc

Re: python source code - win/dos executable (on linux)

2010-07-01 Thread Bill Davy
Stephen Hansen me+list/pyt...@ixokai.io wrote in message news:mailman.2344.1277821469.32709.python-l...@python.org... On 6/29/10 12:27 AM, Lawrence D'Oliveiro wrote: In message4c286d71$0$18654$4fafb...@reader3.news.tin.it, superpollo wrote: Lawrence D'Oliveiro ha scritto: Is it really such

Re: I strongly dislike Python 3

2010-07-01 Thread Lou Pecora
In article 3f35dcf5-25ff-4aa7-820c-592cbffa4...@u26g2000yqu.googlegroups.com, rantingrick rantingr...@gmail.com wrote: On Jun 30, 4:21 pm, geremy condra debat...@gmail.com wrote: Actually, I agree with this complaint though- it is much easier to type spaces than parens. Oh Geremy

Re: Python dynamic attribute creation

2010-07-01 Thread WANG Cong
On 06/30/10 01:25, Ethan Furman et...@stoneleaf.us wrote: But if so why setattr() still exists? What is it for if we can do the same thing via assignments? Also, in order to be perfect, Python should accept to add dynamic attributes dynamically, something like PEP 363. That doesn't happen.

Re: Composition of functions

2010-07-01 Thread Stephen Hansen
On 7/1/10 5:29 AM, Wolfram Hinderer wrote: On 1 Jul., 06:04, Stephen Hansenme+list/pyt...@ixokai.io wrote: The 'reversed' and 'sorted' functions are generators that lazilly convert an iterable as needed. 'sorted' returns a new list (and is not lazy). Oops, you're right. Got the two crossed

Re: Why are String Formatted Queries Considered So Magical?

2010-07-01 Thread Stephen Hansen
On 7/1/10 3:03 AM, Jean-Michel Pichavant wrote: Re is part of the python standard library, for some purpose I guess. No, *really*? So all those people who have been advocating its useless and shouldn't be are already too late? Damn. Well, there goes *that* whole crusade we were all out

Re: Why are String Formatted Queries Considered So Magical?

2010-07-01 Thread Stephen Hansen
On 7/1/10 5:11 AM, Roy Smith wrote: Stephen Hansenme+list/pyt...@ixokai.io wrote: The quote does not deny the power of regular expressions; it challenges widely held assumption and belief that comes from *somewhere* that they are the best way to approach any problem that is text related.

Re: Python dynamic attribute creation

2010-07-01 Thread WANG Cong
On 06/30/10 01:20, Stephen Hansen me+list/pyt...@ixokai.io wrote: But if so why setattr() still exists? What is it for if we can do the same thing via assignments? Also, in order to be perfect, Python should accept to add dynamic attributes dynamically, something like PEP 363. That doesn't

Re: Python dynamic attribute creation

2010-07-01 Thread Stephen Hansen
On 7/1/10 5:41 AM, Bruno Desthuilliers wrote: Stephen Hansen a écrit : On 6/30/10 10:37 PM, Aahz wrote: It may not be the primary concern, but elegance certainly is *a* primary concern. I concur. Its not explicitly stated, but it is the Zen 0. This is further supported by its implied

Re: Python dynamic attribute creation

2010-07-01 Thread WANG Cong
On 07/01/10 13:49, Stephen Hansen me+list/pyt...@ixokai.io wrote: Hi, Stephen, It may not be the primary concern, but elegance certainly is *a* primary concern. I concur. Its not explicitly stated, but it is the Zen 0. This is further supported by its implied presence in many of the

Re: I strongly dislike Python 3

2010-07-01 Thread Ricardo Aráoz
On 30/06/2010 01:23 p.m., Lie Ryan wrote: On 07/01/10 01:42, Michele Simionato wrote: On Jun 30, 2:52 pm, Lie Ryanlie.1...@gmail.com wrote: On 06/27/10 11:24, Steven D'Aprano wrote: Producing print function takes a little bit more effort than producing a print statement. (1) The main

Re: Python dynamic attribute creation

2010-07-01 Thread Stephen Hansen
On 7/1/10 7:31 AM, WANG Cong wrote: On 06/30/10 01:20, Stephen Hansenme+list/pyt...@ixokai.io wrote: But if so why setattr() still exists? What is it for if we can do the same thing via assignments? Also, in order to be perfect, Python should accept to add dynamic attributes dynamically,

Re: Python dynamic attribute creation

2010-07-01 Thread Aahz
In article mailman.2311.1277759128.32709.python-l...@python.org, Michael Torrie torr...@gmail.com wrote: On 06/28/2010 02:31 PM, Aahz wrote: In article mailman.2300.1277754755.32709.python-l...@python.org, Michael Torrie torr...@gmail.com wrote: True. But you can't really criticize a

Re: Python dynamic attribute creation

2010-07-01 Thread Aahz
In article m31vbnntwn@gmail.com, WANG Cong xiyou.wangc...@gmail.com wrote: On 07/01/10 13:49, Stephen Hansen me+list/pyt...@ixokai.io wrote: Wang Cong deleted the attribution for Aahz: It may not be the primary concern, but elegance certainly is *a* primary concern. I concur. Its not

Re: Python dynamic attribute creation

2010-07-01 Thread WANG Cong
On 06/27/10 09:06, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: In that situation, certainly: adding an attribute on the fly to that formal definition seems entirely strange and special of an activity. But that's only because you *chose* to *see* and *use* the object that way.

Re: I strongly dislike Python 3

2010-07-01 Thread Aahz
In article mailman.50.1277932895.1673.python-l...@python.org, geremy condra debat...@gmail.com wrote: On Wed, Jun 30, 2010 at 4:34 PM, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: On Wed, 30 Jun 2010 22:52:06 +1000, Lie Ryan wrote: That is precisely how the quick-and-dirty

Re: Python dynamic attribute creation

2010-07-01 Thread Stephen Hansen
On 7/1/10 7:44 AM, WANG Cong wrote: On 07/01/10 13:49, Stephen Hansenme+list/pyt...@ixokai.io wrote: It may not be the primary concern, but elegance certainly is *a* primary concern. I concur. Its not explicitly stated, but it is the Zen 0. This is further supported by its implied presence

Sphinx-1.0b compilation for python3.1

2010-07-01 Thread Richard Mathar
I am trying to install Sphinx-1.0b under a Python3 environment. Does anyone have experience with that task? cd *1.0b2 python3 setup.py build File setup.py, line 50 print 'ERROR: Sphinx requires at least Python 2.4 to run.' So ../ 2to3 -w Sphinx-1.0b2 ... RefactoringTool:

Re: Python dynamic attribute creation

2010-07-01 Thread WANG Cong
On 06/28/10 17:43, Bruno Desthuilliers bruno.42.desthuilli...@websiteburo.invalid wrote: Carl Banks a écrit : On Jun 27, 3:49 am, Bruno Desthuilliers bdesth.quelquech...@free.quelquepart.fr wrote: WANG Cong a écrit : On 06/26/10 00:11, Neil Hodgson nyamatongwe+thun...@gmail.com wrote:

Re: Python dynamic attribute creation

2010-07-01 Thread Stephen Hansen
On 7/1/10 8:02 AM, WANG Cong wrote: On 06/27/10 09:06, Steven D'Apranost...@remove-this-cybersource.com.au wrote: In that situation, certainly: adding an attribute on the fly to that formal definition seems entirely strange and special of an activity. But that's only because you *chose* to

Re: Composition of functions

2010-07-01 Thread MRAB
Zubin Mithra wrote: Er, I don't think you thought that one entirely through (/ tried it out): My Apologies. Here is a working one. x=123 t = list(x) t.reverse() print ''.join(t) 321 But of course, the method which was suggested earlier is far more elegant. print

Re: Python dynamic attribute creation

2010-07-01 Thread WANG Cong
On 07/01/10 22:53, Stephen Hansen me+list/pyt...@ixokai.io wrote: One uses assignment syntax when the name of the attribute they are setting is known at the time when one writes the code. One uses the setattr function when the name of the attribute is not known until runtime. The

Re: [farther OT] Re: Why Is Escaping Data Considered So Magical?

2010-07-01 Thread Mel
Nobody wrote: On Wed, 30 Jun 2010 23:40:06 -0600, Michael Torrie wrote: Given char buf[512], buf's type is char * according to the compiler and every C textbook I know of. References from Kernighan Ritchie _The C Programming Language_ second edition: No, the type of buf is char [512], i.e.

Re: Python dynamic attribute creation

2010-07-01 Thread WANG Cong
On 07/01/10 23:19, Stephen Hansen me+list/pyt...@ixokai.io wrote: As long as setattr() exists in Python, that will be not so ordinary. :) setattr is perfectly ordinary. If you think setattr() is as ordinary as a trivial assignment, I will argue with you, this is personal taste. However, I

Re: [farther OT] Re: Why Is Escaping Data Considered So Magical?

2010-07-01 Thread Michael Torrie
On 07/01/2010 01:24 AM, Nobody wrote: No, the type of buf is char [512], i.e. array of 512 chars. If you use buf as an rvalue (rather than an lvalue), it will be implicitly converted to char*. Yes this is true. I misstated. I meant that most text books I've seen say to just use the variable

Python 2.4.2 Installation error

2010-07-01 Thread Dhilip S
Hello Everyone.. I'm using Ubuntu 10.04, i try to install Python 2.4.2 Python 2.4.3 got error message while doing make command. anybody can tell tell, How to overcome this error -- with regards, Dhilip.S -- http://mail.python.org/mailman/listinfo/python-list

Re: Solutions for hand injury from computer use

2010-07-01 Thread Ethan Furman
Ben Finney wrote: geremy condra debat...@gmail.com writes: Right. I'm much more concerned about the position of my Ctrl key, to avoid hand injury from all the key chording done as a programmer. Not saying its a cure-all, but I broke my hand pretty badly a few years ago and had a lot of luck

OT Komodo Edit, line selection gutter is one pixel wide?

2010-07-01 Thread John Doe
Is there a way to increase the line selection gutter width? It seems to be only one pixel wide. In other words... When I single click on the left side of the line, in order to automatically select the line, the pointer must be in a precise single pixel location immediately to the left of the line.

Re: Python dynamic attribute creation

2010-07-01 Thread Stephen Hansen
On 7/1/10 8:46 AM, WANG Cong wrote: However, I think setattr() is a builtin function, using it exposes the *magic* of metaprogramming (or class-programming, if more correct) at a first glance. I'm going to try this one more time -- you place a great deal of importance and special properties

Re: Solutions for hand injury from computer use

2010-07-01 Thread Andreas Waldenburger
On Thu, 01 Jul 2010 09:35:31 -0700 Ethan Furman et...@stoneleaf.us wrote: I'll have to give the left-handed mouse a try... hmmm -- not too bad so far. Since we're on the subject: I find the best solution for lots of typing with a little mousing to be a keyboard with a pointing stick (or track

Re: Solutions for hand injury from computer use

2010-07-01 Thread Emile van Sebille
On 7/1/2010 10:00 AM Andreas Waldenburger said... On Thu, 01 Jul 2010 09:35:31 -0700 Ethan Furmanet...@stoneleaf.us wrote: I'll have to give the left-handed mouse a try... hmmm -- not too bad so far. Since we're on the subject: I find the best solution for lots of typing with a little

Re: Python 2.4.2 Installation error

2010-07-01 Thread Thomas Jollans
On 07/01/2010 06:21 PM, Dhilip S wrote: Hello Everyone.. I'm using Ubuntu 10.04, i try to install Python 2.4.2 Python 2.4.3 got error message while doing make command. anybody can tell tell, How to overcome this error Which error? -- with regards, Dhilip.S --

escape character / csv module

2010-07-01 Thread V N
string \x00 has a length of 1. When I use the csv module to write that to a file csv_f = csv.writer(file(test.csv,wb),delimiter=|) csv_f.writerow([\x00,zz]) The output file looks like this: |zz Is it possible to force the writer to write that string? --

Re: Python 2.4.2 Installation error

2010-07-01 Thread Christian Heimes
I'm using Ubuntu 10.04, i try to install Python 2.4.2 Python 2.4.3 got error message while doing make command. anybody can tell tell, How to overcome this error Perhaps somebody is able to help you if you provide the full error message and describe all steps that lead to the error mesage.

Re: [farther OT] Re: Why Is Escaping Data Considered So Magical?

2010-07-01 Thread John Nagle
On 7/1/2010 8:36 AM, Mel wrote: Nobody wrote: On Wed, 30 Jun 2010 23:40:06 -0600, Michael Torrie wrote: Given char buf[512], buf's type is char * according to the compiler and every C textbook I know of. References from Kernighan Ritchie _The C Programming Language_ second edition: No,

Re: Solutions for hand injury from computer use

2010-07-01 Thread Andreas Waldenburger
On Thu, 01 Jul 2010 10:09:30 -0700 Emile van Sebille em...@fenx.com wrote: On 7/1/2010 10:00 AM Andreas Waldenburger said... On Thu, 01 Jul 2010 09:35:31 -0700 Ethan Furmanet...@stoneleaf.us wrote: I'll have to give the left-handed mouse a try... hmmm -- not too bad so far. Since

Re: Python/C++ timer intermittent bug

2010-07-01 Thread Thomas Jollans
On 06/30/2010 09:28 PM, p...@mail.python.org wrote: I have a problem with threading using the Python/C API. I have an extension that implements a timer, and the C++ timer callback function calls a Python function. The relevant code looks like this: [snip] static void CALLBACK

Re: Python 2.4.2 Installation error

2010-07-01 Thread Albert Hopkins
On Thu, 2010-07-01 at 21:51 +0530, Dhilip S wrote: Hello Everyone.. I'm using Ubuntu 10.04, i try to install Python 2.4.2 Python 2.4.3 got error message while doing make command. anybody can tell tell, How to overcome this error this error apparently did not get included in your post.

Re: Extract doc strings

2010-07-01 Thread moerchendiser2k3
Great! Thanks a lot! This is what I was looking for. :) Bye, moerchendiser2k3 -- http://mail.python.org/mailman/listinfo/python-list

Re: Solutions for hand injury from computer use

2010-07-01 Thread Brian Victor
Emile van Sebille wrote: When I started having trouble about ten years ago, I switched to a keyboard with integrated mouse pad. No problems since... Where did you find that? I've been looking for one. (Assuming you mean a trackpad, and not a mouse pad.) That said, my own solution was the

Re: Python dynamic attribute creation

2010-07-01 Thread Rami Chowdhury
On 2010-07-01 23:42, WANG Cong wrote: On 07/01/10 22:53, Stephen Hansen me+list/pyt...@ixokai.io wrote: One uses assignment syntax when the name of the attribute they are setting is known at the time when one writes the code. One uses the setattr function when the name of the

Re: Ignorance and Google Groups (again)

2010-07-01 Thread Mithrandir
Bruno Desthuilliers bruno.42.desthuilli...@websiteburo.invalid wrote in news:4c2c9002$0$17075$426a3...@news.free.fr: D'Arcy J.M. Cain a écrit : On Thu, 01 Jul 2010 14:07:27 +0200 Bruno Desthuilliers bruno.42.desthuilli...@websiteburo.invalid wrote: And AFAICT you're wrong. I read and post

Re: Solutions for hand injury from computer use

2010-07-01 Thread Emile van Sebille
On 7/1/2010 10:46 AM Brian Victor said... Emile van Sebille wrote: When I started having trouble about ten years ago, I switched to a keyboard with integrated mouse pad. No problems since... Where did you find that? I've been looking for one. (Assuming you mean a trackpad, and not a mouse

Re: OT Komodo Edit, line selection gutter is one pixel wide?

2010-07-01 Thread Ian Kelly
On Thu, Jul 1, 2010 at 10:39 AM, John Doe j...@usenetlove.invalid wrote: Is there a way to increase the line selection gutter width? It seems to be only one pixel wide. In other words... When I single click on the left side of the line, in order to automatically select the line, the pointer

Re: Ignorance and Google Groups (again)

2010-07-01 Thread Stephen Hansen
On 7/1/10 11:05 AM, Mithrandir wrote: Just thought of this last night: If you view the full header you can see this: Complaints-To: groups-ab...@google.com Try blocking posts with that in the header. :) Better idea: auto-forward any messages with that header, to that address. Odds are it's

Re: OT Komodo Edit, line selection gutter is one pixel wide?

2010-07-01 Thread Thomas Jollans
On 07/01/2010 06:39 PM, John Doe wrote: Is there a way to increase the line selection gutter width? It seems to be only one pixel wide. In other words... When I single click on the left side of the line, in order to automatically select the line, the pointer must be in a precise single pixel

Re: Ignorance and Google Groups (again)

2010-07-01 Thread Thomas Jollans
On 07/01/2010 08:20 PM, Stephen Hansen wrote: On 7/1/10 11:05 AM, Mithrandir wrote: Just thought of this last night: If you view the full header you can see this: Complaints-To: groups-ab...@google.com Try blocking posts with that in the header. :) Better idea: auto-forward any

Re: Ignorance and Google Groups (again)

2010-07-01 Thread Dotan Cohen
On 1 July 2010 00:06, Stephen Hansen me+list/pyt...@ixokai.io wrote: Gmail and Google Groups are not one and the same. There's a number of people who subscribe to the list directly, use Gmail, and don't go anywhere near Google Groups. I'm one of them. Gmail is great for mailing lists, though

Re: Solutions for hand injury from computer use

2010-07-01 Thread Aahz
In article 20100701190033.15cea...@geekmail.invalid, Andreas Waldenburger use...@geekmail.invalid wrote: Since we're on the subject: I find the best solution for lots of typing with a little mousing to be a keyboard with a pointing stick (or track point or nav stick or whatever people call it).

Anyone using GPG or PGP encryption/signatures in your Python apps?

2010-07-01 Thread python
Curious if any of you are using GPG or PGP encryption and/or signatures in your Python apps? In particular are you: 1. clearsigning specific emails? 2. validating clearsigned emails from others? 3. encrypting/decrypting files? 4. generating signatures for files that you are exchanging/posting

Re: escape character / csv module

2010-07-01 Thread anon
V N wrote: string \x00 has a length of 1. When I use the csv module to write that to a file csv_f = csv.writer(file(test.csv,wb),delimiter=|) csv_f.writerow([\x00,zz]) The output file looks like this: |zz Is it possible to force the writer to write that string? This will do what you want:

Re: Solutions for hand injury from computer use

2010-07-01 Thread Cameron Simpson
On 01Jul2010 19:00, Andreas Waldenburger use...@geekmail.invalid wrote: | On Thu, 01 Jul 2010 09:35:31 -0700 Ethan Furman et...@stoneleaf.us | wrote: | I'll have to give the left-handed mouse a try... hmmm -- not too bad | so far. | | Since we're on the subject: I find the best solution for

Re: escape character / csv module

2010-07-01 Thread MRAB
V N wrote: string \x00 has a length of 1. When I use the csv module to write that to a file csv_f = csv.writer(file(test.csv,wb),delimiter=|) csv_f.writerow([\x00,zz]) The output file looks like this: |zz Is it possible to force the writer to write that string? It can write \x01 but not

python ctypes to int main(int argc, char *argv[])

2010-07-01 Thread lkcl
hi, i need to convert an application (fontforge) to a python library. yes, libfontforge is already done as is libgdraw (fontforge-pygtk) but i need to make fontforge the _application_ a python application, using the same ctypes trick that's already done. my question is, therefore, how do i

Re: python ctypes to int main(int argc, char *argv[])

2010-07-01 Thread Stefan Behnel
lkcl, 01.07.2010 22:22: i need to convert an application (fontforge) to a python library. yes, libfontforge is already done as is libgdraw (fontforge-pygtk) but i need to make fontforge the _application_ a python application, using the same ctypes trick that's already done. my question is,

  1   2   3   >