Re: [Python-Dev] Multiprocessing on Solaris

2009-03-23 Thread Martin v. Löwis
you want to see how it fares on the various systems which we have build slaves for, feel free to create a branch, and then manually ask the slaves to build branches/yourbranch. Or, just commit it into the trunk, and see how it does. Regards, Martin ___ P

Re: [Python-Dev] GSoC: Core Python development tools

2009-03-23 Thread Martin v. Löwis
ngs. So he seems to be > navigating this particular minefield pretty well so far. Yes, I'm also quite grateful for the contributions I have received from Daniel. I hope he'll stay around for some time without exhausting. Regards, Martin ___ Python-Dev

Re: [Python-Dev] GSoC: Core Python development tools

2009-03-23 Thread Martin v. Löwis
mand line). Of course, such a project might better be mentored at subversion than Python. Regards, Martin P.S. I don't believe your claim that it forgot changesets. Could it be that it simply forgot adding files, and that it did so because you already had the files in the sandbox, so tha

Re: [Python-Dev] Integrate BeautifulSoup into stdlib?

2009-03-23 Thread Martin v. Löwis
made the life worse for Debian package maintainers, at least initially - i.e. for a few years). 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

Re: [Python-Dev] GSoC: Core Python development tools

2009-03-23 Thread Martin v. Löwis
s the to-be-merged changes directly conflict. Just svn-update, then try committing again. It's actually also possible to recover from overlapping merges also: just re-run svnmerge with --record-only (-M); this assumes nobody else has merged the very same changes concurrently. Regards, Martin

Re: [Python-Dev] Core projects for Summer of Code

2009-03-23 Thread Martin v. Löwis
he student's application to get in contact with a potential mentor, and we could prioritize porting projects assuming the package authors indicate sufficient intent to accept the results of the porting. Regards, Martin ___ Python-Dev mailing list Pytho

Re: [Python-Dev] Core projects for Summer of Code

2009-03-23 Thread Martin v. Löwis
r 3.x version if it comes with the > blessings of Fredrik, i.e. if I were you I'd try pushing this with > Fredrik. I don't think a GSoC project can possibly help with that. Regards, Martin ___ Python-Dev mailing list Python-Dev@pyth

Re: [Python-Dev] tracker status options

