On Wed, Mar 26, 2014 at 7:43 AM, Ben Collier wrote:
> Hi all,
>
> I know that I can dynamically reference a variable with locals()["i"], for
> instance, but I'd like to know how to do this with a variable in an object.
>
> If I have an object called "device", with variables called attr1, attr2 ..
On Nov 7, 2013, at 22:24, Chris Angelico wrote:
> On Fri, Nov 8, 2013 at 1:43 PM, R. Michael Weylandt
> wrote:
>> Chris's point is more subtle: the typical computer will store the number
>> 65536 in a single byte, but it will also store 4 and 8 in one byte.
>
&g
On Nov 7, 2013, at 21:25, jonas.thornv...@gmail.com wrote:
> Den fredagen den 8:e november 2013 kl. 03:17:36 UTC+1 skrev Chris Angelico:
>> On Fri, Nov 8, 2013 at 1:05 PM, wrote:
>>
>>> I guess what matter is how fast an algorithm can encode and decode a big
>>> number, at least if you want
On Sun, Jun 16, 2013 at 2:47 PM, Ferrous Cranus wrote:
> On 16/6/2013 2:13 μμ, Jussi Piitulainen wrote:
>>
>> If, instead of the above, you have
>>
>> a = 6
>> b = a
>> b = 5
>>
>> you will find that b == 5 and a == 6. So b is not the same as a. Else
>> one would have changed when the other change
On Sun, Jun 16, 2013 at 2:38 PM, Ferrous Cranus wrote:
> On 16/6/2013 3:04 μμ, R. Michael Weylandt wrote:
>>>> ## CODE SNIPPET##
>>>> a = 552315251254
>>>> b = a
>>>> c = 552315251254
>>>>
>>>> a is b # True _on my machin
On Sun, Jun 16, 2013 at 12:06 PM, Ferrous Cranus wrote:
I appreciate you've returned to your Ferrous Cranus persona for this
interchange. It reminds me not to get hung up on concerns of
futility...
> On 16/6/2013 1:42 μμ, R. Michael Weylandt wrote:
>>>
>>
&g
On Sun, Jun 16, 2013 at 10:59 AM, Nick the Gr33k wrote:
> On 16/6/2013 12:22 μμ, Denis McMahon wrote:
>>
>> For example, in Python
>>
>> a = 6
>> b = a
>> c = 6
>>
>> a and b point to one memory location that contains the value 6
>> c points to a different memory location that contains the value 6
On Fri, Jun 14, 2013 at 9:24 AM, R. Michael Weylandt
wrote:
> On Fri, Jun 14, 2013 at 9:03 AM, Nick the Gr33k wrote:>
>>
>> No clue. since the expression in parenthesis returns 'abcd' how can 'k'
>> contained within 'abcd' ?
>
> No it&
On Fri, Jun 14, 2013 at 9:03 AM, Nick the Gr33k wrote:>
name="abcd"
month="efgh"
year="ijkl"
>
print(name or month or year)
> abcd
>
> Can understand that, it takes the first string out of the 3 strings that has
> a truthy value.
>
print("k" in (name and month and year))
>
On Fri, Jun 7, 2013 at 9:10 AM, Νικόλαος Κούρας wrote:
> On 7/6/2013 10:42 πμ, Michael Weylandt wrote:
>
>>> os.rename( filepath_bytes filepath.encode('utf-8')
>
>> Missing comma, which is, after all, just a matter of syntax so it can't
>> matter, right?
>
> I doubted that os.rename arguments must
On Wed, Apr 24, 2013 at 12:14 AM, Peng Yu wrote:
> I currently use sphinx to generate the doc (in rst). How to figure it
> to support pandoc's markdown?
If I understand the desired workflow, it's just 1) write in markdown;
2) then run pandoc to convert to rst; 3) then run Sphinx to render
html or
On Tue, Apr 23, 2013 at 6:36 PM, Peng Yu wrote:
> Hi,
>
> I'm wondering if it possible to use pandoc instead of rst to document
> python. Is there a documentation system support this format of python
> document?
Pandoc is a converter while rst is a format so they're not directly
comparable; pando
It's lexigraphic (order by first letter, but if those are the same,
compare the second, but if those are same compare the third, ... if
one ends while the other continues, it's considered 'lower') on the
character's ASCII (binary encoding values):
http://www.asciitable.com/
Note that all the uppe
On Tue, Nov 13, 2012 at 1:00 AM, Cleuson Alves wrote:
> Hello, I need to solve an exercise follows, first calculate the inverse
> matrix and then multiply the first matrix.
I would just point out that in most numerical applications, you rarely
need to calculate the intermediate of the matrix inv
On Wed, Nov 7, 2012 at 11:17 PM, Smaran Harihar
wrote:
> Hi guys,
>
> I am stuck in one of those non identifiable error location in the code. The
> code keeps giving invalid syntax. This is my code.
>
> I am using the same code for another code and not sure why this is not
> working. This is the t
15 matches
Mail list logo