Re: Some syntactic sugar proposals

2010-11-14 Thread Dmitry Groshev
On Nov 15, 10:30 am, alex23 wrote: > On Nov 15, 4:39 pm, Dmitry Groshev wrote: > > > First of all: how many times do you write something like > >     t = foo() > >     t = t if pred(t) else default_value > > ? Of course we can write it as > >     t = foo() if pred(foo()) else default_value > > bu

Re: Some syntactic sugar proposals

2010-11-14 Thread alex23
On Nov 15, 5:30 pm, alex23 wrote: >    t = foo(x) if else default This should read 'test' instead of 'text', sorry. -- http://mail.python.org/mailman/listinfo/python-list

Re: Some syntactic sugar proposals

2010-11-14 Thread alex23
On Nov 15, 4:39 pm, Dmitry Groshev wrote: > First of all: how many times do you write something like >     t = foo() >     t = t if pred(t) else default_value > ? Of course we can write it as >     t = foo() if pred(foo()) else default_value > but here we have 2 foo() calls instead of one. Why can

Re: Some syntactic sugar proposals

2010-11-14 Thread Dmitry Groshev
On Nov 15, 9:48 am, Chris Rebert wrote: > On Sun, Nov 14, 2010 at 10:39 PM, Dmitry Groshev > wrote: > > Here are some proposals. They are quite useful at my opinion and I'm > > interested for suggestions. It's all about some common patterns. > > > Second, I saw a lot of questions about using do

Re: Some syntactic sugar proposals

2010-11-14 Thread Chris Rebert
On Sun, Nov 14, 2010 at 10:39 PM, Dmitry Groshev wrote: > Here are some proposals. They are quite useful at my opinion and I'm > interested for suggestions. It's all about some common patterns. > Second, I saw a lot of questions about using dot notation for a > "object-like" dictionaries and a lo

Re: Some syntactic sugar proposals

2010-11-14 Thread Dmitry Groshev
On Nov 15, 9:39 am, Dmitry Groshev wrote: > Here are some proposals. They are quite useful at my opinion and I'm > interested for suggestions. It's all about some common patterns. > First of all: how many times do you write something like >     t = foo() >     t = t if pred(t) else default_value >

Some syntactic sugar proposals

