Re: [Python-Dev] core python tests

2009-04-04 Thread Antoine Pitrou
Nick Coghlan ncoghlan at gmail.com writes: C. Titus Brown wrote: I vote for a separate mailing list -- 'python-tests'? -- but I don't know exactly how splintered to make the conversation. It probably belongs at python.org but if you want me to host it, I can. If too many things get

Re: [Python-Dev] PyDict_SetItem hook

2009-04-04 Thread Aahz
On Fri, Apr 03, 2009, Collin Winter wrote: I don't believe that these are insurmountable problems, though. A great contribution to Python performance work would be an improved version of PyBench that corrects these problems and offers more precise measurements. Is that something you might be

[Python-Dev] GSoC (was Re: PyDict_SetItem hook)

2009-04-04 Thread C. Titus Brown
On Sat, Apr 04, 2009 at 06:28:01AM -0700, Aahz wrote: - On Fri, Apr 03, 2009, Collin Winter wrote: - - I don't believe that these are insurmountable problems, though. A - great contribution to Python performance work would be an improved - version of PyBench that corrects these problems and

Re: [Python-Dev] core python tests

2009-04-04 Thread Michael Foord
Antoine Pitrou wrote: Nick Coghlan ncoghlan at gmail.com writes: C. Titus Brown wrote: I vote for a separate mailing list -- 'python-tests'? -- but I don't know exactly how splintered to make the conversation. It probably belongs at python.org but if you want me to host it, I can.

[Python-Dev] graphics maths types in python core?

2009-04-04 Thread C. Titus Brown
Hi all, we're having a discussion over on the GSoC mailing list about basic math types, and I was wondering if there is any history that we should be aware of in python-dev. Has this been brought up before and rejected? Should the interested projects work towards a consensus and maybe write up

Re: [Python-Dev] graphics maths types in python core?

2009-04-04 Thread Antoine Pitrou
C. Titus Brown ctb at msu.edu writes: we're having a discussion over on the GSoC mailing list about basic math types [...] - - Otherwise we'll be doomed to have each project implement vec2, vec3, - vec4, matrix3/4, quaternion (which has already happened many times) - - and continue to

[Python-Dev] Mercurial?

2009-04-04 Thread Aahz
With Brett's (hopefully temporary!) absence, who is spearheading the Mercurial conversion? Whoever it is should probably take over PEP 374 and start updating it with the conversion plan, particularly WRT expectations for dates relative to 3.1 final and 2.7 final. -- Aahz (a...@pythoncraft.com)

[Python-Dev] Helper Python core development tools

2009-04-04 Thread Mario
With all the sand and sun on the beaches, should I really be doing this now? That is the question we probably ask ourselves every time we have to do some boring task. What kind of things do you think could be made better? What would make your workflow smoother and more fun? Now is your chance to

Re: [Python-Dev] core python tests

2009-04-04 Thread Collin Winter
On Sat, Apr 4, 2009 at 7:33 AM, Michael Foord fuzzy...@voidspace.org.uk wrote: Antoine Pitrou wrote: Nick Coghlan ncoghlan at gmail.com writes: C. Titus Brown wrote: I vote for a separate mailing list -- 'python-tests'? -- but I don't know exactly how splintered to make the conversation.

Re: [Python-Dev] graphics maths types in python core?

2009-04-04 Thread Guido van Rossum
I'm not even sure what you mean by basic math types (it would probably depend on which math curriculum you are using :-) but if you're not already aware of PEP 3141, that's where to start. --Guido On Sat, Apr 4, 2009 at 8:09 AM, Antoine Pitrou solip...@pitrou.net wrote: C. Titus Brown ctb at

Re: [Python-Dev] Package Management - thoughts from the peanut gallery

2009-04-04 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Apr 3, 2009, at 4:01 AM, Tarek Ziadé wrote: Each one of this task has a leader, except the one with (*). I just got back from travelling, and I will reorganize http://wiki.python.org/moin/Distutils asap to it is up-to-date. I added a link to

Re: [Python-Dev] core python tests

