Re: [Python-Dev] Bug or not? Different behaviour iterating list and collections.deque

2007-01-08 Thread Christos Georgiou
""Martin v. Löwis"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Christos Georgiou schrieb: >> Is that intentional? > > It would have helped if you had said what "that" is you are referring > to, it would also have helped if y

Re: [Python-Dev] Bug or not? Different behaviour iterating list andcollections.deque

2007-01-07 Thread Christos Georgiou
"Josiah Carlson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > "Christos Georgiou" <[EMAIL PROTECTED]> wrote: >> [snip] >> issue, but please understand this is not a question for help to change >> the >> algorithm

Re: [Python-Dev] Bug or not? Different behaviour iterating list andcollections.deque

2007-01-07 Thread Christos Georgiou
Forgive my piggy backing, but I forgot to include the only related post I found, which did not clear things up for me: http://groups.google.com/group/comp.lang.python/msg/e2dcb2362649a601 ___ Python-Dev mailing list Python-Dev@python.org http://mail.

[Python-Dev] Bug or not? Different behaviour iterating list and collections.deque

2007-01-07 Thread Christos Georgiou
Hello, people. I am not sure whether this is a bug or intentional, so I thought checking it with you before opening a bug. I will explain this issue, but please understand this is not a question for help to change the algorithm (this has been done already), so it's not a question of c.l.py. It'

Re: [Python-Dev] Tix not included in 2.5 for Windows

2006-09-30 Thread Christos Georgiou
""Martin v. Löwis"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Please submit a bug report to sf.net/projects/python. Done: www.python.org/sf/1568240 ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/l

[Python-Dev] Tix not included in 2.5 for Windows

2006-09-29 Thread Christos Georgiou
Does anyone know why this happens? I can't find any information pointing to this being deliberate. I just upgraded to 2.5 on Windows (after making sure I can build extensions with the freeware VC++ Toolkit 2003) and some of my programs stopped operating. I saw in a French forum that someone els

Re: [Python-Dev] once [was: Simple Switch statementZ]

2006-06-29 Thread Christos Georgiou
I haven't followed the complete discussion about once, but I would assume it would be used as such: once = that is, always an assignment, with the value stored as a cellvar, perhaps, on first execution 0f the code. Typically I would use it as: def function(a): once pathjoin = os.path.jo

Re: [Python-Dev] Visual studio 2005 express now free

2006-05-08 Thread Christos Georgiou
""Martin v. Löwis"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > - Paul Moore has contributed a Python build procedure for the > free version of the 2003 compiler. This one is without IDE, > but still, it should allow people without a VS 2003 license > to work on Python itsel

Re: [Python-Dev] Python Grammar Ambiguity

2006-04-28 Thread Christos Georgiou
"Michael Foord" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > It worries me that there might be a valid expression allowed here that I > haven't thought of. My current rules allow anything that looks like > ``(a, [b, c, (d, e)], f)`` - any nested identifier list. Would anything

Re: [Python-Dev] Patch or feature? Tix.Grid working for 2.5

2006-04-07 Thread Christos Georgiou
""Martin v. Löwis"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Christos Georgiou wrote: >> I would like to know if supplying a patch for it sometime in the next >> couple >> of weeks would be considered a patch (since the widge

Re: [Python-Dev] Patch or feature? Tix.Grid working for 2.5

2006-03-19 Thread Christos Georgiou
"Neal Norwitz" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] On 3/18/06, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > Christos Georgiou wrote: > > I would like to know if supplying a patch for it sometime in the next > > couple

[Python-Dev] Patch or feature? Tix.Grid working for 2.5

