Re: [Python-3000] Install on Vista / AMD64 AthlonX2 platform

2008-06-10 Thread Michael Urman
" options), and this behavior pretty much seals it. -- Michael Urman ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Re: [Python-3000] Install on Vista / AMD64 AthlonX2 platform

2008-06-10 Thread Michael Urman
umber of packages) with the bit unset, provide a link to ORCA with instructions, or provide a small helper utility (exe or VBS script) which can swap the bit using MSI automation. I'm not certain whether that's a great recommendation across the set of most Windows Python users. -- Micha

Re: [Python-3000] Install on Vista / AMD64 AthlonX2 platform

2008-06-10 Thread Michael Urman
ministrator per-user install on Vista. I downloaded the package to confirm, and indeed the "UAC Compliant" checkbox on ORCA's summary information stream view is not checked. (It's a bad name for it, but it does correspond, inverted, to that bit.) -- Michael Urman _

Re: [Python-3000] Install on Vista / AMD64 AthlonX2 platform

2008-06-09 Thread Michael Urman
nsform or otherwise change this at run-time, so you have to know ahead of time. If it's set to not require administrator privileges, it can only successfully install into machine locations if it was launched by a full administrator context. http://msdn.microsoft.com/en-us/library/aa372870(VS.85).

Re: [Python-3000] [Python-checkins] r62848 - python/trunk/Objects/setobject.c

2008-05-08 Thread Michael Urman
needing modifications if they contain direct svn url references. -- Michael Urman ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Re: [Python-3000] Recursive str

2008-04-16 Thread Michael Urman
F-8 bytestreams, would already differ). -- Michael Urman ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Re: [Python-3000] Recursive str

2008-04-15 Thread Michael Urman
2008/4/15 Guido van Rossum <[EMAIL PROTECTED]>: > On Tue, Apr 15, 2008 at 6:10 PM, Michael Urman <[EMAIL PROTECTED]> wrote: > >The third use, to represent strings unambiguously, is not a major point, > > This is very much dependent on who is looking. > > > S

Re: [Python-3000] Recursive str

2008-04-15 Thread Michael Urman
ackslashreplace, and don't have a strong preference like I do for repr. [Apologies for hitting reply on the unicodedata suggestion yesterday.] Michael -- Michael Urman ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Re: [Python-3000] Spooky behavior of dict.items() and friends

2008-04-02 Thread Michael Urman
nalized that keys() no longer returns a copy. It's only a light worry as there are plenty people who make that mistake in 2.x by leaving off the keys() entirely. And I hardly think this light worry is worth changing the behavior that was decided on months ago. -- Michael Urman

Re: [Python-3000] Using *a for packing in lists and other places

2008-03-15 Thread Michael Urman
think * should be the syntax for iterative-yielding. That said, all these star extensions call to me, especially arbitrarily positioned *args in function calls and iteratively yielding items from another iterator. But I can't offer any use new cases. -- Michael Urman

Re: [Python-3000] indexing wart

2008-03-05 Thread Michael Urman
rimmed_vector = vector[:len(vector) - samples_to_trim] If not, it gets more complicated, but you can wrap the upper bound in a max(0, ...). -- Michael Urman ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python

Re: [Python-3000] bytes and dicts (was: PEP 3137: Immutable Bytesand Mutable Buffer)

2007-09-29 Thread Michael Urman
idea out there, would a variant of dict that suppresses these comparison exceptions, say collections.loosedict, sidestep the issue? -- Michael Urman ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Re: [Python-3000] Unicode and OS strings

2007-09-21 Thread Michael Urman
map(encode_step, sys.argv[1:]). Of course the problem with the encode_step is unless it is a no-op on Windows, it can break filenames as badly as decoding them will on unix, unless the common OS interfaces all reverse the process (in which case doing it manually is never necessary). Michael --

Re: [Python-3000] Support for PEP 3131

2007-06-11 Thread Michael Urman
On 6/11/07, Baptiste Carvello <[EMAIL PROTECTED]> wrote: > Michael Urman a écrit : > > There is the risk of visually aliased identifiers, but how is that > > qualitatively worse than the truly conflicting identifiers you can > > import with a *, or have inser

