Commit 4cd6354
authored
Currently the Python core API has a `UCXAddress.string` property that returns `bytes`. This is a confusing match, so instead of having that property this now switches to supporting `__bytes__` that can use proper Python API to return the serializable `bytes` object by calling `bytes(ucx_address_object)`.
Also removes the `create_from_string` method, as there were two methods that are essentially redundant and might cause more confusion than good.
Authors:
- Peter Andreas Entschev (https://github.com/pentschev)
Approvers:
- Mads R. B. Kristensen (https://github.com/madsbk)
- https://github.com/jakirkham
URL: #390
1 parent 0d29ad8 commit 4cd6354
File tree
2 files changed
+15
-29
lines changed- python/ucxx/ucxx/_lib
- tests
2 files changed
+15
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
408 | | - | |
| 408 | + | |
409 | 409 | | |
410 | | - | |
| 410 | + | |
411 | 411 | | |
412 | 412 | | |
413 | | - | |
| 413 | + | |
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
417 | 417 | | |
418 | 418 | | |
419 | 419 | | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | 420 | | |
432 | 421 | | |
433 | 422 | | |
| |||
460 | 449 | | |
461 | 450 | | |
462 | 451 | | |
463 | | - | |
464 | | - | |
| 452 | + | |
465 | 453 | | |
466 | 454 | | |
467 | 455 | | |
| |||
489 | 477 | | |
490 | 478 | | |
491 | 479 | | |
492 | | - | |
| 480 | + | |
493 | 481 | | |
494 | 482 | | |
495 | | - | |
| 483 | + | |
496 | 484 | | |
497 | 485 | | |
498 | 486 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | 30 | | |
32 | | - | |
| 31 | + | |
33 | 32 | | |
34 | 33 | | |
35 | | - | |
36 | | - | |
| 34 | + | |
0 commit comments