Re: what do you get with 1 divide by 998001, interesting results

2014-08-20 Thread Everything You Need To Know
On Thursday, 21 August 2014 16:20:29 UTC+9:30, Chris Angelico wrote: > On Thu, Aug 21, 2014 at 4:09 PM, Everything You Need To Know > > wrote: > > > On Thursday, 21 August 2014 15:19:43 UTC+9:30, Chris Angelico wrote: > > >> On Thu, Aug 21, 2014 at 3:38 PM, Everything You Need To Know > > >>

Re: what do you get with 1 divide by 998001, interesting results

2014-08-20 Thread Chris Angelico
On Thu, Aug 21, 2014 at 4:09 PM, Everything You Need To Know wrote: > On Thursday, 21 August 2014 15:19:43 UTC+9:30, Chris Angelico wrote: >> On Thu, Aug 21, 2014 at 3:38 PM, Everything You Need To Know >> >> wrote: >> >> > You are now simply arguing a negative point for no apparent reason other

Re: what do you get with 1 divide by 998001, interesting results

2014-08-20 Thread Ben Finney
Everything You Need To Know writes: > On Thursday, 21 August 2014 14:33:19 UTC+9:30, Ian wrote: > > Google does not own or control this forum. The comp.lang.python > > group is part of Usenet, which is not owned by anybody. The group is > > also bridged to the python-list mailing list hosted by

Re: what do you get with 1 divide by 998001, interesting results

2014-08-20 Thread Everything You Need To Know
On Thursday, 21 August 2014 14:33:19 UTC+9:30, Ian wrote: > On Aug 20, 2014 9:51 PM, "Everything You Need To Know" > wrote: > > > I will post updates on one Post so as not to create new posts and I am not > > making any money from this, also google owns youtube so I am only helping > > google

Re: Test failure while building cpython

2014-08-20 Thread Terry Reedy
On 8/20/2014 8:24 PM, Adam Bishop wrote: >> Or you can ignore it. > > It's a little tricky with mock, as failures during the test phase are fatal. Unfortunately, I have no idea what 'mock' is in this context. Thanks for pointing me in the right direction. If you possibly can, also act on N

Re: what do you get with 1 divide by 998001, interesting results

2014-08-20 Thread Ian Kelly
On Aug 20, 2014 9:51 PM, "Everything You Need To Know" wrote: > I will post updates on one Post so as not to create new posts and I am not making any money from this, also google owns youtube so I am only helping google the owner of this Forum? Google does not own or control this forum. The comp.

Re: what do you get with 1 divide by 998001, interesting results

2014-08-20 Thread Ben Finney
Everything You Need To Know writes: > You are now simply arguing a negative point for no apparent reason > other than you want to appear correct, I have already admitted my > mistake yet you persist with negativity and vitriol, it is quiet > childish. Observers will judge the difference between

Re: what do you get with 1 divide by 998001, interesting results

2014-08-20 Thread Everything You Need To Know
On Thursday, 21 August 2014 15:19:43 UTC+9:30, Chris Angelico wrote: > On Thu, Aug 21, 2014 at 3:38 PM, Everything You Need To Know > > wrote: > > > You are now simply arguing a negative point for no apparent reason other > > than you want to appear correct, I have already admitted my mistake

Re: 'is not' or '!='

2014-08-20 Thread Marko Rauhamaa
Rustom Mody : > OP asks for 'is' (Haskell has no equivalent of 'is') > > Almost all the answers explain why its a bad idea Well, I don't think it is a bad idea in and of itself, but if you don't have it, you don't have to define it. Object identity does make you look under the skin. In Python, i

Re: what do you get with 1 divide by 998001, interesting results

2014-08-20 Thread Chris Angelico
On Thu, Aug 21, 2014 at 3:38 PM, Everything You Need To Know wrote: > You are now simply arguing a negative point for no apparent reason other than > you want to appear correct, I have already admitted my mistake yet you > persist with negativity and vitriol, it is quiet childish. > No, it isn'

Re: what do you get with 1 divide by 998001, interesting results

2014-08-20 Thread Everything You Need To Know
On Thursday, 21 August 2014 14:56:13 UTC+9:30, Ben Finney wrote: > Everything You Need To Know writes: > > > > > I guess I have to agree and was mistaken, though vitriol I found > > > unnecessary and unproductive! > > > > You've behaved obnoxiously, as has been pointed out. Yes I did po

Re: what do you get with 1 divide by 998001, interesting results

