On Wed, Mar 26, 2014 at 7:43 AM, Ben Collier bmcoll...@gmail.com 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
On Mar 9, 2014, at 19:58, Michael Weylandt michael.weyla...@gmail.com wrote:
On Mar 9, 2014, at 19:22, Martin Schöön martin.sch...@gmail.com wrote:
What you don't get as far as I can see is code completion,
syntax highlighting etc since Emacs is doing this with
respect to Orgmode
On Mar 9, 2014, at 19:22, Martin Schöön martin.sch...@gmail.com wrote:
What you don't get as far as I can see is code completion,
syntax highlighting etc since Emacs is doing this with
respect to Orgmode and not the programming language you
use.
Put
(setq org-src-fontify-natively t)
In
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, jonas.thornv...@gmail.com wrote:
I guess what matter is how fast an algorithm can encode and decode a big
number, at
On Nov 7, 2013, at 22:24, Chris Angelico ros...@gmail.com wrote:
On Fri, Nov 8, 2013 at 1:43 PM, R. Michael Weylandt
michael.weyla...@gmail.com michael.weyla...@gmail.com wrote:
Chris's point is more subtle: the typical computer will store the number
65536 in a single byte
On Jun 17, 2013, at 6:17, Νίκος supp...@superhost.gr wrote:
On 16/6/2013 9:53 μμ, R. Michael Weylandt wrote:
On Sun, Jun 16, 2013 at 2:47 PM, Ferrous Cranus supp...@superhost.gr wrote:
On 16/6/2013 2:13 μμ, Jussi Piitulainen wrote:
If, instead of the above, you have
a = 6
b = a
b = 5
On Sun, Jun 16, 2013 at 10:59 AM, Nick the Gr33k supp...@superhost.gr 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
On Sun, Jun 16, 2013 at 12:06 PM, Ferrous Cranus supp...@superhost.gr 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:
## CODE SNIPPET
On Sun, Jun 16, 2013 at 2:38 PM, Ferrous Cranus supp...@superhost.gr 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 machine_
And this pattern continues for any sort of Python object.
a is c # False
On Sun, Jun 16, 2013 at 2:47 PM, Ferrous Cranus supp...@superhost.gr 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
On Fri, Jun 14, 2013 at 9:03 AM, Nick the Gr33k supp...@superhost.gr 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))
True
No
On Fri, Jun 14, 2013 at 9:24 AM, R. Michael Weylandt
michael.weyla...@gmail.com wrote:
On Fri, Jun 14, 2013 at 9:03 AM, Nick the Gr33k supp...@superhost.gr wrote:
No clue. since the expression in parenthesis returns 'abcd' how can 'k'
contained within 'abcd' ?
No it's not. See both above
On Jun 7, 2013, at 8:32, Νικόλαος Κούρας nikos.gr...@gmail.com wrote:
Τη Παρασκευή, 7 Ιουνίου 2013 10:09:29 π.μ. UTC+3, ο χρήστης Lele Gaifax
έγραψε:
As already explained, often a SyntaxError is introduced by *preceeding*
text, so you must look at your code with a wider eye.
That what
On Fri, Jun 7, 2013 at 9:10 AM, Νικόλαος Κούρας nikos.gr...@gmail.com 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
On Wed, Apr 24, 2013 at 12:14 AM, Peng Yu pengyu...@gmail.com 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
On Tue, Apr 23, 2013 at 6:36 PM, Peng Yu pengyu...@gmail.com 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
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
On Tue, Nov 13, 2012 at 1:00 AM, Cleuson Alves cleuso...@gmail.com 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
On Wed, Nov 7, 2012 at 11:17 PM, Smaran Harihar
smaran.hari...@gmail.com 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
19 matches
Mail list logo