2009-03-23 Thread Martin v. Löwis
nt. > > > It's the latter; it's "pending feedback". Which "latter" (there seem to be multiple pairs in Tennessee's message)? In any case, it's not really "pending feedback". Instead, it means "if there is no feedback really soon

Re: [Python-Dev] Issue workflow doc is now live

2009-03-23 Thread Martin v. Löwis
> > It should probably be replaced with Brett's document. > > > I say replace as well. Will then dev/workflow be removed? I don't think we need two copies (possibly inconsistent)? So if dev/workflow stays, PEP 3 should be withdrawn. Regards, Martin ___

Re: [Python-Dev] Integrate BeautifulSoup into stdlib?

2009-03-24 Thread Martin v. Löwis
develop applications myself, and had only once in ten years the desire to package everything in a stand-alone way, and then ended up using freeze. I'm genuinely curious what the scenarios are where people desire such packaging - I did hear the desire often, but ne

Re: [Python-Dev] Integrate BeautifulSoup into stdlib?

2009-03-24 Thread Martin v. Löwis
ging solution can help here in any way. 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

Re: [Python-Dev] Integrate BeautifulSoup into stdlib?

2009-03-24 Thread Martin v. Löwis
everything. The Windows story is indeed sad, as none of the Windows packaging formats provides support for dependencies (MSI has some support, but as far as I understand it, it's pretty useless). But yes, for Windows, you want .exe or .msi installers, not something proprietary. Regards, Martin _

Re: [Python-Dev] Integrate BeautifulSoup into stdlib?

2009-03-24 Thread Martin v. Löwis
ue usually, since the mess will live on the web servers, and not on everybody's end user machine. 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

Re: [Python-Dev] tracker status options

2009-03-24 Thread Martin v. Löwis
should never conclude with "I don't know"; this would be time-wasting. If, for a bug, the reviewer disagrees that it would be a bug if the behavior actually exists, then the issue should be closed (resolution not-a-bug/invalid). If the reviewer ag

Re: [Python-Dev] Test failures under Windows?

2009-03-24 Thread Martin v. Löwis
> There was a discussion about this on the py3k mailing list back in > mid-2007 ("buildbots" thread) and perhaps later as well, at which > point I believe Martin added an "-n" option to regrtest and the > buildbot test.bat file to disable the assertions. Is that

Re: [Python-Dev] GSoC: Replace MS Windows Console with Unicode UI

2009-03-24 Thread Martin v. Löwis
pyqtshell/> become good > IDLE alternative. Could well be. To see it integrated into Python (and perhaps replace IDLE), a lot of steps would need to happen, though. But perhaps you weren't asking for it to be included in Python - it can also be a good alternati

Re: [Python-Dev] tracker status options

2009-03-24 Thread Martin v. Löwis
ody has explicitly requested such an assignment, or unless he gave blank permission to be assigned certain kinds of issues. > Hmm. Maybe I should write a short "guide to performing triage" and > post it for feedback. That can't hurt. Different people make different e

Re: [Python-Dev] tracker status options

2009-03-24 Thread Martin v. Löwis
p unless it gets issues to be resolved, eventually. In the specific case: if the bug has already been confirmed, there is nothing else to be done for the review. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mai

Re: [Python-Dev] Integrate BeautifulSoup into stdlib?

2009-03-24 Thread Martin v. Löwis
entation requirement. Right - plus, distutils also supports creating MSIs. > How were Mike's packages fundamentally > different than that? Dunno. Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listin

Re: [Python-Dev] Test failures under Windows?

2009-03-24 Thread Martin v. Löwis
n, though. However, I would still be unhappy if Python on Windows would pop up might pop up windows in cases where you get a proper exception on Unix. So I'd rather see these bugs fixed instead of silencing them. Regards, Martin ___ Python-Dev mailing l

Re: [Python-Dev] Integrate BeautifulSoup into stdlib?

2009-03-25 Thread Martin v. Löwis
ils.mk fragment) In that sense, distutils is for Python what make is for C. 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

Re: [Python-Dev] version compare function into main lib

2009-03-27 Thread Martin v. Löwis
as no conclusion of how specifically that functionality should be offered; several people agreed that Python should mandate a standard format, which it is then able to compare. So you might not be able to spell it "10.3.40-beta", but perhaps "10.3.40b1" or "1

Re: [Python-Dev] version compare function into main lib

2009-03-27 Thread Martin v. Löwis
is (assuming it gets contributed), but *independently* I think a specfication is needed what version strings it actually understands. Such specification must precede the actual implementation (in distutils). Regards, Martin ___ Python-Dev mailing list Python

Re: [Python-Dev] splitting out bdist_* (was: interminable 'setuptools' thread)

2009-03-27 Thread Martin v. Löwis
inst works fine on Linux, and I'm skeptical that Linux users would have easy access to it if it became part of py2exe. 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

[Python-Dev] Version strings

2009-03-27 Thread Martin v. Löwis
proof of concept 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

Re: [Python-Dev] My summit notes (packaging)

2009-03-28 Thread Martin v. Löwis
PEP 345 introduces "Requires" and "Provides" wich are are implemented in Distutils and PyP, but are not widely used. 40 out of +4000 if I remember correctly. Martin will correct me here if I am wrong. Here are the actual numbers of packages that had a certain spec

Re: [Python-Dev] bdist_linux (was: setuptools has divided the Python community)

2009-03-29 Thread Martin v. Löwis
ink this is the same rationale for debian packages. Right now people tend to use external tools like stdeb and they are OK with it (but still gets problems extracting stuff out of Python packages at this point) Explicit is better than implicit: What is your list of problem

Re: [Python-Dev] bdist_linux

2009-03-29 Thread Martin v. Löwis
x27;t *provide* them... So that making a FHS compliant package would be as simple as python setup.py distutils --datadir=bla --htmldir=foo What's the meaning of the distutils command? Regards, Martin ___ Python-Dev mailing list P

Re: [Python-Dev] Test failures under Windows?

2009-03-31 Thread Martin v. Löwis
t; it was removed by an unintentional merge from the trunk. Notice, however, that the feature was never present in the trunk. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-de

[Python-Dev] PEP 382: Namespace Packages

2009-04-02 Thread Martin v. Löwis
I propose the following PEP for inclusion to Python 3.1. Please comment. Regards, Martin Abstract Namespace packages are a mechanism for splitting a single Python package across multiple directories on disk. In current Python versions, an algorithm to compute the packages __path__ must

Re: [Python-Dev] PyDict_SetItem hook

2009-04-03 Thread Martin v. Löwis
zled how easily you judge a the performance impact of a patch without having seen any benchmarks. If I have learned anything about performance, it is this: never guess the performance aspects of code without benchmarking. Regards, Martin ___

Re: [Python-Dev] Should the io-c modules be put in their own directory?

2009-04-03 Thread Martin v. Löwis
ng them around in >> the Modules/ directory. > > Welcome back! > > I have no particular opinion on this. I suggest waiting for Benjamin's advice > and following it :-) I would suggest to leave it as is: a) never change a ru

Re: [Python-Dev] Getting values stored inside sets

2009-04-03 Thread Martin v. Löwis
x27;foo' and Element('foo') are different things, you should not implement __eq__ in a way that they are considered equal. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev

Re: [Python-Dev] PEP 382: Namespace Packages

2009-04-03 Thread Martin v. Löwis
. Thanks for the feedback, 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

Re: [Python-Dev] PEP 382: Namespace Packages

2009-04-03 Thread Martin v. Löwis
Chris Withers wrote: > Martin v. Löwis wrote: >> I propose the following PEP for inclusion to Python 3.1. >> Please comment. > > Would this support the following case: > > I have a package called mortar, which defines useful stuff: > > from mortar impor

Re: [Python-Dev] PEP 382: Namespace Packages

2009-04-03 Thread Martin v. Löwis
t have access to a list > of files in a package directory, but is well capable for the checking > the existence of a file. Do you have a specific mechanism in mind? Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail

Re: [Python-Dev] PEP 382: Namespace Packages

2009-04-03 Thread Martin v. Löwis
kg was found, nor an __init__.py, it proceeds with the next sys.path item (skipping the directory entirely) 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

Re: [Python-Dev] issue5578 - explanation

2009-04-03 Thread Martin v. Löwis
lections.namedtuple is also implemented using exec. Ah, but it uses "exec ... in ...". That is much safer than an unqualified exec (where the issue is what namespace it executes in, and, consequentially, what early binding is possible). The patch bans only unq

Re: [Python-Dev] Integrate BeautifulSoup into stdlib?

2009-04-03 Thread Martin v. Löwis
endorsed, though. In that sense, it feels very much like easy_install (which also does dependencies). Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python

Re: [Python-Dev] Should the io-c modules be put in their own directory?

2009-04-03 Thread Martin v. Löwis
> I think Benjamin is right. While most of the C source is indeed > exactly one level below the root, there's plenty of code that isn't, > e.g. _ctypes, cjkcodecs, expat, _multiprocessing, zlib. And even > Objects/stringlib. It's fine

Re: [Python-Dev] Mercurial?

2009-04-04 Thread Martin v. Löwis
re found with the demo installation. I would personally remove all non-mercurial stuff out of PEP 374, and retitle it, but that would be your choice. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/m

Re: [Python-Dev] UnicodeDecodeError bug in distutils

2009-04-04 Thread Martin v. Löwis
d on this? Is there an open bug tracker issue with more > information? Who's working on this? For Python 2.5.4, no further changes will be made. If you can reproduce with 2.6, and can't find a tracker issue, make a new report. Regards, Martin ___

Re: [Python-Dev] Mercurial?

2009-04-04 Thread Martin v. Löwis
he PEP - putting it in a wiki page would also allow referring to 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/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Mercurial?

2009-04-05 Thread Martin v. Löwis
se.py script. > > There is probably some other things that I missed Here are some: - integrate with the buildbot - come up with a strategy for /external (also relevant for the buildbot slaves) - decide what to do with the bzr mirrors Regards, Martin _

Re: [Python-Dev] Mercurial?

2009-04-05 Thread Martin v. Löwis
y, we could > simply a new Mercurial repository and copy the content of /external in > it. >> - decide what to do with the bzr mirrors >> > > I don't see much benefits to keep them. Both should go into the PEP. 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

Re: [Python-Dev] Mercurial?

2009-04-05 Thread Martin v. Löwis
le, Sphinx dependencies to build the docs > reside their. A simple script that downloads a tarball and extracts it > seems more elegant. Such a script would, in particular, also have to work on the Windows buildbot slaves. /external is primarily used for the Window build. Regards, Martin

Re: [Python-Dev] Mercurial?

2009-04-05 Thread Martin v. Löwis
lexandre has also volunteered, you two need to decide who is in charge. Whoever does that will certainly get access to code.python.org; the demo installation should run on that machine. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.p

Re: [Python-Dev] Mercurial?

2009-04-05 Thread Martin v. Löwis
Dirkjan Ochtman wrote: > On 05/04/2009 11:06, "Martin v. Löwis" wrote: >> In particular, the Stackless people have requested that they move along >> with what core Python does, so their code should also be converted. > > I'd be interested to hear if they w

Re: [Python-Dev] Mercurial?

2009-04-05 Thread Martin v. Löwis
ps the standard library, than extracting it from the source. 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

Re: [Python-Dev] Mercurial?

2009-04-05 Thread Martin v. Löwis
ot of the web site) is served # from index.html, and provides links to the Waterfall as well as the # other pages. In the 0.7.9 release notes, it says # The html.Waterfall status target was replaced by html.WebStatus in # 0.7.6, and will be removed by 0.8.0. But then, I have not tried in