2009-04-04 Thread Michael Foord
Jeffrey Yasskin wrote: On Sat, Apr 4, 2009 at 11:52 AM, Collin Winter coll...@gmail.com wrote: On Sat, Apr 4, 2009 at 7:33 AM, Michael Foord fuzzy...@voidspace.org.uk wrote: Antoine Pitrou wrote: Nick Coghlan ncoghlan at gmail.com writes: C. Titus Brown wrote:

Re: [Python-Dev] graphics maths types in python core?

2009-04-04 Thread Greg Ewing
C. Titus Brown wrote: we're having a discussion over on the GSoC mailing list about basic math types, and I was wondering if there is any history that we should be aware of in python-dev. Something I've suggested before is to provide a set of functions for doing elementwise arithmetic

Re: [Python-Dev] graphics maths types in python core?

2009-04-04 Thread Antoine Pitrou
Greg Ewing greg.ewing at canterbury.ac.nz writes: Something I've suggested before is to provide a set of functions for doing elementwise arithmetic operations on objects that support the new buffer protocol. Together with a multidimensional version of the standard array.array type, this

[Python-Dev] Possible py3k io wierdness

2009-04-04 Thread brian
Hey, I noticed that the call pattern of the C-implemented io libraries is as follows (translating from C to Python): class _FileIO(object): def flush(self): if self.__IOBase_closed: raise ... def close(self): self.flush() self.__IOBase_closed = True class

[Python-Dev] [RELEASED] Python 3.1 alpha 2

2009-04-04 Thread Benjamin Peterson
On behalf of the Python development team, I'm thrilled to announce the second alpha release of Python 3.1. Python 3.1 focuses on the stabilization and optimization of features and changes Python 3.0 introduced. For example, the new I/O system has been rewritten in C for speed. Other features

Re: [Python-Dev] Possible py3k io wierdness

2009-04-04 Thread Antoine Pitrou
Hi! brian at sweetapp.com writes: class _RawIOBase(_FileIO): FileIO is a subclass of _RawIOBase, not the reverse: issubclass(_io._RawIOBase, _io.FileIO) False issubclass(_io.FileIO, _io._RawIOBase) True I do understand your surprise, but the Python implementation of IOBase.close() in

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

2009-04-04 Thread Steve Holden
Martin v. Löwis wrote: That's not entirely true; Cygwin comes with a package management tool that probably could be used to set up a repository of python packages for native Windows: http://sources.redhat.com/cygwin-apps/setup.html Ah, ok. It has the big disadvantage of not being

[Python-Dev] 3.1 beta is closer than you think

2009-04-04 Thread Benjamin Peterson
3.1's only beta is planned for May 2nd, so that means you have exactly 28 days to get the amazing 3.1 features you have planned checked into the py3k branch. There will be absolutely no new features after the beta is released. -- Regards, Benjamin ___

Re: [Python-Dev] graphics maths types in python core?

2009-04-04 Thread Greg Ewing
Antoine Pitrou wrote: Again, I don't want to spoil the party, but multidimensional buffers are not implemented, and neither are buffers of anything other than single-byte data. When you say buffer here, are you talking about the buffer interface itself, or the memoryview object? -- Greg

Re: [Python-Dev] graphics maths types in python core?

2009-04-04 Thread Benjamin Peterson
2009/4/4 Greg Ewing greg.ew...@canterbury.ac.nz: Antoine Pitrou wrote: Both. Well, taking a buffer or memoryview to non-bytes data is supported, but since it's basically unused, some things are likely missing or broken So you're saying the buffer interface *has* been fully implemented, it

Re: [Python-Dev] graphics maths types in python core?

2009-04-04 Thread Antoine Pitrou
Greg Ewing greg.ewing at canterbury.ac.nz writes: Again, I don't want to spoil the party, but multidimensional buffers are not implemented, and neither are buffers of anything other than single-byte data. When you say buffer here, are you talking about the buffer interface itself, or

Re: [Python-Dev] Mercurial?

2009-04-04 Thread Martin v. Löwis
I'd like to take that on. I know hardly anyone here knows me, but I'm one of the Mercurial developers. I've been in contact with Brett, saying that I'd gladly as much help as I could, and I figured I'd put a lot of time in providing the best possible migration path. I'm personally happy

Re: [Python-Dev] graphics maths types in python core?

