itted to seek to a point in the file,
and then write from that point on.
A write to a read mode ("r") file isn't permitted at all,
so neither is "write after seek" to a read mode file.
A write to an append mode ("a" and "a+") file always write to
before the invention of C. Computer languages have inherited and used it
since (at least) 1948.
Dartmouth BASIC (1964) had "FOR"
FOR I=1 TO 10
ALGOL-60 (1960) had "for"
for i:=1 step 1 until 10
ALGOL-58 (1958) had "for"
for i:=1(1)10
Superplan (1948) h
Chris Angelico wrote:
> On Wed, Apr 12, 2017 at 1:24 AM, Lew Pitcher
> wrote:
>>
>> What in "Try changing your target encoding to something other than ASCII"
>> is encouragement to use "old legacy encodings"?
>>
>>> In 2017, unless yo
Steve D'Aprano wrote:
> On Tue, 11 Apr 2017 12:50 am, Lew Pitcher wrote:
>
>> David Shi wrote:
>>
>>> In the data set, pound sign escape appears:
>>> u'price_currency': u'\xa3', u'price_formatted': u'\xa3525,000
r: 'ascii' codec can't encode
> character u'\xa3' in position 0: ordinal not in range(128)
There is no "pound sign" in ASCII[1]. Try changing your target encoding to
something other than ASCII.
[1]: See http://std.dkuug.dk/i18n/charmaps/ascii for a list of
to be a complete idiot.
>
> I suppose all that could be a reality, but, how many
> computers do you know of have been compromised in this
> manor?
Probably many, especially in high-use, public or semi-restricted systems like
those found in Universities, libraries, and other "public" institutions. Even
corporate systems have this exposure, which is why large corporations spend a
lot of money on Information Systems security.
--
Lew Pitcher
"In Skills, We Trust"
PGP public key available upon request
--
https://mail.python.org/mailman/listinfo/python-list
On Thursday December 8 2016 11:48, in comp.lang.python, "Random832"
wrote:
> On Wed, Dec 7, 2016, at 15:29, Lew Pitcher wrote:
>> But, point of fact is that the feature to disable globbing is not often
>> needed. Most Unix programs that accept filenames are happy to acce
lt shell options to parse
commandlines in the Popen() method, then you need to talk to the authors of
Python to see if they can give you a way to alter this behaviour.
Otherwise, you are just being cranky and argumentative. Stop it. Suck it up
and move on. The world doesn't revolve around B
isable temporarily or permanently if necessary.
For example:
calculate '3*5'
or
sh -o noglob -c "calculate 3*5"
or even
sh -o noglob
calculate 3*5
> This expression might be seen as 345 if there happens to be file called
> '345' lying around.
Only if shell globbing is enabled, and you don't specifically bypass it.
--
Lew Pitcher
"In Skills, We Trust"
PGP public key available upon request
--
https://mail.python.org/mailman/listinfo/python-list
On Monday December 5 2016 17:24, in comp.lang.python, "Chris Angelico"
wrote:
> On Tue, Dec 6, 2016 at 8:38 AM, Lew Pitcher
> wrote:
>> The OP asked for the runlevel, not the systemd target.
>
> Runlevels don't exist in systemd. And systemd targets don't
")
16:36 $ python rlevel.py
sh: systemctl: command not found
16:36 $
> systemd 'graphical.target' corresponds to the old runlevel 5.
Yes? So?
The OP asked for the runlevel, not the systemd target.
--
Lew Pitcher
"In Skills, We Trust"
PGP public key available upon request
--
https://mail.python.org/mailman/listinfo/python-list
mal ones recommence.
The best way to think about it is that all parameters are parameters, whether
derived from a glob input to a shell, or explicitly specified in the
invocation.
If you have a need for positional parameters, then either specify that your
code only accepts them in specific places,
gt;
>subprocess.Popen(["python","a.py", "*"])
>
> the output will be: ['a.py','*']?
>
> In that case forget Windows vs. Linux, you now have a program that will
> get command parameters processed differently depending on whether it w
use os.mkdir() to create a file named with the name of the sanitized
path, /or/ use os.makedirs(), which will create all the subdirectories
required by your given path.
2) Apparently os.mkdir() (at least) defaults to requiring an ASCII pathname.
Those of your titles that contain Unicode characters cannot be stored
verbatim without either
a) re-encoding the title in ASCII, or
b) flagging to os.mkdir() that Unicode is acceptable.
Apparently, this is a common problem; a google search brought up several pages
dedicated to answering this question, including one extensive paper on the
topic (http://nedbatchelder.com/text/unipain.html). There apparently are ways
to cause os.mkdir() to accept Unicode inputs; their effectiveness and
side-effects are beyond me.
HTH
--
Lew Pitcher
"In Skills, We Trust"
PGP public key available upon request
--
https://mail.python.org/mailman/listinfo/python-list
line consisting only of two hyphens followed by a
space. Any lines that follow that line are considered to be part of the
signature.
--
Lew Pitcher
"In Skills, We Trust"
PGP public key available upon request
--
https://mail.python.org/mailman/listinfo/python-list
;,i);
rc = EXIT_FAILURE;
}
if (rc == EXIT_SUCCESS) puts("SUCCESS");
return rc;
}
18:39 $ cc -o testlogic testlogic.c
18:39 $ ./testlogic
SUCCESS
--
Lew Pitcher
"In Skills, We Trust"
PGP public key available upon request
--
https://mail.python.org/mailman/listinfo/python-list
So, if I read between the lines correctly, you recommend Python 3? Does the
windows version install with a development environment?
--
http://mail.python.org/mailman/listinfo/python-list
ics capable libraries (in addition to basic programming skills,
of course).
So Python 2 or 3? Add on packages/libraries? Tutorials?
Thanks!
-Lew
--
http://mail.python.org/mailman/listinfo/python-list
nk it is
usually the best solution in that context.
Interesting distinction. Would it be fair to compare concurrent programming
to the bricks used to build the parallel program's edifice?
--
Lew
--
http://mail.python.org/mailman/listinfo/python-list
be borne. When done properly, shared mutable state will
not present problems in production.
--
Lew
--
http://mail.python.org/mailman/listinfo/python-list
ely, but things definitely get more unpredictable over evolution.
--
Lew
--
http://mail.python.org/mailman/listinfo/python-list
s...@netherlands.com wrote:
On Mon, 09 Mar 2009 22:08:54 -0400, Lew wrote:
Larry Gates wrote:
For me, the worst thing is when I'm programming, and a bug *actually* gets
on my monitor. In real life, I'm this tough person: a rugged tradesmen.
I'm so phobic of bugs that I'l
Christian wrote:
... [Xah Lee] seems to be mostly doing a often highly intelligent monologue ...
Really?
--
Lew
--
http://mail.python.org/mailman/listinfo/python-list
didn't realize what I had done until after I said it.
--
Lew
--
http://mail.python.org/mailman/listinfo/python-list
n on [sic] the
>> correctness
>> of the doc [sic] they produces [sic].
"Aaron Gray" wrote:
> Do you enjoy spamming comp.lang.functional with OT cross-posts ?
Is that a rhetorical question?
--
Lew
--
http://mail.python.org/mailman/listinfo/python-list
Andreas Waldenburger wrote:
On Wed, 03 Dec 2008 20:38:44 -0500 Lew <[EMAIL PROTECTED]> wrote:
Xah Lee wrote:
enough babble ...
Good point. Plonk. Guun dun!
I vaguely remember you plonking the guy before. Did you unplonk him in
the meantime? Or was that just a figure of speech?
Xah Lee wrote:
enough babble ...
Good point. Plonk. Guun dun!
--
Lew
--
http://mail.python.org/mailman/listinfo/python-list
esired.
f/u set to comp.lang.functional. It looks like he's got nothing to offer us
Java weenies this time around.
--
Lew
--
http://mail.python.org/mailman/listinfo/python-list
ur obfuscatory behavior in any way support your technical
points?
--
Lew
--
http://mail.python.org/mailman/listinfo/python-list
aiming that yours was not going to be as effective. The rhetorical
device of asking him for money does nothing to counter his points,
indeed it reads like an attempt to deflect the point.
--
Lew
--
http://mail.python.org/mailman/listinfo/python-list
Jon Harrop wrote:
Xah Lee wrote:
(nothing Java-related)
Please take this crud out of the Java newsgroup.
--
Lew
--
http://mail.python.org/mailman/listinfo/python-list
ossposting?
--
Lew
--
http://mail.python.org/mailman/listinfo/python-list
you could make some other example, proving for the contrary, but
I think the one cited above already suffices.
Your example shows the opposite of what you claim. By your own example, the
Chinese transliteration "wasted" twice as much space as the American one.
--
Lew
--
http://mail.python.org/mailman/listinfo/python-list
Xah Lee wrote:
this one is published a decade ago by a lisp [sic] dignitary.
Its theory of programing [sic] and software engineering is poetry and
taoism [sic].
It suggests that C will be the last lang.
In a paroxysm of precognitive genius, seemingly.
--
Lew
--
http://mail.python.org/mailman
has namespaces, and compilers certainly
aren't the issue there.
--
Lew
--
http://mail.python.org/mailman/listinfo/python-list
ups to
this thread.
(f-u set to comp.lang.functional)
--
Lew
--
http://mail.python.org/mailman/listinfo/python-list
and suggests to the community at large that they follow suit. So a
public "plonk" is actually a service both to the troll/spammer/innocent victim
of slander and to the larger newsgroup community.
--
Lew
--
http://mail.python.org/mailman/listinfo/python-list
WDC wrote:
BTW I reported it, yo should too.
To whom did you report it, so that we may also report it there?
--
Lew
--
http://mail.python.org/mailman/listinfo/python-list
eed JavaScript or images to see that ASCII-text image!!
You just need to view this in a fixed-pitch font such as Monaco.)
Then enter your best guess of the text (40-50 chars) into this TextField:
+--+
| Your son totally needs a Wonder-Bra(r), double-D |
+--+
--
Lew
--
http://mail.python.org/mailman/listinfo/python-list
Gordon Etly wrote:
Lew wrote:
John Thingstad wrote:
Perl is solidly based in the UNIX world on awk, sed, bash and C.
I don't like the style, but many do.
Please exclude the Java newsgroups from this discussion.
Why? Do you speak for everyone in that, this, or other groups?
I
John Thingstad wrote:
Perl is solidly based in the UNIX world on awk, sed, bash and C.
I don't like the style, but many do.
Please exclude the Java newsgroups from this discussion.
--
Lew
--
http://mail.python.org/mailman/listinfo/python-list
And the temerity of:
(One thing you can do, is actually take a course on philosophy,
history, law, economics, in your local community college.)
Yeah, those bastions of intellectual elitism.
Plonk, plonk, plonk.
--
Lew
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
—Xah Lee, 2005
Blah, blah, blah. Plonk.
--
Lew
--
http://mail.python.org/mailman/listinfo/python-list
Sherman Pendley wrote:
Lew <[EMAIL PROTECTED]> writes:
You guys are off topic. None of the million groups to which this
message was posted are about netiquette.
Netiquette has come up at one point or another in pretty much every
group I've ever read. It's pretty much a univ
ps to which this message was
posted are about netiquette.
--
Lew
--
http://mail.python.org/mailman/listinfo/python-list
re just tired of
him. Don't blame the victims for the perpetrator's actions, OK?
--
Lew
--
http://mail.python.org/mailman/listinfo/python-list
, compared to a nicely
s-expression nested notation that would be possible if regex hadn't
entrenched itself so solidly.
This is all very interesting, but not Java.
--
Lew
--
http://mail.python.org/mailman/listinfo/python-list
of the beholder. After you'd read the same recycled
crud from certain posters again and again, it because trollish spam.
--
Lew
--
http://mail.python.org/mailman/listinfo/python-list
m to recall this exact same post from *last* February.
--->I remember it too. Xah is quite the self-promoter. Massive
cross-posters don't have anything to say for me.
So don't do it.
--
Lew
--
http://mail.python.org/mailman/listinfo/python-list
l.
>>
>> Shame, I fancied a Spam fritter.
>>
>
> The guy gets Google dollars when people view the site or click on links, me
> thinks. It's spam.
Yes, but it's not SPAM.
SPAM is a registered trademark of Hormel Foods Corporation for a canned pork
produc
uitable of representing any structure or semantics)
There's something a little fey about someone calling out a "programing [sic]
moron's ingorance [sic]" and then devolving right into blue speech.
I think Xah Lee should look into:
<http://en.wikipedia.org/wiki/Psycho
Xah Lee wrote:
> i have written ... No coherent argument,
--
Lew
--
http://mail.python.org/mailman/listinfo/python-list
llothar wrote:
> On 21 Okt., 22:45, Lew <[EMAIL PROTECTED]> wrote:
>
>> Evidence is that TeX development is dead.
>
> Exactly and Knuths only contribution to software development was the
> theory of
> "literate" programming. As i said for me algorithms a
for the reality of the
situation, do not make a cogent case, much less a convincing one.
I am afraid that your conclusion is quite mistaken. Knuth is, if anything, a
huge success in the field of software engineering, whether you rate it as
making a contribution to the art, or as being paid
the
code is perfect and has no need of change? Is it (a) dead (end)?
(Who uses line count as a metric of anything any more?)
--
Lew
--
http://mail.python.org/mailman/listinfo/python-list
read his posts, just the responses.
--
Lew
--
http://mail.python.org/mailman/listinfo/python-list
Arne Vajhøj wrote:
> Lew wrote:
>>> very
>>> different. Having a dead - i mean end of development line software
>>> like TeX - and
>>
>> Based on what do you call it "dead end". It's used, it's outlasted
>> many other fl
vidence. Can stupidity be absolute? What is the
metric of stupidity?
How would you disprove that assertion? Oh, wait, there wasn't an assertion.
The sentence was incomplete. What are you asserting?
A theory based on what, exactly, is "so absolutely stupid"?
--
Lew
--
http://mail.python.org/mailman/listinfo/python-list
> Mathematician: "But I'll never get there!"
>
> Engineer: "I'll get close enough."
Mechanician (to the researcher): Hey, you look pretty good. What's your sign?
--
Lew
--
http://mail.python.org/mailman/listinfo/python-list
from heel to toe is nearly equal to
the length of their forearm elbow to wrist.
--
Lew
--
http://mail.python.org/mailman/listinfo/python-list
European writers and scholars in America are] up against the barrier of a
> common language/
>
> But where the original phrase came from, nobody knows, and it is probably
> simply incorrectly quoted.
<http://yedda.com/questions/origin_famous_sentence_quotations_8625651351715/>
--
Lew
--
http://mail.python.org/mailman/listinfo/python-list
rjack wrote:
> Webster? WEBSTER. . . ?
>
> Whatever happened to the Oxford English Dictionary ?
> Seems to me the English have always spoken the definitive
> English. . . that's why they call it ENGLISH.
What is in a name? A rose by any other name would still smell as swee
ould it be a bad thing? What is your
> point?
"There's no easy way to be free."
"The price of freedom is eternal vigilance."
Freedom is not natural. It must be defended.
--
Lew
--
http://mail.python.org/mailman/listinfo/python-list
Lew wrote:
>> Java is a strongly-typed, compiled language which means it does more
>> static type checking and thus would reject treating a as both an array
>> and a String.
>> In that environment the programmer must choose one or the other.
Ken Bloom wrote:
> In thi
all his decades-old crap and really
doesn't participate in the discussion. This isn't that at all.
--
Lew
--
http://mail.python.org/mailman/listinfo/python-list
lexible in their type systems.
Both jet liners and hang gliders have their uses, both are flight, and neither
is really suitable for the other's purpose.
--
Lew
--
http://mail.python.org/mailman/listinfo/python-list
you need to know about car air
>> conditioning
>>
>> http://car-ac-systems.blogspot.spam/
I'm starting to see "blogspot" as a synonym for "spam".
--
Lew
--
http://mail.python.org/mailman/listinfo/python-list
;s a Paul or a Strat.
>
> A Strat is a Fender, but I'd rather win a Gibson es175.
Please do not include comp.lang.java.programmer in this discussion, as it is
wy off topic.
--
Lew
--
http://mail.python.org/mailman/listinfo/python-list
nal message.
So let's all stop being so parochial, hmm?
--
Lew
--
http://mail.python.org/mailman/listinfo/python-list
in_Page>
or one of its non-English siblings.
--
Lew
--
http://mail.python.org/mailman/listinfo/python-list
Twisted wrote:
> On Jul 7, 6:12 pm, Lew <[EMAIL PROTECTED]> wrote:
>> Twisted wrote:
>> Edward Dodge wrote:
>>>> So -- what magical computer app illuminates the entire room and shows
>>>> you how to use everything at the flip of a switch? This brill
other computer book publisher out of business in weeks.
>> Naturally, this would include the publishers of books on "easy-to-use"
>> Microsoft products.
>
> I don't know, but it sure as hell isn't emacs.
The reason you don't know, and Edward Dodge
ink your reply is, let me
> point out that by rudely including the text of the spam in your
> post, you are associating your name and email address with spam. That
> might not be such a good thing to do as more and more people use Bayesian
> filtering.
Oh, hush. What fun is life when
you accuse them of
lying.
There's no opportunity for reasoned discourse in the face of such tactics. Or
room for new information to combat one's prejudices.
--
Lew
--
http://mail.python.org/mailman/listinfo/python-list
James Harris wrote:
> a) store, as a 32-bit number, days since a virtual year zero (there is
> no year zero in common era time
<http://en.wikipedia.org/wiki/Common_Era>).
But according to the same article:
> (It [year zero] is, however, used in the astronomical system and ISO
Lew wrote:
>> To the claim that "emacs is too hard for the beginner" we have a mounting
>> pile
>> of steaming evidence that refutes. It may still be true that it is too hard
>> for some beginners..
notbob wrote:
> I point them to jed. I, too, was
omes the evidence that three
simple keystroke patterns are all one needs to know, and anecdotal evidence of
the help system's utility.
Some will refuse to face the truth. To the open-minded, let the facts speak
for themselves.
I bet Xah Les is all over smiles about how well his controversy bloomed.
--
Lew
--
http://mail.python.org/mailman/listinfo/python-list
r /sudo::/etc/fstab) in order to edit files as root in a normal
> Emacs session?
I've been using emacs for something like twenty years and never knew that
before.
I like the built-in therapist in emacs.
--
Lew
--
http://mail.python.org/mailman/listinfo/python-list
Ed wrote:
> Thanks, all, for the answers.
>
> But, Lew: GWMF?
>
> - Gardner Winter Music Festival? (You have to love the black'n'white
> photo on the right at: http://www.gwmf.org/)
>
> - Generalized Whitening-Matched Filter?
>
> - http://www.gwm
t it moves in the other direction
> (`c-end-of-statement').
You could, and I believe others have, create a macro to encapsulate these
actions with setting the mark and copying the region.
Here is a very promising-looking one that I found for C(**) and Java:
<http://xref-tech.com/speller/main.html>
GWMF.
--
Lew
--
http://mail.python.org/mailman/listinfo/python-list
Perl", I'd have to hesitate here, but since
>> there isn't...
Larry Elmore wrote:
> Neither APL nor Snobol nor J are toy or joke languages.
Indeed. One wonders where Perl would be if Snobol hadn't preceded it.
--
Lew
--
http://mail.python.org/mailman/listinfo/python-list
pretty much all programming
> languages. (Perl, on the other hand, has no connection to any known
> programming language. ;) In particular, Perl code looks more like line
> noise than like code from any known programming language. ;))
Hmm - I know of APL and SNOBOL.
--
Lew
--
http://mail.python.org/mailman/listinfo/python-list
"Lew" ranted maniacally:
>> Y'know, even in jest, calling for an oppressive regime to suppress even
>> wrong-headed and self-serving garbage self-expression is immoral and
>> horrible. How dare you?
>>
>> Free speech, free press and free expres
e to suppress even
wrong-headed and self-serving garbage self-expression is immoral and horrible.
How dare you?
Free speech, free press and free expression of ideas is not something to take
so lightly.
--
Lew
--
http://mail.python.org/mailman/listinfo/python-list
galathaea wrote:
> On Apr 3, 12:23 pm, "Xah Lee" <[EMAIL PROTECTED]> wrote:
> [top posting for clarity]
You mean to reduce clarity.
Please do not top-post - instead, trim the post and respond in line. It makes
the messages easier for the rest of us.
--
Lew
--
http://m
Michele Dondi wrote:
> Even better: pick one entry of your choice from
>
> http://images.google.com/images?q=%22don%27t+feed+the+troll%22
I pick <http://img371.imageshack.us/img371/8263/noah7ok6rh.jpg/>
-- Lew
--
http://mail.python.org/mailman/listinfo/python-list
Which based on what I've seen, is the state that most Java programmers are
> in. They'd have no idea why Mike said what he did.
what EVerrr!
-- Lew
--
http://mail.python.org/mailman/listinfo/python-list
a + b;
> System.out.println(c);
> }
> }
bugbear wrote:
> Alternatively I could recode your Lisp example
> as badly as you coded your Java.
From what I've seen and heard of Xah Lee, you'd probably lose the bad-coding
competition to him. He's a professional.
-- Lew
--
http://mail.python.org/mailman/listinfo/python-list
es in Java:
>>>
>>>
>> Only when written by someone almost entirely ignorant of Java.
>>
>
> Which is the state most people want to be in...
As a particular case of the general proposition that most people want to be
ignorant of computer programming.
-- Lew
--
http://mail.python.org/mailman/listinfo/python-list
ss threads out of c.l.p.misc.
We've heard similar reports about Xah Lee on other newsgroups as well.
-- Lew
--
http://mail.python.org/mailman/listinfo/python-list
Sherm Pendley wrote:
> Lew <[EMAIL PROTECTED]> writes:
>
>> Jim Burton wrote:
>>> Or you could stop feeding the trolls.
>> Does not apply. The OP was not being trollish
>
> You obviously don't know Xah. He's been doing this for years, cross-
>
ish.
-- Lew
--
http://mail.python.org/mailman/listinfo/python-list
d.
Also, I wanted to protect the innocent.
We could put up a contest - whoever finds and corrects the most errors in the
post wins. Ties broken by the quality of the correct explanations. Incorrect
explanations count against the entry.
-- Lew
--
http://mail.python.org/mailman/listinfo/python-list
spect of a class.
Historical citation needed. And an interface is not an "aspect of a class".
> As we've seen, a function has parameter spec [sic] that is all there it [sic]
> is a
> user needs to know for using it. In Java, this is the method's
> “signature”. Now, as the methodology of the OOP experience multiplies,
> it became apparent that the interface concept can be applied to
> Classes as well. Specifically: the interface of a class is the class's
> methods.
OK, I've had enough. I'd say you need a good editor to clean up the grammar,
but then all you'd have is a better-written incorrect explanation.
-- Lew
--
http://mail.python.org/mailman/listinfo/python-list
94 matches
Mail list logo