2014-08-20 Thread Rustom Mody
On Thursday, August 21, 2014 10:38:04 AM UTC+5:30, Everything You Need To Know wrote: | On Thursday, 21 August 2014 14:19:27 UTC+9:30, Rustom Mody wrote: | | | On Thursday, August 21, 2014 10:09:45 AM UTC+5:30, Ben Finney wrote: | | | | | | | | > Everything You Need To Know writes: | | | |

Re: what do you get with 1 divide by 998001, interesting results

2014-08-20 Thread Ben Finney
Everything You Need To Know writes: > I guess I have to agree and was mistaken, though vitriol I found > unnecessary and unproductive! You've behaved obnoxiously, as has been pointed out. We regard this community highly, and when obnoxious behaviour occurs, emotive responses are to be expected.

Re: what do you get with 1 divide by 998001, interesting results

2014-08-20 Thread Everything You Need To Know
On Thursday, 21 August 2014 14:19:27 UTC+9:30, Rustom Mody wrote: > On Thursday, August 21, 2014 10:09:45 AM UTC+5:30, Ben Finney wrote: > > > Everything You Need To Know writes: > > > > > > It is not just one person here! To give my name when we are trying to > > > > be a small group would n

Re: 'is not' or '!='

2014-08-20 Thread Rustom Mody
On Wednesday, August 20, 2014 2:30:22 AM UTC+5:30, Marko Rauhamaa wrote: > For a more worthy attempt, we'll have to take a look at Scheme ( http://www.scheme.com/tspl2d/objects.html>): Since you brought up scheme, here is a discussion going on right now on the Haskell list: http://www.haskell.or

Re: Test failure while building cpython

2014-08-20 Thread Adam Bishop
On 21 Aug 2014, at 01:08, Terry Reedy wrote: > This is a test of lib/distutils.sysconfig, a near but not exact copy of > lib/sysconfig. I don't know why we have both, but this one will not affect > you unless you use distutils to compile something. I've been staring at this for a couple of hour

Re: what do you get with 1 divide by 998001, interesting results

2014-08-20 Thread Rustom Mody
On Thursday, August 21, 2014 10:09:45 AM UTC+5:30, Ben Finney wrote: > Everything You Need To Know writes: > > It is not just one person here! To give my name when we are trying to > > be a small group would not work. > That's not how a community operates. Please post as an individual, with > a p

Re: what do you get with 1 divide by 998001, interesting results

2014-08-20 Thread Ben Finney
Everything You Need To Know writes: > It is not just one person here! To give my name when we are trying to > be a small group would not work. That's not how a community operates. Please post as an individual, with a person's name, to establish your reputation and continuity. Others can post as

Re: what do you get with 1 divide by 998001, interesting results

2014-08-20 Thread Everything You Need To Know
On Thursday, 21 August 2014 12:06:44 UTC+9:30, Steven D'Aprano wrote: > On Wed, 20 Aug 2014 18:22:01 -0700, Everything You Need To Know wrote: > > > > > Thank you Steven, I thought most of the exercises I have posted were > > > quiet original and still offer interesting results. > > [...] >

Re: what is the difference between name and _name?

2014-08-20 Thread Chris Angelico
On Thu, Aug 21, 2014 at 12:20 PM, luofeiyu wrote: > > all the expressions can not get the info "name property docs" ?how can i get > it? >>> Person.name.__doc__ 'name property docs' It's an attribute of the property, not of the result. ChrisA -- https://mail.python.org/mailman/listinfo/python-

Re: what do you get with 1 divide by 998001, interesting results

2014-08-20 Thread Rustom Mody
On Thursday, August 21, 2014 8:06:44 AM UTC+5:30, Steven D'Aprano wrote: > On Wed, 20 Aug 2014 18:22:01 -0700, Everything You Need To Know wrote: > > Thank you Steven, I thought most of the exercises I have posted were > > quiet original and still offer interesting results. > [...] > You will fin

Re: what do you get with 1 divide by 998001, interesting results

2014-08-20 Thread Steven D'Aprano
On Wed, 20 Aug 2014 18:22:01 -0700, Everything You Need To Know wrote: > Thank you Steven, I thought most of the exercises I have posted were > quiet original and still offer interesting results. [...] You will find less hostility if you attempt to engage with the community rather than just dum

Re: what is the difference between name and _name?

2014-08-20 Thread luofeiyu
one more question,how can i get the doc info? class Person(object): def __init__(self, name): self._name = name def getName(self): print('fetch') return self._name def setName(self, value): print('change...') self._name = value def delNa

