Skip to content

Commit efa58b1

Browse files
author
Christopher Doris
committed
docs
1 parent a245b38 commit efa58b1

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

docs/src/juliapy.md

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,10 @@ There is also a [`RawValue`](#julia.RawValue) object, which gives a stricter "Ju
5353
<span class="docstring-category">Python Class</span>
5454
</header>
5555
<section>
56-
Wraps any Julia object, giving it some basic Python semantics. Subtypes provide extra semantics.
57-
58-
Supports `repr(x)`, `str(x)`, attributes (`x.attr`), calling (`x(a,b)`), iteration, comparisons, `len(x)`, `a in x`, `dir(x)`.
59-
60-
Calling, indexing, attribute access, etc. will convert the result to a Python object according to <a href="../conversion/#Julia-to-Python">this table</a>.
61-
This is typically a builtin Python type (for immutables) or a subtype of `AnyValue`.
62-
63-
Attribute access can be used to access Julia properties as well as normal class members.
64-
In the case of a name clash, the class member will take precedence.
65-
For convenience with Julia naming conventions, `_b` at the end of an attribute is replaced with `!` and `_bb` is replaced with `!!`.
66-
56+
<p>Wraps any Julia object, giving it some basic Python semantics. Subtypes provide extra semantics.</p>
57+
<p>Supports <code>repr(x)</code>, <code>str(x)</code>, attributes (<code>x.attr</code>), calling (<code>x(a,b)</code>), iteration, comparisons, <code>len(x)</code>, <code>a in x</code>, <code>dir(x)</code>.</p>
58+
<p>Calling, indexing, attribute access, etc. will convert the result to a Python object according to <a href="../conversion/#Julia-to-Python">this table</a>. This is typically a builtin Python type (for immutables) or a subtype of <code>AnyValue</code>.</p>
59+
<p>Attribute access can be used to access Julia properties as well as normal class members. In the case of a name clash, the class member will take precedence. For convenience with Julia naming conventions, <code>_b</code> at the end of an attribute is replaced with <code>!</code> and <code>_bb</code> is replaced with <code>!!</code>.</p>
6760
<h6>Members</h6>
6861
<ul>
6962
<li><code>_jl_raw()</code>: Convert to a <a href="#julia.RawValue"><code>RawValue</code></a></li>
@@ -185,7 +178,8 @@ jl.Vector[jl.Int]()</code></pre>
185178
</header>
186179
<section>
187180
<p>Wraps any Julia value with a rigid interface suitable for generic programming.</p>
188-
<p>This is very similar to <a href="#julia.AnyValue"><code>AnyValue</code></a> except that indexing, calling, etc. will always return a `RawValue`.</p>
181+
<p>Supports <code>repr(x)</code>, <code>str(x)</code>, attributes (<code>x.attr</code>), calling (<code>x(a,b)</code>), <code>len(x)</code>, <code>dir(x)</code>.</p>
182+
<p>This is very similar to <a href="#julia.AnyValue"><code>AnyValue</code></a> except that indexing, calling, etc. will always return a <code>RawValue</code>.</p>
189183
<p>Indexing with a tuple corresponds to indexing in Julia with multiple values. To index with a single tuple, it will need to be wrapped in another tuple.</p>
190184
<h6>Members</h6>
191185
<ul>

0 commit comments

Comments
 (0)