Re: [Python-Dev] Mercurial?

2009-04-05 Thread Martin v. Löwis
ciated with svn). The PEP should then explain what the authorized_keys lines should look like; this allows people to review the security of the setup. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/list

Re: [Python-Dev] Mercurial?

2009-04-05 Thread Martin v. Löwis
ssh-key <-> logname. > In any case, some web > interface to facilitate setting up new clones (branches) is also > something that's probably desirable. I think Mozilla has some tooling > for that which we might be able to start off of. How to authenticate in that interfac

Re: [Python-Dev] Mercurial?

2009-04-05 Thread Martin v. Löwis
hon.org's admins are with this idea. If it's the same as the current subversion access, it's fine. Otherwise, it needs discussion. > We could still enable pushing through http(s) for hgweb(dir). But that would require to hand out (and manage) passwords, right? Martin ___

Re: [Python-Dev] Mercurial?

2009-04-05 Thread Martin v. Löwis
at will be easy. Would be good to enable compression > on the SSH, though, if that's not already done. Where is that configured? Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Un

Re: [Python-Dev] Mercurial?

2009-04-05 Thread Martin v. Löwis
a repo or imported > via hg import? Not sure. What is the recommendation? Ideally, we would have a contributor agreement on file of any, well, contributor. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/

Re: [Python-Dev] Mercurial?

