nd that always
works.
For email, I once added encoding processing to the pipermail (the
mailman archiver), and that also always works.
> I'll go back and take another look at the problem, then come back if new
> revelations appear.
Good luck!
Martin
g
options differently from the old one.
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
oding guessing,
since they still might be able to hard-code the encoding of the web
page they want to process.
In any case, I'm very skeptical that a general "guess encoding"
module would do a meaningful thing when applied to incorrectly
encoded HTML pages.
Regards,
Ma
ical that you can make that work, whether or not it's a
good idea.
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
ull detail, since
1993.
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
ope that he or a group
of people would volunteer to maintain it, with the threat of removing
it from the stdlib again if these volunteers go away and too many
problems show up.
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mai
> Is there anybody who nows how to solve the problem?
If it's really the problem described in the MSKB article, the article
also suggests a solution: use non-blocking sockets.
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.
ight
be "yes, but please don't commit to subversion, but only to the
bazaar repository".
Regards,
Martin
(*) FWIW, Google does provide the infrastructure; students are
encouraged (required?) to commit their work to code.google.com.
_
e then, at all. Python doesn't
really ship with any libraries that also have an active life outside
of Python.
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
of credentials that we manage).
HTH,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
ka optparse) is currently seeing active
> external updates.
Hence my classification "doesn't really", which I meant to be vague.
> Of course, we also have a big warning at the top of the PEP saying
> *Never Ever Do This Again*
>> For web forms, I always encode the pages in UTF-8, and that always
>> works.
>
> Should work, if you use the "multipart/form-data" format.
Right - I was implicitly assuming that.
Regards,
Martin
___
Python-Dev mailin
at python
> repositories ?
No, no discussion needed. The students should just send me their SSH
keys, and their preferred form of firstname.lastname (some people
may have names more complex than that), and I'll add them.
Regards,
Martin
> this is very annoying.
Posting to so many lists is even more annoying. You might not get
a single helpful answer just because people are so frustrated by
this behavior.
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
h
> I do not see this as a daunting task assuming jcea is willing to be
> volunteered to do the merge and to handle any py3k merge issues that
> come up.
Ideally, yes. Jesus, if you are uncertain of how exactly the merging
works, don't hesitat
; have parts of Python that rely on finding modules at explicit base
> addresses? Is BaseAddress a relic from the past? Christian or
> Martin?
As Christian says: specifying the base address so that the addresses
don't overlap avoids having Windows to perform relocations on startup.
annot be exposed to Python as-is (hence
the two result values), and it isn't a system call (at least not
on POSIX), so it doesn't really need to be exposed, except perhaps
to also provide this on non-POSIX systems where a regular POSIX
implementation (in
alking about the specific implementation, which happens to be
a wrapper around the C library's mkstemp. For the use case in
question, I think passing delete=False to NamedTemporaryFile would
work just as well.
Regards,
Martin
___
Python-Dev mailing
> An example module for the NodeVisitor is in the repository which
> converts a Python AST back into Python source code:
>
> http://dev.pocoo.org/hg/sandbox/file/tip/ast/codegen.py
And another example for the same functionality is in Demo/parser/unparse.py.
Reg
r has a version
number precisely so that you can refer to a specific version if you
need to.
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
ems you don't want to identify whether the Windows installation is
a Win64 one, but whether the Python installation is, right?
For this, you should use platform.architecture()[0]
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http
Thomas Lee wrote:
> Martin v. Löwis wrote:
>>> This leaves us with a few options:
>>>
>>
>> 5. Reuse/Abuse Num(object) for arbitrary constants.
>>AFAICT, this should work out of the box.
>>
>>
> Eek. It *does* seem like Num woul
ome registry key?
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
settled that the architecture name is amd64. "64" is not enough,
because it can't tell Itanium and AMD64 apart (which are both Win64).
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listin
ypically write
return ? true : false;
Likewise, apparently, the notion of generic callables is difficult
to understand. Unless you have written it yourself, you won't recognize
an expression as callable.
Regards,
Martin
___
Python-Dev maili
> This code is now open source! Browse it here:
>
> http://code.google.com/p/rietveld/source/browse
Are you also going to call it Rietveld then? Sounds better
to me than "the open source code review tool".
Regards,
Martin
___
Pyth
OpenID thing. I personally couldn't
remember any of my OpenIDs, because they are just too long; plus
I haven't actually seen this really work anywhere yet.
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/
> Thanks for any thoughts on this,
The proper way to implement this would be IRIs (RFC 3987),
in particular section 3.1. This is not as simple as just
encoding it as UTF-8, as you might have to apply IDNA to
the host part.
Code doing so just hasn't been contributed yet.
Regards
acceptable.
Unfortunately, if a security catastrophe results from the function,
blame is (correctly) also upon Python for providing the function in
the first place.
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.or
nt decoding it sees
> non-ascii octets, should it try to decode them as utf-8 and if that
> fails then leave them as is?
That's why I think that using IRIs should be a separate feature,
perhaps a separate module entirely.
Regards,
Martin
___
P
;s probably legal, but I don't understand why you think it's
practical. The DNS lookup then will certainly fail, no?
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscri
So, no. The author of ctypes is not a native English speaker, so unless
you want the details clarified in German, you need to find somebody who
actually speaks the language in which you want to read the
documentation.
Regards,
Martin
___
Python-Dev m
k
8.5 included, preferably starting at the next betas. Would you see a
problem with that?
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/opti
the code as-is, and might not start using .format before
Python 3.2, unless some coding convention says I have to.
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mai
ompletely
acceptable use cases of it, I don't think we should ever warn about it.
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/opti
ght into these betas, or would it be ? Should I start doing
> something more/else ?
No. My question really was whether you see any reason not to bundle
Tk 8.5 with Python 2.6 (on Windows). Whether or not the Ttk API is
exposed is a different matter - you might consider providing it
as a di
> When I rename a module I use "svn copy", since "svn remove" doesn't
> pick up changes made to the "deleted" file. For example, here is what
> I did for PixMapWrapper:
You want to make changes to the deleted file? Why?
Regards,
Martin
__
pan over several revisions with intermediate
revisions that you don't want to revert, try multiple merge
commands before a single commit; if that fails, revert and commit
each range of changes separately.
Regards,
Martin
P.S. If you want to get the buildbots back in shape (in case they
aren
bversion's first release was in October 2000; it wasn't self-hosting
until 2001 :-)
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
. You wanted to replace the file with a stub,
and then delete it? Why not just delete it (or use svn mv in the first
place)?
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
o, 24 Okt 2005) | 3 lines
PEP 351, the freeze protocol.
----
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsub
e supported
> (without name mangling of files in the working directory).
Assuming this is NTFS, notice that it is not the file system that is
case-folding, but the API. If you pass FILE_FLAGS_POSIX_SEMANTICS to
the API, you can get case-sensitive behavior (to some degree, as there
are bugs in that A
particular, for the following
operations I could not find a way to make them case-sensitive (as they
don't accept any flags parameter): DeleteFile (apparently possible
through NtDeleteFile), CreateDirectory, RemoveDirectory, FindFirstFile
(and probably
y - you still need
to try a lot of combinations for user names and passwords, plus with
subversion, we'll easily recognize doubtful checkins (as we do even
if the committer is legitimate :-).
Regards,
Martin
___
Python-Dev mailing list
Python-D
nd has not
reached version 1.0 yet.
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
ed, distributed application.
> And then, of course, you have a gazillion specialized solutions
> such as PyRO:
>
> http://pyro.sourceforge.net/
I personally would not use that library, although I know others
are very fond of it.
Regards,
Martin
__
it impossible to
implement such functionality in pure Python - then *those*
limitations should be overcome, rather than including the code
wholesale.
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/li
ssor systems (perhaps with
NUMA consequences that the operating system, but not application,
needs to deal with).
So -1 on "multicore" from me as well, despise marketing (typo
intentional :-)
Regards,
Martin
___
Python-Dev mailing
you also have to
adjust PC/os2emx/Makefile, PC/os2vacpp/makefile.omk, and PC/VC6, but
these changes are waived).
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.p
> Don't forget PC/config.c and the build files for VC 6, VS 7.1 and VS 8.0
> in the PC/ directory. :]
Aren't the 7.1 and 8.0 files generated?
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/
uses C++ exceptions,
you should certainly enable compiler support for exceptions,
for that module.
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/m
module, as part of the standard
library.
This has somewhat lost relevance with ctypes.
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman
bad idea (because it artificially renumbers
system errors, just to provide an illusion for what Microsoft considers
POSIX).
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscri
for
asynchronous (structured) exceptions and want to specify /EHa,
or that they have cases where C functions throw C++ exceptions,
so they want to specify /EHs (no c).
So yes, unfortunately, you'll have to add the option into your
own setup.py, it seems.
Regards
r
it (to set or clear that variable) is a good thing, IMO.
Naming contest: it probably would be the longest of the PYTHON*
variables. I would not want to call it PYTHONENCODING, or
PYTHONSTDENCODING, though, because people might infer that it
affects sys.getdefaultencoding(), which it shouldn'
> Writing Unicode to stdout will still use the default encoding
> ASCII to convert it to an 8-bit string.
That's not true.
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Eclipse one I mentioned. Setting
the locale doesn't help there.
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
> PYTHONSTDOUTENCODING could then provide the default to
> sys.stdout.encoding.
Right - that's the proposal.
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubsc
> I'm not exactly sure why, since using .encoding would be useful
> in all cases.
Right, I think it should use the file's encoding also for .write.
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.py
STDENCODING, though, because people might infer that it
>> affects sys.getdefaultencoding(), which it shouldn't.
>
>PYTHONIOENCODING?
Unprecise in a different way (as it is meant to apply only to stdout,
not to all IO), but shorter.
Regards,
Martin
_
PYTHONHOME,
PYTHONUNBUFFERED, PYTHONVERBOSE, PYTHONSTARTUP, and PYTHONCASEOK don't
have underscores, either.
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://ma
27;t think there is a plan to add library functions
with that name.
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python
macros in it (can't test it right now).
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
code, but chances are high that this
would indeed create a dependency on libgcc.
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/pyt
although writing non-portable ctypes
code is apparently easier than writing non-portable C code).
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.o
egards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
aren't there
> just more tools that help?
The C compiler in particular. It already gets symbolic constants and
struct layouts right, something that ctypes can't do (because it doesn't
use header files).
Regards,
Martin
___
Python-D
> it would would also be helpfull if someone could tell me, how to locate the
> code, which causes this SEG fault
I think you already found the code; gdb tells you the exact location of
the crash. What are the values of pool and bp?
Regards,
semantically.
(as any good list of two items, this has three :-)
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
to have old releases on some slaves, rather than
having them test all the same version (which is known to work in
principle, anyway).
> I would hate to find problems in Python beta releases because the
> buildbots are outdated :(
Don't worry, some slaves will surely have the latest version
t to have the slaves export
> | the new version.
>
> I was thinking about the Unix buildbots.
Ah. There is no way to upgrade them, and attempts to upgrade them should
not be made (see my other message)
Regards,
Martin
___
Python-Dev mai
> I would like to print the Berkeley DB release used, also.
Could that be done at build time as well?
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.
o'
> %
>
> So maybe Python just doesn't run on Solaris with the Sun C compiler.
> Certainly doesn't build out of the box.
Apparently, there were some intermediate releases of SunPRO which had
this problem; in these cases, setting -xc99=%none may help.
Regards,
Martin
n/trunk/Lib/lib-old/[EMAIL PROTECTED]
svn+ssh://[EMAIL PROTECTED]/python/trunk/Lib/[EMAIL PROTECTED]
which shows no differences. In fact, Queue.py got its current contents
in r63077, the same version where queue.py was copied from Queue.py.
HTH,
Martin
_
a release blocker: there is no accepted PEP
demanding it, it does not cause any crashes, and it is no regression
over earlier releases.
For this to have any chance, it *must* work with Visual Studio.
Requiring gcc is unacceptable.
Regards,
Martin
___
Python
atch gets accepted. I will have
zero time for this until the beta release, unless the patch just needs
to be applied, compiles without changes, and passes it the test suite.
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.p
extra work initially, it also has advantages (such as
not having to worry about conflicting command line options between the
library's build procedure, and Python's).
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://ma
don't think it is a problem.
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
i.e. 2037).
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
expectancy of str.__mod__? I'd always supposed it being
> deprecated at some point in 3.x.
The PEP doesn't specify anything, and I don't recall any discussion,
either - the specific timing suggested above is merely my own hopes.
Regards,
Martin
__
be missing).
I just resent the range that you indicated (r63887-r63898, inclusive).
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/o
> Agreed. %(something)s is quirky - you are bound to forget the final "s"
> (or whatever other specifier) from time to time.
But that gives a ValueError the first time you try it, no?
Regards,
Martin
___
Python-Dev mailing list
Pytho
who
would need to decide before the first beta, of course - afterwards
it's for the release manager to decide).
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://m
intuitive.
Still, I don't think this should be done. Flat is better than nested,
and adding hierarchy will make it *more* difficult to find anything
(except perhaps for the one person who did the rearrangement).
I personally use grep to find the place wher
syntax to me, perhaps plus the data types that have literals
or displays, and perhaps plus a few selected exceptions.
(just to test your own intuition: when reversed() got added, was
that more of a language change than when sys.meta_path got
added?)
Regards,
Martin
_
egards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
irectory as they
> are now.
Indeed.
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
ented in Modules/posixmodule.c:posix_uname.
Finding out why it still shows up in os is left as an exercise for
the reader.
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Un
rsive
one, nothing is gained.
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
works, even though
"foo bar" is not an identifier. setattr doesn't take the Python grammar
into account, but only the object's structure.
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mai
.
That will only happen when (if) None becomes a keywords: then
foo.None will be a syntax error. You will still be able to put
attributes named 'None' (or 'import' or 'if') into any object
using getattr/setattr, or by direct access to __dict__.
Regards,
Martin
tion apparently deviates from the specification.
In Python 3, None, True, and False are keywords, so clearly, the
intended semantics is also the implemented one (and the language
description for 2.x needs to be updated/clarified).
Regards,
Martin
___
Python-Dev m
> Martin, since you committed 60793 in Feb, any others like this that need
> merging from release25-maint to trunk off the top of your head?
That's the entire chunk of "Google bug fixes", and yes, all of it needs
to be ported to 2.6 still.
I'll look into it, unless you
modifies x.counts
People will be surprised that x also grows an attribute
e, as the for loop involves an assignment, which you say
goes to the object's namespace, of course.
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://ma
he FAQ should continue to claim that Python cannot grow
a Pascal-like with statement.
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/pytho
es
sorting, it should be called "sorted dictionary", and mandate a
comparison function (which might default to cmp).
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe
#x27;]
odict.odict([('c', 'd'), ('foo', 'bar')])
The slicing operation that you provide should be spelled as
d.items()[1:3], or, if you don't want to pay the cost of creating
the full items list, then add a method such a
making as fast as it could be ... IMHO yet another reason to
> ship a usable implementation with Python.
If you use a linked list instead of Python list, you can even do
deletion in O(1). Of course, memory consumption will be higher.
Regards,
Martin
___
> Sorry, that's correct. This is against 2.6 trunk.
>
> That's the idea -- in 3.x this will be a non-issue.
It's perhaps even less of an issue than you think: In 3.0,
True and False are *already* compiled into constants. So
any additional special casing would make no diff
, the maintainers will pickup and changes
themselves and merge them into whatever external repository they
may use.
Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
3501 - 3600 of 5764 matches
Mail list logo