Re: [Python-3000] NameError

2008-11-24 Thread Chris Rebert
On Mon, Nov 24, 2008 at 2:55 AM, Ali art <[EMAIL PROTECTED]> wrote: > > I am using Windows XP professional version 2002 Service pack 3. AMD > Athlon(TM)XP 2400+ 2.00GHz 992MB RAM. > > I have downloaded Windows x86 MSI Instaler Python 3.0rc3 (sig) Release: > 21-Nov-2008. > > Control Panel -> System

Re: [Python-3000] Bytes to Unicode Conversion

2008-11-16 Thread Chris Rebert
Ah, my bad. Should never have referred to the Python 2.6 docs. :) Replace "unicode" with "str" in my line of code and I think it should work. Cheers, Chris On Sun, Nov 16, 2008 at 12:13 PM, Pb2Au <[EMAIL PROTECTED]> wrote: > On Sun, Nov 16, 2008 at 4:31 PM, C

Re: [Python-3000] Bytes to Unicode Conversion

2008-11-16 Thread Chris Rebert
On Sat, Nov 15, 2008 at 8:46 AM, Pb2Au <[EMAIL PROTECTED]> wrote: > Hello, > > I recently changed from Python 2.5 to Python 3.0 rc2, and have > been trying to find out how to convert byte strings (b"example") > to unicode strings ("example"). I noticed that some of these had > changed in the lates

Re: [Python-3000] default argument surprises

2008-08-27 Thread Chris Rebert
On Wed, Aug 27, 2008 at 11:01 AM, Brett Cannon <[EMAIL PROTECTED]> wrote: > On Wed, Aug 27, 2008 at 9:29 AM, Sam Bishop <[EMAIL PROTECTED]> wrote: >> On Tue, Aug 26, 2008 at 8:31 PM, Chris Rebert <[EMAIL PROTECTED]> wrote: >>> You might then be interested in th

Re: [Python-3000] default argument surprises

2008-08-26 Thread Chris Rebert
On Tue, Aug 26, 2008 at 8:31 PM, Chris Rebert <[EMAIL PROTECTED]> wrote: > You might then be interested in the following related discussions from > last year wherein I proposed something extremely similar: > > [Python-ideas] proto-PEP: Fixing Non-constant Default Arguments > h

Re: [Python-3000] default argument surprises

2008-08-26 Thread Chris Rebert
You might then be interested in the following related discussions from last year wherein I proposed something extremely similar: [Python-ideas] proto-PEP: Fixing Non-constant Default Arguments http://mail.python.org/pipermail/python-ideas/2007-January/000121.html [Python-3000] pre-PEP: Default Ar

Re: [Python-3000] __hash__ : Problem with either documentation or understanding

2008-07-29 Thread Chris Rebert
Your question isn't really Python-3000-specific, and belongs more on the comp.lang.python list. That said, whether it's right for your object really depends on how you're defining equality for it. Are you defining equality as merely identity (i.e. are they pointers to the same spot in memory) or d

Re: [Python-3000] Python certifications

2008-06-03 Thread Chris Rebert
This mailinglist is specifically about discussing Python v3.0, not general Python interest topics. As such, you question would be better suited to the comp.lang.python newsgroup than this list. - Chris Rebert On Mon, Jun 2, 2008 at 11:44 PM, vdedaniya <[EMAIL PROTECTED]> wrote: > Hell

Re: [Python-3000] non-local assignment

2008-05-28 Thread Chris Rebert
be used instead as it's the name of a builtin type (in Py3K). In the future, searching the list archives can be quite helpful. - Chris Rebert On Wed, May 28, 2008 at 10:55 PM, Daniel Wong <[EMAIL PROTECTED]> wrote: > I'm confused by the section on "no alternate bin

Re: [Python-3000] PEP 3132: Extended Iterable Unpacking

2007-05-01 Thread Chris Rebert
://mail.python.org/pipermail/python-ideas/2007-March/000284.html - Chris Rebert On 5/1/07, Christian Heimes <[EMAIL PROTECTED]> wrote: > Neville Grech Neville Grech wrote: > > This reminds me a lot of haskell/prolog's head/tail list splitting. Looks > > like a good feature. > >

Re: [Python-3000] Empty set and empty dictionary

2007-04-16 Thread Chris Rebert
Ah, that must have been it! Never mind then ;-). - Chris Rebert Mike Klaas wrote: > On 4/16/07, Chris Rebert <[EMAIL PROTECTED]> wrote: >> I think someone has probably proposed this before, but why not use "{,}" >> as the empty set literal? > > If y

Re: [Python-3000] Empty set and empty dictionary

2007-04-16 Thread Chris Rebert
ed for being too hard to parse because the minus sign could be the start of an expression. I don't think this would apply to the comma as it's basically used as an expression separator; however I'm no expert on Python's grammar and parser, so I can't be sure. Thoughts? -

Re: [Python-3000] Octal

2007-03-13 Thread Chris Rebert
sentations of ints to ints might be useful. At any rate, I'd like to propose the octal syntax: 0c123 I like this because "0c" looks like the start of the word "octal", and, as with your suggestion, the 0[character-here] prefix makes for a nice symmetry with "0

Re: [Python-3000] pre-PEP: Default Argument Expressions

2007-02-15 Thread Chris Rebert
se has ideas, that's great too. Anything to stop the abuses of mutable default arguments. - Chris Rebert BJörn Lindqvist wrote: > On 2/15/07, Jim Jewett <[EMAIL PROTECTED]> wrote: >> On 2/13/07, Chris Rebert <[EMAIL PROTECTED]> wrote: >> > There ar

Re: [Python-3000] pre-PEP: Default Argument Expressions

2007-02-14 Thread Chris Rebert
Josiah Carlson wrote: > "BJörn Lindqvist" <[EMAIL PROTECTED]> wrote: >> On 2/14/07, Josiah Carlson <[EMAIL PROTECTED]> wrote: >>> Chris Rebert <[EMAIL PROTECTED]> wrote: >>>> Requesting comments on the following pre-PEP. pybench runs

Re: [Python-3000] pre-PEP: Default Argument Expressions

2007-02-14 Thread Chris Rebert
Mike Klaas wrote: > On 2/13/07, Chris Rebert <[EMAIL PROTECTED]> wrote: >> This PEP proposes new semantics for default arguments to remove >> boilerplate code associated with non-constant default argument >> values, >> allowing them to be expr

[Python-3000] pre-PEP: Default Argument Expressions

2007-02-13 Thread Chris Rebert
Requesting comments on the following pre-PEP. pybench runs both with and without the patch applied would also be appreciated. - Chris R Title: Default Argument Expressions Author: Christopher Rebert Status: Draft Type: Standards Track Requires: 3000 Python-Version: 3.0 Abstract This PEP