On Sun, Sep 1, 2013 at 8:53 PM, Mohsen Pahlevanzadeh
wrote:
> Dear all,
>
> What does mean @ sign in first of statement such as:
>
> //
> @hybrid_property
> def fullname(self):
> return self.firstname + " " + self.lastname
> ///
Dear all,
What does mean @ sign in first of statement such as:
//
@hybrid_property
def fullname(self):
return self.firstname + " " + self.lastname
///
Sorry for cheap question.
Yours,
Mohsen
--
http://mail.python.org/mailman/listinfo/python-list
RE U WANT RUSSIAN GIRL FRIENDS...
WEBPAGE ---> http://123maza.com/hashan/
--
http://mail.python.org/mailman/listinfo/python-list
Jax wrote:
> I encountered problem with dolar sign in source string. It seems that $
> require special threatening. Below is copy of session with interactive
> Python's shell:
>
> Python 2.5.2 (r252:60911, Jan 8 2009, 12:17:37)
> [GCC 4.3.2] on linux2
> Type "h
Hi
I encountered problem with dolar sign in source string. It seems that $ require
special threatening. Below is copy of session with interactive Python's shell:
Python 2.5.2 (r252:60911, Jan 8 2009, 12:17:37)
[GCC 4.3.2] on linux2
Type "help", "copyright", "
Terry Reedy <[EMAIL PROTECTED]> wrote:
>
>Tim Roberts wrote:
>> Steven Howe <[EMAIL PROTECTED]> wrote:
>>
>>> Terry Reedy wrote:
korean_dave wrote:
> What does this operator do? Specifically in this context
>
> test.log( "[[Log level %d: %s]]" % ( level, msg ), description )
>>>
>
Terry Reedy wrote:
korean_dave wrote:
What does this operator do? Specifically in this context
test.log( "[[Log level %d: %s]]" % ( level, msg ), description )
(Tried googling and searching, but the "%" gets interpreted as an
operation and distorts the search results)
Having seen a number
Tim Roberts wrote:
Steven Howe <[EMAIL PROTECTED]> wrote:
Terry Reedy wrote:
korean_dave wrote:
What does this operator do? Specifically in this context
test.log( "[[Log level %d: %s]]" % ( level, msg ), description )
I thought, in this contexted, it was mapping operator.
You miss clip
Steven Howe <[EMAIL PROTECTED]> wrote:
>Terry Reedy wrote:
>>
>> korean_dave wrote:
>>> What does this operator do? Specifically in this context
>>>
>>> test.log( "[[Log level %d: %s]]" % ( level, msg ), description )
>
>I thought, in this contexted, it was mapping operator.
What??
Python does
On Jul 17, 3:42 pm, Terry Reedy <[EMAIL PROTECTED]> wrote:
> korean_dave wrote:
> > What does this operator do? Specifically in this context
>
> > test.log( "[[Log level %d: %s]]" % ( level, msg ), description )
>
> > (Tried googling and searching, but the "%" gets interpreted as an
> > operation a
Terry Reedy wrote:
korean_dave wrote:
What does this operator do? Specifically in this context
test.log( "[[Log level %d: %s]]" % ( level, msg ), description )
(Tried googling and searching, but the "%" gets interpreted as an
operation and distorts the search results)
Having seen a number
korean_dave wrote:
What does this operator do? Specifically in this context
test.log( "[[Log level %d: %s]]" % ( level, msg ), description )
(Tried googling and searching, but the "%" gets interpreted as an
operation and distorts the search results)
Having seen a number of comments like thi
The percent sign is a placeholder.
For example, if
level = 1
msg = 'look'
Then
'[[Log level %d: %s]]' % ( level, msg )
becomes
'[[Log level 1: look]]'
%d means insert an integer
%s means insert a string
You can also use dictionaries.
d = {'string1': 'hey', 'string2': 'you'}
Then
'%(string1)s %(
korean_dave wrote:
What does this operator do? Specifically in this context
test.log( "[[Log level %d: %s]]" % ( level, msg ), description )
(Tried googling and searching, but the "%" gets interpreted as an
operation and distorts the search results)
It's the string formatting operator:
h
What does this operator do? Specifically in this context
test.log( "[[Log level %d: %s]]" % ( level, msg ), description )
(Tried googling and searching, but the "%" gets interpreted as an
operation and distorts the search results)
--
http://mail.python.org/mailman/listinfo/python-list
***
Your mail has been scanned by InterScan MSS.
***
confirm 48f0beb37c698f0bb7b4c0327cf30dbd7a4b6335
--
http://mail.python.org/mailman/listinfo/python-list
16 matches
Mail list logo