2009-04-06 Thread Martin v. Löwis
Nick Coghlan wrote: > Dirkjan Ochtman wrote: >> I have a stab at an author map at http://dirkjan.ochtman.nl/author-map. >> Could use some review, but it seems like a good start. > > Martin may be able to provide a better list of names based on the > checkin name<->

Re: [Python-Dev] Getting information out of the buildbots

2009-04-06 Thread Martin v. Löwis
ild of that branch just on that specific slave (use branches/ in the input field). When doing so, feel free to cancel any automated build that is currently running; make sure to use your real name in the UI so we know it's not spam. Regards, Martin __

Re: [Python-Dev] Mercurial?

2009-04-07 Thread Martin v. Löwis
e; > people from Indonesian, Burmese and Malaysian cultures often only use a > single name. That's why asking for a policy. We have to have *some* way of identifying where a certain change originated from. I'm sure there is solution, and it doesn't matter to me whether I need

Re: [Python-Dev] $Id$ and sys.subversion (Was: Mercurial?)

2009-04-07 Thread Martin v. Löwis
mercurial checkout that gets these things right (perhaps a Mercurial branch in itself?). Subversion-specific code is both in configure.in, Makefile.pre.in, and PCbuild/make_buildinfo.c (not sure whether that would still be needed). Regards, Martin

