Oscar Nihlgård
7674df0dff
Fixes #8100 ( #8101 )
2018-06-29 14:53:09 +02:00
skilchen
230692a22f
Fix strformat neg zero ( #7954 )
...
* fix strformat handling of neg zero with sign
* better tests for neg zero with sign
* use inplace insertion of the sign as suggested by Varriount
2018-06-05 00:09:07 -04:00
skilchen
fd102f39bb
Fix strformat precision handling for strings ( #7941 )
...
* fix strformat precision handling for strings
* add some limited unicode awareness to the precision handling for strings
* improvement suggested by Varriount: use setLen and runeOffset instead of runeSubstr
2018-06-04 18:26:16 -04:00
skilchen
07ff9940f4
fix strformat zeropadding for floats ( #7934 )
2018-06-01 22:23:50 -04:00
Araq
eb03d9aafe
fixes #7749
2018-05-02 13:34:54 +02:00
Arne Döring
efae366857
rename SomeReal to SomeFloat ( #7617 )
...
* rename SomeReal to SomeFloat
* added changelog entry
2018-04-15 19:59:11 +02:00
Dominik Picheta
fa07bb1356
Improves documentation for strformat module.
...
* Adds description of the difference between ``fmt`` and ``&``.
* Moves runnable examples to bottom of file.
* Separates examples at the top of module better.
2018-03-01 19:07:58 +00:00
Araq
9a60eae631
fixes #7078
2018-01-14 23:49:53 +01:00
Andreas Rumpf
38fde80b35
strformat: fixes new 'fmt' template
2018-01-13 10:57:51 +01:00
Araq
66634fe1a0
strformat: introduce 'fmt' as an alias for '%'; ensure overloading resolution produces a clash between strformat.'%' and json.'%'
2018-01-12 01:27:24 +01:00
Araq
fb8def869c
rename strformat.fmt to % as it works better with backslash escape sequences; refs #6958
2018-01-11 18:05:14 +01:00
Oscar Nihlgård
cde3a4f586
Add additional $ fallback to fmt
2018-01-09 00:18:32 +01:00
Andreas Rumpf
b168efd1ab
make strformat.fmt take the same signature as strfmt.fmt in order to force an ambiguity error; refs #6958
2018-01-08 13:43:43 +01:00
Mathias Stearn
af1404c85d
Minor fixes to strformat docs ( #6953 )
2017-12-21 09:58:24 +01:00
Araq
69aeb86f49
strformat: fix the documentation examples
2017-12-17 20:40:43 +01:00
Araq
3fc7082887
strformat: default for numbers is right alignment
2017-12-17 20:34:32 +01:00
Araq
2e61e6edf9
strformat: support 'sign' as Python does
2017-12-17 17:58:04 +01:00
Araq
5c7493f833
strformat: added '^' char for center alignment for Python compat
2017-12-17 17:21:43 +01:00
Araq
26198e4ee7
added new stdlib module 'strformat'; refs #5600 ; refs #6507
2017-12-17 13:58:40 +01:00