guibou / PyF

Haskell QuasiQuoter for String Formatting

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Grouping options does not work with padding inside

guibou opened this issue · comments

In python:

>>> f"{0:0=#10_b}"
'0b000_0000

In PyF:

> [f'|{0:0=#10_b}|] :: String
"0b00000000"

Actually it onl works if the padding value is 0.

This is super weird actually ;)

In python, the semantic is interesting:

>>> f"{0:~=#10_b}"
'0b~~~~~~~0'
>>> f"{0:0=#10_b}"
'0b000_0000'