Re: [Python-Dev] Adding new features to Python 2.x (PEP 382: Namespace Packages)

2009-04-07 Thread Martin v. Löwis
> Such a policy would then translate to a dead end for Python 2.x > based applications. 2.x based applications *are* in a dead end, with the only exit being portage to 3.x. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.or

Re: [Python-Dev] slightly inconsistent set/list pop behaviour

2009-04-08 Thread Martin v. Löwis
ementation? I'm impressed. And > by impressed I mean frightened. Well, Mark is the guy who deals with floating point numbers for fun. *That* should frighten you :-) Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.or

Re: [Python-Dev] Dropping bytes "support" in json

2009-04-08 Thread Martin v. Löwis
that he can parse directly out of byte strings, and marshal into them (which is important, as you typically receive them over the wire). Having to run them through a codec slows parsing down. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org

Re: [Python-Dev] Contributor Agreements for Patches - was [Jython-dev] Jython on Google AppEngine!

2009-04-08 Thread Martin v. Löwis
as a project under the Python Software > Foundation, intends to follow the same policy as CPython. Please keep pushing. From this message alone, I find two questions to the lawyer, and one (possibly two) feature requests for the bug tracker. Regards, Martin _

Re: [Python-Dev] Dropping bytes "support" in json

2009-04-08 Thread Martin v. Löwis
ython in the first place. I can understand that you don't want to spend much time on it. How about removing it from 3.1? We could re-add it when long-term support becomes more likely. Regards, Martin ___ Python-Dev mailing list Python-Dev@pyth

Re: [Python-Dev] Dropping bytes "support" in json

2009-04-09 Thread Martin v. Löwis
content-transfer-encoding: 8bit, I think there is just no way to represent email as text. You have to accept conversion to, say, base64 (or quoted-unreadable) when converting an email message to text. Regards, Martin ___ Python-Dev mailing list Python-Dev

Re: [Python-Dev] Rethinking intern() and its data structure

2009-04-09 Thread Martin v. Löwis
ly) 384kiB. It then grows, requiring 1536kiB. Whether or not having 22k interned strings is "typical", I still don't know. Wrt. your proposed change, I would be worried about maintainability, in particular if it would copy parts of the set implementation. Regards, Martin import gc

Re: [Python-Dev] Dropping bytes "support" in json

2009-04-09 Thread Martin v. Löwis
ed by not having to waste time with a module that doesn't quite work, or may change. 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

Re: [Python-Dev] Rethinking intern() and its data structure

2009-04-09 Thread Martin v. Löwis
because startup overhead > for us is almost 400ms to 'do nothing', which is a lot for a command > line app. Maybe I misunderstand your proposed change: how could the representation of the interning dict possibly change the runtime of interni

Re: [Python-Dev] Dropping bytes "support" in json

2009-04-09 Thread Martin v. Löwis
reasonable. (but then, I also stand by my view that we shouldn't proceed without Bob's approval). 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

Re: [Python-Dev] Dropping bytes "support" in json

2009-04-09 Thread Martin v. Löwis
#x27;t a very > interesting problem for me to solve. And I didn't expect you to - it seems people are quite willing to do the actual work, as long as there is some guidance. 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

Re: [Python-Dev] Rethinking intern() and its data structure

2009-04-09 Thread Martin v. Löwis
l measurements. Too many effects come together, so the actual performance is difficult to predict (and, for that prediction, you would need *at least* a work load that you want to measure - starting bzr would be such a workload, of course). Regards, Martin

Re: [Python-Dev] Dropping bytes "support" in json

2009-04-10 Thread Martin v. Löwis
rather than bytes. I don't think this can be approached from a theoretical point of view. Instead, what matters is how users want to use it. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/

Re: [Python-Dev] Dropping bytes "support" in json

2009-04-10 Thread Martin v. Löwis
I to accept or produce bytes in any language that provides a > Unicode string type. So how do you integrate the encoding detection that the RFC suggests to be done? Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org

Re: [Python-Dev] Dropping bytes "support" in json