2009-04-04 Thread Greg Ewing
Antoine Pitrou wrote: Both. Well, taking a buffer or memoryview to non-bytes data is supported, but since it's basically unused, some things are likely missing or broken So you're saying the buffer interface *has* been fully implemented, it just hasn't been tested very well? If so, writing

Re: [Python-Dev] graphics maths types in python core?

2009-04-04 Thread Antoine Pitrou
Greg Ewing greg.ewing at canterbury.ac.nz writes: So you're saying the buffer interface *has* been fully implemented, it just hasn't been tested very well? No, it hasn't been implemented for multi-dimensional types, and it hasn't been really tested for anything other than plain linear

[Python-Dev] BufferedReader.peek() ignores its argument

2009-04-04 Thread Antoine Pitrou
Hello, Currently, BufferedReader.peek() ignores its argument and can return more or less than the number of bytes requested by the user. This is how it was implemented in the Python version, and we've reflected this in the C version. It seems a bit strange and unhelpful though. Should we change

Re: [Python-Dev] UnicodeDecodeError bug in distutils

2009-04-04 Thread Ben Finney
Ben Finney ben+pyt...@benfinney.id.au writes: Phillip J. Eby p...@telecommunity.com writes: Meanwhile, the 'register' command accepts Unicode, but is broken in handling it. […] Unfortunately, this isn't fixable until there's a new 2.5.x release. For previous Python versions, both

Re: [Python-Dev] BufferedReader.peek() ignores its argument

2009-04-04 Thread Benjamin Peterson
2009/4/4 Antoine Pitrou solip...@pitrou.net: Hello, Currently, BufferedReader.peek() ignores its argument and can return more or less than the number of bytes requested by the user. This is how it was implemented in the Python version, and we've reflected this in the C version. It seems a

Re: [Python-Dev] UnicodeDecodeError bug in distutils

2009-04-04 Thread Martin v. Löwis
Meanwhile, the 'register' command accepts Unicode, but is broken in handling it. […] Unfortunately, this isn't fixable until there's a new 2.5.x release. For previous Python versions, both register and write_pkg_info() accepted 8-bit strings and passed them on as-is, so the only workaround

Re: [Python-Dev] Mercurial?

2009-04-04 Thread Terry Reedy
Christian Heimes wrote: Martin v. Löwis wrote: I would personally remove all non-mercurial stuff out of PEP 374, and retitle it, but that would be your choice. I suggest we keep the old PEP and start a new one about Hg exclusively. The original PEP 374 has cost Brett a lot of time. It would

Re: [Python-Dev] BufferedReader.peek() ignores its argument

2009-04-04 Thread Aahz
On Sun, Apr 05, 2009, Antoine Pitrou wrote: Currently, BufferedReader.peek() ignores its argument and can return more or less than the number of bytes requested by the user. This is how it was implemented in the Python version, and we've reflected this in the C version. It seems a bit

Re: [Python-Dev] UnicodeDecodeError bug in distutils

2009-04-04 Thread Ben Finney
Ben Finney ben+pyt...@benfinney.id.au writes: Is there an open bug tracker issue with more information? Answer: URL:http://bugs.python.org/issue2562. Apparently the issue is resolved URL:http://bugs.python.org/msg72385 for Python 2.6. I will need to wait for my distribution to catch up before I

Re: [Python-Dev] Mercurial?

2009-04-04 Thread Martin v. Löwis
I second not tossing the data and history. It serves as partial justification for the decision, which has been and will occasionally again be discussed on python-list. It's in subversion, so the history won't be tossed. To keep it online, it doesn't have to be in the PEP - putting it in a

Re: [Python-Dev] Mercurial?

2009-04-04 Thread Terry Reedy
Martin v. Löwis wrote: I second not tossing the data and history. It serves as partial justification for the decision, which has been and will occasionally again be discussed on python-list. It's in subversion, so the history won't be tossed. I know; I should have been more exact: not

Re: [Python-Dev] Mercurial?

2009-04-04 Thread Alexandre Vassalotti
On Sat, Apr 4, 2009 at 11:40 AM, Aahz a...@pythoncraft.com wrote: With Brett's (hopefully temporary!) absence, who is spearheading the Mercurial conversion?  Whoever it is should probably take over PEP 374 and start updating it with the conversion plan, particularly WRT expectations for dates