Re: [Python-Dev] unittest's redundant assertions: asserts vs. failIf/Unlesses

2008-04-07 Thread Benjamin Peterson
On Mon, Apr 7, 2008 at 7:37 PM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On Wed, Mar 19, 2008 at 5:16 PM, Jeffrey Yasskin <[EMAIL PROTECTED]> wrote: > > On Wed, Mar 19, 2008 at 2:15 PM, <[EMAIL PROTECTED]> wrote: > > > > > > On 02:21 pm, [EMAIL PROTECTED] wrote: > > > >>OTOH, I'd rat

Re: [Python-Dev] unittest's redundant assertions: asserts vs. failIf/Unlesses

2008-04-07 Thread Guido van Rossum
On Wed, Mar 19, 2008 at 5:16 PM, Jeffrey Yasskin <[EMAIL PROTECTED]> wrote: > On Wed, Mar 19, 2008 at 2:15 PM, <[EMAIL PROTECTED]> wrote: > > > > On 02:21 pm, [EMAIL PROTECTED] wrote: > > >>OTOH, I'd rather there be OOWTDI so whatever the consensus is is fine > > >>with me. > > > > > >T

Re: [Python-Dev] string representation of range in 3.0

2008-04-07 Thread Guido van Rossum
I'd object to it returning something that resembles a list too closely, but I could live with str(range(3)) return <0, 1, 2>. We should probably have a cutoff so that if there are more than 6 values it'll show the first 3 values, then dots, then the last 2 values. (The cutoff would be computed so t

[Python-Dev] string representation of range in 3.0

2008-04-07 Thread Brad Miller
Hi, I use Python in my CS1 and CS2 curriculum and I have a question. As I've been using the Python 3.0 alphas one of the things that I am bothered by is that I cannot see the sequence produced by range without introducing students to the list() function. I typically introduce range on day 1 o

Re: [Python-Dev] New project : Spyke python-to-C compiler

2008-04-07 Thread Benjamin Peterson
[snip] > > > > c) Strings as type declarations : Do you think I should use decorators > instead at least for function type declarations? You might be interested in 3.0's (and maybe 2.6's) function annotations. See PEP 3107. > > > thanks for patiently reading this, > comments and inquiries sought.

Re: [Python-Dev] python source code

2008-04-07 Thread Benjamin Peterson
On Sun, Apr 6, 2008 at 11:58 PM, Avi Kohn <[EMAIL PROTECTED]> wrote: > I am interested in understanding the python source code. Can someone > direct me to resources (documentation,book,archive of mailling lists,etc) > that will assist me ? > What part(s) do you want to learn about? The CPython int

Re: [Python-Dev] [Numpy-discussion] New project : Spyke python-to-C compiler

2008-04-07 Thread Dag Sverre Seljebotn
> What is Spyke? > In many performance critical projects, it is often necessary to > rewrite parts of the application in C. However writing C wrappers can > be time consuming. Spyke offers an alternative approach. You add > annotations to your Python code as strings. These strings are > discarded

Re: [Python-Dev] [Numpy-discussion] New project : Spyke python-to-C compiler

2008-04-07 Thread Dag Sverre Seljebotn
> (Though as the saying goes, little duplication is normal (and perhaps > wanted) for open source software.) Sorry! I meant "a little", completely reversing the meaning of my sentence. Dag Sverre ___ Python-Dev mailing list Python-Dev@python.org http:

[Python-Dev] python source code

2008-04-07 Thread Avi Kohn
I am interested in understanding the python source code. Can someone direct me to resources (documentation,book,archive of mailling lists,etc) that will assist me ? Thank you, Avi -- Avi Kohn ___ Python-Dev mailing list Python-Dev@python.org http://mail

Re: [Python-Dev] [Distutils] Remove "current" Windows executables from Lib/distutils/command in svn?

2008-04-07 Thread David Arnold
On 06/04/2008, at 2:15 AM, Martin v. Löwis wrote: > a) how does the binary get into the release tarball? You might argue >that it doesn't have to, as it is sufficient when it is included in >the Windows installer, however, as currently implemented, >bdist_wininst also runs on Unix, and

Re: [Python-Dev] Python 3000: Special type for object attributes & map keys

2008-04-07 Thread Guido van Rossum
Without an implementation and supporting profile data nobody is going to believe that you can do name lookup faster than with the built-in dict type in CPython. Note that names seen by the parser are already interned, so most of what you seem to be proposing is already implemented... On Wed, Mar 5

Re: [Python-Dev] configure error: "rm: conftest.dSYM: is a directory"

2008-04-07 Thread Robert Kern
[EMAIL PROTECTED] wrote: > >> Note the "rm: conftest.dSYM: is a directory". This occurred a few > >> times during the configure process. Didn't cause it to conk out, but > >> is annoying. > > Brett> I am assuming this is on your OS X machine, Skip? > > Yes, sorry. I forgot to m

Re: [Python-Dev] New project : Spyke python-to-C compiler

2008-04-07 Thread Terry Reedy
"Rahul Garg" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Note this message has been posted to numpy-discussion and python-dev. | Sorry for the multiple posting but I thought both python devs and | numpy users will be interested. If you believe your list should not | receive this

Re: [Python-Dev] socket.SOL_REUSEADDR: different semantics between Windows vs Unix (or why test_asynchat is sometimes dying on Windows)

2008-04-07 Thread Raghuram Devarakonda
On Sat, Apr 5, 2008 at 1:22 PM, Trent Nelson <[EMAIL PROTECTED]> wrote: > Nod, if SO_EXCLUSIVEADDRUSE is used instead in the code I posted, Windows > raises EADDRINUSE on the second bind(). I don't have access to any Linux > boxes at the moment, so I can't test what sort of error is raised wit

Re: [Python-Dev] Remove "current" Windows executables from Lib/distutils/command in svn?

2008-04-07 Thread Christian Heimes
Martin v. Löwis schrieb: > b) IIRC, upx was used to compress these executables. I don't think the >the current build process covers this, yet (but then, the current >binaries might not be compressed with upx anymore, either - not >sure whether that would be a bug). Of course, upx would