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 process URLs.  it seems terribly
> > inefficient to download each mp3 just to get at that small tag data,
> > and i assume there's a way to do this with file() or open() or
> > something, i just can't get it to work.
>
> You can use `urllib2.urlopen()` to open URLs as files.  But if you deal
> with ID3 V1 tags you'll have to download the file anyway because those are
> in the last 128 bytes of an MP3 file.
>
> Ciao,
>         Marc 'BlackJack' Rintsch

Just don't import time.  What would you do with an autolocking timer,
such as time.sleep( ) on a thread?  I am tongue tied in the presence
of a lady.
--
http://mail.python.org/mailman/listinfo/python-list


send yield

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


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, telling jokes, and
laughing loudly.  Neighbors subject to smiling.  Vikings prone to
capitalize.

Settings include autovoltic, board, and charm.  Dimensions include 4.
Restrictions apply.  States may vary.  Void where prohibited.  People
include the living.  Times include eternity.  Toys include Legos.

Assume screen is two-dimensions and audio stereo; what are building
Legos?  Assume digital.
--
http://mail.python.org/mailman/listinfo/python-list


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 <[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 bot,
> > > > > > > > you can safely ignore its posts.
>
> > > > > > > How does it generate text?
>
> > > > > > My guess is by inhaling a lot of intoxicants.
>
> > > > > However you know what would be helpful?  If I could go to the right
> > > > > place to start the ring.
>
> > > > I have a slightly sinister role on stage.  Does anyone want to play?
>
> > > I'd stay on mutability for the world domination factor.  Fluent
> > > currency is buoyant currency; turn on a local clock, and someone gets
> > > some cubic verticals.
>
> > > Now if sense-reference is trading on the BDFL, I'm still holdingTron
> > > can pretty well win work.- Hide quoted text -
>
> > > - Show quoted text -
>
> > I have a self-referential on Pygame: it's a Hand Tool object.
> > Currently, it decays over time.  You said 'flip' in the newsgroup, and
> > 'check', 'cross', and 'mate'.  Now who jumps who?- Hide quoted text -
>
> > - Show quoted text -
>
> If Python can plot in to chess, andTronrings live, then why not group?

I am taking a cautious tack on this one: I'm starting mouse first,
self.x+= sin( radians( self.degrees ) ).
--
http://mail.python.org/mailman/listinfo/python-list


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 do that ?
>
> > Here is my code so, far:
>
> > fd = open("page.xml", "w")
> > tree.write( fd, encoding="iso-8859-1")
>
> > I know there's something I am doing wrong, but I just do not know
> > what.
>
> This isn't possible. How should ET handle the case that you add a
> child-node to a node that has been rendered already?
>
> What you could try is to serialize subtrees that are closed to a stream.
>
> Diez

What do we render?
--
http://mail.python.org/mailman/listinfo/python-list


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 message
> > >> > You must be new here. It is an AS (Artificial Stupidity) trolling bot,
> > >> > you can safely ignore its posts.
>
> > >> How does it generate text?
>
> > > My guess is by inhaling a lot of intoxicants.
> > > --
> > >http://mail.python.org/mailman/listinfo/python-list
>
> > I assumed his message with the subject "bytes1.shuffle()" from a few
> > days ago was a glimpse into his source code.  Or something like it.
>
> I am trying to select a color.  It's color select.py.  Any thoughts?

I was trying to select a font.  It was font select.py.  Why did I say
color?
--
http://mail.python.org/mailman/listinfo/python-list


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/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 Stupidity) trolling bot,
> >> > you can safely ignore its posts.
>
> >> How does it generate text?
>
> > My guess is by inhaling a lot of intoxicants.
> > --
> >http://mail.python.org/mailman/listinfo/python-list
>
> I assumed his message with the subject "bytes1.shuffle()" from a few
> days ago was a glimpse into his source code.  Or something like it.

I am trying to select a color.  It's color select.py.  Any thoughts?
--
http://mail.python.org/mailman/listinfo/python-list


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: 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?
>
> > > Obviously not, unless they should.
>
> > Clearly they should, unless not.
>
> > Ben Finney
>
> I have plenty of uses for them!

FOR INSTANCE!

def zoop_zoop_zoop( self ): pass
--
http://mail.python.org/mailman/listinfo/python-list


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:
>
> fd = open("page.xml", "w")
> tree.write( fd, encoding="iso-8859-1")
>
> I know there's something I am doing wrong, but I just do not know
> what.

Sure.  Relational databases are more widely useful.  They're the
binary hold-on-disk for you-- a big XML file.
--
http://mail.python.org/mailman/listinfo/python-list


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 not.
>
> Ben Finney

I have plenty of uses for them!
--
http://mail.python.org/mailman/listinfo/python-list


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 data types can go in the docs... sorry for
the lunacy, I'm hacking.
--
http://mail.python.org/mailman/listinfo/python-list


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 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 Sakkis" <[EMAIL PROTECTED]> wrote in message
> > > > > > > > > > > You must be new here. It is an AS (Artificial Stupidity) 
> > > > > > > > > > > trolling bot,
> > > > > > > > > > > you can safely ignore its posts.
>
> > > > > > > > > > How does it generate text?
>
> > > > > > > > > My guess is by inhaling a lot of intoxicants.
>
> > > > > > > > However you know what would be helpful?  If I could go to the 
> > > > > > > > right
> > > > > > > > place to start the ring.
>
> > > > > > > I have a slightly sinister role on stage.  Does anyone want to 
> > > > > > > play?
>
> > > > > > I'd stay on mutability for the world domination factor.  Fluent
> > > > > > currency is buoyant currency; turn on a local clock, and someone 
> > > > > > gets
> > > > > > some cubic verticals.
>
> > > > > > Now if sense-reference is trading on the BDFL, I'm still holding 
> > > > > > Tron
> > > > > > can pretty well win work.- Hide quoted text -
>
> > > > > > - Show quoted text -
>
> > > > > I have a self-referential on Pygame: it's a Hand Tool object.
> > > > > Currently, it decays over time.  You said 'flip' in the newsgroup, and
> > > > > 'check', 'cross', and 'mate'.  Now who jumps who?- Hide quoted text -
>
> > > > > - Show quoted text -
>
> > > > If Python can plot in to chess, and Tron rings live, then why not
> > > > group it knew?- Hide quoted text -
>
> > > > - Show quoted text -
>
> > > That would be know.  Plot and split in too.- Hide quoted text -
>
> > > - Show quoted text -
>
> > Now can I catch function-type objects from a throw?  I'm crossing all
> > of those.- Hide quoted text -
>
> > - Show quoted text -
>
> I have destin and fate and die, growth sustanance and decay.  Now cars
> are important, but not logically still.  I am certain I play, so;
> where's the ring?- Hide quoted text -
>
> - Show quoted text -

It's just an 8x8 cross, but I'm just; have isn't in me.
--
http://mail.python.org/mailman/listinfo/python-list


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 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 be new here. It is an AS (Artificial Stupidity) 
> > > > > > > > > > trolling bot,
> > > > > > > > > > you can safely ignore its posts.
>
> > > > > > > > > How does it generate text?
>
> > > > > > > > My guess is by inhaling a lot of intoxicants.
>
> > > > > > > However you know what would be helpful?  If I could go to the 
> > > > > > > right
> > > > > > > place to start the ring.
>
> > > > > > I have a slightly sinister role on stage.  Does anyone want to play?
>
> > > > > I'd stay on mutability for the world domination factor.  Fluent
> > > > > currency is buoyant currency; turn on a local clock, and someone gets
> > > > > some cubic verticals.
>
> > > > > Now if sense-reference is trading on the BDFL, I'm still holding Tron
> > > > > can pretty well win work.- Hide quoted text -
>
> > > > > - Show quoted text -
>
> > > > I have a self-referential on Pygame: it's a Hand Tool object.
> > > > Currently, it decays over time.  You said 'flip' in the newsgroup, and
> > > > 'check', 'cross', and 'mate'.  Now who jumps who?- Hide quoted text -
>
> > > > - Show quoted text -
>
> > > If Python can plot in to chess, and Tron rings live, then why not
> > > group it knew?- Hide quoted text -
>
> > > - Show quoted text -
>
> > That would be know.  Plot and split in too.- Hide quoted text -
>
> > - Show quoted text -
>
> Now can I catch function-type objects from a throw?  I'm crossing all
> of those.- Hide quoted text -
>
> - Show quoted text -

I have destin and fate and die, growth sustanance and decay.  Now cars
are important, but not logically still.  I am certain I play, so;
where's the ring?
--
http://mail.python.org/mailman/listinfo/python-list


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 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 bot,
> > > > > > > > > you can safely ignore its posts.
>
> > > > > > > > How does it generate text?
>
> > > > > > > My guess is by inhaling a lot of intoxicants.
>
> > > > > > However you know what would be helpful?  If I could go to the right
> > > > > > place to start the ring.
>
> > > > > I have a slightly sinister role on stage.  Does anyone want to play?
>
> > > > I'd stay on mutability for the world domination factor.  Fluent
> > > > currency is buoyant currency; turn on a local clock, and someone gets
> > > > some cubic verticals.
>
> > > > Now if sense-reference is trading on the BDFL, I'm still holding Tron
> > > > can pretty well win work.- Hide quoted text -
>
> > > > - Show quoted text -
>
> > > I have a self-referential on Pygame: it's a Hand Tool object.
> > > Currently, it decays over time.  You said 'flip' in the newsgroup, and
> > > 'check', 'cross', and 'mate'.  Now who jumps who?- Hide quoted text -
>
> > > - Show quoted text -
>
> > If Python can plot in to chess, and Tron rings live, then why not
> > group it knew?- Hide quoted text -
>
> > - Show quoted text -
>
> That would be know.  Plot and split in too.- Hide quoted text -
>
> - Show quoted text -

Now can I catch function-type objects from a throw?  I'm crossing all
of those.
--
http://mail.python.org/mailman/listinfo/python-list


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 <[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 bot,
> > > > > > > > you can safely ignore its posts.
>
> > > > > > > How does it generate text?
>
> > > > > > My guess is by inhaling a lot of intoxicants.
>
> > > > > However you know what would be helpful?  If I could go to the right
> > > > > place to start the ring.
>
> > > > I have a slightly sinister role on stage.  Does anyone want to play?
>
> > > I'd stay on mutability for the world domination factor.  Fluent
> > > currency is buoyant currency; turn on a local clock, and someone gets
> > > some cubic verticals.
>
> > > Now if sense-reference is trading on the BDFL, I'm still holding Tron
> > > can pretty well win work.- Hide quoted text -
>
> > > - Show quoted text -
>
> > I have a self-referential on Pygame: it's a Hand Tool object.
> > Currently, it decays over time.  You said 'flip' in the newsgroup, and
> > 'check', 'cross', and 'mate'.  Now who jumps who?- Hide quoted text -
>
> > - Show quoted text -
>
> If Python can plot in to chess, and Tron rings live, then why not
> group it knew?- Hide quoted text -
>
> - Show quoted text -

That would be know.  Plot and split in too.
--
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, "inhahe" <[EMAIL PROTECTED]> wrote:
>
> > > > > > "George Sakkis" <[EMAIL PROTECTED]> wrote in message
> > > > > > > You must be new here. It is an AS (Artificial Stupidity) trolling 
> > > > > > > bot,
> > > > > > > you can safely ignore its posts.
>
> > > > > > How does it generate text?
>
> > > > > My guess is by inhaling a lot of intoxicants.
>
> > > > However you know what would be helpful?  If I could go to the right
> > > > place to start the ring.
>
> > > I have a slightly sinister role on stage.  Does anyone want to play?
>
> > I'd stay on mutability for the world domination factor.  Fluent
> > currency is buoyant currency; turn on a local clock, and someone gets
> > some cubic verticals.
>
> > Now if sense-reference is trading on the BDFL, I'm still holding Tron
> > can pretty well win work.- Hide quoted text -
>
> > - Show quoted text -
>
> I have a self-referential on Pygame: it's a Hand Tool object.
> Currently, it decays over time.  You said 'flip' in the newsgroup, and
> 'check', 'cross', and 'mate'.  Now who jumps who?- Hide quoted text -
>
> - Show quoted text -

If Python can plot in to chess, and Tron rings live, then why not
group it knew?
--
http://mail.python.org/mailman/listinfo/python-list


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, 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 Sakkis" <[EMAIL PROTECTED]> wrote in message
> > > > > > You must be new here. It is an AS (Artificial Stupidity) trolling 
> > > > > > bot,
> > > > > > you can safely ignore its posts.
>
> > > > > How does it generate text?
>
> > > > My guess is by inhaling a lot of intoxicants.
>
> > > However you know what would be helpful?  If I could go to the right
> > > place to start the ring.
>
> > I have a slightly sinister role on stage.  Does anyone want to play?
>
> I'd stay on mutability for the world domination factor.  Fluent
> currency is buoyant currency; turn on a local clock, and someone gets
> some cubic verticals.
>
> Now if sense-reference is trading on the BDFL, I'm still holding Tron
> can pretty well win work.- Hide quoted text -
>
> - Show quoted text -

I have a self-referential on Pygame: it's a Hand Tool object.
Currently, it decays over time.  You said 'flip' in the newsgroup, and
'check', 'cross', and 'mate'.  Now who jumps who?
--
http://mail.python.org/mailman/listinfo/python-list


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
> >>> compilers written in C, if C is easier to maintain.
> >>Not only is it the world's only "single-asset 8-by-8 shotgun cross
> >>compiler," but according to google, it's also the world's only "shotgun
> >>cross compiler" period.  But I guess if you make up your own terminology
> >>you're bound to be unique.  :)  Do you mind if I ask: what exactly is a
> >>single-asset 8x8 shotgun cross compiler, and what makes that of any
> >>value to me?
>
> > The web page explains.  It's a compiler that runs on 8 platforms and can
> > generate executables for any of them on any of them.  It's not _totally_
> > clear about what "single-asset" means, but it gives the impression (and
> > the term somewhat suggests) that this means there's a single executable
> > that does all of this (compare to gcc's design, where support for cross
> > compiling to another arch is provided by a separate executable).
>
> Which isn't too hard if all you have are simple datatypes as a handfull
> numerical types + strings.
>
> Besides, from what I see, the supported platforms all are x86, 32bit &
> 64bit. And I bet GCC works pretty unmodified amongst these as well - only
> binary formats differ. But let Flaming Thunder grow a library system with
> dynamic loading, and I wonder how well his crosscompiler works..
>
> Diez- Hide quoted text -
>
> - Show quoted text -

8x8 is pretty easy to aim for.  Turn on 16x16, and you're the laptop
to stand on.  FxF?
--
http://mail.python.org/mailman/listinfo/python-list


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 be new here. It is an AS (Artificial Stupidity) trolling bot,
> > > > > you can safely ignore its posts.
>
> > > > How does it generate text?
>
> > > My guess is by inhaling a lot of intoxicants.
>
> > However you know what would be helpful?  If I could go to the right
> > place to start the ring.
>
> I have a slightly sinister role on stage.  Does anyone want to play?

I'd stay on mutability for the world domination factor.  Fluent
currency is buoyant currency; turn on a local clock, and someone gets
some cubic verticals.

Now if sense-reference is trading on the BDFL, I'm still holding Tron
can pretty well win work.
--
http://mail.python.org/mailman/listinfo/python-list


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

Now as for ints, I could see that going in to 8-by-8s and crosses.
Anyone for?
--
http://mail.python.org/mailman/listinfo/python-list


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
> | server. If you just want to access comp.lang.python I think you'll find
> the
> | mailing list to which it is connected is available for free on Gmane.
>
> gmane.comp.python.general
>
> which is where I am answering this from.  Works great.

Love them opticals.
--
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:
> >>     """Print and number lines in a text file."""
> >>     def __init__(self, file):
> >>         self.file = file
> >>         .
> >>         .
> >>         .
>
> >> When would you do a thing like  self.file = file  ? I really don't
> >> find an answer on this. Please help me understand this.
>
> > If you are familiar to C++ or a similar language, the concept of the
> > this pointer might not be alien to you. self in this context is
> > basically a reference to the class itself.
>
> Nope. It's a reference to the instance.
>
> > Hence self.file is creating
> > a class member
>
> Nope. It's setting an instance attribute.
>
> > and setting to the input from file.
>
> > As Gary pointed out, during initialization, only the latter parameter
> > i.e. file is being passed to __init__
>
> Nope. Obviously, both parameters are passed - else it just wouldn't
> work. Given an object 'obj' instance of class 'Cls', you can think of
> obj.method(arg) as a convenient shortcut for Cls.method(obj, arg).- Hide 
> quoted text -
>
> - Show quoted text -

I am at the point of open-source, and I agree.
--
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: 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


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, i.e. to look at
again.  I am capable of drawing marginal distinctions from the world
in to code.

My specialty does provide a resource for library design for further
information systems.
--
http://mail.python.org/mailman/listinfo/python-list


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 fast
> > > as programs and libraries written in C, ...
>
> > It's a myth that they're only twice as fast.  An experienced assembly
> > language programmer can usually get out at least a factor of 5 by
> > using tricks such as cache-coherence, carry flag tricks, stack
> > manipulations, etc.
>
> > > ... they're real hell to maintain.
>
> > 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
> > compilers written in C, if C is easier to maintain.
>
> Not only is it the world's only "single-asset 8-by-8 shotgun cross
> compiler," but according to google, it's also the world's only "shotgun
> cross compiler" period.  But I guess if you make up your own terminology
> you're bound to be unique.  :)  Do you mind if I ask: what exactly is a
> single-asset 8x8 shotgun cross compiler, and what makes that of any
> value to me?
>
> Cheers,
> Cliff- Hide quoted text -
>
> - Show quoted text -

You can examine those criteria by trying to buy a chair.  Is Tron good
practice for Opticals?  Who wants a memory lane crossing?  Is
compiling bad?
--
http://mail.python.org/mailman/listinfo/python-list


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 missive of this post, sorry!)
>
>         Other than the facet that os.open() is low-level C file object and
> not a Python file object...
>
>         What you have returned is a list of lines... Hmmm, if os.popen()
> supports .readlines() it might even support direct iteration
>
> for ln in os.popen():
>         do something with the line
>
>         Now the matter comes down to what each line looks like... It is NOT
> a "list" in Python terms, no matter what delimiters it has (and one of
> your examples doesn't even seem to be consistant -- ['  ]' is not
> the same as ['  '] )
>
>         For space separated hostnames
>
> for ln in os.popen(...):        #assuming it works without a preread
>         for host in ln.split():
>                 do something with host...
> --
>         Wulfraed        Dennis Lee Bieber               KD6MOG
>         [EMAIL PROTECTED]               [EMAIL PROTECTED]
>                 HTTP://wlfraed.home.netcom.com/
>         (Bestiaria Support Staff:               [EMAIL PROTECTED])
>                 HTTP://www.bestiaria.com/