Re: [Python-3000] Support for PEP 3131

2007-06-11 Thread Michael Urman
ey try to run a python script, they will generally assume it is the script at fault, not their environment. Michael -- Michael Urman ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http:

Re: [Python-3000] Support for PEP 3131

2007-06-11 Thread Michael Urman
he PEP, is broken off the bat in Steve's scenario because it won't run in differently configured environments. Michael -- Michael Urman ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/pyt

Re: [Python-3000] Support for PEP 3131

2007-06-04 Thread Michael Urman
at there will be visually indistinguishable differences introduced? Michael -- Michael Urman ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Re: [Python-3000] PEP 3131 accepted

2007-05-26 Thread Michael Urman
ope that's not your stance, because I still don't expect either to cause problems in the real world. Of course since it's currently not possible, it's hard to go trolling for existing use cases of confusing identifiers in python code. -- Michael Urman

Re: [Python-3000] Support for PEP 3131 (some links to evidence of usage within communities)

2007-05-16 Thread Michael Urman
t; I have absolutely no way of evaluating the content of these links. > Testimonials that I can't read are less than interesting. See the web page option, Japanese to English BETA: http://translate.google.com/translate_t -- Michael Urman ___

Re: [Python-3000] Unicode strings, identifiers, and import

2007-05-13 Thread Michael Urman
possible to open files whose names can be decoded via the filesystem encoding, I foresee several unhappy end-user experiences. -- Michael Urman ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Un

[Python-3000] Unicode strings, identifiers, and import

2007-05-13 Thread Michael Urman
e file APIs, on Linux the filenames may or may be UTF-8 friendly. Michael -- Michael Urman ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Re: [Python-3000] PEP 3108: Standard Library Reorganization

2007-01-03 Thread Michael Urman
ated as 'hello world'.encode('base64') or is there still too much worry that this will require encoding/decoding ascii bytestrings? Your additional points about base32 and base16 still apply to .encode(), as they each result in an unknown encoding LookupError. -- Michael Urm

Re: [Python-3000] A plea for anonymous functions

2006-11-16 Thread Michael Urman
ch harder to unit test. Is that really worth encouraging for handlers with complexity beyond the current lambda? -- Michael Urman http://www.tortall.net/mu/blog ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/lis

Re: [Python-3000] Builtin iterator type

2006-11-15 Thread Michael Urman
rcise for the interested.) >>> def len(thing): ... try: return int(thing.__len__()) ... except (ValueError, TypeError, AttributeError): return 0 ... >>> len(obj) 0 -- Michael Urman http://www.tortall.net/mu/blog ___ P

Re: [Python-3000] Draft PEP for outer scopes

2006-11-06 Thread Michael Urman
t's already a poor coding decision. The module level globals should not unintentionally collide with function-local non-local access. Thus reusing the global keyword is not a practical limitation. -- Michael Urman http://www.tortall.net/mu/blog __

Re: [Python-3000] Path Reform: Get the ball rolling

2006-11-01 Thread Michael Urman
>p = os.path.normpath( os.path.join( __file__, "../..", "lib" ) ) Shouldn't an example avoid using the path separator directly within a string literal? p = path.normpath(path.join(__file__, "..", "..", "lib")) -- Michael Ur

Re: [Python-3000] BOM handling

2006-09-14 Thread Michael Urman
hat doesn't let them control when to use a BOM. -- Michael Urman http://www.tortall.net/mu/blog ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/op

Re: [Python-3000] Help on text editors

2006-09-08 Thread Michael Urman
SI corresponds to cp1252 on English and cp932 on Japanese machines. As for whether cp932 is the same as Shift JIS, David and I seem to disagree. While I lack hard data, the string '\\' round trips through either on my box. -- Michael Urman http://www.tortall.net/mu/blog

Re: [Python-3000] Help on text editors

2006-09-08 Thread Michael Urman
Perhaps not. It certainly shouldn't be the default behaviour of a TextFile constructor. Michael -- Michael Urman http://www.tortall.net/mu/blog ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-300

Re: [Python-3000] Help on text editors

