Re: [Maya-Python] Re: What does this comma do "print (Blah,)"

2017-09-21 Thread jettam
I am getting lost in the weeds here. But I think my take away is that by putting a comma " print (Blah*,*) " will turn this into a tuple. Thanks in advance.. -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubsc

Re: [Maya-Python] Re: What does this comma do "print (Blah,)"

2017-09-21 Thread Marcus Ottosson
Does it really print the repr, assuming we’re talking about the __repr__ method of its class instantiation? I could have sworn it printed the __str__ and had to double check. Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright",

Re: [Maya-Python] Re: What does this comma do "print (Blah,)"

2017-09-21 Thread Justin Israel
On Fri, Sep 22, 2017 at 4:24 PM Simon Anderson wrote: > That is correct. From my understanding, print will query each objects > _repr_ which it stores in a tuple and then prints that tuple out. > The reason why the single value is not a tuple, is that you cannot create > a tuple with one value. >

Re: [Maya-Python] Re: Access Maya UI in Qt way using Python API

2017-09-21 Thread Ruchit Bhatt
@Alok Gandhi I tried that example (working fine), And based on that i also tried below lines

[Maya-Python] Re: What does this comma do "print (Blah,)"

2017-09-21 Thread Simon Anderson
That is correct. From my understanding, print will query each objects _repr_ which it stores in a tuple and then prints that tuple out. The reason why the single value is not a tuple, is that you cannot create a tuple with one value. ie variableA = (), or variableA = (1) should both fail if you

[Maya-Python] What does this comma do "print (Blah,)"

2017-09-21 Thread jettam
I have a question about adding a comma to the end of a these print statements. In the first example ( print (Blah)) with out the comma, it prints the string? and in the second example where I added the comma ( print (Blah,) ) It turns it into a tuple? Is my observation correct here? Bl

Re: [Maya-Python] pip install -e query

2017-09-21 Thread Ben Hearn
I will try that as soon as I get into the office. I am very new to the kind of work flow I have been introduced to. I will update you on your proposed solution. - Ben On 21 Sep 2017 21:06, "Justin Israel" wrote: > > > On Fri, Sep 22, 2017, 2:06 AM Benjam901 wrote: > >> Hello all, >> >> I am ha

Re: [Maya-Python] pip install -e query

2017-09-21 Thread Justin Israel
On Fri, Sep 22, 2017, 2:06 AM Benjam901 wrote: > Hello all, > > I am having a little bit of trouble with something on my pipeline. I am > setting up something new that relies on virtual envs using pip. > > When I use pip install -e to get into a package edit mode I have a new src > folder that I

Re: [Maya-Python] How to capture the contents of this file.

2017-09-21 Thread Justin Israel
On Fri, Sep 22, 2017, 4:07 AM jettam wrote: > It is a paragraph with a new line character at the end of each line. At > this stage I am just trying to capture the whole paragraph. I was able to > do that with your advice by using the name.append() in a for in statement. > I was confused because I

Re: [Maya-Python] How to capture the contents of this file.

2017-09-21 Thread jettam
It is a paragraph with a new line character at the end of each line. At this stage I am just trying to capture the whole paragraph. I was able to do that with your advice by using the name.append() in a for in statement. I was confused because I thought this should be captured as a string not a

[Maya-Python] pip install -e query

2017-09-21 Thread Benjam901
Hello all, I am having a little bit of trouble with something on my pipeline. I am setting up something new that relies on virtual envs using pip. When I use pip install -e to get into a package edit mode I have a new src folder that I can edit from. When I am done however I have to manually d