2010-11-14 Thread Dmitry Groshev
Here are some proposals. They are quite useful at my opinion and I'm interested for suggestions. It's all about some common patterns. First of all: how many times do you write something like t = foo() t = t if pred(t) else default_value ? Of course we can write it as t = foo() if pred(f

Re: Komodo 6, why "Workspace Restore" after every restart?

2010-11-14 Thread alex23
John Doe wrote: > UseNet would be better off if Google Groups didn't exist, IMO. I'm sorry, are you cranky because you didn't get the answer you wanted when you posted in a less relevant forum? Why do you think comp.lang.python is more appropriate than the Komodo forums? What does Google Groups

Re: Komodo 6, why "Workspace Restore" after every restart?

2010-11-14 Thread John Doe
alex23 wrote: > John Doe wrote: >> Does Komodo have to be shut down individually every time I want >> to restart Windows XP? Is there some way to eliminate the >> persistent Workspace Restore error after every restart? I have >> tried setting it to restore files without asking, but that do

Re: Noob question on 2 vs 3 Python releases

2010-11-14 Thread Dan Stromberg
On Sun, Nov 14, 2010 at 1:03 AM, Franck Ditter wrote: > Pardon my noobness (?) but why is there a 2.x and 3.x development > teams working concurrently in Python ? I hardly saw that in other > languages. Which one should I choose to start with, to cope with > the future ? Isn't 3.x supposed to ext

Re: namespace issue, Python vs numpy min/max problem

2010-11-14 Thread Robert Kern
On 2010-11-14 17:37 , Gregory Ewing wrote: Steven D'Aprano wrote: It only becomes your problem if you have advised people that the right way to use your module is with import *. And if you're advising people to do that, it would be an extremely good idea to give your functions different names

Re: Komodo 6, why "Workspace Restore" after every restart?

2010-11-14 Thread alex23
On Nov 15, 10:00 am, John Doe wrote: > Does Komodo have to be shut down individually every time I want to > restart Windows XP? Is there some way to eliminate the persistent > Workspace Restore error after every restart? I have tried setting it > to restore files without asking, but that does not

Re: What was your strategy?

2010-11-14 Thread rustom
Jorge Biquez writes: > I was wondering if you can share what was the strategy you followed to > master Python (Yes I know I have to work hard study and practice a lot). One of the basic mistakes that folks (kids?) studying a language do is to study *only* the language. I guess the mistake happe

Re: What was your strategy?

2010-11-14 Thread Paul Rubin
Jorge Biquez writes: > I was wondering if you can share what was the strategy you followed to > master Python (Yes I know I have to work hard study and practice a lot). 1. Read the tutorial http://docs.python.org/tutorial/ 2. Start writing code, and encounter various issues as usually happens.

QT window closes immediately

2010-11-14 Thread Martin Caum
I am attempting to open a window on mouse activity which works, but the window fails to stay open. I set it to terminate when the escape key is pressed even when the program is not currently selected. This works fine. Originally I had it create the window only with a right click, but when I noticed

Cash your skill in Management careers.

2010-11-14 Thread gaurav
Careers in Management work. Careers for your future. http://managementjobs.webs.com/hrm.htm http://topcareer.webs.com/businessmanagement.htm Fresh coming up complete government career, computer jobs. http://rojgars1.webs.com/gov.htm http://printmediajobs.webs.com/fl.htm -- http://mail.python.org

Re: What was your strategy?

2010-11-14 Thread MRAB
On 14/11/2010 23:53, Ben Finney wrote: Jorge Biquez writes: I was wondering if you can share what was the strategy you followed to master Python (Yes I know I have to work hard study and practice a lot). I mean did you use special books, special sites, a plan to learn each subject in a special

Re: Getting references to objects without incrementing reference counters

2010-11-14 Thread Diez B. Roggisch
Artur Siekielski writes: > Hi. > I'm using CPython 2.7 and Linux. In order to make parallel > computations on a large list of objects I want to use multiple > processes (by using multiprocessing module). In the first step I fill > the list with objects and then I fork() my worker processes that d

Komodo 6, why "Workspace Restore" after every restart?

2010-11-14 Thread John Doe
Does Komodo have to be shut down individually every time I want to restart Windows XP? Is there some way to eliminate the persistent Workspace Restore error after every restart? I have tried setting it to restore files without asking, but that does not seem to work. Thanks. -- http://mail.pyth

Re: What was your strategy?

2010-11-14 Thread Ben Finney
Jorge Biquez writes: > I was wondering if you can share what was the strategy you followed to > master Python (Yes I know I have to work hard study and practice a > lot). I mean did you use special books, special sites, a plan to learn > each subject in a special way. I find that my strategy wit

Re: What was your strategy?

2010-11-14 Thread Stef Mientki
On 14-11-2010 23:32, Jorge Biquez wrote: > Hello all. > Quick question. I know some of you are with Python since started, some other > maybe later. > > I was wondering if you can share what was the strategy you followed to master > Python (Yes I know I > have to work hard study and practice a lot

Re: Getting references to objects without incrementing reference counters

2010-11-14 Thread Dan Stromberg
On Sun, Nov 14, 2010 at 11:08 AM, Artur Siekielski < artur.siekiel...@gmail.com> wrote: > Hi. > I'm using CPython 2.7 and Linux. In order to make parallel > computations on a large list of objects I want to use multiple > processes (by using multiprocessing module). In the first step I fill > the

Re: namespace issue, Python vs numpy min/max problem

2010-11-14 Thread Gregory Ewing
Steven D'Aprano wrote: It only becomes your problem if you have advised people that the right way to use your module is with import *. And if you're advising people to do that, it would be an extremely good idea to give your functions different names so that they don't conflict with the builti

Fixing PDF EOF Errors with PyPDF

2010-11-14 Thread Brett Bowman
Hey all, I'm trying to read a library of my company's PDFs, but about a third of them can't be opened. PyPDF (v1.12) spits out this error: pyPdf.utils.PdfReadError: EOF marker not found I searched for the answer via google, but all I found was this link: http://lindaocta.com/?tag=pypdf. She sug

Re: What was your strategy?

2010-11-14 Thread James Harris
On Nov 14, 10:32 pm, Jorge Biquez wrote: > Hello all. > Quick question. I know some of you are with Python since started, > some other maybe later. > > I was wondering if you can share what was the strategy you followed > to master Python (Yes I know I have to work hard study and practice a > lot)

Re: Objects versus dictionaries

2010-11-14 Thread Dan Stromberg
On Sun, Nov 14, 2010 at 11:20 AM, Chris Rebert wrote: > On Sun, Nov 14, 2010 at 11:00 AM, Micah Carrick > wrote: > > I'm writing a little API that other people will use. There are up to 3 > > "objects" that get passed around. One of them has some validation > methods, > > the other two simply st

Re: What was your strategy?

2010-11-14 Thread Seebs
On 2010-11-14, Jorge Biquez wrote: > I was wondering if you can share what was the strategy you followed > to master Python (Yes I know I have to work hard study and practice a > lot). I mean did you use special books, special sites, a plan to > learn each subject in a special way. I would like

Re: how to identify currently running threads QTHreads

2010-11-14 Thread News123
On 11/14/2010 05:32 PM, Aahz wrote: > In article <4cdfe050$0$10182$426a3...@news.free.fr>, > News123 wrote: >> > >> >Is there a simple way in Python to identify all active Threads / >> >QThreads when trying, such that I can locate the thread, itls related >> >python code and fix it? > threading.e

What was your strategy?

2010-11-14 Thread Jorge Biquez
Hello all. Quick question. I know some of you are with Python since started, some other maybe later. I was wondering if you can share what was the strategy you followed to master Python (Yes I know I have to work hard study and practice a lot). I mean did you use special books, special sites,

Re: Looking For Tutorial Comparison Of sh - perl - python

2010-11-14 Thread Dan Stromberg
On Sun, Nov 14, 2010 at 5:00 AM, Martin Gregorie wrote: > On Sat, 13 Nov 2010 22:05:57 -0600, Tim Daneliuk wrote: > > > I am putting together a comparison & intro to each of sh, perl, python > > with a view towards addressing: > > > Add awk / gawk to that list. IME its often the easiest and most

Re: strange behavor....

2010-11-14 Thread Arnaud Delobelle
Steve Holden writes: > On 11/14/2010 8:29 AM, Emile van Sebille wrote: > [...] >> We all know that _everything_ is a disguised method call and we call the >> disguised method call that resembles a statement where the LHS is >> separated from the RHS by a single equals sign assignment. > > I think

Re: strange behavor....

2010-11-14 Thread Steven D'Aprano
On Sun, 14 Nov 2010 12:23:03 -0800, Steve Holden wrote: > What method of a does the statement > > a = something > > call? I ask in genuine ignorance, and in the knowledge that you may > indeed be able to point me to such a method. I know the question wasn't directed at me, but here's my 2 c

Re: strange behavor....

2010-11-14 Thread Emile van Sebille
On 11/14/2010 12:23 PM Steve Holden said... On 11/14/2010 8:29 AM, Emile van Sebille wrote: [...] We all know that _everything_ is a disguised method call and we call the disguised method call that resembles a statement where the LHS is separated from the RHS by a single equals sign assignment.

Re: Getting references to objects without incrementing reference counters

2010-11-14 Thread Jean-Paul Calderone
On Nov 14, 11:08 am, Artur Siekielski wrote: > Hi. > I'm using CPython 2.7 and Linux. In order to make parallel > computations on a large list of objects I want to use multiple > processes (by using multiprocessing module). In the first step I fill > the list with objects and then I fork() my work

Re: strange behavor....

2010-11-14 Thread Roel Schroeven
Op 2010-11-14 21:23, Steve Holden schreef: > What method of a does the statement > > a = something > > call? I ask in genuine ignorance, and in the knowledge that you may > indeed be able to point me to such a method. It wouldn't call a method of a. I'm not an expert in these matters, but I

Re: strange behavor....

2010-11-14 Thread Steve Holden
On 11/14/2010 8:29 AM, Emile van Sebille wrote: [...] > We all know that _everything_ is a disguised method call and we call the > disguised method call that resembles a statement where the LHS is > separated from the RHS by a single equals sign assignment. I think your elided attempt to reconcile

Re: subprocess pipe

2010-11-14 Thread Camille Harang
Tim Harig a écrit : > On 2010-11-14, Camille Harang wrote: >> # pg_dump prompts for password so I inject it in stdin. >> pgsql.stdin.write('MY_PASSWORD' + '\n') > > For security reasons, some programs use direct access to the TTY system > for password entry rather then reading from stdin. Most o

Re: subprocess pipe

2010-11-14 Thread Camille Harang
Tim Harig a écrit : > On 2010-11-14, Camille Harang wrote: >> # pg_dump prompts for password so I inject it in stdin. >> pgsql.stdin.write('MY_PASSWORD' + '\n') > > For security reasons, some programs use direct access to the TTY system > for password entry rather then reading from stdin. Most o

Re: raise Exception or raise Exception()

2010-11-14 Thread Roy Smith
In article , Chris Rebert wrote: > On Sun, Nov 14, 2010 at 8:58 AM, ernest wrote: > > I have seen both forms and I'm not sure if they're > > both correct, or one is right and the other wrong. > > They're both acceptable (although obviously you should always raise a > more specific error than E

Re: subprocess pipe

2010-11-14 Thread Tim Harig
On 2010-11-14, Tim Harig wrote: > On 2010-11-14, Camille Harang wrote: >> # pg_dump prompts for password so I inject it in stdin. >> pgsql.stdin.write('MY_PASSWORD' + '\n') > > For security reasons, some programs use direct access to the TTY system > for password entry rather then reading from st

Re: subprocess pipe

2010-11-14 Thread Tim Harig
On 2010-11-14, Camille Harang wrote: > # pg_dump prompts for password so I inject it in stdin. > pgsql.stdin.write('MY_PASSWORD' + '\n') For security reasons, some programs use direct access to the TTY system for password entry rather then reading from stdin. Most of these programs provide anoth

Re: [Beginner question] Raster to ASCII

2010-11-14 Thread Tim Chase
On 11/14/2010 01:07 PM, Becky Kern wrote: import arcgisscripting gp = arcgisscripting.create(9.3) InRaster = "C:/data/raster1" OutAsciiFile = "C:/data/raster2ascii.asc" gp.RasterToASCII_conversion(InRaster, OutAsciiFile) The error message: arcgisscripting.ExecuteError: Failed to execute. Parame

Re: [Beginner question] Raster to ASCII

2010-11-14 Thread MRAB
On 14/11/2010 19:07, Becky Kern wrote: Hi users, I'm using Python 2.5 (in concert with ArcGIS 9.3) to convert a raster to an ASCII file. I used the code (listed below) several weeks ago to successfully do the conversion, but when I tried to replicate it a few days ago, I got an error message. imp

Re: Objects versus dictionaries

2010-11-14 Thread Hidura
Use *kargs to pass all the informatio that you need if u want in the future extended this will be usefull 2010/11/14, Micah Carrick : > I'm writing a little API that other people will use. There are up to 3 > "objects" that get passed around. One of them has some validation methods, > the other tw

Re: subprocess pipe

2010-11-14 Thread Camille Harang
Hi Chris, thanks for your reply. Chris Rebert a écrit : > Quoting http://docs.python.org/library/subprocess.html , emphasis mine: > """ > On Unix, with shell=True: [...] If args is a sequence, ***the first > item*** specifies the command string, and any additional items will be > treated as additi

Re: Objects versus dictionaries

2010-11-14 Thread Chris Rebert
On Sun, Nov 14, 2010 at 11:00 AM, Micah Carrick wrote: > I'm writing a little API that other people will use. There are up to 3 > "objects" that get passed around. One of them has some validation methods, > the other two simply store data and probably won't have any validation or > other methods.

Re: subprocess pipe

2010-11-14 Thread Chris Rebert
On Sun, Nov 14, 2010 at 10:50 AM, Camille Harang wrote: > Hi all, > > I'm having a problem with subprocess.Popen. It seems that its unable to > capture the pg_dump's standard inputs & outputs in a non-shell mode: > > from subprocess import Popen, PIPE > > # fire pg_dump in order to read data from

Getting references to objects without incrementing reference counters

2010-11-14 Thread Artur Siekielski
Hi. I'm using CPython 2.7 and Linux. In order to make parallel computations on a large list of objects I want to use multiple processes (by using multiprocessing module). In the first step I fill the list with objects and then I fork() my worker processes that do the job. This should work optimall

[Beginner question] Raster to ASCII

2010-11-14 Thread Becky Kern
Hi users, I'm using Python 2.5 (in concert with ArcGIS 9.3) to convert a raster to an ASCII file. I used the code (listed below) several weeks ago to successfully do the conversion, but when I tried to replicate it a few days ago, I got an error message. import arcgisscripting gp = arcgisscriptin

Objects versus dictionaries

2010-11-14 Thread Micah Carrick
I'm writing a little API that other people will use. There are up to 3 "objects" that get passed around. One of them has some validation methods, the other two simply store data and probably won't have any validation or other methods. I only made them objects so that they are syntactically (is that

subprocess pipe

2010-11-14 Thread Camille Harang
Hi all, I'm having a problem with subprocess.Popen. It seems that its unable to capture the pg_dump's standard inputs & outputs in a non-shell mode: from subprocess import Popen, PIPE # fire pg_dump in order to read data from the file object pgsql.stdout pgsql = Popen(['/usr/bin/pg_dump',

Re: another newbie question

2010-11-14 Thread MRAB
On 14/11/2010 16:40, Roy Smith wrote: In article, David wrote: On 15/11/2010, otenki wrote: When I enter 'from _future_ import division' at the command line, I get the ImportError, no module named _future_. The module name is "__future__" Notice that there are 2 underscore characters be

Re: Help: Guide needed in trying to delete/flush the content of a fifo file.

2010-11-14 Thread MRAB
On 14/11/2010 14:48, ton ph wrote: Hi python geeks, I have problem which i have been trying to find out for the past some days, i have a device which feeds info to my fifo continuosly, and a thread of mine reads the fifo continuosly. Now when i change a parameter in the device, it sends me di

Re: raise Exception or raise Exception()

2010-11-14 Thread Chris Rebert
On Sun, Nov 14, 2010 at 8:58 AM, ernest wrote: > I have seen both forms and I'm not sure if they're > both correct, or one is right and the other wrong. They're both acceptable (although obviously you should always raise a more specific error than Exception). `raise SomeException` is in fact equi

raise Exception or raise Exception()

2010-11-14 Thread ernest
I have seen both forms and I'm not sure if they're both correct, or one is right and the other wrong. In practical terms, the two of them seem to have the same effect. Cheers, Ernest -- http://mail.python.org/mailman/listinfo/python-list

Re: Why datetime module is so complicated?

2010-11-14 Thread Vlastimil Brom
2010/11/14 Zeynel : > It's about a week now I've been trying to convert a datetime object to > seconds since epoch; the object is set to current time by class Rep() > in Google App Engine: > > class Rep(db.Model): >    ... >    mCOUNT = db.IntegerProperty() >    mDATE0 = db.DateTimeProperty(auto_no

Re: Why datetime module is so complicated?

2010-11-14 Thread Diez B. Roggisch
Zeynel writes: > It's about a week now I've been trying to convert a datetime object to > seconds since epoch; the object is set to current time by class Rep() > in Google App Engine: > > class Rep(db.Model): > ... > mCOUNT = db.IntegerProperty() > mDATE0 = db.DateTimeProperty(auto_no

Re: another newbie question

2010-11-14 Thread Roy Smith
In article , David wrote: > On 15/11/2010, otenki wrote: > > When I enter 'from _future_ import division' at the command > > line, I get the ImportError, no module named _future_. > > The module name is "__future__" > > Notice that there are 2 underscore characters before the word "future" >

Re: how to identify currently running threads QTHreads

2010-11-14 Thread Aahz
In article <4cdfe050$0$10182$426a3...@news.free.fr>, News123 wrote: > >Is there a simple way in Python to identify all active Threads / >QThreads when trying, such that I can locate the thread, itls related >python code and fix it? threading.enumerate() or sys._current_frames() -- Aahz (a...@py

Re: strange behavor....

2010-11-14 Thread Emile van Sebille
On 11/13/2010 3:28 PM Mark Wooding said... Steven D'Aprano writes: On Sat, 13 Nov 2010 20:01:42 +, Mark Wooding wrote: Some object types are primitive, provided by the runtime system; there are no `internal' variables to be assigned in these cases. You seem to be making up your own term

Why datetime module is so complicated?

2010-11-14 Thread Zeynel
It's about a week now I've been trying to convert a datetime object to seconds since epoch; the object is set to current time by class Rep() in Google App Engine: class Rep(db.Model): ... mCOUNT = db.IntegerProperty() mDATE0 = db.DateTimeProperty(auto_now_add=True) mWEIGHT = db.Flo

Re: another newbie question

2010-11-14 Thread otenki
On Nov 14, 10:09 am, David wrote: > On 15/11/2010, otenki wrote: > > > When I enter 'from _future_ import division' at the command > > line, I get the ImportError, no module named _future_. > > The module name is "__future__" > > Notice that there are 2 underscore characters before the word "futu

Re: another newbie question

2010-11-14 Thread David
On 15/11/2010, otenki wrote: > When I enter 'from _future_ import division' at the command > line, I get the ImportError, no module named _future_. The module name is "__future__" Notice that there are 2 underscore characters before the word "future" and 2 after it. This is a common convention i

Re: another newbie question

2010-11-14 Thread Peter Otten
otenki wrote: > Hello Pythonistas! > I'm trying to get floating point division to work; I'm using Python > 2.6.5. When I enter 'from _future_ import division' at the command > line, I get the ImportError, no module named _future_. How can I > rectify this? You need two leading/trailing underscore

Re: another newbie question

2010-11-14 Thread Tim Golden
On 14/11/2010 3:00 PM, Nitin Pawar wrote: I'm trying to get floating point division to work; I'm using Python 2.6.5. When I enter 'from _future_ import division' at the command line, I get the ImportError, no module named _future_. How can I rectify this? That should be two underscores, not one

Re: another newbie question

2010-11-14 Thread Nitin Pawar
>From the error, you are importing wrong module which actually does not exists try importing something from maths On Sun, Nov 14, 2010 at 8:21 PM, otenki wrote: > Hello Pythonistas! > I'm trying to get floating point division to work; I'm using Python > 2.6.5. When I enter 'from _future_ import

another newbie question

2010-11-14 Thread otenki
Hello Pythonistas! I'm trying to get floating point division to work; I'm using Python 2.6.5. When I enter 'from _future_ import division' at the command line, I get the ImportError, no module named _future_. How can I rectify this? Sorry for this basic question, but I don't know where else to turn

Help: Guide needed in trying to delete/flush the content of a fifo file.

2010-11-14 Thread ton ph
Hi python geeks, I have problem which i have been trying to find out for the past some days, i have a device which feeds info to my fifo continuosly, and a thread of mine reads the fifo continuosly. Now when i change a parameter in the device, it sends me different values. Now my problem is that

how to identify currently running threads QTHreads

2010-11-14 Thread News123
Hi I'm working with several persons on a PyQT python application. This application is using threads / QThreads in several places. When trying to quit the application it doesn't stop. I assume one thread / QThread did not stop. (wasn't declared as daemon thread) Is there a simple way in Pyth

Re: Looking For Tutorial Comparison Of sh - perl - python

2010-11-14 Thread Martin Gregorie
On Sat, 13 Nov 2010 22:05:57 -0600, Tim Daneliuk wrote: > I am putting together a comparison & intro to each of sh, perl, python > with a view towards addressing: > Add awk / gawk to that list. IME its often the easiest and most concise way to process a text file, e.g. a log file, while applying

NAUGHTY GIRL, WANNA NAUGHTY WITH ME, COME ON...really free...

2010-11-14 Thread naughty girl
NAUGHTY GIRL, WANNA NAUGHTY WITH ME, COME ON...really free... FREE GOLD MEMBER FOR FEMALE PROFILE, registar with female gender for free access http://goo.gl/1bour http://www.benaughty.com/aff.php?a_aid=27340f40&a_bid=17a6530c -- http://mail.python.org/mailman/listinfo/python-list

Re: Copy Protected PDFs and PIL

2010-11-14 Thread Alexander Gattin
Hello, On Fri, Nov 12, 2010 at 12:00:55PM -0800, Brett Bowman wrote: > MRAB - > I've tried worker threads, and it kills the > thread only and not the program as a whole. I > could use that as a work-around, but I would > prefer something more direct, in case other > problems arise. Looks like th

Re: Noob question on 2 vs 3 Python releases

2010-11-14 Thread Chris Rebert
On Sun, Nov 14, 2010 at 1:03 AM, Franck Ditter wrote: > Pardon my noobness (?) but why is there a 2.x and 3.x development > teams working concurrently in Python ? I hardly saw that in other > languages. You haven't heard of the infamous Perl 6? > Which one should I choose to start with, to cope

Noob question on 2 vs 3 Python releases

2010-11-14 Thread Franck Ditter
Pardon my noobness (?) but why is there a 2.x and 3.x development teams working concurrently in Python ? I hardly saw that in other languages. Which one should I choose to start with, to cope with the future ? Isn't 3.x supposed to extend 2.y ? This situation is very strange... Thanks for your expl

Re: strange behavor....

2010-11-14 Thread Arnaud Delobelle
Dennis Lee Bieber writes: > On Sat, 13 Nov 2010 23:14:22 +, Arnaud Delobelle > declaimed the following in gmane.comp.python.general: > > >> Two occurences of the name "a" belong to the same namespace >> > Pardon? By definition, any given namespace can have only one > occurence of a