" 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
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
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
_
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).
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
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
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
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
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
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
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
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
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
--
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
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:
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
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
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
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
___
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
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
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
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
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
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
__
>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
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
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
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
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
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
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
_
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
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
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
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,
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
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
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
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
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
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
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
43 matches
Mail list logo