2009-04-10 Thread Martin v. Löwis
uld be answered by verifying how people use the json library in 2.x. > The standard does not specify any correspondence between representations > and domain objects And that is not the issue at all; nobody is debating what output the parsing should produce. Regards, Martin

Re: [Python-Dev] Needing help to change the grammar

2009-04-10 Thread Martin v. Löwis
, 1)), "em") == 0; > if (!res && !PyErr_Occurred()) > err_string("operador de comparação desconhecido"); > } > return (res); > } > Notice that Python source is represented in UTF-8 in the parser. It might be that the C sour

Re: [Python-Dev] Dropping bytes "support" in json

2009-04-10 Thread Martin v. Löwis
call a suggestion that > using bytes would be significantly faster. Not sure whether it would be *significantly* faster, but yes, Bob wrote an accelerator for parsing out of a byte string to make it really fast; IIRC, he claims that it is faster than p

Re: [Python-Dev] Google Summer of Code/core Python projects - RFC

2009-04-10 Thread Martin v. Löwis
g a PEP (whose acceptance then might not happen within a summer). 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

Re: [Python-Dev] Google Summer of Code/core Python projects - RFC

2009-04-11 Thread Martin v. Löwis
ually works by then). Decision to accept it or not as a SoC project is independent, but if accepted, the student should well understand the outcome of this discussion. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.

Re: [Python-Dev] Google Summer of Code/core Python projects - RFC

2009-04-11 Thread Martin v. Löwis
e imho. I completely agree that this is a useful functionality to have, and I also agree it *eventually* belongs into the standard library. I just don't like the idea of bypassing the proper process by making it part of distutils. This model (I need it, so I add it) made both distutils and setuptoo

Re: [Python-Dev] Google Summer of Code/core Python projects - RFC

2009-04-11 Thread Martin v. Löwis
stutils, and likely, people will start using the distutils implementation as if it were official API). Also, if you want it pluggable, you likely come up with *another* ad-hoc plugin system. Regards, Martin ___ Python-Dev mailing list Python-Dev@pyt

Re: [Python-Dev] Contributor Agreements for Patches - was [Jython-dev] Jython on Google AppEngine!

2009-04-13 Thread Martin v. Löwis
sufficient for most cases. For committers, we should continue to require contributor forms. Contributor forms can be electronic, but they need to name the parties, include a signature (including electronic), and include a company contribution agreement as necessary. Regards, Martin P.S. I'm sure

Re: [Python-Dev] Dropping bytes "support" in json

2009-04-13 Thread Martin v. Löwis
ript library. 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

Re: [Python-Dev] Dropping bytes "support" in json

2009-04-13 Thread Martin v. Löwis
of them is more appropriate, if, what you want, is bytes. I argue that the second form is better, since it saves you an encode invocation. 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

Re: [Python-Dev] Dropping bytes "support" in json

2009-04-13 Thread Martin v. Löwis
e applications might be where they want it. Perhaps they misunderstand something when they think they want 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/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Shorter float repr in Python 3.1?

2009-04-14 Thread Martin v. Löwis
#endif Earlier versions included that ifdef block directly in pyconfig.h.in. In case it isn't clear how this works: GCC predefines __BIG_ENDIAN__ on PPC but not on x86; for universal binaries, two (or more) separate preprocessor (and compile

Re: [Python-Dev] Shorter float repr in Python 3.1?

2009-04-14 Thread Martin v. Löwis
> If this approach is sane, could it be adopted for all other instances of > endianness detection in the py3k code base? Don't worry - the approach that we already take is already sane, so no further changes are needed. Regards, Martin ___

Re: [Python-Dev] #!/usr/bin/env python --> python3 where applicable

2009-04-19 Thread Martin v. Löwis
that the installation should also provide a python3 symlink. I don't recall the agreement wrt. to the names of executables on Windows. 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

Re: [Python-Dev] #!/usr/bin/env python --> python3 where applicable

2009-04-19 Thread Martin v. Löwis
> Although I guess choosing a file association for .py files becomes > rather more interesting... Indeed. We could register a py3 extension (and py3w? pyw3?), but then .py might remain associated with python3, even though people want it associated with py

