Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-13 Thread Anders J. Munch
non-Latin > characters), or even be able to display them. For display, tell your editor the utf-8 source file is really latin-1. For entry, copy-paste. - Anders -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-13 Thread Anders J. Munch
adly-chosen English words, and you have the sorry state of the art that is today. - Anders -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-13 Thread Anders J. Munch
lint - I'm sure you realise what they could do for you. 3. Use a font that doesn't have those characters or deliberately makes them distinct (that could help web browsing safety too). I'm not discounting the problem, I just dont believe it's a big one. Can we chos

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Anders J. Munch
YAGNI applies, and even if you find that you do need it, you may still have won on the balance! As the time saved by using your native language just might outweigh the time spent translating. - Anders -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread Anders J. Munch
ompare that to a "dialect" such as Mandarin, which is exclusive to a tiny little clique of one billion people. - Anders -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie question on code vetting

2006-05-07 Thread Anders J. Munch
he results available to the community, of course. - Anders -- http://mail.python.org/mailman/listinfo/python-list

Re: Q: finding distance between 2 time's

2009-05-31 Thread Anders J. Munch
with: file_age_in_seconds = time.time() - os.path.getmtime(filename) Only convert to local time for presentation. - Anders -- http://mail.python.org/mailman/listinfo/python-list

Re: Recursion Performance Question

2008-07-24 Thread Anders J. Munch
wnd, GW_HWNDNEXT), collect) def gwl(node, hwnd): result = [] gwl_helper(node, hwnd, result.append) return result - Anders -- http://mail.python.org/mailman/listinfo/python-list

Re: Rant (was Re: x*x if x>10

2008-07-27 Thread Anders J. Munch
s this approach quadratic worst-case runtime. - Anders -- http://mail.python.org/mailman/listinfo/python-list

Re: Boolean tests [was Re: Attack a sacred Python Cow]

2008-07-28 Thread Anders J. Munch
is no single obvious interpretation of what is means for an object to evaluate to true. "if x" is simple to type, but not so simple to read. "if x.namedPredicate()" is harder to type, but easier to read. I prefer the latter because code is read more often than it is written. regards, Anders -- http://mail.python.org/mailman/listinfo/python-list

Re: Boolean tests [was Re: Attack a sacred Python Cow]

2008-07-29 Thread Anders J. Munch
Steven D'Aprano wrote: On Tue, 29 Jul 2008 00:23:02 +, Steven D'Aprano wrote: Dude. Dude. Just... learn some Python before you embarrass yourself further. I'm sorry Anders, that was a needlessly harsh thing for me to say. I apologize for the unpleasant tone. Still, _

Re: Boolean tests

2008-08-01 Thread Anders J. Munch
to let you read the rest of the paragraph. Of course I know what __nonzero__ does. regards, Anders -- http://mail.python.org/mailman/listinfo/python-list

Re: Grapheme clusters, a.k.a.real characters

2017-07-18 Thread Anders Wegge Keller
På Tue, 18 Jul 2017 23:59:33 +1000 Chris Angelico skrev: > On Tue, Jul 18, 2017 at 11:11 PM, Steve D'Aprano >> (I don't think any native English words use a double-V or double-U, but >> the possibility exists.) > vacuum. That's latin. -- //Wegge -- https://mail.python.org/mailman/listi

Re: Grapheme clusters, a.k.a.real characters

2017-07-18 Thread Anders Wegge Keller
På Tue, 18 Jul 2017 11:27:03 -0400 Dennis Lee Bieber skrev: > Probably would have to go to words predating the Roman occupation > (which probably means a dialect closer to Welsh or other Gaelic). > Everything later is an import (anglo-saxon being germanic tribes invading > south, Vikings in

SIGSEGV and SIGILL inside PyCFunction_Call

2017-07-19 Thread Anders Wegge Keller
I have an ongoing issue with my usenet setup. I'm that one dude who don't want to learn perl. That means that I have to build inn from source, so I can enable the python interpreter. That's not so bad, and the errors that show up have been something that I have been able to figure out by myself. A

Re: SIGSEGV and SIGILL inside PyCFunction_Call

2017-07-20 Thread Anders Wegge Keller
På Thu, 20 Jul 2017 07:44:26 +0200 dieter skrev: > Anders Wegge Keller writes: ... >> Weird observation #1: Sometimes the reason is SIGSEGV, sometimes it's >> SIGILL. > Python tends to be sensitive to the stack size. In previous times, > there have often be

Re: Configuring an object via a dictionary

2024-03-18 Thread Anders Munch via Python-list
_(self, config): self.conf = Settings(**config) regards, Anders -- https://mail.python.org/mailman/listinfo/python-list

RE: super().__init__() and bytes

2024-12-03 Thread Anders Munch via Python-list
def __new__(cls, whatever, arguments, you, like): bytesvalue = compute(whatever, arguments, you, like) ob = bytes.__new__(cls, bytesvalue) ob.some_other_att = compute_something_else(whatever, arguments, you, like) return ob regards, Anders -- https://mail.python.org/mailman/listinfo/python-list

RE: Module urljoin does not appear to work with scheme Gemini

2025-04-24 Thread Anders Munch via Python-list
before I realised that the lists non_hierarchical, uses_query and uses_fragment are not used. With only three options instead of six, making a strategy object is not quite as attractive. But still worth considering. regards, Anders -- https://mail.python.org/mailman/listinfo/python-list

Re: Python slang

2016-08-07 Thread Anders J. Munch via Python-list
ose terms. It was only later that language designers fell into the notion that it was crucial for a new language's success to look as much like C++ as possible. regards, Anders -- https://mail.python.org/mailman/listinfo/python-list

<    1   2