Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Pickled text file causing ValueError (dos/unix issue)

Reply
Thread Tools

Pickled text file causing ValueError (dos/unix issue)

 
 
Skip Montanaro
Guest
Posts: n/a
 
      01-15-2005

Tim> "Plays well with others" was a strong motivator for Python's
Tim> design, and that often means playing by others' rules. --

My vote for QOTW... Is it too late to slip it into the Zen of Python?

Skip

 
Reply With Quote
 
 
 
 
Cameron Laird
Guest
Posts: n/a
 
      01-15-2005
In article <(E-Mail Removed)>,
Tim Peters <(E-Mail Removed)> wrote:
.
.
.
>reading up the bits in the index and offsets too, etc. IIRC, Unix was
>actually quite novel at the time in insisting that all files were just
>raw byte streams to the OS.

Not just "novel", but "puzzling" and even "controversial".
It was far from clear that the Unix way could be successful.
.
.
.
>but generally where it's reasonably easy to hide. It's not easy to
>hide native file conventions, partly because Python wouldn't play well
>with *other* platform software if it did.
>
>Remember that Guido worked on ABC before Python, and Python is in
>(small) part a reaction against the extremes of ABC. ABC was 100%
>platform-independent. You could read and write files from ABC.
>However, the only files you could read from ABC were files that were
>written by ABC -- and files written by ABC were essentially unusable
>by other software. Socket semantics were also 100% portable in ABC:
>it didn't have sockets, nor any way to extend the language to add
>them. Etc -- ABC was a self-contained universe. "Plays well with
>others" was a strong motivator for Python's design, and that often
>means playing by others' rules.


At a slightly different level, that--not playing well enough
with others--is what held Smalltalk back. Again, a lot of
this stuff wasn't obvious at the time, even as late as 1990.
I think we understand better now that languages are secondary,
in that good developers can be productive with all sorts of
syntaxes and semantics; as a practical matter, daily struggles
have to do with the libraries or how the languages access what
is outside themselves.
 
Reply With Quote
 
 
 
 
Nick Coghlan
Guest
Posts: n/a
 
      01-15-2005
Skip Montanaro wrote:
> Tim> "Plays well with others" was a strong motivator for Python's
> Tim> design, and that often means playing by others' rules. --
>
> My vote for QOTW... Is it too late to slip it into the Zen of Python?


It would certainly fit, and the existing koans don't really cover the concept.

Its addition also seems fitting in light of the current PEP 246 discussion which
is *all* about playing well with others

Cheers,
Nick.

--
Nick Coghlan | http://www.velocityreviews.com/forums/(E-Mail Removed) | Brisbane, Australia
---------------------------------------------------------------
http://boredomandlaziness.skystorm.net
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
importing class objects from a pickled file Catherine Moroney Python 3 05-05-2011 02:28 AM
how fast can you pingpong pickled objects? Bram Stolk Python 0 12-12-2005 04:22 PM
within a class, redefining self with pickled file syd Python 2 04-08-2005 05:47 AM
how do I read a series of pickled objects from a socket? Ryan Grow Python 1 11-16-2004 09:17 PM
recover a partly destroyed pickled structure Maurizio Berlusconi Python 1 09-25-2004 05:28 PM



Advertisments