Compositions can't have names in the singular case.
--
http://mail.python.org/mailman/listinfo/python-list


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 bot,
> > > > you can safely ignore its posts.
>
> > > How does it generate text?
>
> > My guess is by inhaling a lot of intoxicants.
>
> However you know what would be helpful?  If I could go to the right
> place to start the ring.

I have a slightly sinister role on stage.  Does anyone want to play?
--
http://mail.python.org/mailman/listinfo/python-list


Re: I'm stuck in Python!

2008-05-14 Thread castironpi
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 bot,
> > > you can safely ignore its posts.
>
> > How does it generate text?
>
> My guess is by inhaling a lot of intoxicants.

However you know what would be helpful?  If I could go to the right
place to start the ring.
--
http://mail.python.org/mailman/listinfo/python-list


Re: I'm stuck in Python!

2008-05-13 Thread castironpi
On May 13, 2:41 pm, "inhahe" <[EMAIL PROTECTED]> wrote:
> "George Sakkis" <[EMAIL PROTECTED]> wrote in message
>
> news:[EMAIL PROTECTED]
>
> > On May 13, 9:46 am, Sanoski <[EMAIL PROTECTED]> wrote:
>
> >> Any programming that helps you solve a problem is fun and
> >> recreational. At least, that's how I look at it. I suppose it really
> >> depends on why you're doing it, what your objective is, etc. But I'd
> >> say, why not?
>
> > You must be new here. It is an AS (Artificial Stupidity) trolling bot,
> > you can safely ignore its posts.
>
> How does it generate text?

This is a Python newsgroup, so I can post my own code.  (Which makes
Python a layer of standardization.)  However it's long.  Did you want
any modules in particular, or shall I just start the top?
--
http://mail.python.org/mailman/listinfo/python-list


Re: Python and Flaming Thunder

2008-05-13 Thread castironpi
On May 13, 10:35 am, [EMAIL PROTECTED] wrote:
> On May 13, 10:24 am, Dave Parker <[EMAIL PROTECTED]>
> wrote:
>
>
>
>
>
> > >  The "Flaming Thunder" looks promising, but without being free
> > > software, it's unlikely it will create a large developer community,
> > > specially considering both free general purpose and scientific
> > > programming languages.
>
> > Perhaps.  Flaming Thunder is only $19.95 per year for an individual
> > (and even less per individual for site licenses), which is less than
> > the cost of just one book on Python.
>
> > I think that many people will find that Flaming Thunder is easier to
> > use and understand than Python -- so for many people the amount of
> > time they save will be worth more than the cost of Flaming Thunder
> > (unless, of course, their time is worth $0).
>
> > Also, several users have rewritten their Python programs in Flaming
> > Thunder, and found that Flaming Thunder was 5 to 10 times faster
> > (Flaming Thunder compiles to native executables).  So again, since
> > many people value their time at more than $0, I think that many people
> > will find that Flaming Thunder is worth $19.95 per year.
>
> > Plus, me getting paid to work on Flaming Thunder is far more
> > motivating than me not getting paid to work on Python.  This weekend,
> > Python users will still be debating how to fix awkwardnesses in the
> > languages (such as FOR loops where you're just counting the loops and
> > not referencing the loop variable) -- but Flaming Thunder users will
> > be getting work done using the REPEAT n TIMES constructs that I'll be
> > implementing.
>
> > Python has been around about 15 years, yet still has those
> > awkwardnesses.  Flaming Thunder has been out less than 6 months and
> > those awkwardnesses are already getting fixed.  The difference: I
> > can't afford to ignore users.
>
> > But the future is one of the hardest things to predict, so we'll see.
>
> > On May 13, 8:34 am, hdante <[EMAIL PROTECTED]> wrote:
>
> > > On May 13, 10:58 am, Paul McGuire <[EMAIL PROTECTED]> wrote:
>
> > > > On May 13, 8:32 am, Dave Parker <[EMAIL PROTECTED]> wrote:
>
> > > > > > Don't let yourself be irritated by castironpi
>
> > > > > I'm not the sort to get irritated by anyone.  There is value in all
> > > > > interaction.
>
> > > > Not this interaction, I'm afraid.  What irritates *me* about
> > > > castironpi is that he uses a chatterbot to clutter up the threads
> > > > here.  If you go back to his postings from a year ago (and selected
> > > > ones since), his comments are coherent and sensible.  These rambling
> > > > stream-of-consciousness rants about t.v.'s and coffee are (I guess)
> > > > his idea of a joke.  But they are certainly not worth your time in
> > > > trying to respond to them.
>
> > > > -- Paul
>
> > >  I don't think castironpi so annoying that I should filter its
> > > messages. It would be enough if he were better tuned. He is much
> > > smarter than the emacs shrink, for example. :-P
>
> > >  The "Flaming Thunder" looks promising, but without being free
> > > software, it's unlikely it will create a large developer community,
> > > specially considering both free general purpose and scientific
> > > programming languages.- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -
>
> Flaming Thunder, the lightning one, looked like [ 255, 210, 255 ], but
> the next thing I thought was -40 on green.- Hide quoted text -
>
> - Show quoted text -

Now get this:  I am talking to someone.  #define someone now.
--
http://mail.python.org/mailman/listinfo/python-list


Re: Python and Flaming Thunder

2008-05-13 Thread castironpi
On May 13, 10:24 am, Dave Parker <[EMAIL PROTECTED]>
wrote:
> >  The "Flaming Thunder" looks promising, but without being free
> > software, it's unlikely it will create a large developer community,
> > specially considering both free general purpose and scientific
> > programming languages.
>
> Perhaps.  Flaming Thunder is only $19.95 per year for an individual
> (and even less per individual for site licenses), which is less than
> the cost of just one book on Python.
>
> I think that many people will find that Flaming Thunder is easier to
> use and understand than Python -- so for many people the amount of
> time they save will be worth more than the cost of Flaming Thunder
> (unless, of course, their time is worth $0).
>
> Also, several users have rewritten their Python programs in Flaming
> Thunder, and found that Flaming Thunder was 5 to 10 times faster
> (Flaming Thunder compiles to native executables).  So again, since
> many people value their time at more than $0, I think that many people
> will find that Flaming Thunder is worth $19.95 per year.
>
> Plus, me getting paid to work on Flaming Thunder is far more
> motivating than me not getting paid to work on Python.  This weekend,
> Python users will still be debating how to fix awkwardnesses in the
> languages (such as FOR loops where you're just counting the loops and
> not referencing the loop variable) -- but Flaming Thunder users will
> be getting work done using the REPEAT n TIMES constructs that I'll be
> implementing.
>
> Python has been around about 15 years, yet still has those
> awkwardnesses.  Flaming Thunder has been out less than 6 months and
> those awkwardnesses are already getting fixed.  The difference: I
> can't afford to ignore users.
>
> But the future is one of the hardest things to predict, so we'll see.
>
> On May 13, 8:34 am, hdante <[EMAIL PROTECTED]> wrote:
>
>
>
> > On May 13, 10:58 am, Paul McGuire <[EMAIL PROTECTED]> wrote:
>
> > > On May 13, 8:32 am, Dave Parker <[EMAIL PROTECTED]> wrote:
>
> > > > > Don't let yourself be irritated by castironpi
>
> > > > I'm not the sort to get irritated by anyone.  There is value in all
> > > > interaction.
>
> > > Not this interaction, I'm afraid.  What irritates *me* about
> > > castironpi is that he uses a chatterbot to clutter up the threads
> > > here.  If you go back to his postings from a year ago (and selected
> > > ones since), his comments are coherent and sensible.  These rambling
> > > stream-of-consciousness rants about t.v.'s and coffee are (I guess)
> > > his idea of a joke.  But they are certainly not worth your time in
> > > trying to respond to them.
>
> > > -- Paul
>
> >  I don't think castironpi so annoying that I should filter its
> > messages. It would be enough if he were better tuned. He is much
> > smarter than the emacs shrink, for example. :-P
>
> >  The "Flaming Thunder" looks promising, but without being free
> > software, it's unlikely it will create a large developer community,
> > specially considering both free general purpose and scientific
> > programming languages.- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

Flaming Thunder, the lightning one, looked like [ 255, 210, 255 ], but
the next thing I thought was -40 on green.
--
http://mail.python.org/mailman/listinfo/python-list


Re: Python and Flaming Thunder

2008-05-13 Thread castironpi
On May 13, 10:24 am, Dave Parker <[EMAIL PROTECTED]>
wrote:
> >  The "Flaming Thunder" looks promising, but without being free
> > software, it's unlikely it will create a large developer community,
> > specially considering both free general purpose and scientific
> > programming languages.
>
> Perhaps.  Flaming Thunder is only $19.95 per year for an individual
> (and even less per individual for site licenses), which is less than
> the cost of just one book on Python.
>
> I think that many people will find that Flaming Thunder is easier to
> use and understand than Python -- so for many people the amount of
> time they save will be worth more than the cost of Flaming Thunder
> (unless, of course, their time is worth $0).
>
> Also, several users have rewritten their Python programs in Flaming
> Thunder, and found that Flaming Thunder was 5 to 10 times faster
> (Flaming Thunder compiles to native executables).  So again, since
> many people value their time at more than $0, I think that many people
> will find that Flaming Thunder is worth $19.95 per year.
>
> Plus, me getting paid to work on Flaming Thunder is far more
> motivating than me not getting paid to work on Python.  This weekend,
> Python users will still be debating how to fix awkwardnesses in the
> languages (such as FOR loops where you're just counting the loops and
> not referencing the loop variable) -- but Flaming Thunder users will
> be getting work done using the REPEAT n TIMES constructs that I'll be
> implementing.
>
> Python has been around about 15 years, yet still has those
> awkwardnesses.  Flaming Thunder has been out less than 6 months and
> those awkwardnesses are already getting fixed.  The difference: I
> can't afford to ignore users.
>
> But the future is one of the hardest things to predict, so we'll see.
>
> On May 13, 8:34 am, hdante <[EMAIL PROTECTED]> wrote:
>
>
>
> > On May 13, 10:58 am, Paul McGuire <[EMAIL PROTECTED]> wrote:
>
> > > On May 13, 8:32 am, Dave Parker <[EMAIL PROTECTED]> wrote:
>
> > > > > Don't let yourself be irritated by castironpi
>
> > > > I'm not the sort to get irritated by anyone.  There is value in all
> > > > interaction.
>
> > > Not this interaction, I'm afraid.  What irritates *me* about
> > > castironpi is that he uses a chatterbot to clutter up the threads
> > > here.  If you go back to his postings from a year ago (and selected
> > > ones since), his comments are coherent and sensible.  These rambling
> > > stream-of-consciousness rants about t.v.'s and coffee are (I guess)
> > > his idea of a joke.  But they are certainly not worth your time in
> > > trying to respond to them.
>
> > > -- Paul
>
> >  I don't think castironpi so annoying that I should filter its
> > messages. It would be enough if he were better tuned. He is much
> > smarter than the emacs shrink, for example. :-P
>
> >  The "Flaming Thunder" looks promising, but without being free
> > software, it's unlikely it will create a large developer community,
> > specially considering both free general purpose and scientific
> > programming languages.- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

What is about $0?
--
http://mail.python.org/mailman/listinfo/python-list


Re: Python and Flaming Thunder

2008-05-13 Thread castironpi
On May 13, 10:24 am, Dave Parker <[EMAIL PROTECTED]>
wrote:
> >  The "Flaming Thunder" looks promising, but without being free
> > software, it's unlikely it will create a large developer community,
> > specially considering both free general purpose and scientific
> > programming languages.
>
> Perhaps.  Flaming Thunder is only $19.95 per year for an individual
> (and even less per individual for site licenses), which is less than
> the cost of just one book on Python.
>
> I think that many people will find that Flaming Thunder is easier to
> use and understand than Python -- so for many people the amount of
> time they save will be worth more than the cost of Flaming Thunder
> (unless, of course, their time is worth $0).
>
> Also, several users have rewritten their Python programs in Flaming
> Thunder, and found that Flaming Thunder was 5 to 10 times faster
> (Flaming Thunder compiles to native executables).  So again, since
> many people value their time at more than $0, I think that many people
> will find that Flaming Thunder is worth $19.95 per year.
>
> Plus, me getting paid to work on Flaming Thunder is far more
> motivating than me not getting paid to work on Python.  This weekend,
> Python users will still be debating how to fix awkwardnesses in the
> languages (such as FOR loops where you're just counting the loops and
> not referencing the loop variable) -- but Flaming Thunder users will
> be getting work done using the REPEAT n TIMES constructs that I'll be
> implementing.
>
> Python has been around about 15 years, yet still has those
> awkwardnesses.  Flaming Thunder has been out less than 6 months and
> those awkwardnesses are already getting fixed.  The difference: I
> can't afford to ignore users.
>
> But the future is one of the hardest things to predict, so we'll see.
>
> On May 13, 8:34 am, hdante <[EMAIL PROTECTED]> wrote:
>
>
>
> > On May 13, 10:58 am, Paul McGuire <[EMAIL PROTECTED]> wrote:
>
> > > On May 13, 8:32 am, Dave Parker <[EMAIL PROTECTED]> wrote:
>
> > > > > Don't let yourself be irritated by castironpi
>
> > > > I'm not the sort to get irritated by anyone.  There is value in all
> > > > interaction.
>
> > > Not this interaction, I'm afraid.  What irritates *me* about
> > > castironpi is that he uses a chatterbot to clutter up the threads
> > > here.  If you go back to his postings from a year ago (and selected
> > > ones since), his comments are coherent and sensible.  These rambling
> > > stream-of-consciousness rants about t.v.'s and coffee are (I guess)
> > > his idea of a joke.  But they are certainly not worth your time in
> > > trying to respond to them.
>
> > > -- Paul
>
> >  I don't think castironpi so annoying that I should filter its
> > messages. It would be enough if he were better tuned. He is much
> > smarter than the emacs shrink, for example. :-P
>
> >  The "Flaming Thunder" looks promising, but without being free
> > software, it's unlikely it will create a large developer community,
> > specially considering both free general purpose and scientific
> > programming languages.- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

