n't
been certified as such.)
Not that it matters much in practice.
In any case, the minutia of POSIX versus Windows, the availability of
drive letters and signals etc are utterly irrelevant to the question of
what os.path.exists should do.
Just as it ought to be utterly irrelevant that on
y not understand the straight
answer we give you.
Also read: https://nedbatchelder.com/text/unipain.html
--
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it everywhere." -- Jon Ronson
--
https://mail.python.org/mailman/listinfo/python-list
HFS and can mount a HFS disk, I ought to be able to sensibly ask for file
names including NUL.
--
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it everywhere." -- Jon Ronson
--
https://mail.python.org/mailman/listinfo/python-list
S (it replaced HFS Plus in 2017
as Apple's preferred OS) which supports all Unicode code points,
including NUL.
--
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it everywhere." -- Jon Ronson
--
https://mail.python.org/mailman/listinfo/python-list
orce the compilation using the compileall:
https://docs.python.org/3/library/compileall.html
Or just import the module from the interactive interpreter.
--
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it everywhere." -- Jon Ronson
--
https://mail.python.org/mailman/listinfo/python-list
On Mon, 04 Jun 2018 22:13:47 +0200, Peter J. Holzer wrote:
> On 2018-06-04 13:23:59 +0000, Steven D'Aprano wrote:
[...]
>> I don't know whether or not the Linux OS is capable of accessing files
>> with embedded NULs in the file name. But Mac OS is capable of doing so,
&g
On Tue, 05 Jun 2018 20:15:01 +1000, Chris Angelico wrote:
> On Tue, Jun 5, 2018 at 5:37 PM, Steven D'Aprano
> wrote:
>> On Mon, 04 Jun 2018 22:13:47 +0200, Peter J. Holzer wrote:
>>
>>> On 2018-06-04 13:23:59 +, Steven D'Aprano wrote:
>> [...]
>&
would cause, but its all nonsense. We already can
seamlessly and transparently interact with file systems where file names
include NUL bytes under Linux.
BUT even if what you said was true, that Linux cannot deal with NUL bytes
in file names even with driver support, even if passing a NUL byte to
posedly professional
programmers don't give anywhere near as useful detail, thinking we can
just read their mind and magically know what is going on. Keep up the
good work!
--
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it everywhere." -- Jon Ronson
--
https://mail.python.org/mailman/listinfo/python-list
ut some hard numbers to it... the set of all possible names includes
all the combinations of at least 5000 possible Unicode characters up to a
maximum length of 2**64 (given existing computer limitations). So
something of the order of
5000**(2**64) = 5000**18446744073709551616
or roughly 2**221360928884514619392 or 1 followed by approximately 66
million trillion zeroes possible names.[1]
That is so much larger than the entire universe that the only way we can
claim they all exist is to posit some sort of Platonic ideal existence.
They exist only in the abstract, not in reality.
[1] Admittedly the Vast majority would be utterly impractical to use.
--
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it everywhere." -- Jon Ronson
--
https://mail.python.org/mailman/listinfo/python-list
lse
else:
return True
Why not just return False instead of panicking?
--
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it everywhere." -- Jon Ronson
--
https://mail.python.org/mailman/listinfo/python-list
mply that it doesn't matter?
No, no particular reason. If I had thought about it I would have used <
too, but I didn't.
--
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it everywhere." -- Jon Ronson
--
https://mail.python.org/mailman/listinfo/python-list
rash a webserver isn't a security
issue?
If Denial Of Service isn't a security issue in your eyes, what would it
take? "Armed men burst into your house and shoot you"?
*only half a wink*
--
Steven D'Aprano
"Ever since I learned about confirmation bias, I
Not Found
The requested URL /te was not found on this server.
instead of te%00st.html
I wonder how many publicly facing web servers can be induced to either
crash, or serve the wrong content, this way?
--
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it everywhere." -- Jon Ronson
--
https://mail.python.org/mailman/listinfo/python-list
(most recent call last):
File "", line 1, in
TypeError: 'str' object cannot be interpreted as an integer
but generally it is up to the object itself to do the right thing, or
else have a good reason not to.
My feeling here is that this *probably* counts as a bug in numpy
On Thu, 07 Jun 2018 10:04:53 +0200, Antoon Pardon wrote:
> On 07-06-18 05:55, Steven D'Aprano wrote:
>> Python strings are rich objects which support the Unicode code point \0
>> in them. The limitation of the Linux kernel that it relies on NULL-
>> terminated byte st
urprised if it were. But it can be induced to crash (an exception, not a
seg fault) which is certainly a vulnerability.
Since people are unlikely to use this web server to serve mission
critical public services over the internet, the severity is likely low.
Nevertheless, it is still a real
27;s front page.
W.T.F.???
--
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it everywhere." -- Jon Ronson
--
https://mail.python.org/mailman/listinfo/python-list
On Thu, 07 Jun 2018 13:32:10 +, Steven D'Aprano wrote:
[...]
> python3.5 -m http.server 8000
>
> What I expected was a directory listing of my current directory.
>
> What I got was Livejournal's front page.
Never mind -- it turned out I had an "index.html&quo
On Thu, 07 Jun 2018 13:32:10 +, Steven D'Aprano wrote:
> python3.5 -m http.server 8000
[...]
Thank you to everyone who responded, pointing out that I should check for
an index.html file. That was exactly the problem.
And yes, I acknowledge that my original post was lacking
On Thu, 07 Jun 2018 15:38:39 -0400, Dennis Lee Bieber wrote:
> On Fri, 1 Jun 2018 23:16:32 + (UTC), Steven D'Aprano
> declaimed the following:
>
>>It should either return False, or raise TypeError. Of the two, since
>>3.14159 cannot represent a file on any known O
On Thu, 07 Jun 2018 20:43:10 +, Peter Pearson wrote:
> On Thu, 07 Jun 2018 19:02:42 +1200, Gregory Ewing wrote:
>> Steven D'Aprano wrote:
>>> But if it were (let's say) 1 ULP greater or less than one half, would
>>> we even know?
>>
>> In pra
you can do that
> much more easily by just connecting and being really slow to send data.
> (And I doubt that people are using SimpleHTTPServer in
> security-sensitive contexts anyway.)
Again, you're just repeating what I said in different words. I already
said that *this specific* issue is p
On Thu, 07 Jun 2018 17:45:06 +1000, Chris Angelico wrote:
> On Thu, Jun 7, 2018 at 1:55 PM, Steven D'Aprano
> wrote:
>> On Tue, 05 Jun 2018 23:27:16 +1000, Chris Angelico wrote:
>>
>>> And an ASCIIZ string cannot contain a byte value of zero. The parallel
>&
On Thu, 07 Jun 2018 22:56:49 -0400, Richard Damon wrote:
> or we need an alternate API that lets us pass raw bytes as file names
Guido's Time Machine strikes again.
All the path related functions, include open(), take arguments as either
bytes or strings.
--
Steven D'Aprano
On Fri, 08 Jun 2018 03:35:12 -0700, bellcanadardp wrote:
> hello steven are you there??
> i posted the full error message...
No you didn't.
I saw your post, and ignored it, because you didn't follow instructions.
I told you we need to see the *full* traceback, starting from the
On Fri, 08 Jun 2018 09:27:17 +0200, Antoon Pardon wrote:
> On 08-06-18 04:19, Steven D'Aprano wrote:
>> On Thu, 07 Jun 2018 17:45:06 +1000, Chris Angelico wrote:
>>
>>> So... an ASCIIZ string *can* contain that character, or at least a
>>> representation of
On Fri, 08 Jun 2018 12:23:40 +1000, Chris Angelico wrote:
> On Fri, Jun 8, 2018 at 12:15 PM, Steven D'Aprano
> wrote:
>> If you truly were limited to 2**32 different values (we're not), then
>> it would be exactly right and proper to expect a collision in 2**16
>
o.uk/pages/prosecutors_fallacy.html
which sometimes (often?) leads to real miscarriages of justice:
https://en.wikipedia.org/wiki/Sally_Clark
--
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it everywhere." -- Jon Ronson
--
https://mail.python.org/mailman/listinfo/python-list
uiring registration;
- followed by additional ten-year copyright terms, paid for at (say)
$100 a term;
- up to a maximum length of sixty years, or the author's life plus
30 years, whichever comes first;
- and a real commitment to recognising the public domain and free
culture it a
On Sat, 09 Jun 2018 08:26:10 +1000, Cameron Simpson wrote:
> It is possible that Python 2 is just glossing over the problem; Python 3
> has a more rigorous view of character data.
I would say that is more than just possible, it is almost certain.
--
Steven D'Aprano
"Ever
this:
lambda arg: not condition(arg)
which is okay, but its a bit long and adds the cost of an extra function
call. Is there a better way?
--
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it everywhere." -- Jon Ronson
--
https:
easing code you
write for them to the rest of the world?
--
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it everywhere." -- Jon Ronson
--
https://mail.python.org/mailman/listinfo/python-list
a matter of faith than economic reality. Economists who study
this sort of thing argue back and forth whether the economic cost of
copyright outweighs the benefits, but one way or the other it is hardly a
clear cut win for copyright as conventional wisdom says.
I think the wise thing is to hav
are stuck in walled gardens using only approved software, the
technology for that didn't exist in the early days of the home computer
revolution.
--
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it everywhere." -- Jon Ronson
--
https://mail.python.org/mailman/listinfo/python-list
this:
http://sscce.org/
What is self.collFile? How does it get opened?
--
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it everywhere." -- Jon Ronson
--
https://mail.python.org/mailman/listinfo/python-list
olo... they're all chapters in one work, yes?
--
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it everywhere." -- Jon Ronson
--
https://mail.python.org/mailman/listinfo/python-list
efuse the temptation to guess."
It is not a guess if the user explicitly specifies that as the behaviour.
It would be no more of a guess than if the user called
data = [x for x in data if not math.isnan(x)]
on their data first.
--
Steven D'Aprano
"Ever since I learned ab
disk drive.
(The march of technology is sometimes a nuisance.)
By the way, for some reason I don't seem to have received Bev's post.
--
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it everywhere." -- Jon Ronson
--
https://mail.python.org/mailman/listinfo/python-list
I read it, but I took away the
same message as Greg. Perhaps your point was not as clear as you thought
it was.
--
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it everywhere." -- Jon Ronson
--
https://mail.python.org/mailman/listinfo/python-list
(a length byte followed by an array of
arbitrary bytes), not NUL-terminated C strings.
--
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it everywhere." -- Jon Ronson
--
https://mail.python.org/mailman/listinfo/python-list
he OS". Both are implementation details. Neither should be baked into
the high-level language as a fundamental requirement.
--
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it everywhere." -- Jon Ronson
--
https://mail.python.org/mailman/listinfo/python-list
the last item in the root directory.
On case-sensitive HFSX volumes, null characters sort
before other characters, so the metadata directory will
typically be the first item in the root directory.
https://developer.apple.com/library/archive/technotes/tn/tn1150.html#HFSPlusNames
--
Stev
.
print("1. Enter your name :")
print("2. Enter your age :")
print("3. Enter your gender :")
name = input("")
age = input("")
gender = input("")
--
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it everywhere." -- Jon Ronson
--
https://mail.python.org/mailman/listinfo/python-list
On Mon, 11 Jun 2018 09:55:06 +0200, Antoon Pardon wrote:
> On 11-06-18 02:28, Steven D'Aprano wrote:
[...]
>> open(foo) raises an exception if foo doesn't exist;
>>
>> os.path.exists(foo) returns False if foo doesn't exist.
>
> That is not corr
On Mon, 11 Jun 2018 12:31:09 +0200, Peter J. Holzer wrote:
> On 2018-06-11 01:06:37 +0000, Steven D'Aprano wrote:
>> On Sun, 10 Jun 2018 23:57:35 +0200, Peter J. Holzer wrote:
>
> [Note: I was talking about os.stat here, not os.path.exists. I agree
> that os.path.exists
On Mon, 11 Jun 2018 07:19:15 -0700, mohan4h wrote:
> print(u"\u001b[{}A".format(n), flush=True, end="")
> ^
> SyntaxError :invalid syntax
My crystal ball tell me you are using Python 2. Is that right?
--
e or academic in-house software, no freeware, no shareware, no
hobbyist software, no freemium or advertising driven software or SAAS...
that's a mighty big leap.
--
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it everywhere." -- Jon Ronson
--
https://mail.python.org/mailman/listinfo/python-list
an be managed in various ways, but
the best way to manage them is to avoid them altogether.
In other words: if your classes are very tightly coupled, you might have
a hard time splitting them into multiple files. If they are loosely
coupled, you shouldn't have any trouble at all.
--
Stev
write.decode
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'builtin_function_or_method' object has no attribute
'decode'
--
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it everywhere." -- Jon Ronson
--
https://mail.python.org/mailman/listinfo/python-list
the same file can
mitigate that somewhat, good tooling helps (but also only goes so far),
but as the Zen says
Namespaces are one honking great idea
Even if we could put the entire Python std lib in a single giant file
with half a million lines plus, we probably shouldn't.
--
Steven
ne real-world use-case where the distinction
between "file name is invalid because it has NUL" and "file name is
invalid for any of a dozen other reasons" is necessary and important.
--
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it everywhere." -- Jon Ronson
--
https://mail.python.org/mailman/listinfo/python-list
it isn't opened
in the line of code you are looking at, look at the rest of the code.
*Somewhere* is must be opened.
--
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it everywhere." -- Jon Ronson
--
https://mail.python.org/mailman/listinfo/python-list
udgement: if following PEP 8 becomes a chore, or if you
would rather follow your own style, don't feel guilty about ignoring the
style guide.
--
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it everywhere." -- Jon Ronson
--
https://mail.python.org/mailman/listinfo/python-list
hen you need to talk to whoever maintains the user interface that you
> use to send messages to the Usetnet group or mailing list.
Indeed. The "I've changed my mind, don't send that message" function
depends on the technology you use to communicate with the forum, not the
or disprove some
which are false, but we have no way of proving which are which.
--
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it everywhere." -- Jon Ronson
--
https://mail.python.org/mailman/listinfo/python-list
things.
That's why it isn't called "PermissionDeniedError".
You need to look at the exception to see what caused it, not just assume
it was a permissions error.
> except IOError:
> print("This file doesn't exist")
That's not what IOError means e
ay you only need to keep one line at a time in memory.
That's what François is doing.
> Importantly:
>
> os.rename(path, new_filename)
>
> The old name comes first, then the new name.
Oops! I forgot about that.
--
Steven D'Aprano
"Ever since I learned a
thname) as f:
for line in f:
# process one line at a time
You said you are running out of memory, earlier you said the computer was
crashing... please describe exactly what happens. If you get a Traceback,
copy and paste the entire message.
(Not just the last line.)
--
Steven D
eir heart. If your intention was to send the message that you're lazy,
drunk, or just don't give a damn about the question, you were successful.
--
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it everywhere." -- Jon Ronson
--
effects
caused by the components on the open circuit, and the genetic algorithm
found them and incorporated them in the design.
--
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it everywhere." -- Jon Ronson
--
https://mail.python.org/mailman/listinfo/python-list
in/jython'
>>> myName = "Kevin"
>>> id(myName)
3
>>> id(myName[1])
4
>>> id(myName[0])
5
Notice that IDs are allocated sequentially, in the order you ask for them.
> I also expected myName[1] to be located immediately after myName[0].
Why? Even
On Sun, 17 Jun 2018 15:08:27 +0800, Jach Fong wrote:
> The "address" of the Font object 'TkDefaultFont' changes, why?
Its not an address, it is an ID number.
The ID number changes because you get a different object each time you
call the function.
--
Steven D'
or more
bytes. They don't have any integer methods, or methods at all.
--
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it everywhere." -- Jon Ronson
--
https://mail.python.org/mailman/listinfo/python-list
the parrot.
"Dictionary?" said Rincewind.
-- Terry Pratchett, "Eric"
--
Steven D'Aprano
--
https://mail.python.org/mailman/listinfo/python-list
later versions?
--
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it everywhere." -- Jon Ronson
--
https://mail.python.org/mailman/listinfo/python-list
Or you can use the CPython C API to write an extension class.
https://docs.python.org/3/c-api/index.html
--
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it everywhere." -- Jon Ronson
--
https://mail.python.org/mailman/listinfo/python-list
computer
these days has approximately two BILLION bytes of memory, and most
machines have much more than that, you won't stress so much about reusing
objects.
The Rules of Optimization are simple. Rule 1: Don’t do it.
Rule 2 (for experts only): Don’t do it yet.
-- Michael
does ignore it. It makes no change at all to the execution model of
the language.
But the human reader, linters, IDEs and editors can associate it with the
name it annotates, and use it as a hint as to what is intended to happen,
and flag any discrepancies.
--
Steven D'Aprano
&
On Sun, 17 Jun 2018 11:10:55 -0700, Rick Johnson wrote:
> Steven D'Aprano wrote:
>> Bart Wrote:
>> > So what's a Type Hint associated with in Python?
>> Since it is a type *hint*, not a type *declaration*, the interpreter
>> can and does ignore it.
>
&
trendy language is Go... oh wait, that wasn't around in 2006 either.
Yes, but in fairness, people have abandoned Python by the handful for Go
and Javascript. At the rate people are abandoning Python, in another 10
or 20 years Python will have dropped to the second most popular language:
ht
ou
> might as well argue against the += operator or list comprehensions.
I still think that Python has been going nowhere but downhill ever since
extended slicing was added in version 1.4.
--
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seein
On Sun, 17 Jun 2018 16:46:05 -0700, Rick Johnson wrote:
> People like myself will outright refuse to maintain your code.
Whew Dan, you dodged a bullet there.
--
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it everywhere." -
uages are nearly half a century behind the state of the art
in computer programming.
(As an industry, the programming community is *painfully* conservative.
Things which Lisp was doing in the 1950s are *still* not mainstream, and
most programmers do not even imagine they are possible.
evidence that they are
harming it.
--
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it everywhere." -- Jon Ronson
--
https://mail.python.org/mailman/listinfo/python-list
signers, or a case of managerial
interference.
Fortunately I've avoided having to work in that sort of environment, but
my wife used to work in the entertainment industry where that sort of
managerial interference is the rule, not the exception.
--
Steven D'Aprano
"Ever sin
programmer
is an elegant (partial) solution to the problem that testing can never
demonstrate the absence of bugs, only their presence, without
compromising on the full range of dynamic programming available to those
who want it.
--
Steven D'Aprano
"Ever since I learned about co
nybody could possibly need is
GOTO and a good memory for remembering line numbers.
--
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it everywhere." -- Jon Ronson
--
https://mail.python.org/mailman/listinfo/python-list
bout this stop you from pontificating about it.
Because the opinions of the ignorant are of course the most important
thing of all, far more important than facts or experience.
--
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it everywhere." -- Jon
On Mon, 18 Jun 2018 21:03:14 +0100, Bart wrote:
> In the case of Python, it is
> already so big and has so many features crammed in that adding type
> hints probably makes little difference.
You've never used C++ have you?
Describing Python as a "big" language is
On Tue, 19 Jun 2018 10:34:55 +0200, ast wrote:
> The animation should last 20s, but on my computer it is twice faster
[...]
> What's wrong ?
Try replacing your CPU with one half as fast.
*wink*
(Sorry for the bad advice, I couldn't resist.)
--
Steven D'Aprano
"
On Mon, 18 Jun 2018 09:39:21 -0700, Rick Johnson wrote:
> On Monday, June 18, 2018 at 6:57:27 AM UTC-5, Steven D'Aprano wrote:
>> I still think that Python has been going nowhere but downhill ever
>> since extended slicing was added in version 1.4.
>
> Apples to orang
On Mon, 18 Jun 2018 10:01:58 -0700, Rick Johnson wrote:
> Steven D'Aprano wrote:
> [...]
>> particular at DropBox, which is (I believe) funding a lot of Guido's
>> time on this, because they need it.
>
> And now we get to the truth!
>
> Guido's new p
ur
every idle whim or passing fancy.
Let me answer your question directly: they haven't written this tool for
you because they don't have to pander to your idiosyncrasies.
--
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
i
't:
def function(argument, # type=int,
flag, # type=bool,
sequence, # type=list): # type=str
...
Okay, I'm glad we cleared that up.
--
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it everywhere.&quo
doing application level functionality. Its basically just a less
efficient, slightly prettier C.
Assuming that people who aren't you can even get it to compile. When I
tried, it wouldn't compile on my computer.
Oh, with your pointer syntax -- how do you guarantee that your language
is s
On Tue, 19 Jun 2018 12:13:30 +0100, Ed Kellett wrote:
> I think
> we're all--still--missing the larger point that "easy to remove" is a
> completely stupid metric for judging language features. Seriously. Not a
> little bit stupid.
+1
--
Steven D'Ap
On Tue, 19 Jun 2018 11:52:22 +0100, Bart wrote:
> On 19/06/2018 11:33, Steven D'Aprano wrote:
>> On Tue, 19 Jun 2018 10:19:15 +0100, Bart wrote:
>>
>>> * Swap(x,y) (evaluate each once unlike a,y=y,x)
>>
>> Sigh. Really? You think x,y = y,x evaluates x a
nced tool you've used is a hammer, an electric
drill looks like a very expensive, awkward to use hammer.
--
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it everywhere." -- Jon Ronson
--
https://mail.python.org/mailman/listinfo/python-list
t;, not "why
didn't you read what I meant, instead of what I wrote, you idiot?"
--
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it everywhere." -- Jon Ronson
--
https://mail.python.org/mailman/listinfo/python-list
I've needed to break out of
> multiple loops without breaking out of an entire function can be counted
> on the fingers of one hand. Specifically, three times. In nearly three
> decades.
Okay. The number of times I've wanted an asynchronous function so far has
been zero, therefo
ly to my python.
Who are you talking too?
--
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it everywhere." -- Jon Ronson
--
https://mail.python.org/mailman/listinfo/python-list
a list comprehension or an anonymous function?
It isn't the right of the programmer to have somebody else write a
function to convert the one to another for them.
--
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it everywhere." -- Jon Ronson
--
https://mail.python.org/mailman/listinfo/python-list
a little bit stupid.
>
> Not if you think of the feature as analogous to cancer.
That would take it so far beyond the stupidity event horizon that no
human language has an adjective for how stupid it is.
Besides, annotations aren't cancer. They're obviously terrorism. Any fool
;t do that, to me it is too
primitive to use. You, on the other hand, probably consider the idea of
context managers and iterators and Unicode to be unnecessary bloat, and
think that any language which doesn't have a 1970-style Pascal read()/
readln() function is missing "the basics".
On Thu, 21 Jun 2018 21:49:15 +0100, mm0fmf wrote:
[snip unnecessary quoting]
> Design requirements for python newsreader client:
>
> 1. Block all top posters
I think it would be far more useful to block bottom-posters who don't
snip irrelevant quoted text.
--
Steven D'A
ybe you can do both, use IronPython only for the parts that really
need C# integration, and use CPython for the rest:
C# <--> IronPython 2.7 <--> CPython 3.6
although I suspect that will be even more annoying, complicated and
fragile.
Have you tried asking this question on an IronPyt
age does it better, your experience might be different.
And who knows, you might even learn a thing or two. There's a reason why
the Python/Ruby/Lua/Javascript style of languages exists.
--
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it eve
al systems seem to have either adopted Arabic
numerals, or introduced the decimal point/comma into their own numeral
system, or just don't use a decimal place value system.
Either way, I expect that the period . plus the three above will cover
anything you are likely to find in real d
l-world data regardless of language. If Ethan finds
something that isn't covered by those three cases (comma, middle dot and
Arabic decimal separator) he'll likely need to consult an expert on that
language.
Provided Ethan doesn't have to deal with thousands separators as well.
2801 - 2900 of 15563 matches
Mail list logo