[Python-Dev] PEP 383: Non-decodable Bytes in System Character Interfaces

2009-04-21 Thread Martin v. Löwis
I'm proposing the following PEP for inclusion into Python 3.1. Please comment. Regards, Martin PEP: 383 Title: Non-decodable Bytes in System Character Interfaces Version: $Revision: 71793 $ Last-Modified: $Date: 2009-04-22 08:42:06 +0200 (Mi, 22. Apr 2009) $ Author: Martin v. Löwis S

Re: [Python-Dev] PEP 383: Non-decodable Bytes in System Character Interfaces

2009-04-22 Thread Martin v. Löwis
PI to non-decodable bytes, this interface >> has the limitation that chosen representation only "works" if the data >> get converted back to bytes with the python-escape error handler >> also. > > I thought the error handler would be used for decoding. It's us

Re: [Python-Dev] PEP 383: Non-decodable Bytes in System Character Interfaces

2009-04-22 Thread Martin v. Löwis
interfaces. I don't understand from the rest of your message what would *actually* break if people would use the proposed interfaces. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev

Re: [Python-Dev] PEP 383: Non-decodable Bytes in System Character Interfaces

2009-04-22 Thread Martin v. Löwis
on a VCS is a > major PITA, and py3k is currently not helping the situation. I find these statements contradicting: py3k *is* keeping the byte-based APIs for file names intact, so why is it not helping the situation, when this is what is needed to make p

Re: [Python-Dev] PEP 383: Non-decodable Bytes in System Character Interfaces

2009-04-22 Thread Martin v. Löwis
arguments as bytes. With the PEP, such a way would actually become available for applications that desire it. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.

Re: [Python-Dev] PEP 383: Non-decodable Bytes in System Character Interfaces

2009-04-22 Thread Martin v. Löwis
MRAB wrote: > Martin v. Löwis wrote: > [snip] >> To convert non-decodable bytes, a new error handler "python-escape" is >> introduced, which decodes non-decodable bytes using into a private-use >> character U+F01xx, which is believed to not conflict with privat

Re: [Python-Dev] PEP 383: Non-decodable Bytes in System Character Interfaces

2009-04-22 Thread Martin v. Löwis
X will trigger an error, which is then >> handled by the handler to produce \xXX. > > But only for non-UTF8 encodings? Right. For ease of use, the implementation will specify the error handler regardless, and the recommended use for applications will be

Re: [Python-Dev] Tuples and underorderable types

2009-04-24 Thread Martin v. Löwis
the decorate/sort/undecorate pattern, and encourage use of the key= argument. Or, if you really need to decorate into a tuple, still pass a key= argument. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/li

Re: [Python-Dev] PEP 383: Non-decodable Bytes in System Character Interfaces

2009-04-24 Thread Martin v. Löwis
> Why not use U+DCxx for non-UTF-8 encodings too? I thought of that, and was tricked into believing that only U+DC8x is a half surrogate. Now I see that you are right, and have fixed the PEP accordingly. Regards, Martin ___ Python-Dev mailing l

Re: [Python-Dev] PEP 383: Non-decodable Bytes in System Character Interfaces

2009-04-25 Thread Martin v. Löwis
Cameron Simpson wrote: > On 22Apr2009 08:50, Martin v. Löwis wrote: > | File names, environment variables, and command line arguments are > | defined as being character data in POSIX; > > Specific citation please? I'd like to check the specifics of this. For example, on e

Re: [Python-Dev] PEP 383: Non-decodable Bytes in System Character Interfaces

2009-04-25 Thread Martin v. Löwis
eld bytes( ord(c) for c in os_listdir_string ) > - have os.open() et al transcode unicode code points back into bytes. > i.e. a straight one-to-one mapping, using only codepoints in the range > 1..255. That would be an alternative approach to the same problem (and one that I think will

Re: [Python-Dev] PEP 383: Non-decodable Bytes in System Character Interfaces

2009-04-25 Thread Martin v. Löwis
d, they use the Windows ANSI code page (which varies with the installation). > Given this, can't people who > must have access to all files / environment data just use the bytes > interface? No, because the Windows API would interpret the bytes

<    3   4   5   6   7   8   9   10   11   12   >