ChanServ changed the topic of #lowempire to: Low Level Empire | This channel was created for Algorithms, Compilers, OS, Hardware, CS theory stuff (low-level) | be patient, polite | don't do off top | Ask your question | Paste your codes/long texts https://paste.debian.net/ or "echo just testing! | nc termbin.com 9999" | Logs: https://freenode.irclog.whitequark.org/lowempire
ascii has joined #lowempire
ascii has quit [Ping timeout: 246 seconds]
ascii has joined #lowempire
ascii has quit [Ping timeout: 260 seconds]
ascii has joined #lowempire
ascii has quit [Ping timeout: 272 seconds]
ascii has joined #lowempire
ascii has quit [Remote host closed the connection]
ascii has joined #lowempire
marlin has joined #lowempire
ascii has quit [Remote host closed the connection]
lucid_0x80 has joined #lowempire
ascii has joined #lowempire
ascii has quit [Ping timeout: 256 seconds]
ascii has joined #lowempire
ascii has quit [Ping timeout: 246 seconds]
ascii has joined #lowempire
ascii has quit [Ping timeout: 260 seconds]
ascii has joined #lowempire
marlin has quit [Quit: Konversation terminated!]
ascii has quit [Remote host closed the connection]
ascii has joined #lowempire
ascii has quit [Remote host closed the connection]
lucid_0x80 has quit [Ping timeout: 246 seconds]
dumenci has joined #lowempire
ascii has joined #lowempire
ascii has quit [Remote host closed the connection]
ascii has joined #lowempire
ascii has quit [Remote host closed the connection]
ascii has joined #lowempire
<ascii>
dumenci ne var ne yox?)))
<dumenci>
shukur
<dumenci>
salamatcio
<dumenci>
salamatcilig
<dumenci>
sende ne var ne yox? )
<ascii>
salamatciligdi)) nenirsen?)
<dumenci>
hecne isleyirem
<dumenci>
as usual :-D
<dumenci>
sen neynirsen?
<ascii>
mende ele)) nece gedir ishler?? mennen sora gec cixdiz o gun ?
<dumenci>
yoo
<dumenci>
1 saat oturduq cixdiq ele
<dumenci>
"
<dumenci>
:-D
<dumenci>
hami uje yuxuluyurdu
<dumenci>
:-d
<dumenci>
yatirdi
<dumenci>
gece gelib 4de yatmisame :-d
<dumenci>
yuxumda gelmedi gelennen sonra
<ascii>
xaxaxaxa))))) be ne basirdilar orda biz hele burdayig zad))))
<ascii>
vaxtin var qisaca bir sual verim
<ascii>
tez bazar :DD
<dumenci>
aha elbette ver gelsun
<ascii>
okay) demeli pythonda logger-e msg oturursen a,onu men f string-nen oturende yeni f"test {name}" bele, mene warning cixardir ki lazy load ele
<ascii>
yeni bele "test %s" % name
<ascii>
ferqi nedi? yeni menne niye warning verirki onu?
<ascii>
prinsip eyni deil?
<ascii>
arxada ishleme prinsipi maraglidi
<dumenci>
format string prosesidir o
<dumenci>
f string deyesen yenidir onun haqqinda cox genis melumatim yoxdur
<dumenci>
indi baxdim amma
<dumenci>
baxdigima gore
<dumenci>
name="test" f"test{name}"
<dumenci>
bele edende
<dumenci>
eslinde bele islemelidir
<dumenci>
f string bele basha dusdum ki butun local scope-a aid olur local scopedaki variablei goturur onun valuesi ile replace edir
<dumenci>
>>> name = "test"
<dumenci>
>>> f"hello {name}"
<dumenci>
>>>
<dumenci>
'hello test'
<dumenci>
sen "test %s" % name edende
<ascii>
ishlemesin bilirem prostu niye loggere stringi ele oturende meslehet gorur ki fstring yox kohne variantda lazy loading olan variantnan yeni bele name="tural" "name -> %s" % name
<ascii>
kecen defe cixmiwdi qabgima indi vermir amma ba bele bir shey idi
<ascii>
(format_string.format(format_args...))”. Such calls should use % formatting instead, but leave interpolation to the logging function by passing the parameters as arguments.
<dumenci>
he gozle
<ascii>
nedi sebebi?
<dumenci>
bu loggerin optimizationidir
<dumenci>
birdeq
<ascii>
he nese optimizatsiya meselesidi, prosto ferqi nediki ikiside stringi formatdida
<ascii>
bular yeni arxada eyni prinsipi gormuller?
<dumenci>
yox mellim
<dumenci>
sen f"{name}" yazanda
<dumenci>
python onu interpolate etmir
<dumenci>
cunki name variabledir
<dumenci>
yuxarilarda hardadisa
<dumenci>
onun valuesi teyin oldugdan sonra
<dumenci>
deyise biler
<dumenci>
python onu nevaxt interpolate edir bilirsen
<dumenci>
f{name} setrine catanda
<dumenci>
ancaq sen
<dumenci>
bele yazsan
<dumenci>
meselen
<dumenci>
"%s" % name
<dumenci>
python uje bunu birbasha evaluate edir
<dumenci>
yeni bu f string-de
<dumenci>
birbasha o stringin objectine muraciet edir
<dumenci>
Formatting of message arguments is deferred until it cannot be avoided. However, computing the arguments passed to the logging method can also be expensive, and you may want to avoid doing it if the logger will just throw away your event. To decide what to do, you can call the isEnabledFor() method which takes a level argument and returns true if the event would be created by the Logger for that level of call. You can write code like this:
<dumenci>
sen muraciet edende var % name sheklinde
<dumenci>
bu lazy evaluate edir
<dumenci>
sen muraciet edirsen
<dumenci>
sonra evaluate edir
ascii has quit [Remote host closed the connection]
<dumenci>
{name} de ele deyil sen objecte muraciet edirsen deye
<dumenci>
o uje evaluate edilir mecburan
<dumenci>
f-de
<dumenci>
f string-de
<dumenci>
yeni olur run time (kind of)
<dumenci>
meselen
<dumenci>
name = "emin" (evaluated)
<dumenci>
name = "Tural"
<dumenci>
(evaluated)
<dumenci>
name = "test" (evaluated)
<dumenci>
f"{name}" goturur name objectini
<dumenci>
onu embedded edir
<dumenci>
bele yazanda ise
<dumenci>
name = "emin" (evaluated)
ascii has joined #lowempire
<dumenci>
name = "Tural" (evaluated) *object
<dumenci>
name ="Test Name" (evaluated) *object
<dumenci>
"test name is %s" % name
<dumenci>
sen bu name objectini istifade etmeyene kimi
<dumenci>
o evaluate edilmir
<dumenci>
string kimi
<dumenci>
ne vaxtki logging onu istifade edecek onda da
<dumenci>
evaluate edecek
<dumenci>
yeni bu optimizasiyani logging ozu edir
<dumenci>
lazy interpolation
<dumenci>
It should be noted that an f-string is really an expression evaluated at run time, not a constant value
<ascii>
aydindi mellim bildim he) prosto men ele bilirdim arxada eyni prinsipnen ishliyir ona gore catmirdiki niye meslehet gormur ele elemeyi)
<dumenci>
eyni prinsiple islemir
<ascii>
you are awesome ))))
<dumenci>
biri lazim olanda evaluate edir biri ise ahead of time