On Tue, Apr 2, 2013 at 1:44 AM, Nick Coghlan ncogh...@gmail.com wrote:
int() and operator.index() are both type coercion calls to produce true
Python integers - they will never return a subclass, and this is both
deliberate and consistent with all the other builtin types that accept an
On 02/04/13 01:44, Nick Coghlan wrote:
On Mon, Apr 1, 2013 at 12:28 AM, Mark Dickinson dicki...@gmail.com
mailto:dicki...@gmail.com wrote:
As written, int_check would do the wrong thing for bools, too: I
definitely want int(True) to be 1, not True.
For (2) and (4), it's not so
On Tue, Apr 2, 2013 at 9:33 AM, Mark Shannon m...@hotpy.org wrote:
Hence my original question: what *should* the semantics be?
I like Nick's answer to that: int *should* always return something of exact
type int. Otherwise you're always left wondering whether you have to do
int(int(x)), or
On Tue, Apr 2, 2013 at 10:53 AM, Mark Dickinson dicki...@gmail.com wrote:
On Tue, Apr 2, 2013 at 9:33 AM, Mark Shannon m...@hotpy.org wrote:
Hence my original question: what *should* the semantics be?
I like Nick's answer to that: int *should* always return something of exact
type int.
Le Tue, 2 Apr 2013 09:53:41 +0100,
Mark Dickinson dicki...@gmail.com a écrit :
On Tue, Apr 2, 2013 at 9:33 AM, Mark Shannon m...@hotpy.org wrote:
Hence my original question: what *should* the semantics be?
I like Nick's answer to that: int *should* always return something of
exact
On Tue, Apr 2, 2013 at 9:58 AM, Maciej Fijalkowski fij...@gmail.com wrote:
My 2 cents here is that which one is called seems to be truly random.
Try looking into what builtin functions call (for example list.pop
calls __int__, who knew)
That sounds like a clear bug to me. It should
On Tue, Apr 2, 2013 at 10:02 AM, Mark Dickinson dicki...@gmail.com wrote:
On Tue, Apr 2, 2013 at 9:58 AM, Maciej Fijalkowski fij...@gmail.comwrote:
My 2 cents here is that which one is called seems to be truly random.
Try looking into what builtin functions call (for example list.pop
calls
Right, as I explained in my reply to Barry, I was imprecise.
But the “from X import Y” is the only way to invoke relative imports, where X
can have leading dots.
This syntax places the constraint on X that Y is actually an attribute of X at
this time, where
“import X.Y” does not.
So, even
It certainly affects the quality, yes.
I also understand why it happens:
When importing X.Y, Y isn't actually put into X's dict until it is fully
initialized. It is, however put temporarily in sys.modules[X.Y]
hence, import X.Y on a partially initialized submodule Y will work, whereas
from X
-Original Message-
From: Python-Dev [mailto:python-dev-
bounces+kristjan=ccpgames@python.org] On Behalf Of Barry Warsaw
Sent: 1. apríl 2013 22:16
To: python-dev@python.org
Subject: Re: [Python-Dev] relative import circular problem
On Apr 01, 2013, at 08:20 PM, Kristján Valur
Le Tue, 2 Apr 2013 09:28:17 +,
Kristján Valur Jónsson krist...@ccpgames.com a écrit :
Right, as I explained in my reply to Barry, I was imprecise.
But the “from X import Y” is the only way to invoke relative imports,
where X can have leading dots. This syntax places the constraint on X
python -m pyzaa pack [-o path/name] [-m module.submodule:callable] [-c] [-w]
[-p interpreter] directory:
ZIP the contents of directory as directory.pyz or [-w] directory.pyzw.
Adds the executable flag to the archive.
...
-p interpreter include #!interpreter as the first line of
On Tue, Apr 2, 2013 at 1:20 PM, Steve Dower steve.do...@microsoft.comwrote:
python -m pyzaa pack [-o path/name] [-m module.submodule:callable] [-c]
[-w] [-p interpreter] directory:
ZIP the contents of directory as directory.pyz or [-w]
directory.pyzw. Adds the executable flag to the
On 4/2/2013 5:15 PM, Eric V. Smith wrote:
On 10/3/2012 8:59 PM, jesus.cea wrote:
-Solaris and derived platforms have a new class :class:`select.devpoll`
-for high performance asyncronous sockets via :file:`/dev/poll`.
+Solaris and derivatives platforms have a new class
On 10/3/2012 8:59 PM, jesus.cea wrote:
-Solaris and derived platforms have a new class :class:`select.devpoll`
-for high performance asyncronous sockets via :file:`/dev/poll`.
+Solaris and derivatives platforms have a new class :class:`select.devpoll`
+for high performance asynchronous
Kristján Valur Jónsson wrote:
However, relative imports can _only_ be performed using the from X import Y
syntax
This seems like a legitimate complaint on its own, regardless
of the circular import issue. The principle of least surprise
suggests that relative imports should be possible using
Hi,
It will be my first post here.
could gevent be apart the standard Python library in future ?___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
Brett Cannon, 02.04.2013 19:28:
On Tue, Apr 2, 2013 at 1:20 PM, Steve Dower steve.do...@microsoft.comwrote:
python -m pyzaa pack [-o path/name] [-m module.submodule:callable] [-c]
[-w] [-p interpreter] directory:
ZIP the contents of directory as directory.pyz or [-w]
directory.pyzw.
18 matches
Mail list logo