Skip to content

Commit

Permalink
update Rpath docs with diff btwn stringify, str
Browse files Browse the repository at this point in the history
previously the docs did not indicate that stringify()
    would return the string representation of JSON strings
    while str() would copy JSON strings.
  • Loading branch information
molsonkiko committed Jan 6, 2024
1 parent 8b82428 commit a0c3aea
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/RemesPath.md
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,10 @@ x must contain only numbers. Booleans are fine.

Returns the string representation (compressed, minimal whitespace, sort keys) of x.

This differs from `str` in that *this is not vectorized.*
When called with one argument, `stringify` differs from `str` in two regards:
1. `stringify` is not vectorized.
2. If `x` is a string, `str` returns a copy of `x`, but `stringify` returns the string representation of `x`.
* For example, `str(abc)` returns `"abc"`, but `stringify(abc)` returns `"\"abc\""`.

*Added in [v5.5.0](/CHANGELOG.md#550---2023-08-13).*

Expand Down Expand Up @@ -1089,7 +1092,7 @@ Returns the upper-case form of x.
----
`str(x: anything) -> string`

Returns the string representation of x.
Returns the string representation of `x`, unless `x` is a string, in which case it returns a copy of `x`.

---
`zfill(x: anything, padToLen: int) -> string`
Expand Down

0 comments on commit a0c3aea

Please sign in to comment.