Re: what do you get with 1 divide by 998001, interesting results

2014-08-20 Thread Everything You Need To Know
On Thursday, 21 August 2014 11:05:51 UTC+9:30, Ben Finney wrote: > Everything You Need To Know writes: > > > > > I offer something practical and positive to the community, even if the > > > wrong community to post. > > > > You choose to offer it with a self-aggrandising name instead of you

Re: what do you get with 1 divide by 998001, interesting results

2014-08-20 Thread Chris Angelico
On Thu, Aug 21, 2014 at 11:22 AM, Everything You Need To Know wrote: > + I have attended University and decided that the video series has more to > offer than a University certificate in terms of knowledge. > That's not saying much. ChrisA -- https://mail.python.org/mailman/listinfo/python-lis

Re: what do you get with 1 divide by 998001, interesting results

2014-08-20 Thread Ben Finney
Everything You Need To Know writes: > I offer something practical and positive to the community, even if the > wrong community to post. You choose to offer it with a self-aggrandising name instead of your real name, which is itself an obnoxious habit. The links themselves are, as you acknowledg

Re: what do you get with 1 divide by 998001, interesting results

2014-08-20 Thread Everything You Need To Know
On Thursday, 21 August 2014 08:38:16 UTC+9:30, Steven D'Aprano wrote: > Chris "Kwpolska" Warrick wrote: > > > > > On Wed, Aug 20, 2014 at 5:36 PM, Everything You Need To Know > > > wrote: > > >> Neat little exercise, surprisingly cool results! > > >> less than 3 minutes! > > >> > > >> [ur

Re: Test failure while building cpython

2014-08-20 Thread Ned Deily
In article <09843563-b0fd-451b-bf66-0fb720cec...@ja.net>, Adam Bishop wrote: > I'm trying to build python 3.3.2 from source packages provided by Red Hat > under mock. > > The build itself works,but one specific test is failing: > >=

Re: Test failure while building cpython

2014-08-20 Thread Terry Reedy
On 8/20/2014 7:05 PM, Adam Bishop wrote: I'm trying to build python 3.3.2 from source packages provided by Red Hat under mock. The build itself works,but one specific test is failing: == FAIL: test_sysconfig_module (d

Test failure while building cpython

2014-08-20 Thread Adam Bishop
I'm trying to build python 3.3.2 from source packages provided by Red Hat under mock. The build itself works,but one specific test is failing: == FAIL: test_sysconfig_module (distutils.tests.test_sysconfig.SysconfigTest

Re: what do you get with 1 divide by 998001, interesting results

