Alan Gauld writes:
> On 15/01/2025 00:41, Keith Thompson via Python-list wrote:
>> Alan Gauld writes:
>>> On 11/01/2025 14:28, Chris Green via Python-list wrote:
>>>> I'm looking for Python packages that can help with text mode input,
>>>
>>>
al supports it, your current screen contents can be
restored after the application finishes (curses enables the "alternate
screen" and then restores the primary screen on exit).
There don't seem to be a lot of good solutions for doing curses-like
text manipulation without taking over th
ase. So the input #16f is read as the integer 65535.
Typo: You meant #16R, not #16f.
--
Keith Thompson (The_Other_Keith) keith.s.thompso...@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */
--
https://mail.python.org/mailman/listinfo/python-list
Martin Nilsson writes:
> The attached program doesn’t work in 3.12.5, but in 3.9 it worked.
Attachments don't show up either on the mailing list or the newsgroup.
Try again with the program inline in your post (if it's not too long).
--
Keith Thompson (The_Other_Keith) ke
imagine that it would be even
more difficult for readers whose first language is not English.
You also indent your own new text, which is exactly the opposite of
common Usenet conventions. (You've been doing this for a long time.)
Please consider prioritizing your readers' convenience over whatever
benefit you derive from your unconventional posting style.
--
Keith Thompson (The_Other_Keith) keith.s.thompso...@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */
--
https://mail.python.org/mailman/listinfo/python-list
iscuss the exact
rules? I suggest that those rules should be documented on
<https://mail.python.org/mailman/listinfo/python-list>.
--
Keith Thompson (The_Other_Keith) keith.s.thompso...@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */
--
https://mail.python.org/mailman/listinfo/python-list
ermission, for years.
The comp.lang.python newsgroup and the Python-list mailing list
are bidirectionally gatewayed. Both are public. Why is that a
problem for you? Whose permission do you think is needed?
https://mail.python.org/mailman/listinfo/python-list
--
Keith Thompson (The_Other_Keith) keith.s
he cause of additional work in the recent
past. Python only contains the client side of NNTP, so the tests connect
to external news servers. The servers are sometimes unavailable, too
slow, or do not work correctly over IPv6. The situation causes flaky
test runs on buildbots.
""&q
The command line needs a space after the
> "-m":
No, the option and its argument can be bundled. "-mpip" is equivalent
to "-m pip". (The space might make it clearer for human readers.)
[...]
--
Keith Thompson (The_Other_Keith) keith.s.thompso...@gmail.com
Keith Thompson writes:
> "Kevin M. Wilson" writes:
>> Ok, I'm not finding any info. on the int() for converting a str to an
>> int (that specifies a base parameter)?!
>
> https://docs.python.org/3/library/functions.html#int
[...]
Or `print(int.__doc__)` at
gh the fire, you will not be burned: the
> flames will not set you ablaze." Isaiah 43:2
You can add a signature to all your messages if you like, but it will be
very helpful if you introduce it with a line consisting of "-- ", as
I've done here.
It would also be very helpf
;ignore", category=DeprecationWarning)
import nntplib
If my understanding is correct, why is this such a big problem?
--
Keith Thompson (The_Other_Keith) keith.s.thompso...@gmail.com
Will write code for food.
void Void(void) { Void(); } /* The recursive call of the void */
--
https://mail.python.org/mailman/listinfo/python-list
u anything meaningful. (What if there are
actual underscores in the original subject line?)
You should probably apply some kind of MIME-specific decoding. (I don't
have a specific suggestion for how to do that.)
--
Keith Thompson (The_Other_Keith) keith.s.thompso...@gmail.com
Working, bu
lete articles from Usenet. (The protocol includes a command to
cancel an article, but servers ignore it due to past abuse.)
--
Keith Thompson (The_Other_Keith) keith.s.thompso...@gmail.com
Working, but not speaking, for XCOM Labs
void Void(void) { Void(); } /* The recursive call of the void */
--
https://mail.python.org/mailman/listinfo/python-list
I thought "Pythonic" was more about how you write code than about the
design of the language. But designing a language syntax so typos are
likely to be syntax errors rather than valid code with different
semantics is an interesting challenge.
--
Keith Thompson (The_Other_Keith) keit
tness". I offer no opinion on whether that's accurate.
--
Keith Thompson (The_Other_Keith) keith.s.thompso...@gmail.com
Working, but not speaking, for XCOM Labs
void Void(void) { Void(); } /* The recursive call of the void */
--
https://mail.python.org/mailman/listinfo/python-list
response from "Manosh Manosh", I recommend ignoring it.
He appears to be a spammer.
--
Keith Thompson (The_Other_Keith) keith.s.thompso...@gmail.com
Working, but not speaking, for XCOM Labs
void Void(void) { Void(); } /* The recursive call of the void */
--
https://mail.python.org/mailm
another.
I would expect user prompts to be written to stdout, or perhaps to some
system-specific stream like the current tty, not to stderr. If a
program has user prompts, it probably doesn't make sense to pipe its
output to the input of another.
--
Keith Thompson (The_Other_Keith) keith.
puter, isn't the hacker
> "downloading" things to your computer?
My understanding of the word "downloading" has always been STOP FEEDING
THE TROLL!
--
Keith Thompson (The_Other_Keith) ks...@mib.org <http://www.ghoti.net/~kst>
Working, but not speaking, for JetHead De
computers, anything else you
> say is obviously not worth readin.
Nor is it worth replying to. *Please* don't feed the troll.
(Followups set.)
--
Keith Thompson (The_Other_Keith) ks...@mib.org <http://www.ghoti.net/~kst>
Working, but not speaking, for JetHead Development, Inc.
27;t wrap my brain around
> what it meant to square a second.
>
> Now that I think about it, I still can't. :-)
Fuel economy can be measured in reciprocal acres (or reciprocal
hectares if you prefer).
miles/gallon or km/liter is distance / distance**3 --> distance**-2.
--
Keith Th
s for it. Mathematicians could have chosen to set the full
circumference to 1, for example, but then a lot of computations
would contain additional multiplications and/or divisions by 2*pi.
--
Keith Thompson (The_Other_Keith) ks...@mib.org <http://www.ghoti.net/~kst>
Nokia
"We must do some
x27;t picked up quickly by running with more warnings enabled.
>>
>>> This is the scenario discussed in this thread, a long is passed to
>>> maximum without a compiler warning.
>>
>> The compiler didn't pass the wrong type, the user did.
>
> And the
entirely unreasonable; some
programmers might prefer to write foo(1L) rather than foo(1),
to make it clear that the argument being passed is of type long
rather than int.
I don't know whether gcc provides this level of control over which
conversions it warns about, but again, that's a
TheFlyingDutchman writes:
> On Sep 30, 10:37 pm, RG wrote:
>> In article <87tyl63cag@mail.geddis.org>,
>> Don Geddis wrote:
>> > Keith Thompson wrote on Thu, 30 Sep 2010:
>> > > RG writes:
>> > >> You're missing a lot of con
sentence, and that's certainly correct.
>
>> Why do you consider the term "compile error" a "mandate to stop
>> compiling"?
>
> Because that's what people normally mean -- compilation failed.
At least for C, I'd say it refers to a syntax e
RG writes:
[...]
> You're missing a lot of context. I'm not trying to criticize C, just to
> refute a false claim that was made about it.
Can you cite the article that made this false claim, and exactly what
the false claim was?
--
Keith Thompson (The_Other_Keith) ks..
Seebs writes:
> On 2010-09-30, Keith Thompson wrote:
>> Seebs writes:
>>> On 2010-09-30, Paul Rubin wrote:
>>>> int maximum(int a, int b);
>
>>>> int foo() {
>>>> int (*barf)() = maximum;
>>>> return barf(
is:
const double pi = 2.71828182845904523526;
To a human reader, it's obviously either a mistake or deliberate
obfuscation, but I'm not sure I'd *want* my compiler to warn me
about it just because I named the object "pi" rather than "e".
(And if I called it "x", even an intelligent human wouldn't know
that it's wrong.)
--
Keith Thompson (The_Other_Keith) ks...@mib.org <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
--
http://mail.python.org/mailman/listinfo/python-list
RG writes:
> In article ,
> Keith Thompson wrote:
>> RG writes:
>> [...]
>> > You can't have it both ways. Either I am calling it incorrectly, in
>> > which case I should get a compiler error, or I am calling it correctly,
>> > and I should
#x27;s better to use prototypes consistently than to figure out the
rules for interactions between prototyped vs. non-prototyped function
declarations.
[...]
--
Keith Thompson (The_Other_Keith) ks...@mib.org <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is somethi
incorrectly, but I wouldn't
expect my compiler to warn me about it.
If you're arguing that
int maximum(int a, int b) { return a > b ? a : b; }
is flawed because it's too easy to call it incorrectly, you're
effectively arguing that it's not possible to
RG writes:
> In article ,
> Keith Thompson wrote:
[...]
>> Even here, maximum() did exactly what was asked of it.
>
> Of course. Computers always do only exactly what you ask of them. On
> this view there is, by definition, no such thing as a bug, only
> specificatio
f most CPUs.
Here's another example:
#include
int maximum(int a, int b) { return a > b ? a : b; }
int main(void) {
double x = 1.8;
printf("Max of %f and 1 is %d\n", x, maximum(x, 1));
return 0;
}
Output:
Max of 1.80 and 1 is 1
--
Keith Thompson (The_Other_Keith)
RG writes:
> In article ,
> Keith Thompson wrote:
>
>> RG writes:
>> > In article
>> > <07f75df3-778d-4e3d-8aa0-fbd4bd108...@k22g2000prb.googlegroups.com>,
>> > Squeamizh wrote:
>> >> On Sep 29, 3:02 pm, RG wrote:
>> [...]
l set. I'm interested in minimizing the number of problems I
>> run into during development, and the number of bugs that are in the
>> finished product. My opinion is that static typed languages are
>> better at this for large projects, for the reasons I stated in my
Erik Max Francis writes:
> Keith Thompson wrote:
>> Erik Max Francis writes:
>> [...]
>>> >>> print c # floating point accuracy aside
>>> 299792458.0 m/s
>>
>> Actually, the speed of light is exactly 299792458.0 m/s by
>> defini
tively recently.)
--
Keith Thompson (The_Other_Keith) ks...@mib.org <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
--
http://mail.python.org/mailman/listinfo/python-list
3, and 1 m^3/sec is exactly 13.7365022817792
kbarrels/day. (Please feel free to check my math.) That's
admittedly a lot of digits, but there's no need for approximations
(unless they're imposed by the numeric representation you're using).
--
Keith Thompson (The_Other_Keith)
Standish P writes:
> On Aug 18, 5:38 pm, Keith Thompson wrote:
[...]
>> Show me how this is relevant to comp.lang.c, comp.lang.c++, comp.theory,
>> or comp.lang.python. Please trim the Newsgroups line.
>
> provide a rigorous proof that people are more interested in
on
> of the "nouns" ?
[...]
Show me how this is relevant to comp.lang.c, comp.lang.c++, comp.theory,
or comp.lang.python. Please trim the Newsgroups line.
--
Keith Thompson (The_Other_Keith) ks...@mib.org <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is some
Emmy Noether writes:
[98 lines deleted]
The parent article was posted to comp.emacs and comp.lang.lisp. Why
did you cross-post your followup to comp.lang.c, comp.lang.python,
and comp.lang.scheme?
--
Keith Thompson (The_Other_Keith) ks...@mib.org <http://www.ghoti.net/~kst>
Nokia
"
ct followups, since that affects only
followups to *this* article, but please consider trimming the
newsgroups line.)
--
Keith Thompson (The_Other_Keith) ks...@mib.org <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
o a spam, step away from
the keyboard until the feeling passes.
--
Keith Thompson (The_Other_Keith) ks...@mib.org <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
"Gary Herron" writes:
> Python *is* object-oriented
I disagree. Care to provide proof of that statement?
--
http://mail.python.org/mailman/listinfo/python-list
"Scott David Daniels" writes:
> To avoid using epsilon, do something like:
> if 1 + abs(x) != 1:
An OK effort, but you're wrong. That's not how to do it at all.
--
http://mail.python.org/mailman/listinfo/python-list
and C - who are we to judge the semantics of that
> chimera?
What do you mean? Aren't these:
#include
perfectly valid comments in Python?
Followups redirected.
--
Keith Thompson (The_Other_Keith) <[EMAIL PROTECTED]>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
--
http://mail.python.org/mailman/listinfo/python-list
ething other than C, please find
another forum. Massive cross-posts like this are rarely appropriate.
--
Keith Thompson (The_Other_Keith) [EMAIL PROTECTED] <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
"We must do
Xah: please consider creating your own newsgroup under alt.*. You can
post your long essays there and (if you absolutely insist on doing so)
post pointers to them elsewhere.
--
Keith Thompson (The_Other_Keith) [EMAIL PROTECTED] <http://www.ghoti.net/~kst>
San Diego Supercomputer Center
nk it's been at least a decade since I've used
a terminal or emulator that's not VT100-compatible (i.e., accepts ANSI
control sequences).
Of course, I'll run into one the day after I start writing code that
depends on that assumption.
--
Keith Thompson (The_Other_Keith)
f you're on a
Unix-like system. Or there might be some Python library with a
clear-screen function.
Are you sure you want to clear the screen? If I run your program and
it clears my screen for me, it could be erasing significant
information. If you want complete control over the screen, you
___ c_c_c_C/ \C_c_c_c____
--
Keith Thompson (The_Other_Keith) [EMAIL PROTECTED] <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must d
a waste of time.
Please just ignore him. (A killfile is an effective way to do so.)
--
Keith Thompson (The_Other_Keith) [EMAIL PROTECTED] <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is so
really
want to read about Python documentation -- if they do, they can always
read comp.lang.python.
--
Keith Thompson (The_Other_Keith) [EMAIL PROTECTED] <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We
___ c_c_c_C/ \C_c_c_c____
--
Keith Thompson (The_Other_Keith) [EMAIL PROTECTED] <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
- which is
probably exactly what he wants.
--
Keith Thompson (The_Other_Keith) [EMAIL PROTECTED] <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
--
http://mail.python.org/mailman/listinfo/python-list
wsgroups, would be to STOP POSTING THIS STUFF TO NEWSGROUPS WHERE
IT'S NOT RELEVANT.
There are several newsgroups that deal with e-mail abuse. This
discussion isn't being posted to any of them. Please stop.
--
Keith Thompson (The_Other_Keith) [EMAIL PROTECTED] <http://w
@x@@x@| | |/ WW( ( ) )WW
\/| |\| __\,,\ /,,/__
\||/ | | | jgs (__Y__)
/\/\/\/\/\/\/\/\//\/\\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
======
--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
>
> Please don't use ASCII art... not everyone uses a fixed-width font for his
> newsreader...
> (your picture looks all mangled here)
If "PLEASE DO NOT" and "FEED THE TROLLS" are legible, even if they
aren't
@x@@x@| | |/ WW( ( ) )WW
\/| |\| __\,,\ /,,/__
\||/ | | | jgs (__Y__)
/\/\/\/\/\/\/\/\//\/\\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
======
--
======
Followups redirected appropriately.
--
Keith Thompson (The_Other_Keith) [EMAIL PROTECTED] <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
--
http://mail.python.org/mailman/listinfo/python-list
/__
\||/ | | | jgs (__Y__)
/\/\/\/\/\/\/\/\//\/\\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
======
--
Keith Thompson (The_Other_Keith) [EMAIL PROTECTED] <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
--
http://mail.python.org/mailman/listinfo/python-list
||/ | | | jgs (__Y__)
/\/\/\/\/\/\/\/\//\/\\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
======
--
Keith Thompson (The_Other_Keith) [EMAIL PROTECTED] <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
--
http://mail.python.org/mailman/listinfo/python-list
d. comp.lang.c, where I'm reading
this, is for discussion of the C programming language; I see nothing
about C.
--
Keith Thompson (The_Other_Keith) [EMAIL PROTECTED] <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must
Please stop cross-posting this stuff!
--
Keith Thompson (The_Other_Keith) [EMAIL PROTECTED] <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
--
http
r
newsgroups to which it was cross-posted. Jacob, please don't
encourage this kind of newsgroup abuse.
--
Keith Thompson (The_Other_Keith) [EMAIL PROTECTED] <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do so
"Xah Lee" <[EMAIL PROTECTED]> writes:
[snip]
If you must post a followup to this, please drop comp.lang.c from the
newsgroups header. I can't speak for the other newsgroups, but it's
definitely off-topic here in comp.lang.c. Thank you.
--
Keith Thompson (The_Oth
lang.python.
Followups redirected.
--
Keith Thompson (The_Other_Keith) [EMAIL PROTECTED] <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
--
http://mail.python.org/mailman/listinfo/python-list
68 matches
Mail list logo