Re: I'm stuck in Python!

2008-05-14 Thread castironpi
On May 14, 4:32 am, [EMAIL PROTECTED] wrote: > On May 13, 9:55 pm, alex23 <[EMAIL PROTECTED]> wrote: > > > On May 14, 5:41 am, "inhahe" <[EMAIL PROTECTED]> wrote: > > > > "George Sakkis" <[EMAIL PROTECTED]> wrote in message > > > > You must be new here. It is an AS (Artificial Stupidity) trolling b

Re: Best way to delimit a list?

2008-05-14 Thread castironpi
On May 13, 11:25 pm, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On Tue, 13 May 2008 04:14:16 -0700 (PDT), [EMAIL PROTECTED] > declaimed the following in comp.lang.python: > > > So f is a list, rather than a file object, of which os.open would have > > returned (my initial typo redirected the mi

Re: Python and Flaming Thunder

2008-05-14 Thread castironpi
On May 14, 5:53 am, "J. Clifford Dyer" <[EMAIL PROTECTED]> wrote: > On Tue, 2008-05-13 at 10:33 -0700, Dave Parker wrote: > > > You sound like a commercial. > > > Get Flaming Thunder for only $19.95!  It slices, it dices! > > > > And while programs and libraries written in assembly may be twice as

pretty generic question

2008-05-14 Thread castironpi
I have to talk about coding. I'm thinking about traffic, freight, scheduling, microcontrols, and acoustics. I have pretty basics understandings of the controls of computers. My knowledge is a little contrary or rare; I specialize in information interfaces, but they're not very expensive to copy,

Re: PPyGui emulator

2008-05-14 Thread castironpi
On May 14, 7:54 am, [EMAIL PROTECTED] wrote: > Stef, > > Looks great!! > > Malcolm Nice touch on the Spin / Slider / Progress. Wink. -- http://mail.python.org/mailman/listinfo/python-list

named tuple mutability

2008-05-14 Thread castironpi
I'm concerned over the future of Python. Should tuples be named? -- http://mail.python.org/mailman/listinfo/python-list

Re: What is self.file = file for?

2008-05-14 Thread castironpi
On May 14, 2:26 am, Bruno Desthuilliers wrote: > afrobeard a écrit : > > (top-post corrected. Please, do not top-post). > > > > > > > On May 14, 3:08 am, [EMAIL PROTECTED] wrote: > >> Hello! > > >> I have trouble understanding something in this code snippet: > > >> class TextReader: > >>     """Pr

Re: Usenet

2008-05-14 Thread castironpi
On May 14, 11:58 am, "Terry Reedy" <[EMAIL PROTECTED]> wrote: > "Duncan Booth" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > | I also recommend Gmane which provides a free news server for most mailing > | lists: mailing lists are a lot more manageable when gatewayed into a news

Re: Purpose of operator package

2008-05-14 Thread castironpi
On May 14, 11:58 am, Matthew Woodcraft <[EMAIL PROTECTED]> wrote: > I V  <[EMAIL PROTECTED]> wrote: > > > I hadn't heard of operator.truth before. Does it do anything different > > from bool(x) ? > > Not really. It was occasionally useful before the bool type existed; > now it's just a leftover. >

Re: I'm stuck in Python!

2008-05-14 Thread castironpi
On May 14, 5:25 am, [EMAIL PROTECTED] wrote: > On May 14, 4:32 am, [EMAIL PROTECTED] wrote: > > > On May 13, 9:55 pm, alex23 <[EMAIL PROTECTED]> wrote: > > > > On May 14, 5:41 am, "inhahe" <[EMAIL PROTECTED]> wrote: > > > > > "George Sakkis" <[EMAIL PROTECTED]> wrote in message > > > > > You must b

Re: Python and Flaming Thunder

2008-05-14 Thread castironpi
On May 14, 8:43 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > >>> That's also a myth.  For example, if C is easy to maintain, why is > >>> Flaming Thunder the only single-asset 8-by-8 shotgun cross compiler in > >>> the world?  There should be lots of single-asset 8-by-8 shotgun cross > >>> c

Re: I'm stuck in Python!

2008-05-14 Thread castironpi
On May 14, 12:51 pm, [EMAIL PROTECTED] wrote: > On May 14, 5:25 am, [EMAIL PROTECTED] wrote: > > > > > > > On May 14, 4:32 am, [EMAIL PROTECTED] wrote: > > > > On May 13, 9:55 pm, alex23 <[EMAIL PROTECTED]> wrote: > > > > > On May 14, 5:41 am, "inhahe" <[EMAIL PROTECTED]> wrote: > > > > > > "George

Re: named tuple mutability

2008-05-14 Thread castironpi
On May 14, 12:41 pm, Raymond Hettinger <[EMAIL PROTECTED]> wrote: > > Should tuples be named? > > Yes. Not clearly should. Sequences ought be. If you're on the right time for both, can't the library hold the B? -- http://mail.python.org/mailman/listinfo/python-list

Re: I'm stuck in Python!

2008-05-14 Thread castironpi
On May 14, 1:02 pm, [EMAIL PROTECTED] wrote: > On May 14, 12:51 pm, [EMAIL PROTECTED] wrote: > > > > > > > On May 14, 5:25 am, [EMAIL PROTECTED] wrote: > > > > On May 14, 4:32 am, [EMAIL PROTECTED] wrote: > > > > > On May 13, 9:55 pm, alex23 <[EMAIL PROTECTED]> wrote: > > > > > > On May 14, 5:41 am

Re: I'm stuck in Python!

2008-05-14 Thread castironpi
On May 14, 1:06 pm, [EMAIL PROTECTED] wrote: > On May 14, 1:02 pm, [EMAIL PROTECTED] wrote: > > > > > > > On May 14, 12:51 pm, [EMAIL PROTECTED] wrote: > > > > On May 14, 5:25 am, [EMAIL PROTECTED] wrote: > > > > > On May 14, 4:32 am, [EMAIL PROTECTED] wrote: > > > > > > On May 13, 9:55 pm, alex23

Re: I'm stuck in Python!

2008-05-14 Thread castironpi
On May 14, 1:07 pm, [EMAIL PROTECTED] wrote: > On May 14, 1:06 pm, [EMAIL PROTECTED] wrote: > > > > > > > On May 14, 1:02 pm, [EMAIL PROTECTED] wrote: > > > > On May 14, 12:51 pm, [EMAIL PROTECTED] wrote: > > > > > On May 14, 5:25 am, [EMAIL PROTECTED] wrote: > > > > > > On May 14, 4:32 am, [EMAIL

Re: I'm stuck in Python!

2008-05-14 Thread castironpi
On May 14, 1:09 pm, [EMAIL PROTECTED] wrote: > On May 14, 1:07 pm, [EMAIL PROTECTED] wrote: > > > > > > > On May 14, 1:06 pm, [EMAIL PROTECTED] wrote: > > > > On May 14, 1:02 pm, [EMAIL PROTECTED] wrote: > > > > > On May 14, 12:51 pm, [EMAIL PROTECTED] wrote: > > > > > > On May 14, 5:25 am, [EMAIL

Re: I'm stuck in Python!

2008-05-14 Thread castironpi
On May 14, 1:16 pm, [EMAIL PROTECTED] wrote: > On May 14, 1:09 pm, [EMAIL PROTECTED] wrote: > > > > > > > On May 14, 1:07 pm, [EMAIL PROTECTED] wrote: > > > > On May 14, 1:06 pm, [EMAIL PROTECTED] wrote: > > > > > On May 14, 1:02 pm, [EMAIL PROTECTED] wrote: > > > > > > On May 14, 12:51 pm, [EMAIL

Re: named tuple mutability

2008-05-14 Thread castironpi
On May 14, 1:04 pm, [EMAIL PROTECTED] wrote: > On May 14, 12:41 pm, Raymond Hettinger <[EMAIL PROTECTED]> wrote: > > > > Should tuples be named? > > > Yes. > > Not clearly should.  Sequences ought be.  If you're on the right time > for both, can't the library hold the B? On the web, you can. Both

Re: named tuple mutability

2008-05-14 Thread castironpi
On May 14, 5:01 pm, Ben Finney <[EMAIL PROTECTED]> wrote: > "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > > On 14 mai, 18:20, [EMAIL PROTECTED] wrote: > > > I'm concerned over the future of Python.  Should tuples be named? > > > Obviously not, unless they should. > > Clearly they should, unless

Re: Using file objects with elementtree

2008-05-14 Thread castironpi
On May 14, 3:09 pm, dj <[EMAIL PROTECTED]> wrote: > Hello, > > Rather then holding my XML document in memory before writing it to > disk, I want to create a file object that elementtree will write each > element to has it is created. Does any one know how to do that ? > > Here is my code so, far: >

Re: named tuple mutability

2008-05-14 Thread castironpi
On May 14, 5:28 pm, [EMAIL PROTECTED] wrote: > On May 14, 5:01 pm, Ben Finney <[EMAIL PROTECTED]> > wrote: > > > "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > > > On 14 mai, 18:20, [EMAIL PROTECTED] wrote: > > > > I'm concerned over the future of Python.  Should tuples be named? > > > > Obvious

Re: named tuple mutability

2008-05-14 Thread castironpi
On May 14, 12:41 pm, Raymond Hettinger <[EMAIL PROTECTED]> wrote: > > Should tuples be named? > > Yes. Good; they're named sequences. -- http://mail.python.org/mailman/listinfo/python-list

Re: I'm stuck in Python!

2008-05-14 Thread castironpi
On May 14, 1:22 pm, "Dan Upton" <[EMAIL PROTECTED]> wrote: > On Tue, May 13, 2008 at 10:55 PM, alex23 <[EMAIL PROTECTED]> wrote: > > On May 14, 5:41 am, "inhahe" <[EMAIL PROTECTED]> wrote: > >> "George Sakkis" <[EMAIL PROTECTED]> wrote in message > >> > You must be new here. It is an AS (Artificial

Re: named tuple mutability

2008-05-14 Thread castironpi
On May 14, 6:21 pm, [EMAIL PROTECTED] wrote: > On May 14, 12:41 pm, Raymond Hettinger <[EMAIL PROTECTED]> wrote: > > > > Should tuples be named? > > > Yes. > > Good; they're named sequences. Can anyone make sling-shots of words? What's the splatter? -- http://mail.python.org/mailman/listinfo/pyth

Re: I'm stuck in Python!

2008-05-14 Thread castironpi
On May 14, 6:28 pm, [EMAIL PROTECTED] wrote: > On May 14, 1:22 pm, "Dan Upton" <[EMAIL PROTECTED]> wrote: > > > On Tue, May 13, 2008 at 10:55 PM, alex23 <[EMAIL PROTECTED]> wrote: > > > On May 14, 5:41 am, "inhahe" <[EMAIL PROTECTED]> wrote: > > >> "George Sakkis" <[EMAIL PROTECTED]> wrote in messa

Re: Using file objects with elementtree

2008-05-14 Thread castironpi
On May 14, 5:41 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > dj schrieb: > > > Hello, > > > Rather then holding my XML document in memory before writing it to > > disk, I want to create a file object that elementtree will write each > > element to has it is created. Does any one know how to

Re: I'm stuck in Python!

2008-05-14 Thread castironpi
On May 14, 1:06 pm, [EMAIL PROTECTED] wrote: > On May 14, 1:02 pm, [EMAIL PROTECTED] wrote: > > > > > > > On May 14, 12:51 pm, [EMAIL PROTECTED] wrote: > > > > On May 14, 5:25 am, [EMAIL PROTECTED] wrote: > > > > > On May 14, 4:32 am, [EMAIL PROTECTED] wrote: > > > > > > On May 13, 9:55 pm, alex23

Greetings

2008-05-15 Thread castironpi
Hail, Earthlings, I have an easy request to take over the newsgroup ("Taking Over the Newsgroup", "TOTN"). May I? Pros: Lifetime benefits Google product Talking Cons: World domination No crossing Social aspect* Read the fine print: *Social: Subscribers to TOTN may come talking, tel

send yield

2008-05-15 Thread castironpi
Why can't I write this? -- http://mail.python.org/mailman/listinfo/python-list

Re: no inputstream?

2008-05-15 Thread castironpi
On May 15, 8:37 am, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > On Thu, 15 May 2008 06:08:35 -0700, max wrote: > > i currently have locations of the mp3s in question as strings, which > > works for parsing local files, but gives me a "No such file or > > directory" error when it tries to

Re: send yield

2008-05-15 Thread castironpi
On May 15, 8:32 am, castironpi <[EMAIL PROTECTED]> wrote: > Why can't I write this? It is twice one. Now: Where's My Volume? -- http://mail.python.org/mailman/listinfo/python-list

Re: Running an interactive interpreter inside a python

2008-05-15 Thread castironpi
On May 15, 6:26 am, [EMAIL PROTECTED] (R. Bernstein) wrote: > "Alan J. Salmoni" <[EMAIL PROTECTED]> writes: > > > I'm not sure if this is exactly what you're after, but try looking > > into the 'code' module. > > > It's fairly easy to make an interactive interpreter that runs within > > your progra

Re: no inputstream?

2008-05-15 Thread castironpi
On May 15, 9:02 am, max <[EMAIL PROTECTED]> wrote: > On May 15, 9:51 am, castironpi <[EMAIL PROTECTED]> wrote: > > > > > > > On May 15, 8:37 am, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > > > > On Thu, 15 May 2008 06:08:35

Re: send yield

2008-05-15 Thread castironpi
On May 15, 9:04 am, Bruno Desthuilliers wrote: > castironpi a écrit : > > > Why can't I write this? > > Because one or more of the "t", "h", "i", "s" keys are missing from your > keyboard ? No; they're all here. -- http://mail.python.org/mailman/listinfo/python-list

Re: send yield

2008-05-15 Thread castironpi
On May 15, 9:07 am, castironpi <[EMAIL PROTECTED]> wrote: > On May 15, 9:04 am, Bruno Desthuilliers > [EMAIL PROTECTED]> wrote: > > castironpi a écrit : > > > > Why can't I write this? > > > Because one or more of the "t", "h",

Re: send yield

2008-05-15 Thread castironpi
On May 15, 9:26 am, "Dan Upton" <[EMAIL PROTECTED]> wrote: > On Thu, May 15, 2008 at 9:32 AM, castironpi <[EMAIL PROTECTED]> wrote: > > Why can't I write this? > > -- > > Because your antecedent is undefined? Of the two ways to play, just to say #de

Re: send yield

2008-05-15 Thread castironpi
On May 15, 4:28 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On 15 mai, 16:40, castironpi <[EMAIL PROTECTED]> wrote: > > > > > > > On May 15, 9:26 am, "Dan Upton" <[EMAIL PROTECTED]> wrote: > > > > On Thu, May 15,

Re: ?

2008-05-15 Thread castironpi
On May 15, 6:07 pm, afrobeard <[EMAIL PROTECTED]> wrote: > The following proposed solution is not intended to be a solution, it > goes completely against the zen of python. [Type import this into the > python command interpreter] > > I brought it down to two lines:- > > l = range(6) > [1 if b!=4 el

Re: send yield

2008-05-15 Thread castironpi
On May 15, 6:16 pm, castironpi <[EMAIL PROTECTED]> wrote: > On May 15, 4:28 pm, "[EMAIL PROTECTED]" > > > > > > <[EMAIL PROTECTED]> wrote: > > On 15 mai, 16:40, castironpi <[EMAIL PROTECTED]> wrote: > > > > On May 15, 9:26 am, &q

Re: no inputstream?

2008-05-15 Thread castironpi
On May 15, 6:42 pm, John Krukoff <[EMAIL PROTECTED]> wrote: > On Thu, 2008-05-15 at 17:32 -0600, John Krukoff wrote: > > On Thu, 2008-05-15 at 17:11 -0600, John Krukoff wrote: > > > On Thu, 2008-05-15 at 15:35 -0700, max wrote: > > > > On May 15, 6:18 pm, MRAB <[EMAIL PROTECTED]> wrote: > > > > > O

Re: call tree tool?

2008-05-15 Thread castironpi
On May 15, 4:26 pm, "Dan Upton" <[EMAIL PROTECTED]> wrote: > On Thu, May 15, 2008 at 5:19 PM, jay graves <[EMAIL PROTECTED]> wrote: > > On May 15, 3:47 pm, [EMAIL PROTECTED] wrote: > >> I'm cleaning up some old code, and want to see what orphan > >> functions might be sitting around. > > >> Is ther

Re: Using file objects with elementtree

2008-05-15 Thread castironpi
On May 15, 1:14 pm, Stefan Behnel <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > What do we render? > > Sur. > > Stefan I'm pretty sure 'inputs' come from the real world. I guess the fear would be my hands aren't happy. Concerns include age fitity, a propriety, and making up words. B

Re: send yield

2008-05-15 Thread castironpi
On May 15, 6:43 pm, castironpi <[EMAIL PROTECTED]> wrote: > On May 15, 6:16 pm, castironpi <[EMAIL PROTECTED]> wrote: > > > > > > > On May 15, 4:28 pm, "[EMAIL PROTECTED]" > > > <[EMAIL PROTECTED]> wrote: > > > On 15 mai, 16:

Re: send yield

2008-05-15 Thread castironpi
On May 15, 7:07 pm, "Dan Upton" <[EMAIL PROTECTED]> wrote: > On Thu, May 15, 2008 at 8:05 PM, Luis Zarrabeitia <[EMAIL PROTECTED]> wrote: > > On Thursday 15 May 2008 09:32:37 am castironpi wrote: > >> Why can't I write this? > >> -- &

Re: send yield

2008-05-15 Thread castironpi
On May 15, 7:16 pm, castironpi <[EMAIL PROTECTED]> wrote: > On May 15, 6:43 pm, castironpi <[EMAIL PROTECTED]> wrote: > > > > > > > On May 15, 6:16 pm, castironpi <[EMAIL PROTECTED]> wrote: > > > > On May 15, 4:28 pm, "[EMAIL PROTECTED]&q

Re: ?

2008-05-15 Thread castironpi
On May 15, 6:52 pm, afrobeard <[EMAIL PROTECTED]> wrote: > l.__delslice__(0,len(l)) is an expression as it returns None which is > a value > > On May 16, 4:23 am, castironpi <[EMAIL PROTECTED]> wrote: > > > > > On May 15, 6:07 pm, afrobeard <[EMAIL PROTECT

Re: call tree tool?

2008-05-15 Thread castironpi
On May 15, 6:53 pm, castironpi <[EMAIL PROTECTED]> wrote: > On May 15, 4:26 pm, "Dan Upton" <[EMAIL PROTECTED]> wrote: > > > > > > > On Thu, May 15, 2008 at 5:19 PM, jay graves <[EMAIL PROTECTED]> wrote: > > > On May 15, 3:47 pm, [EMAI

Re: call tree tool?

2008-05-15 Thread castironpi
On May 15, 9:27 pm, castironpi <[EMAIL PROTECTED]> wrote: > On May 15, 6:53 pm, castironpi <[EMAIL PROTECTED]> wrote: > > > > > > > On May 15, 4:26 pm, "Dan Upton" <[EMAIL PROTECTED]> wrote: > > > > On Thu, May 15, 2008 at 5:19 PM,

Re: no inputstream?

2008-05-15 Thread castironpi
On May 15, 6:49 pm, castironpi <[EMAIL PROTECTED]> wrote: > On May 15, 6:42 pm, John Krukoff <[EMAIL PROTECTED]> wrote: > > > > > > > On Thu, 2008-05-15 at 17:32 -0600, John Krukoff wrote: > > > On Thu, 2008-05-15 at 17:11 -0600, John Krukoff wrote: &

Re: send yield

2008-05-15 Thread castironpi
On May 15, 7:40 pm, castironpi <[EMAIL PROTECTED]> wrote: > On May 15, 7:07 pm, "Dan Upton" <[EMAIL PROTECTED]> wrote: > > > On Thu, May 15, 2008 at 8:05 PM, Luis Zarrabeitia <[EMAIL PROTECTED]> wrote: > > > On Thursday 15 May 2008 09:32:37 a

Re: call tree tool?

2008-05-15 Thread castironpi
On May 15, 9:30 pm, castironpi <[EMAIL PROTECTED]> wrote: > On May 15, 9:27 pm, castironpi <[EMAIL PROTECTED]> wrote: > > > > > > > On May 15, 6:53 pm, castironpi <[EMAIL PROTECTED]> wrote: > > > > On May 15, 4:26 pm, "Dan Upton" <

morning in Python

2008-05-16 Thread castironpi
e first thing, for a range of values of I. (Yes I have tackled decentralization and contribution in identity before.) It's possible that I just like to write, in which case, fol. the foregoing, I might just like to write messages, plainly ignorant of who replies. My name still works as castir

Re: datamining .txt-files, library?

2008-05-16 Thread castironpi
On May 16, 3:22 am, [EMAIL PROTECTED] wrote: > look at module re (rgular expression) or pyparser > > seehttp://nedbatchelder.com/text/python-parsers.html This ties in to 'call tree tool?' from yesterday. Do we have any visualization modules? My two examples were 're' and 'call trees' -- http://m

Re: default object comparison considered harmful?

2008-05-16 Thread castironpi
On May 16, 7:23 am, Bruno Desthuilliers wrote: > Kay Schluehr a écrit : > > > > > > > On 16 Mai, 10:03, "A.T.Hofkamp" <[EMAIL PROTECTED]> wrote: > >> Hello all, > > >> Yesterday we found the cause of a bug that has caused problems for a long > >> time. > >> It appeared to be the following: > > >>

Re: default object comparison considered harmful?

2008-05-16 Thread castironpi
On May 16, 8:18 am, castironpi <[EMAIL PROTECTED]> wrote: > On May 16, 7:23 am, Bruno Desthuilliers > > > > > [EMAIL PROTECTED]> wrote: > > Kay Schluehr a écrit : > > > > On 16 Mai, 10:03, "A.T.Hofkamp" <[EMAIL PROTECTED]> wrote: >

Re: default object comparison considered harmful?

2008-05-16 Thread castironpi
On May 16, 8:18 am, castironpi <[EMAIL PROTECTED]> wrote: > On May 16, 7:23 am, Bruno Desthuilliers > > > > > [EMAIL PROTECTED]> wrote: > > Kay Schluehr a écrit : > > > > On 16 Mai, 10:03, "A.T.Hofkamp" <[EMAIL PROTECTED]> wrote: >

Re: Instance of class "object"

2008-05-16 Thread castironpi
On May 16, 4:26 am, Peter Otten <[EMAIL PROTECTED]> wrote: > 甜瓜 wrote: > > I wonder why below does not work. > > > a = object() > > a.b = 1# dynamic bind attribute failed... > > The implementation of slots depends on that behaviour: > > http://docs.python.org/ref/slots.html > > > Does t

Re: Instance of class "object"

2008-05-16 Thread castironpi
On May 16, 8:51 am, castironpi <[EMAIL PROTECTED]> wrote: > On May 16, 4:26 am, Peter Otten <[EMAIL PROTECTED]> wrote: > > > 甜瓜 wrote: > > > I wonder why below does not work. > > > > a = object() > > > a.b = 1# dynamic bind attribu

Re: default object comparison considered harmful?

2008-05-16 Thread castironpi
On May 16, 8:35 am, castironpi <[EMAIL PROTECTED]> wrote: > On May 16, 8:18 am, castironpi <[EMAIL PROTECTED]> wrote: > > > > > > > On May 16, 7:23 am, Bruno Desthuilliers > > [EMAIL PROTECTED]> wrote: > > > Kay Schluehr a écrit : >

Re: Instance of class "object"

2008-05-16 Thread castironpi
On May 16, 4:16 am, Hrvoje Niksic <[EMAIL PROTECTED]> wrote: > "甜瓜" <[EMAIL PROTECTED]> writes: > > Howdy, > > I wonder why below does not work. > > > a = object() > > a.b = 1# dynamic bind attribute failed... > > Because the default object class doesn't have a dict or other > indicatio

Re: Instance of class "object"

2008-05-16 Thread castironpi
On May 16, 8:56 am, castironpi <[EMAIL PROTECTED]> wrote: > On May 16, 8:51 am, castironpi <[EMAIL PROTECTED]> wrote: > > > > > > > On May 16, 4:26 am, Peter Otten <[EMAIL PROTECTED]> wrote: > > > > 甜瓜 wrote: > > > > I wond

Re: default object comparison considered harmful?

2008-05-16 Thread castironpi
On May 16, 9:10 am, castironpi <[EMAIL PROTECTED]> wrote: > On May 16, 8:35 am, castironpi <[EMAIL PROTECTED]> wrote: > > > > > > > On May 16, 8:18 am, castironpi <[EMAIL PROTECTED]> wrote: > > > > On May 16, 7:23 am, Bruno Desthuilliers

Re: Instance of class "object"

2008-05-16 Thread castironpi
On May 16, 9:41 am, castironpi <[EMAIL PROTECTED]> wrote: > On May 16, 8:56 am, castironpi <[EMAIL PROTECTED]> wrote: > > > > > > > On May 16, 8:51 am, castironpi <[EMAIL PROTECTED]> wrote: > > > > On May 16, 4:26 am, Peter Otten <[EMA

Re: Instance of class "object"

2008-05-16 Thread castironpi
On May 16, 10:21 am, castironpi <[EMAIL PROTECTED]> wrote: > On May 16, 9:41 am, castironpi <[EMAIL PROTECTED]> wrote: > > > > > > > On May 16, 8:56 am, castironpi <[EMAIL PROTECTED]> wrote: > > > > On May 16, 8:51 am, castironpi <[EMAIL PRO

Re: Instance of class "object"

2008-05-16 Thread castironpi
On May 16, 4:26 am, Peter Otten <[EMAIL PROTECTED]> wrote: > 甜瓜 wrote: > > I wonder why below does not work. > > > a = object() > > a.b = 1# dynamic bind attribute failed... > > The implementation of slots depends on that behaviour: > > http://docs.python.org/ref/slots.html > > > Does t

Re: Pyparsing Question

2008-05-16 Thread castironpi
On May 16, 6:43 am, Ant <[EMAIL PROTECTED]> wrote: > Hi all, > > I have a question on PyParsing. I am trying to create a parser for a > hierarchical todo list format, but have hit a stumbling block. I have > parsers for the header of the list (title and description), and the body > (recursive desce

Re: Pyparsing Question

2008-05-16 Thread castironpi
On May 16, 10:45 am, Ant <[EMAIL PROTECTED]> wrote: > Hi Paul, > > > LineStart *really* wants to be parsed at the beginning of a line. > > Your textline reads up to but not including the LineEnd.  Try making > > these changes. > > > 1. Change textline to: > > >      textline = pp.Combine( > >      

Re: morning in Python

2008-05-16 Thread castironpi
On May 16, 10:58 am, "inhahe" <[EMAIL PROTECTED]> wrote: > I'm not an expert in this but what does it mean to emphasize state?  It > seems the opposite of that would be a) functional programming, and b) > passing parameters instead of using global or relatively local variables. > And maybe c) corou

Re: can't delete from a dictionary in a loop

2008-05-16 Thread castironpi
On May 16, 4:51 pm, Hans Nowak <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > On 16 mai, 23:34, "[EMAIL PROTECTED]" > > <[EMAIL PROTECTED]> wrote: > >> On 16 mai, 23:28, Hans Nowak <[EMAIL PROTECTED]> wrote: > > >>> Dan Upton wrote: > for pid in procs_dict: > > (snip) > >>>    for p

Re: save dictionary for later use?

2008-05-16 Thread castironpi
On May 16, 4:29 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On 16 mai, 22:24, globalrev <[EMAIL PROTECTED]> wrote: > > > > > > > On 16 Maj, 21:22, jay graves <[EMAIL PROTECTED]> wrote: > > > > On May 16, 2:17 pm, globalrev <[EMAIL PROTECTED]> wrote: > > > > > i extract info from one file a

Re: write to specific line in file?

2008-05-16 Thread castironpi
On May 16, 2:25 pm, 7stud <[EMAIL PROTECTED]> wrote: > globalrev wrote: > > i ahve a program that takes certain textsnippets out of one file and > > inserts them into another. > > > problem is it jsut overwrites the first riow every time. > > > i want to insert every new piece of text into the next

Re: save dictionary for later use?

2008-05-16 Thread castironpi
On May 16, 5:19 pm, castironpi <[EMAIL PROTECTED]> wrote: > On May 16, 4:29 pm, "[EMAIL PROTECTED]" > > > > > > <[EMAIL PROTECTED]> wrote: > > On 16 mai, 22:24, globalrev <[EMAIL PROTECTED]> wrote: > > > > On 16 Maj, 21:22,

Re: write to specific line in file?

2008-05-16 Thread castironpi
On May 16, 5:22 pm, castironpi <[EMAIL PROTECTED]> wrote: > On May 16, 2:25 pm, 7stud <[EMAIL PROTECTED]> wrote: > > > > > > > globalrev wrote: > > > i ahve a program that takes certain textsnippets out of one file and > > > inserts them i

Re: can't delete from a dictionary in a loop

2008-05-17 Thread castironpi
On May 17, 3:06 am, George Sakkis <[EMAIL PROTECTED]> wrote: > On May 16, 5:22 pm, "Dan Upton" <[EMAIL PROTECTED]> wrote: > > > > > > > This might be more information than necessary, but it's the best way I > > can think of to describe the question without being too vague. > > > The task: > > > I h

Re: save dictionary for later use?

2008-05-17 Thread castironpi
On May 16, 4:23 pm, Hans Nowak <[EMAIL PROTECTED]> wrote: > globalrev wrote: > > pickle.dumps(mg) > > pickle.load(mg) > > > 'dict' object has no attribute 'readline' > > dumps load(well i dont know but i get no complaint but running load > > generates that error) > > The 'loads' and 'dumps' methods

Re: morning in Python

2008-05-17 Thread castironpi
Full day later, I think it, to emphasize state, would prioritize context. The reason for the huge ramble was, believe it or not, namespace conflict... as though any other states around here might nose in. And thanks to 'inhahe' for coming back with the question. ...Which would explain next move

Re: Instance of class "object"

2008-05-17 Thread castironpi
On May 17, 1:09 am, Carl Banks <[EMAIL PROTECTED]> wrote: > On May 16, 4:46 am, "甜瓜" <[EMAIL PROTECTED]> wrote: > > > Howdy, > > I wonder why below does not work. > > > a = object() > > a.b = 1# dynamic bind attribute failed... > > > To make it correct, we have to create a new class: >

Re: save dictionary for later use?

2008-05-17 Thread castironpi
On May 17, 3:52 am, castironpi <[EMAIL PROTECTED]> wrote: > On May 16, 4:23 pm, Hans Nowak <[EMAIL PROTECTED]> > wrote: > > > > > > > globalrev wrote: > > > pickle.dumps(mg) > > > pickle.load(mg) > > > > 'dict' ob

Re: Using Python for programming algorithms

2008-05-17 Thread castironpi
On May 17, 5:32 pm, Vicent Giner <[EMAIL PROTECTED]> wrote: > Hello. > > I am new to Python. It seems a very interesting language to me. Its > simplicity is very attractive. > > However, it is usually said that Python is not a compiled but > interpreted programming language —I mean, it is not like

Re: write to specific line in file?

2008-05-17 Thread castironpi
On May 16, 5:57 pm, castironpi <[EMAIL PROTECTED]> wrote: > On May 16, 5:22 pm, castironpi <[EMAIL PROTECTED]> wrote: > > > > > > > On May 16, 2:25 pm, 7stud <[EMAIL PROTECTED]> wrote: > > > > globalrev wrote: > > > > i

Re: morning in Python

2008-05-17 Thread castironpi
On May 17, 5:35 am, Ivan Illarionov <[EMAIL PROTECTED]> wrote: > On Sat, 17 May 2008 02:57:08 -0700, castironpi wrote: > > Full day later, I think it, to emphasize state, would prioritize > > context.  The reason for the huge ramble was, believe it or not, > > namespac

Re: morning in Python

2008-05-17 Thread castironpi
On May 17, 9:22 pm, castironpi <[EMAIL PROTECTED]> wrote: > On May 17, 5:35 am, Ivan Illarionov <[EMAIL PROTECTED]> wrote: > > > > > > > On Sat, 17 May 2008 02:57:08 -0700, castironpi wrote: > > > Full day later, I think it, to emphasize state, would

Re: do you fail at FizzBuzz? simple prog test

2008-05-20 Thread castironpi
On May 20, 6:57 am, Wolfgang Grafen <[EMAIL PROTECTED]> wrote: > globalrev schrieb: > > > > > > >http://reddit.com/r/programming/info/18td4/comments > > > claims people take a lot of time to write a simple program like this: > > > "Write a program that prints the numbers from 1 to 100. But for > >

Re: What is wrong with my Python threading?

2008-05-20 Thread castironpi
On May 20, 8:19 am, "Chuckk Hubbard" <[EMAIL PROTECTED]> wrote: > #!/usr/bin/python > > #why doesn't this run both threads simultaneously? > #Thanks for any help. > #Chuckk > > import threading > import time > > def printesc(thrd): >     for i in range(10): >         time.sleep(1) >         print t

Re: test mult vars to same value, how to shorten expr?

2008-05-20 Thread castironpi
On May 20, 2:08 am, Peter Otten <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > >  if i want o test: > > if a == 5 and b ==5 and c==5 ... z==5 > > > is there some synctactic suagr for this? > > > rather than maiking one of my own i mean, something built-in like: > > if a,b,c... z == 5: > >

Re: Distributing applications that use 3rd party modules

2008-05-20 Thread castironpi
On May 20, 7:56 am, Mike Driscoll <[EMAIL PROTECTED]> wrote: > On May 17, 4:42 am, eliben <[EMAIL PROTECTED]> wrote: > > > > > > > Hello, > > > I'm getting into Python now after years of Perl, and as part of my > > research I must understand how to do some common tasks I need. > > > I have a bunch

Re: compressing short strings?

2008-05-20 Thread castironpi
On May 20, 8:24 am, [EMAIL PROTECTED] wrote: > bearophile: > > > So you need to store only this 11 byte long string to be able to > > decompress it. > > Note that maybe there is a header, that may contain changing things, > like the length of the compressed text, etc. > > Bye, > bearophile I've re

Re: conventions/requirements for 'is' vs '==', 'not vs '!=', etc

2008-05-20 Thread castironpi
On May 20, 5:04 am, Duncan Booth <[EMAIL PROTECTED]> wrote: > John Salerno <[EMAIL PROTECTED]> wrote: > a = 'this is longer' > b = 'this is longer' > a == b > > True > a is b > > False > > > In the above example, Python has created only one string called > > 'hello' and both x a

persistent deque

2008-05-20 Thread castironpi
I'd like a persistent deque, such that the instance operations all commit atomicly to file system. -- http://mail.python.org/mailman/listinfo/python-list

Re: "indexed properties"...

2008-05-20 Thread castironpi
On May 20, 10:40 am, "David C. Ullrich" <[EMAIL PROTECTED]> wrote: > In article <[EMAIL PROTECTED]>, > > > > > >  pataphor <[EMAIL PROTECTED]> wrote: > > On Tue, 20 May 2008 06:12:01 -0500 > > David C. Ullrich <[EMAIL PROTECTED]> wrote: > > > > Well, ok. Like I said, I never _took_ the position tha

Re: Write bits in file

2008-05-20 Thread castironpi
On May 20, 10:30 am, Nick Craig-Wood <[EMAIL PROTECTED]> wrote: > Monica Leko <[EMAIL PROTECTED]> wrote: > >  On May 18, 2:20?pm, Ken Starks <[EMAIL PROTECTED]> wrote: > > > You want your file considered as a sequence of bits rather > > > than a sequence of 8-bit bytes, do you? > > >  Yes. > > > >

Re: conventions/requirements for 'is' vs '==', 'not vs '!=', etc

2008-05-20 Thread castironpi
On May 20, 11:49 am, [EMAIL PROTECTED] wrote: > On May 20, 9:04 am, castironpi <[EMAIL PROTECTED]> wrote: > > > > > > > On May 20, 5:04 am, Duncan Booth <[EMAIL PROTECTED]> wrote: > > > > John Salerno <[EMAIL PROTECTED]> wrote: > >

Re: Python doesn't understand %userprofile%

2008-06-10 Thread castironpi
On Jun 10, 6:51 pm, TheSaint <[EMAIL PROTECTED]> wrote: > On 00:11, mercoledì 11 giugno 2008 Tim Golden wrote: > > > "%USERPROFILE%/dir/file". > > os.environ('USERPROFILE') should return an info regarding that environment > variable. > I guess that, not yet tried. > -- > Mailsweeper Home :http://it

Re: very large graph

2008-06-24 Thread castironpi
On Jun 24, 5:58 am, "A.T.Hofkamp" <[EMAIL PROTECTED]> wrote: > On 2008-06-24, MRAB <[EMAIL PROTECTED]> wrote: > > > On Jun 24, 1:26 am, [EMAIL PROTECTED] wrote: > >> I need to represent the hyperlinks between a large number of HTML > >> files as a graph.  My non-directed graph will have about 63,00

Re: "in"consistency?

2008-07-08 Thread castironpi
On Jul 7, 5:02 pm, Gary Herron <[EMAIL PROTECTED]> wrote: > Nick Dumas wrote: > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > [1,2] in [1,2,3] checks to see if the list [1,2] is an item in [1,2,3]. > > Because the list [1,2,3] only contains the integers 1,2,3, the code > > returns a Fal

Re: "in"consistency?

2008-07-09 Thread castironpi
On Jul 8, 2:25 pm, Terry Reedy <[EMAIL PROTECTED]> wrote: > castironpi wrote: > > Strings are not containers. > > Library Reference/Built-in Types/Sequence Types says > "Strings contain Unicode characters." > Perhaps you have a different notion of contain/co

Re: Using the Random Module.

2008-07-11 Thread castironpi
On Jul 11, 1:29 pm, WDC <[EMAIL PROTECTED]> wrote: > On Jul 11, 2:15 pm, Michiel Overtoom <[EMAIL PROTECTED]> wrote: > > > You wrote... > > >Is there a better way to do that besides doing this: > > > random.randint(0, 9) > > >09657398671238769 > > > Maybe this? >

Re: why is "self" used in OO-Python?

2008-07-12 Thread castironpi
On Jul 12, 1:01 pm, Duncan Booth <[EMAIL PROTECTED]> wrote: > ssecorp <[EMAIL PROTECTED]> wrote: > > 1. Why do I have to pass self into every method in a class? Since I am > > always doing why cant this be automated or abstracted away? > > Are the instances where I won't pass self? > > I imagine th

Re: singletons

2008-07-16 Thread castironpi
On Jul 16, 5:20 pm, Craig Allen <[EMAIL PROTECTED]> wrote: > Hey, forgive me for just diving in, but I have a question I was > thinking of asking on another list but it really is a general question > so let me ask it here.  It's about how to approach making singletons. > Background: I've been progr

<    1   2   3   4   5   6   7   8   9   10   >