Zaur Shibzukhov added the comment:
Instead of using cache, maybe better to use mutable default argument?
For example:
def make_row_factory(cls_factory, **kw):
def row_factory(cursor, row, cls=[None]):
rf = cls[0]
if rf is None:
fields = [col[0] for col
All greetings!
How to make portable distribution of python 2.6?
--
http://mail.python.org/mailman/listinfo/python-list
On 13 авг, 21:28, Thomas Jollans tho...@jollans.com wrote:
On 2010-08-13 19:00, zaur wrote: All greetings!
How to make portable distribution of python 2.6?
I don't know, but what you're looking for probably already exists.
Do you mean portable as in portable, i.e. take this and build
On 1 сен, 03:31, Steven D'Aprano st...@remove-this-
cybersource.com.au wrote:
On Mon, 31 Aug 2009 10:21:22 -0700, zaur wrote:
As a result of this debate is not whether we should conclude that there
should be two types of integers in python: 1) immutable numbers, which
behave as constant
On 29 авг, 16:45, zaur szp...@gmail.com wrote:
Python 2.6.2 (r262:71600, Apr 16 2009, 09:17:39)
[GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin
Type copyright, credits or license() for more information. a=1
x=[a]
id(a)==id(x[0])
True
a+=1
a
2
x[0]
1
I thought
On 30 авг, 03:22, Gabriel Genellina gagsl-...@yahoo.com.ar wrote:
En Sat, 29 Aug 2009 04:34:48 -0300, zaur szp...@gmail.com escribió:
On 29 авг, 08:37, Gabriel Genellina gagsl-...@yahoo.com.ar wrote:
En Fri, 28 Aug 2009 15:25:55 -0300, zaur szp...@gmail.com escribió:
On 28 авг, 16:07
On 29 авг, 23:03, Steven D'Aprano st...@remove-this-
cybersource.com.au wrote:
On Sat, 29 Aug 2009 11:11:43 -0700, zaur wrote:
I thought that int as object will stay the same object after += but with
another integer value. My intuition said me that int object which
represent integer value
On 30 авг, 15:49, Carl Banks pavlovevide...@gmail.com wrote:
I think they (Derek and zaur) expect integer objects to be mutable.
It's pretty common for people coming from name is a location in
memory languages to have this conception of integers as an
intermediate stage of learning Python's
On 29 авг, 08:37, Gabriel Genellina gagsl-...@yahoo.com.ar wrote:
En Fri, 28 Aug 2009 15:25:55 -0300, zaur szp...@gmail.com escribió:
On 28 авг, 16:07, Bruno Desthuilliers bruno.
42.desthuilli...@websiteburo.invalid wrote:
zaur a écrit :
Ok. Here is a use case: object initialization
Python 2.6.2 (r262:71600, Apr 16 2009, 09:17:39)
[GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin
Type copyright, credits or license() for more information.
a=1
x=[a]
id(a)==id(x[0])
True
a+=1
a
2
x[0]
1
I thought that += should only change the value of the int object. But
+= create
On 29 авг, 20:25, Günther Dietrich gd_use...@spamfence.net wrote:
Paul McGuire pt...@austin.rr.com wrote:
What exactly are you trying to do?
I think, he wants to kind of dereference the list element. So that he
can write
a += 1
instead of
On 28 авг, 16:07, Bruno Desthuilliers bruno.
42.desthuilli...@websiteburo.invalid wrote:
zaur a écrit :
On 26 авг, 17:13, Diez B. Roggisch de...@nospam.web.de wrote:
Whom am we to judge? Sure if you propose this, you have some usecases in
mind - how about you present these
Ok. Here
On 26 авг, 23:56, MRAB pyt...@mrabarnett.plus.com wrote:
zaur wrote:
On 26 авг, 21:11, Rami Chowdhury rami.chowdh...@gmail.com wrote:
person = Person():
name = john
age = 30
address = Address():
street = Green Street
no = 12
Can you clarify what you mean? Would
On 27 авг, 18:34, Carl Banks pavlovevide...@gmail.com wrote:
On Aug 26, 5:51 am, zaur szp...@gmail.com wrote:
Hi folk!
What do you think about idea of object's nesting scope in python?
Let's imaging this feature, for example, in this syntax:
obj=expression:
body
On 27 авг, 19:19, Carl Banks pavlovevide...@gmail.com wrote:
On Aug 27, 8:01 am, zaur szp...@gmail.com wrote:
On 27 авг, 18:34, Carl Banks pavlovevide...@gmail.com wrote:
The idea has been
discussed in various forms here quite a bit over the years. I doubt
there's any chance it'll
is this idea useful?
Zaur
--
http://mail.python.org/mailman/listinfo/python-list
On 26 авг, 17:13, Diez B. Roggisch de...@nospam.web.de wrote:
Whom am we to judge? Sure if you propose this, you have some usecases in
mind - how about you present these
Ok. Here is a use case: object initialization.
For example,
person = Person():
name = john
age = 30
address =
On 26 авг, 21:11, Rami Chowdhury rami.chowdh...@gmail.com wrote:
person = Person():
name = john
age = 30
address = Address():
street = Green Street
no = 12
Can you clarify what you mean? Would that define a Person class, and an
Address class?
I suppose that someone
like to know what do you think about this?
Best regards,
Zaur
--
http://mail.python.org/mailman/listinfo/python-list
zaur [EMAIL PROTECTED] added the comment:
It's the issue for python 3.0 too
--
nosy: +zaur
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4230
http://szport.blogspot.com/2008/04/application-of-with-statement-in-py3k.html
--
http://mail.python.org/mailman/listinfo/python-list
http://szport.blogspot.com/2008/04/application-of-with-statement-in-py3k.html
--
http://mail.python.org/mailman/listinfo/python-list
22 matches
Mail list logo