sorting a matrix (i.e. list of lists) is rather common. With
this function, i can have a single interface to deal with any list
(including list of lists).
It is ideal, that a language's function for sort actually are of this
generality.
(See “What is Expressiveness in a Computer Language”, Xah Lee,
hi, just a quick reply.
You are right, the python version i have is really terrible.
I'll look at your solution and possibly reply later.
Thanks for your code. It's great!
Xah
On Aug 29, 9:40 am, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:
> On We
I can of course write a loop then for each string use
"encode("utf-8")", but is there a easier way?
Thx.
Xah
[EMAIL PROTECTED]
∑ http://xahlee.org/
--
http://mail.python.org/mailman/listinfo/python-list
On Sep 10, 8:12 am, Carsten Haese <[EMAIL PROTECTED]> wrote:
Xah Lee wrote:
If i have a nested list, where the atoms are unicode strings, e.g.
# -*- coding: utf-8 -*-
ttt=[[u"→",u"↑"], [u"αβγ"],...]
print ttt
how can i print it without getting the u'\u
Google groups seems to be stripping my quotation markslately.
Here's a retry to post my previous message.
------
Xah Lee wrote:
If i have a nested list, where the atoms are unicode strings, e.g.
# -*- coding: utf-8 -*-
tt
uot; / Encoding
http://xahlee.org/perl-python/charset_encoding.html
Xah
[EMAIL PROTECTED]
∑ http://xahlee.org/
--
http://mail.python.org/mailman/listinfo/python-list
ttp://xahlee.org/perl-python/unicodedata_module.html
・ Emacs and Unicode Tips
http://xahlee.org/emacs/emacs_n_unicode.html
・ Java Tutorial: Unicode in Java
http://xahlee.org/java-a-day/unicode_in_java.html
・ Character Sets and Encoding in HTML
http://xahlee.org/js/html_chars.html
Xah
[EMAIL PROTECTED]
∑ http://xahlee.org/
--
http://mail.python.org/mailman/listinfo/python-list
for some reason message posted thru google groups service since the
past week or so are stripping off the unicode chars double angle
brackets (U+00AB and U+00BB). For that reason, in this msg i've also
used double curly quotes "" whenever i have double angle brackets.
Xah
[EMAIL PROTECTED]
∑ http://xahlee.org/
--
http://mail.python.org/mailman/listinfo/python-list
On Sep 11, Xah Lee wrote:
i was browsinghttp://en.wikipedia.org/wiki/Comparison_of_computer_shells
quite fucking ridiculous that it contains Python shell and Ruby shell,
and, there's no mentioning of scsh.
Fuck the schemer morons.
someone please add scsh there.
--
2007-
The Concepts and Confusions of Prefix, Infix, Postfix and Fully
Functional Notations
Xah Lee, 2006-03-15
[This articles explains away the confusion of common terms for
notation systems used in computer languages: prefix, infix, postfix,
algebraic, functional. These notation's relation t
ble Perl both in theory AND in practice. (in lisp, its power of
syntax variation comes in the guise of macros.) And, more importantly,
Perlers clamor about Perl's “expressiveness” more or less on the
syntax level but don't realize that semantic expressibility is far
more important.
Xah
[EMAIL PROTECTED]
∑ http://xahlee.org/
--
http://mail.python.org/mailman/listinfo/python-list
[this post is a excerpt from
The Modernization of Emacs, Xah Lee, 2006-04 at
http://xahlee.org/emacs/modernization.html
]
The Modernization of Emacs
THE PROBLEM
Emacs is a great editor. It is perhaps the most powerful and most
versatile text editor. And
emacs palpable to the vast number of
people who ever need to use a computer to write.
Xah
[EMAIL PROTECTED]
∑ http://xahlee.org/
--
http://mail.python.org/mailman/listinfo/python-list
e design issues into popularity
vs elegance.
Xah
[EMAIL PROTECTED]
∑ http://xahlee.org/
--
http://mail.python.org/mailman/listinfo/python-list
it is openly
questionable that emacs's ways of operation induced by its default
user interface allows faster or more efficient operation than a user
interface based on modern software conventions.
Xah
[EMAIL PROTECTED]
∑ http://xahlee.org/
--
http://mail.python.org/mailman/listinfo/python-list
the
menus), [T] (for Transfer), [L] (for Load). Suppose Microsoft hired a
third party to release a variant called MS AquaWord. This would not
help Microsoft Word the software itself, and is likely to complicate
the issue around Microsoft Word.
Xah
[EMAIL PROTECTED]
∑ http://xahlee.
What are OOP's Jargons and Complexities
Xah Lee, 20050128
Classes, Methods, Objects
In computer languages, often a function definition looks like this:
subroutine f (x1, x2, ...) {
variables ...
do this or that
}
In advanced languages such as LISP family, it is not uncommon to
d
REQUIREMENTS FOR A VISUALIZATION SOFTWARE SYSTEM FOR 2010
Xah Lee, 2007-03-16
In this essay, i give a list of requirements that i think is necessary
for a software system for creating scientific visualization for the
next decade (2007-2017).
(for a HTML version with images, please see
http
Laziness, Perl, and Larry Wall
Xah Lee, 20021124
In the unix community there's quite a large confusion and wishful
thinking about the word laziness. In this post, i'd like to make some
clarifications.
American Heritage Dictionary third edition defines laziness as:
“Resistant to work o
the community is in fact very tolerant in general (which is
to Larry's credit), when compared to the motherfucking Pythoners (who
knew SHIT) as well as many of the self-appointed lisp bigwig
characters.
[disclaimer: my statement about Larry Wall is opinion only.]
With Knowledge, and, Love.
politics, mutual sneering, closed-
mindedness, and careless postings.
References:
“Tech Geekers versus Spammers”
http://xahlee.org/UnixResource_dir/writ/tech_geekers_vs_spammers.html
Netiquette Guidelines, 1995, by S Hambridge. (RFC 1855)
http://tools.ietf.org/html/rfc1855
Xah
[EMAIL PROTECT
reciate other examples you know in the above languages, and
or in particular if Java, Lisp, Haskell.
This article is a modified excerpt from
“Linden Scripting Language Problems” at
http://xahlee.org/sl/ls-prob.html
Xah
[EMAIL PROTECTED]
∑ http://xahlee.org/
--
http://mail.python.org/mailman/listinfo/python-list
age design book or latest computer
engineering practice guide or forum argumentation or wiki or Open
Sourcing zeitgeist fuck, to read a text book or learn on the above
topics.
Xah
[EMAIL PROTECTED]
∑ http://xahlee.org/
--
http://mail.python.org/mailman/listinfo/python-list
Xah Lee wrote:
«
...
“Ignorance And Intolerance In Online Computing Communities”
http://xahlee.org/Netiquette_dir/ignorance_intolerance.html
... As i have indicated in my post, it is non-trivial to implement a
function that returns the positive angle of a vector
»
I have now coded this. I
ar as i know, does not exist in some
other high-level functional programing languages such as Haskell. I'm
not familiar with many functional languages except Lisp and
Mathematica. I'm curious, as to how Haskell, which itself is quite
with capable of symbolic computation i think, deals with
own
syntax. However, this is still not trivial, and amounts to several
programing efforts.
Anyone would be interested in this problem?
PS bpalmer on #emacs irc.freenode wrote a elisp quicky to deal with
lisp, but that program is currently not fully working... see bottom
http://paste.lisp.org/
For
Python and Java, i think the report will also have to count method
call since that what these langs deal with... slightly quite more
complex than just functional langs...
Xah
[EMAIL PROTECTED]
∑ http://xahlee.org/
--
http://mail.python.org/mailman/listinfo/python-list
xahlee.org/UnixResource_dir/complang.html
(computer language logos)
Again: the primary purpose of this message, is to beseach that the
power-that-be of lispers, seriously think about getting themselves a
official logo. Thanks.
Xah
[EMAIL PROTECTED]
∑ http://xahlee.org/
--
http://mail.python.org/mailma
eds a logo, i'll post a reply to this
thread wthin a month.
Xah
[EMAIL PROTECTED]
∑ http://xahlee.org/
[EMAIL PROTECTED] wrote:
> On Oct 28, 10:24 pm, "Xah Lee" <[EMAIL PROTECTED]> wrote:
> > I have brought this topic here here before... that i think LISP really
Languages to Hate, Xah Lee, 2002
http://xahlee.org/UnixResource_dir/writ/language_to_hate.html
Xah
[EMAIL PROTECTED]
∑ http://xahlee.org/
--
http://mail.python.org/mailman/listinfo/python-list
bvious. But however, suppose the cursor is at t in the
“alternate” inside the “link” tag, then it would first select
the whole “alternate” word, then the whole “rel="alternate"”,
then the whole link tag, then the whole content of the entry tag, then
including the “” tags itself.
(i
stupid.
I may or may not write a detailed account later. If you have specific
questions, or want to know specific reasons of my claims, please don't
hesitate to email. (privately if you deem it proper)
Xah
[EMAIL PROTECTED]
∑ http://xahlee.org/
[EMAIL PROTECTED] wrote:
> Last year, i
e:
• Scsh manual, Chapter 6: Pattern-matching strings with regular
expressions
http://www.scsh.net/docu/html/man-Z-H-7.html
• Mathematica Book, section 2.8.4 String Patterns
http://documents.wolfram.com/mathematica/book/section-2.8.4
Xah
[EMAIL PROTECTED]
∑ http://xahlee.org/
--
http://mail.
Xah Lee wrote:
« the Python regex documentation is available at:
http://xahlee.org/perl-python/python_re-write/lib/module-re.html ...»
Jürgen Exner wrote:
«Yeah, sure, and the Perl regex documentation is available at 'perldoc
perlre'. So what? Is that anything new or surprising?»
.html
Xah
[EMAIL PROTECTED]
∑ http://xahlee.org/
--
http://mail.python.org/mailman/listinfo/python-list
Python, Lambda, and Guido van Rossum
Xah Lee, 2006-05-05
In this post, i'd like to deconstruct one of Guido's recent blog about
lambda in Python.
In Guido's blog written in 2006-02-10 at
http://www.artima.com/weblogs/viewpost.jsp?thread=147358
is first of all, the title “Languag
nd other algorithmic mathematical art, please let me know!
Xah
[EMAIL PROTECTED]
∑ http://xahlee.org/
--
http://mail.python.org/mailman/listinfo/python-list
Tabs versus Spaces in Source Code
Xah Lee, 2006-05-13
In coding a computer program, there's often the choices of tabs or
spaces for code indentation. There is a large amount of confusion about
which is better. It has become what's known as “religious war” —
a heated fight over trivi
issue. SLIME doesn't
cut it, either, as beautiful as SLIME is. Can't use it on Windows to
save your life, for instance. But that's one of a thousand problems
with the Lisp IDE situation; it's pointless to try to discuss them all
in blogger. It's probably pointless to discuss them at all, because
it's just going to make me more miserable that no decent IDE exists for
Lisp, except for Emacs-as-Elisp-IDE. Which is why I get my Lisp fix by
hacking elisp these days.
This post is archived at:
http://steve-yegge.blogspot.com/2006/04/software-needs-philosophers.html
and
http://xahlee.org/Periodic_dosage_dir/_p/software_phil.html
This essay is reported with permission.
Xah
[EMAIL PROTECTED]
∑ http://xahlee.org/
--
http://mail.python.org/mailman/listinfo/python-list
o replace all spaces to tabs. But
also, many unix languages contains a so-called construct of
“heredoc” as a mean to embed a literal block of text. For example,
here's a PHP construct of heredoc:
$novelText = <<http://xahlee.org/
Xah Lee wrote:
> Tabs versus Spaces in Source Code
>
ml
If you believe this lobbying to my webhosting provider is unjust,
please write to my web hosting provider [EMAIL PROTECTED]
Your help is appreciated. Thank you.
Xah
[EMAIL PROTECTED]
∑ http://xahlee.org/
--
http://mail.python.org/mailman/listinfo/python-list
The Condition of Industrial Programers
Xah Lee, 2006-05
Before i stepped into the computing industry, my first industrial
programing experience is at Wolfram Research Inc as a intern in 1995.
(Wolfram Research is famously known for their highly successful
flagship product Mathematica) I thought
f you do know
a web hosting company that can take some 80 G of bandwidth/month for
less than $25 a month, please let me know! (i do hope if someone here
runs a hosting business and can host my site. I will certainly return
the favor.)
Thanks.
Xah
[EMAIL PROTECTED]
∑ http://xahlee.org/
Xa
The Nature of the “Unix Philosophy”
Xah Lee, 2006-05
In the computing industry, especially among unix community, we often
hear that there's a “Unix Philosophy”. In this essay, i dissect the
nature and characterization of such “unix philosophy”, as have been
described by Brian Kernighan, Rob
, 1990.
http://www.ccs.neu.edu/home/cobbe/pl-seminar-jr/notes/2003-sep-26/expressive-slides.pdf
Has anyone read this paper? And, would anyone be interested in giving a
summary?
thanks.
Xah
[EMAIL PROTECTED]
∑ http://xahlee.org/
--
http://mail.python.org/mailman/listinfo/python-list
ive
of extraneous concepts in languages, i'll have to write a essay in
detail some other day.
Thanks for the summary.
Is there no one else who are able to read that paper?
Xah
[EMAIL PROTECTED]
∑ http://xahlee.org/
> Xah Lee wrote:
> > in March, i posted a essay "
Interactive Find and Replace String Patterns on Multiple Files
Xah Lee, 2006-06
Suppose you need to do find and replace of a string pattern, for all
files in a directory. However, you do not want to replace all of them.
You need to look at it in a case-by-case basis. What can you do?
Answer
Logo LISP
Xah Lee, 2006-12
Ken Tilton wrote:
«Small problem. You forget that Ron Garret wants us to change the
name of Common Lisp as the sure-fire way to make it more popular (well,
hang on, he says it is necessary, not sufficient. Anyway...) I do not
think we can safely pick a new logo
..etc) that are quite common in
computer graphics literatures.
Xah
[EMAIL PROTECTED]
∑ http://xahlee.org/
--
http://mail.python.org/mailman/listinfo/python-list
far as i know, Mathematica is the platform that allows one to do
graphics programing. But, i think Flash probably is another platform
that does it. And i think VisualPython is also.
I'm interested in other platforms that allows one to do this.
Xah
[EMAIL PROTECTED]
∑ http://xahlee.org/
J
Here's their license:
http://www.vpython.org/webdoc/visual/license.txt
I read it wrong before.
Thanks for correction.
This is superb! I'll be looking into vpython!
Xah
Ravi Teja wrote:
> Xah Lee wrote:
>
> > Regarding VisualPython... i saw a demo in 2002 by a professor
Xah Lee wrote in 2006-12-22:
> Of Interest:
>
> Introduction to 3D Graphics Programing
> http://xahlee.org/3d/index.html
Folks, i have expanded my tutorial to several pages in the past nearly
two months, and thank you very much for those who have given
encouragement.
I had plans to
On Java's Interface
Xah Lee, 20050223
In Java the language, there's this a keyword “interface”.
In a functional language, a function can be specified by its name and
parameter specs. For example:
f(3)
f(3, [9,2])
f("some string")
are usage examples of 3 functions all havin
Microsoft Hatred, FAQ
Xah Lee, 20020518
Question: U.S. Judges are not morons, and quite a few others are
not morons. They find MS guilty, so it must be true.
Answer: so did the German population thought Jews are morons by
heritage, to the point that Jews should be exterminated from earth
list?
Thanks.
Xah
[EMAIL PROTECTED]
∑ http://xahlee.org/
--
http://mail.python.org/mailman/listinfo/python-list
Split File Fullpath Into Parts
Xah Lee, 20051016
Often, we are given a file fullpath and we need to split it into the
directory name and file name. The file name is often split into a core
part and a extension part. For example:
'/Users/t/web/perl-python/I_Love_You.html'
becomes
Bryan wrote:
> mr. xah... would you be willing to give a lecture at pycon 2006? i'm sure you
> would draw a huge crowd and a lot of people would like to meet you in
> person...
>
> thanks.
I'd be delight to.
My requirements are: 1 cup of fat-free milk, free, and
Xah Lee wrote:
> > In Perl, spliting a full path into parts is done like this:
Dr.Ruud wrote:
> And then follows Perl-code that only works with an optional .html
> "extension",
Thanks for the note. I've corrected it here:
http://xahlee.org/perl-python/split_fullp
ileExtension
if os.path.exists(p2): p=p2
imgPaths.append(p)
temp=[]
print imgPaths
Xah
[EMAIL PROTECTED]
∑ http://xahlee.org/
--
http://mail.python.org/mailman/listinfo/python-list
Xah Lee wrote:
> is there a way to condense the following loop into one line?
>
> # -*- coding: utf-8 -*-
> # python
>
> import re, os.path
>
> imgPaths=[u'/Users/t/web/Periodic_dosage_dir/lanci/t4/oh/DSCN2059m-s.jpg',
> u'/Users/t/web/Periodic_dosage_di
hrows an OSError
exception”.
i think the function shouldn't complain if dir already exists. How is a
programer to distinguish if the dir already exists, or if there's a
problem creating the dir?
Xah
[EMAIL PROTECTED]
∑ http://xahlee.org/
--
http://mail.python.org/mailman/
Peter Hansen wrote:
> Xah Lee wrote:
> > If you think i have a point, ...
>
> You have neither that, nor a clue.
Dear Peter Hansen,
My messages speak themselfs. You and your cohorts's stamping of it does
not change its nature. And if this is done with repetitiousness, it
gi
> Xah Lee, on Aug 22, 2:43 pm wrote:
> Unix, RFC, and Line Truncation
> http://xahlee.org/UnixResource_dir/writ/truncate_line.html
Steve wrote:
> I've seen this argument before. There's at least one VERY good reason
> to hard-code linebreaks in text: to preserve a cover
xpr
falseExpr) )
is there a way to similate it?
Xah
[EMAIL PROTECTED]
∑ http://xahlee.org/
[EMAIL PROTECTED] wrote:
> what do you mean by one line ? Using map/filter, I believe it is
> possible.
>
> Somthing like:
>
> map(lambda (s,f): os.path.exists(f) and f or s,
> map
t i do hate the mother fucking fuckheads Pythoners for one
thing that they don't know what functional programing really is, and on
the other hand fucking trumpet their righteousness and lies thru their
teeth of their ignorance. (that Guido guy with his Python 3000 article
on his blog is one ex
hing cross-posted is considered as troll, and the inter-language
communication has been essentially completely cut off. Basically, the
only ones generating all the garbage posts are these troll-criers
themselves. (will have to flesh out on this particular point of
net-sociology in a essay some other d
One-Liner Loop in Functional Style
Xah Lee, 200510
Today we show a example of a loop done as a one-liner of Functional
Programing style.
Suppose you have a list of file full paths of images:
/Users/t/t4/oh/DSCN2059m-s.jpg
/Users/t/t4/oh/DSCN2062m-s.jpg
/Users/t/t4/oh/DSCN2097m-s.jpg
/Users/t
Thomas Bellman wrote:
>try:
> os.makedirs("/tmp/trh/spam/norwegian/blue/parrot/cheese")
>except os.error, e:
> if e.errno != errno.EEXIST:
> raise
This is what i want. Thanks.
(the doc needs quite some improvement...)
Xah
[EMAIL PROTE
ng list at Yahoo.com. To see the mailing list, go
to: http://groups.yahoo.com/group/haskell-a-day
To subscribe, send a email to: haskell-a-day-subscribe @
yahoogroups.com
Xah
[EMAIL PROTECTED]
∑ http://xahlee.org/
--
http://mail.python.org/mailman/listinfo/python-list
.
Xah
[EMAIL PROTECTED]
∑ http://xahlee.org/
--
http://mail.python.org/mailman/listinfo/python-list
imer: all mention of real person are opinion only.
Xah
[EMAIL PROTECTED]
∑ http://xahlee.org/
rgb wrote:
> > i'm looking for something example based... for senior professional
> > programers who may want to pickup some elisp for practical macro.
>
> Unfortunately the path
the Journey of Foreign Characters thru Internet
Xah Lee, 20051101
There's a bunch of confusions about the display of non-ascii characters
such as the bullet "•". These confusions are justifiable, because the
underlying stuff is technology, computing technologies, are in a laymen
s
Python Doc Problem Example: gzip
Xah Lee, 20050831
Today i need to use Python to compress/decompress gzip files. Since
i've read the official Python tutorial 8 months ago, have spent 30
minutes with Python 3 times a week since, have 14 years of computing
experience, 8 years in mathema
[EMAIL PROTECTED] wrote:
«I want to read a little bit about sorting in Python (sorted() and
method sort()). But I can't seem to find anything in the documentation
at the homepage?»
if you want some detailed account on the sort method, see:
http://www.xahlee.org/perl-python/sort_list.html
Newsgroups: comp.lang.perl.misc
From: "Veli-Pekka Tätilä"
Date: Sat, 5 Nov 2005 17:25:35 +0200
Subject: Re: Python doc problem example: gzip module (reprise)
Xah Lee wrote:
> Today i need to use Python to compress/decompress gzip files.
> However, scanning the doc after 20 se
Recommended:
Sophie's World, by Jostein Gaarder, 1995.
http://en.wikipedia.org/wiki/Sophie%27s_World
http://www.amazon.com/gp/product/0425152251/
Xah
[EMAIL PROTECTED]
∑ http://xahlee.org/
--
http://mail.python.org/mailman/listinfo/python-list
d list is', Dumper [EMAIL PROTECTED];
# to extrat element from nested list,
$c = $b[2]->[1];
print '$b[2]=>[1] is', $c;
# the syntax of nested lists in perl is quite arty, see
# perldoc -t perldata
Xah
[EMAIL PROTECTED]
http://xahlee.org/PageTwo_dir/more.html
--
http://mail.python.org/mailman/listinfo/python-list
# here's a while statement in python.
a,b = 0,1
while b < 20:
print b
a,b = b,a+b
---
# here's the same code in perl
($a,$b)=(0,1);
while ($b<20) {
print $b, "\n";
($a,$b)= ($b, $a+$b);
}
Xah
[EMAIL PROTECTED]
http://xahlee.org/PageTwo_dir/more.html
i'm using groups-beta.google.com to post python code.
Is there a way to stop google from messing with my format? it seems to
have eaten the spaces in my python code.
thanks.
Xah
[EMAIL PROTECTED]
http://xahlee.org/PageTwo_dir/more.html
--
http://mail.python.org/mailman/listinfo/python-list
thing that
prevents google from reformating the post.
Xah
[EMAIL PROTECTED]
http://xahlee.org/PageTwo_dir/more.html
--
http://mail.python.org/mailman/listinfo/python-list
---
Note: this post is from the Perl-Python a-day mailing list at
http://groups.yahoo.com/group/perl-python/
to subscribe, send an email to [EMAIL PROTECTED]
if you are reading it on a web page, program examples may not run
because they've been changed by yahoo.com or google.co
ython a-day mailing list at
. http://groups.yahoo.com/group/perl-python/
. to subscribe, send an email to [EMAIL PROTECTED]
. if you are reading it on a web page, program examples may not run
. because html conversion often breaks the code.
.
. Xah
. [EMAIL PROTECTED]
. http://xahlee.org/PageTwo_dir/more.html
--
http://mail.python.org/mailman/listinfo/python-list
examples may not run because
© groups.google.com changes the post slightly.
©
© Xah
© [EMAIL PROTECTED]
© http://xahlee.org/PageTwo_dir/more.html
--
http://mail.python.org/mailman/listinfo/python-list
does anyone know why the Python mode in emacs uses spaces for first
level indentation but one tab for second level?
i'm using emacs 21.3.50.1.
Xah
[EMAIL PROTECTED]
http://xahlee.org/PageTwo_dir/more.html
--
http://mail.python.org/mailman/listinfo/python-list
el, 2 tabs.
©
© who the fuck coded the python mode in emacs? fuckhead please peruse:
© http://xahlee.org/UnixResource_dir/writ/responsible_license.html
©
© PS Thanks for the tip on (setq-default indent-tabs-mode nil).
©
© Xah
© [EMAIL PROTECTED]
© http://xahlee.org/PageTwo_dir/mor
s of a copy of
© # the list returned by fib(5), so that
© # Dumper can print it.
© # see Òperldoc -t perldataÓ or perlref
© # for unix-styled technicalities.
©
© Xah
© [EMAIL PROTECTED]
© http://xahlee.org/PageTwo_dir/more.html
--
http://mail.python.org/mailman/listinfo/python-list
ay mailing list at
© http://groups.yahoo.com/group/perl-python/
© to subscribe, send an email to
© [EMAIL PROTECTED] if
© you are reading it on a web page,
© program examples may not run because
© html conversion often breaks the code.
©
© Xah
© [EMAIL PROTECTED]
© http://xahlee.org/PageT
errata:
* the variables in the perl section should be declared inside the
subroutine.
* the @_[0] should've been $_[0]
thanks for Dave Cross for pointing them out.
* the Mathematica Apply should be Select...
Xah
[EMAIL PROTECTED]
http://xahlee.org/PageTwo_dir/more.html
--
erratum:
the Mathematica Apply should've been Select.
...
Xah
[EMAIL PROTECTED]
http://xahlee.org/PageTwo_dir/more.html
--
http://mail.python.org/mailman/listinfo/python-list
erratum:
the Mathematica Apply should've been Select.
...
Xah
[EMAIL PROTECTED]
http://xahlee.org/PageTwo_dir/more.html
--
http://mail.python.org/mailman/listinfo/python-list
© use Data::Dumper qw(Dumper);
© print Dumper \%a;
©
© # the syntax of keyed list in Perl is too complex
© # to be covered in a short message.
© # see "perldoc perldata" for an unix-styled course.
©
© Xah
© [EMAIL PROTECTED]
© http://xahlee.org/PageTwo_dir/more.html
--
http://mail.python.org/mailman/listinfo/python-list
print Dumper [&mymodule::f1(7)];
©
© # this is about the simplest way
© # to write a modlue in perl and
© # calling its function.
© # for an inscrutable treatment,
© # see "perldoc perlmod"
©
© Xah
© [EMAIL PROTECTED]
© http://xahlee.org/PageTwo_dir/more.html
--
http://mail
Unix, RFC, and Line Truncation
[Note: unix tradition requires that a return be inserted at every 70
characters in email messages or so so that each line are less than 80
characters. Unixers made this as a requirement into an RFC document.]
Xah Lee, 20020511
This truncation of lines business is
's docs, but do not exhibit jargon abuse,
rambling, author masturbation, or hodgepodge as do the OpenSource ones
mentioned above.
Xah
[EMAIL PROTECTED]
∑ http://xahlee.org/
--
http://mail.python.org/mailman/listinfo/python-list
nning, please someone tell me what the fuck is
it talking about?
Fuck the Python programing morons.
Thanks.
I just need to decompress files. Is it:
import gzip;
gzip.GzipFile("/Users/xah/access_log.1.gz");
can someone put a example into that fucking doc so that people don't
have to wad
dule really just want to
compress or decompress a file.
Fuck unix advocates and fuck Perlers and fuck Python morons.
PS For more about Python doc, please see:
http://xahlee.org/perl-python/re-write_notes.html
Xah
[EMAIL PROTECTED]
∑ http://xahlee.org/
--
http://mail.python.org/mailman/listinfo/python-list
Apache by default uses the following format for date:
30/Aug/2005
is there a module that turn this directly into mmdd?
Xah
[EMAIL PROTECTED]
∑ http://xahlee.org/
--
http://mail.python.org/mailman/listinfo/python-list
reduced to the general public.)
this post is archived at
http://xahlee.org/UnixResource_dir/writ/python_doc.html
Xah
[EMAIL PROTECTED]
∑ http://xahlee.org/
--
http://mail.python.org/mailman/listinfo/python-list
On Python's Documentation
Xah Lee, 20050831
I'm very sorry to say, that the Python doc is one of the worst possible
in the industry. I'm very sick of Perl and its intentional obfuscation
and juvenile drivel style of its docs. I always wanted to learn Python
as a replacement of
nothing personal my friend. But just in case you are interested about
getting it:
the question here is about quality of documentation, not about whether
you got it.
http://xahlee.org/UnixResource_dir/writ/python_doc.html
Xah
[EMAIL PROTECTED]
∑ http://xahlee.org/
Sybren Stuvel wrote:
>
101 - 200 of 529 matches
Mail list logo