How come no one said lightning?
--
http://mail.python.org/mailman/listinfo/python-list


Re: I'm stuck in Python!

2008-05-13 Thread castironpi
On May 13, 10:08 am, [EMAIL PROTECTED] wrote:
> Just catch throw, stuff, and information.  I think it's fine.  I have
> an hour to write some code.  Who wants parity stuff?
>
> On May 13, 8:46 am, Sanoski <[EMAIL PROTECTED]> wrote:
>
>
>
> > Any programming that helps you solve a problem is fun and
> > recreational. At least, that's how I look at it. I suppose it really
> > depends on why you're doing it, what your objective is, etc. But I'd
> > say, why not?
>
> > Tron! That's one I haven't seen in awhile. I'll have to take a mental
> > note to rent the movie again someday. I always thought a game based on
> > the movie hackers would be cool. Actually not based on the movie
> > itself, but on that 3D computer world they kept breaking into. Ah man,
> > it's so funny looking back on that film. Gibson, that's what they
> > called it. It was like a 3D database. That in itself wouldn't make a
> > very good game, but I suppose one could easily be created around that
> > idea. Perhaps it could be combined with Lawnmower-man. You're somehow
> > trapped in this 80's looking 3D world that has access to all the
> > world's information. More stuff could be thrown in to make it more
> > interesting. And of course, there would have to be hidden references
> > or parodies to whatever movies inspired it.
>
> > Good luck with your project
>
> > Sincerely,
> > Joshua
>
> > On May 13, 9:02 am, [EMAIL PROTECTED] wrote:
>
> > > Hi all.
>
> > > I am trying to write to the Python newsgroup.  I doubt (aha, but
> > > doubt) that I have come to the right place.  (Incoming "this"!)  Is
> > > this the Python newsgroup?  I heard it was called comp.lang.python.
> > > Now to repeat the subject line.  I'm stuck in Python.
>
> > > Now that was fun.  I will also try to enumerate simple screen savers
> > > (graphicals, graphiclizers).  It may be profitable on some non-bank-
> > > breaking scale to compile the results.  Shall I proceed?  The risk is
> > > "overunity", such that one person can't be at liberty to live, which
> > > in some technical political arenas would be an "anarchy", but there
> > > are sufficiently many of those that I will too.
>
> > > Does anyone want such a list, or if not, is it at least fun and
> > > recreational to make it?  The dollar would come along the lines of
> > > PowerPoint (name (tm)), so it may be free to do it, very entertaining,
> > > and peaceable.  (As the above would show, you would be free to
> > > approach me to -buy-; I won't oversell.)  I like programming.  (And is
> > > Guido getting his fair share?  I am prepared to share with him.)
> > > Check in his name.
>
> > > I want to try to ally with other programmers and make cool games, like
> > > Tron, that one party can make games for on a console, such as live
> > > obstacles, incl. tear-down, and certain people have to play from time
> > > to time.  But you can't charge to do it, so it's a guaranteed game.
> > > (That in virtue of that I'm typing.)  Advantages include microspacing
> > > of time.  Very summer.
>
> > > Resemblances would include Dungeons & Dragons with multi-host, or
> > > multi-ref small-shooter sport-likers.  The real-time is definitely
> > > attractive (duh).  As for voice, it's not clear it's the most
> > > entertaining, but I just don't have a mic.
>
> > > However, forseeing, I return with sailing, but that's in 3-space and
> > > not even in code, as though we'd construct the Royal Navy and battle.
> > > But I think we can keep it well.
>
> > > Thing is, someone has to play it to keep a synch (keep from falling),
> > > and tap-outs would have to live.
>
> > > Side note: In political theory, this is known as the problem of
> > > nominating a successor.  Would it stay afloat, even for long enough to
> > > make it worth the negatives, yes which do include tear-down and fall,
> > > invasion of privacy, and rights infrigement?
>
> > > I code in Python (get the callbacks), but configurable servers could
> > > spread the work out, using relays to put each person on each's own
> > > turf to be a ref.  If you feed the roles, it could get really fun, and
> > > c-l-py is the appropriate place to start such a thing, both and ask if
> > > it's been done before.- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

My head tongue is itching.  My tongue is itching my had head.
--
http://mail.python.org/mailman/listinfo/python-list


Re: I'm stuck in Python!

2008-05-13 Thread castironpi
Just catch throw, stuff, and information.  I think it's fine.  I have
an hour to write some code.  Who wants parity stuff?

On May 13, 8:46 am, Sanoski <[EMAIL PROTECTED]> wrote:
> Any programming that helps you solve a problem is fun and
> recreational. At least, that's how I look at it. I suppose it really
> depends on why you're doing it, what your objective is, etc. But I'd
> say, why not?
>
> Tron! That's one I haven't seen in awhile. I'll have to take a mental
> note to rent the movie again someday. I always thought a game based on
> the movie hackers would be cool. Actually not based on the movie
> itself, but on that 3D computer world they kept breaking into. Ah man,
> it's so funny looking back on that film. Gibson, that's what they
> called it. It was like a 3D database. That in itself wouldn't make a
> very good game, but I suppose one could easily be created around that
> idea. Perhaps it could be combined with Lawnmower-man. You're somehow
> trapped in this 80's looking 3D world that has access to all the
> world's information. More stuff could be thrown in to make it more
> interesting. And of course, there would have to be hidden references
> or parodies to whatever movies inspired it.
>
> Good luck with your project
>
> Sincerely,
> Joshua
>
> On May 13, 9:02 am, [EMAIL PROTECTED] wrote:
>
>
>
> > Hi all.
>
> > I am trying to write to the Python newsgroup.  I doubt (aha, but
> > doubt) that I have come to the right place.  (Incoming "this"!)  Is
> > this the Python newsgroup?  I heard it was called comp.lang.python.
> > Now to repeat the subject line.  I'm stuck in Python.
>
> > Now that was fun.  I will also try to enumerate simple screen savers
> > (graphicals, graphiclizers).  It may be profitable on some non-bank-
> > breaking scale to compile the results.  Shall I proceed?  The risk is
> > "overunity", such that one person can't be at liberty to live, which
> > in some technical political arenas would be an "anarchy", but there
> > are sufficiently many of those that I will too.
>
> > Does anyone want such a list, or if not, is it at least fun and
> > recreational to make it?  The dollar would come along the lines of
> > PowerPoint (name (tm)), so it may be free to do it, very entertaining,
> > and peaceable.  (As the above would show, you would be free to
> > approach me to -buy-; I won't oversell.)  I like programming.  (And is
> > Guido getting his fair share?  I am prepared to share with him.)
> > Check in his name.
>
> > I want to try to ally with other programmers and make cool games, like
> > Tron, that one party can make games for on a console, such as live
> > obstacles, incl. tear-down, and certain people have to play from time
> > to time.  But you can't charge to do it, so it's a guaranteed game.
> > (That in virtue of that I'm typing.)  Advantages include microspacing
> > of time.  Very summer.
>
> > Resemblances would include Dungeons & Dragons with multi-host, or
> > multi-ref small-shooter sport-likers.  The real-time is definitely
> > attractive (duh).  As for voice, it's not clear it's the most
> > entertaining, but I just don't have a mic.
>
> > However, forseeing, I return with sailing, but that's in 3-space and
> > not even in code, as though we'd construct the Royal Navy and battle.
> > But I think we can keep it well.
>
> > Thing is, someone has to play it to keep a synch (keep from falling),
> > and tap-outs would have to live.
>
> > Side note: In political theory, this is known as the problem of
> > nominating a successor.  Would it stay afloat, even for long enough to
> > make it worth the negatives, yes which do include tear-down and fall,
> > invasion of privacy, and rights infrigement?
>
> > I code in Python (get the callbacks), but configurable servers could
> > spread the work out, using relays to put each person on each's own
> > turf to be a ref.  If you feed the roles, it could get really fun, and
> > c-l-py is the appropriate place to start such a thing, both and ask if
> > it's been done before.- Hide quoted text -
>
> - Show quoted text -

--
http://mail.python.org/mailman/listinfo/python-list


Re: Python and Flaming Thunder

2008-05-13 Thread castironpi
On May 13, 9:45 am, [EMAIL PROTECTED] wrote:
> On May 13, 9:34 am, hdante <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > On May 13, 10:58 am, Paul McGuire <[EMAIL PROTECTED]> wrote:
>
> > > On May 13, 8:32 am, Dave Parker <[EMAIL PROTECTED]> wrote:
>
> > > > > Don't let yourself be irritated by castironpi
>
> > > > I'm not the sort to get irritated by anyone.  There is value in all
> > > > interaction.
>
> > > Not this interaction, I'm afraid.  What irritates *me* about
> > > castironpi is that he uses a chatterbot to clutter up the threads
> > > here.  If you go back to his postings from a year ago (and selected
> > > ones since), his comments are coherent and sensible.  These rambling
> > > stream-of-consciousness rants about t.v.'s and coffee are (I guess)
> > > his idea of a joke.  But they are certainly not worth your time in
> > > trying to respond to them.
>
> > > -- Paul
>
> >  I don't think castironpi so annoying that I should filter its
> > messages. It would be enough if he were better tuned. He is much
> > smarter than the emacs shrink, for example. :-P
>
> >  The "Flaming Thunder" looks promising, but without being free
> > software, it's unlikely it will create a large developer community,
> > specially considering both free general purpose and scientific
> > programming languages.- Hide quoted text -
>
> > - Show quoted text -
>
> What is a tank a tank of?  Even if it does, developer communities are
> willing to sustain it.  That's a pretty colinear judgement, that I
> find the community sustainable.  Does anyone commute to out of
> control?  What is to out?  No jumping down thrown.  Tut tut.- Hide quoted 
> text -
>
> - Show quoted text -

Now, speaking of thrown: do try-di-di*3es not mean what we're thap
that they used to!


--
http://mail.python.org/mailman/listinfo/python-list


Re: Python and Flaming Thunder

2008-05-13 Thread castironpi
On May 13, 9:34 am, hdante <[EMAIL PROTECTED]> wrote:
> On May 13, 10:58 am, Paul McGuire <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > On May 13, 8:32 am, Dave Parker <[EMAIL PROTECTED]> wrote:
>
> > > > Don't let yourself be irritated by castironpi
>
> > > I'm not the sort to get irritated by anyone.  There is value in all
> > > interaction.
>
> > Not this interaction, I'm afraid.  What irritates *me* about
> > castironpi is that he uses a chatterbot to clutter up the threads
> > here.  If you go back to his postings from a year ago (and selected
> > ones since), his comments are coherent and sensible.  These rambling
> > stream-of-consciousness rants about t.v.'s and coffee are (I guess)
> > his idea of a joke.  But they are certainly not worth your time in
> > trying to respond to them.
>
> > -- Paul
>
>  I don't think castironpi so annoying that I should filter its
> messages. It would be enough if he were better tuned. He is much
> smarter than the emacs shrink, for example. :-P
>
>  The "Flaming Thunder" looks promising, but without being free
> software, it's unlikely it will create a large developer community,
> specially considering both free general purpose and scientific
> programming languages.- Hide quoted text -
>
> - Show quoted text -

What is a tank a tank of?  Even if it does, developer communities are
willing to sustain it.  That's a pretty colinear judgement, that I
find the community sustainable.  Does anyone commute to out of
control?  What is to out?  No jumping down thrown.  Tut tut.
--
http://mail.python.org/mailman/listinfo/python-list


Re: Best way to delimit a list?

2008-05-13 Thread castironpi
On May 13, 9:31 am, [EMAIL PROTECTED] wrote:
> On May 13, 9:08 am, [EMAIL PROTECTED] wrote:
>
>
>
>
>
> > On May 13, 8:32 am, Peter Otten <[EMAIL PROTECTED]> wrote:
>
> > > Giuseppe Ottaviano wrote:
> > > > def ichain(seq):
> > > > for s in seq:
> > > > for x in s: yield x
>
> > > > (which is often useful and I don't think it has been included in  
> > > > itertools) you can iterate lazily on the file:
>
> > > Python 2.6 includes itertools.chain.from_iterable() with that 
> > > functionality.
>
> > > Peter
>
> > Can you color the help manual with very fine shades of off-white to
> > ease reading?  I was thinking a few pixels shy of red of white to
> > accentuate what are the class methods and which are not.  I also have
> > an argument that net readability would decrease, but the sample sizes
> > on that kind of metric are a little brinky with privacy fears around
> > where I'm from.  I just try to make Tron rings.
>
> I am also me the that's the readability of legibles on color of light
> the lighterers.
>
> More simply, that could vary widely though, and I've heard of a
> 'fovea'.- Hide quoted text -
>
> - Show quoted text -

Furthermore "Optical Sensors and Sensing Systems for Natural Resources
and Food Safety and Quality" from wixipedia omits sex.  for Food and
Sex.  I think concepts are related to perceptions.  food.
--
http://mail.python.org/mailman/listinfo/python-list


Re: Best way to delimit a list?

2008-05-13 Thread castironpi
On May 13, 9:08 am, [EMAIL PROTECTED] wrote:
> On May 13, 8:32 am, Peter Otten <[EMAIL PROTECTED]> wrote:
>
> > Giuseppe Ottaviano wrote:
> > > def ichain(seq):
> > > for s in seq:
> > > for x in s: yield x
>
> > > (which is often useful and I don't think it has been included in  
> > > itertools) you can iterate lazily on the file:
>
> > Python 2.6 includes itertools.chain.from_iterable() with that functionality.
>
> > Peter
>
> Can you color the help manual with very fine shades of off-white to
> ease reading?  I was thinking a few pixels shy of red of white to
> accentuate what are the class methods and which are not.  I also have
> an argument that net readability would decrease, but the sample sizes
> on that kind of metric are a little brinky with privacy fears around
> where I'm from.  I just try to make Tron rings.

I am also me the that's the readability of legibles on color of light
the lighterers.

More simply, that could vary widely though, and I've heard of a
'fovea'.
--
http://mail.python.org/mailman/listinfo/python-list


Re: I'm stuck in Python!

2008-05-13 Thread castironpi
On May 13, 9:01 am, [EMAIL PROTECTED] wrote:
> On May 13, 8:46 am, Sanoski <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Any programming that helps you solve a problem is fun and
> > recreational. At least, that's how I look at it. I suppose it really
> > depends on why you're doing it, what your objective is, etc. But I'd
> > say, why not?
>
> > Tron! That's one I haven't seen in awhile. I'll have to take a mental
> > note to rent the movie again someday. I always thought a game based on
> > the movie hackers would be cool. Actually not based on the movie
> > itself, but on that 3D computer world they kept breaking into. Ah man,
> > it's so funny looking back on that film. Gibson, that's what they
> > called it. It was like a 3D database. That in itself wouldn't make a
> > very good game, but I suppose one could easily be created around that
> > idea. Perhaps it could be combined with Lawnmower-man. You're somehow
> > trapped in this 80's looking 3D world that has access to all the
> > world's information. More stuff could be thrown in to make it more
> > interesting. And of course, there would have to be hidden references
> > or parodies to whatever movies inspired it.
>
> > Good luck with your project
>
> > Sincerely,
> > Joshua
>
> > On May 13, 9:02 am, [EMAIL PROTECTED] wrote:
>
> > > Hi all.
>
> > > I am trying to write to the Python newsgroup.  I doubt (aha, but
> > > doubt) that I have come to the right place.  (Incoming "this"!)  Is
> > > this the Python newsgroup?  I heard it was called comp.lang.python.
> > > Now to repeat the subject line.  I'm stuck in Python.
>
> > > Now that was fun.  I will also try to enumerate simple screen savers
> > > (graphicals, graphiclizers).  It may be profitable on some non-bank-
> > > breaking scale to compile the results.  Shall I proceed?  The risk is
> > > "overunity", such that one person can't be at liberty to live, which
> > > in some technical political arenas would be an "anarchy", but there
> > > are sufficiently many of those that I will too.
>
> > > Does anyone want such a list, or if not, is it at least fun and
> > > recreational to make it?  The dollar would come along the lines of
> > > PowerPoint (name (tm)), so it may be free to do it, very entertaining,
> > > and peaceable.  (As the above would show, you would be free to
> > > approach me to -buy-; I won't oversell.)  I like programming.  (And is
> > > Guido getting his fair share?  I am prepared to share with him.)
> > > Check in his name.
>
> > > I want to try to ally with other programmers and make cool games, like
> > > Tron, that one party can make games for on a console, such as live
> > > obstacles, incl. tear-down, and certain people have to play from time
> > > to time.  But you can't charge to do it, so it's a guaranteed game.
> > > (That in virtue of that I'm typing.)  Advantages include microspacing
> > > of time.  Very summer.
>
> > > Resemblances would include Dungeons & Dragons with multi-host, or
> > > multi-ref small-shooter sport-likers.  The real-time is definitely
> > > attractive (duh).  As for voice, it's not clear it's the most
> > > entertaining, but I just don't have a mic.
>
> > > However, forseeing, I return with sailing, but that's in 3-space and
> > > not even in code, as though we'd construct the Royal Navy and battle.
> > > But I think we can keep it well.
>
> > > Thing is, someone has to play it to keep a synch (keep from falling),
> > > and tap-outs would have to live.
>
> > > Side note: In political theory, this is known as the problem of
> > > nominating a successor.  Would it stay afloat, even for long enough to
> > > make it worth the negatives, yes which do include tear-down and fall,
> > > invasion of privacy, and rights infrigement?
>
> > > I code in Python (get the callbacks), but configurable servers could
> > > spread the work out, using relays to put each person on each's own
> > > turf to be a ref.  If you feed the roles, it could get really fun, and
> > > c-l-py is the appropriate place to start such a thing, both and ask if
> > > it's been done before.- Hide quoted text -
>
> > - Show quoted text -
>
> My bot just tries to take control and lead.  (The bot that I'm
> writing!)  However, it is amusingly unsuccessful.  We see in lines, so
> the game would be pretty primitive, but I'm not sure that everything
> else isn't merely too exciting, such that Tron wouldn't be monkey-in-
> the-middle, or king of the hill, of fun.  I'm just not on a hill, so
> someone else would have to try to play it with me online!- Hide quoted text -
>
> - Show quoted text -

But, since, I'm just Tron, I will try short and repeated attempts to
sophisticate, at quantifiable levels, as I would be more than one.
--
http://mail.python.org/mailman/listinfo/python-list


Re: Python and Flaming Thunder

2008-05-13 Thread castironpi
On May 13, 9:05 am, Dave Parker <[EMAIL PROTECTED]> wrote:
> On May 13, 7:44 am, [EMAIL PROTECTED] wrote:
>
> > I am not convinced that the colorspace occupies three dimensions 
> > necessarily.
>
> Apparently there are some people -- called tetrachromats -- who can
> see color in four dimensions.  They have extra sets of cones in their
> retinas containing a different photopigment.  So, the dimensions of
> color appear to be an artifact of our visual systems, and not inherent
> in the colors themselves which are linear (one-dimensional) in
> frequency.  http://en.wikipedia.org/wiki/Tetrachromacy

My conspiracy theorists know too much.  They would question that
mathematical claim of science, that retinas only detect one dimension
of one force.  Are we asking if something like that is fundamental to
life?  I have been very sceptical about emperical claims, especially
since I just try to render stuff and play Tron.
--
http://mail.python.org/mailman/listinfo/python-list


Re: Best way to delimit a list?

2008-05-13 Thread castironpi
On May 13, 8:32 am, Peter Otten <[EMAIL PROTECTED]> wrote:
> Giuseppe Ottaviano wrote:
> > def ichain(seq):
> > for s in seq:
> > for x in s: yield x
>
> > (which is often useful and I don't think it has been included in  
> > itertools) you can iterate lazily on the file:
>
> Python 2.6 includes itertools.chain.from_iterable() with that functionality.
>
> Peter

Can you color the help manual with very fine shades of off-white to
ease reading?  I was thinking a few pixels shy of red of white to
accentuate what are the class methods and which are not.  I also have
an argument that net readability would decrease, but the sample sizes
on that kind of metric are a little brinky with privacy fears around
where I'm from.  I just try to make Tron rings.
--
http://mail.python.org/mailman/listinfo/python-list


Re: I'm stuck in Python!

2008-05-13 Thread castironpi
On May 13, 8:46 am, Sanoski <[EMAIL PROTECTED]> wrote:
> Any programming that helps you solve a problem is fun and
> recreational. At least, that's how I look at it. I suppose it really
> depends on why you're doing it, what your objective is, etc. But I'd
> say, why not?
>
> Tron! That's one I haven't seen in awhile. I'll have to take a mental
> note to rent the movie again someday. I always thought a game based on
> the movie hackers would be cool. Actually not based on the movie
> itself, but on that 3D computer world they kept breaking into. Ah man,
> it's so funny looking back on that film. Gibson, that's what they
> called it. It was like a 3D database. That in itself wouldn't make a
> very good game, but I suppose one could easily be created around that
> idea. Perhaps it could be combined with Lawnmower-man. You're somehow
> trapped in this 80's looking 3D world that has access to all the
> world's information. More stuff could be thrown in to make it more
> interesting. And of course, there would have to be hidden references
> or parodies to whatever movies inspired it.
>
> Good luck with your project
>
> Sincerely,
> Joshua
>
> On May 13, 9:02 am, [EMAIL PROTECTED] wrote:
>
>
>
> > Hi all.
>
> > I am trying to write to the Python newsgroup.  I doubt (aha, but
> > doubt) that I have come to the right place.  (Incoming "this"!)  Is
> > this the Python newsgroup?  I heard it was called comp.lang.python.
> > Now to repeat the subject line.  I'm stuck in Python.
>
> > Now that was fun.  I will also try to enumerate simple screen savers
> > (graphicals, graphiclizers).  It may be profitable on some non-bank-
> > breaking scale to compile the results.  Shall I proceed?  The risk is
> > "overunity", such that one person can't be at liberty to live, which
> > in some technical political arenas would be an "anarchy", but there
> > are sufficiently many of those that I will too.
>
> > Does anyone want such a list, or if not, is it at least fun and
> > recreational to make it?  The dollar would come along the lines of
> > PowerPoint (name (tm)), so it may be free to do it, very entertaining,
> > and peaceable.  (As the above would show, you would be free to
> > approach me to -buy-; I won't oversell.)  I like programming.  (And is
> > Guido getting his fair share?  I am prepared to share with him.)
> > Check in his name.
>
> > I want to try to ally with other programmers and make cool games, like
> > Tron, that one party can make games for on a console, such as live
> > obstacles, incl. tear-down, and certain people have to play from time
> > to time.  But you can't charge to do it, so it's a guaranteed game.
> > (That in virtue of that I'm typing.)  Advantages include microspacing
> > of time.  Very summer.
>
> > Resemblances would include Dungeons & Dragons with multi-host, or
> > multi-ref small-shooter sport-likers.  The real-time is definitely
> > attractive (duh).  As for voice, it's not clear it's the most
> > entertaining, but I just don't have a mic.
>
> > However, forseeing, I return with sailing, but that's in 3-space and
> > not even in code, as though we'd construct the Royal Navy and battle.
> > But I think we can keep it well.
>
> > Thing is, someone has to play it to keep a synch (keep from falling),
> > and tap-outs would have to live.
>
> > Side note: In political theory, this is known as the problem of
> > nominating a successor.  Would it stay afloat, even for long enough to
> > make it worth the negatives, yes which do include tear-down and fall,
> > invasion of privacy, and rights infrigement?
>
> > I code in Python (get the callbacks), but configurable servers could
> > spread the work out, using relays to put each person on each's own
> > turf to be a ref.  If you feed the roles, it could get really fun, and
> > c-l-py is the appropriate place to start such a thing, both and ask if
> > it's been done before.- Hide quoted text -
>
> - Show quoted text -

My bot just tries to take control and lead.  (The bot that I'm
writing!)  However, it is amusingly unsuccessful.  We see in lines, so
the game would be pretty primitive, but I'm not sure that everything
else isn't merely too exciting, such that Tron wouldn't be monkey-in-
the-middle, or king of the hill, of fun.  I'm just not on a hill, so
someone else would have to try to play it with me online!
--
http://mail.python.org/mailman/listinfo/python-list


Re: where to get McMillan Installer?

2008-05-13 Thread castironpi
On May 13, 8:23 am, gsal <[EMAIL PROTECTED]> wrote:
> hhhmmm...py2exe...I tried it earlier and it couldn't handle some of
> the packages I was using because they were in the "egg" form.  I was
> hoping Installer could...then again, I don't know how long ago
> Installer was written and whether eggs came along after that...
>
> Regarding the word 'copy'...will you please enlighten me? were you
> serious? is it really banned (around here)? I mean, I thought we were
> talking about an open application which, for as long as you pass along
> the (GNU,GPL) license, you are allowed to provide it to other people.
>
> So, then, allow me to ask the real question:  how do I go about
> deploying a Python application to somebody who has nothing (python nor
> related modules) where my application uses modules from Lib/site-
> packages that are in "egg" form?
>
> Regards,
>
> gsal

Funny you should ask that way; this is strictly speaking, real aside.

If people like to share, but don't know what enough is, (or when,)
real world problems can sometimes arise.  And it's not as easy as
asking an authority to see for yourself.  There are all kinds of power
structures and big sleeping men lying about.  They're big and
sleeping, just men.

Plagiarism (sp.) is a form of copying-- my professors have always
resented and penalized quoting right from the book.  I continue, if
the book's wording is the best way to say certain things (which would
be so popular as to be indistinguishable from analytic/necessary, i.e.
math), the study is rote, and the creation lies about.  But is math in
creation?  I might hold so.  One test even emphasizes, "in your own
words."

But the power structures are men, and men are living; what does life
want?  What will man try to do in and over time?  What are the
universe's poles/attractors/pulls?  What has he done before?  Is there
any money in any logical, cross-sectional isolation of them?  As it's
my belief that man can have too much money, what if you succeed in
trying to make it in the foregoing way?

--
http://mail.python.org/mailman/listinfo/python-list


Re: Python and Flaming Thunder

2008-05-13 Thread castironpi
On May 13, 8:32 am, Dave Parker <[EMAIL PROTECTED]> wrote:
> > Don't let yourself be irritated by castironpi
>
> I'm not the sort to get irritated by anyone.  There is value in all
> interaction.  Flaming Thunder is itself the averaging of interactions
> with many computer languages and conversations with many people, so as
> to create a language that allows people to tell a computer what they
> want it to do, without having to know very much about how the computer
> does it.
>
> On May 13, 3:18 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
>
>
>
> > Dave Parker wrote:
> > > On May 12, 7:20 pm, [EMAIL PROTECTED] wrote:
> > >>Yes, I am trying to visualize something.
>
> > > If it is related to making furniture comfortable for humans, have you
> > > considered painting the furniture with thermochromic paint (
> > >http://en.wikipedia.org/wiki/Thermochromism)? It changes color in
> > > response to temperature, which in part is determined by how hard a
> > > body is pressed against it because close contact tends to trap heat.
> > > An evenly distributed color might indicated evenly distributed
> > > pressure.
>
> > Don't let yourself be irritated by castironpi - he's the virtual equivalent
> > of a mumbling mad man in this group. Ignorance serves best as remedy - and
> > getting a filter to work, as I did (so I only see his postings being
> > quoted... a huge relief!)
>
> > Diez- Hide quoted text -
>
> - Show quoted text -

I got hung-up on your sailboat and it took me to coffee.  But I return
empty-handed, and castironpi does not bother me.  All I try to do in
life is write video games.  I am not convinced that the colorspace
occupies three dimensions necessarily.  But I do like sailboats and
furniture.

I am into city planning, roadways, infrastructure, but don't work -
too- hard.  Furniture can be pretty stock and utility on the micro
level--- there's just been runs on the banks before to microize to
certain energy/mass/volume/metabolism levels.  People like stuff and
pull.

If I can get a word in, I also like to distribute economy, and
microize currency.  So long as currency stays current, nobody minds.
Do you need something done... or said?
--
http://mail.python.org/mailman/listinfo/python-list


Re: threads problem in python

2008-05-13 Thread castironpi
On May 13, 5:38 am, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Tue, 13 May 2008 06:42:13 -0300, Astan Chee <[EMAIL PROTECTED]> escribió:
>
> > I have 2 classes in python, the first one runs first and and then the  
> > first one calls the second class. I want it to run the second class as a  
> > separate thread but I want the first one to wait until the second class  
> > is dead.
> > Im having problem in both killing the second class when its done and  
> > making the first class wait for it to finish.
> > Im very confused on doing threads in python.
>
> I'm confused trying to understand your requirements too. "run a class?"
> Threads execute code, it's easier to think of them as *functions* that are  
> executed at the same time (or almost).
> So you have a function A that runs first, and creates a second thread that  
> will execute function B. Then A will wait for B to finish. What do you  
> want to do in A while it's waiting? Nothing? Then why to use a second  
> thread? Or is it a graphical interfase? GUI libraries like wxPython, Qt  
> and others have specific ways to execute backgroung tasks while keeping  
> the user interface responsive - you should tell us which one you're using  
> in that case.
>
> --
> Gabriel Genellina

I don't mean to be impertinent, but are you making any cents with the
assignment?  Both free-ers and workers come in here.  I am a free-er
who has reason to doubt that money-driven programs get stuck at that
kind of ambiguity.  I hold that money keeps you out of that mess.

However, there are a number of things we can do to help, but as I, per
se, am only one person, I may not give you the best advice to start
with.  How do you find the 'threading.py' docs?
--
http://mail.python.org/mailman/listinfo/python-list


Re: Best way to delimit a list?

2008-05-13 Thread castironpi
On May 13, 8:17 am, Giuseppe Ottaviano <[EMAIL PROTECTED]> wrote:
> On May 13, 2008, at 12:28 PM, [EMAIL PROTECTED] wrote:
>
>
>
>
>
> > Hi - I have a list returned from popen/readlines, and am wondering how
> > to go about iterating over each item which was returned (rather than
> > currently having the whole lot returned).
>
> > so far:
>
>  f=os.open("./get_hostnames").readlines
>
> > returns ['host1 host2 host3 ... hostN\n]'
>
> > i'd like to be in a position to iterate through these, grabbing each
> > host.  I have played with transmuting to a str, and using split, and
> > this works, but I get the subscript brackets from the list output as
> > expected, as the list output is now a string literal, and this is not
> > what I want - and I think it's a bit long-winded to do a search 'n
> > replace on it - hence why I ask in the subject what's the best way.
>
>  f=str(f)
>  f.split()
> > ["['host1","host2", ... ,"hostN\n']"]
>
> If the file is really big, you may want not to construct an actual  
> list with all the words, but instead use an iterator. If you define  
> the function
>
> def ichain(seq):
>         for s in seq:
>                 for x in s: yield x
>
> (which is often useful and I don't think it has been included in  
> itertools) you can iterate lazily on the file:
>
> hosts = ichain(s.split() for s in f)
> for host in hosts:
>         # ...
>
> HTH,
> Giuseppe- Hide quoted text -
>
> - Show quoted text -

I am having trouble following, but I am not an always-rightter.  Was
s.split( ) one of the things you wanted to do to a line, and likely a
really common one?  I'm trying to approach problems impractically.

Now of course, if anything else is going on in the program, you will
need separate threads or separate interpreters/processes.  Does Python
meet sufficiencies on threading?  What file do we have to test it on?
--
http://mail.python.org/mailman/listinfo/python-list


I'm stuck in Python!

2008-05-13 Thread castironpi
Hi all.

I am trying to write to the Python newsgroup.  I doubt (aha, but
doubt) that I have come to the right place.  (Incoming "this"!)  Is
this the Python newsgroup?  I heard it was called comp.lang.python.
Now to repeat the subject line.  I'm stuck in Python.

Now that was fun.  I will also try to enumerate simple screen savers
(graphicals, graphiclizers).  It may be profitable on some non-bank-
breaking scale to compile the results.  Shall I proceed?  The risk is
"overunity", such that one person can't be at liberty to live, which
in some technical political arenas would be an "anarchy", but there
are sufficiently many of those that I will too.

Does anyone want such a list, or if not, is it at least fun and
recreational to make it?  The dollar would come along the lines of
PowerPoint (name (tm)), so it may be free to do it, very entertaining,
and peaceable.  (As the above would show, you would be free to
approach me to -buy-; I won't oversell.)  I like programming.  (And is
Guido getting his fair share?  I am prepared to share with him.)
Check in his name.

I want to try to ally with other programmers and make cool games, like
Tron, that one party can make games for on a console, such as live
obstacles, incl. tear-down, and certain people have to play from time
to time.  But you can't charge to do it, so it's a guaranteed game.
(That in virtue of that I'm typing.)  Advantages include microspacing
of time.  Very summer.

Resemblances would include Dungeons & Dragons with multi-host, or
multi-ref small-shooter sport-likers.  The real-time is definitely
attractive (duh).  As for voice, it's not clear it's the most
entertaining, but I just don't have a mic.

However, forseeing, I return with sailing, but that's in 3-space and
not even in code, as though we'd construct the Royal Navy and battle.
But I think we can keep it well.

Thing is, someone has to play it to keep a synch (keep from falling),
and tap-outs would have to live.

Side note: In political theory, this is known as the problem of
nominating a successor.  Would it stay afloat, even for long enough to
make it worth the negatives, yes which do include tear-down and fall,
invasion of privacy, and rights infrigement?

I code in Python (get the callbacks), but configurable servers could
spread the work out, using relays to put each person on each's own
turf to be a ref.  If you feed the roles, it could get really fun, and
c-l-py is the appropriate place to start such a thing, both and ask if
it's been done before.
--
http://mail.python.org/mailman/listinfo/python-list


Re: where to get McMillan Installer?

2008-05-13 Thread castironpi
On May 13, 5:47 am, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Tue, 13 May 2008 07:06:09 -0300, gsal <[EMAIL PROTECTED]> escribió:
>
> > There does not seem to be a valid url for the Installer, anywhere.
> > Could anyone provide me with a copy of it?
>
> I think py2exe is its successor:http://www.py2exe.org/
>
> --
> Gabriel Genellina

I actually thought 'copy' was a banned word.  I don't have one, but I
can.  I.e., cutting and pasting code is working fine currently.  I
just got two editors!
--
http://mail.python.org/mailman/listinfo/python-list


Re: Backslash frowned upon?

2008-05-13 Thread castironpi
On May 13, 5:54 am, Paul Melis <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > Why is the  \  backslash character frowned upon? Can I still use it in
> > Python 3.0 to achieve the same thing it was designed to do?
>
> Yes, it's still valid to use in a script.
>
> Seehttp://docs.python.org/dev/3.0/whatsnew/3.0.htmlfor the big changes
> coming with 3.0
>
> Paul

I have just discovered the escape key.  Do you honor it?
--
http://mail.python.org/mailman/listinfo/python-list


Re: Best way to delimit a list?

2008-05-13 Thread castironpi
On May 13, 6:18 am, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Tue, 13 May 2008 07:46:45 -0300, <[EMAIL PROTECTED]> escribió:
>
> > On May 13, 11:28 am, [EMAIL PROTECTED] wrote:
> >> Hi - I have a list returned from popen/readlines, and am wondering how
> >> to go about iterating over each item which was returned (rather than
> >> currently having the whole lot returned).
>
> >> >>> f=os.open("./get_hostnames").readlines
>
> > I did indeed mean "os.popen", no "os.open"
>
> Ouch, replace open with popen an my example is valid (but to get the  
> meaning I intended to write, replace os.open with open...)
>
> --
> Gabriel Genellina

Yes: fine!  But, all we do is start a Tron ring, play Tron on
laptops.  You have micro-divide currency, you can probably make
musicals -too-; and I don't have enough to say to get this...

BE TALKING!
--
http://mail.python.org/mailman/listinfo/python-list


Re: Best way to delimit a list?

2008-05-13 Thread castironpi
On May 13, 6:18 am, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Tue, 13 May 2008 07:46:45 -0300, <[EMAIL PROTECTED]> escribió:
>
> > On May 13, 11:28 am, [EMAIL PROTECTED] wrote:
> >> Hi - I have a list returned from popen/readlines, and am wondering how
> >> to go about iterating over each item which was returned (rather than
> >> currently having the whole lot returned).
>
> >> >>> f=os.open("./get_hostnames").readlines
>
> > I did indeed mean "os.popen", no "os.open"
>
> Ouch, replace open with popen an my example is valid (but to get the  
> meaning I intended to write, replace os.open with open...)
>
> --
> Gabriel Genellina

Writing's fine, but don't the musicals suck?
--
http://mail.python.org/mailman/listinfo/python-list


Re: feedparser

2008-05-13 Thread castironpi
On May 13, 6:06 am, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Tue, 13 May 2008 07:30:44 -0300, Mike <[EMAIL PROTECTED]> escribió:
>
>
>
>
>
> > I'm trying to use the feedparser module (http://www.feedparser.org/).
>
> > Is it possible to use this without running the setup program?
>
> > I don't see why not, seems like I'm missing something obvious.
>
> > My directory structure is:
>
> > myprogram.py
> >     /feedparser
> >         /feedparser.py
>
> > I know I can install the module in the modules directory but would like  
> > to
> > avoid this for two reasons: I'm only using it for the one project so  
> > would
> > like to keep it seperate, and if I move to a shared host I may not be
> > allowed to install additional modules (not sure if this is correct  
> > though).
>
> The easiest way would be to put the single module feedparser.py in the  
> same directory as your program (I don't  completely get your reasons not  
> to do that). OR put feedparser.py in some other directory that is already  
> listed in sys.path. OR add the directory containing feedparser.py to  
> sys.path, just at the beginning of your program.
>
> > I've tried:
>
> > import feedparser
>
> > import feedparser.feedparser
>
> > from feedparser import feedparser
>
> > What am I doing wrong? :)
>
> *IF* the directory 'feedparser' were a package (that is, if it contained a  
> file __init__.py), then that last import statement would be valid. But I  
> don't reccomend doing this; you're changing the module's environment.
>
> --
> Gabriel Genellina- Hide quoted text -
>
> - Show quoted text -

The malicious thing to do would be spam Python servers with 'import
Lib' and common locale-specific-language short words for techs: import
biblio, import server--- things we might all want really small-to-zero
numbers of... if in numbers... and such as columns of instancy (the
currency), from the instant of instant message.  So, can you tank my
laptop, or can I go tanking the town?
--
http://mail.python.org/mailman/listinfo/python-list


Re: The 'is' identity operator checking immutable values caution

2008-05-13 Thread castironpi
On May 13, 5:37 am, Christian Heimes <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] schrieb:
>
> > We have to avoid the use of the 'is' identity operator with basic,
> > immutable values such as numbers and strings. The result is
> > unpredictable because of the way Python handles these objects
> > internally.
>
> You are confusing immutable objects with singletons. Never use "is" with
> strings and numbers.
>
> Christian

I was back on 'handle'.  Handle internally, handle right.  Gotta be 6
a.m.
--
http://mail.python.org/mailman/listinfo/python-list


Re: Best way to delimit a list?

2008-05-13 Thread castironpi
On May 13, 5:46 am, [EMAIL PROTECTED] wrote:
> On May 13, 11:28 am, [EMAIL PROTECTED] wrote:
>
>
>
>
>
> > Hi - I have a list returned from popen/readlines, and am wondering how
> > to go about iterating over each item which was returned (rather than
> > currently having the whole lot returned).
>
> > so far:
>
> > >>> f=os.open("./get_hostnames").readlines
>
> > returns ['host1 host2 host3 ... hostN\n]'
>
> > i'd like to be in a position to iterate through these, grabbing each
> > host.  I have played with transmuting to a str, and using split, and
> > this works, but I get the subscript brackets from the list output as
> > expected, as the list output is now a string literal, and this is not
> > what I want - and I think it's a bit long-winded to do a search 'n
> > replace on it - hence why I ask in the subject what's the best way.
>
> > >>> f=str(f)
> > >>> f.split()
>
> > ["['host1","host2", ... ,"hostN\n']"]
>
> > Any help is highly appreciated
>
> > ta
>
> > dan.
>
> I did indeed mean "os.popen", no "os.open"- Hide quoted text -
>
> - Show quoted text -

I do indeed write a pretty fine real-time, low-bandwidth, game.  It is
like real-time chess, and seen the movie, Tron.  Can't the P2Ps zip up
in an hour?
--
http://mail.python.org/mailman/listinfo/python-list


Re: Best way to delimit a list?

2008-05-13 Thread castironpi
On May 13, 5:28 am, [EMAIL PROTECTED] wrote:
> Hi - I have a list returned from popen/readlines, and am wondering how
> to go about iterating over each item which was returned (rather than
> currently having the whole lot returned).
>
> so far:
>
> >>> f=os.open("./get_hostnames").readlines
>
> returns ['host1 host2 host3 ... hostN\n]'
>
> i'd like to be in a position to iterate through these, grabbing each
> host.  I have played with transmuting to a str, and using split, and
> this works, but I get the subscript brackets from the list output as
> expected, as the list output is now a string literal, and this is not
> what I want - and I think it's a bit long-winded to do a search 'n
> replace on it - hence why I ask in the subject what's the best way.
>
> >>> f=str(f)
> >>> f.split()
>
> ["['host1","host2", ... ,"hostN\n']"]
>
> Any help is highly appreciated
>
> ta
>
> dan.

Bring up the Google Ring.  Where you only wiggle fingers, it might pay
to get jobs at home.  All we up here would have to do would be
schedule something.  Make a decision is easy in talking.  I think it
would be easy to centralize the time the world's at and redistribute
money.  If all we'd do is normal life, this constrained, open markets
would be easy to set up.  It's just illegal to talk about pricing in
2004 Microecon. classes.
--
http://mail.python.org/mailman/listinfo/python-list


Re: Python and Flaming Thunder

2008-05-13 Thread castironpi
On May 13, 4:52 am, [EMAIL PROTECTED] wrote:
> On May 13, 4:18 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Dave Parker wrote:
> > > On May 12, 7:20 pm, [EMAIL PROTECTED] wrote:
> > >>Yes, I am trying to visualize something.
>
> > > If it is related to making furniture comfortable for humans, have you
> > > considered painting the furniture with thermochromic paint (
> > >http://en.wikipedia.org/wiki/Thermochromism)? It changes color in
> > > response to temperature, which in part is determined by how hard a
> > > body is pressed against it because close contact tends to trap heat.
> > > An evenly distributed color might indicated evenly distributed
> > > pressure.
>
> > Don't let yourself be irritated by castironpi - he's the virtual equivalent
> > of a mumbling mad man in this group. Ignorance serves best as remedy - and
> > I only see his postings being
> > quoted... a huge relief!)
>
> > Diez
>
> I hate to ignore work.  Who is the non-virtual equivalent mumble?- Hide 
> quoted text -

However, that's just the sunrise I would be talking about.  How are
the soft drinks here?  Does anyone else have a t.v.?  I don't like
mine or have one.

--
http://mail.python.org/mailman/listinfo/python-list


Re: The 'is' identity operator checking immutable values caution

2008-05-13 Thread castironpi
On May 13, 5:10 am, [EMAIL PROTECTED] wrote:
> We have to avoid the use of the 'is' identity operator with basic,
> immutable values such as numbers and strings. The result is
> unpredictable because of the way Python handles these objects
> internally.
>
> How is with this issue in Python 3.0? Is it fixed? Does Python handle
> this things properly now?

Ooo.  Timing.  Good one.  

Writer's other wanderings bring Microsoft Research.  Who talks to that
on a daily basis?
--
http://mail.python.org/mailman/listinfo/python-list


Re: Python and Flaming Thunder

2008-05-13 Thread castironpi
On May 13, 4:18 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> Dave Parker wrote:
> > On May 12, 7:20 pm, [EMAIL PROTECTED] wrote:
> >>Yes, I am trying to visualize something.
>
> > If it is related to making furniture comfortable for humans, have you
> > considered painting the furniture with thermochromic paint (
> >http://en.wikipedia.org/wiki/Thermochromism)?  It changes color in
> > response to temperature, which in part is determined by how hard a
> > body is pressed against it because close contact tends to trap heat.
> > An evenly distributed color might indicated evenly distributed
> > pressure.
>
> Don't let yourself be irritated by castironpi - he's the virtual equivalent
> of a mumbling mad man in this group. Ignorance serves best as remedy - and
> getting a filter to work, as I did (so I only see his postings being
> quoted... a huge relief!)
>
> Diez

I hate to ignore work.  Who is the non-virtual equivalent mumble?
--
http://mail.python.org/mailman/listinfo/python-list


Re: Python and Flaming Thunder

2008-05-12 Thread castironpi
On May 12, 8:36 pm, Dave Parker <[EMAIL PROTECTED]> wrote:
> On May 12, 7:20 pm, [EMAIL PROTECTED] wrote:
>
> > Yes, I am trying to visualize something.
>
> If it is related to making furniture comfortable for humans, have you
> considered painting the furniture with thermochromic paint 
> (http://en.wikipedia.org/wiki/Thermochromism)?  It changes color in
> response to temperature, which in part is determined by how hard a
> body is pressed against it because close contact tends to trap heat.
> An evenly distributed color might indicated evenly distributed
> pressure.

I do hold an argument that one can make too much money for one's own
good quality of life.  Am I trying to visualize thermal (and ergo
possibly chemical too) gradients (thermovoltaic)?  Yes in part.  I'm
pretty generally interested, but where can print layout take you?
Microsales?
--
http://mail.python.org/mailman/listinfo/python-list


Re: Python and Flaming Thunder

2008-05-12 Thread castironpi
On May 12, 8:18 pm, Dave Parker <[EMAIL PROTECTED]> wrote:
> On May 12, 7:12 pm, [EMAIL PROTECTED] wrote:
>
> > Mine's been always messing up the color wheel.
>
> Messing up in what way?  Are you using the colors to visualize
> something?

In a manner of speaking.  I'm a first-time-live Information scientist,
just out of work.  LIS at school and plenty of computer study, which
is fine.  Yes, I am trying to visualize something.
--
http://mail.python.org/mailman/listinfo/python-list


Re: Learning Python for no reason

2008-05-12 Thread castironpi
Anyway, Chuck's post doesn't question any of the competencies of
computer science.  Is it safe to name-call silly, or have -I- by
disdesign misinterpreted?

On May 12, 6:41 pm, "Chuckk Hubbard" <[EMAIL PROTECTED]>
wrote:
> I'm another one pretty early in his programming education, but here's my take.
> Python was specifically recommended to me by a few people for a
> specific program I wanted to write (userspace, GUI, music).  While I
> gradually learn more about it, I start to spend a lot of time on
> certain aspects I don't really need for this task.  I think curiosity
> is one of the vital qualities for a programmer, and through mine, over
> a few years, I've built up more and more understanding of what's going
> on in my box, more than I set out to have, but I can't see how any of
> this can be called wasted time if it rounds out my general
> understanding.
> On the other hand, as Python is about the second "serious" language
> I've tried to learn (the others being web- or music- oriented, and I
> didn't approach them as programming), I don't have much to compare it
> to.  I was under the impression before reading your message that
> Python was very popular and useful.  This list is far more active than
> all the others to which I'm subscribed put together!  So, either it
> doesn't seem like a silly endeavor to learn it for its own sake, or
> they're using it for something.
>
> If it is a silly endeavor, I'm going to have to ask you to stop this
> thread, it's too silly.
>
> -Chuckk
>
>
>
>
>
> On Mon, May 12, 2008 at 8:27 PM, John Salerno <[EMAIL PROTECTED]> wrote:
> > Just something that crosses my mind every time I delve into "Learning
> >  Python" each night. Does anyone see any value in learning Python when you
> >  don't need to for school, work, or any other reason? I mean, sure, there's
> >  value in learning anything at any time, but for something like a 
> > programming
> >  language, I can't help but feel that I will be mostly unable to use what I
> >  learn simply because I have no reason to use it.
>
> >  The *process* of learning is enough fun for me, and every now and then I do
> >  find a small use for Python that really pays off, but for the most part I'm
> >  wondering what people's thoughts are as far as simply learning it for the
> >  sake of learning. Does it seem like a silly endeavor to most people? Did
> >  anyone here learn a programming language when you didn't need to? If so, 
> > how
> >  much and in what capacity did you use it after you learned it?
>
> >  Hopefully this question even makes sense!
>
> >  --
> >  http://mail.python.org/mailman/listinfo/python-list
>
> --http://www.badmuthahubbard.com- Hide quoted text -
>
> - Show quoted text -

--
http://mail.python.org/mailman/listinfo/python-list


Re: Python and Flaming Thunder

2008-05-12 Thread castironpi
On May 12, 7:59 pm, Dave Parker <[EMAIL PROTECTED]> wrote:
> On May 12, 6:32 pm, [EMAIL PROTECTED] wrote:
>
> > Can you render some furniture for me... to try to see some human
> > posture to lowest energy levels.
>
> I couldn't find any furniture created using DPGraph, but the math art
> gallery athttp://www.dpgraph.com/math-art.htmlhas a sailboat, an
> F15, Tux (the Linux penguin), a lampshade, and lots of other things
> that will soon be doable in Flaming Thunder.

Mine's been always messing up the color wheel.  Do you see anything
analytic* / theoretically necessary / a priori / physical / physically
induced about that?

*Now that's a word from Philosophy Syntax--- pertaining to inherent
definitions of words, any and all.
--
http://mail.python.org/mailman/listinfo/python-list


Re: Python and Flaming Thunder

2008-05-12 Thread castironpi
On May 12, 6:39 pm, Dave Parker <[EMAIL PROTECTED]> wrote:
> I've read that one of the design goals of Python was to create an easy-
> to-use English-like language.  That's also one of the design goals of
> Flaming Thunder athttp://www.flamingthunder.com/ , which has proven
> easy enough for even elementary school students, even though it is
> designed for scientists, mathematicians and engineers.

Can you render some furniture for me... to try to see some human
posture to lowest energy levels.
--
http://mail.python.org/mailman/listinfo/python-list


Re: Socket and cycle problem

2008-05-12 Thread castironpi
On May 12, 2:06 pm, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote:
> On Mon, 12 May 2008 11:16:08 -0700 (PDT), [EMAIL PROTECTED] wrote:
> > [snip]
>
> >My script send me via 3883 port (VRPN) data, but only once. I need
> >listening this port countinously.
> >So I need  make some loop to print data from 3883 port permanent.
> >Data that I recevied looks liek this:
>
> >receive data from server: 'vrpn: ver. 07.13  0\x00\xe8\x0b\x00\x00'
>
> I'm not sure if you need to write a server or a client.  In your
> original code, you had a client which repeatedly established out-
> bound connections.  Here, you say you need to listen on a port.
>
>
>
> >Do you think its necessary to use Twisted? Do you have any ideas how
> >to do it with socket modul?
>
> The basic version is pretty easy either way.  However, with Twisted,
> you get cross-platform error handling without any extra effort, and
> you don't have to think about the boring low-level details of BSD
> sockets.
>
> Here's a Twisted server that listens on port 3883 forever and prints
> the data it receives from each connection after the remote side drops
> the connection:
>
>     from twisted.internet import reactor
>     from twisted.internet.protocol import ServerFactory, Protocol
>
>     class PrintingProtocol(Protocol):
>         def connectionMade(self):
>             """
>             When the connection is first established, create a list
>             into which to buffer all received data.
>             """
>             self.received = []
>
>         def dataReceived(self, data):
>             """
>             Whenever any data is received on this connection, add it
>             to the buffer.
>             """
>             self.received.append(data)
>
>         def connectionLost(self, reason):
>             """
>             When the connection is lost, print out the contents of
>             the receive buffer.
>             """
>             print repr("".join(self.received))
>
>     # Create a factory which will use our protocol to handle incoming
>     # connections.
>     factory = ServerFactory()
>     factory.protocol = PrintingProtocol
>
>     # Listen with it on port 3883
>     reactor.listenTCP(3883, factory)
>
>     # Start the reactor.  Nothing in this program will ever stop the
>     # reactor, so it will run and accept connections forever.
>     reactor.run()
>
> If you were to use the socket module, then it would look something like this:
>
>     from socket import socket
>     from errno import EINTR
>
>     port = socket()
>     port.bind(('', 3883))
>     port.listen(5)
>     while True:
>         try:
>             server, clientAddr = port.accept()
>         except socket.error, e:
>             print "Error accepting client connection", e
>         else:
>             received = []
>             while True:
>                 try:
>                     bytes = server.recv(1024 * 16)
>                 except socket.error, e:
>                     if e.errno == EINTR:
>                         continue
>                     else:
>                         break
>                 if not bytes:
>                     break
>                 received.append(bytes)
>             print repr("".join(received))
>
> Hope this helps,
>
> Jean-Paul

FWIW, my countrymen!  The above code devotes a resource.  It may be
trivial and/or microscopic, but a computer has them!
--
http://mail.python.org/mailman/listinfo/python-list


Re: Python, are you ill?

2008-05-11 Thread castironpi
On May 11, 6:26 pm, Tim Roberts <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
>
> >If you are in the interactive prompt of the Python interpreter and you
> >do this
>
> >print """Testing\"""   or   print '''Testing\'''
>
> >you get three dots [...] as if Python expects a code block.
>
> ...which it does.
>
> >If you
> >press Enter, you get three dots again, and again, and again... You
> >can't get out of the code block with pressing the Enter key; you have
> >to press Ctrl+Z (if you're in Linux) in order to get out of that code
> >block,
>
> No, you don't.  You can also enter """ or ''' to properly close the quote.
>
> >If you do
>
> >print "Testing\"   or   print 'Testing\'
>
> >you get an error, but not of you use the triple quotes. Is that a bug
> >in the interpreter perhaps?
>
> As a general rule, when you are just beginning to learn some product, it is
> safe to assume that anything you see as a bug in the product is almost
> certainly a flaw in your understanding of the product.
> --
> Tim Roberts, [EMAIL PROTECTED]
> Providenza & Boekelheide, Inc.

I hold further, it is more profitable, unless you can change it.
--
http://mail.python.org/mailman/listinfo/python-list


Re: pickle problem

2008-05-11 Thread castironpi
On May 11, 6:21 pm, [EMAIL PROTECTED] wrote:
> On May 8, 7:29 pm, [EMAIL PROTECTED] wrote:
>
>
>
>
>
> > On May 8, 4:35 pm, Hrvoje Niksic <[EMAIL PROTECTED]> wrote:
>
> > > Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> writes:
>
> > > > On Thu, 08 May 2008 08:55:35 -0700, krustymonkey wrote:
>
> > > >> The thing is, I'm not using slots by choice.  I'm using the standard
> > > >> lib "socket" class, which apparently uses slots.
>
> > > > `socket` objects can't be pickled.  Not just because of the
> > > > `__slot__`\s but because a substantial part of their state lives in
> > > > the operating system's space.
>
> > > Of course, if it makes sense to pickle sockets in the application, one
> > > is can do so by defining __getstate__ and __setstate__:
>
> > > class Connection(object):
> > >     def __init__(self, host, port):
> > >         self.host = host
> > >         self.port = port
> > >         self.init_sock()
>
> > >     def init_sock(self):
> > >         self.sock = socket.socket()
> > >         self.sock.connect((host, port))
> > >         ... init communication ...
>
> > >     def __getstate__(self):
> > >         # pickle self as a (host, port) pair
> > >         return self.host, self.port
>
> > >     def __setstate__(self, state):
> > >         # reinstate self by setting host and port and
> > >         # recreating the socket
> > >         self.host, self.port = state
> > >         self.init_sock()
>
> > I, local, am mystified that you'd want to pickle a socket.  It's a
> > live connection, which flies on a pocket dollar.  You don't want it on
> > disk, do you?
>
> > If you're running a net buoy through a cluster somewhere, do you want
> > to drop a server and reconnect?  Is Amazon's EC2 up and running?
>
> > Certainly no one was talking on the internet.  Were you?
>
> > I don't think you hit anything but banks surfing the web, and the
> > American dollar is notoriously stuffy.  Pump a wi-fi to a diner,
> > though, and you're just talking more.  Where's Usenet?
>
> The idea is a pre-fork socket server.  What I want to do is fork off
> some child processes from the parent and use IPC to send the
> connection object (via socket.accept()) over a pipe to one of the
> preexisting child processes and have said child handle the
> transaction.  Think Apache, if you want an example of what I'm trying
> to do here.  This alleviates the process startup cost that occurs when
> you fork.  If the socket object can't be serialized, is there another
> way to go about handling this in python?- Hide quoted text -
>
> - Show quoted text -

That's out of my expertise.  You would have to either hack it on a
router you are running (masquerade), or choose a different family of
sockets.  For HTTP, you could issue a 'reroute' return.  Just multi-
thread your server process.
--
http://mail.python.org/mailman/listinfo/python-list


Re: diffing and uniqing directories

2008-05-11 Thread castironpi
On May 11, 2:44 pm, Dan Stromberg <[EMAIL PROTECTED]> wrote:
> On Sat, 26 Apr 2008 23:44:17 +0530, Rustom Mody wrote:
> > Over years Ive collected tgz's of my directories. I would like to diff
> > and uniq them
>
> > Now I guess it would be quite simple to write a script that does a walk
> > or find through a pair of directory trees, makes a SHA1 of each file and
> > then sorts out the files whose SHA1s are the same/different. What is
> > more difficult for me to do is to write a visual/gui tool to help me do
> > this.
>
> > I would guess that someone in the python world must have already done it
> > [The alternative is to use some of the tools that come with version
> > control systems like git. But if I knew more about that option I would
> > not be stuck with tgzs in the first place ;-)]
>
> > So if there is such software known please let me know.
>
> > PS Also with the spam flood that has hit the python list I dont know if
> > this mail is being read at all or Ive fallen off the list!
>
> It doesn't have a GUI, but here's a python program I wrote for dividing
> large collections of files up into identical groups:
>
> http://stromberg.dnsalias.org/~strombrg/equivalence-classes.html- Hide quoted 
> text -
>
> - Show quoted text -

I want to question terminology!

Question 'identical' groups over related!

--
http://mail.python.org/mailman/listinfo/python-list


Re: what does int means for python ?

2008-05-11 Thread castironpi
On May 11, 5:05 am, alefajnie <[EMAIL PROTECTED]> wrote:
> > try arr[2][3] instead.
>
> > basically your version is trying to index an array with a tuple argument 
> > (2,3).
>
> > --irmen
>
> oh, you're right.
>
> btw, is any simple way to create multi-dimension array ?
> any built-in function ?

it is not clear that two-dim arrays are faster than hashes in all
implementations of Python, or in every general language, or if they're
the right symbol for your program.

>>> a= { }
>>> a[ 0, 1 ]= True
>>> a[ 4, 0 ]= True
>>> a[ 0, 1 ]
True

however, this one:

>>> a[ 2, 1 ]

results in a KeyError.  do you want a particular thing, or are you on
the clock?

if you want to define 'blanks', that takes time too.  is it initally
empty?
--
http://mail.python.org/mailman/listinfo/python-list


Re: Is using range() in for loops really Pythonic?

2008-05-11 Thread castironpi
On May 11, 12:38 am, Paul Rubin  wrote:
> John Salerno <[EMAIL PROTECTED]> writes:
> > for x in range(10):
> >     #do something 10 times
>
> > is unPythonic. The reason I ask is because the structure of the for loop
> > seems to be for iterating through a sequence. It seems somewhat
> > artificial to use the for loop to do something a certain number of
> > times, like above.
>
> It is pretty natural in imperative-style code.  The one thing I'd do
> differently is use xrange instead of range, to avoid creating a
> 10-element list in memory before starting the loop.

If you give extras to memory, can Python live?
--
http://mail.python.org/mailman/listinfo/python-list


Re: People still using Tkinter?

2008-05-10 Thread castironpi
On May 10, 1:57 pm, Kenneth McDonald
<[EMAIL PROTECTED]> wrote:
> The only trick it that sometimes it isn't obvious how to make the Tcl/
> Tk call via Python.
>
> Ken
>
> On May 10, 2008, at 11:27 AM, Martin v. Löwis wrote:
>
>
>
> >> I am, but "still" isn't the word, I just started.  Good, *complete*
> >> docs seem to be hard to find, but using a combination of the free
> >> resources and going back and forth between them seems to work all
> >> right so far.
>
> > IMO, the trick really is to also have a Tk documentation around.
> > If you need to find out what option is supported by what widget,
> > there isn't really much point in duplicating that information in
> > Tkinter, IMO - the Tk documentation has it all.
>
> > Regards,
> > Martin
> > --
> >http://mail.python.org/mailman/listinfo/python-list- Hide quoted text -
>
> - Show quoted text -

A limited browser-set

from browserset remove imported.sys.modules[ '__main__' ]

which should be a snytactically consistent expression.

or,

from imported.sys.modules[ '__main__' ] remove browserset

Could make tkinter-complexity applications for browsers.

Argue it's sufficiently general to spend a dollar on.
--
http://mail.python.org/mailman/listinfo/python-list


Re: Now what!?

2008-05-10 Thread castironpi
On May 10, 10:05 pm, hdante <[EMAIL PROTECTED]> wrote:
> On May 10, 8:22 pm, notbob <[EMAIL PROTECTED]> wrote:
>
> > On 2008-05-10, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote:
>
> > >    So... in short, you'd need to have been reading a tutorial specific
> > > to "shell" scripting...
>
> > I have been.  I'm also trying to learn bash shell scripting, not to mention
> > sed/awk, php, etc.  I should have started this a long time ago, but I'm lazy
>
>  Throw all of this away and learn just python. That will be much
> simpler for you.
>
> > and, like I said, I'm not particularly fond of coding.  Yes, I have learned
> > basic C and basic , but never beyond intro.  Now, I'm doing it because I'm a
>
>  Forget basic and learn python. Later you can learn C.

Fiscally speaking, C and Python may well be just as economical.  So
long as you've spent time learning a computer language, hold you can
get your needs met*.

* Even if money isn't a measure of value, a true measure of value, or
measure of true value.

In light of the actual writing of Python, if you make it, like to.

In sight of competitors, argue that Python is at least a locus, node,
nodepoint, or to-central of something about free and software.

Hold that Python is an end in itself, and/or that writing it is, and/
or is writing an implementation.

(Can you talk about languages like they're people?)

Distinguish further between languages, programs, libraries, and the
standards.

Then evaluate Python for population assortment characteristics, such
as population, overcrowding, undercrowding, and various sense
criteria.

In the Windows world, we are asking, how many keystrokes per thought,
mouse motions per error, and cross.

If your boss sucks but Python rules, it remains unclear that either is
any better.  It is not clear that Python has a will, or computers
have.

If they have minds, whether absent will or not, perhaps it wouldn't
pay to like it too much.  What diversity can you find on a newsgroup?



>
>
>
> > geezer and I figure my brain needs more exercise then just blabbing on
> > usenet.  Besides, I've been cruising while using linux for too long and have
> > remained low end intermediate.  Time to get serious.  Pass the cheat sheets!
>
> > nb- Hide quoted text -
>
> - Show quoted text -

--
http://mail.python.org/mailman/listinfo/python-list


Now, as for the jokes: Python!

2008-05-10 Thread castironpi
Dear Monty, Grail This.

The grail is unarmed and floating.  Stop posting the newsgroup.

Python is Monty Python.  In the sense of identity ascription, of
course.

Trivially not,

A Bartender.
--
http://mail.python.org/mailman/listinfo/python-list


Re: People still using Tkinter?

2008-05-10 Thread castironpi
On May 10, 1:38 am, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:
> On Sat, 10 May 2008 00:20:33 -0500, Kenneth McDonald wrote:
> > Any guesses as to how many people are still using Tkinter? And can  
> > anyone direct me to good, current docs for Tkinter?
>
> AFAIK `Tkinter` hasn't changed much over time, so "old" documentation is
> still current.
>
> Ciao,
>         Marc 'BlackJack' Rintsch

Get synchronizing into wx.  CallAfter and CallLater both pull too
hard, but I didn't write it for money.  How are specs doing on coming
down?  Window size is important.  Does anyone else bounce around
resizability either?

Ciao.
--
http://mail.python.org/mailman/listinfo/python-list


Re: slicing lists

2008-05-10 Thread castironpi
On May 9, 3:17 pm, [EMAIL PROTECTED] wrote:
> On May 9, 10:11 am, Yves Dorfsman <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > [EMAIL PROTECTED] wrote:
> > > The only thing is, is there is another natural meaning to [a,b:c].
>
> > > Counting grids on the diagonals, the rational set is well defined:
>
> > > 0: 0, 0
> > > 1: 1, 0
> > > 2: 0, 1
> > > 3: 2, 0
> > > 4: 1, 1
> > > 5: 0, 2
> > > 6: 3, 0
> > > 7: 2, 1
> > > ...
>
> > > Thencefore ( 2, 0 ) : ( 3, 0 ) is well defined.  Thencefore,
>
> > > a,b:c,d
>
> > > is not; x[a,b:c,d]= x[a]+ x[b:c]+ x[d].
>
> > I'm not sure what you mean here. Could you give me a simple piece of code to
> > show an example ?
>
> > Yves.http://www.SollerS.ca-Hide quoted text -
>
> > - Show quoted text -
>
> Yves, sadly, simple piece of code is not the writer's forte.  I was
> merely advising against leaping in to syntax additions, changes even.
> The point was, even though a,b:c,d is shown ill-defined, a,b:c may not
> be.- Hide quoted text -
>
> - Show quoted text -

Now: In the case of enumerate( rationals ), list slicing can be plenty
fine.  Any use to the dirational enumerate?
--
http://mail.python.org/mailman/listinfo/python-list


Re: Pythonicity of some algorithms

2008-05-10 Thread castironpi
On May 10, 5:21 am, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote:
> > This works for me. But I'd like to know if this is considered
> > Pythonic, and if there are other, better ways of doing the above in
> > Python.
>
> From the Python point of view, it's fine. However, it uses busy-wait,
> which I consider bad style (in any language).
>
> > 3) Make a custom thread-safe queue class, with an 'interrupt_get'
> > method. When your app calls queue.interrupt_get(), all threads
> > currently locking on a queue.get() will continue, but with a
> > GetInterrupted exception thrown.
>
> That's what I would do. I'd use the existing Queue class as a base
> class, though, rather than starting from scratch.
>
> Regards,
> Martin

Did you follow the links to Dev-C++?  It rules house.  I have
drizzle.c compiling in Windows GDI and SDL.  I'm poised to double-time
Dev-C++ and Windows GDI, if double-tasking is on the market.  Credit
up... what's standard?
--
http://mail.python.org/mailman/listinfo/python-list


Python and the Bartender

2008-05-09 Thread castironpi
Incidentally, now that everyone knows English, writer would like to
critique his behavior.  I have leaned to the group for approval, at
times by disparaging the efforts of others, but other times not.  I
have expressed negative emotion.  Is anyone in earshot getting work
done that I am interfering with?

Otherwise, I might start telling jokes.

Sincerely,
Two For Bartenders.

P.S.  Please don't write the movies.
--
http://mail.python.org/mailman/listinfo/python-list


Re: RELEASED Python 2.6a3 and 3.0a5

2008-05-09 Thread castironpi
On May 9, 7:55 pm, Stéphane Larouche <[EMAIL PROTECTED]>
wrote:
> > On 9 Mai, 01:50, Barry Warsaw <[EMAIL PROTECTED]> wrote:
> > > On behalf of the Python development team and the Python community, I
> > > am happy to announce the third alpha release of Python 2.6, and the
> > > fifth alpha release of Python 3.0.
>
> After I installer Python 2.6a3, Matlab R2007a began having problems. When I
> start Matlab, it shows a window indicating that it is installing Microsoft
> Visual C++ 2005 Redistributable, which fails, and then Matlab closes. This
> problem did not happen with Python 2.6a2 and removing Python 2.6a3 solves the
> problem.
>
> Is anybody else having the same problem? Do you know what causes it? Is there 
> a
> workaround?

That one might be a true, "Don't stampede the Python."  Numbers have
been known grow.  (...not that the numbers do.)  Bread and butter, new
butter.
--
http://mail.python.org/mailman/listinfo/python-list


Re: slicing lists

2008-05-09 Thread castironpi
On May 9, 10:11 am, Yves Dorfsman <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > The only thing is, is there is another natural meaning to [a,b:c].
>
> > Counting grids on the diagonals, the rational set is well defined:
>
> > 0: 0, 0
> > 1: 1, 0
> > 2: 0, 1
> > 3: 2, 0
> > 4: 1, 1
> > 5: 0, 2
> > 6: 3, 0
> > 7: 2, 1
> > ...
>
> > Thencefore ( 2, 0 ) : ( 3, 0 ) is well defined.  Thencefore,
>
> > a,b:c,d
>
> > is not; x[a,b:c,d]= x[a]+ x[b:c]+ x[d].
>
> I'm not sure what you mean here. Could you give me a simple piece of code to
> show an example ?
>
> Yves.http://www.SollerS.ca- Hide quoted text -
>
> - Show quoted text -

Yves, sadly, simple piece of code is not the writer's forte.  I was
merely advising against leaping in to syntax additions, changes even.
The point was, even though a,b:c,d is shown ill-defined, a,b:c may not
be.
--
http://mail.python.org/mailman/listinfo/python-list


Re: How to modify meaning of builtin function "not" to "!"?

2008-05-09 Thread castironpi
On May 9, 8:41 am, grbgooglefan <[EMAIL PROTECTED]> wrote:
> I am creating functions, the return result of which I am using to make
> decisions in combined expressions.
> In some expressions, I would like to inverse the return result of
> function.
>
> E.g. function contains(source,search) will return true if "search"
> string is found in source string.
> I want to make reverse of this by putting it as:
> if ( ! contains(s1,s2) ):
>      return 1
>
> I found that "!" is not accepted by Python & compile fails with
> "invalid syntax".
> Corresponding to this Boolean Operator we've "not" in Python.
>
> How can I make "not" as "!"?

I have found that not 8, not not 8, and ~8 are all valid.  Valid8 is
not.

NameError: name 'Valid8' is not defined, where defined is not defined,
and @Valid8 @Valid8 ...

Late-binding logicals are fine.  #Valid8
--
http://mail.python.org/mailman/listinfo/python-list


bytes1.shuffle( )

2008-05-09 Thread castironpi
random.shuffle( bytes1 )

if random == bytes:
   repunctuate( sentence )
else:
   random.shuffle( [ random ] )

sincerely exit, ()
--
http://mail.python.org/mailman/listinfo/python-list


Re: slicing lists

2008-05-09 Thread castironpi
On May 9, 1:23 am, "Ian Kelly" <[EMAIL PROTECTED]> wrote:
> On Wed, May 7, 2008 at 5:29 PM, Yves Dorfsman <[EMAIL PROTECTED]> wrote:
> > Is there a way to do:
> > x = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
> > x[0,2:6]
>
> > That would return:
> > [0, 3, 4, 5, 6]
>
> > I am surprised this notation is not supported, it seems intuitive.
> > A concrete example of the sort of thing I want to do:
>
> > p = file('/etc/passwd').readlines()
> > q = [ e.strip().split(':')[0,2:] for e in p ]
>
> > (getting rid of the password / x field)
>
> Have a look at the itemgetter function from the operator module.
>
> g = itemgetter( 0, *range(2, 6) )
> p = file("/etc/passwd").readlines()
> q = [ g( e.strip().split(':') ) for e in p ]

The only thing is, is there is another natural meaning to [a,b:c].

Counting grids on the diagonals, the rational set is well defined:

0: 0, 0
1: 1, 0
2: 0, 1
3: 2, 0
4: 1, 1
5: 0, 2
6: 3, 0
7: 2, 1
...

Thencefore ( 2, 0 ) : ( 3, 0 ) is well defined.  Thencefore,

a,b:c,d

is not; x[a,b:c,d]= x[a]+ x[b:c]+ x[d].
--
http://mail.python.org/mailman/listinfo/python-list


Re: pickle problem

2008-05-08 Thread castironpi
On May 8, 4:35 pm, Hrvoje Niksic <[EMAIL PROTECTED]> wrote:
> Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> writes:
>
> > On Thu, 08 May 2008 08:55:35 -0700, krustymonkey wrote:
>
> >> The thing is, I'm not using slots by choice.  I'm using the standard
> >> lib "socket" class, which apparently uses slots.
>
> > `socket` objects can't be pickled.  Not just because of the
> > `__slot__`\s but because a substantial part of their state lives in
> > the operating system's space.
>
> Of course, if it makes sense to pickle sockets in the application, one
> is can do so by defining __getstate__ and __setstate__:
>
> class Connection(object):
>     def __init__(self, host, port):
>         self.host = host
>         self.port = port
>         self.init_sock()
>
>     def init_sock(self):
>         self.sock = socket.socket()
>         self.sock.connect((host, port))
>         ... init communication ...
>
>     def __getstate__(self):
>         # pickle self as a (host, port) pair
>         return self.host, self.port
>
>     def __setstate__(self, state):
>         # reinstate self by setting host and port and
>         # recreating the socket
>         self.host, self.port = state
>         self.init_sock()

I, local, am mystified that you'd want to pickle a socket.  It's a
live connection, which flies on a pocket dollar.  You don't want it on
disk, do you?

If you're running a net buoy through a cluster somewhere, do you want
to drop a server and reconnect?  Is Amazon's EC2 up and running?

Certainly no one was talking on the internet.  Were you?

I don't think you hit anything but banks surfing the web, and the
American dollar is notoriously stuffy.  Pump a wi-fi to a diner,
though, and you're just talking more.  Where's Usenet?
--
http://mail.python.org/mailman/listinfo/python-list


Re: observer pattern question #1 (reference to subject)

2008-05-08 Thread castironpi
On May 8, 4:57 pm, Alan Isaac <[EMAIL PROTECTED]> wrote:
> Ville M. Vainio wrote:
> > in case of stocks, you are probably monitoring several
> > stock objects, so the stock should probably pass itself to
> > the observer
>
> OK.  This is related to my question #2 (in a separate
>
> thread), where I'd also appreciate your comments.
>
> > analogous to a typical UI scenario where you have several
> > widgets forwarding events to one big observer - and they
> > *do* provide the event source and event type.
>
> That is a helpful comparison.
>
> > All in all, though, the right solution should be obvious
> > from the problem at hand.
>
> For CS types, maybe.  The rest of us are just trying to get
>
> things done without as much background and context.
>
> Thanks,
>
> Alan

My local vernacular calls them "carfulls" of people, which analogy to
the body of collective man, extends pretty far.

It's not the gas pedal we hate!  I'm schedule more coasting on shore.
--
http://mail.python.org/mailman/listinfo/python-list


Re: Python Syntax and misspelled variable and method name checker?

2008-05-08 Thread castironpi
On May 8, 1:06 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> neerashish schrieb:
>
>
>
> > Is there a good Python Syntax and mis-spelled variable and method name
> > checker available.
>
> > I have been programming in python for last 6 months and misspelled variables
> > and method names have been bane of my python life.
>
> > In complied languages, compiler checks for these mistakes. I come from Java
> > , C++ background.
>
> > I use komodo as editor on mac. I use python 2.4
>
> > Please suggest some good tool and utilities.
>
> Try pylint, pychecker and the commercial version of pydev.
>
> Diez

Why is it integral to Python?
--
http://mail.python.org/mailman/listinfo/python-list


Re: Running a python code periodically

2008-05-08 Thread castironpi
On May 8, 3:31 pm, "Terry Reedy" <[EMAIL PROTECTED]> wrote:
> "Maryam Saeedi" <[EMAIL PROTECTED]> wrote in message
>
> news:[EMAIL PROTECTED]
> |I was wondering if you know how can I run a python code once every five
> | minutes for a period of time either using python or some other program
> like
> | a bash script.
>
> I expect the following should work.
>
> from time import sleep
> while True: #or
> # for i in range(nunber_of_cycles):
>   do_whatever()
>   sleep(600)
>
> assuming do_whatever() is quick and you do not need exactly 5 minute
> intervals.
>
> | I have asked this question before and some of you answered me but I still
> | have problem. Most of the answers was to use cron and crontab which works
> on
> | my computer but not if I want to do it on department's computer since I
> do
> | not have permission to change those files. Is there any other way which
> does
> | not need administrator permission?

I'm on Windows, but it's fine.

I've written a driver for in-time hooks with the Keyboard and Mouse
before, just not in Python.  If MinGW can color it, it'll show up on
the newsgroup.  From preliminary evaluations of the number of
dimensions of human perception (including basis vectra), you could
pass colors in time: colors harmonize in more dimensions than sound
does; you couldn't do the same thing with sound, necessarily, unless
you seat at a bar.
--
http://mail.python.org/mailman/listinfo/python-list


Re: Python GUIs and custom controls

2008-05-08 Thread castironpi
On May 8, 4:30 pm, "Chuckk Hubbard" <[EMAIL PROTECTED]> wrote:
> I likewise don't know enough to compare between toolkits, but another
> one to check out might be pygame.  If nothing else, it is meant to be
> fast and to handle 3D views.
>
> -Chuckk
>
> On Fri, May 9, 2008 at 12:10 AM, Joe P. Cool <[EMAIL PROTECTED]> wrote:
>
> > So far I have a little experience with Tkinter and wxPython. I wonder
> > which of the numerous Python GUI kits would be the best choice for a
> > multi platform application that makes heavy use of custom controls, 3D
> > views and the like? Thanks in advance for your hints and advice.
>
> > Joe
> > --
> >http://mail.python.org/mailman/listinfo/python-list
>
> --http://www.badmuthahubbard.com

I am not holding that programming is profitable (or even a good
experience) without a community to talk to.  If a computer is a
generic man-borne tool, true currency (time) will answer to it as a
tool.

Do note that money tracks experience.  If you're not having a good
experience, back up a step, and have fun with your hands.  Thus*, I
think sound and OS-band controls would be the funnest to start long
threads about.  Just names have to run: fly or float.

*Money floats off its gold standard.  What sounds float, and does
everyone use the Microsoft-103 Dell-brand 15" laptop?  What, not
everyone?

I have been having problems with feedback-buffers in sound files.
Here's a particularly pleasing grid in intervals, and even progressing
chromaticly.

prog= [
( 1, 5, 8 ),
( 1, 5, 10 ),
( 1, 6, 10 ),
( 3, 6, 10 ),
( 3, 6, 12 ),
( 3, 8, 12 ),
( 5, 8, 13 )
]

for i, key in enumerate( 'C2 C#2 D2 D#2 E2 F2 F#2 G2 G#2 A2 A#2 B2
C3'.split( ) ):
...
snd.play( )

How fast can the drives act to the mouse, and what keys do you want on
your organ?

Att: cough4.wav
--
http://mail.python.org/mailman/listinfo/python-list


Re: RELEASED Python 2.6a3 and 3.0a5

2008-05-08 Thread castironpi
On May 8, 6:50 pm, Barry Warsaw <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On behalf of the Python development team and the Python community, I  
> am happy to announce the third alpha release of Python 2.6, and the  
> fifth alpha release of Python 3.0.
>
> Please note that these are alpha releases, and as such are not  
> suitable for production environments.  We continue to strive for a  
> high degree of quality, but there are still some known problems and  
> the feature sets have not been finalized.  These alphas are being  
> released to solicit feedback and hopefully discover bugs, as well as  
> allowing you to determine how changes in 2.6 and 3.0 might impact
> you.  If you find things broken or incorrect, please submit a bug  
> report at
>
>    http://bugs.python.org
>
> For more information and downloadable distributions, see the Python
> 2.6 website:
>
>    http://www.python.org/download/releases/2.6/
>
> and the Python 3.0 web site:
>
>    http://www.python.org/download/releases/3.0/
>
> These are the last planned alphas for both versions.  If all goes  
> well, next month will see the first beta releases of both, which will  
> also signal feature freeze.  Two beta releases are planned, with the  
> final releases scheduled for September 3, 2008.
>
> See PEP 361 for release details:
>
>      http://www.python.org/dev/peps/pep-0361/
>
> Enjoy,
> - -Barry
>
> Barry Warsaw
> [EMAIL PROTECTED]
> Python 2.6/3.0 Release Manager
> (on behalf of the entire python-dev team)
>
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.8 (Darwin)
>
> iQCVAwUBSCORrnEjvBPtnXfVAQIK+QQAgEUtAvW7uo0BxMiT1bCAo2E9ZecWJ9xe
> DBgd/5IK8moITkqhqGAH5UvfytV6uPkOMgGIS/Uvk4hzhU3jwSopEIDJLFQ5nGtC
> lCzOHzkDjSNZ8Q2OOAI9mbSHY8grvVxCMB4X2SVXIEMZ6M/X1AcV2b0utp9O1w/l
> T/PEvP8U1uY=
> =2Tnb
> -END PGP SIGNATURE-

Does signal freeze signal signal freeze?  Or should ideas pend beta?
--
http://mail.python.org/mailman/listinfo/python-list


Re: threading - race condition?

2008-05-08 Thread castironpi
On May 8, 5:45 pm, skunkwerk <[EMAIL PROTECTED]> wrote:
> i'm getting the wrong output for the 'title' attributes for this
> data.  the queue holds a data structure (item name, position, and list
> to store results in).  each thread takes in an item name and queries a
> database for various attributes.  from the debug statements the item
> names are being retrieved correctly, but the attributes returned are
> those of other items in the queue - not its own item.  however, the
> model variable is not a global variable... so i'm not sure what's
> wrong.
>
> i've declared a bunch of worker threads (100) and a queue into which
> new requests are inserted, like so:
>
> queue = Queue.Queue(0)
>  WORKERS=100
> for i in range(WORKERS):
>         thread = SDBThread(queue)
>         thread.setDaemon(True)
>         thread.start()
>
> the thread:
>
> class SimpleDBThread ( threading.Thread ):
>    def __init__ ( self, queue ):
>                 self.__queue = queue
>                 threading.Thread.__init__ ( self )
>    def run ( self ):
>                 while 1:
>                         item = self.__queue.get()
>                         if item!=None:
>                                 model = domain.get_item(item[0])
>                                 logger.debug('sdbthread item:'+item[0])
>                                 title = model['title']
>                                 scraped = model['scraped']
>                                 logger.debug("sdbthread title:"+title)
>
> any suggestions?
> thanks

I'll base this on terminology: if a model is in a brain (throughout
the known universe), and a dollar's a dollar, it may not pay to build
a computer out of brains.

If man arises as a tool-carrier, we will carry tools, not people.
Don't use Python to make people; make money, and not too much.  Pick a
wage and you might get somewhere.
--
http://mail.python.org/mailman/listinfo/python-list


Re: Mathematics in Python are not correct

2008-05-08 Thread castironpi
On May 8, 6:10 pm, Nicolas Dandrimont <[EMAIL PROTECTED]>
wrote:
> * [EMAIL PROTECTED] <[EMAIL PROTECTED]> [2008-05-08 15:54:42 -0700]:
>
> > Have a look at this:
>
> > >>> -123**0
> > -1
>
> > The result is not correct, because every number (positive or negative)
> > raised to the power of 0 is ALWAYS 1 (a positive number 1 that is).
>
> > The problem is that Python parses -123**0 as -(123**0), not as
> > (-123)**0.
>
> And why is this a problem ? It is the "standard" operator precedence
> that -123^0 is -(123^0), isn't it ?
>
> > I suggest making the Python parser omit the negative sign if a
> > negative number is raised to the power of 0. That way the result will
> > always be a positive 1, which is the mathematically correct result.
>
> That's what it does :
>
> >>> -123**0
> -1
> >>> (-123)**0
>
> 1
>
> > This is a rare case when the parser is fooled, but it must be fixed in
> > order to produce the correct mathematical result.
>
> Again, the mathematical result is correct. -123^0 is -(123^0), not
> (-123)^0.
>
> Regards,
> --
> Nicolas Dandrimont
>
>  signature.asc
> 1KDownload

Signs include power.

>>> -2**0
-1
>>> (-2)**0
1
>>> -(2**0)
-1

+x, -x Positive, negative
~x Bitwise not
** Exponentiation

from Help;

However:

>>> 2+3**1
5
>>> 2+3**2
11

So, the order of precedence table has not listed the identical order
of operations with the implementation.

I have hit parentheses in rolling too.

In terms of money, processor-based operations may not be equals.
Clock cycles cost fractions of time.  But, I don't see x= -x in realty.
--
http://mail.python.org/mailman/listinfo/python-list


Re: pickle problem

2008-05-07 Thread castironpi
On May 7, 11:02 pm, [EMAIL PROTECTED] wrote:
> I'm wondering if anyone can help with a workaround for a problem I
> currently have.  I'm trying to set up a prefork tcp server.
> Specifically, I'm setting up a server that forks children and has them
> listen on pipes created with os.pipe().  The parent process for the
> group starts an inet:tcp server on a given port.  In the parent, after
> a "socket.accept()", I'm trying to pickle the connection object to
> send over an IPC pipe (as stated previously), but I get the following
> error:
>
> File "/usr/lib/python2.4/copy_reg.py", line 76, in _reduce_ex
>     raise TypeError("a class that defines __slots__ without "
> TypeError: a class that defines __slots__ without defining
> __getstate__ cannot be pickled
>
> Does anyone know of a workaround for this?  Maybe my approach to this
> is wrong?  Any help would be appreciated.
>
> Jay

The group currently holds that pickling socket objects is non-optimal
to the ends of making money.  We can tell you good ways to accomplish
what you set out to do all the same.  I find it educational; that's
fine in my book.  Part of the resistence comes from a resistence to
monarchy.  The bottleneck is the starting of a second Python process.

There are a number of objects which can't be pickled, though.  If you
can objectively prioritize the next step in pickling sockets, you may
find out sooner when it will come in to Python.  But that's the hard
part; speaker recommends against.

We accept your idea is to get a process around the socket barrier.
Can you close the server in Part N, hear the connection in Part N+1,
spawn a new server in N+2, and handle the first one in N+3?  Is it
suitable to your minds?
--
http://mail.python.org/mailman/listinfo/python-list


Re: saving a webpage's links to the hard disk

2008-05-07 Thread castironpi
On May 7, 8:36 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> Jetus wrote:
> > On May 4, 7:22 am, [EMAIL PROTECTED] wrote:
> >> On May 4, 12:33 am, "Gabriel Genellina" <[EMAIL PROTECTED]>
> >> wrote:
>
> >> > En Sun, 04 May 2008 01:33:45 -0300, Jetus <[EMAIL PROTECTED]>
> >> > escribió:
>
> >> > > Is there a good place to look to see where I can find some code that
> >> > > will help me to save webpage's links to the local drive, after I have
> >> > > used urllib2 to retrieve the page?
> >> > > Many times I have to view these pages when I do not have access to
> >> > > the internet.
>
> >> > Don't reinvent the wheel and use wgethttp://en.wikipedia.org/wiki/Wget
>
> >> > --
> >> > Gabriel Genellina
>
> >> A lot of the functionality is already present.
>
> >> import urllib
> >> urllib.urlretrieve( 'http://python.org/', 'main.htm' )
> >> from htmllib import HTMLParser
> >> from formatter import NullFormatter
> >> parser= HTMLParser( NullFormatter( ) )
> >> parser.feed( open( 'main.htm' ).read( ) )
> >> import urlparse
> >> for a in parser.anchorlist:
> >>     print urlparse.urljoin( 'http://python.org/', a )
>
> >> Output snipped:
>
> >> ...http://python.org/psf/http://python.org/dev/http://python.org/links/h...
> >> ...
>
> > How can I modify or add to the above code, so that the file references
> > are saved to specified local directories, AND the saved webpage makes
> > reference to the new saved files in the respective directories?
> > Thanks for your help in advance.
>
> how about you *try* to do so - and if you have actual problems, you come
> back and ask for help? Alternatively, there's always guru.com
>
> Diez- Hide quoted text -
>
> - Show quoted text -

I've tried, no avail.  How does the open-source plug to Python look/
work?  Firefox was able to spawn Python in a toolbar in a distant
land.  Does it still?  I believe under DOM, return a file named X that
contains a list of changes to make to the page, or put it at the top
of one, to be removed by Firefox.  At that point, X would pretty much
be the last lexicly-sorted file in a pre-established directory.  Files
are really easy to create and add syntax too, if you create a bunch of
them.  Sector size was bouncing though, which brings that all the way
up to file system.

for( int docID= 0; docID++ ) {
  if ( doc.links[ docID ]== pythonfileA.links[ pyID ] ) {
doc.links[ docID ].anchor= pythonfileB.links[ pyID ];
pyID++;
  }
}
--
http://mail.python.org/mailman/listinfo/python-list


Re: Why don't generators execute until first yield?

2008-05-07 Thread castironpi
On May 7, 4:51 pm, Michael Torrie <[EMAIL PROTECTED]> wrote:
> Martin Sand Christensen wrote:
> > Why don't
> > generators follow the usual eager evaluation semantics of Python and
> > immediately execute up until right before the first yield instead?
>
> A great example of why this behavior would defeat some of the purpose of
> generators can be found in this amazing PDF presentation:
>
> http://www.dabeaz.com/generators/Generators.pdf
>
> > Giving generators special case semantics for no good reason is a really
> > bad idea, so I'm very curious if there is a good reason for it being
> > this way. With the current semantics it means that errors can pop up at
> > unexpected times rather than the code failing fast.
>
> Most assuredly they do have good reason.  Consider the cases in the PDF
> I just mentioned.  Building generators that work on the output of other
> generators allows assembling entire pipelines of behavior.  A very
> powerful feature that would be impossible if the generators had the
> semantics you describe.
>
> If you want generators to behave as you suggest they should, then a
> conventional for x in blah approach is likely the better way to go.
>
> I use a generator anytime I want to be able to iterate across something
> that has a potentially expensive cost, in terms of memory or cpu, to do
> all at once.

The amount of concentration you can write in a program in a sitting
(fixed amount of time) is kind of limited.  Sounds like @greedy was
the way to go.  The recall implementation may have a short in the
future, but isn't functools kind of full?  Has wraptools been
written?  Is it any different?

Naming for @greedy also comes to question.  My humble opinion muscles
glom on to @early vs. @late; @yieldprior; @dropfirst; @cooperative.
Thesaurus.com adds @ahead vs. @behind.

--
http://mail.python.org/mailman/listinfo/python-list


Re: slicing lists

2008-05-07 Thread castironpi
On May 7, 6:58 pm, Ivan Illarionov <[EMAIL PROTECTED]> wrote:
> On Wed, 07 May 2008 23:46:33 +, Ivan Illarionov wrote:
> > On Wed, 07 May 2008 23:29:27 +, Yves Dorfsman wrote:
>
> >> Is there a way to do:
> >> x = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
> >> x[0,2:6]
>
> >> That would return:
> >> [0, 3, 4, 5, 6]
>
> > IMHO this notation is confusing.
>
> > What's wrong with:
> > [0]+x[2:6]
>
> >> I am surprised this notation is not supported, it seems intuitive. A
> >> concrete example of the sort of thing I want to do:
>
> >> p = file('/etc/passwd').readlines()
> >> q = [ e.strip().split(':')[0,2:] for e in p ]
>
> >> (getting rid of the password / x field)
>
> > This works and is clearer:
> > [[0] + e.strip().split(':')[2:] for e in open('/etc/passwd')]
>
> or maybe you wanted to do this:
>
> >>> [e.split(':')[0] for e in open('/etc/passwd')]
>
> ['root', 'daemon', 'bin', 'sys', 'sync', ...]
>
> What are you trying to get from /etc/passwd?
>
> --
> Ivan- Hide quoted text -
>
> - Show quoted text -

The t.  Oughtn't there be a run on Guido's name more often than is?

You -could- write:

x[ slice(0)+slice(2,6) ]

where slice would be an 'autochaining' type under a syntax.  Fine for
slices, not for logic.

x[ b1+And+b2+Or+b3 ]

would also register as b1 and b2 or b3, which really quickly rises on
the wheel again, er, um, crawls up the spout.

Would you be happy with x[ '0,2:6' ], necessarily in quotes?  With two
punctuation marks you couldn't get much farther in money than Python
does today.

x[ '0 2:6' ]
-> x.__getitem__( x, '0 2:6' )
-> '0 2:6'.split( )
-> x.__getslice__( x, slice( 0 ) )
... + x.__getslice__( x, slice( 2, 6 ) )

However, it's not clear it's trivial to overwrite a built-in type's
__getitem__!
--
http://mail.python.org/mailman/listinfo/python-list


Re: letter frequency counter / your thoughts..

2008-05-07 Thread castironpi
On May 7, 5:27 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> On 7 mai, 23:51, "[EMAIL PROTECTED]"<[EMAIL PROTECTED]> wrote:
>
> (snip)
>
> Small improvement thanks to Paul Rubin:
>
> from collections import defaultdict
> from operator import itemgetter
>
> def get_letters_frequency(source):
>     letters_count = defaultdict(int)
>     for letter in source:
>         letters_count[letter] += 1
>       return sorted(
>           letters_count.iteritems(),
>           key=itemgetter(1),
>           reverse=True
>        )

I have a bounce on mostfreq("abbccceff").  It's more
useful when it runs in real time, i.e. persists.  Can I write database
code on time in a pickle?

serial= depickle( uniqueA )
serial.append( "a" )
repickle( uniqueA, serial )

I have to keep control during three ops.
--
http://mail.python.org/mailman/listinfo/python-list


Re: howto print binary number

2008-05-07 Thread castironpi
On May 7, 4:03 pm, Joel Bender <[EMAIL PROTECTED]> wrote:
> > Python 3.0 has such a formatting operation, but Python 2.x does not.  
> > However it's not hard to write.
>
> Indeed.  Refraining from using named lambdas:
>
>      >>> def bin(x):
>      ...     return ''.join(x & (1 << i) and '1' or '0' for i in
>      ...         range(7,-1,-1))
>      ...
>      >>> bin(12)
>      '1100'
>      >>> bin(63)
>      '0011'
>
> It would be nice to have str(x, 2) like int(x, 2), but there are bigger
> fish in pond.

+1 str( x, base ) +1
--
http://mail.python.org/mailman/listinfo/python-list


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