2006-03-18 Thread Christos Georgiou
I made a plea for help months ago (just checked, and it was Jan 2004! time flies like a fruit or something, ref http://mail.python.org/pipermail/python-list/2004-January/202704.html ) about directions to fix the borken Tix.Grid widget; I had no replies. I finally found some spare time (too litt

Re: [Python-Dev] bytes thoughts

2006-03-17 Thread Christos Georgiou
"Josiah Carlson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] "Christos Georgiou" <[EMAIL PROTECTED]> wrote: [Christos] > Well, what's the result of > > bytes([1,0,0])^ bytes([1,0]) > > ? Is it bytes([0,0,0]) (à la little-endia

Re: [Python-Dev] Switch to MS VC++ 2005 ?!

2006-03-16 Thread Christos Georgiou
"M.-A. Lemburg" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Microsoft has recently released their express version of the Visual C++. > Given that this version is free for everyone, wouldn't it make sense > to ship Python 2.5 compiled with this version ?! > >http://msdn.micro

Re: [Python-Dev] bytes thoughts

2006-03-16 Thread Christos Georgiou
"Greg Ewing" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Baptiste Carvello wrote: > [Baptiste] >> while manipulating binary data will happen mostly with bytes objects, >> some >> operations are better done with ints, like the bit manipulations with the >> &|~^ >> operators. [Gre

Re: [Python-Dev] fixing log messages

2006-03-08 Thread Christos Georgiou
[Fredrik Lundh] >> (but alright, as long as you don't call me "Fred"...) [Steve Holden] > Did I *ever* do that? That would have been an embarrassing slip ;-) I know I'm extremely late, but there should be a POTF (Pun Of The Fortnight) from now on. A member of the Mund-SIG __

Re: [Python-Dev] buildbot, and test failures

2006-02-23 Thread Christos Georgiou
""Martin v. Löwis"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Anthony Baxter wrote: >> I >> have an Ubuntu x86 box here that can become one (I think the only >> linux, currently, is Gentoo...) > > How different are the Linuxes, though? How many of them do we need? Actually, w

[Python-Dev] Building Python with Visual C++ 2005 Express Edition

2005-11-10 Thread Christos Georgiou
I didn't see any mention of this product in the Python-Dev list, so I thought to let you know. http://msdn.microsoft.com/vstudio/express/visualc/download/ There is also a link for a CD image (.img) file to download. I am downloading now, so I don't know yet whether Python compiles with it with

Re: [Python-Dev] bool(iter([])) changed between 2.3 and 2.4

2005-10-20 Thread Christos Georgiou
"Guido van Rossum" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >> [Fred] >> > think iterators shouldn't have length at all: >> > they're *not* containers and shouldn't act that way. >> >> Some iterators can usefully report their length with the invariant: >>len(it) == len(list

Re: [Python-Dev] list splicing

2005-10-20 Thread Christos Georgiou
"Greg Ewing" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Karl Chen wrote: >> Hi, has anybody considered adding something like this: >> a = [1, 2] >> [ 'x', *a, 'y'] >> >> as syntactic sugar for >> a = [1, 2] >> [ 'x' ] + a + [ 'y' ]. > > You can write that as >

[Python-Dev] PEP 3000 and exec

2005-10-10 Thread Christos Georgiou
This might be minor-- but I didn't see anyone mentioning it so far. If `exec` functionality is to be provided, then I think it still should be a keyword for the parser to know; currently bytecode generation is affected if `exec` is present. Even if that changes for Python 3k (we don't know yet

Re: [Python-Dev] itertools.chain should take an iterable ?

2005-09-02 Thread Christos Georgiou
"Paolino" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > What if I want to chain an infinite list of iterables? > Shouldn't itertools.chain be built to handle that? Raymond already suggested a four-line function that does exactly that. Create your own personal-library modules co

Re: [Python-Dev] Docs/Pointer to Tools/scripts?

2005-08-24 Thread Christos Georgiou
"Reinhold Birkenfeld" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > after adding Oleg Broytmann's findnocoding.py to Tools/scripts, I wonder > whether the Tools directory is documented at all. There are many useful > scripts there which many people will not find if they are

Re: [Python-Dev] plans for 2.4.2 and 2.5a1

2005-08-12 Thread Christos Georgiou
> At the moment I'm trying to create a minimal file that when imported fails > with 2.4.1 . I'll update the case as soon as I have one, but I wanted to > draw some attention in python-dev in case it rings a bell. Please ignore my previous message --through gmane I saw only mwh's message, and aft

Re: [Python-Dev] plans for 2.4.2 and 2.5a1

2005-08-12 Thread Christos Georgiou
"Michael Hudson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Anthony Baxter <[EMAIL PROTECTED]> writes: > >> So I'm currently planning for a 2.4.2 sometime around mid September. I >> figure >> we cut a release candidate either on the 7th or 14th, and a final a week >> later. > >

Re: [Python-Dev] Terminology for PEP 343

2005-08-12 Thread Christos Georgiou
"Michael Hudson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Guard? Monitor? Don't really like either of these. > I know I am late, but since guard means something else, 'sentinel' (in the line of __enter__ and __exit__ interpretation) could be an alternative. Tongue in ch

Re: [Python-Dev] List copy and clear (was Re: Inconsistent API forsets.Set and build-in set)

2005-07-07 Thread Christos Georgiou
"Tim Peters" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Or my personal favorite, > >while mylist: >del mylist[::2] > > Then the original index positions with the most consecutive trailing 1 > bits survive the longest, which is important to avoid ZODB cache bugs > .

Re: [Python-Dev] PEP 340 keyword: after

2005-05-16 Thread Christos Georgiou
"Chris Ryland" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I hate to add to what could be an endless discussion, but... ;-) > > In this case, "while" is the better time-related prefix, whether > keyword (hopeless, due to ages-old boolean-controlled loop association) > or functi

[Python-Dev] Re: Python 2.4 | 7.3 The for statement

2005-03-22 Thread Christos Georgiou
It is easier if we see it beforehand: - leave = False alist = [1,2,3,3,4,5,6,7,8,9] for item in alist and not leave: if item is 1: leave = True Apart from other objections, this is valid Python now, and failing with 'TypeError: iteration over non-sequence'. sel