2014-08-20 Thread Steven D'Aprano
Chris “Kwpolska” Warrick wrote: > On Wed, Aug 20, 2014 at 5:36 PM, Everything You Need To Know > wrote: >> Neat little exercise, surprisingly cool results! >> less than 3 minutes! >> >> [url redacted] [...] > Please stop spamming with your barely original content. If you think it is spam (or a

Re: how to copy emails into local directory?

2014-08-20 Thread Dan Stromberg
On Wed, Aug 20, 2014 at 5:09 AM, luofeiyu wrote: > i want to copy all the emails in the gmailbox of > "[Gmail]/&kc2JgQ-" (the important mailbox in my gmail" > into local directory "g:\emails",how can i do that in python code? You could also try http://wiki.vpslink.com/Mount_a_Gmail_Account_as

Re: why no 2to3 in my python?

2014-08-20 Thread Terry Reedy
On 8/20/2014 5:30 AM, Frank Millman wrote: "luofeiyu" wrote in message news:53f463c1.5060...@gmail.com... why no 2to3 in my python34,how can i change python 2 into python3? dir d:\Python34\Scripts You will find it in \Python34\Tools\Scripts To find the docs, look for 'lib2to3' in the modu

Re: Efficiency, threading, and concurrent.futures

2014-08-20 Thread Akira Li
Rob Gaddi writes: > I've got a situation where I'll be asking an I/O bound process to do > some work (querying an RS-232 device) while my main code is off > running a sleep() bound process. Everyone always talks about how > expensive thread creation is, so I figured I'd test it out in an > IPyth

Re: How to look up historical time zones by date and location

2014-08-20 Thread Akira Li
luofeiyu writes: > http://www.thefreedictionary.com/time+zone > > time zone Any of the 24 divisions of the Earth's surface used to > determine the local time for any given locality. > Each zone is roughly 15° of longitude in width, with local variations > for economic and political convenience. >

Re: dynamic values in yaml

2014-08-20 Thread Laurent Pointal
raphi...@gmail.com wrote: > Note that in my example the content to be inserted is not the result of a > variable substitution, but the result of a call to a function. format > doesn't seem to work in this case. And jinja2 doesn't seem to provide a > straight forward solution either > > Thx Yoy

Re: Matplotlib Contour Plots

2014-08-20 Thread Mark Lawrence
On 20/08/2014 11:02, Jamie Mitchell wrote: This is great and works very well - thank you!! I'm pleased to see that you have answers. In return would you please access this list via https://mail.python.org/mailman/listinfo/python-list or read and action this https://wiki.python.org/moin/Go

Efficiency, threading, and concurrent.futures

2014-08-20 Thread Rob Gaddi
I've got a situation where I'll be asking an I/O bound process to do some work (querying an RS-232 device) while my main code is off running a sleep() bound process. Everyone always talks about how expensive thread creation is, so I figured I'd test it out in an IPython notebook. # import t

Re: how to copy emails into local directory?

2014-08-20 Thread Akira Li
luofeiyu writes: > import imaplib,email > user="" > password="" > con=imaplib.IMAP4_SSL('imap.gmail.com') > con.login(user,password) > con.list() > ('OK', [b'(\\HasNoChildren) "/" "INBOX"', b'(\\Noselect \\HasChildren) > "/" "[Gma > il]"', b'(\\HasNoChildren \\Junk) "/" "[Gmail]/&V4NXPpCu

Re: what do you get with 1 divide by 998001, interesting results

2014-08-20 Thread Chris “Kwpolska” Warrick
On Wed, Aug 20, 2014 at 5:36 PM, Everything You Need To Know wrote: > Neat little exercise, surprisingly cool results! > less than 3 minutes! > > https://www.youtube.com/watch?v=PlDjl5JK0eU&feature=youtu.be > -- > https://mail.python.org/mailman/listinfo/python-list Most subscribers are already s

what do you get with 1 divide by 998001, interesting results

2014-08-20 Thread Everything You Need To Know
Neat little exercise, surprisingly cool results! less than 3 minutes! https://www.youtube.com/watch?v=PlDjl5JK0eU&feature=youtu.be -- https://mail.python.org/mailman/listinfo/python-list

Re: what is the difference between name and _name?

2014-08-20 Thread Steven D'Aprano
luofeiyu wrote: > So in this example: >>> class Person(object): >>> def __init__(self, name): >>> self._name = name >> [...] >>> name = property(getName, setName, delName, "name property docs") >> >> >> (3) name is the public attribute that other classes or functions

Re: PyQt4 - Issue with deleting a QWidget from a QGridLayout

2014-08-20 Thread Vincent Vande Vyvre
Le 20/08/2014 16:22, Alex Murray a écrit : Please do not post in HTML it makes everything an unreadable mess (I have left you original post above so you can see what I mean.) Sorry, here's the original e-mail in plain text: Hi, I've discovered some very strange behaviour when trying to delete

Re: pexpect - logging input AND output

2014-08-20 Thread Akira Li
sj.constant...@gmail.com writes: > i have a script running a few commands on a network device. i can't > seem to figure out how to log both the input and output of what the > pexpect script initiates and responds to. > > child = pexpect.spawn ('telnet '+ ip) > child.expect ('.*:*') > child.sendlin

Re: Re: PyQt4 - Issue with deleting a QWidget from a QGridLayout

2014-08-20 Thread Alex Murray
> Please do not post in HTML it makes everything an unreadable mess > (I have left you original post above so you can see what I mean.) Sorry, here's the original e-mail in plain text: Hi, I've discovered some very strange behaviour when trying to delete a QWidget from a QGridLayout. The followi

Re: How can I get the timezone time of a location?

2014-08-20 Thread luofeiyu
it is so sorry to tell you that youtube was banned by chinese government for about 6 years , everyone in china can not open https://www.youtube.com . https://www.youtube.com/watch?v=GBKqRhn0ekM The page describing the video also has a link to the

Re: MacroPy tracing not working for me...

2014-08-20 Thread Chris Angelico
On Wed, Aug 20, 2014 at 11:58 PM, Skip Montanaro wrote: > I found the macropy Google Group and asked there. There is more to do to > activate it. In particular, it doesn't appear-to-operate on a > less-than-module level. Since it operates on the AST, it has to be active > during byte compilation.

Re: how to change the time string into number?

2014-08-20 Thread Akira Li
luofeiyu writes: > s="Aug" > > how can i change it into 8 with some python time module? months = (None, # dummy, to start month indices from 1 "Jan","Feb","Mar","Apr","May","Jun", "Jul","Aug","Sep","Oct","Nov","Dec" ) month_number = months.index(month_abbr) # month_abbr == "Aug

Re: MacroPy tracing not working for me...

2014-08-20 Thread Skip Montanaro
On Wed, Aug 20, 2014 at 7:03 AM, Chris Angelico wrote: > Sounds like something to raise as an issue. I found the macropy Google Group and asked there. There is more to do to activate it. In particular, it doesn't appear-to-operate on a less-than-module level. Since it operates on the AST, it ha

Re:why i can't get the sourcecode with inspect module?

2014-08-20 Thread Dave Angel
luofeiyu Wrote in message: > >>> import inspect > >>> def changer(x,y): > ... return(x+y) > ... > >>> dir() > ['__builtins__', '__doc__', '__loader__', '__name__', '__package__', '__ > 'changer', 'inspect'] > >>> inspect.getsource(changer) > Traceback (most recent call last): >File "

Re: what is the difference between name and _name?

2014-08-20 Thread Frank Millman
"luofeiyu" wrote in message news:53f48957.8020...@gmail.com... > So in this example: >>> class Person(object): >>> def __init__(self, name): >>> self._name = name >> [...] >>> name = property(getName, setName, delName, "name property docs") >> >> >> (3) name is the

how to copy emails into local directory?

2014-08-20 Thread luofeiyu
import imaplib,email user="" password="" con=imaplib.IMAP4_SSL('imap.gmail.com') con.login(user,password) con.list() ('OK', [b'(\\HasNoChildren) "/" "INBOX"', b'(\\Noselect \\HasChildren) "/" "[Gma il]"', b'(\\HasNoChildren \\Junk) "/" "[Gmail]/&V4NXPpCuTvY-"', b'(\\HasNoChildr en \\Tras

Re: 'is not' or '!='

2014-08-20 Thread Rustom Mody
On Wednesday, August 20, 2014 4:35:42 PM UTC+5:30, Steven D'Aprano wrote: > Rustom Mody wrote: > > It is interesting (and insidious) how technology shapes our thinking > > patterns. Before git, > Pardon me, but git did not invent revision control. There are dozens of > revision control software

Re: MacroPy tracing not working for me...

2014-08-20 Thread Chris Angelico
On Wed, Aug 20, 2014 at 12:18 AM, Skip Montanaro wrote: > import macropy.tracing > with macropy.tracing.trace: > ... my broken code here ... > > (The first example is just "with trace: ..." and doesn't say where the > trace object came from. I assumed it came from the tracing module.) I'd say

Re: what is the difference between name and _name?

2014-08-20 Thread luofeiyu
So in this example: class Person(object): def __init__(self, name): self._name = name [...] name = property(getName, setName, delName, "name property docs") (3) name is the public attribute that other classes or functions are permitted to use. problem 1: ther

Re: 'is not' or '!='

2014-08-20 Thread Robert Kern
On 2014-08-20 12:26, Tim Chase wrote: On 2014-08-20 21:17, Chris Angelico wrote: That's true, but how easy is it to annotate a file with each line's author (or, at least, to figure out who wrote some particular line of code)? It's easy enough with 'git blame' or 'hg blame', and it wouldn't surpr

Re: 'is not' or '!='

2014-08-20 Thread Chris Angelico
On Wed, Aug 20, 2014 at 9:26 PM, Tim Chase wrote: > On 2014-08-20 21:17, Chris Angelico wrote: >> That's true, but how easy is it to annotate a file with each line's >> author (or, at least, to figure out who wrote some particular line >> of code)? It's easy enough with 'git blame' or 'hg blame',

Re: 'is not' or '!='

2014-08-20 Thread Tim Chase
On 2014-08-20 21:17, Chris Angelico wrote: > That's true, but how easy is it to annotate a file with each line's > author (or, at least, to figure out who wrote some particular line > of code)? It's easy enough with 'git blame' or 'hg blame', and it > wouldn't surprise me if bzr had a similar featu

Re: 'is not' or '!='

2014-08-20 Thread Chris Angelico
On Wed, Aug 20, 2014 at 9:05 PM, Steven D'Aprano wrote: > Rustom Mody wrote: > >> It is interesting (and insidious) how technology shapes our thinking >> patterns. Before git, > > Pardon me, but git did not invent revision control. There are dozens of > revision control software applications, inc

Re: 'is not' or '!='

2014-08-20 Thread Steven D'Aprano
Rustom Mody wrote: > It is interesting (and insidious) how technology shapes our thinking > patterns. Before git, Pardon me, but git did not invent revision control. There are dozens of revision control software applications, including: Mercurial: released April 2005 Git: released April 2005 G

Re: Matplotlib Contour Plots

2014-08-20 Thread Jamie Mitchell
On Tuesday, August 19, 2014 10:21:48 PM UTC+1, pec...@pascolo.net wrote: > Jamie Mitchell writes: > > > > > You were right Christian I wanted a shape (2,150). > > > > > > Thank you Rustom and Steven your suggestion has worked. > > > > > > Unfortunately the data doesn't plot as I imagined. >

Re: PyQt4 - Issue with deleting a QWidget from a QGridLayout

2014-08-20 Thread alister
On Wed, 20 Aug 2014 00:11:24 +0200, Alex Murray wrote: > Hi, > >   > > I've discovered some very strange behaviour when trying to > delete a QWidget from a QGridLayout. The following code demonstrates > this behaviour: > >   > > >>> from PyQt4 import QtGui > > >>> import sys > > >>> app = Qt

Re: why no 2to3 in my python?

2014-08-20 Thread Frank Millman
"luofeiyu" wrote in message news:53f463c1.5060...@gmail.com... > why no 2to3 in my python34,how can i change python 2 into python3? > >dir d:\Python34\Scripts You will find it in \Python34\Tools\Scripts Frank Millman -- https://mail.python.org/mailman/listinfo/python-list

Re: How can I get the timezone time of a location?

2014-08-20 Thread Ben Finney
Ben Finney writes: > luofeiyu writes: > > > There is no video in the web when i open it in my firefox. > The page describing the video also has a link to the hosted site of > the video, see the “Video origin” field to the right side of that > page. The cited video contains good information, but

Re: asyncio subprocess PIPE output lost

2014-08-20 Thread Mark Lawrence
On 20/08/2014 05:04, yuzhichang wrote: Would you please access this list via https://mail.python.org/mailman/listinfo/python-list or read and action this https://wiki.python.org/moin/GoogleGroupsPython to prevent us seeing double line spacing and single line paragraphs, thanks. -- My fellow

why no 2to3 in my python?

2014-08-20 Thread luofeiyu
why no 2to3 in my python34,how can i change python 2 into python3? >dir d:\Python34\Scripts Volume in drive D is soft Volume Serial Number is 6F34-9A10 Directory of d:\Python34\Scripts 08/18/2014 09:06 AM . 08/18/2014 09:06 AM .. 07/09/2014 09:01 AM95,

Re: dynamic values in yaml

2014-08-20 Thread Mark Lawrence
On 20/08/2014 07:50, raphi...@gmail.com wrote: Would you please access this list via https://mail.python.org/mailman/listinfo/python-list or read and action this https://wiki.python.org/moin/GoogleGroupsPython to prevent us seeing double line spacing and single line paragraphs, thanks. -- My

Re: what is the difference between name and _name?

2014-08-20 Thread Steven D'Aprano
On Wed, 20 Aug 2014 15:16:56 +0800, luofeiyu wrote: > When i learn property in python , i was confused by somename and > _somename,what is the difference between them? One name starts with underscore, the other does not. In names, an underscore is just a letter with no special meaning: foo, bar

Re: dynamic values in yaml

2014-08-20 Thread Rustom Mody
On Wednesday, August 20, 2014 12:20:21 PM UTC+5:30, raph...@gmail.com wrote: > On Tuesday, August 19, 2014 7:15:54 PM UTC+2, Rustom Mody wrote: > > On Tuesday, August 19, 2014 10:31:03 PM UTC+5:30, Laurent Pointal wrote: > > > raphinou wrote: > > > > Hi, > > > > I'm using pyyaml, and need some val

Re: what is the difference between name and _name?

2014-08-20 Thread Ben Finney
luofeiyu writes: > When i learn property in python , i was confused by somename and > _somename,what is the difference between them? Some attributes are exposed in the API for an object (a class, a module, etc.). Those are effectively a promise from the author that the attribute is supported for

what is the difference between name and _name?

2014-08-20 Thread luofeiyu
When i learn property in python , i was confused by somename and _somename,what is the difference between them? class Person(object): def __init__(self, name): self._name = name def getName(self): print('fetch') return self._name def setName(self, value):