2006-09-07 Thread Michael Urman
of Linux and other Unix handle this > issue? I use en-US.UTF-8, after many years of C or en-US.ISO-8859-1. Due to the age of my install, this was not the default, but now I use it as pervasively as possible. I set it via GDM these days, but via my shell

Re: [Python-3000] locale-aware strings ?

2006-09-06 Thread Michael Urman
On 9/6/06, Paul Prescod <[EMAIL PROTECTED]> wrote: > On 9/6/06, Michael Urman <[EMAIL PROTECTED]> wrote: > > ... I suspect the best option is some sort of TextFile > > constructor that defaults to ASCII (or has no default) but accepts an > > easy way to use the &qu

Re: [Python-3000] locale-aware strings ?

2006-09-06 Thread Michael Urman
I also hope that, if the "recommended" encoding uses a heuristic on the file's contents, the file has enough data in the encoding to make a good guess. Music metadata rarely is that. :) Michael -- Michael Urman http://www.tortall.net/mu/blog _

Re: [Python-3000] [PythonInfo Wiki] Update of "GoogleSprintPy3k" by 65.57.245.11

2006-08-21 Thread Michael Urman
n with multiple ways to do one thing? Or should the surprising but useful map(None, ...) behavior disappear or become even more surprising by padding? Is there any reason at all for map to take multiple sequences now that we have starmap and (i)zip? -- Michael Urman http://www

Re: [Python-3000] callable()

2006-07-27 Thread Michael Urman
We're adults here; if an implementation doesn't follow convention, it does so for a reason, and accepts the risk that someone may accidentally use it the conventional way. Michael -- Michael Urman http://www.tortall.net/mu/blog ___ Python-3000

Re: [Python-3000] callable()

2006-07-18 Thread Michael Urman
g. It's hard to verify your own API against future users with a static tool like pychecker. Michael -- Michael Urman http://www.tortall.net/mu/blog ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Re: [Python-3000] callable()

2006-07-18 Thread Michael Urman
od trade. As for callable() vs addable(), etc., the reason is obvious. Function calls very commonly have large side effects and are only rarely idempotent. The operations you mention are expected to have no side effects on the object. This makes a try/except much more palatable for addition,

Re: [Python-3000] Removing functions from the operator module

2006-07-03 Thread Michael Urman
taxError: invalid syntax >>> reduce(+, [1,2,3,4]) File "", line 1 reduce(+, [1,2,3,4]) ^ SyntaxError: invalid syntax Michael -- Michael Urman http://www.tortall.net/mu/blog ___ Python-3000 mailing list Python-3

Re: [Python-3000] PEP 3101 update

2006-06-24 Thread Michael Urman
familiar with Python's format specification rules. I would much prefer the consistent explicit counter (or lookup-key) in the format specifier. Michael -- Michael Urman http://www.tortall.net/mu/blog ___ Python-3000 mailing list Python-30

Re: [Python-3000] PEP 3101 update

2006-06-22 Thread Michael Urman
are no braces at all in the supplied > format string. > > Then you could do things like: [examples with missing quotes omitted] And >>> "The implicit braces scare me, for I am weak".format(10) 'ValueError' (Assuming lenient mode, and that str.format raises Val

Re: [Python-3000] sets in P3K?

2006-05-03 Thread Michael Urman
ouped <> before (not for sets), but I can't remember why. Michael -- Michael Urman http://www.tortall.net/mu/blog ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Re: [Python-3000] Brainstorming: literal construction hooks

2006-04-22 Thread Michael Urman
on an instance, so no 'self' parameter If something like that sounds reasonable for usage, I'll start looking into how it looks for implementation. (Probably a big ball of mud! And sounds like it depends on the python-side interface to the ast

[Python-3000] Brainstorming: literal construction hooks

2006-04-21 Thread Michael Urman
easons) without having to shoehorn its own syntax into the language. There's a lot of holes to this story, including at least how these functions are registered, and which additional arguments (if any) are necessary. Shall we try to fill these holes in? Michael -- Michael Urman http://www

Re: [Python-3000] auto-super()

2006-04-18 Thread Michael Urman
or after class construction, or potentially break in inherited classes. Michael -- Michael Urman http://www.tortall.net/mu/blog ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mai