蠎周刊 417 ~ 可以在 Zoom/Skype 中使用的替身
原文:PyCoder’sWeekly-Issue#417
Thebetareleaseofpipversion20.1hasdroppedandincludedthenext-generationdependencyresolver!Theresolveriscurrentlyturnedoffbydefaultbecauseit’sunstableandnotreadyforeverydayuse.Thepipmainaintersdoencourageuserstotryitout,however,andfeedbackonthenewresolvercanbesubmittedbyfillingoutasurvey.
(是也乎:
不过默认关闭着…)
“Thanksto[the]generosityofindividualandcorporatedonorsanddecreasingPyCon2020expenses,weestimatethatthePSFwillnowonlyneed$141,713fromitsfinancialreservetogetthrough2020.”
(是也乎:
嗯哼?老爹在任时,从没见这种嗯哼?
)
Python3’spathlibmodulehastakensometimetogaintractionsinceitwasintroducedinPython3.4.Afterall,theos.pathmodulehadbeenthedefactotoolforworkingwithpathsinPython.Whychangecodethatworks?LearnwhypathlibisabetterchoiceforworkingwithfilepathsinPythoninthisthoroughtutorial.
Inthistutorial,you’lllearnhowtotakeyourtestingtothenextlevelwithpytest.You’llcoverintermediateandadvancedpytestfeaturessuchasfixtures,marks,parameters,andplugins.Withpytest,youcanmakeyourtestsuitesfast,effective,andlesspainfultomaintain.
(是也乎:
不过,传统场景还是unittest为先吧?
)
“Python2.7.18isaspecialrelease.Irefer,ofcourse,tothefactthat‘2.7.18’istheclosestanyPythonversionnumberwilleverapproximatee,Euler’snumber.Simplyexquisite!”
(是也乎:
放心,俺一定会忠诚再用42年的…
)
LearnhowtotakeyourPythoncodinginterviewskillstothenextlevelandusePython’sbuilt-infunctionsandmodulestosolveproblemsfasterandmoreeasily.
(是也乎:
关键还是用Python的内置函数和模块哪…
)
Discussions
Whenhissongetsassignedamenialandrepetitivetaskforhismathhomework,hisDaddoestheonlyreasonablethingandintroduceshimtoPython.
(是也乎:
真的是家传手艺了
)
“Sohere’sthething.I’mbuildingsomecoolwebappsandhaveaprettygoodunderstandingofwhatI’mdoing.However,IalwaysfeelkindaguiltybecauseIdidn’tbuild100%ofitfromscratch.Iusedvariouslibrariestoachievecertainfunctionality.It’slikeIcheatedmywaytocompletionbyusingtheselibraries.IsthisnormaloramIoverthinking?”
Aretherecertainsituationswhereoneismoreusefulthantheother?
(是也乎:
其实并无差别,但是,程序猿为了少打字,真的是,什么事儿都敢干的…
)
(是也乎:
嗯哼,隔壁也分析了,其实运行速度只比C++原创的慢一点儿…
)
Articles,TutorialsandTalks
Ifyou’veusedawebframeworkinPython,you’veprobablyusedadecoratorbefore.Butdoyouknowhowtheywork?Doyouknowhowtomakeyourown?SamIrelandintroducesdecoratorsinthisbeginner-friendlyarticlebyfirstexploringatypicalprobleminwhichdecoratorsarise,thengentlywalkingyouthroughasolution.
Inthisseries,MaraBos—creatoroftheinline-pythonRustcrate—walksyouthroughdevelopingaRustcrateformixingPythonintoyourRustcodefromscratch.Part1teachesyouhowtoworkwithPythonfromRust,createmacros,andhandlewhitespace.
(是也乎:
开始了,Python从设计之初就非常重视C扩展,以便可以嵌入到未来任何生态中,
果然,Rust也逃不了的…
)
Finitestatemachinesareamathematicalmodelofcomputationwithnumerousapplicationsinbothhardwareandsoftware.Inthistutorial,you’lllearnwhatafinitestatemachineisandhowtocreateoneinPythonusingcoroutines.
Buildingadatasciencelibraryiswalkingbetweentwoworlds:datascienceisdominatedbyPythonnotebooks,afastandconvenientwaytoexperimentanddemonstratecodeinthebrowser,whilesoftwareengineeringfocusesonmakingsoftwarereliableandrepeatable.LearnhowStellarGraph,agraphmachinelearninglibrarybuiltonTensorflowandKeras,usescontinuousintegrationtokeepthebenefitsofboth.
“HPyisajointprojectwhichisbeingdevelopedbyPyPy,CPythonandCythondevelopers.ItaimstodesignabetterCAPIforwritingPythonextensionswhichismorefriendlytoalternativeimplementationsandwhichwouldallowCPythonitselfmorefreedomtoexperiment(e.g.byusingarealGCinsteadofrefcounting).”
(是也乎:
大家无论多喜欢Python,生产中,还是得和C系统交流,所以…
)
Workinonalargeprojectmeanslotsofcontextswitches.Duringasingleday,youmayneedtodoreviewothers’pullrequests,respondtocodereviewsonyourownpullrequests,workonfeatures,applysmallpatches.HuonWilsonshareshisworkflowforminimizingthepainofthesecontextswitchesusinggitworktreesandpyenv.
(是也乎:
嗯哼?这脑洞可以哪…
)
“ndindexisanewlibrarythatprovideshighlevelobjectsrepresentingthevariousobjectsthatcanindexNumPyarrays.TheseobjectsautomaticallycanonicalizeundertheassumptionofNumPyindexingsemantics,andcanbemanipulatedwithauniformAPI.”
Inthistutorial,you’lllearnallaboutfivedifferentsortingalgorithmsinPythonfrombothatheoreticalandapracticalstandpoint.You’llalsolearnseveralrelatedandimportantconcepts,includingBigOnotationandrecursion.
(是也乎:
日常行为中包含大智慧.
)
LearnhowtousetheGitHubAPItoscrapeGitHuborganizationsthatyoucontributetoandcreatestyledcomponentsthatyoucanembedonyourwebsite.
(是也乎:
当github变成实际意义上的程序猿身份证.
)
(是也乎:
不是不可以,只是没必要.
)
InterestingProjects,ToolsandLibraries,Projects&Code
(是也乎:
Tk永远不死.
)
(是也乎:
这样我们就可以用任何一位历史名人作自己的实时直播了…
不过要求的算力也非常…
)
(是也乎:
嚓…没毛病
可以在RPi上运行都…
)
(是也乎:
clj是在JVM上运行的Lisp,能自由调用JAVA的一切模块;但是,Lisp语法还是很囧的,所以,就将py嵌入到clj中来融合到JAVA世界…
等等,不是有Jython嘛?
)
(是也乎:
ndarrays太老了,应该升级了…于是…)
(是也乎:
机械视觉太火了,以往都是C++的OpenCV为基础,Py看不下去了,然后…
)
Events,MeetUp真的是全球线下活动组织中心
❤️HappyPythonic;-(大妈私人无责任播报)
101camp8py即将(4.27)开始报名(能开发票;-)
参考:
NN3991
好文笔,感叹号年度配额:1/3
投稿/反馈邮箱:
(邮件列表地址,当成正常邮件发送邮件就好,不用注册,不用翻越…)
ZoomQuiet/大妈
就是四处是也乎,( ̄▽ ̄)的那个大妈:
蟒营™Python入门班第8期已经开始报名:
(明确:能开发票)
蟒营™原创课程服务:
蟒营™:Py入门班
Poweredby:Zoom.Quiet/昧因科技
本文由博客一文多发平台OpenWrite发布;
主题测试文章,只做测试使用。发布者:最新稳定辅助网,转转请注明出处:https://www.744broad.com/12731.html