NEWS.txt 696 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852
  1. +++++++++++
  2. Python News
  3. +++++++++++
  4. What's New in Python 3.7.7 final?
  5. =================================
  6. *Release date: 2020-03-10*
  7. Library
  8. -------
  9. - bpo-13487: Avoid a possible *"RuntimeError: dictionary changed size during
  10. iteration"* from :func:`inspect.getmodule` when it tried to loop through
  11. :attr:`sys.modules`.
  12. Documentation
  13. -------------
  14. - bpo-17422: The language reference no longer restricts default class
  15. namespaces to dicts only.
  16. What's New in Python 3.7.7 release candidate 1?
  17. ===============================================
  18. *Release date: 2020-03-04*
  19. Security
  20. --------
  21. - bpo-39401: Avoid unsafe load of ``api-ms-win-core-path-l1-1-0.dll`` at
  22. startup on Windows 7.
  23. Core and Builtins
  24. -----------------
  25. - bpo-39776: Fix race condition where threads created by PyGILState_Ensure()
  26. could get a duplicate id.
  27. This affects consumers of tstate->id like the contextvar caching
  28. machinery, which could return invalid cached objects under heavy thread
  29. load (observed in embedded scenarios).
  30. - bpo-39778: Fixed a crash due to incorrect handling of weak references in
  31. ``collections.OrderedDict`` classes. Patch by Pablo Galindo.
  32. - bpo-39382: Fix a use-after-free in the single inheritance path of
  33. ``issubclass()``, when the ``__bases__`` of an object has a single
  34. reference, and so does its first item. Patch by Yonatan Goldschmidt.
  35. - bpo-39606: Fix regression caused by fix for bpo-39386, that prevented
  36. calling ``aclose`` on an async generator that had already been closed or
  37. exhausted.
  38. - bpo-39510: Fix segfault in ``readinto()`` method on closed BufferedReader.
  39. - bpo-39453: Fixed a possible crash in :meth:`list.__contains__` when a list
  40. is changed during comparing items. Patch by Dong-hee Na.
  41. - bpo-39427: Document all possibilities for the ``-X`` options in the
  42. command line help section. Patch by Pablo Galindo.
  43. - bpo-39421: Fix possible crashes when operating with the functions in the
  44. :mod:`heapq` module and custom comparison operators.
  45. - bpo-39386: Prevent double awaiting of async iterator.
  46. - bpo-38588: Fix possible crashes in dict and list when calling
  47. :c:func:`PyObject_RichCompareBool`.
  48. - bpo-39031: When parsing an "elif" node, lineno and col_offset of the node
  49. now point to the "elif" keyword and not to its condition, making it
  50. consistent with the "if" node. Patch by Lysandros Nikolaou.
  51. - bpo-38610: Fix possible crashes in several list methods by holding strong
  52. references to list elements when calling
  53. :c:func:`PyObject_RichCompareBool`.
  54. Library
  55. -------
  56. - bpo-39794: Add --without-decimal-contextvar build option. This enables a
  57. thread-local rather than a coroutine local context.
  58. - bpo-39769: The :func:`compileall.compile_dir` function's *ddir* parameter
  59. and the compileall command line flag `-d` no longer write the wrong
  60. pathname to the generated pyc file for submodules beneath the root of the
  61. directory tree being compiled. This fixes a regression introduced with
  62. Python 3.5.
  63. - bpo-30566: Fix :exc:`IndexError` when trying to decode an invalid string
  64. with punycode codec.
  65. - bpo-39649: Remove obsolete check for `__args__` in
  66. bdb.Bdb.format_stack_entry.
  67. - bpo-27657: The original fix for bpo-27657, "Fix urlparse() with numeric
  68. paths" (GH-16839) included in 3.7.6, inadvertently introduced a behavior
  69. change that broke several third-party packages relying on the original
  70. undefined parsing behavior. The change is reverted in 3.7.7, restoring the
  71. behavior of 3.7.5 and earlier releases.
  72. - bpo-21016: The :mod:`pydoc` and :mod:`trace` modules now use the
  73. :mod:`sysconfig` module to get the path to the Python standard library, to
  74. support uncommon installation path like ``/usr/lib64/python3.9/`` on
  75. Fedora. Patch by Jan Matějek.
  76. - bpo-39548: Fix handling of header in
  77. :class:`urllib.request.AbstractDigestAuthHandler` when the optional
  78. ``qop`` parameter is not present.
  79. - bpo-39450: Striped whitespace from docstring before returning it from
  80. :func:`unittest.case.shortDescription`.
  81. - bpo-39493: Mark ``typing.IO.closed`` as a property
  82. - bpo-39485: Fix a bug in :func:`unittest.mock.create_autospec` that would
  83. complain about the wrong number of arguments for custom descriptors
  84. defined in an extension module returning functions.
  85. - bpo-39430: Fixed race condition in lazy imports in :mod:`tarfile`.
  86. - bpo-39389: Write accurate compression level metadata in :mod:`gzip`
  87. archives, rather than always signaling maximum compression.
  88. - bpo-39274: ``bool(fraction.Fraction)`` now returns a boolean even if
  89. (numerator != 0) does not return a boolean (ex: numpy number).
  90. - bpo-39242: Updated the Gmane domain from news.gmane.org to news.gmane.io
  91. which is used for examples of :class:`~nntplib.NNTP` news reader server
  92. and nntplib tests.
  93. - bpo-39152: Fix ttk.Scale.configure([name]) to return configuration tuple
  94. for name or all options. Giovanni Lombardo contributed part of the patch.
  95. - bpo-39198: If an exception were to be thrown in `Logger.isEnabledFor`
  96. (say, by asyncio timeouts or stopit) , the `logging` global lock may not
  97. be released appropriately, resulting in deadlock. This change wraps that
  98. block of code with `try...finally` to ensure the lock is released.
  99. - bpo-39191: Perform a check for running loop before starting a new task in
  100. ``loop.run_until_complete()`` to fail fast; it prevents the side effect of
  101. new task spawning before exception raising.
  102. - bpo-38871: Correctly parenthesize filter-based statements that contain
  103. lambda expressions in mod:`lib2to3`. Patch by Dong-hee Na.
  104. - bpo-39142: A change was made to logging.config.dictConfig to avoid
  105. converting instances of named tuples to ConvertingTuple. It's assumed that
  106. named tuples are too specialised to be treated like ordinary tuples; if a
  107. user of named tuples requires ConvertingTuple functionality, they will
  108. have to implement that themselves in their named tuple class.
  109. - bpo-38971: Open issue in the BPO indicated a desire to make the
  110. implementation of codecs.open() at parity with io.open(), which implements
  111. a try/except to assure file stream gets closed before an exception is
  112. raised.
  113. - bpo-39057: :func:`urllib.request.proxy_bypass_environment` now ignores
  114. leading dots and no longer ignores a trailing newline.
  115. - bpo-39056: Fixed handling invalid warning category in the -W option. No
  116. longer import the re module if it is not needed.
  117. - bpo-39055: :func:`base64.b64decode` with ``validate=True`` raises now a
  118. binascii.Error if the input ends with a single ``\n``.
  119. - bpo-38878: Fixed __subclasshook__ of :class:`os.PathLike` to return a
  120. correct result upon inheritence. Patch by Bar Harel.
  121. - bpo-35182: Fixed :func:`Popen.communicate` subsequent call crash when the
  122. child process has already closed any piped standard stream, but still
  123. continues to be running. Patch by Andriy Maletsky.
  124. - bpo-38473: Use signature from inner mock for autospecced methods attached
  125. with :func:`unittest.mock.attach_mock`. Patch by Karthikeyan Singaravelan.
  126. - bpo-38293: Add :func:`copy.copy` and :func:`copy.deepcopy` support to
  127. :func:`property` objects.
  128. - bpo-37953: In :mod:`typing`, improved the ``__hash__`` and ``__eq__``
  129. methods for :class:`ForwardReferences`.
  130. - bpo-36406: Handle namespace packages in :mod:`doctest`. Patch by
  131. Karthikeyan Singaravelan.
  132. Documentation
  133. -------------
  134. - bpo-13790: Change 'string' to 'specification' in format doc.
  135. - bpo-39530: Fix misleading documentation about mixed-type numeric
  136. comparisons.
  137. - bpo-17422: The language reference now specifies restrictions on class
  138. namespaces. Adapted from a patch by Ethan Furman.
  139. - bpo-39654: In pyclbr doc, update 'class' to 'module' where appropriate and
  140. add readmodule comment. Patch by Hakan Çelik.
  141. - bpo-39392: Explain that when filling with turtle, overlap regions may be
  142. left unfilled.
  143. - bpo-39381: Mention in docs that :func:`asyncio.get_event_loop` implicitly
  144. creates new event loop only if called from the main thread.
  145. - bpo-38918: Add an entry for ``__module__`` in the "function" & "method"
  146. sections of the `inspect docs types and members table
  147. <https://docs.python.org/3/library/inspect.html#types-and-members>`_
  148. - bpo-3530: In the :mod:`ast` module documentation, fix a misleading
  149. ``NodeTransformer`` example and add advice on when to use the
  150. ``fix_missing_locations`` function.
  151. Tests
  152. -----
  153. - bpo-38546: Fix test_ressources_gced_in_workers() of
  154. test_concurrent_futures: explicitly stop the manager to prevent leaking a
  155. child process running in the background after the test completes.
  156. Build
  157. -----
  158. - bpo-39144: The ctags and etags build targets both include Modules/_ctypes
  159. and Python standard library source files.
  160. Windows
  161. -------
  162. - bpo-38597: :mod:`distutils` will no longer statically link
  163. :file:`vcruntime140.dll` when a redistributable version is unavailable.
  164. All future releases of CPython will include a copy of this DLL to ensure
  165. distributed extensions can continue to load.
  166. - bpo-38380: Update Windows builds to use SQLite 3.31.1
  167. - bpo-39439: Reduce overhead when using multiprocessing in a Windows virtual
  168. environment
  169. - bpo-39185: The build.bat script has additional options for very-quiet
  170. output (-q) and very-verbose output (-vv)
  171. macOS
  172. -----
  173. - bpo-38380: Update macOS builds to use SQLite 3.31.1
  174. IDLE
  175. ----
  176. - bpo-39781: Selecting code context lines no longer causes a jump.
  177. - bpo-39663: Add tests for pyparse find_good_parse_start().
  178. - bpo-39600: In the font configuration window, remove duplicated font names.
  179. - bpo-30780: Add remaining configdialog tests for buttons and highlights and
  180. keys tabs.
  181. - bpo-39388: IDLE Settings Cancel button now cancels pending changes
  182. - bpo-39050: Make IDLE Settings dialog Help button work again.
  183. - bpo-34118: Tag memoryview, range, and tuple as classes, the same as list,
  184. etcetera, in the library manual built-in functions list.
  185. - bpo-38792: Close an IDLE shell calltip if a :exc:`KeyboardInterrupt` or
  186. shell restart occurs. Patch by Zackery Spytz.
  187. - bpo-32989: Add tests for editor newline_and_indent_event method. Remove
  188. dead code from pyparse find_good_parse_start method.
  189. What's New in Python 3.7.6 final?
  190. =================================
  191. *Release date: 2019-12-18*
  192. macOS
  193. -----
  194. - bpo-38295: Prevent failure of test_relative_path in test_py_compile on
  195. macOS Catalina.
  196. What's New in Python 3.7.6 release candidate 1?
  197. ===============================================
  198. *Release date: 2019-12-11*
  199. Security
  200. --------
  201. - bpo-38945: Newline characters have been escaped when performing uu
  202. encoding to prevent them from overflowing into to content section of the
  203. encoded file. This prevents malicious or accidental modification of data
  204. during the decoding process.
  205. - bpo-37228: Due to significant security concerns, the *reuse_address*
  206. parameter of :meth:`asyncio.loop.create_datagram_endpoint` is no longer
  207. supported. This is because of the behavior of ``SO_REUSEADDR`` in UDP. For
  208. more details, see the documentation for
  209. ``loop.create_datagram_endpoint()``. (Contributed by Kyle Stanley, Antoine
  210. Pitrou, and Yury Selivanov in :issue:`37228`.)
  211. - bpo-38804: Fixes a ReDoS vulnerability in :mod:`http.cookiejar`. Patch by
  212. Ben Caller.
  213. Core and Builtins
  214. -----------------
  215. - bpo-38673: In REPL mode, don't switch to PS2 if the line starts with
  216. comment or whitespace. Based on work by Batuhan Taşkaya.
  217. - bpo-38535: Fixed line numbers and column offsets for AST nodes for calls
  218. without arguments in decorators.
  219. - bpo-38379: When cyclic garbage collection (gc) runs finalizers that
  220. resurrect unreachable objects, the current gc run ends, without collecting
  221. any cyclic trash. However, the statistics reported by ``collect()`` and
  222. ``get_stats()`` claimed that all cyclic trash found was collected, and
  223. that the resurrected objects were collected. Changed the stats to report
  224. that none were collected.
  225. - bpo-35409: Ignore GeneratorExit exceptions when throwing an exception into
  226. the aclose coroutine of an asynchronous generator.
  227. Library
  228. -------
  229. - bpo-39006: Fix asyncio when the ssl module is missing: only check for
  230. ssl.SSLSocket instance if the ssl module is available.
  231. - bpo-38979: Return class from ``ContextVar.__class_getitem__`` to simplify
  232. subclassing.
  233. - bpo-38986: Make repr of C accelerated TaskWakeupMethWrapper the same as of
  234. pure Python version.
  235. - bpo-33684: Fix ``json.tool`` failed to read a JSON file with non-ASCII
  236. characters when locale encoding is not UTF-8.
  237. - bpo-26730: Fix ``SpooledTemporaryFile.rollover()`` might corrupt the file
  238. when it is in text mode. Patch by Serhiy Storchaka.
  239. - bpo-37838: :meth:`typing.get_type_hints` properly handles functions
  240. decorated with :meth:`functools.wraps`.
  241. - bpo-38821: Fix unhandled exceptions in :mod:`argparse` when
  242. internationalizing error messages for arguments with ``nargs`` set to
  243. special (non-integer) values. Patch by Federico Bond.
  244. - bpo-38820: Make Python compatible with OpenSSL 3.0.0.
  245. :func:`ssl.SSLSocket.getpeercert` no longer returns IPv6 addresses with a
  246. trailing new line.
  247. - bpo-38785: Prevent asyncio from crashing if parent ``__init__`` is not
  248. called from a constructor of object derived from ``asyncio.Future``.
  249. - bpo-27805: Allow opening pipes and other non-seekable files in append mode
  250. with :func:`open`.
  251. - bpo-38686: Added support for multiple ``qop`` values in
  252. :class:`urllib.request.AbstractDigestAuthHandler`.
  253. - bpo-38334: Fixed seeking backward on an encrypted
  254. :class:`zipfile.ZipExtFile`.
  255. - bpo-31202: The case the result of :func:`pathlib.WindowsPath.glob` matches
  256. now the case of the pattern for literal parts.
  257. - bpo-38109: Add missing :data:`stat.S_IFDOOR`, :data:`stat.S_IFPORT`,
  258. :data:`stat.S_IFWHT`, :func:`stat.S_ISDOOR`, :func:`stat.S_ISPORT`, and
  259. :func:`stat.S_ISWHT` values to the Python implementation of :mod:`stat`.
  260. - bpo-38422: Clarify docstrings of pathlib suffix(es)
  261. - bpo-38405: Nested subclasses of :class:`typing.NamedTuple` are now
  262. pickleable.
  263. - bpo-38332: Prevent :exc:`KeyError` thrown by :func:`_encoded_words.decode`
  264. when given an encoded-word with invalid content-type encoding from
  265. propagating all the way to :func:`email.message.get`.
  266. - bpo-38341: Add :exc:`smtplib.SMTPNotSupportedError` to the :mod:`smtplib`
  267. exported names.
  268. - bpo-13153: OS native encoding is now used for converting between Python
  269. strings and Tcl objects. This allows to display, copy and paste to
  270. clipboard emoji and other non-BMP characters. Converting strings from Tcl
  271. to Python and back now never fails (except MemoryError).
  272. - bpo-36993: Improve error reporting for corrupt zip files with bad zip64
  273. extra data. Patch by Daniel Hillier.
  274. - bpo-36952: Starting with Python 3.3, importing ABCs from
  275. :mod:`collections` is deprecated, and import should be done from
  276. :mod:`collections.abc`. Still being able to import from :mod:`collections`
  277. was marked for removal in 3.8, but has been delayed to 3.9; documentation
  278. and ``DeprecationWarning`` clarified.
  279. - bpo-36820: Break cycle generated when saving an exception in socket.py,
  280. codeop.py and dyld.py as they keep alive not only the exception but user
  281. objects through the ``__traceback__`` attribute. Patch by Mario Corchero.
  282. - bpo-34776: Fix dataclasses to support forward references in type
  283. annotations
  284. - bpo-33348: lib2to3 now recognizes expressions after ``*`` and `**` like in
  285. ``f(*[] or [])``.
  286. - bpo-27657: Fix urllib.parse.urlparse() with numeric paths. A string like
  287. "path:80" is no longer parsed as a path but as a scheme ("path") and a
  288. path ("80").
  289. Documentation
  290. -------------
  291. - bpo-38351: Modernize :mod:`email` examples from %-formatting to f-strings.
  292. - bpo-38592: Add Brazilian Portuguese to the language switcher at Python
  293. Documentation website.
  294. - bpo-38294: Add list of no-longer-escaped chars to re.escape documentation
  295. Tests
  296. -----
  297. - bpo-38547: Fix test_pty: if the process is the session leader, closing the
  298. master file descriptor raises a SIGHUP signal: simply ignore SIGHUP when
  299. running the tests.
  300. - bpo-38965: Fix test_faulthandler on GCC 10. Use the "volatile" keyword in
  301. ``faulthandler._stack_overflow()`` to prevent tail call optimization on
  302. any compiler, rather than relying on compiler specific pragma.
  303. - bpo-38669: Raise :exc:`TypeError` when passing target as a string with
  304. :meth:`unittest.mock.patch.object`.
  305. - bpo-35998: Fix a race condition in test_asyncio.test_start_tls_server_1().
  306. Previously, there was a race condition between the test main() function
  307. which replaces the protocol and the test ServerProto protocol which sends
  308. ANSWER once it gets HELLO. Now, only the test main() function is
  309. responsible to send data, ServerProto no longer sends data.
  310. - bpo-37531: On timeout, regrtest no longer attempts to call
  311. ``popen.communicate()`` again: it can hang until all child processes using
  312. stdout and stderr pipes completes. Kill the worker process and ignores its
  313. output. Change also the faulthandler timeout of the main process from 1
  314. minute to 5 minutes, for Python slowest buildbots.
  315. Build
  316. -----
  317. - bpo-37404: :mod:`asyncio` now raises :exc:`TyperError` when calling
  318. incompatible methods with an :class:`ssl.SSLSocket` socket. Patch by Ido
  319. Michael.
  320. - bpo-38809: On Windows, build scripts will now recognize and use python.exe
  321. from an active virtual env.
  322. - bpo-37415: Fix stdatomic.h header check for ICC compiler: the ICC
  323. implementation lacks atomic_uintptr_t type which is needed by Python.
  324. Windows
  325. -------
  326. - bpo-38589: Fixes HTML Help shortcut when Windows is not installed to C
  327. drive
  328. IDLE
  329. ----
  330. - bpo-38944: Excape key now closes IDLE completion windows. Patch by Johnny
  331. Najera.
  332. - bpo-38943: Fix IDLE autocomplete windows not always appearing on some
  333. systems. Patch by Johnny Najera.
  334. - bpo-38862: 'Strip Trailing Whitespace' on the Format menu removes extra
  335. newlines at the end of non-shell files.
  336. - bpo-26353: Stop adding newline when saving an IDLE shell window.
  337. - bpo-38636: Fix IDLE Format menu tab toggle and file indent width. These
  338. functions (default shortcuts Alt-T and Alt-U) were mistakenly disabled in
  339. 3.7.5 and 3.8.0.
  340. - bpo-4630: Add an option to toggle IDLE's cursor blink for shell, editor,
  341. and output windows. See Settings, General, Window Preferences, Cursor
  342. Blink. Patch by Zachary Spytz.
  343. - bpo-38598: Do not try to compile IDLE shell or output windows
  344. - bpo-36698: IDLE no longer fails when write non-encodable characters to
  345. stderr. It now escapes them with a backslash, as the regular Python
  346. interpreter. Added the ``errors`` field to the standard streams.
  347. Tools/Demos
  348. -----------
  349. - bpo-38118: Update Valgrind suppression file to ignore a false alarm in
  350. :c:func:`PyUnicode_Decode` when using GCC builtin strcmp().
  351. - bpo-38347: pathfix.py: Assume all files that end on '.py' are Python
  352. scripts when working recursively.
  353. C API
  354. -----
  355. - bpo-38540: Fixed possible leak in :c:func:`PyArg_Parse` and similar
  356. functions for format units ``"es#"`` and ``"et#"`` when the macro
  357. :c:macro:`PY_SSIZE_T_CLEAN` is not defined.
  358. - bpo-38395: Fix a crash in :class:`weakref.proxy` objects due to incorrect
  359. lifetime management when calling some associated methods that may delete
  360. the last reference to object being referenced by the proxy. Patch by Pablo
  361. Galindo.
  362. What's New in Python 3.7.5 final?
  363. =================================
  364. *Release date: 2019-10-14*
  365. Library
  366. -------
  367. - bpo-38368: Prevent ctypes crash when handling arrays in structs/unions.
  368. - bpo-38449: Revert GH-15522, which introduces a regression in
  369. :meth:`mimetypes.guess_type` due to improper handling of filenames as
  370. urls.
  371. Windows
  372. -------
  373. - bpo-38344: Fix syntax in activate.bat.
  374. What's New in Python 3.7.5 release candidate 1?
  375. ===============================================
  376. *Release date: 2019-10-01*
  377. Security
  378. --------
  379. - bpo-38243: Escape the server title of
  380. :class:`xmlrpc.server.DocXMLRPCServer` when rendering the document page as
  381. HTML. (Contributed by Dong-hee Na in :issue:`38243`.)
  382. - bpo-38174: Update vendorized expat library version to 2.2.8, which
  383. resolves CVE-2019-15903.
  384. - bpo-37764: Fixes email._header_value_parser.get_unstructured going into an
  385. infinite loop for a specific case in which the email header does not have
  386. trailing whitespace, and the case in which it contains an invalid encoded
  387. word. Patch by Ashwin Ramaswami.
  388. - bpo-37461: Fix an infinite loop when parsing specially crafted email
  389. headers. Patch by Abhilash Raj.
  390. - bpo-34155: Fix parsing of invalid email addresses with more than one ``@``
  391. (e.g. a@b@c.com.) to not return the part before 2nd ``@`` as valid email
  392. address. Patch by maxking & jpic.
  393. Core and Builtins
  394. -----------------
  395. - bpo-36871: Improve error handling for the assert_has_calls method of
  396. mocks. Fixed a bug where any errors encountered while binding the expected
  397. calls to the mock's spec were silently swallowed, leading to misleading
  398. error output.
  399. - bpo-38013: Allow to call ``async_generator_athrow().throw(...)`` even for
  400. non-started async generator helper. It fixes annoying warning at the end
  401. of :func:`asyncio.run` call.
  402. - bpo-38124: Fix an off-by-one error in PyState_AddModule that could cause
  403. out-of-bounds memory access.
  404. - bpo-36946: Fix possible signed integer overflow when handling slices.
  405. Patch by hongweipeng.
  406. - bpo-37409: Ensure explicit relative imports from interactive sessions and
  407. scripts (having no parent package) always raise ImportError, rather than
  408. treating the current module as the package. Patch by Ben Lewis.
  409. - bpo-36311: Decoding bytes objects larger than 2GiB is faster and no longer
  410. fails when a multibyte characters spans a chunk boundary.
  411. - bpo-37467: Fix :func:`sys.excepthook` and :c:func:`PyErr_Display` if a
  412. filename is a bytes string. For example, for a SyntaxError exception where
  413. the filename attribute is a bytes string.
  414. - bpo-37417: :meth:`bytearray.extend` now correctly handles errors that
  415. arise during iteration. Patch by Brandt Bucher.
  416. - bpo-20523: ``pdb.Pdb`` supports ~/.pdbrc in Windows 7. Patch by Tim Hopper
  417. and Dan Lidral-Porter.
  418. Library
  419. -------
  420. - bpo-38019: Correctly handle pause/resume reading of closed asyncio unix
  421. pipe.
  422. - bpo-38216: Allow the rare code that wants to send invalid http requests
  423. from the `http.client` library a way to do so. The fixes for bpo-30458
  424. led to breakage for some projects that were relying on this ability to
  425. test their own behavior in the face of bad requests.
  426. - bpo-38191: Constructor of :class:`~typing.NamedTuple` type now accepts
  427. arbitrary keyword argument names, including "cls", "self", "typename" and
  428. "fields".
  429. - bpo-38185: Fixed case-insensitive string comparison in
  430. :class:`sqlite3.Row` indexing.
  431. - bpo-38175: Fix a memory leak in comparison of :class:`sqlite3.Row`
  432. objects.
  433. - bpo-33936: _hashlib no longer calls obsolete OpenSSL initialization
  434. function with OpenSSL 1.1.0+.
  435. - bpo-34706: Preserve subclassing in inspect.Signature.from_callable.
  436. - bpo-38059: inspect.py now uses sys.exit() instead of exit()
  437. - bpo-38006: weakref.WeakValueDictionary defines a local remove() function
  438. used as callback for weak references. This function was created with a
  439. closure. Modify the implementation to avoid the closure.
  440. - bpo-34410: Fixed a crash in the :func:`tee` iterator when re-enter it.
  441. RuntimeError is now raised in this case.
  442. - bpo-37965: Fix C compiler warning caused by
  443. distutils.ccompiler.CCompiler.has_function.
  444. - bpo-36205: Fix the rusage implementation of time.process_time() to
  445. correctly report the sum of the system and user CPU time.
  446. - bpo-22347: Update mimetypes.guess_type to allow proper parsing of URLs
  447. with only a host name. Patch by Dong-hee Na.
  448. - bpo-37950: Fix :func:`ast.dump` when call with incompletely initialized
  449. node.
  450. - bpo-37915: Fix a segmentation fault that appeared when comparing instances
  451. of ``datetime.timezone`` and ``datetime.tzinfo`` objects. Patch by Pablo
  452. Galindo.
  453. - bpo-37885: venv: Don't generate unset variable warning on deactivate.
  454. - bpo-37868: Fix dataclasses.is_dataclass when given an instance that never
  455. raises AttributeError in __getattr__. That is, an object that returns
  456. something for __dataclass_fields__ even if it's not a dataclass.
  457. - bpo-37811: Fix ``socket`` module's ``socket.connect(address)`` function
  458. being unable to establish connection in case of interrupted system call.
  459. The problem was observed on all OSes which ``poll(2)`` system call can
  460. take only non-negative integers and -1 as a timeout value.
  461. - bpo-21131: Fix ``faulthandler.register(chain=True)`` stack. faulthandler
  462. now allocates a dedicated stack of ``SIGSTKSZ*2`` bytes, instead of just
  463. ``SIGSTKSZ`` bytes. Calling the previous signal handler in faulthandler
  464. signal handler uses more than ``SIGSTKSZ`` bytes of stack memory on some
  465. platforms.
  466. - bpo-34621: Fixed unpickle-ability in older Python versions (<3.7) of UUID
  467. objects with ``is_safe`` set to ``SafeUUID.unknown``.
  468. - bpo-37738: Fix the implementation of curses ``addch(str, color_pair)``:
  469. pass the color pair to ``setcchar()``, instead of always passing 0 as the
  470. color pair.
  471. - bpo-37723: Fix performance regression on regular expression parsing with
  472. huge character sets. Patch by Yann Vaginay.
  473. - bpo-32178: Fix IndexError in :mod:`email` package when trying to parse
  474. invalid address fields starting with ``:``.
  475. - bpo-37685: Fixed comparisons of :class:`datetime.timedelta` and
  476. :class:`datetime.timezone`.
  477. - bpo-37695: Correct :func:`curses.unget_wch` error message. Patch by
  478. Anthony Sottile.
  479. - bpo-29553: Fixed :meth:`argparse.ArgumentParser.format_usage` for mutually
  480. exclusive groups. Patch by Andrew Nester.
  481. - bpo-37664: Update wheels bundled with ensurepip (pip 19.2.3 and setuptools
  482. 41.2.0)
  483. - bpo-37642: Allowed the pure Python implementation of
  484. :class:`datetime.timezone` to represent sub-minute offsets close to
  485. minimum and maximum boundaries, specifically in the ranges (23:59, 24:00)
  486. and (-23:59, 24:00). Patch by Ngalim Siregar
  487. - bpo-37491: Fix ``IndexError`` when parsing email headers with unexpectedly
  488. ending bare-quoted string value. Patch by Abhilash Raj.
  489. - bpo-18378: Recognize "UTF-8" as a valid value for LC_CTYPE in
  490. locale._parse_localename.
  491. - bpo-37579: Return :exc:`NotImplemented` in Python implementation of
  492. ``__eq__`` for :class:`~datetime.timedelta` and :class:`~datetime.time`
  493. when the other object being compared is not of the same type to match C
  494. implementation. Patch by Karthikeyan Singaravelan.
  495. - bpo-21478: Record calls to parent when autospecced object is attached to a
  496. mock using :func:`unittest.mock.attach_mock`. Patch by Karthikeyan
  497. Singaravelan.
  498. - bpo-37531: "python3 -m test -jN --timeout=TIMEOUT" now kills a worker
  499. process if it runs longer than *TIMEOUT* seconds.
  500. - bpo-37482: Fix serialization of display name in originator or destination
  501. address fields with both encoded words and special chars.
  502. - bpo-37424: Fixes a possible hang when using a timeout on
  503. `subprocess.run()` while capturing output. If the child process spawned
  504. its own children or otherwise connected its stdout or stderr handles with
  505. another process, we could hang after the timeout was reached and our child
  506. was killed when attempting to read final output from the pipes.
  507. - bpo-37421: Fix :func:`multiprocessing.util.get_temp_dir` finalizer: clear
  508. also the 'tempdir' configuration of the current process, so next call to
  509. ``get_temp_dir()`` will create a new temporary directory, rather than
  510. reusing the removed temporary directory.
  511. - bpo-37420: :func:`os.sched_setaffinity` now correctly handles errors that
  512. arise during iteration over its ``mask`` argument. Patch by Brandt Bucher.
  513. - bpo-29412: Fix IndexError in parsing a header value ending unexpectedly.
  514. Patch by Abhilash Raj.
  515. - bpo-37372: Fix error unpickling datetime.time objects from Python 2 with
  516. seconds>=24. Patch by Justin Blanchard.
  517. - bpo-27860: Fix ``IPv4Interface`` and ``IPv6Interface`` didn't accept
  518. string mask when the argument is tuple.
  519. - bpo-33972: Email with single part but content-type set to ``multipart/*``
  520. doesn't raise AttributeError anymore.
  521. - bpo-21872: Fix :mod:`lzma`: module decompresses data incompletely. When
  522. decompressing a FORMAT_ALONE format file, and it doesn't have the end
  523. marker, sometimes the last one to dozens bytes can't be output. Patch by
  524. Ma Lin.
  525. - bpo-12144: Ensure cookies with ``expires`` attribute are handled in
  526. :meth:`CookieJar.make_cookies`.
  527. - bpo-37163: :func:`dataclasses.replace` now supports the field named "obj".
  528. - bpo-36871: Ensure method signature is used instead of constructor
  529. signature of a class while asserting mock object against method calls.
  530. Patch by Karthikeyan Singaravelan.
  531. - bpo-36564: Fix infinite loop in email header folding logic that would be
  532. triggered when an email policy's max_line_length is not long enough to
  533. include the required markup and any values in the message. Patch by Paul
  534. Ganssle
  535. - bpo-35168: :attr:`shlex.shlex.punctuation_chars` is now a read-only
  536. property.
  537. - bpo-20504: Fixes a bug in :mod:`cgi` module when a multipart/form-data
  538. request has no `Content-Length` header.
  539. - bpo-4963: Fixed non-deterministic behavior related to mimetypes extension
  540. mapping and module reinitialization.
  541. Documentation
  542. -------------
  543. - bpo-26868: Fix example usage of :c:func:`PyModule_AddObject` to properly
  544. handle errors.
  545. - bpo-37979: Added a link to dateutil.parser.isoparse in the
  546. datetime.fromisoformat documentation. Patch by Paul Ganssle
  547. - bpo-37937: Mention ``frame.f_trace`` in :func:`sys.settrace` docs.
  548. - bpo-37726: Stop recommending getopt in the tutorial for command line
  549. argument parsing and promote argparse.
  550. - bpo-32910: Remove implementation-specific behaviour of how venv's
  551. Deactivate works.
  552. - bpo-37256: Fix wording of arguments for :class:`Request` in
  553. :mod:`urllib.request`
  554. - bpo-37284: Add a brief note to indicate that any new
  555. ``sys.implementation`` required attributes must go through the PEP
  556. process.
  557. - bpo-30088: Documented that :class:`mailbox.Maildir` constructor doesn't
  558. attempt to verify the maildir folder layout correctness. Patch by
  559. Sviatoslav Sydorenko.
  560. - bpo-37487: Fix PyList_GetItem index description to include 0.
  561. - bpo-37478: Added possible exceptions to the description of os.chdir().
  562. - bpo-37004: In the documentation for difflib, a note was added explicitly
  563. warning that the results of SequenceMatcher's ratio method may depend on
  564. the order of the input strings.
  565. - bpo-35803: Document and test that ``tempfile`` functions may accept a
  566. :term:`path-like object` for the ``dir`` argument. Patch by Anthony
  567. Sottile.
  568. - bpo-34293: Fix the Doc/Makefile regarding PAPER environment variable and
  569. PDF builds
  570. Tests
  571. -----
  572. - bpo-38239: Fix test_gdb for Link Time Optimization (LTO) builds.
  573. - bpo-38275: test_ssl now handles disabled TLS/SSL versions better.
  574. OpenSSL's crypto policy and run-time settings are recognized and tests for
  575. disabled versions are skipped. Tests also accept more TLS minimum_versions
  576. for platforms that override OpenSSL's default with strict settings.
  577. - bpo-38271: The private keys for test_ssl were encrypted with 3DES in
  578. traditional PKCS#5 format. 3DES and the digest algorithm of PKCS#5 are
  579. blocked by some strict crypto policies. Use PKCS#8 format with AES256
  580. encryption instead.
  581. - bpo-37123: Multiprocessing test test_mymanager() now also expects
  582. -SIGTERM, not only exitcode 0. BaseManager._finalize_manager() sends
  583. SIGTERM to the manager process if it takes longer than 1 second to stop,
  584. which happens on slow buildbots.
  585. - bpo-38212: Multiprocessing tests: increase
  586. test_queue_feeder_donot_stop_onexc() timeout from 1 to 60 seconds.
  587. - bpo-38117: Test with OpenSSL 1.1.1d
  588. - bpo-37805: Add tests for json.dump(..., skipkeys=True). Patch by Dong-hee
  589. Na.
  590. - bpo-37531: Enhance regrtest multiprocess timeout: write a message when
  591. killing a worker process, catch popen.kill() and popen.wait() exceptions,
  592. put a timeout on the second call to popen.communicate().
  593. - bpo-37335: Improve locale coercion tests by using codec lookup instead of
  594. more fragile replace().
  595. - bpo-37411: Fix test_wsgiref.testEnviron() to no longer depend on the
  596. environment variables (don't fail if "X" variable is set).
  597. - bpo-37400: Fix test_os.test_chown(): use os.getgroups() rather than
  598. grp.getgrall() to get groups. Rename also the test to test_chown_gid().
  599. - bpo-37359: Add --cleanup option to python3 -m test to remove
  600. ``test_python_*`` directories of previous failed jobs. Add "make
  601. cleantest" to run ``python3 -m test --cleanup``.
  602. - bpo-37362: test_gdb no longer fails if it gets an "unexpected" message on
  603. stderr: it now ignores stderr. The purpose of test_gdb is to test that
  604. python-gdb.py commands work as expected, not to test gdb.
  605. - bpo-36919: Make ``test_source_encoding.test_issue2301`` implementation
  606. independent. The test will work now for both CPython and IronPython.
  607. - bpo-34720: Assert m_state != NULL to mimic GC traversal functions that do
  608. not correctly handle module creation when the module state has not been
  609. created.
  610. - bpo-34347: Fix ``test_utf8_mode.test_cmd_line`` for AIX. Patch by M. Felt
  611. Build
  612. -----
  613. - bpo-38301: In Solaris family, we must be sure to use ``-D_REENTRANT``.
  614. Patch by Jesús Cea Avión.
  615. - bpo-36002: Locate ``llvm-profdata`` and ``llvm-ar`` binaries using
  616. ``AC_PATH_TOOL`` rather than ``AC_PATH_TARGET_TOOL``.
  617. - bpo-37936: The :file:`.gitignore` file no longer applies to any files that
  618. are in fact tracked in the Git repository. Patch by Greg Price.
  619. Windows
  620. -------
  621. - bpo-38117: Update bundled OpenSSL to 1.1.1d
  622. - bpo-36634: venv activate.bat now works when the existing variables contain
  623. double quote characters.
  624. - bpo-38087: Fix case sensitivity in test_pathlib and test_ntpath.
  625. - bpo-38088: Fixes distutils not finding vcruntime140.dll with only the v142
  626. toolset installed.
  627. - bpo-37283: Ensure command-line and unattend.xml setting override
  628. previously detected states in Windows installer.
  629. - bpo-37705: Improve the implementation of ``winerror_to_errno()``.
  630. - bpo-37549: :func:`os.dup` no longer fails for standard streams on Windows
  631. 7.
  632. - bpo-37702: Fix memory leak on Windows in creating an SSLContext object or
  633. running urllib.request.urlopen('https://...').
  634. - bpo-10945: Officially drop support for creating bdist_wininst installers
  635. on non-Windows systems.
  636. - bpo-37445: Include the ``FORMAT_MESSAGE_IGNORE_INSERTS`` flag in
  637. ``FormatMessageW()`` calls.
  638. - bpo-37380: Don't collect unfinished processes with ``subprocess._active``
  639. on Windows to cleanup later. Patch by Ruslan Kuprieiev.
  640. - bpo-32587: Make :data:`winreg.REG_MULTI_SZ` support zero-length strings.
  641. macOS
  642. -----
  643. - bpo-38117: Updated OpenSSL to 1.1.1d in macOS installer.
  644. - bpo-38089: Move Azure Pipelines to latest VM versions and make macOS tests
  645. optional
  646. IDLE
  647. ----
  648. - bpo-35379: When exiting IDLE, catch any AttributeError. One happens when
  649. EditorWindow.close is called twice. Printing a traceback, when IDLE is
  650. run from a terminal, is useless and annoying.
  651. - bpo-38183: To avoid problems, test_idle ignores the user config directory.
  652. It no longer tries to create or access .idlerc or any files within. Users
  653. must run IDLE to discover problems with saving settings.
  654. - bpo-38077: IDLE no longer adds 'argv' to the user namespace when
  655. initializing it. This bug only affected 3.7.4 and 3.8.0b2 to 3.8.0b4.
  656. - bpo-38041: Shell restart lines now fill the window width, always start
  657. with '=', and avoid wrapping unnecessarily. The line will still wrap if
  658. the included file name is long relative to the width.
  659. - bpo-35771: To avoid occasional spurious test_idle failures on slower
  660. machines, increase the ``hover_delay`` in test_tooltip.
  661. - bpo-37824: Properly handle user input warnings in IDLE shell. Cease
  662. turning SyntaxWarnings into SyntaxErrors.
  663. - bpo-37929: IDLE Settings dialog now closes properly when there is no shell
  664. window.
  665. - bpo-37902: Add mousewheel scrolling for IDLE module, path, and stack
  666. browsers. Patch by George Zhang.
  667. - bpo-37849: Fixed completions list appearing too high or low when shown
  668. above the current line.
  669. - bpo-36419: Refactor IDLE autocomplete and improve testing.
  670. - bpo-37748: Reorder the Run menu. Put the most common choice, Run Module,
  671. at the top.
  672. - bpo-37692: Improve highlight config sample with example shell interaction
  673. and better labels for shell elements.
  674. - bpo-37628: Settings dialog no longer expands with font size.
  675. - bpo-37627: Initialize the Customize Run dialog with the command line
  676. arguments most recently entered before. The user can optionally edit
  677. before submitting them.
  678. - bpo-33610: Fix code context not showing the correct context when first
  679. toggled on.
  680. - bpo-37530: Optimize code context to reduce unneeded background activity.
  681. Font and highlight changes now occur along with text changes instead of
  682. after a random delay.
  683. - bpo-27452: Cleanup ``config.py`` by inlining ``RemoveFile`` and
  684. simplifying the handling of ``file`` in ``CreateConfigHandlers``.
  685. - bpo-37325: Fix tab focus traversal order for help source and custom run
  686. dialogs.
  687. - bpo-17535: Add optional line numbers for IDLE editor windows. Windows
  688. open without line numbers unless set otherwise in the General tab of the
  689. configuration dialog.
  690. - bpo-26806: To compensate for stack frames added by IDLE and avoid possible
  691. problems with low recursion limits, add 30 to limits in the user code
  692. execution process. Subtract 30 when reporting recursion limits to make
  693. this addition mostly transparent.
  694. - bpo-36390: Gather Format menu functions into format.py. Combine
  695. paragraph.py, rstrip.py, and format methods from editor.py.
  696. Tools/Demos
  697. -----------
  698. - bpo-37803: pdb's ``--help`` and ``--version`` long options now work.
  699. - bpo-37675: 2to3 now works when run from a zipped standard library.
  700. What's New in Python 3.7.4 final?
  701. =================================
  702. *Release date: 2019-07-08*
  703. Core and Builtins
  704. -----------------
  705. - bpo-37500: Due to unintended side effects, revert the change introduced by
  706. :issue:`1875` in 3.7.4rc1 to check for syntax errors in dead conditional
  707. code blocks.
  708. Documentation
  709. -------------
  710. - bpo-37149: Replace the dead link to the Tkinter 8.5 reference by John
  711. Shipman, New Mexico Tech, with a link to the archive.org copy.
  712. What's New in Python 3.7.4 release candidate 2?
  713. ===============================================
  714. *Release date: 2019-07-02*
  715. Security
  716. --------
  717. - bpo-37463: ssl.match_hostname() no longer accepts IPv4 addresses with
  718. additional text after the address and only quad-dotted notation without
  719. trailing whitespaces. Some inet_aton() implementations ignore whitespace
  720. and all data after whitespace, e.g. '127.0.0.1 whatever'.
  721. Core and Builtins
  722. -----------------
  723. - bpo-24214: Improved support of the surrogatepass error handler in the
  724. UTF-8 and UTF-16 incremental decoders.
  725. Library
  726. -------
  727. - bpo-37440: http.client now enables TLS 1.3 post-handshake authentication
  728. for default context or if a cert_file is passed to HTTPSConnection.
  729. - bpo-37437: Update vendorized expat version to 2.2.7.
  730. - bpo-37428: SSLContext.post_handshake_auth = True no longer sets
  731. SSL_VERIFY_POST_HANDSHAKE verify flag for client connections. Although the
  732. option is documented as ignored for clients, OpenSSL implicitly enables
  733. cert chain validation when the flag is set.
  734. - bpo-32627: Fix compile error when ``_uuid`` headers conflicting included.
  735. Windows
  736. -------
  737. - bpo-37369: Fixes path for :data:`sys.executable` when running from the
  738. Microsoft Store.
  739. - bpo-35360: Update Windows builds to use SQLite 3.28.0.
  740. macOS
  741. -----
  742. - bpo-34602: Avoid test suite failures on macOS by no longer calling
  743. resource.setrlimit to increase the process stack size limit at runtime.
  744. The runtime change is no longer needed since the interpreter is being
  745. built with a larger default stack size.
  746. What's New in Python 3.7.4 release candidate 1?
  747. ===============================================
  748. *Release date: 2019-06-18*
  749. Security
  750. --------
  751. - bpo-35907: CVE-2019-9948: Avoid file reading by disallowing
  752. ``local-file://`` and ``local_file://`` URL schemes in
  753. ``URLopener().open()`` and ``URLopener().retrieve()`` of
  754. :mod:`urllib.request`.
  755. - bpo-36742: Fixes mishandling of pre-normalization characters in
  756. urlsplit().
  757. - bpo-30458: Address CVE-2019-9740 by disallowing URL paths with embedded
  758. whitespace or control characters through into the underlying http client
  759. request. Such potentially malicious header injection URLs now cause an
  760. http.client.InvalidURL exception to be raised.
  761. - bpo-33529: Prevent fold function used in email header encoding from
  762. entering infinite loop when there are too many non-ASCII characters in a
  763. header.
  764. - bpo-35755: :func:`shutil.which` now uses ``os.confstr("CS_PATH")`` if
  765. available and if the :envvar:`PATH` environment variable is not set.
  766. Remove also the current directory from :data:`posixpath.defpath`. On Unix,
  767. :func:`shutil.which` and the :mod:`subprocess` module no longer search the
  768. executable in the current directory if the :envvar:`PATH` environment
  769. variable is not set.
  770. Core and Builtins
  771. -----------------
  772. - bpo-37269: Fix a bug in the peephole optimizer that was not treating
  773. correctly constant conditions with binary operators. Patch by Pablo
  774. Galindo.
  775. - bpo-37219: Remove errorneous optimization for empty set differences.
  776. - bpo-26423: Fix possible overflow in ``wrap_lenfunc()`` when ``sizeof(long)
  777. < sizeof(Py_ssize_t)`` (e.g., 64-bit Windows).
  778. - bpo-36829: :c:func:`PyErr_WriteUnraisable` now displays the exception even
  779. if displaying the traceback failed. Moreover, hold a strong reference to
  780. :data:`sys.stderr` while using it. Document that an exception must be set
  781. when calling :c:func:`PyErr_WriteUnraisable`.
  782. - bpo-36907: Fix a crash when calling a C function with a keyword dict
  783. (``f(**kwargs)``) and changing the dict ``kwargs`` while that function is
  784. running.
  785. - bpo-36946: Fix possible signed integer overflow when handling slices.
  786. - bpo-27987: ``PyGC_Head`` structure is aligned to ``long double``. This is
  787. needed to ensure GC-ed objects are aligned properly. Patch by Inada
  788. Naoki.
  789. - bpo-1875: A :exc:`SyntaxError` is now raised if a code blocks that will be
  790. optimized away (e.g. if conditions that are always false) contains syntax
  791. errors. Patch by Pablo Galindo. (Reverted in 3.7.4 final by
  792. :issue:`37500`.)
  793. - bpo-28866: Avoid caching attributes of classes which type defines mro() to
  794. avoid a hard cache invalidation problem.
  795. - bpo-27639: Correct return type for UserList slicing operations. Patch by
  796. Michael Blahay, Erick Cervantes, and vaultah
  797. - bpo-32849: Fix Python Initialization code on FreeBSD to detect properly
  798. when stdin file descriptor (fd 0) is invalid.
  799. - bpo-27987: pymalloc returns memory blocks aligned by 16 bytes, instead of
  800. 8 bytes, on 64-bit platforms to conform x86-64 ABI. Recent compilers
  801. assume this alignment more often. Patch by Inada Naoki.
  802. - bpo-36504: Fix signed integer overflow in _ctypes.c's
  803. ``PyCArrayType_new()``.
  804. - bpo-20844: Fix running script with encoding cookie and LF line ending may
  805. fail on Windows.
  806. - bpo-24214: Fixed support of the surrogatepass error handler in the UTF-8
  807. incremental decoder.
  808. - bpo-36459: Fix a possible double ``PyMem_FREE()`` due to tokenizer.c's
  809. ``tok_nextc()``.
  810. - bpo-36433: Fixed TypeError message in classmethoddescr_call.
  811. - bpo-36430: Fix a possible reference leak in :func:`itertools.count`.
  812. - bpo-36440: Include node names in ``ParserError`` messages, instead of
  813. numeric IDs. Patch by A. Skrobov.
  814. - bpo-36421: Fix a possible double decref in _ctypes.c's
  815. ``PyCArrayType_new()``.
  816. - bpo-36256: Fix bug in parsermodule when parsing a state in a DFA that has
  817. two or more arcs with labels of the same type. Patch by Pablo Galindo.
  818. - bpo-36236: At Python initialization, the current directory is no longer
  819. prepended to :data:`sys.path` if it has been removed.
  820. - bpo-36262: Fix an unlikely memory leak on conversion from string to float
  821. in the function ``_Py_dg_strtod()`` used by ``float(str)``,
  822. ``complex(str)``, :func:`pickle.load`, :func:`marshal.load`, etc.
  823. - bpo-36218: Fix a segfault occuring when sorting a list of heterogeneous
  824. values. Patch contributed by Rémi Lapeyre and Elliot Gorokhovsky.
  825. - bpo-36035: Added fix for broken symlinks in combination with pathlib
  826. - bpo-18372: Add missing :c:func:`PyObject_GC_Track` calls in the
  827. :mod:`pickle` module. Patch by Zackery Spytz.
  828. - bpo-34408: Prevent a null pointer dereference and resource leakage in
  829. ``PyInterpreterState_New()``.
  830. Library
  831. -------
  832. - bpo-37280: Use threadpool for reading from file for sendfile fallback
  833. mode.
  834. - bpo-37279: Fix asyncio sendfile support when sendfile sends extra data in
  835. fallback mode.
  836. - bpo-19865: :func:`ctypes.create_unicode_buffer()` now also supports
  837. non-BMP characters on platforms with 16-bit :c:type:`wchar_t` (for
  838. example, Windows and AIX).
  839. - bpo-35922: Fix :meth:`RobotFileParser.crawl_delay` and
  840. :meth:`RobotFileParser.request_rate` to return ``None`` rather than raise
  841. :exc:`AttributeError` when no relevant rule is defined in the robots.txt
  842. file. Patch by Rémi Lapeyre.
  843. - bpo-36607: Eliminate :exc:`RuntimeError` raised by
  844. :func:`asyncio.all_tasks()` if internal tasks weak set is changed by
  845. another thread during iteration.
  846. - bpo-36402: Fix a race condition at Python shutdown when waiting for
  847. threads. Wait until the Python thread state of all non-daemon threads get
  848. deleted (join all non-daemon threads), rather than just wait until
  849. non-daemon Python threads complete.
  850. - bpo-34886: Fix an unintended ValueError from :func:`subprocess.run` when
  851. checking for conflicting `input` and `stdin` or `capture_output` and
  852. `stdout` or `stderr` args when they were explicitly provided but with
  853. `None` values within a passed in `**kwargs` dict rather than as passed
  854. directly by name. Patch contributed by Rémi Lapeyre.
  855. - bpo-37173: The exception message for ``inspect.getfile()`` now correctly
  856. reports the passed class rather than the builtins module.
  857. - bpo-12639: :meth:`msilib.Directory.start_component()` no longer fails if
  858. *keyfile* is not ``None``.
  859. - bpo-36520: Lengthy email headers with UTF-8 characters are now properly
  860. encoded when they are folded. Patch by Jeffrey Kintscher.
  861. - bpo-37054: Fix destructor :class:`_pyio.BytesIO` and
  862. :class:`_pyio.TextIOWrapper`: initialize their ``_buffer`` attribute as
  863. soon as possible (in the class body), because it's used by ``__del__()``
  864. which calls ``close()``.
  865. - bpo-30835: Fixed a bug in email parsing where a message with invalid bytes
  866. in content-transfer-encoding of a multipart message can cause an
  867. AttributeError. Patch by Andrew Donnellan.
  868. - bpo-37035: Don't log OSError based exceptions if a fatal error has
  869. occurred in asyncio transport. Peer can generate almost any OSError, user
  870. cannot avoid these exceptions by fixing own code. Errors are still
  871. propagated to user code, it's just logging them is pointless and pollute
  872. asyncio logs.
  873. - bpo-37008: Add support for calling :func:`next` with the mock resulting
  874. from :func:`unittest.mock.mock_open`
  875. - bpo-27737: Allow whitespace only header encoding in ``email.header`` - by
  876. Batuhan Taskaya
  877. - bpo-36969: PDB command `args` now display keyword only arguments. Patch
  878. contributed by Rémi Lapeyre.
  879. - bpo-36983: Add missing names to ``typing.__all__``: ``ChainMap``,
  880. ``ForwardRef``, ``OrderedDict`` - by Anthony Sottile.
  881. - bpo-21315: Email headers containing RFC2047 encoded words are parsed
  882. despite the missing whitespace, and a defect registered. Also missing
  883. trailing whitespace after encoded words is now registered as a defect.
  884. - bpo-33524: Fix the folding of email header when the max_line_length is 0
  885. or None and the header contains non-ascii characters. Contributed by
  886. Licht Takeuchi (@Licht-T).
  887. - bpo-24564: :func:`shutil.copystat` now ignores :const:`errno.EINVAL` on
  888. :func:`os.setxattr` which may occur when copying files on filesystems
  889. without extended attributes support.
  890. Original patch by Giampaolo Rodola, updated by Ying Wang.
  891. - bpo-36845: Added validation of integer prefixes to the construction of IP
  892. networks and interfaces in the ipaddress module.
  893. - bpo-35545: Fix asyncio discarding IPv6 scopes when ensuring hostname
  894. resolutions internally
  895. - bpo-35070: posix.getgrouplist() now works correctly when the user belongs
  896. to NGROUPS_MAX supplemental groups. Patch by Jeffrey Kintscher.
  897. - bpo-24538: In `shutil.copystat()`, first copy extended file attributes and
  898. then file permissions, since extended attributes can only be set on the
  899. destination while it is still writeable.
  900. - bpo-33110: Handle exceptions raised by functions added by
  901. concurrent.futures add_done_callback correctly when the Future has already
  902. completed.
  903. - bpo-26903: Limit `max_workers` in `ProcessPoolExecutor` to 61 to work
  904. around a WaitForMultipleObjects limitation.
  905. - bpo-36813: Fix :class:`~logging.handlers.QueueListener` to call
  906. ``queue.task_done()`` upon stopping. Patch by Bar Harel.
  907. - bpo-36734: Fix compilation of ``faulthandler.c`` on HP-UX. Initialize
  908. ``stack_t current_stack`` to zero using ``memset()``.
  909. - bpo-29183: Fix double exceptions in :class:`wsgiref.handlers.BaseHandler`
  910. by calling its :meth:`~wsgiref.handlers.BaseHandler.close` method only
  911. when no exception is raised.
  912. - bpo-36650: The C version of functools.lru_cache() was treating calls with
  913. an empty ``**kwargs`` dictionary as being distinct from calls with no
  914. keywords at all. This did not result in an incorrect answer, but it did
  915. trigger an unexpected cache miss.
  916. - bpo-28552: Fix :mod:`distutils.sysconfig` if :data:`sys.executable` is
  917. ``None`` or an empty string: use :func:`os.getcwd` to initialize
  918. ``project_base``. Fix also the distutils build command: don't use
  919. :data:`sys.executable` if it is ``None`` or an empty string.
  920. - bpo-35755: :func:`shutil.which` and
  921. :func:`distutils.spawn.find_executable` now use ``os.confstr("CS_PATH")``
  922. if available instead of :data:`os.defpath`, if the ``PATH`` environment
  923. variable is not set. Moreover, don't use ``os.confstr("CS_PATH")`` nor
  924. :data:`os.defpath` if the ``PATH`` environment variable is set to an empty
  925. string.
  926. - bpo-36613: Fix :mod:`asyncio` wait() not removing callback if exception
  927. - bpo-36598: Fix ``isinstance`` check for Mock objects with spec when the
  928. code is executed under tracing. Patch by Karthikeyan Singaravelan.
  929. - bpo-36533: Reinitialize logging.Handler locks in forked child processes
  930. instead of attempting to acquire them all in the parent before forking
  931. only to be released in the child process. The acquire/release pattern was
  932. leading to deadlocks in code that has implemented any form of chained
  933. logging handlers that depend upon one another as the lock acquision order
  934. cannot be guaranteed.
  935. - bpo-36522: If *debuglevel* is set to >0 in :mod:`http.client`, print all
  936. values for headers with multiple values for the same header name. Patch by
  937. Matt Houglum.
  938. - bpo-36492: Arbitrary keyword arguments (even with names "self" and "func")
  939. can now be passed to some functions which should accept arbitrary keyword
  940. arguments and pass them to other function (for example partialmethod(),
  941. TestCase.addCleanup() and Profile.runcall()) if the required arguments are
  942. passed as positional arguments.
  943. - bpo-36434: Errors during writing to a ZIP file no longer prevent to
  944. properly close it.
  945. - bpo-34745: Fix :mod:`asyncio` ssl memory issues caused by circular
  946. references
  947. - bpo-36321: collections.namedtuple() misspelled the name of an attribute.
  948. To be consistent with typing.NamedTuple, the attribute name should have
  949. been "_field_defaults" instead of "_fields_defaults". For backwards
  950. compatibility, both spellings are now created. The misspelled version may
  951. be removed in the future.
  952. - bpo-36272: :mod:`logging` does not silently ignore RecursionError anymore.
  953. Patch contributed by Rémi Lapeyre.
  954. - bpo-36235: Fix ``CFLAGS`` in ``customize_compiler()`` of
  955. ``distutils.sysconfig``: when the ``CFLAGS`` environment variable is
  956. defined, don't override ``CFLAGS`` variable with the ``OPT`` variable
  957. anymore. Initial patch written by David Malcolm.
  958. - bpo-35125: Asyncio: Remove inner callback on outer cancellation in shield
  959. - bpo-35802: Clean up code which checked presence of ``os.stat`` /
  960. ``os.lstat`` / ``os.chmod`` which are always present. Patch by Anthony
  961. Sottile.
  962. - bpo-23078: Add support for :func:`classmethod` and :func:`staticmethod` to
  963. :func:`unittest.mock.create_autospec`. Initial patch by Felipe Ochoa.
  964. - bpo-35721: Fix :meth:`asyncio.SelectorEventLoop.subprocess_exec()` leaks
  965. file descriptors if ``Popen`` fails and called with
  966. ``stdin=subprocess.PIPE``. Patch by Niklas Fiekas.
  967. - bpo-35726: QueueHandler.prepare() now makes a copy of the record before
  968. modifying and enqueueing it, to avoid affecting other handlers in the
  969. chain.
  970. - bpo-31855: :func:`unittest.mock.mock_open` results now respects the
  971. argument of read([size]). Patch contributed by Rémi Lapeyre.
  972. - bpo-35082: Don't return deleted attributes when calling dir on a
  973. :class:`unittest.mock.Mock`.
  974. - bpo-34547: :class:`wsgiref.handlers.BaseHandler` now handles abrupt client
  975. connection terminations gracefully. Patch by Petter Strandmark.
  976. - bpo-34424: Fix serialization of messages containing encoded strings when
  977. the policy.linesep is set to a multi-character string. Patch by Jens
  978. Troeger.
  979. - bpo-33361: Fix a bug in :class:`codecs.StreamRecoder` where seeking might
  980. leave old data in a buffer and break subsequent read calls. Patch by Ammar
  981. Askar.
  982. - bpo-31922: :meth:`asyncio.AbstractEventLoop.create_datagram_endpoint`: Do
  983. not connect UDP socket when broadcast is allowed. This allows to receive
  984. replies after a UDP broadcast.
  985. - bpo-22102: Added support for ZIP files with disks set to 0. Such files are
  986. commonly created by builtin tools on Windows when use ZIP64 extension.
  987. Patch by Francisco Facioni.
  988. - bpo-27141: Added a ``__copy__()`` to ``collections.UserList`` and
  989. ``collections.UserDict`` in order to correctly implement shallow copying
  990. of the objects. Patch by Bar Harel.
  991. - bpo-31829: ``\r``, ``\0`` and ``\x1a`` (end-of-file on Windows) are now
  992. escaped in protocol 0 pickles of Unicode strings. This allows to load them
  993. without loss from files open in text mode in Python 2.
  994. - bpo-31292: Fix ``setup.py check --restructuredtext`` for files containing
  995. ``include`` directives.
  996. - bpo-23395: ``_thread.interrupt_main()`` now avoids setting the Python
  997. error status if the ``SIGINT`` signal is ignored or not handled by Python.
  998. Documentation
  999. -------------
  1000. - bpo-34903: Documented that in :meth:`datetime.datetime.strptime()`, the
  1001. leading zero in some two-digit formats is optional. Patch by Mike Gleen.
  1002. - bpo-36984: Improve version added references in ``typing`` module - by
  1003. Anthony Sottile.
  1004. - bpo-36868: What's new now mentions SSLContext.hostname_checks_common_name
  1005. instead of SSLContext.host_flags.
  1006. - bpo-36783: Added C API Documentation for Time_FromTimeAndFold and
  1007. PyDateTime_FromDateAndTimeAndFold as per PEP 495. Patch by Edison
  1008. Abahurire.
  1009. - bpo-30840: Document relative imports
  1010. - bpo-36523: Add docstring for io.IOBase.writelines().
  1011. - bpo-36425: New documentation translation: `Simplified Chinese
  1012. <https://docs.python.org/zh-cn/>`_.
  1013. - bpo-36157: Added Documention for PyInterpreterState_Main().
  1014. - bpo-36138: Improve documentation about converting datetime.timedelta to
  1015. scalars.
  1016. - bpo-22865: Add detail to the documentation on the `pty.spawn` function.
  1017. - bpo-35581: @typing.type_check_only now allows type stubs to mark functions
  1018. and classes not available during runtime.
  1019. - bpo-35564: Explicitly set master_doc variable in conf.py for compliance
  1020. with Sphinx 2.0
  1021. - bpo-10536: Enhance the gettext docs. Patch by Éric Araujo
  1022. - bpo-32995: Added the context variable in glossary.
  1023. - bpo-33832: Add glossary entry for 'magic method'.
  1024. - bpo-33482: Make `codecs.StreamRecoder.writelines` take a list of bytes.
  1025. - bpo-25735: Added documentation for func factorial to indicate that returns
  1026. integer values
  1027. Tests
  1028. -----
  1029. - bpo-35998: Avoid TimeoutError in test_asyncio: test_start_tls_server_1()
  1030. - bpo-37153: ``test_venv.test_mutiprocessing()`` now explicitly calls
  1031. ``pool.terminate()`` to wait until the pool completes.
  1032. - bpo-37081: Test with OpenSSL 1.1.1c
  1033. - bpo-36915: The main regrtest process now always removes all temporary
  1034. directories of worker processes even if they crash or if they are killed
  1035. on KeyboardInterrupt (CTRL+c).
  1036. - bpo-36719: "python3 -m test -jN ..." now continues the execution of next
  1037. tests when a worker process crash (CHILD_ERROR state). Previously, the
  1038. test suite stopped immediately. Use --failfast to stop at the first error.
  1039. - bpo-36816: Update Lib/test/selfsigned_pythontestdotnet.pem to match
  1040. self-signed.pythontest.net's new TLS certificate.
  1041. - bpo-35925: Skip httplib and nntplib networking tests when they would
  1042. otherwise fail due to a modern OS or distro with a default OpenSSL policy
  1043. of rejecting connections to servers with weak certificates.
  1044. - bpo-36719: regrtest now always detects uncollectable objects. Previously,
  1045. the check was only enabled by ``--findleaks``. The check now also works
  1046. with ``-jN/--multiprocess N``. ``--findleaks`` becomes a deprecated alias
  1047. to ``--fail-env-changed``.
  1048. - bpo-36725: When using mulitprocessing mode (-jN), regrtest now better
  1049. reports errors if a worker process fails, and it exits immediately on a
  1050. worker thread failure or when interrupted.
  1051. - bpo-36454: Change test_time.test_monotonic() to test only the lower bound
  1052. of elapsed time after a sleep command rather than the upper bound. This
  1053. prevents unnecessary test failures on slow buildbots. Patch by Victor
  1054. Stinner.
  1055. - bpo-36629: Fix ``test_imap4_host_default_value()`` of ``test_imaplib``:
  1056. catch also :data:`errno.ENETUNREACH` error.
  1057. - bpo-36611: Fix ``test_sys.test_getallocatedblocks()`` when
  1058. :mod:`tracemalloc` is enabled.
  1059. - bpo-36560: Fix reference leak hunting in regrtest: compute also deltas (of
  1060. reference count, allocated memory blocks, file descriptor count) during
  1061. warmup, to ensure that everything is initialized before starting to hunt
  1062. reference leaks.
  1063. - bpo-36565: Fix reference hunting (``python3 -m test -R 3:3``) when Python
  1064. has no built-in abc module.
  1065. - bpo-36436: Fix ``_testcapi.pymem_buffer_overflow()``: handle memory
  1066. allocation failure.
  1067. Build
  1068. -----
  1069. - bpo-36605: ``make tags`` and ``make TAGS`` now also parse
  1070. ``Modules/_io/*.c`` and ``Modules/_io/*.h``.
  1071. - bpo-36508: ``python-config --ldflags`` no longer includes flags of the
  1072. ``LINKFORSHARED`` variable. The ``LINKFORSHARED`` variable must only be
  1073. used to build executables.
  1074. Windows
  1075. -------
  1076. - bpo-34631: Updated OpenSSL to 1.1.1c in Windows installer
  1077. - bpo-37267: On Windows, :func:`os.dup` no longer creates an inheritable fd
  1078. when handling a character file.
  1079. - bpo-36779: Ensure ``time.tzname`` is correct on Windows when the active
  1080. code page is set to CP_UTF7 or CP_UTF8.
  1081. - bpo-36965: include of STATUS_CONTROL_C_EXIT without depending on MSC
  1082. compiler
  1083. - bpo-36649: Remove trailing spaces for registry keys when installed via the
  1084. Store.
  1085. - bpo-34144: Fixed activate.bat to correctly update codepage when chcp.com
  1086. returns dots in output. Patch by Lorenz Mende.
  1087. - bpo-35941: enum_certificates function of the ssl module now returns
  1088. certificates from all available certificate stores inside windows in a
  1089. query instead of returning only certificates from the system wide
  1090. certificate store. This includes certificates from these certificate
  1091. stores: local machine, local machine enterprise, local machine group
  1092. policy, current user, current user group policy, services, users.
  1093. ssl.enum_crls() function is changed in the same way to return all
  1094. certificate revocation lists inside the windows certificate revocation
  1095. list stores.
  1096. - bpo-36441: Fixes creating a venv when debug binaries are installed.
  1097. - bpo-36312: Fixed decoders for the following code pages: 50220, 50221,
  1098. 50222, 50225, 50227, 50229, 57002 through 57011, 65000 and 42.
  1099. - bpo-36010: Add the venv standard library module to the nuget distribution
  1100. for Windows.
  1101. - bpo-34060: Report system load when running test suite on Windows. Patch by
  1102. Ammar Askar. Based on prior work by Jeremy Kloth.
  1103. macOS
  1104. -----
  1105. - bpo-35360: Update macOS installer to use SQLite 3.28.0.
  1106. - bpo-34631: Updated OpenSSL to 1.1.1c in macOS installer.
  1107. - bpo-36231: Support building Python on macOS without /usr/include
  1108. installed. As of macOS 10.14, system header files are only available
  1109. within an SDK provided by either the Command Line Tools or the Xcode app.
  1110. - bpo-34602: Avoid failures setting macOS stack resource limit with
  1111. resource.setrlimit. This reverts an earlier fix for bpo-18075 which forced
  1112. a non-default stack size when building the interpreter executable on
  1113. macOS.
  1114. IDLE
  1115. ----
  1116. - bpo-37321: Both subprocess connection error messages now refer to the
  1117. 'Startup failure' section of the IDLE doc.
  1118. - bpo-37177: Properly 'attach' search dialogs to their main window so that
  1119. they behave like other dialogs and do not get hidden behind their main
  1120. window.
  1121. - bpo-37039: Adjust "Zoom Height" to individual screens by momemtarily
  1122. maximizing the window on first use with a particular screen. Changing
  1123. screen settings may invalidate the saved height. While a window is
  1124. maximized, "Zoom Height" has no effect.
  1125. - bpo-35763: Make calltip reminder about '/' meaning positional-only less
  1126. obtrusive by only adding it when there is room on the first line.
  1127. - bpo-5680: Add 'Run... Customized' to the Run menu to run a module with
  1128. customized settings. Any 'command line arguments' entered are added to
  1129. sys.argv. One can suppress the normal Shell main module restart.
  1130. - bpo-35610: Replace now redundant .context_use_ps1 with .prompt_last_line.
  1131. This finishes change started in bpo-31858.
  1132. - bpo-37038: Make idlelib.run runnable; add test clause.
  1133. - bpo-36958: Print any argument other than None or int passed to SystemExit
  1134. or sys.exit().
  1135. - bpo-13102: When saving a file, call os.fsync() so bits are flushed to e.g.
  1136. USB drive.
  1137. - bpo-36429: Fix starting IDLE with pyshell. Add idlelib.pyshell alias at
  1138. top; remove pyshell alias at bottom. Remove obsolete __name__=='__main__'
  1139. command.
  1140. - bpo-36405: Use dict unpacking in idlelib.
  1141. - bpo-36396: Remove fgBg param of idlelib.config.GetHighlight(). This param
  1142. was only used twice and changed the return type.
  1143. - bpo-23205: For the grep module, add tests for findfiles, refactor
  1144. findfiles to be a module-level function, and refactor findfiles to use
  1145. os.walk.
  1146. - bpo-23216: Add docstrings to IDLE search modules.
  1147. - bpo-30348: Increase test coverage of idlelib.autocomplete by 30%.
  1148. - bpo-32411: In browser.py, remove extraneous sorting by line number since
  1149. dictionary was created in line number order.
  1150. Tools/Demos
  1151. -----------
  1152. - bpo-14546: Fix the argument handling in Tools/scripts/lll.py.
  1153. - bpo-32217: Fix freeze script on Windows.
  1154. C API
  1155. -----
  1156. - bpo-28805: The :const:`METH_FASTCALL` calling convention has been
  1157. documented.
  1158. - bpo-37170: Fix the cast on error in
  1159. :c:func:`PyLong_AsUnsignedLongLongMask()`.
  1160. - bpo-36389: Change the value of ``CLEANBYTE``, ``DEADDYTE`` and
  1161. ``FORBIDDENBYTE`` internal constants used by debug hooks on Python memory
  1162. allocators (:c:func:`PyMem_SetupDebugHooks` function). Byte patterns
  1163. ``0xCB``, ``0xDB`` and ``0xFB`` have been replaced with ``0xCD``, ``0xDD``
  1164. and ``0xFD`` to use the same values than Windows CRT debug ``malloc()``
  1165. and ``free()``.
  1166. What's New in Python 3.7.3 final?
  1167. =================================
  1168. *Release date: 2019-03-25*
  1169. There were no new changes in version 3.7.3.
  1170. What's New in Python 3.7.3 release candidate 1?
  1171. ===============================================
  1172. *Release date: 2019-03-12*
  1173. Security
  1174. --------
  1175. - bpo-36216: Changes urlsplit() to raise ValueError when the URL contains
  1176. characters that decompose under IDNA encoding (NFKC-normalization) into
  1177. characters that affect how the URL is parsed.
  1178. - bpo-35746: [CVE-2019-5010] Fix a NULL pointer deref in ssl module. The
  1179. cert parser did not handle CRL distribution points with empty DP or URI
  1180. correctly. A malicious or buggy certificate can result into segfault.
  1181. Vulnerability (TALOS-2018-0758) reported by Colin Read and Nicolas Edet of
  1182. Cisco.
  1183. - bpo-35121: Don't send cookies of domain A without Domain attribute to
  1184. domain B when domain A is a suffix match of domain B while using a
  1185. cookiejar with :class:`http.cookiejar.DefaultCookiePolicy` policy. Patch
  1186. by Karthikeyan Singaravelan.
  1187. Core and Builtins
  1188. -----------------
  1189. - bpo-35942: The error message emitted when returning invalid types from
  1190. ``__fspath__`` in interfaces that allow passing :class:`~os.PathLike`
  1191. objects has been improved and now it does explain the origin of the error.
  1192. - bpo-35992: Fix ``__class_getitem__()`` not being called on a class with a
  1193. custom non-subscriptable metaclass.
  1194. - bpo-35991: Fix a potential double free in Modules/_randommodule.c.
  1195. - bpo-35961: Fix a crash in slice_richcompare(): use strong references
  1196. rather than stolen references for the two temporary internal tuples.
  1197. - bpo-31506: Clarify the errors reported when ``object.__new__`` and
  1198. ``object.__init__`` receive more than one argument. Contributed by Sanyam
  1199. Khurana.
  1200. - bpo-35720: Fixed a minor memory leak in pymain_parse_cmdline_impl function
  1201. in Modules/main.c
  1202. - bpo-35623: Fix a crash when sorting very long lists. Patch by Stephan
  1203. Hohe.
  1204. - bpo-35214: clang Memory Sanitizer build instrumentation was added to work
  1205. around false positives from posix, socket, time, test_io, and
  1206. test_faulthandler.
  1207. - bpo-35560: Fix an assertion error in :func:`format` in debug build for
  1208. floating point formatting with "n" format, zero padding and small width.
  1209. Release build is not impacted. Patch by Karthikeyan Singaravelan.
  1210. - bpo-35552: Format characters ``%s`` and ``%V`` in
  1211. :c:func:`PyUnicode_FromFormat` and ``%s`` in :c:func:`PyBytes_FromFormat`
  1212. no longer read memory past the limit if *precision* is specified.
  1213. - bpo-35504: Fix segfaults and :exc:`SystemError`\ s when deleting certain
  1214. attributes. Patch by Zackery Spytz.
  1215. - bpo-33989: Fix a possible crash in :meth:`list.sort` when sorting objects
  1216. with ``ob_type->tp_richcompare == NULL``. Patch by Zackery Spytz.
  1217. Library
  1218. -------
  1219. - bpo-35931: The :mod:`pdb` ``debug`` command now gracefully handles all
  1220. exceptions.
  1221. - bpo-36251: Fix format strings used for stderrprinter and re.Match reprs.
  1222. Patch by Stephan Hohe.
  1223. - bpo-35807: Update ensurepip to install pip 19.0.3 and setuptools 40.8.0.
  1224. - bpo-36179: Fix two unlikely reference leaks in _hashopenssl. The leaks
  1225. only occur in out-of-memory cases.
  1226. - bpo-35178: Ensure custom :func:`warnings.formatwarning` function can
  1227. receive `line` as positional argument. Based on patch by Tashrif Billah.
  1228. - bpo-36106: Resolve potential name clash with libm's sinpi(). Patch by
  1229. Dmitrii Pasechnik.
  1230. - bpo-35512: :func:`unittest.mock.patch.dict` used as a decorator with
  1231. string target resolves the target during function call instead of during
  1232. decorator construction. Patch by Karthikeyan Singaravelan.
  1233. - bpo-36091: Clean up reference to async generator in Lib/types. Patch by
  1234. Henry Chen.
  1235. - bpo-35899: Enum has been fixed to correctly handle empty strings and
  1236. strings with non-Latin characters (ie. 'α', 'א') without crashing.
  1237. Original patch contributed by Maxwell. Assisted by Stéphane Wirtel.
  1238. - bpo-35918: Removed broken ``has_key`` method from
  1239. multiprocessing.managers.SyncManager.dict. Contributed by Rémi Lapeyre.
  1240. - bpo-35960: Fix :func:`dataclasses.field` throwing away empty mapping
  1241. objects passed as metadata.
  1242. - bpo-35847: RISC-V needed the CTYPES_PASS_BY_REF_HACK. Fixes ctypes
  1243. Structure test_pass_by_value.
  1244. - bpo-35780: Fix lru_cache() errors arising in recursive, reentrant, or
  1245. multi-threaded code. These errors could result in orphan links and in the
  1246. cache being trapped in a state with fewer than the specified maximum
  1247. number of links. Fix handling of negative maxsize which should have been
  1248. treated as zero. Fix errors in toggling the "full" status flag. Fix
  1249. misordering of links when errors are encountered. Sync-up the C code and
  1250. pure Python code for the space saving path in functions with a single
  1251. positional argument. In this common case, the space overhead of an lru
  1252. cache entry is reduced by almost half. Fix counting of cache misses. In
  1253. error cases, the miss count was out of sync with the actual number of
  1254. times the underlying user function was called.
  1255. - bpo-23846: :class:`asyncio.ProactorEventLoop` now catches and logs send
  1256. errors when the self-pipe is full.
  1257. - bpo-34323: :mod:`asyncio`: Enhance ``IocpProactor.close()`` log: wait 1
  1258. second before the first log, then log every second. Log also the number of
  1259. seconds since ``close()`` was called.
  1260. - bpo-34294: re module, fix wrong capturing groups in rare cases.
  1261. :func:`re.search`, :func:`re.findall`, :func:`re.sub` and other functions
  1262. that scan through string looking for a match, should reset capturing
  1263. groups between two match attempts. Patch by Ma Lin.
  1264. - bpo-35717: Fix KeyError exception raised when using enums and compile.
  1265. Patch contributed by Rémi Lapeyre.
  1266. - bpo-35699: Fixed detection of Visual Studio Build Tools 2017 in distutils
  1267. - bpo-32710: Fix memory leaks in asyncio ProactorEventLoop on overlapped
  1268. operation failure.
  1269. - bpo-32710: Fix a memory leak in asyncio in the ProactorEventLoop when
  1270. ``ReadFile()`` or ``WSASend()`` overlapped operation fail immediately:
  1271. release the internal buffer.
  1272. - bpo-35682: Fix ``asyncio.ProactorEventLoop.sendfile()``: don't attempt to
  1273. set the result of an internal future if it's already done.
  1274. - bpo-35283: Add a pending deprecated warning for the
  1275. :meth:`threading.Thread.isAlive` method. Patch by Dong-hee Na.
  1276. - bpo-35643: Fixed a SyntaxWarning: invalid escape sequence in
  1277. Modules/_sha3/cleanup.py. Patch by Mickaël Schoentgen.
  1278. - bpo-35615: :mod:`weakref`: Fix a RuntimeError when copying a
  1279. WeakKeyDictionary or a WeakValueDictionary, due to some keys or values
  1280. disappearing while iterating.
  1281. - bpo-28503: The `crypt` module now internally uses the `crypt_r()` library
  1282. function instead of `crypt()` when available.
  1283. - bpo-35121: Don't set cookie for a request when the request path is a
  1284. prefix match of the cookie's path attribute but doesn't end with "/".
  1285. Patch by Karthikeyan Singaravelan.
  1286. - bpo-35585: Speed-up building enums by value, e.g. http.HTTPStatus(200).
  1287. - bpo-21478: Calls to a child function created with
  1288. :func:`unittest.mock.create_autospec` should propagate to the parent.
  1289. Patch by Karthikeyan Singaravelan.
  1290. - bpo-35513: :class:`~unittest.runner.TextTestRunner` of
  1291. :mod:`unittest.runner` now uses :func:`time.perf_counter` rather than
  1292. :func:`time.time` to measure the execution time of a test:
  1293. :func:`time.time` can go backwards, whereas :func:`time.perf_counter` is
  1294. monotonic.
  1295. - bpo-35502: Fixed reference leaks in
  1296. :class:`xml.etree.ElementTree.TreeBuilder` in case of unfinished building
  1297. of the tree (in particular when an error was raised during parsing XML).
  1298. - bpo-31446: Copy command line that was passed to CreateProcessW since this
  1299. function can change the content of the input buffer.
  1300. - bpo-20239: Allow repeated assignment deletion of
  1301. :class:`unittest.mock.Mock` attributes. Patch by Pablo Galindo.
  1302. - bpo-17185: Set ``__signature__`` on mock for :mod:`inspect` to get
  1303. signature. Patch by Karthikeyan Singaravelan.
  1304. - bpo-10496: :func:`~distutils.utils.check_environ` of
  1305. :mod:`distutils.utils` now catches :exc:`KeyError` on calling
  1306. :func:`pwd.getpwuid`: don't create the ``HOME`` environment variable in
  1307. this case.
  1308. - bpo-35066: Previously, calling the strftime() method on a datetime object
  1309. with a trailing '%' in the format string would result in an exception.
  1310. However, this only occured when the datetime C module was being used; the
  1311. python implementation did not match this behavior. Datetime is now PEP-399
  1312. compliant, and will not throw an exception on a trailing '%'.
  1313. - bpo-24746: Avoid stripping trailing whitespace in doctest fancy diff.
  1314. Orignial patch by R. David Murray & Jairo Trad. Enhanced by Sanyam
  1315. Khurana.
  1316. - bpo-35198: Fix C++ extension compilation on AIX
  1317. - bpo-28441: On Cygwin and MinGW, ensure that ``sys.executable`` always
  1318. includes the full filename in the path, including the ``.exe`` suffix
  1319. (unless it is a symbolic link).
  1320. - bpo-34572: Fix C implementation of pickle.loads to use importlib's locking
  1321. mechanisms, and thereby avoid using partially-loaded modules. Patch by Tim
  1322. Burgess.
  1323. - bpo-33687: Fix the call to ``os.chmod()`` for ``uu.decode()`` if a mode is
  1324. given or decoded. Patch by Timo Furrer.
  1325. - bpo-32146: Document the interaction between frozen executables and the
  1326. spawn and forkserver start methods in multiprocessing.
  1327. Documentation
  1328. -------------
  1329. - bpo-36083: Fix formatting of --check-hash-based-pycs options in the
  1330. manpage Synopsis.
  1331. - bpo-34764: Improve example of iter() with 2nd sentinel argument.
  1332. - bpo-21314: A new entry was added to the Core Language Section of the
  1333. Programming FAQ, which explaines the usage of slash(/) in the signature of
  1334. a function. Patch by Lysandros Nikolaou
  1335. - bpo-22062: Update documentation and docstrings for pathlib. Original patch
  1336. by Mike Short.
  1337. Tests
  1338. -----
  1339. - bpo-36234: test_posix.PosixUidGidTests: add tests for invalid uid/gid type
  1340. (str). Initial patch written by David Malcolm.
  1341. - bpo-29571: Fix ``test_re.test_locale_flag()``: use
  1342. ``locale.getpreferredencoding()`` rather than ``locale.getlocale()`` to
  1343. get the locale encoding. With some locales, ``locale.getlocale()`` returns
  1344. the wrong encoding. On Windows, set temporarily the ``LC_CTYPE`` locale to
  1345. the user preferred encoding to ensure that it uses the ANSI code page, to
  1346. be consistent with ``locale.getpreferredencoding()``.
  1347. - bpo-36123: Fix race condition in test_socket.
  1348. - bpo-27313: Avoid test_ttk_guionly ComboboxTest failure with macOS Cocoa
  1349. Tk.
  1350. - bpo-36019: Add test.support.TEST_HTTP_URL and replace references of
  1351. http://www.example.com by this new constant. Contributed by Stéphane
  1352. Wirtel.
  1353. - bpo-36037: Fix test_ssl for strict OpenSSL configuration like RHEL8 strict
  1354. crypto policy. Use older TLS version for minimum TLS version of the server
  1355. SSL context if needed, to test TLS version older than default minimum TLS
  1356. version.
  1357. - bpo-35505: Make test_imap4_host_default_value independent on whether the
  1358. local IMAP server is running.
  1359. - bpo-35917: multiprocessing: provide unit tests for SyncManager and
  1360. SharedMemoryManager classes + all the shareable types which are supposed
  1361. to be supported by them. (patch by Giampaolo Rodola)
  1362. - bpo-35772: Fix sparse file tests of test_tarfile on ppc64 with the tmpfs
  1363. filesystem. Fix the function testing if the filesystem supports sparse
  1364. files: create a file which contains data and "holes", instead of creating
  1365. a file which contains no data. tmpfs effective block size is a page size
  1366. (tmpfs lives in the page cache). RHEL uses 64 KiB pages on aarch64, ppc64,
  1367. ppc64le, only s390x and x86_64 use 4 KiB pages, whereas the test punch
  1368. holes of 4 KiB.
  1369. - bpo-35045: Make ssl tests less strict and also accept TLSv1 as system
  1370. default. The changes unbreaks test_min_max_version on Fedora 29.
  1371. - bpo-31731: Fix a race condition in ``check_interrupted_write()`` of
  1372. test_io: create directly the thread with SIGALRM signal blocked, rather
  1373. than blocking the signal later from the thread. Previously, it was
  1374. possible that the thread gets the signal before the signal is blocked.
  1375. - bpo-35424: Fix test_multiprocessing_main_handling: use
  1376. :class:`multiprocessing.Pool` with a context manager and then explicitly
  1377. join the pool.
  1378. - bpo-35519: Rename :mod:`test.bisect` module to :mod:`test.bisect_cmd` to
  1379. avoid conflict with :mod:`bisect` module when running directly a test like
  1380. ``./python Lib/test/test_xmlrpc.py``.
  1381. - bpo-35513: Replace :func:`time.time` with :func:`time.monotonic` in tests
  1382. to measure time delta.
  1383. - bpo-34279: :func:`test.support.run_unittest` no longer raise
  1384. :exc:`TestDidNotRun` if the test result contains skipped tests. The
  1385. exception is now only raised if no test have been run and no test have
  1386. been skipped.
  1387. - bpo-35412: Add testcase to ``test_future4``: check unicode literal.
  1388. - bpo-26704: Added test demonstrating double-patching of an instance method.
  1389. Patch by Anthony Sottile.
  1390. Build
  1391. -----
  1392. - bpo-34691: The _contextvars module is now built into the core Python
  1393. library on Windows.
  1394. - bpo-35683: Improved Azure Pipelines build steps and now verifying layouts
  1395. correctly
  1396. - bpo-35642: Remove asynciomodule.c from pythoncore.vcxproj
  1397. - bpo-35550: Fix incorrect Solaris #ifdef checks to look for __sun && __SVR4
  1398. instead of sun when compiling.
  1399. Windows
  1400. -------
  1401. - bpo-24643: Fix name collisions due to ``#define timezone _timezone`` in
  1402. PC/pyconfig.h.
  1403. - bpo-35692: ``pathlib`` no longer raises when checking file and directory
  1404. existence on drives that are not ready
  1405. - bpo-35872: Uses the base Python executable when invoking venv in a virtual
  1406. environment
  1407. - bpo-35873: Prevents venv paths being inherited by child processes
  1408. - bpo-35299: Fix sysconfig detection of the source directory and distutils
  1409. handling of pyconfig.h during PGO profiling
  1410. - bpo-32560: The ``py`` launcher now forwards its ``STARTUPINFO`` structure
  1411. to child processes.
  1412. - bpo-35854: Fix EnvBuilder and --symlinks in venv on Windows
  1413. - bpo-35811: Avoid propagating venv settings when launching via py.exe
  1414. - bpo-35797: Fix default executable used by the multiprocessing module
  1415. - bpo-29734: Fix handle leaks in os.stat on Windows.
  1416. - bpo-35596: Use unchecked PYCs for the embeddable distro to avoid zipimport
  1417. restrictions.
  1418. - bpo-35596: Fix vcruntime140.dll being added to embeddable distro multiple
  1419. times.
  1420. - bpo-35402: Update Windows build to use Tcl and Tk 8.6.9
  1421. - bpo-33316: PyThread_release_lock always fails
  1422. - bpo-1104: Correctly handle string length in
  1423. ``msilib.SummaryInfo.GetProperty()`` to prevent it from truncating the
  1424. last character.
  1425. IDLE
  1426. ----
  1427. - bpo-36176: Fix IDLE autocomplete & calltip popup colors. Prevent conflicts
  1428. with Linux dark themes (and slightly darken calltip background).
  1429. - bpo-36152: Remove colorizer.ColorDelegator.close_when_done and the
  1430. corresponding argument of .close(). In IDLE, both have always been None
  1431. or False since 2007.
  1432. - bpo-32129: Avoid blurry IDLE application icon on macOS with Tk 8.6. Patch
  1433. by Kevin Walzer.
  1434. - bpo-24310: IDLE -- Document settings dialog font tab sample.
  1435. - bpo-36096: Refactor class variables to instance variables in colorizer.
  1436. - bpo-35833: Revise IDLE doc for control codes sent to Shell. Add a code
  1437. example block.
  1438. - bpo-35770: IDLE macosx deletes Options => Configure IDLE. It previously
  1439. deleted Window => Zoom Height by mistake. (Zoom Height is now on the
  1440. Options menu). On Mac, the settings dialog is accessed via Preferences on
  1441. the IDLE menu.
  1442. - bpo-35769: Change IDLE's new file name from 'Untitled' to 'untitled'
  1443. - bpo-35689: Add docstrings and unittests for colorizer.py.
  1444. - bpo-35660: Fix imports in idlelib.window.
  1445. - bpo-35641: Proper format `calltip` when the function has no docstring.
  1446. - bpo-33987: Use ttk Frame for ttk widgets.
  1447. - bpo-34055: Fix erroneous 'smart' indents and newlines in IDLE Shell.
  1448. - bpo-35591: Find Selection now works when selection not found.
  1449. - bpo-35196: Speed up squeezer line counting.
  1450. - bpo-35598: Update config_key: use PEP 8 names and ttk widgets, make some
  1451. objects global, and add tests.
  1452. - bpo-28097: Add Previous/Next History entries to Shell menu.
  1453. - bpo-35208: Squeezer now properly counts wrapped lines before newlines.
  1454. - bpo-35555: Gray out Code Context menu entry when it's not applicable.
  1455. - bpo-35521: Document the IDLE editor code context feature. Add some
  1456. internal references within the IDLE doc.
  1457. - bpo-22703: The Code Context menu label now toggles between Show/Hide Code
  1458. Context. The Zoom Height menu now toggles between Zoom/Restore Height.
  1459. Zoom Height has moved from the Window menu to the Options menu.
  1460. Tools/Demos
  1461. -----------
  1462. - bpo-35132: Fix py-list and py-bt commands of python-gdb.py on gdb7.
  1463. C API
  1464. -----
  1465. - bpo-33817: Fixed :c:func:`_PyBytes_Resize` for empty bytes objects.
  1466. What's New in Python 3.7.2 final?
  1467. =================================
  1468. *Release date: 2018-12-23*
  1469. Library
  1470. -------
  1471. - bpo-31715: Associate ``.mjs`` file extension with
  1472. ``application/javascript`` MIME Type.
  1473. Build
  1474. -----
  1475. - bpo-35499: ``make profile-opt`` no longer replaces ``CFLAGS_NODIST`` with
  1476. ``CFLAGS``. It now adds profile-guided optimization (PGO) flags to
  1477. ``CFLAGS_NODIST``: existing ``CFLAGS_NODIST`` flags are kept.
  1478. - bpo-35257: Avoid leaking the linker flags from Link Time Optimizations
  1479. (LTO) into distutils when compiling C extensions.
  1480. C API
  1481. -----
  1482. - bpo-35259: Conditionally declare :c:func:`Py_FinalizeEx()` (new in 3.6)
  1483. based on Py_LIMITED_API. Patch by Arthur Neufeld.
  1484. What's New in Python 3.7.2 release candidate 1?
  1485. ===============================================
  1486. *Release date: 2018-12-11*
  1487. Security
  1488. --------
  1489. - bpo-34812: The :option:`-I` command line option (run Python in isolated
  1490. mode) is now also copied by the :mod:`multiprocessing` and
  1491. :mod:`distutils` modules when spawning child processes. Previously, only
  1492. :option:`-E` and :option:`-s` options (enabled by :option:`-I`) were
  1493. copied.
  1494. - bpo-34791: The xml.sax and xml.dom.domreg no longer use environment
  1495. variables to override parser implementations when
  1496. sys.flags.ignore_environment is set by -E or -I arguments.
  1497. Core and Builtins
  1498. -----------------
  1499. - bpo-35444: Fixed error handling in pickling methods when fail to look up
  1500. builtin "getattr".
  1501. - bpo-35436: Fix various issues with memory allocation error handling.
  1502. Patch by Zackery Spytz.
  1503. - bpo-35357: Internal attributes' names of unittest.mock._Call and
  1504. unittest.mock.MagicProxy (name, parent & from_kall) are now prefixed with
  1505. _mock_ in order to prevent clashes with widely used object attributes.
  1506. Fixed minor typo in test function name.
  1507. - bpo-35372: Fixed the code page decoder for input longer than 2 GiB
  1508. containing undecodable bytes.
  1509. - bpo-35336: Fix PYTHONCOERCECLOCALE=1 environment variable: only coerce the
  1510. C locale if the LC_CTYPE locale is "C".
  1511. - bpo-33954: For :meth:`str.format`, :meth:`float.__format__` and
  1512. :meth:`complex.__format__` methods for non-ASCII decimal point when using
  1513. the "n" formatter.
  1514. - bpo-35269: Fix a possible segfault involving a newly-created coroutine.
  1515. Patch by Zackery Spytz.
  1516. - bpo-35214: Fixed an out of bounds memory access when parsing a truncated
  1517. unicode escape sequence at the end of a string such as ``'\N'``. It would
  1518. read one byte beyond the end of the memory allocation.
  1519. - bpo-35214: The interpreter and extension modules have had annotations
  1520. added so that they work properly under clang's Memory Sanitizer. A new
  1521. configure flag --with-memory-sanitizer has been added to make test builds
  1522. of this nature easier to perform.
  1523. - bpo-35193: Fix an off by one error in the bytecode peephole optimizer
  1524. where it could read bytes beyond the end of bounds of an array when
  1525. removing unreachable code. This bug was present in every release of Python
  1526. 3.6 and 3.7 until now.
  1527. - bpo-29341: Clarify in the docstrings of :mod:`os` methods that path-like
  1528. objects are also accepted as input parameters.
  1529. - bpo-35050: :mod:`socket`: Fix off-by-one bug in length check for
  1530. ``AF_ALG`` name and type.
  1531. - bpo-34974: :class:`bytes` and :class:`bytearray` constructors no longer
  1532. convert unexpected exceptions (e.g. :exc:`MemoryError` and
  1533. :exc:`KeyboardInterrupt`) to :exc:`TypeError`.
  1534. - bpo-34973: Fixed crash in :func:`bytes` when the :class:`list` argument is
  1535. mutated while it is iterated.
  1536. - bpo-34824: Fix a possible null pointer dereference in Modules/_ssl.c.
  1537. Patch by Zackery Spytz.
  1538. - bpo-1621: Do not assume signed integer overflow behavior (C undefined
  1539. behavior) when performing set hash table resizing.
  1540. Library
  1541. -------
  1542. - bpo-35052: Fix xml.dom.minidom cloneNode() on a document with an entity:
  1543. pass the correct arguments to the user data handler of an entity.
  1544. - bpo-35330: When a :class:`Mock` instance was used to wrap an object, if
  1545. `side_effect` is used in one of the mocks of it methods, don't call the
  1546. original implementation and return the result of using the side effect the
  1547. same way that it is done with return_value.
  1548. - bpo-34172: Revert the fix for this issue previously released in 3.7.1
  1549. pending further investigation: Fix a reference issue inside
  1550. multiprocessing.Pool that caused the pool to remain alive if it was
  1551. deleted without being closed or terminated explicitly.
  1552. - bpo-10496: :func:`posixpath.expanduser` now returns the input *path*
  1553. unchanged if the ``HOME`` environment variable is not set and the current
  1554. user has no home directory (if the current user identifier doesn't exist
  1555. in the password database). This change fix the :mod:`site` module if the
  1556. current user doesn't exist in the password database (if the user has no
  1557. home directory).
  1558. - bpo-35310: Fix a bug in :func:`select.select` where, in some cases, the
  1559. file descriptor sequences were returned unmodified after a signal
  1560. interruption, even though the file descriptors might not be ready yet.
  1561. :func:`select.select` will now always return empty lists if a timeout has
  1562. occurred. Patch by Oran Avraham.
  1563. - bpo-35380: Enable TCP_NODELAY on Windows for proactor asyncio event loop.
  1564. - bpo-35341: Add generic version of ``collections.OrderedDict`` to the
  1565. ``typing`` module. Patch by Ismo Toijala.
  1566. - bpo-35371: Fixed possible crash in ``os.utime()`` on Windows when pass
  1567. incorrect arguments.
  1568. - bpo-27903: Fix ``ResourceWarning`` in :func:`platform.dist` on SuSE and
  1569. Caldera OpenLinux. Patch by Ville Skyttä.
  1570. - bpo-35308: Fix regression in ``webbrowser`` where default browsers may be
  1571. preferred over browsers in the ``BROWSER`` environment variable.
  1572. - bpo-28604: :func:`locale.localeconv` now sets temporarily the ``LC_CTYPE``
  1573. locale to the ``LC_MONETARY`` locale if the two locales are different and
  1574. monetary strings are non-ASCII. This temporary change affects other
  1575. threads.
  1576. - bpo-35277: Update ensurepip to install pip 18.1 and setuptools 40.6.2.
  1577. - bpo-35226: Recursively check arguments when testing for equality of
  1578. :class:`unittest.mock.call` objects and add note that tracking of
  1579. parameters used to create ancestors of mocks in ``mock_calls`` is not
  1580. possible.
  1581. - bpo-29564: The warnings module now suggests to enable tracemalloc if the
  1582. source is specified, the tracemalloc module is available, but tracemalloc
  1583. is not tracing memory allocations.
  1584. - bpo-35189: Modify the following fnctl function to retry if interrupted by
  1585. a signal (EINTR): flock, lockf, fnctl
  1586. - bpo-35062: Fix incorrect parsing of
  1587. :class:`_io.IncrementalNewlineDecoder`'s *translate* argument.
  1588. - bpo-35079: Improve difflib.SequenceManager.get_matching_blocks doc by
  1589. adding 'non-overlapping' and changing '!=' to '<'.
  1590. - bpo-35017: :meth:`socketserver.BaseServer.serve_forever` now exits
  1591. immediately if it's :meth:`~socketserver.BaseServer.shutdown` method is
  1592. called while it is polling for new events.
  1593. - bpo-31047: Fix ``ntpath.abspath`` regression where it didn't remove a
  1594. trailing separator on Windows. Patch by Tim Graham.
  1595. - bpo-34794: Fixed a leak in Tkinter when pass the Python wrapper around
  1596. Tcl_Obj back to Tcl/Tk.
  1597. - bpo-35008: Fixed references leaks when call the ``__setstate__()`` method
  1598. of :class:`xml.etree.ElementTree.Element` in the C implementation for
  1599. already initialized element.
  1600. - bpo-23420: Verify the value for the parameter '-s' of the cProfile CLI.
  1601. Patch by Robert Kuska
  1602. - bpo-33947: dataclasses now handle recursive reprs without raising
  1603. RecursionError.
  1604. - bpo-16965: The :term:`2to3` :2to3fixer:`execfile` fixer now opens the file
  1605. with mode ``'rb'``. Patch by Zackery Spytz.
  1606. - bpo-34966: :mod:`pydoc` now supports aliases not only to methods defined
  1607. in the end class, but also to inherited methods. The docstring is not
  1608. duplicated for aliases.
  1609. - bpo-34941: Methods ``find()``, ``findtext()`` and ``findall()`` of the
  1610. ``Element`` class in the :mod:`xml.etree.ElementTree` module are now able
  1611. to find children which are instances of ``Element`` subclasses.
  1612. - bpo-34936: Fix ``TclError`` in ``tkinter.Spinbox.selection_element()``.
  1613. Patch by Juliette Monsel.
  1614. - bpo-34866: Adding ``max_num_fields`` to ``cgi.FieldStorage`` to make DOS
  1615. attacks harder by limiting the number of ``MiniFieldStorage`` objects
  1616. created by ``FieldStorage``.
  1617. - bpo-34022: The :envvar:`SOURCE_DATE_EPOCH` environment variable no longer
  1618. overrides the value of the *invalidation_mode* argument to
  1619. :func:`py_compile.compile`, and determines its default value instead.
  1620. - bpo-34738: ZIP files created by :mod:`distutils` will now include entries
  1621. for directories.
  1622. - bpo-31177: Fix bug that prevented using :meth:`reset_mock
  1623. <unittest.mock.Mock.reset_mock>` on mock instances with deleted attributes
  1624. - bpo-34536: `Enum._missing_`: raise `ValueError` if None returned and
  1625. `TypeError` if non-member is returned.
  1626. - bpo-34604: Fix possible mojibake in the error message of `pwd.getpwnam`
  1627. and `grp.getgrnam` using string representation because of invisible
  1628. characters or trailing whitespaces. Patch by William Grzybowski.
  1629. - bpo-34574: OrderedDict iterators are not exhausted during pickling
  1630. anymore. Patch by Sergey Fedoseev.
  1631. - bpo-34052: :meth:`sqlite3.Connection.create_aggregate`,
  1632. :meth:`sqlite3.Connection.create_function`,
  1633. :meth:`sqlite3.Connection.set_authorizer`,
  1634. :meth:`sqlite3.Connection.set_progress_handler` methods raises TypeError
  1635. when unhashable objects are passed as callable. These methods now don't
  1636. pass such objects to SQLite API. Previous behavior could lead to
  1637. segfaults. Patch by Sergey Fedoseev.
  1638. - bpo-29877: compileall: import ProcessPoolExecutor only when needed,
  1639. preventing hangs on low resource platforms
  1640. - bpo-22005: Implemented unpickling instances of
  1641. :class:`~datetime.datetime`, :class:`~datetime.date` and
  1642. :class:`~datetime.time` pickled by Python 2. ``encoding='latin1'`` should
  1643. be used for successful decoding.
  1644. Documentation
  1645. -------------
  1646. - bpo-35089: Remove mention of ``typing.io`` and ``typing.re``. Their types
  1647. should be imported from ``typing`` directly.
  1648. - bpo-35038: Fix the documentation about an unexisting `f_restricted`
  1649. attribute in the frame object. Patch by Stéphane Wirtel
  1650. - bpo-35044: Fix the documentation with the role ``exc`` for the
  1651. appropriated exception. Patch by Stéphane Wirtel
  1652. - bpo-35035: Rename documentation for :mod:`email.utils` to
  1653. ``email.utils.rst``.
  1654. - bpo-34967: Use app.add_object_type() instead of the deprecated Sphinx
  1655. function app.description_unit()
  1656. - bpo-11233: Create availability directive for documentation. Original
  1657. patch by Georg Brandl.
  1658. - bpo-33594: Document ``getargspec``, ``from_function`` and ``from_builtin``
  1659. as deprecated in their respective docstring, and include version since
  1660. deprecation in DeprecationWarning message.
  1661. - bpo-32613: Update the faq/windows.html to use the py command from PEP 397
  1662. instead of python.
  1663. Tests
  1664. -----
  1665. - bpo-33725: test_multiprocessing_fork may crash on recent versions of
  1666. macOS. Until the issue is resolved, skip the test on macOS.
  1667. - bpo-35352: Modify test_asyncio to use the certificate set from the test
  1668. directory.
  1669. - bpo-35317: Fix ``mktime()`` overflow error in ``test_email``: run
  1670. ``test_localtime_daylight_true_dst_true()`` and
  1671. ``test_localtime_daylight_false_dst_true()`` with a specific timezone.
  1672. - bpo-21263: After several reports that test_gdb does not work properly on
  1673. macOS and since gdb is not shipped by default anymore, test_gdb is now
  1674. skipped on macOS when LLVM Clang has been used to compile Python. Patch by
  1675. Lysandros Nikolaou
  1676. - bpo-34279: regrtest issue a warning when no tests have been executed in a
  1677. particular test file. Also, a new final result state is issued if no test
  1678. have been executed across all test files. Patch by Pablo Galindo.
  1679. Build
  1680. -----
  1681. - bpo-35296: The Windows installer (MSI) now also install internal header
  1682. files (``Include/internal/`` subdirectory).
  1683. - bpo-35351: When building Python with clang and LTO, LTO flags are no
  1684. longer passed into CFLAGS to build third-party C extensions through
  1685. distutils.
  1686. - bpo-35139: Fix a compiler error when statically linking `pyexpat` in
  1687. `Modules/Setup`.
  1688. - bpo-35011: Restores the use of pyexpatns.h to isolate our embedded copy of
  1689. the expat C library so that its symbols do not conflict at link or dynamic
  1690. loading time with an embedding application or other extension modules with
  1691. their own version of libexpat.
  1692. - bpo-28015: Have --with-lto works correctly with clang.
  1693. - bpo-33015: Fix an undefined behaviour in the pthread implementation of
  1694. :c:func:`PyThread_start_new_thread`: add a function wrapper to always
  1695. return ``NULL``.
  1696. Windows
  1697. -------
  1698. - bpo-35401: Updates Windows build to OpenSSL 1.1.0j
  1699. - bpo-34977: venv on Windows will now use a python.exe redirector rather
  1700. than copying the actual binaries from the base environment.
  1701. - bpo-34977: Adds support for building a Windows App Store package
  1702. - bpo-35067: Remove _distutils_findvs module and use vswhere.exe instead.
  1703. - bpo-34532: Fixes exit code of list version arguments for py.exe.
  1704. - bpo-32890: Fix usage of GetLastError() instead of errno in os.execve() and
  1705. os.truncate().
  1706. macOS
  1707. -----
  1708. - bpo-35402: Update macOS installer to use Tcl/Tk 8.6.9.1. [NOTE: This
  1709. change was reverted for the released python.org 3.7.2 macOS installers due
  1710. to regressions found in Tk 8.6.9.1. For now, the installers provide
  1711. Tcl/Tk 8.6.8.]
  1712. - bpo-35401: Update macOS installer to use OpenSSL 1.1.0j.
  1713. - bpo-35025: Properly guard the use of the ``CLOCK_GETTIME`` et al. macros
  1714. in ``timemodule`` on macOS.
  1715. - bpo-24658: On macOS, fix reading from and writing into a file with a size
  1716. larger than 2 GiB.
  1717. IDLE
  1718. ----
  1719. - bpo-35213: Where appropriate, use 'macOS' in idlelib.
  1720. - bpo-34864: On macOS, warn if the system preference "Prefer tabs when
  1721. opening documents" is set to "Always".
  1722. - bpo-34864: Document two IDLE on MacOS issues. The System Preferences Dock
  1723. "prefer tabs always" setting disables some IDLE features. Menus are a bit
  1724. different than as described for Windows and Linux.
  1725. - bpo-35202: Remove unused imports from lib/idlelib
  1726. - bpo-33000: Document that IDLE's shell has no line limit. A program that
  1727. runs indefinitely can overfill memory.
  1728. - bpo-23220: Explain how IDLE's Shell displays output.
  1729. - bpo-35099: Improve the doc about IDLE running user code. The section is
  1730. renamed from "IDLE -- console differences" is renamed "Running user code".
  1731. It mostly covers the implications of using custom sys.stdxxx objects.
  1732. - bpo-35097: Add IDLE doc subsection explaining editor windows. Topics
  1733. include opening, title and status bar, .py* extension, and running.
  1734. - bpo-35093: Document the IDLE document viewer in the IDLE doc. Add a
  1735. paragraph in "Help and preferences", "Help sources" subsection.
  1736. - bpo-35088: Update idlelib.help.copy_string docstring. We now use git and
  1737. backporting instead of hg and forward merging.
  1738. - bpo-35087: Update idlelib help files for the current doc build. The main
  1739. change is the elimination of chapter-section numbers.
  1740. Tools/Demos
  1741. -----------
  1742. - bpo-34989: python-gdb.py now handles errors on computing the line number
  1743. of a Python frame.
  1744. C API
  1745. -----
  1746. - bpo-35322: Fix memory leak in :c:func:`PyUnicode_EncodeLocale` and
  1747. :c:func:`PyUnicode_EncodeFSDefault` on error handling.
  1748. - bpo-35296: ``make install`` now also installs the internal API:
  1749. ``Include/internal/*.h`` header files.
  1750. - bpo-34725: Adds _Py_SetProgramFullPath so embedders may override
  1751. sys.executable
  1752. What's New in Python 3.7.1 final?
  1753. =================================
  1754. *Release date: 2018-10-20*
  1755. Library
  1756. -------
  1757. - bpo-34970: Protect tasks weak set manipulation in ``asyncio.all_tasks()``
  1758. What's New in Python 3.7.1 release candidate 2?
  1759. ===============================================
  1760. *Release date: 2018-10-13*
  1761. Core and Builtins
  1762. -----------------
  1763. - bpo-34879: Fix a possible null pointer dereference in bytesobject.c.
  1764. Patch by Zackery Spytz.
  1765. - bpo-34854: Fixed a crash in compiling string annotations containing a
  1766. lambda with a keyword-only argument that doesn't have a default value.
  1767. - bpo-34320: Fix ``dict(od)`` didn't copy iteration order of OrderedDict.
  1768. Library
  1769. -------
  1770. - bpo-34769: Fix for async generators not finalizing when event loop is in
  1771. debug mode and garbage collector runs in another thread.
  1772. - bpo-34922: Fixed integer overflow in the :meth:`~hashlib.shake.digest()`
  1773. and :meth:`~hashlib.shake.hexdigest()` methods for the SHAKE algorithm in
  1774. the :mod:`hashlib` module.
  1775. - bpo-34909: Enum: fix grandchildren subclassing when parent mixed with
  1776. concrete data types.
  1777. - bpo-34900: Fixed :meth:`unittest.TestCase.debug` when used to call test
  1778. methods with subtests. Patch by Bruno Oliveira.
  1779. - bpo-34871: Fix inspect module polluted ``sys.modules`` when parsing
  1780. ``__text_signature__`` of callable.
  1781. - bpo-34872: Fix self-cancellation in C implementation of asyncio.Task
  1782. - bpo-34819: Use a monotonic clock to compute timeouts in
  1783. :meth:`Executor.map` and :func:`as_completed`, in order to prevent
  1784. timeouts from deviating when the system clock is adjusted.
  1785. - bpo-34521: Use :func:`socket.CMSG_SPACE` to calculate ancillary data size
  1786. instead of :func:`socket.CMSG_LEN` in
  1787. :func:`multiprocessing.reduction.recvfds` as :rfc:`3542` requires the use
  1788. of the former for portable applications.
  1789. - bpo-34334: In :class:`QueueHandler`, clear `exc_text` from
  1790. :class:`LogRecord` to prevent traceback from being written twice.
  1791. - bpo-6721: Acquire the logging module's commonly used internal locks while
  1792. fork()ing to avoid deadlocks in the child process.
  1793. - bpo-34172: Fix a reference issue inside multiprocessing.Pool that caused
  1794. the pool to remain alive if it was deleted without being closed or
  1795. terminated explicitly.
  1796. Documentation
  1797. -------------
  1798. - bpo-32174: chm document displays non-ASCII charaters properly on some MBCS
  1799. Windows systems.
  1800. Tests
  1801. -----
  1802. - bpo-32962: Fixed test_gdb when Python is compiled with flags -mcet
  1803. -fcf-protection -O0.
  1804. macOS
  1805. -----
  1806. - bpo-34370: Revert to using the released Tk 8.6.8 with macOS installers
  1807. instead of the Tk 8.6.x development snapshot used with 3.7.1rc1 and
  1808. 3.6.7rc1. The snapshot introduced at least one significant regression
  1809. (bpo-34927).
  1810. C API
  1811. -----
  1812. - bpo-34910: Ensure that :c:func:`PyObject_Print` always returns ``-1`` on
  1813. error. Patch by Zackery Spytz.
  1814. What's New in Python 3.7.1 release candidate 1?
  1815. ===============================================
  1816. *Release date: 2018-09-26*
  1817. Security
  1818. --------
  1819. - bpo-17239: The xml.sax and xml.dom.minidom parsers no longer processes
  1820. external entities by default. External DTD and ENTITY declarations no
  1821. longer load files or create network connections.
  1822. - bpo-34623: CVE-2018-14647: The C accelerated _elementtree module now
  1823. initializes hash randomization salt from _Py_HashSecret instead of
  1824. libexpat's default CSPRNG.
  1825. - bpo-34405: Updated to OpenSSL 1.1.0i for Windows builds.
  1826. - bpo-33871: Fixed sending the part of the file in :func:`os.sendfile` on
  1827. macOS. Using the *trailers* argument could cause sending more bytes from
  1828. the input file than was specified.
  1829. - bpo-32533: Fixed thread-safety of error handling in _ssl.
  1830. Core and Builtins
  1831. -----------------
  1832. - bpo-34783: Fix a crash with musl libc (on Alpine Linux) when the script
  1833. filename specified on the command line doesn't exist.
  1834. - bpo-34762: Fix contextvars C API to use PyObject* pointer types.
  1835. - bpo-34735: Fix a memory leak in Modules/timemodule.c. Patch by Zackery
  1836. Spytz.
  1837. - bpo-34588: Fix an off-by-one in the recursive call pruning feature of
  1838. traceback formatting.
  1839. - bpo-34485: Standard streams like sys.stdout now use the "surrogateescape"
  1840. error handler, instead of "strict", on the POSIX locale (when the C locale
  1841. is not coerced and the UTF-8 Mode is disabled).
  1842. - bpo-34485: Fix the error handler of standard streams like sys.stdout:
  1843. PYTHONIOENCODING=":" is now ignored instead of setting the error handler
  1844. to "strict".
  1845. - bpo-34527: On FreeBSD, Py_DecodeLocale() and Py_EncodeLocale() now also
  1846. forces the ASCII encoding if the LC_CTYPE locale is "POSIX", not only if
  1847. the LC_CTYPE locale is "C".
  1848. - bpo-34527: The UTF-8 Mode is now also enabled by the "POSIX" locale, not
  1849. only by the "C" locale.
  1850. - bpo-34400: Fix undefined behavior in parsetok.c. Patch by Zackery Spytz.
  1851. - bpo-34377: Update valgrind suppression list to use
  1852. ``_PyObject_Free``/``_PyObject_Realloc`` instead of
  1853. ``PyObject_Free``/``PyObject_Realloc``.
  1854. - bpo-34170: -X dev: it is now possible to override the memory allocator
  1855. using PYTHONMALLOC even if the developer mode is enabled.
  1856. - bpo-34126: Fix crashes when profiling certain invalid calls of unbound
  1857. methods. Patch by Jeroen Demeyer.
  1858. - bpo-24618: Fixed reading invalid memory when create the code object with
  1859. too small varnames tuple or too large argument counts.
  1860. - bpo-34068: In :meth:`io.IOBase.close`, ensure that the
  1861. :attr:`~io.IOBase.closed` attribute is not set with a live exception.
  1862. Patch by Zackery Spytz and Serhiy Storchaka.
  1863. - bpo-34087: Fix buffer overflow while converting unicode to numeric values.
  1864. - bpo-34080: Fixed a memory leak in the compiler when it raised some
  1865. uncommon errors during tokenizing.
  1866. - bpo-34066: Disabled interruption by Ctrl-C between calling ``open()`` and
  1867. entering a **with** block in ``with open()``.
  1868. - bpo-34042: Fix dict.copy() to maintain correct total refcount (as reported
  1869. by sys.gettotalrefcount()).
  1870. - bpo-33985: Implement contextvars.ContextVar.name attribute.
  1871. - bpo-33956: Update vendored Expat library copy to version 2.2.5.
  1872. - bpo-24596: Decref the module object in :c:func:`PyRun_SimpleFileExFlags`
  1873. before calling :c:func:`PyErr_Print()`. Patch by Zackery Spytz.
  1874. - bpo-33451: Close directly executed pyc files before calling
  1875. ``PyEval_EvalCode()``.
  1876. - bpo-33824: Fix "LC_ALL=C python3.7 -V": reset properly the command line
  1877. parser when the encoding changes after reading the Python configuration.
  1878. - bpo-25750: Fix rare Python crash due to bad refcounting in
  1879. ``type_getattro()`` if a descriptor deletes itself from the class. Patch
  1880. by Jeroen Demeyer.
  1881. - bpo-31902: Fix the ``col_offset`` attribute for ast nodes
  1882. ``ast.AsyncFor``, ``ast.AsyncFunctionDef``, and ``ast.AsyncWith``.
  1883. Previously, ``col_offset`` pointed to the keyword after ``async``.
  1884. - bpo-25862: Fix assertion failures in the ``tell()`` method of
  1885. ``io.TextIOWrapper``. Patch by Zackery Spytz.
  1886. - bpo-31577: Fix a crash in `os.utime()` in case of a bad ns argument. Patch
  1887. by Oren Milman.
  1888. Library
  1889. -------
  1890. - bpo-29577: Support multiple mixin classes when creating Enums.
  1891. - bpo-34670: Add SSLContext.post_handshake_auth and
  1892. SSLSocket.verify_client_post_handshake for TLS 1.3's post handshake
  1893. authentication feature.
  1894. - bpo-34658: Fix a rare interpreter unhandled exception state SystemError
  1895. only seen when using subprocess with a preexec_fn while an after_parent
  1896. handler has been registered with os.register_at_fork and the fork system
  1897. call fails.
  1898. - bpo-34652: Ensure :func:`os.lchmod` is never defined on Linux.
  1899. - bpo-34363: dataclasses.asdict() and .astuple() now handle namedtuples
  1900. correctly.
  1901. - bpo-34625: Update vendorized expat library version to 2.2.6.
  1902. - bpo-34621: Fix un/pickling compatbility of uuid.UUID objects with older
  1903. versions of Python (<3.7).
  1904. - bpo-32270: The subprocess module no longer mistakenly closes redirected
  1905. fds even when they were in pass_fds when outside of the default {0, 1, 2}
  1906. set.
  1907. - bpo-34610: Fixed iterator of :class:`multiprocessing.managers.DictProxy`.
  1908. - bpo-34421: Fix distutils logging for non-ASCII strings. This caused
  1909. installation issues on Windows.
  1910. - bpo-34604: Fix possible mojibake in the error message of `pwd.getpwnam`
  1911. and `grp.getgrnam`. Patch by William Grzybowski.
  1912. - bpo-34530: ``distutils.spawn.find_executable()`` now falls back on
  1913. :data:`os.defpath` if the ``PATH`` environment variable is not set.
  1914. - bpo-34282: Fix enum members getting shadowed by parent attributes.
  1915. - bpo-34563: On Windows, fix multiprocessing.Connection for very large read:
  1916. fix _winapi.PeekNamedPipe() and _winapi.ReadFile() for read larger than
  1917. INT_MAX (usually 2^31-1).
  1918. - bpo-34558: Correct typo in Lib/ctypes/_aix.py
  1919. - bpo-34515: Fix parsing non-ASCII identifiers in
  1920. :mod:`lib2to3.pgen2.tokenize` (PEP 3131).
  1921. - bpo-13312: Avoids a possible integer underflow (undefined behavior) in the
  1922. time module's year handling code when passed a very low negative year
  1923. value.
  1924. - bpo-34472: Improved compatibility for streamed files in :mod:`zipfile`.
  1925. Previously an optional signature was not being written and certain ZIP
  1926. applications were not supported. Patch by Silas Sewell.
  1927. - bpo-34454: Fix the .fromisoformat() methods of datetime types crashing
  1928. when given unicode with non-UTF-8-encodable code points. Specifically,
  1929. datetime.fromisoformat() now accepts surrogate unicode code points used as
  1930. the separator. Report and tests by Alexey Izbyshev, patch by Paul Ganssle.
  1931. - bpo-6700: Fix inspect.getsourcelines for module level frames/tracebacks.
  1932. Patch by Vladimir Matveev.
  1933. - bpo-34171: Running the :mod:`trace` module no longer creates the
  1934. ``trace.cover`` file.
  1935. - bpo-34441: Fix crash when an ``ABC``-derived class with invalid
  1936. ``__subclasses__`` is passed as the second argument to
  1937. :func:`issubclass()`. Patch by Alexey Izbyshev.
  1938. - bpo-34341: Appending to the ZIP archive with the ZIP64 extension no longer
  1939. grows the size of extra fields of existing entries.
  1940. - bpo-34333: Fix %-formatting in :meth:`pathlib.PurePath.with_suffix` when
  1941. formatting an error message.
  1942. - bpo-18540: The :class:`imaplib.IMAP4` and :class:`imaplib.IMAP4_SSL`
  1943. classes now resolve to the local host IP correctly when the default value
  1944. of *host* parameter (``''``) is used.
  1945. - bpo-34246: :meth:`smtplib.SMTP.send_message` no longer modifies the
  1946. content of the *mail_options* argument. Patch by Pablo S. Blum de Aguiar.
  1947. - bpo-31047: Fix ``ntpath.abspath`` for invalid paths on windows. Patch by
  1948. Franz Woellert.
  1949. - bpo-34263: asyncio's event loop will not pass timeouts longer than one day
  1950. to epoll/select etc.
  1951. - bpo-34035: Fix several AttributeError in zipfile seek() methods. Patch by
  1952. Mickaël Schoentgen.
  1953. - bpo-32215: Fix performance regression in :mod:`sqlite3` when a DML
  1954. statement appeared in a different line than the rest of the SQL query.
  1955. - bpo-34251: Restore ``msilib.Win64`` to preserve backwards compatibility
  1956. since it's already used by :mod:`distutils`' ``bdist_msi`` command.
  1957. - bpo-19891: Ignore errors caused by missing / non-writable homedir while
  1958. writing history during exit of an interactive session. Patch by Anthony
  1959. Sottile.
  1960. - bpo-34213: Allow frozen dataclasses to have a field named "object".
  1961. Previously this conflicted with an internal use of "object".
  1962. - bpo-21446: The :2to3fixer:`reload` fixer now uses :func:`importlib.reload`
  1963. instead of deprecated :func:`imp.reload`.
  1964. - bpo-940286: pydoc's ``Helper.showtopic()`` method now prints the cross
  1965. references of a topic correctly.
  1966. - bpo-34164: :func:`base64.b32decode` could raise UnboundLocalError or
  1967. OverflowError for incorrect padding. Now it always raises
  1968. :exc:`base64.Error` in these cases.
  1969. - bpo-33729: Fixed issues with arguments parsing in :mod:`hashlib`.
  1970. - bpo-34108: Remove extraneous CR in 2to3 refactor.
  1971. - bpo-27494: Reverted :issue:`27494`. 2to3 rejects now a trailing comma in
  1972. generator expressions.
  1973. - bpo-33967: functools.singledispatch now raises TypeError instead of
  1974. IndexError when no positional arguments are passed.
  1975. - bpo-34056: Ensure the loader shim created by ``imp.load_module`` always
  1976. returns bytes from its ``get_data()`` function. This fixes using
  1977. ``imp.load_module`` with :pep:`552` hash-based pycs.
  1978. - bpo-34054: The multiprocessing module now uses the monotonic clock
  1979. :func:`time.monotonic` instead of the system clock :func:`time.time` to
  1980. implement timeout.
  1981. - bpo-34044: ``subprocess.Popen`` now copies the *startupinfo* argument to
  1982. leave it unchanged: it will modify the copy, so that the same
  1983. ``STARTUPINFO`` object can be used multiple times.
  1984. - bpo-34010: Fixed a performance regression for reading streams with
  1985. tarfile. The buffered read should use a list, instead of appending to a
  1986. bytes object.
  1987. - bpo-34019: webbrowser: Correct the arguments passed to Opera Browser when
  1988. opening a new URL using the ``webbrowser`` module. Patch by Bumsik Kim.
  1989. - bpo-33978: Closed existing logging handlers before reconfiguration via
  1990. fileConfig and dictConfig. Patch by Karthikeyan Singaravelan.
  1991. - bpo-14117: Make minor tweaks to turtledemo. The 'wikipedia' example is now
  1992. 'rosette', decribing what it draws. The 'penrose' print output is
  1993. reduced. The'1024' output of 'tree' is eliminated.
  1994. - bpo-33974: Fixed passing lists and tuples of strings containing special
  1995. characters ``"``, ``\``, ``{``, ``}`` and ``\n`` as options to
  1996. :mod:`~tkinter.ttk` widgets.
  1997. - bpo-27500: Fix getaddrinfo to resolve IPv6 addresses correctly.
  1998. - bpo-24567: Improve random.choices() to handle subnormal input weights that
  1999. could occasionally trigger an IndexError.
  2000. - bpo-33871: Fixed integer overflow in :func:`os.readv`, :func:`os.writev`,
  2001. :func:`os.preadv` and :func:`os.pwritev` and in :func:`os.sendfile` with
  2002. *headers* or *trailers* arguments (on BSD-based OSes and macOS).
  2003. - bpo-33899: Tokenize module now implicitly emits a NEWLINE when provided
  2004. with input that does not have a trailing new line. This behavior now
  2005. matches what the C tokenizer does internally. Contributed by Ammar Askar.
  2006. - bpo-33916: bz2 and lzma: When Decompressor.__init__() is called twice,
  2007. free the old lock to not leak memory.
  2008. - bpo-32568: Make select.epoll() and its documentation consistent regarding
  2009. *sizehint* and *flags*.
  2010. - bpo-33833: Fixed bug in asyncio where ProactorSocketTransport logs
  2011. AssertionError if force closed during write.
  2012. - bpo-33663: Convert content length to string before putting to header.
  2013. - bpo-26544: Fixed implementation of :func:`platform.libc_ver`. It almost
  2014. always returned version '2.9' for glibc.
  2015. - bpo-33805: Improve error message of dataclasses.replace() when an InitVar
  2016. is not specified
  2017. - bpo-27397: Make email module properly handle invalid-length base64
  2018. strings.
  2019. - bpo-33476: Fix _header_value_parser.py when address group is missing final
  2020. ';'. Contributed by Enrique Perez-Terron
  2021. - bpo-31014: Fixed creating a controller for :mod:`webbrowser` when a user
  2022. specifies a path to an entry in the BROWSER environment variable. Based
  2023. on patch by John Still.
  2024. - bpo-33365: Print the header values besides the header keys instead just
  2025. the header keys if *debuglevel* is set to >0 in :mod:`http.client`. Patch
  2026. by Marco Strigl.
  2027. - bpo-32933: :func:`unittest.mock.mock_open` now supports iteration over the
  2028. file contents. Patch by Tony Flury.
  2029. - bpo-33336: ``imaplib`` now allows ``MOVE`` command in ``IMAP4.uid()`` (RFC
  2030. 6851: IMAP MOVE Extension) and potentially as a name of supported method
  2031. of ``IMAP4`` object.
  2032. - bpo-31608: Raise a ``TypeError`` instead of crashing if a
  2033. ``collections.deque`` subclass returns a non-deque from ``__new__``. Patch
  2034. by Oren Milman.
  2035. - bpo-29456: Fix bugs in hangul normalization: u1176, u11a7 and u11c3
  2036. Documentation
  2037. -------------
  2038. - bpo-34790: Document how passing coroutines to asyncio.wait() can be
  2039. confusing.
  2040. - bpo-28617: Fixed info in the stdtypes docs concerning the types that
  2041. support membership tests.
  2042. - bpo-34065: Fix wrongly written basicConfig documentation markup syntax
  2043. - bpo-33460: replaced ellipsis with correct error codes in tutorial chapter
  2044. 3.
  2045. - bpo-33847: Add '@' operator entry to index.
  2046. - bpo-25041: Document ``AF_PACKET`` in the :mod:`socket` module.
  2047. Tests
  2048. -----
  2049. - bpo-34537: Fix ``test_gdb.test_strings()`` when ``LC_ALL=C`` and GDB was
  2050. compiled with Python 3.6 or earlier.
  2051. - bpo-34587: test_socket: Remove RDSTest.testCongestion(). The test tries to
  2052. fill the receiver's socket buffer and expects an error. But the RDS
  2053. protocol doesn't require that. Moreover, the Linux implementation of RDS
  2054. expects that the producer of the messages reduces its rate, it's not the
  2055. role of the receiver to trigger an error. The test fails on Fedora 28 by
  2056. design, so just remove it.
  2057. - bpo-34661: Fix test_shutil if unzip doesn't support -t.
  2058. - bpo-34200: Fixed non-deterministic flakiness of test_pkg by not using the
  2059. scary test.support.module_cleanup() logic to save and restore sys.modules
  2060. contents between test cases.
  2061. - bpo-34594: Fix usage of hardcoded ``errno`` values in the tests.
  2062. - bpo-34542: Use 3072 RSA keys and SHA-256 signature for test certs and
  2063. keys.
  2064. - bpo-11193: Remove special condition for AIX in
  2065. `test_subprocess.test_undecodable_env`
  2066. - bpo-34490: On AIX with AF_UNIX family sockets getsockname() does not
  2067. provide 'sockname', so skip calls to transport.get_extra_info('sockname')
  2068. - bpo-34391: Fix ftplib test for TLS 1.3 by reading from data socket.
  2069. - bpo-34399: Update all RSA keys and DH params to use at least 2048 bits.
  2070. - bpo-33746: Fix test_unittest when run in verbose mode.
  2071. - bpo-33901: Fix test_dbm_gnu on macOS with gdbm 1.15: add a larger value to
  2072. make sure that the file size changes.
  2073. - bpo-33873: Fix a bug in ``regrtest`` that caused an extra test to run if
  2074. --huntrleaks/-R was used. Exit with error in case that invalid parameters
  2075. are specified to --huntrleaks/-R (at least one warmup run and one
  2076. repetition must be used).
  2077. - bpo-32663: Making sure the `SMTPUTF8SimTests` class of tests gets run in
  2078. test_smtplib.py.
  2079. Build
  2080. -----
  2081. - bpo-34710: Fixed SSL module build with OpenSSL & pedantic CFLAGS.
  2082. - bpo-34582: Add JUnit XML output for regression tests and update Azure
  2083. DevOps builds.
  2084. - bpo-34555: Fix for case where it was not possible to have both
  2085. ``HAVE_LINUX_VM_SOCKETS_H`` and ``HAVE_SOCKADDR_ALG`` be undefined.
  2086. - bpo-34121: Fix detection of C11 atomic support on clang.
  2087. - bpo-30345: Add -g to LDFLAGS when compiling with LTO to get debug symbols.
  2088. - bpo-33648: The --with-c-locale-warning configuration flag has been
  2089. removed. It has had no effect for about a year.
  2090. Windows
  2091. -------
  2092. - bpo-34770: Fix a possible null pointer dereference in pyshellext.cpp.
  2093. - bpo-34603: Fix returning structs from functions produced by MSVC
  2094. - bpo-34581: Guard MSVC-specific code in socketmodule.c with ``#ifdef
  2095. _MSC_VER``.
  2096. - bpo-34062: Fixed the '--list' and '--list-paths' arguments for the py.exe
  2097. launcher
  2098. - bpo-34225: Ensure INCLUDE and LIB directories do not end with a backslash.
  2099. - bpo-34006: Revert line length limit for Windows help docs. The line-length
  2100. limit is not needed because the pages appear in a separate app rather than
  2101. on a browser tab. It can also interact badly with the DPI setting.
  2102. - bpo-31546: Restore running PyOS_InputHook while waiting for user input at
  2103. the prompt. The restores integration of interactive GUI windows (such as
  2104. Matplotlib figures) with the prompt on Windows.
  2105. - bpo-30237: Output error when ReadConsole is canceled by
  2106. CancelSynchronousIo instead of crashing.
  2107. - bpo-29097: Fix bug where :meth:`datetime.fromtimestamp` erronously throws
  2108. an :exc:`OSError` on Windows for values between 0 and 86400. Patch by
  2109. Ammar Askar.
  2110. macOS
  2111. -----
  2112. - bpo-34370: Have macOS 10.9+ installer builds for 3.7.1rc and 3.6.7rc use a
  2113. development snapshot of Tk 8.6 (post-8.6.8) to mitigate certain scroller
  2114. issues seen with IDLE and tkinter apps.
  2115. - bpo-34405: Update to OpenSSL 1.1.0i for macOS installer builds.
  2116. - bpo-33635: In macOS stat on some file descriptors (/dev/fd/3 f.e) will
  2117. result in bad file descriptor OSError. Guard against this exception was
  2118. added in is_dir, is_file and similar methods. DirEntry.is_dir can also
  2119. throw this exception so _RecursiveWildcardSelector._iterate_directories
  2120. was also extended with the same error ignoring pattern.
  2121. - bpo-31903: In :mod:`_scproxy`, drop the GIL when calling into
  2122. ``SystemConfiguration`` to avoid deadlocks.
  2123. IDLE
  2124. ----
  2125. - bpo-34548: Use configured color theme for read-only text views.
  2126. - bpo-1529353: Enable "squeezing" of long outputs in the shell, to avoid
  2127. performance degradation and to clean up the history without losing it.
  2128. Squeezed outputs may be copied, viewed in a separate window, and
  2129. "unsqueezed".
  2130. - bpo-34047: Fixed mousewheel scrolling direction on macOS.
  2131. - bpo-34275: Make IDLE calltips always visible on Mac. Some MacOS-tk
  2132. combinations need .update_idletasks(). Patch by Kevin Walzer.
  2133. - bpo-34120: Fix unresponsiveness after closing certain windows and dialogs.
  2134. - bpo-33975: Avoid small type when running htests. Since part of the purpose
  2135. of human-viewed tests is to determine that widgets look right, it is
  2136. important that they look the same for testing as when running IDLE.
  2137. - bpo-33905: Add test for idlelib.stackview.StackBrowser.
  2138. - bpo-33924: Change mainmenu.menudefs key 'windows' to 'window'. Every other
  2139. menudef key is lowercase version of main menu entry.
  2140. - bpo-33906: Rename idlelib.windows as window Match Window on the main menu
  2141. and remove last plural module name.
  2142. - bpo-33917: Fix and document idlelib/idle_test/template.py. The revised
  2143. file compiles, runs, and tests OK. idle_test/README.txt explains how to
  2144. use it to create new IDLE test files.
  2145. - bpo-33904: IDLE: In rstrip, rename class RstripExtension as Rstrip
  2146. - bpo-33907: For consistency and clarity, rename an IDLE module and classes.
  2147. Module calltips and its class CallTips are now calltip and Calltip. In
  2148. module calltip_w, class CallTip is now CalltipWindow.
  2149. - bpo-33856: Add "help" in the welcome message of IDLE
  2150. - bpo-33839: IDLE: refactor ToolTip and CallTip and add documentation and
  2151. tests
  2152. - bpo-33855: Minimally test all IDLE modules. Add missing files, import
  2153. module, instantiate classes, and check coverage. Check existing files.
  2154. Tools/Demos
  2155. -----------
  2156. - bpo-32962: python-gdb now catches ``UnicodeDecodeError`` exceptions when
  2157. calling ``string()``.
  2158. - bpo-32962: python-gdb now catches ValueError on read_var(): when Python
  2159. has no debug symbols for example.
  2160. C API
  2161. -----
  2162. - bpo-34247: Fix Py_Initialize() regression introduced in 3.7.0: read
  2163. environment variables like PYTHONOPTIMIZE.
  2164. - bpo-23927: Fixed :exc:`SystemError` in
  2165. :c:func:`PyArg_ParseTupleAndKeywords` when the ``w*`` format unit is used
  2166. for optional parameter.
  2167. - bpo-34008: Py_Main() can again be called after Py_Initialize(), as in
  2168. Python 3.6.
  2169. What's New in Python 3.7.0 final?
  2170. =================================
  2171. *Release date: 2018-06-27*
  2172. Library
  2173. -------
  2174. - bpo-33851: Fix :func:`ast.get_docstring` for a node that lacks a
  2175. docstring.
  2176. C API
  2177. -----
  2178. - bpo-33932: Calling Py_Initialize() twice does nothing, instead of failing
  2179. with a fatal error: restore the Python 3.6 behaviour.
  2180. What's New in Python 3.7.0 release candidate 1?
  2181. ===============================================
  2182. *Release date: 2018-06-12*
  2183. Core and Builtins
  2184. -----------------
  2185. - bpo-33803: Fix a crash in hamt.c caused by enabling GC tracking for an
  2186. object that hadn't all of its fields set to NULL.
  2187. - bpo-33706: Fix a crash in Python initialization when parsing the command
  2188. line options. Thanks Christoph Gohlke for the bug report and the fix!
  2189. - bpo-30654: Fixed reset of the SIGINT handler to SIG_DFL on interpreter
  2190. shutdown even when there was a custom handler set previously. Patch by
  2191. Philipp Kerling.
  2192. - bpo-31849: Fix signed/unsigned comparison warning in pyhash.c.
  2193. Library
  2194. -------
  2195. - bpo-30167: Prevent site.main() exception if PYTHONSTARTUP is set. Patch by
  2196. Steve Weber.
  2197. - bpo-33812: Datetime instance d with non-None tzinfo, but with
  2198. d.tzinfo.utcoffset(d) returning None is now treated as naive by the
  2199. astimezone() method.
  2200. - bpo-30805: Avoid race condition with debug logging
  2201. - bpo-33694: asyncio: Fix a race condition causing data loss on
  2202. pause_reading()/resume_reading() when using the ProactorEventLoop.
  2203. - bpo-32493: Correct test for ``uuid_enc_be`` availability in
  2204. ``configure.ac``. Patch by Michael Felt.
  2205. - bpo-33792: Add asyncio.WindowsSelectorEventLoopPolicy and
  2206. asyncio.WindowsProactorEventLoopPolicy.
  2207. - bpo-33778: Update ``unicodedata``'s database to Unicode version 11.0.0.
  2208. - bpo-33770: improve base64 exception message for encoded inputs of invalid
  2209. length
  2210. - bpo-33769: asyncio/start_tls: Fix error message; cancel callbacks in case
  2211. of an unhandled error; mark SSLTransport as closed if it is aborted.
  2212. - bpo-33767: The concatenation (``+``) and repetition (``*``) sequence
  2213. operations now raise :exc:`TypeError` instead of :exc:`SystemError` when
  2214. performed on :class:`mmap.mmap` objects. Patch by Zackery Spytz.
  2215. - bpo-33734: asyncio/ssl: Fix AttributeError, increase default handshake
  2216. timeout
  2217. - bpo-11874: Use a better regex when breaking usage into wrappable parts.
  2218. Avoids bogus assertion errors from custom metavar strings.
  2219. - bpo-33582: Emit a deprecation warning for inspect.formatargspec
  2220. Documentation
  2221. -------------
  2222. - bpo-33409: Clarified the relationship between PEP 538's
  2223. PYTHONCOERCECLOCALE and PEP 540's PYTHONUTF8 mode.
  2224. - bpo-33736: Improve the documentation of :func:`asyncio.open_connection`,
  2225. :func:`asyncio.start_server` and their UNIX socket counterparts.
  2226. - bpo-31432: Clarify meaning of CERT_NONE, CERT_OPTIONAL, and CERT_REQUIRED
  2227. flags for ssl.SSLContext.verify_mode.
  2228. Build
  2229. -----
  2230. - bpo-5755: Move ``-Wstrict-prototypes`` option to ``CFLAGS_NODIST`` from
  2231. ``OPT``. This option emitted annoying warnings when building extension
  2232. modules written in C++.
  2233. Windows
  2234. -------
  2235. - bpo-33720: Reduces maximum marshal recursion depth on release builds.
  2236. IDLE
  2237. ----
  2238. - bpo-33656: On Windows, add API call saying that tk scales for DPI. On
  2239. Windows 8.1+ or 10, with DPI compatibility properties of the Python binary
  2240. unchanged, and a monitor resolution greater than 96 DPI, this should make
  2241. text and lines sharper. It should otherwise have no effect.
  2242. - bpo-33768: Clicking on a context line moves that line to the top of the
  2243. editor window.
  2244. - bpo-33763: IDLE: Use read-only text widget for code context instead of
  2245. label widget.
  2246. - bpo-33664: Scroll IDLE editor text by lines. Previously, the mouse wheel
  2247. and scrollbar slider moved text by a fixed number of pixels, resulting in
  2248. partial lines at the top of the editor box. The change also applies to
  2249. the shell and grep output windows, but not to read-only text views.
  2250. - bpo-33679: Enable theme-specific color configuration for Code Context. Use
  2251. the Highlights tab to see the setting for built-in themes or add settings
  2252. to custom themes.
  2253. - bpo-33642: Display up to maxlines non-blank lines for Code Context. If
  2254. there is no current context, show a single blank line.
  2255. What's New in Python 3.7.0 beta 5?
  2256. ==================================
  2257. *Release date: 2018-05-30*
  2258. Core and Builtins
  2259. -----------------
  2260. - bpo-33622: Fixed a leak when the garbage collector fails to add an object
  2261. with the ``__del__`` method or referenced by it into the
  2262. :data:`gc.garbage` list. :c:func:`PyGC_Collect` can now be called when an
  2263. exception is set and preserves it.
  2264. - bpo-33509: Fix module_globals parameter of warnings.warn_explicit(): don't
  2265. crash if module_globals is not a dict.
  2266. - bpo-20104: The new `os.posix_spawn` added in 3.7.0b1 was removed as we are
  2267. still working on what the API should look like. Expect this in 3.8
  2268. instead.
  2269. - bpo-33475: Fixed miscellaneous bugs in converting annotations to strings
  2270. and optimized parentheses in the string representation.
  2271. - bpo-33391: Fix a leak in set_symmetric_difference().
  2272. - bpo-28055: Fix unaligned accesses in siphash24(). Patch by Rolf Eike Beer.
  2273. - bpo-32911: Due to unexpected compatibility issues discovered during
  2274. downstream beta testing, reverted :issue:`29463`. ``docstring`` field is
  2275. removed from Module, ClassDef, FunctionDef, and AsyncFunctionDef ast nodes
  2276. which was added in 3.7a1. Docstring expression is restored as a first
  2277. statement in their body. Based on patch by Inada Naoki.
  2278. - bpo-21983: Fix a crash in `ctypes.cast()` in case the type argument is a
  2279. ctypes structured data type. Patch by Eryk Sun and Oren Milman.
  2280. Library
  2281. -------
  2282. - bpo-32751: When cancelling the task due to a timeout,
  2283. :meth:`asyncio.wait_for` will now wait until the cancellation is complete.
  2284. - bpo-32684: Fix gather to propagate cancellation of itself even with
  2285. return_exceptions.
  2286. - bpo-33654: Support protocol type switching in SSLTransport.set_protocol().
  2287. - bpo-33674: Pause the transport as early as possible to further reduce the
  2288. risk of data_received() being called before connection_made().
  2289. - bpo-33674: Fix a race condition in SSLProtocol.connection_made() of
  2290. asyncio.sslproto: start immediately the handshake instead of using
  2291. call_soon(). Previously, data_received() could be called before the
  2292. handshake started, causing the handshake to hang or fail.
  2293. - bpo-31647: Fixed bug where calling write_eof() on a
  2294. _SelectorSocketTransport after it's already closed raises AttributeError.
  2295. - bpo-32610: Make asyncio.all_tasks() return only pending tasks.
  2296. - bpo-32410: Avoid blocking on file IO in sendfile fallback code
  2297. - bpo-33469: Fix RuntimeError after closing loop that used run_in_executor
  2298. - bpo-33672: Fix Task.__repr__ crash with Cython's bogus coroutines
  2299. - bpo-33654: Fix transport.set_protocol() to support switching between
  2300. asyncio.Protocol and asyncio.BufferedProtocol. Fix loop.start_tls() to
  2301. work with asyncio.BufferedProtocols.
  2302. - bpo-33652: Pickles of type variables and subscripted generics are now
  2303. future-proof and compatible with older Python versions.
  2304. - bpo-32493: Fixed :func:`uuid.uuid1` on FreeBSD.
  2305. - bpo-33618: Finalize and document preliminary and experimental TLS 1.3
  2306. support with OpenSSL 1.1.1
  2307. - bpo-33623: Fix possible SIGSGV when asyncio.Future is created in __del__
  2308. - bpo-30877: Fixed a bug in the Python implementation of the JSON decoder
  2309. that prevented the cache of parsed strings from clearing after finishing
  2310. the decoding. Based on patch by c-fos.
  2311. - bpo-33570: Change TLS 1.3 cipher suite settings for compatibility with
  2312. OpenSSL 1.1.1-pre6 and newer. OpenSSL 1.1.1 will have TLS 1.3 ciphers
  2313. enabled by default.
  2314. - bpo-28556: Do not simplify arguments to `typing.Union`. Now
  2315. `Union[Manager, Employee]` is not simplified to `Employee` at runtime.
  2316. Such simplification previously caused several bugs and limited
  2317. possibilities for introspection.
  2318. - bpo-33540: Add a new ``block_on_close`` class attribute to
  2319. ``ForkingMixIn`` and ``ThreadingMixIn`` classes of :mod:`socketserver`.
  2320. - bpo-33548: tempfile._candidate_tempdir_list should consider common TEMP
  2321. locations
  2322. - bpo-33109: argparse subparsers are once again not required by default,
  2323. reverting the change in behavior introduced by bpo-26510 in 3.7.0a2.
  2324. - bpo-33536: dataclasses.make_dataclass now checks for invalid field names
  2325. and duplicate fields. Also, added a check for invalid field
  2326. specifications.
  2327. - bpo-33542: Prevent ``uuid.get_node`` from using a DUID instead of a MAC on
  2328. Windows. Patch by Zvi Effron
  2329. - bpo-26819: Fix race condition with `ReadTransport.resume_reading` in
  2330. Windows proactor event loop.
  2331. - Fix failure in `typing.get_type_hints()` when ClassVar was provided as a
  2332. string forward reference.
  2333. - bpo-33505: Optimize asyncio.ensure_future() by reordering if checks: 1.17x
  2334. faster.
  2335. - bpo-33497: Add errors param to cgi.parse_multipart and make an encoding in
  2336. FieldStorage use the given errors (needed for Twisted). Patch by Amber
  2337. Brown.
  2338. - bpo-33495: Change dataclasses.Fields repr to use the repr of each of its
  2339. members, instead of str. This makes it more clear what each field
  2340. actually represents. This is especially true for the 'type' member.
  2341. - bpo-33453: Fix dataclasses to work if using literal string type
  2342. annotations or if using PEP 563 "Postponed Evaluation of Annotations".
  2343. Only specific string prefixes are detected for both ClassVar ("ClassVar"
  2344. and "typing.ClassVar") and InitVar ("InitVar" and "dataclasses.InitVar").
  2345. - bpo-28556: Minor fixes in typing module: add annotations to
  2346. ``NamedTuple.__new__``, pass ``*args`` and ``**kwds`` in
  2347. ``Generic.__new__``. Original PRs by Paulius Šarka and Chad Dombrova.
  2348. - bpo-20087: Updated alias mapping with glibc 2.27 supported locales.
  2349. - bpo-33422: Fix trailing quotation marks getting deleted when looking up
  2350. byte/string literals on pydoc. Patch by Andrés Delfino.
  2351. - bpo-28167: The function ``platform.linux_distribution`` and
  2352. ``platform.dist`` now trigger a ``DeprecationWarning`` and have been
  2353. marked for removal in Python 3.8
  2354. - bpo-33197: Update error message when constructing invalid
  2355. inspect.Parameters Patch by Dong-hee Na.
  2356. - bpo-33263: Fix FD leak in `_SelectorSocketTransport` Patch by Vlad
  2357. Starostin.
  2358. - bpo-32861: The urllib.robotparser's ``__str__`` representation now
  2359. includes wildcard entries and the "Crawl-delay" and "Request-rate" fields.
  2360. Patch by Michael Lazar.
  2361. - bpo-32257: The ssl module now contains OP_NO_RENEGOTIATION constant,
  2362. available with OpenSSL 1.1.0h or 1.1.1.
  2363. - bpo-16865: Support arrays >=2GiB in :mod:`ctypes`. Patch by Segev Finer.
  2364. Documentation
  2365. -------------
  2366. - bpo-23859: Document that `asyncio.wait()` does not cancel its futures on
  2367. timeout.
  2368. - bpo-32436: Document PEP 567 changes to asyncio.
  2369. - bpo-33604: Update HMAC md5 default to a DeprecationWarning, bump removal
  2370. to 3.8.
  2371. - bpo-33503: Fix broken pypi link
  2372. - bpo-33421: Add missing documentation for ``typing.AsyncContextManager``.
  2373. Tests
  2374. -----
  2375. - bpo-33655: Ignore test_posix_fallocate failures on BSD platforms that
  2376. might be due to running on ZFS.
  2377. - bpo-32604: Remove the _xxsubinterpreters module (meant for testing) and
  2378. associated helpers. This module was originally added recently in 3.7b1.
  2379. Build
  2380. -----
  2381. - bpo-33614: Ensures module definition files for the stable ABI on Windows
  2382. are correctly regenerated.
  2383. - bpo-33522: Enable CI builds on Visual Studio Team Services at
  2384. https://python.visualstudio.com/cpython
  2385. - bpo-33012: Add ``-Wno-cast-function-type`` for gcc 8 for silencing
  2386. warnings about function casts like casting to PyCFunction in method
  2387. definition lists.
  2388. macOS
  2389. -----
  2390. - bpo-13631: The .editrc file in user's home directory is now processed
  2391. correctly during the readline initialization through editline emulation on
  2392. macOS.
  2393. IDLE
  2394. ----
  2395. - bpo-33628: IDLE: Cleanup codecontext.py and its test.
  2396. - bpo-33564: IDLE's code context now recognizes async as a block opener.
  2397. - bpo-32831: Add docstrings and tests for codecontext.
  2398. What's New in Python 3.7.0 beta 4?
  2399. ==================================
  2400. *Release date: 2018-05-02*
  2401. Core and Builtins
  2402. -----------------
  2403. - bpo-33363: Raise a SyntaxError for ``async with`` and ``async for``
  2404. statements outside of async functions.
  2405. - bpo-33128: Fix a bug that causes PathFinder to appear twice on
  2406. sys.meta_path. Patch by Pablo Galindo Salgado.
  2407. - bpo-33312: Fixed clang ubsan (undefined behavior sanitizer) warnings in
  2408. dictobject.c by adjusting how the internal struct _dictkeysobject shared
  2409. keys structure is declared.
  2410. - bpo-33231: Fix potential memory leak in ``normalizestring()``.
  2411. - bpo-33205: Change dict growth function from
  2412. ``round_up_to_power_2(used*2+hashtable_size/2)`` to
  2413. ``round_up_to_power_2(used*3)``. Previously, dict is shrinked only when
  2414. ``used == 0``. Now dict has more chance to be shrinked.
  2415. - bpo-29922: Improved error messages in 'async with' when ``__aenter__()``
  2416. or ``__aexit__()`` return non-awaitable object.
  2417. - bpo-33199: Fix ``ma_version_tag`` in dict implementation is uninitialized
  2418. when copying from key-sharing dict.
  2419. Library
  2420. -------
  2421. - bpo-33281: Fix ctypes.util.find_library regression on macOS.
  2422. - bpo-33383: Fixed crash in the get() method of the :mod:`dbm.ndbm` database
  2423. object when it is called with a single argument.
  2424. - bpo-33329: Fix multiprocessing regression on newer glibcs
  2425. - bpo-991266: Fix quoting of the ``Comment`` attribute of
  2426. :class:`http.cookies.SimpleCookie`.
  2427. - bpo-33131: Upgrade bundled version of pip to 10.0.1.
  2428. - bpo-33308: Fixed a crash in the :mod:`parser` module when converting an ST
  2429. object to a tree of tuples or lists with ``line_info=False`` and
  2430. ``col_info=True``.
  2431. - bpo-33266: lib2to3 now recognizes ``rf'...'`` strings.
  2432. - bpo-11594: Ensure line-endings are respected when using lib2to3.
  2433. - bpo-33254: Have :func:`importlib.resources.contents` and
  2434. :meth:`importlib.abc.ResourceReader.contents` return an :term:`iterable`
  2435. instead of an :term:`iterator`.
  2436. - bpo-33256: Fix display of ``<module>`` call in the html produced by
  2437. ``cgitb.html()``. Patch by Stéphane Blondon.
  2438. - bpo-33185: Fixed regression when running pydoc with the :option:`-m`
  2439. switch. (The regression was introduced in 3.7.0b3 by the resolution of
  2440. :issue:`33053`)
  2441. This fix also changed pydoc to add ``os.getcwd()`` to :data:`sys.path`
  2442. when necessary, rather than adding ``"."``.
  2443. - bpo-33169: Delete entries of ``None`` in :data:`sys.path_importer_cache`
  2444. when :meth:`importlib.machinery.invalidate_caches` is called.
  2445. - bpo-33217: Deprecate looking up non-Enum objects in Enum classes and Enum
  2446. members (will raise :exc:`TypeError` in 3.8+).
  2447. - bpo-33203: ``random.Random.choice()`` now raises ``IndexError`` for empty
  2448. sequences consistently even when called from subclasses without a
  2449. ``getrandbits()`` implementation.
  2450. - bpo-33224: Update difflib.mdiff() for PEP 479. Convert an uncaught
  2451. StopIteration in a generator into a return-statement.
  2452. - bpo-33209: End framing at the end of C implementation of
  2453. :func:`pickle.Pickler.dump`.
  2454. - bpo-20104: Improved error handling and fixed a reference leak in
  2455. :func:`os.posix_spawn()`.
  2456. - bpo-33175: In dataclasses, Field.__set_name__ now looks up the
  2457. __set_name__ special method on the class, not the instance, of the default
  2458. value.
  2459. - bpo-33097: Raise RuntimeError when ``executor.submit`` is called during
  2460. interpreter shutdown.
  2461. - bpo-31908: Fix output of cover files for ``trace`` module command-line
  2462. tool. Previously emitted cover files only when ``--missing`` option was
  2463. used. Patch by Michael Selik.
  2464. Documentation
  2465. -------------
  2466. - bpo-33378: Add Korean language switcher for https://docs.python.org/3/
  2467. - bpo-33276: Clarify that the ``__path__`` attribute on modules cannot be
  2468. just any value.
  2469. - bpo-33201: Modernize documentation for writing C extension types.
  2470. - bpo-33195: Deprecate ``Py_UNICODE`` usage in ``c-api/arg`` document.
  2471. ``Py_UNICODE`` related APIs are deprecated since Python 3.3, but it is
  2472. missed in the document.
  2473. - bpo-8243: Add a note about curses.addch and curses.addstr exception
  2474. behavior when writing outside a window, or pad.
  2475. - bpo-32337: Update documentation related with ``dict`` order.
  2476. Tests
  2477. -----
  2478. - bpo-33358: Fix ``test_embed.test_pre_initialization_sys_options()`` when
  2479. the interpreter is built with ``--enable-shared``.
  2480. Build
  2481. -----
  2482. - bpo-33394: Enable the verbose build for extension modules, when GNU make
  2483. is passed macros on the command line.
  2484. - bpo-33393: Update config.guess and config.sub files.
  2485. - bpo-33377: Add new triplets for mips r6 and riscv variants (used in
  2486. extension suffixes).
  2487. - bpo-32232: By default, modules configured in `Modules/Setup` are no longer
  2488. built with `-DPy_BUILD_CORE`. Instead, modules that specifically need that
  2489. preprocessor definition include it in their individual entries.
  2490. - bpo-33182: The embedding tests can once again be built with clang 6.0
  2491. Windows
  2492. -------
  2493. - bpo-33184: Update Windows installer to use OpenSSL 1.1.0h.
  2494. macOS
  2495. -----
  2496. - bpo-33184: Update macOS installer build to use OpenSSL 1.1.0h.
  2497. IDLE
  2498. ----
  2499. - bpo-21474: Update word/identifier definition from ascii to unicode. In
  2500. text and entry boxes, this affects selection by double-click, movement
  2501. left/right by control-left/right, and deletion left/right by
  2502. control-BACKSPACE/DEL.
  2503. - bpo-33204: IDLE: consistently color invalid string prefixes. A 'u' string
  2504. prefix cannot be paired with either 'r' or 'f'. Consistently color as much
  2505. of the prefix, starting at the right, as is valid. Revise and extend
  2506. colorizer test.
  2507. Tools/Demos
  2508. -----------
  2509. - bpo-33189: :program:`pygettext.py` now recognizes only literal strings as
  2510. docstrings and translatable strings, and rejects bytes literals and
  2511. f-string expressions.
  2512. - bpo-31920: Fixed handling directories as arguments in the ``pygettext``
  2513. script. Based on patch by Oleg Krasnikov.
  2514. - bpo-29673: Fix pystackv and pystack gdbinit macros.
  2515. - bpo-31583: Fix 2to3 for using with --add-suffix option but without
  2516. --output-dir option for relative path to files in current directory.
  2517. What's New in Python 3.7.0 beta 3?
  2518. ==================================
  2519. *Release date: 2018-03-29*
  2520. Security
  2521. --------
  2522. - bpo-33136: Harden ssl module against LibreSSL CVE-2018-8970.
  2523. X509_VERIFY_PARAM_set1_host() is called with an explicit namelen. A new
  2524. test ensures that NULL bytes are not allowed.
  2525. - bpo-33001: Minimal fix to prevent buffer overrun in os.symlink on Windows
  2526. - bpo-32981: Regexes in difflib and poplib were vulnerable to catastrophic
  2527. backtracking. These regexes formed potential DOS vectors (REDOS). They
  2528. have been refactored. This resolves CVE-2018-1060 and CVE-2018-1061. Patch
  2529. by Jamie Davis.
  2530. Core and Builtins
  2531. -----------------
  2532. - bpo-33053: When using the -m switch, sys.path[0] is now explicitly
  2533. expanded as the *starting* working directory, rather than being left as
  2534. the empty path (which allows imports from the current working directory at
  2535. the time of the import)
  2536. - bpo-33018: Improve consistency of errors raised by ``issubclass()`` when
  2537. called with a non-class and an abstract base class as the first and second
  2538. arguments, respectively. Patch by Josh Bronson.
  2539. - bpo-33041: Fixed jumping when the function contains an ``async for`` loop.
  2540. - bpo-33026: Fixed jumping out of "with" block by setting f_lineno.
  2541. - bpo-33005: Fix a crash on fork when using a custom memory allocator (ex:
  2542. using PYTHONMALLOC env var). _PyGILState_Reinit() and
  2543. _PyInterpreterState_Enable() now use the default RAW memory allocator to
  2544. allocate a new interpreters mutex on fork.
  2545. - bpo-17288: Prevent jumps from 'return' and 'exception' trace events.
  2546. - bpo-32836: Don't use temporary variables in cases of list/dict/set
  2547. comprehensions
  2548. Library
  2549. -------
  2550. - bpo-33141: Have Field objects pass through __set_name__ to their default
  2551. values, if they have their own __set_name__.
  2552. - bpo-33096: Allow ttk.Treeview.insert to insert iid that has a false
  2553. boolean value. Note iid=0 and iid=False would be same. Patch by Garvit
  2554. Khatri.
  2555. - bpo-32873: Treat type variables and special typing forms as immutable by
  2556. copy and pickle. This fixes several minor issues and inconsistencies, and
  2557. improves backwards compatibility with Python 3.6.
  2558. - bpo-33134: When computing dataclass's __hash__, use the lookup table to
  2559. contain the function which returns the __hash__ value. This is an
  2560. improvement over looking up a string, and then testing that string to see
  2561. what to do.
  2562. - bpo-33127: The ssl module now compiles with LibreSSL 2.7.1.
  2563. - bpo-32505: Raise TypeError if a member variable of a dataclass is of type
  2564. Field, but doesn't have a type annotation.
  2565. - bpo-33078: Fix the failure on OSX caused by the tests relying on
  2566. sem_getvalue
  2567. - bpo-33116: Add 'Field' to dataclasses.__all__.
  2568. - bpo-32896: Fix an error where subclassing a dataclass with a field that
  2569. uses a default_factory would generate an incorrect class.
  2570. - bpo-33100: Dataclasses: If a field has a default value that's a
  2571. MemberDescriptorType, then it's from that field being in __slots__, not an
  2572. actual default value.
  2573. - bpo-32953: If a non-dataclass inherits from a frozen dataclass, allow
  2574. attributes to be added to the derived class. Only attributes from the
  2575. frozen dataclass cannot be assigned to. Require all dataclasses in a
  2576. hierarchy to be either all frozen or all non-frozen.
  2577. - bpo-33061: Add missing ``NoReturn`` to ``__all__`` in typing.py
  2578. - bpo-33078: Fix the size handling in multiprocessing.Queue when a pickling
  2579. error occurs.
  2580. - bpo-33064: lib2to3 now properly supports trailing commas after ``*args``
  2581. and ``**kwargs`` in function signatures.
  2582. - bpo-33056: FIX properly close leaking fds in
  2583. concurrent.futures.ProcessPoolExecutor.
  2584. - bpo-33021: Release the GIL during fstat() calls, avoiding hang of all
  2585. threads when calling mmap.mmap(), os.urandom(), and random.seed(). Patch
  2586. by Nir Soffer.
  2587. - bpo-31804: Avoid failing in multiprocessing.Process if the standard
  2588. streams are closed or None at exit.
  2589. - bpo-33037: Skip sending/receiving data after SSL transport closing.
  2590. - bpo-27683: Fix a regression in :mod:`ipaddress` that result of
  2591. :meth:`hosts` is empty when the network is constructed by a tuple
  2592. containing an integer mask and only 1 bit left for addresses.
  2593. - bpo-32999: Fix C implementation of ``ABC.__subclasscheck__(cls,
  2594. subclass)`` crashed when ``subclass`` is not a type object.
  2595. - bpo-33009: Fix inspect.signature() for single-parameter partialmethods.
  2596. - bpo-32969: Expose several missing constants in zlib and fix corresponding
  2597. documentation.
  2598. - bpo-32056: Improved exceptions raised for invalid number of channels and
  2599. sample width when read an audio file in modules :mod:`aifc`, :mod:`wave`
  2600. and :mod:`sunau`.
  2601. - bpo-32844: Fix wrong redirection of a low descriptor (0 or 1) to stderr in
  2602. subprocess if another low descriptor is closed.
  2603. - bpo-32857: In :mod:`tkinter`, ``after_cancel(None)`` now raises a
  2604. :exc:`ValueError` instead of canceling the first scheduled function.
  2605. Patch by Cheryl Sabella.
  2606. - bpo-31639: http.server now exposes a ThreadedHTTPServer class and uses it
  2607. when the module is run with ``-m`` to cope with web browsers pre-opening
  2608. sockets.
  2609. - bpo-27645: :class:`sqlite3.Connection` now exposes a
  2610. :class:`~sqlite3.Connection.backup` method, if the underlying SQLite
  2611. library is at version 3.6.11 or higher. Patch by Lele Gaifax.
  2612. Documentation
  2613. -------------
  2614. - bpo-33126: Document PyBuffer_ToContiguous().
  2615. - bpo-27212: Modify documentation for the :func:`islice` recipe to consume
  2616. initial values up to the start index.
  2617. - bpo-28247: Update :mod:`zipapp` documentation to describe how to make
  2618. standalone applications.
  2619. - bpo-18802: Documentation changes for ipaddress. Patch by Jon Foster and
  2620. Berker Peksag.
  2621. - bpo-27428: Update documentation to clarify that ``WindowsRegistryFinder``
  2622. implements ``MetaPathFinder``. (Patch by Himanshu Lakhara)
  2623. Tests
  2624. -----
  2625. - bpo-32872: Avoid regrtest compatibility issue with namespace packages.
  2626. - bpo-32517: Fix failing ``test_asyncio`` on macOS 10.12.2+ due to transport
  2627. of ``KqueueSelector`` loop was not being closed.
  2628. - bpo-19417: Add test_bdb.py.
  2629. Build
  2630. -----
  2631. - bpo-33163: Upgrade pip to 9.0.3 and setuptools to v39.0.1.
  2632. Windows
  2633. -------
  2634. - bpo-33016: Fix potential use of uninitialized memory in
  2635. nt._getfinalpathname
  2636. - bpo-32903: Fix a memory leak in os.chdir() on Windows if the current
  2637. directory is set to a UNC path.
  2638. macOS
  2639. -----
  2640. - bpo-32726: Build and link with private copy of Tcl/Tk 8.6 for the macOS
  2641. 10.6+ installer. The 10.9+ installer variant already does this. This
  2642. means that the Python 3.7 provided by the python.org macOS installers no
  2643. longer need or use any external versions of Tcl/Tk, either system-provided
  2644. or user-installed, such as ActiveTcl.
  2645. IDLE
  2646. ----
  2647. - bpo-32984: Set ``__file__`` while running a startup file. Like Python,
  2648. IDLE optionally runs one startup file in the Shell window before
  2649. presenting the first interactive input prompt. For IDLE, ``-s`` runs a
  2650. file named in environmental variable :envvar:`IDLESTARTUP` or
  2651. :envvar:`PYTHONSTARTUP`; ``-r file`` runs ``file``. Python sets
  2652. ``__file__`` to the startup file name before running the file and unsets
  2653. it before the first prompt. IDLE now does the same when run normally,
  2654. without the ``-n`` option.
  2655. - bpo-32940: Simplify and rename StringTranslatePseudoMapping in pyparse.
  2656. Tools/Demos
  2657. -----------
  2658. - bpo-32885: Add an ``-n`` flag for ``Tools/scripts/pathfix.py`` to disable
  2659. automatic backup creation (files with ``~`` suffix).
  2660. C API
  2661. -----
  2662. - bpo-33042: Embedding applications may once again call
  2663. PySys_ResetWarnOptions, PySys_AddWarnOption, and PySys_AddXOption prior to
  2664. calling Py_Initialize.
  2665. - bpo-32374: Document that m_traverse for multi-phase initialized modules
  2666. can be called with m_state=NULL, and add a sanity check
  2667. What's New in Python 3.7.0 beta 2?
  2668. ==================================
  2669. *Release date: 2018-02-27*
  2670. Security
  2671. --------
  2672. - bpo-28414: The ssl module now allows users to perform their own IDN
  2673. en/decoding when using SNI.
  2674. Core and Builtins
  2675. -----------------
  2676. - bpo-32889: Update Valgrind suppression list to account for the rename of
  2677. ``Py_ADDRESS_IN_RANG`` to ``address_in_range``.
  2678. - bpo-31356: Remove the new API added in bpo-31356 (gc.ensure_disabled()
  2679. context manager).
  2680. - bpo-32305: For namespace packages, ensure that both ``__file__`` and
  2681. ``__spec__.origin`` are set to None.
  2682. - bpo-32303: Make sure ``__spec__.loader`` matches ``__loader__`` for
  2683. namespace packages.
  2684. - bpo-32711: Fix the warning messages for Python/ast_unparse.c. Patch by
  2685. Stéphane Wirtel
  2686. - bpo-32583: Fix possible crashing in builtin Unicode decoders caused by
  2687. write out-of-bound errors when using customized decode error handlers.
  2688. Library
  2689. -------
  2690. - bpo-32960: For dataclasses, disallow inheriting frozen from non-frozen
  2691. classes, and also disallow inheriting non-frozen from frozen classes. This
  2692. restriction will be relaxed at a future date.
  2693. - bpo-32713: Fixed tarfile.itn handling of out-of-bounds float values. Patch
  2694. by Joffrey Fuhrer.
  2695. - bpo-32951: Direct instantiation of SSLSocket and SSLObject objects is now
  2696. prohibited. The constructors were never documented, tested, or designed as
  2697. public constructors. Users were suppose to use ssl.wrap_socket() or
  2698. SSLContext.
  2699. - bpo-32929: Remove the tri-state parameter "hash", and add the boolean
  2700. "unsafe_hash". If unsafe_hash is True, add a __hash__ function, but if a
  2701. __hash__ exists, raise TypeError. If unsafe_hash is False, add a __hash__
  2702. based on the values of eq= and frozen=. The unsafe_hash=False behavior is
  2703. the same as the old hash=None behavior. unsafe_hash=False is the default,
  2704. just as hash=None used to be.
  2705. - bpo-32947: Add OP_ENABLE_MIDDLEBOX_COMPAT and test workaround for TLSv1.3
  2706. for future compatibility with OpenSSL 1.1.1.
  2707. - bpo-30622: The ssl module now detects missing NPN support in LibreSSL.
  2708. - bpo-32922: dbm.open() now encodes filename with the filesystem encoding
  2709. rather than default encoding.
  2710. - bpo-32859: In ``os.dup2``, don't check every call whether the ``dup3``
  2711. syscall exists or not.
  2712. - bpo-32556: nt._getfinalpathname, nt._getvolumepathname and
  2713. nt._getdiskusage now correctly convert from bytes.
  2714. - bpo-25988: Emit a :exc:`DeprecationWarning` when using or importing an ABC
  2715. directly from :mod:`collections` rather than from :mod:`collections.abc`.
  2716. - bpo-21060: Rewrite confusing message from setup.py upload from "No dist
  2717. file created in earlier command" to the more helpful "Must create and
  2718. upload files in one command".
  2719. - bpo-32852: Make sure sys.argv remains as a list when running trace.
  2720. - bpo-31333: ``_abc`` module is added. It is a speedup module with C
  2721. implementations for various functions and methods in ``abc``. Creating an
  2722. ABC subclass and calling ``isinstance`` or ``issubclass`` with an ABC
  2723. subclass are up to 1.5x faster. In addition, this makes Python start-up up
  2724. to 10% faster.
  2725. Note that the new implementation hides internal registry and caches,
  2726. previously accessible via private attributes ``_abc_registry``,
  2727. ``_abc_cache``, and ``_abc_negative_cache``. There are three debugging
  2728. helper methods that can be used instead ``_dump_registry``,
  2729. ``_abc_registry_clear``, and ``_abc_caches_clear``.
  2730. - bpo-32841: Fixed `asyncio.Condition` issue which silently ignored
  2731. cancellation after notifying and cancelling a conditional lock. Patch by
  2732. Bar Harel.
  2733. - bpo-32819: ssl.match_hostname() has been simplified and no longer depends
  2734. on re and ipaddress module for wildcard and IP addresses. Error reporting
  2735. for invalid wildcards has been improved.
  2736. - bpo-32394: socket: Remove
  2737. TCP_FASTOPEN,TCP_KEEPCNT,TCP_KEEPIDLE,TCP_KEEPINTVL flags on older version
  2738. Windows during run-time.
  2739. - bpo-31787: Fixed refleaks of ``__init__()`` methods in various modules.
  2740. (Contributed by Oren Milman)
  2741. - bpo-30157: Fixed guessing quote and delimiter in csv.Sniffer.sniff() when
  2742. only the last field is quoted. Patch by Jake Davis.
  2743. - bpo-32792: collections.ChainMap() preserves the order of the underlying
  2744. mappings.
  2745. - bpo-32775: :func:`fnmatch.translate()` no longer produces patterns which
  2746. contain set operations. Sets starting with '[' or containing '--', '&&',
  2747. '~~' or '||' will be interpreted differently in regular expressions in
  2748. future versions. Currently they emit warnings. fnmatch.translate() now
  2749. avoids producing patterns containing such sets by accident.
  2750. - bpo-32622: Implement native fast sendfile for Windows proactor event loop.
  2751. - bpo-32777: Fix a rare but potential pre-exec child process deadlock in
  2752. subprocess on POSIX systems when marking file descriptors inheritable on
  2753. exec in the child process. This bug appears to have been introduced in
  2754. 3.4.
  2755. - bpo-32647: The ctypes module used to depend on indirect linking for
  2756. dlopen. The shared extension is now explicitly linked against libdl on
  2757. platforms with dl.
  2758. - bpo-32741: Implement ``asyncio.TimerHandle.when()`` method.
  2759. - bpo-32691: Use mod_spec.parent when running modules with pdb
  2760. - bpo-32734: Fixed ``asyncio.Lock()`` safety issue which allowed acquiring
  2761. and locking the same lock multiple times, without it being free. Patch by
  2762. Bar Harel.
  2763. - bpo-32727: Do not include name field in SMTP envelope from address. Patch
  2764. by Stéphane Wirtel
  2765. - bpo-31453: Add TLSVersion constants and SSLContext.maximum_version /
  2766. minimum_version attributes. The new API wraps OpenSSL 1.1
  2767. https://www.openssl.org/docs/man1.1.0/ssl/SSL_CTX_set_min_proto_version.html
  2768. feature.
  2769. - bpo-24334: Internal implementation details of ssl module were cleaned up.
  2770. The SSLSocket has one less layer of indirection. Owner and session
  2771. information are now handled by the SSLSocket and SSLObject constructor.
  2772. Channel binding implementation has been simplified.
  2773. - bpo-31848: Fix the error handling in Aifc_read.initfp() when the SSND
  2774. chunk is not found. Patch by Zackery Spytz.
  2775. - bpo-32585: Add Ttk spinbox widget to :mod:`tkinter.ttk`. Patch by Alan D
  2776. Moore.
  2777. - bpo-32221: Various functions returning tuple containing IPv6 addresses now
  2778. omit ``%scope`` part since the same information is already encoded in
  2779. *scopeid* tuple item. Especially this speeds up :func:`socket.recvfrom`
  2780. when it receives multicast packet since useless resolving of network
  2781. interface name is omitted.
  2782. - bpo-30693: The TarFile class now recurses directories in a reproducible
  2783. way.
  2784. - bpo-30693: The ZipFile class now recurses directories in a reproducible
  2785. way.
  2786. Documentation
  2787. -------------
  2788. - bpo-28124: The ssl module function ssl.wrap_socket() has been
  2789. de-emphasized and deprecated in favor of the more secure and efficient
  2790. SSLContext.wrap_socket() method.
  2791. - bpo-17232: Clarify docs for -O and -OO. Patch by Terry Reedy.
  2792. - bpo-32436: Add documentation for the contextvars module (PEP 567).
  2793. - bpo-32800: Update link to w3c doc for xml default namespaces.
  2794. - bpo-11015: Update :mod:`test.support` documentation.
  2795. - bpo-8722: Document :meth:`__getattr__` behavior when property :meth:`get`
  2796. method raises :exc:`AttributeError`.
  2797. - bpo-32614: Modify RE examples in documentation to use raw strings to
  2798. prevent :exc:`DeprecationWarning` and add text to REGEX HOWTO to highlight
  2799. the deprecation.
  2800. - bpo-31972: Improve docstrings for `pathlib.PurePath` subclasses.
  2801. Tests
  2802. -----
  2803. - bpo-31809: Add tests to verify connection with secp ECDH curves.
  2804. Build
  2805. -----
  2806. - bpo-32898: Fix the python debug build when using COUNT_ALLOCS.
  2807. Windows
  2808. -------
  2809. - bpo-32901: Update Tcl and Tk versions to 8.6.8
  2810. - bpo-31966: Fixed WindowsConsoleIO.write() for writing empty data.
  2811. - bpo-32409: Ensures activate.bat can handle Unicode contents.
  2812. - bpo-32457: Improves handling of denormalized executable path when
  2813. launching Python.
  2814. - bpo-32370: Use the correct encoding for ipconfig output in the uuid
  2815. module. Patch by Segev Finer.
  2816. - bpo-29248: Fix :func:`os.readlink` on Windows, which was mistakenly
  2817. treating the ``PrintNameOffset`` field of the reparse data buffer as a
  2818. number of characters instead of bytes. Patch by Craig Holmquist and SSE4.
  2819. macOS
  2820. -----
  2821. - bpo-32901: Update macOS 10.9+ installer to Tcl/Tk 8.6.8.
  2822. IDLE
  2823. ----
  2824. - bpo-32916: Change ``str`` to ``code`` in pyparse.
  2825. - bpo-32905: Remove unused code in pyparse module.
  2826. - bpo-32874: Add tests for pyparse.
  2827. - bpo-32837: Using the system and place-dependent default encoding for
  2828. open() is a bad idea for IDLE's system and location-independent files.
  2829. - bpo-32826: Add "encoding=utf-8" to open() in IDLE's test_help_about. GUI
  2830. test test_file_buttons() only looks at initial ascii-only lines, but
  2831. failed on systems where open() defaults to 'ascii' because readline()
  2832. internally reads and decodes far enough ahead to encounter a non-ascii
  2833. character in CREDITS.txt.
  2834. - bpo-32765: Update configdialog General tab docstring to add new widgets to
  2835. the widget list.
  2836. Tools/Demos
  2837. -----------
  2838. - bpo-32222: Fix pygettext not extracting docstrings for functions with type
  2839. annotated arguments. Patch by Toby Harradine.
  2840. What's New in Python 3.7.0 beta 1?
  2841. ==================================
  2842. *Release date: 2018-01-30*
  2843. Core and Builtins
  2844. -----------------
  2845. - bpo-32703: Fix coroutine's ResourceWarning when there's an active error
  2846. set when it's being finalized.
  2847. - bpo-32650: Pdb and other debuggers dependent on bdb.py will correctly step
  2848. over (next command) native coroutines. Patch by Pablo Galindo.
  2849. - bpo-28685: Optimize list.sort() and sorted() by using type specialized
  2850. comparisons when possible.
  2851. - bpo-32685: Improve suggestion when the Python 2 form of print statement is
  2852. either present on the same line as the header of a compound statement or
  2853. else terminated by a semi-colon instead of a newline. Patch by Nitish
  2854. Chandra.
  2855. - bpo-32697: Python now explicitly preserves the definition order of
  2856. keyword-only parameters. It's always preserved their order, but this
  2857. behavior was never guaranteed before; this behavior is now guaranteed and
  2858. tested.
  2859. - bpo-32690: The locals() dictionary now displays in the lexical order that
  2860. variables were defined. Previously, the order was reversed.
  2861. - bpo-32677: Add ``.isascii()`` method to ``str``, ``bytes`` and
  2862. ``bytearray``. It can be used to test that string contains only ASCII
  2863. characters.
  2864. - bpo-32670: Enforce :pep:`479` for all code.
  2865. This means that manually raising a StopIteration exception from a
  2866. generator is prohibited for all code, regardless of whether 'from
  2867. __future__ import generator_stop' was used or not.
  2868. - bpo-32591: Added built-in support for tracking the origin of coroutine
  2869. objects; see sys.set_coroutine_origin_tracking_depth and
  2870. CoroutineType.cr_origin. This replaces the asyncio debug mode's use of
  2871. coroutine wrapping for native coroutine objects.
  2872. - bpo-31368: Expose preadv and pwritev system calls in the os module. Patch
  2873. by Pablo Galindo
  2874. - bpo-32544: ``hasattr(obj, name)`` and ``getattr(obj, name, default)`` are
  2875. about 4 times faster than before when ``name`` is not found and ``obj``
  2876. doesn't override ``__getattr__`` or ``__getattribute__``.
  2877. - bpo-26163: Improved frozenset() hash to create more distinct hash values
  2878. when faced with datasets containing many similar values.
  2879. - bpo-32550: Remove the STORE_ANNOTATION bytecode.
  2880. - bpo-20104: Expose posix_spawn as a low level API in the os module.
  2881. (removed before 3.7.0rc1)
  2882. - bpo-24340: Fixed estimation of the code stack size.
  2883. - bpo-32436: Implement :pep:`567` Context Variables.
  2884. - bpo-18533: ``repr()`` on a dict containing its own ``values()`` or
  2885. ``items()`` no longer raises ``RecursionError``; OrderedDict similarly.
  2886. Instead, use ``...``, as for other recursive structures. Patch by Ben
  2887. North.
  2888. - bpo-20891: Py_Initialize() now creates the GIL. The GIL is no longer
  2889. created "on demand" to fix a race condition when PyGILState_Ensure() is
  2890. called in a non-Python thread.
  2891. - bpo-32028: Leading whitespace is now correctly ignored when generating
  2892. suggestions for converting Py2 print statements to Py3 builtin print
  2893. function calls. Patch by Sanyam Khurana.
  2894. - bpo-31179: Make dict.copy() up to 5.5 times faster.
  2895. - bpo-31113: Get rid of recursion in the compiler for normal control flow.
  2896. Library
  2897. -------
  2898. - bpo-25988: Deprecate exposing the contents of collections.abc in the
  2899. regular collections module.
  2900. - bpo-31429: The default cipher suite selection of the ssl module now uses a
  2901. blacklist approach rather than a hard-coded whitelist. Python no longer
  2902. re-enables ciphers that have been blocked by OpenSSL security update.
  2903. Default cipher suite selection can be configured on compile time.
  2904. - bpo-30306: contextlib.contextmanager now releases the arguments passed to
  2905. the underlying generator as soon as the context manager is entered.
  2906. Previously it would keep them alive for as long as the context manager was
  2907. alive, even when not being used as a function decorator. Patch by Martin
  2908. Teichmann.
  2909. - bpo-21417: Added support for setting the compression level for
  2910. zipfile.ZipFile.
  2911. - bpo-32251: Implement asyncio.BufferedProtocol (provisional API).
  2912. - bpo-32513: In dataclasses, allow easier overriding of dunder methods
  2913. without specifying decorator parameters.
  2914. - bpo-32660: :mod:`termios` makes available ``FIONREAD``, ``FIONCLEX``,
  2915. ``FIOCLEX``, ``FIOASYNC`` and ``FIONBIO`` also under Solaris/derivatives.
  2916. - bpo-27931: Fix email address header parsing error when the username is an
  2917. empty quoted string. Patch by Xiang Zhang.
  2918. - bpo-32659: Under Solaris and derivatives, :class:`os.stat_result` provides
  2919. a st_fstype attribute.
  2920. - bpo-32662: Implement Server.start_serving(), Server.serve_forever(), and
  2921. Server.is_serving() methods. Add 'start_serving' keyword parameter to
  2922. loop.create_server() and loop.create_unix_server().
  2923. - bpo-32391: Implement :meth:`asyncio.StreamWriter.wait_closed` and
  2924. :meth:`asyncio.StreamWriter.is_closing` methods
  2925. - bpo-32643: Make Task._step, Task._wakeup and Future._schedule_callbacks
  2926. methods private.
  2927. - bpo-32630: Refactor decimal module to use contextvars to store decimal
  2928. context.
  2929. - bpo-32622: Add :meth:`asyncio.AbstractEventLoop.sendfile` method.
  2930. - bpo-32304: distutils' upload command no longer corrupts tar files ending
  2931. with a CR byte, and no longer tries to convert CR to CRLF in any of the
  2932. upload text fields.
  2933. - bpo-32502: uuid.uuid1 no longer raises an exception if a 64-bit hardware
  2934. address is encountered.
  2935. - bpo-32596: ``concurrent.futures`` imports ``ThreadPoolExecutor`` and
  2936. ``ProcessPoolExecutor`` lazily (using :pep:`562`). It makes ``import
  2937. asyncio`` about 15% faster because asyncio uses only
  2938. ``ThreadPoolExecutor`` by default.
  2939. - bpo-31801: Add ``_ignore_`` to ``Enum`` so temporary variables can be used
  2940. during class construction without being turned into members.
  2941. - bpo-32576: Use queue.SimpleQueue() in places where it can be invoked from
  2942. a weakref callback.
  2943. - bpo-32574: Fix memory leak in asyncio.Queue, when the queue has limited
  2944. size and it is full, the cancelation of queue.put() can cause a memory
  2945. leak. Patch by: José Melero.
  2946. - bpo-32521: The nis module is now compatible with new libnsl and headers
  2947. location.
  2948. - bpo-32467: collections.abc.ValuesView now inherits from
  2949. collections.abc.Collection.
  2950. - bpo-32473: Improve ABCMeta._dump_registry() output readability
  2951. - bpo-32102: New argument ``capture_output`` for subprocess.run
  2952. - bpo-32521: glibc has removed Sun RPC. Use replacement libtirpc headers and
  2953. library in nis module.
  2954. - bpo-32493: UUID module fixes build for FreeBSD/OpenBSD
  2955. - bpo-32503: Pickling with protocol 4 no longer creates too small frames.
  2956. - bpo-29237: Create enum for pstats sorting options
  2957. - bpo-32454: Add close(fd) function to the socket module.
  2958. - bpo-25942: The subprocess module is now more graceful when handling a
  2959. Ctrl-C KeyboardInterrupt during subprocess.call, subprocess.run, or a
  2960. Popen context manager. It now waits a short amount of time for the child
  2961. (presumed to have also gotten the SIGINT) to exit, before continuing the
  2962. KeyboardInterrupt exception handling. This still includes a SIGKILL in
  2963. the call() and run() APIs, but at least the child had a chance first.
  2964. - bpo-32433: The hmac module now has hmac.digest(), which provides an
  2965. optimized HMAC digest.
  2966. - bpo-28134: Sockets now auto-detect family, type and protocol from file
  2967. descriptor by default.
  2968. - bpo-32404: Fix bug where :meth:`datetime.datetime.fromtimestamp` did not
  2969. call __new__ in :class:`datetime.datetime` subclasses.
  2970. - bpo-32403: Improved speed of :class:`datetime.date` and
  2971. :class:`datetime.datetime` alternate constructors.
  2972. - bpo-32228: Ensure that ``truncate()`` preserves the file position (as
  2973. reported by ``tell()``) after writes longer than the buffer size.
  2974. - bpo-32410: Implement ``loop.sock_sendfile`` for asyncio event loop.
  2975. - bpo-22908: Added seek and tell to the ZipExtFile class. This only works if
  2976. the file object used to open the zipfile is seekable.
  2977. - bpo-32373: Add socket.getblocking() method.
  2978. - bpo-32248: Add :mod:`importlib.resources` and
  2979. :class:`importlib.abc.ResourceReader` as the unified API for reading
  2980. resources contained within packages. Loaders wishing to support resource
  2981. reading must implement the :meth:`get_resource_reader()` method.
  2982. File-based and zipimport-based loaders both implement these APIs.
  2983. :class:`importlib.abc.ResourceLoader` is deprecated in favor of these new
  2984. APIs.
  2985. - bpo-32320: collections.namedtuple() now supports default values.
  2986. - bpo-29302: Add contextlib.AsyncExitStack. Patch by Alexander Mohr and Ilya
  2987. Kulakov.
  2988. - bpo-31961: *Removed in Python 3.7.0b2.* The *args* argument of
  2989. subprocess.Popen can now be a :term:`path-like object`. If *args* is given
  2990. as a sequence, it's first element can now be a :term:`path-like object` as
  2991. well.
  2992. - bpo-31900: The :func:`locale.localeconv` function now sets temporarily the
  2993. ``LC_CTYPE`` locale to the ``LC_NUMERIC`` locale to decode
  2994. ``decimal_point`` and ``thousands_sep`` byte strings if they are non-ASCII
  2995. or longer than 1 byte, and the ``LC_NUMERIC`` locale is different than the
  2996. ``LC_CTYPE`` locale. This temporary change affects other threads.
  2997. Same change for the :meth:`str.format` method when formatting a number
  2998. (:class:`int`, :class:`float`, :class:`float` and subclasses) with the
  2999. ``n`` type (ex: ``'{:n}'.format(1234)``).
  3000. - bpo-31853: Use super().method instead of socket.method in SSLSocket. They
  3001. were there most likely for legacy reasons.
  3002. - bpo-31399: The ssl module now uses OpenSSL's X509_VERIFY_PARAM_set1_host()
  3003. and X509_VERIFY_PARAM_set1_ip() API to verify hostname and IP addresses.
  3004. Subject common name fallback can be disabled with
  3005. SSLContext.hostname_checks_common_name.
  3006. - bpo-14976: Add a queue.SimpleQueue class, an unbounded FIFO queue with a
  3007. reentrant C implementation of put().
  3008. Documentation
  3009. -------------
  3010. - bpo-32724: Add references to some commands in the documentation of Pdb.
  3011. Patch by Stéphane Wirtel
  3012. - bpo-32649: Complete the C API documentation, profiling and tracing part
  3013. with the newly added per-opcode events.
  3014. - bpo-17799: Explain real behaviour of sys.settrace and sys.setprofile and
  3015. their C-API counterparts regarding which type of events are received in
  3016. each function. Patch by Pablo Galindo Salgado.
  3017. Tests
  3018. -----
  3019. - bpo-32721: Fix test_hashlib to not fail if the _md5 module is not built.
  3020. - bpo-28414: Add test cases for IDNA 2003 and 2008 host names. IDNA 2003
  3021. internationalized host names are working since bpo-31399 has landed. IDNA
  3022. 2008 are still broken.
  3023. - bpo-32604: Add a new "_xxsubinterpreters" extension module that exposes
  3024. the existing subinterpreter C-API and a new cross-interpreter data sharing
  3025. mechanism. The module is primarily intended for more thorough testing of
  3026. the existing subinterpreter support.
  3027. Note that the _xxsubinterpreters module has been removed in 3.7.0rc1.
  3028. - bpo-32602: Add test certs and test for ECDSA cert and EC/RSA dual mode.
  3029. - bpo-32549: On Travis CI, Python now Compiles and uses a local copy of
  3030. OpenSSL 1.1.0g for testing.
  3031. Build
  3032. -----
  3033. - bpo-32635: Fix segfault of the crypt module when libxcrypt is provided
  3034. instead of libcrypt at the system.
  3035. - bpo-32598: Use autoconf to detect OpenSSL libs, headers and supported
  3036. features. The ax_check_openssl M4 macro uses pkg-config to locate OpenSSL
  3037. and falls back to manual search.
  3038. - bpo-32593: Drop support of FreeBSD 9 and older.
  3039. - bpo-29708: If the :envvar:`SOURCE_DATE_EPOCH` environment variable is set,
  3040. :mod:`py_compile` will always create hash-based ``.pyc`` files.
  3041. Windows
  3042. -------
  3043. - bpo-32588: Create standalone _distutils_findvs module and add missing
  3044. _queue module to installer.
  3045. - bpo-29911: Ensure separate Modify and Uninstall buttons are displayed.
  3046. - bpo-32507: Use app-local UCRT install rather than the proper update for
  3047. old versions of Windows.
  3048. macOS
  3049. -----
  3050. - bpo-32726: Provide an additional, more modern macOS installer variant that
  3051. supports macOS 10.9+ systems in 64-bit mode only. Upgrade the supplied
  3052. third-party libraries to OpenSSL 1.1.0g and to SQLite 3.22.0. The 10.9+
  3053. installer now links with and supplies its own copy of Tcl/Tk 8.6.
  3054. - bpo-28440: No longer add /Library/Python/3.x/site-packages to sys.path for
  3055. macOS framework builds to avoid future conflicts.
  3056. C API
  3057. -----
  3058. - bpo-32681: Fix uninitialized variable 'res' in the C implementation of
  3059. os.dup2. Patch by Stéphane Wirtel
  3060. - bpo-10381: Add C API access to the ``datetime.timezone`` constructor and
  3061. ``datetime.timzone.UTC`` singleton.
  3062. What's New in Python 3.7.0 alpha 4?
  3063. ===================================
  3064. *Release date: 2018-01-08*
  3065. Core and Builtins
  3066. -----------------
  3067. - bpo-31975: The default warning filter list now starts with a
  3068. "default::DeprecationWarning:__main__" entry, so deprecation warnings are
  3069. once again shown by default in single-file scripts and at the interactive
  3070. prompt.
  3071. - bpo-32226: ``__class_getitem__`` is now an automatic class method.
  3072. - bpo-32399: Add AIX uuid library support for RFC4122 using uuid_create() in
  3073. libc.a
  3074. - bpo-32390: Fix the compilation failure on AIX after the f_fsid field has
  3075. been added to the object returned by os.statvfs() (issue #32143). Original
  3076. patch by Michael Felt.
  3077. - bpo-32379: Make MRO computation faster when a class inherits from a single
  3078. base.
  3079. - bpo-32259: The error message of a TypeError raised when unpack
  3080. non-iterable is now more specific.
  3081. - bpo-27169: The ``__debug__`` constant is now optimized out at compile
  3082. time. This fixes also bpo-22091.
  3083. - bpo-32329: The :option:`-R` option now turns on hash randomization when
  3084. the :envvar:`PYTHONHASHSEED` environment variable is set to ``0``.
  3085. Previously, the option was ignored. Moreover,
  3086. ``sys.flags.hash_randomization`` is now properly set to 0 when hash
  3087. randomization is turned off by ``PYTHONHASHSEED=0``.
  3088. - bpo-30416: The optimizer is now protected from spending much time doing
  3089. complex calculations and consuming much memory for creating large
  3090. constants in constant folding. Increased limits for constants that can be
  3091. produced in constant folding.
  3092. - bpo-32282: Fix an unnecessary ifdef in the include of VersionHelpers.h in
  3093. socketmodule on Windows.
  3094. - bpo-30579: Implement TracebackType.__new__ to allow Python-level creation
  3095. of traceback objects, and make TracebackType.tb_next mutable.
  3096. - bpo-32260: Don't byte swap the input keys to the SipHash algorithm on
  3097. big-endian platforms. This should ensure siphash gives consistent results
  3098. across platforms.
  3099. - bpo-31506: Improve the error message logic for object.__new__ and
  3100. object.__init__. Patch by Sanyam Khurana.
  3101. - bpo-20361: ``-b`` and ``-bb`` now inject ``'default::BytesWarning'`` and
  3102. ``error::BytesWarning`` entries into ``sys.warnoptions``, ensuring that
  3103. they take precedence over any other warning filters configured via the
  3104. ``-W`` option or the ``PYTHONWARNINGS`` environment variable.
  3105. - bpo-32230: `-X dev` now injects a ``'default'`` entry into
  3106. sys.warnoptions, ensuring that it behaves identically to actually passing
  3107. ``-Wdefault`` at the command line.
  3108. - bpo-29240: Add a new UTF-8 mode: implementation of the :pep:`540`.
  3109. - bpo-32226: :pep:`560`: Add support for ``__mro_entries__`` and
  3110. ``__class_getitem__``. Implemented by Ivan Levkivskyi.
  3111. - bpo-32225: :pep:`562`: Add support for module ``__getattr__`` and
  3112. ``__dir__``. Implemented by Ivan Levkivskyi.
  3113. - bpo-31901: The `atexit` module now has its callback stored per
  3114. interpreter.
  3115. - bpo-31650: Implement :pep:`552` (Deterministic pycs). Python now supports
  3116. invalidating bytecode cache files bashed on a source content hash rather
  3117. than source last-modified time.
  3118. - bpo-29469: Move constant folding from bytecode layer to AST layer.
  3119. Original patch by Eugene Toder.
  3120. Library
  3121. -------
  3122. - bpo-32506: Now that dict is defined as keeping insertion order, drop
  3123. OrderedDict and just use plain dict.
  3124. - bpo-32279: Add params to dataclasses.make_dataclasses(): init, repr, eq,
  3125. order, hash, and frozen. Pass them through to dataclass().
  3126. - bpo-32278: Make type information optional on dataclasses.make_dataclass().
  3127. If omitted, the string 'typing.Any' is used.
  3128. - bpo-32499: Add dataclasses.is_dataclass(obj), which returns True if obj is
  3129. a dataclass or an instance of one.
  3130. - bpo-32468: Improve frame repr() to mention filename, code name and current
  3131. line number.
  3132. - bpo-23749: asyncio: Implement loop.start_tls()
  3133. - bpo-32441: Return the new file descriptor (i.e., the second argument) from
  3134. ``os.dup2``. Previously, ``None`` was always returned.
  3135. - bpo-32422: ``functools.lru_cache`` uses less memory (3 words for each
  3136. cached key) and takes about 1/3 time for cyclic GC.
  3137. - bpo-31721: Prevent Python crash from happening when Future._log_traceback
  3138. is set to True manually. Now it can only be set to False, or a ValueError
  3139. is raised.
  3140. - bpo-32415: asyncio: Add Task.get_loop() and Future.get_loop()
  3141. - bpo-26133: Don't unsubscribe signals in asyncio UNIX event loop on
  3142. interpreter shutdown.
  3143. - bpo-32363: Make asyncio.Task.set_exception() and set_result() raise
  3144. NotImplementedError. Task._step() and Future.__await__() raise proper
  3145. exceptions when they are in an invalid state, instead of raising an
  3146. AssertionError.
  3147. - bpo-32357: Optimize asyncio.iscoroutine() and loop.create_task() for
  3148. non-native coroutines (e.g. async/await compiled with Cython).
  3149. 'loop.create_task(python_coroutine)' used to be 20% faster than
  3150. 'loop.create_task(cython_coroutine)'. Now, the latter is as fast.
  3151. - bpo-32356: asyncio.transport.resume_reading() and pause_reading() are now
  3152. idempotent. New transport.is_reading() method is added.
  3153. - bpo-32355: Optimize asyncio.gather(); now up to 15% faster.
  3154. - bpo-32351: Use fastpath in asyncio.sleep if delay<0 (2x boost)
  3155. - bpo-32348: Optimize asyncio.Future schedule/add/remove callback. The
  3156. optimization shows 3-6% performance improvements of async/await code.
  3157. - bpo-32331: Fix socket.settimeout() and socket.setblocking() to keep
  3158. socket.type as is. Fix socket.socket() constructor to reset any bit flags
  3159. applied to socket's type. This change only affects OSes that have
  3160. SOCK_NONBLOCK and/or SOCK_CLOEXEC.
  3161. - bpo-32248: Add :class:`importlib.abc.ResourceReader` as an ABC for loaders
  3162. to provide a unified API for reading resources contained within packages.
  3163. Also add :mod:`importlib.resources` as the port of
  3164. ``importlib_resources``.
  3165. - bpo-32311: Implement asyncio.create_task(coro) shortcut
  3166. - bpo-32327: Convert asyncio functions that were documented as coroutines to
  3167. coroutines. Affected functions: loop.sock_sendall, loop.sock_recv,
  3168. loop.sock_accept, loop.getaddrinfo, loop.getnameinfo.
  3169. - bpo-32323: :func:`urllib.parse.urlsplit()` does not convert zone-id
  3170. (scope) to lower case for scoped IPv6 addresses in hostnames now.
  3171. - bpo-32302: Fix bdist_wininst of distutils for CRT v142: it binary
  3172. compatible with CRT v140.
  3173. - bpo-29711: Fix ``stop_serving`` in asyncio proactor loop kill all
  3174. listening servers
  3175. - bpo-32308: :func:`re.sub()` now replaces empty matches adjacent to a
  3176. previous non-empty match.
  3177. - bpo-29970: Abort asyncio SSLProtocol connection if handshake not complete
  3178. within 10s
  3179. - bpo-32314: Implement asyncio.run().
  3180. - bpo-17852: Revert incorrect fix based on misunderstanding of
  3181. _Py_PyAtExit() semantics.
  3182. - bpo-32296: Implement asyncio._get_running_loop() and get_event_loop() in
  3183. C. This makes them 4x faster.
  3184. - bpo-32250: Implement ``asyncio.current_task()`` and
  3185. ``asyncio.all_tasks()``. Add helpers intended to be used by alternative
  3186. task implementations: ``asyncio._register_task``, ``asyncio._enter_task``,
  3187. ``asyncio._leave_task`` and ``asyncio._unregister_task``. Deprecate
  3188. ``asyncio.Task.current_task()`` and ``asyncio.Task.all_tasks()``.
  3189. - bpo-32255: A single empty field is now always quoted when written into a
  3190. CSV file. This allows to distinguish an empty row from a row consisting of
  3191. a single empty field. Patch by Licht Takeuchi.
  3192. - bpo-32277: Raise ``NotImplementedError`` instead of ``SystemError`` on
  3193. platforms where ``chmod(..., follow_symlinks=False)`` is not supported.
  3194. Patch by Anthony Sottile.
  3195. - bpo-30050: New argument warn_on_full_buffer to signal.set_wakeup_fd lets
  3196. you control whether Python prints a warning on stderr when the wakeup fd
  3197. buffer overflows.
  3198. - bpo-29137: The ``fpectl`` library has been removed. It was never enabled
  3199. by default, never worked correctly on x86-64, and it changed the Python
  3200. ABI in ways that caused unexpected breakage of C extensions.
  3201. - bpo-32273: Move asyncio.test_utils to test.test_asyncio.
  3202. - bpo-32272: Remove asyncio.async() function.
  3203. - bpo-32269: Add asyncio.get_running_loop() function.
  3204. - bpo-32265: All class and static methods of builtin types now are correctly
  3205. classified by inspect.classify_class_attrs() and grouped in pydoc ouput.
  3206. Added types.ClassMethodDescriptorType for unbound class methods of builtin
  3207. types.
  3208. - bpo-32253: Deprecate ``yield from lock``, ``await lock``, ``with (yield
  3209. from lock)`` and ``with await lock`` for asyncio synchronization
  3210. primitives.
  3211. - bpo-22589: Changed MIME type of .bmp from 'image/x-ms-bmp' to 'image/bmp'
  3212. - bpo-32193: Convert asyncio to use *async/await* syntax. Old styled ``yield
  3213. from`` is still supported too.
  3214. - bpo-32206: Add support to run modules with pdb
  3215. - bpo-32227: ``functools.singledispatch`` now supports registering
  3216. implementations using type annotations.
  3217. - bpo-15873: Added new alternate constructors
  3218. :meth:`datetime.datetime.fromisoformat`,
  3219. :meth:`datetime.time.fromisoformat` and
  3220. :meth:`datetime.date.fromisoformat` as the inverse operation of each
  3221. classes's respective ``isoformat`` methods.
  3222. - bpo-32199: The getnode() ip getter now uses 'ip link' instead of 'ip link
  3223. list'.
  3224. - bpo-32143: os.statvfs() includes the f_fsid field from statvfs(2)
  3225. - bpo-26439: Fix ctypes.util.find_library() for AIX by implementing
  3226. ctypes._aix.find_library() Patch by: Michael Felt
  3227. - bpo-31993: The pickler now uses less memory when serializing large bytes
  3228. and str objects into a file. Pickles created with protocol 4 will require
  3229. less memory for unpickling large bytes and str objects.
  3230. - bpo-27456: Ensure TCP_NODELAY is set on Linux. Tests by Victor Stinner.
  3231. - bpo-31778: ast.literal_eval() is now more strict. Addition and subtraction
  3232. of arbitrary numbers no longer allowed.
  3233. - bpo-31802: Importing native path module (``posixpath``, ``ntpath``) now
  3234. works even if the ``os`` module still is not imported.
  3235. - bpo-30241: Add contextlib.AbstractAsyncContextManager. Patch by Jelle
  3236. Zijlstra.
  3237. - bpo-31699: Fix deadlocks in
  3238. :class:`concurrent.futures.ProcessPoolExecutor` when task arguments or
  3239. results cause pickling or unpickling errors. This should make sure that
  3240. calls to the :class:`ProcessPoolExecutor` API always eventually return.
  3241. - bpo-15216: ``TextIOWrapper.reconfigure()`` supports changing *encoding*,
  3242. *errors*, and *newline*.
  3243. Documentation
  3244. -------------
  3245. - bpo-32418: Add get_loop() method to Server and AbstractServer classes.
  3246. Tests
  3247. -----
  3248. - bpo-32252: Fix faulthandler_suppress_crash_report() used to prevent core
  3249. dump files when testing crashes. getrlimit() returns zero on success.
  3250. - bpo-32002: Adjust C locale coercion testing for the empty locale and POSIX
  3251. locale cases to more readily adjust to platform dependent behaviour.
  3252. Windows
  3253. -------
  3254. - bpo-19764: Implement support for `subprocess.Popen(close_fds=True)` on
  3255. Windows. Patch by Segev Finer.
  3256. Tools/Demos
  3257. -----------
  3258. - bpo-24960: 2to3 and lib2to3 can now read pickled grammar files using
  3259. pkgutil.get_data() rather than probing the filesystem. This lets 2to3 and
  3260. lib2to3 work when run from a zipfile.
  3261. C API
  3262. -----
  3263. - bpo-32030: Py_Initialize() doesn't reset the memory allocators to default
  3264. if the ``PYTHONMALLOC`` environment variable is not set.
  3265. - bpo-29084: Undocumented C API for OrderedDict has been excluded from the
  3266. limited C API. It was added by mistake and actually never worked in the
  3267. limited C API.
  3268. - bpo-32264: Moved the pygetopt.h header into internal/, since it has no
  3269. public APIs.
  3270. - bpo-32241: :c:func:`Py_SetProgramName` and :c:func:`Py_SetPythonHome` now
  3271. take the ``const wchar *`` arguments instead of ``wchar *``.
  3272. What's New in Python 3.7.0 alpha 3?
  3273. ===================================
  3274. *Release date: 2017-12-05*
  3275. Core and Builtins
  3276. -----------------
  3277. - bpo-32176: co_flags.CO_NOFREE is now always set correctly by the code
  3278. object constructor based on freevars and cellvars, rather than needing to
  3279. be set correctly by the caller. This ensures it will be cleared
  3280. automatically when additional cell references are injected into a modified
  3281. code object and function.
  3282. - bpo-10544: Yield expressions are now deprecated in comprehensions and
  3283. generator expressions. They are still permitted in the definition of the
  3284. outermost iterable, as that is evaluated directly in the enclosing scope.
  3285. - bpo-32137: The repr of deeply nested dict now raises a RecursionError
  3286. instead of crashing due to a stack overflow.
  3287. - bpo-32096: Revert memory allocator changes in the C API: move structures
  3288. back from _PyRuntime to Objects/obmalloc.c. The memory allocators are once
  3289. again initialized statically, and so PyMem_RawMalloc() and
  3290. Py_DecodeLocale() can be called before _PyRuntime_Initialize().
  3291. - bpo-32043: Add a new "developer mode": new "-X dev" command line option to
  3292. enable debug checks at runtime.
  3293. - bpo-32023: SyntaxError is now correctly raised when a generator expression
  3294. without parenthesis is used instead of an inheritance list in a class
  3295. definition. The duplication of the parentheses can be omitted only on
  3296. calls.
  3297. - bpo-32012: SyntaxError is now correctly raised when a generator expression
  3298. without parenthesis is passed as an argument, but followed by a trailing
  3299. comma. A generator expression always needs to be directly inside a set of
  3300. parentheses and cannot have a comma on either side.
  3301. - bpo-28180: A new internal ``_Py_SetLocaleFromEnv(category)`` helper
  3302. function has been added in order to improve the consistency of behaviour
  3303. across different ``libc`` implementations (e.g. Android doesn't support
  3304. setting the locale from the environment by default).
  3305. - bpo-31949: Fixed several issues in printing tracebacks
  3306. (PyTraceBack_Print()).
  3307. * Setting sys.tracebacklimit to 0 or less now suppresses printing tracebacks.
  3308. * Setting sys.tracebacklimit to None now causes using the default limit.
  3309. * Setting sys.tracebacklimit to an integer larger than LONG_MAX now means using
  3310. the limit LONG_MAX rather than the default limit.
  3311. * Fixed integer overflows in the case of more than 2**31 traceback items on
  3312. Windows.
  3313. * Fixed output errors handling.
  3314. - bpo-30696: Fix the interactive interpreter looping endlessly when no
  3315. memory.
  3316. - bpo-20047: Bytearray methods partition() and rpartition() now accept only
  3317. bytes-like objects as separator, as documented. In particular they now
  3318. raise TypeError rather of returning a bogus result when an integer is
  3319. passed as a separator.
  3320. - bpo-21720: BytesWarning no longer emitted when the *fromlist* argument of
  3321. ``__import__()`` or the ``__all__`` attribute of the module contain bytes
  3322. instances.
  3323. - bpo-31845: Environment variables are once more read correctly at
  3324. interpreter startup.
  3325. - bpo-28936: Ensure that lexically first syntax error involving a parameter
  3326. and ``global`` or ``nonlocal`` is detected first at a given scope. Patch
  3327. by Ivan Levkivskyi.
  3328. - bpo-31825: Fixed OverflowError in the 'unicode-escape' codec and in
  3329. codecs.escape_decode() when decode an escaped non-ascii byte.
  3330. - bpo-31618: The per-frame tracing logic added in 3.7a1 has been altered so
  3331. that ``frame->f_lineno`` is updated before either ``"line"`` or
  3332. ``"opcode"`` events are emitted. Previously, opcode events were emitted
  3333. first, and therefore would occasionally see stale line numbers on the
  3334. frame. The behavior of this feature has changed slightly as a result: when
  3335. both ``f_trace_lines`` and ``f_trace_opcodes`` are enabled, line events
  3336. now occur first.
  3337. - bpo-28603: Print the full context/cause chain of exceptions on interpreter
  3338. exit, even if an exception in the chain is unhashable or compares equal to
  3339. later ones. Patch by Zane Bitter.
  3340. - bpo-31786: Fix timeout rounding in the select module to round correctly
  3341. negative timeouts between -1.0 and 0.0. The functions now block waiting
  3342. for events as expected. Previously, the call was incorrectly non-blocking.
  3343. Patch by Pablo Galindo.
  3344. - bpo-31781: Prevent crashes when calling methods of an uninitialized
  3345. ``zipimport.zipimporter`` object. Patch by Oren Milman.
  3346. - bpo-30399: Standard repr() of BaseException with a single argument no
  3347. longer contains redundant trailing comma.
  3348. - bpo-31626: Fixed a bug in debug memory allocator. There was a write to
  3349. freed memory after shrinking a memory block.
  3350. - bpo-30817: `PyErr_PrintEx()` clears now the ignored exception that may be
  3351. raised by `_PySys_SetObjectId()`, for example when no memory.
  3352. Library
  3353. -------
  3354. - bpo-28556: Two minor fixes for ``typing`` module: allow shallow copying
  3355. instances of generic classes, improve interaction of ``__init_subclass__``
  3356. with generics. Original PRs by Ivan Levkivskyi.
  3357. - bpo-32214: PEP 557, Data Classes. Provides a decorator which adds
  3358. boilerplate methods to classes which use type annotations so specify
  3359. fields.
  3360. - bpo-27240: The header folding algorithm for the new email policies has
  3361. been rewritten, which also fixes bpo-30788, bpo-31831, and bpo-32182. In
  3362. particular, RFC2231 folding is now done correctly.
  3363. - bpo-32186: io.FileIO.readall() and io.FileIO.read() now release the GIL
  3364. when getting the file size. Fixed hang of all threads with inaccessible
  3365. NFS server. Patch by Nir Soffer.
  3366. - bpo-321010: Add :attr:`sys.flags.dev_mode` flag
  3367. - bpo-32154: The ``asyncio.windows_utils.socketpair()`` function has been
  3368. removed: use directly :func:`socket.socketpair` which is available on all
  3369. platforms since Python 3.5 (before, it wasn't available on Windows).
  3370. ``asyncio.windows_utils.socketpair()`` was just an alias to
  3371. ``socket.socketpair`` on Python 3.5 and newer.
  3372. - bpo-32089: warnings: In development (-X dev) and debug mode (pydebug
  3373. build), use the "default" action for ResourceWarning, rather than the
  3374. "always" action, in the default warnings filters.
  3375. - bpo-32107: ``uuid.getnode()`` now preferentially returns universally
  3376. administered MAC addresses if available, over locally administered MAC
  3377. addresses. This makes a better guarantee for global uniqueness of UUIDs
  3378. returned from ``uuid.uuid1()``. If only locally administered MAC
  3379. addresses are available, the first such one found is returned.
  3380. - bpo-23033: Wildcard is now supported in hostname when it is one and only
  3381. character in the left most segment of hostname in second argument of
  3382. :meth:`ssl.match_hostname`. Patch by Mandeep Singh.
  3383. - bpo-12239: Make :meth:`msilib.SummaryInformation.GetProperty` return
  3384. ``None`` when the value of property is ``VT_EMPTY``. Initial patch by
  3385. Mark Mc Mahon.
  3386. - bpo-28334: Use :func:`os.path.expanduser` to find the ``~/.netrc`` file in
  3387. :class:`netrc.netrc`. If it does not exist, :exc:`FileNotFoundError` is
  3388. raised. Patch by Dimitri Merejkowsky.
  3389. - bpo-32121: Made ``tracemalloc.Traceback`` behave more like the traceback
  3390. module, sorting the frames from oldest to most recent.
  3391. ``Traceback.format()`` now accepts negative *limit*, truncating the result
  3392. to the ``abs(limit)`` oldest frames. To get the old behaviour, one can use
  3393. the new *most_recent_first* argument to ``Traceback.format()``. (Patch by
  3394. Jesse Bakker.)
  3395. - bpo-31325: Fix wrong usage of :func:`collections.namedtuple` in the
  3396. :meth:`RobotFileParser.parse() <urllib.robotparser.RobotFileParser.parse>`
  3397. method.
  3398. Initial patch by Robin Wellner.
  3399. - bpo-12382: :func:`msilib.OpenDatabase` now raises a better exception
  3400. message when it couldn't open or create an MSI file. Initial patch by
  3401. William Tisäter.
  3402. - bpo-19610: ``setup()`` now warns about invalid types for some fields.
  3403. The ``distutils.dist.Distribution`` class now warns when ``classifiers``,
  3404. ``keywords`` and ``platforms`` fields are not specified as a list or a
  3405. string.
  3406. - bpo-32071: Added the ``-k`` command-line option to ``python -m unittest``
  3407. to run only tests that match the given pattern(s).
  3408. - bpo-10049: Added *nullcontext* no-op context manager to contextlib. This
  3409. provides a simpler and faster alternative to ExitStack() when handling
  3410. optional context managers.
  3411. - bpo-28684: The new test.support.skip_unless_bind_unix_socket() decorator
  3412. is used here to skip asyncio tests that fail because the platform lacks a
  3413. functional bind() function for unix domain sockets (as it is the case for
  3414. non root users on the recent Android versions that run now SELinux in
  3415. enforcing mode).
  3416. - bpo-32110: ``codecs.StreamReader.read(n)`` now returns not more than *n*
  3417. characters/bytes for non-negative *n*. This makes it compatible with
  3418. ``read()`` methods of other file-like objects.
  3419. - bpo-27535: The warnings module doesn't leak memory anymore in the hidden
  3420. warnings registry for the "ignore" action of warnings filters.
  3421. warn_explicit() function doesn't add the warning key to the registry
  3422. anymore for the "ignore" action.
  3423. - bpo-32088: warnings: When Python is build is debug mode (``Py_DEBUG``),
  3424. :exc:`DeprecationWarning`, :exc:`PendingDeprecationWarning` and
  3425. :exc:`ImportWarning` warnings are now displayed by default.
  3426. - bpo-1647489: Fixed searching regular expression patterns that could match
  3427. an empty string. Non-empty string can now be correctly found after
  3428. matching an empty string.
  3429. - bpo-25054: Added support of splitting on a pattern that could match an
  3430. empty string.
  3431. - bpo-32072: Fixed issues with binary plists:
  3432. * Fixed saving bytearrays.
  3433. * Identical objects will be saved only once.
  3434. * Equal references will be load as identical objects.
  3435. * Added support for saving and loading recursive data structures.
  3436. - bpo-32069: Drop legacy SSL transport from asyncio, ssl.MemoryBIO is always
  3437. used anyway.
  3438. - bpo-32066: asyncio: Support pathlib.Path in create_unix_connection; sock
  3439. arg should be optional
  3440. - bpo-32046: Updates 2to3 to convert from operator.isCallable(obj) to
  3441. callable(obj). Patch by Dong-hee Na.
  3442. - bpo-32018: inspect.signature should follow PEP 8, if the parameter has an
  3443. annotation and a default value. Patch by Dong-hee Na.
  3444. - bpo-32025: Add time.thread_time() and time.thread_time_ns()
  3445. - bpo-32037: Integers that fit in a signed 32-bit integer will be now
  3446. pickled with protocol 0 using the INT opcode. This will decrease the size
  3447. of a pickle, speed up pickling and unpickling, and make these integers be
  3448. unpickled as int instances in Python 2.
  3449. - bpo-32034: Make asyncio.IncompleteReadError and LimitOverrunError
  3450. pickleable.
  3451. - bpo-32015: Fixed the looping of asyncio in the case of reconnection the
  3452. socket during waiting async read/write from/to the socket.
  3453. - bpo-32011: Restored support of loading marshal files with the TYPE_INT64
  3454. code. These files can be produced in Python 2.7.
  3455. - bpo-28369: Enhance add_reader/writer check that socket is not used by some
  3456. transport. Before, only cases when add_reader/writer were called with an
  3457. int FD were supported. Now the check is implemented correctly for all
  3458. file-like objects.
  3459. - bpo-31976: Fix race condition when flushing a file is slow, which can
  3460. cause a segfault if closing the file from another thread.
  3461. - bpo-31985: Formally deprecated aifc.openfp, sunau.openfp, and wave.openfp.
  3462. Since change 7bc817d5ba917528e8bd07ec461c635291e7b06a in 1993, openfp in
  3463. each of the three modules had been pointing to that module's open function
  3464. as a matter of backwards compatibility, though it had been both untested
  3465. and undocumented.
  3466. - bpo-21862: cProfile command line now accepts `-m module_name` as an
  3467. alternative to script path. Patch by Sanyam Khurana.
  3468. - bpo-31970: Reduce performance overhead of asyncio debug mode.
  3469. - bpo-31843: *database* argument of sqlite3.connect() now accepts a
  3470. :term:`path-like object`, instead of just a string.
  3471. - bpo-31945: Add Configurable *blocksize* to ``HTTPConnection`` and
  3472. ``HTTPSConnection`` for improved upload throughput. Patch by Nir Soffer.
  3473. - bpo-31943: Add a ``cancelled()`` method to :class:`asyncio.Handle`. Patch
  3474. by Marat Sharafutdinov.
  3475. - bpo-9678: Fixed determining the MAC address in the uuid module:
  3476. * Using ifconfig on NetBSD and OpenBSD.
  3477. * Using arp on Linux, FreeBSD, NetBSD and OpenBSD.
  3478. Based on patch by Takayuki Shimizukawa.
  3479. - bpo-30057: Fix potential missed signal in signal.signal().
  3480. - bpo-31933: Fix Blake2 params leaf_size and node_offset on big endian
  3481. platforms. Patch by Jack O'Connor.
  3482. - bpo-21423: Add an initializer argument to {Process,Thread}PoolExecutor
  3483. - bpo-31927: Fixed compilation of the socket module on NetBSD 8. Fixed
  3484. assertion failure or reading arbitrary data when parse a AF_BLUETOOTH
  3485. address on NetBSD and DragonFly BSD.
  3486. - bpo-27666: Fixed stack corruption in curses.box() and curses.ungetmouse()
  3487. when the size of types chtype or mmask_t is less than the size of C long.
  3488. curses.box() now accepts characters as arguments. Based on patch by Steve
  3489. Fink.
  3490. - bpo-31917: Add 3 new clock identifiers: :data:`time.CLOCK_BOOTTIME`,
  3491. :data:`time.CLOCK_PROF` and :data:`time.CLOCK_UPTIME`.
  3492. - bpo-31897: plistlib now catches more errors when read binary plists and
  3493. raises InvalidFileException instead of unexpected exceptions.
  3494. - bpo-25720: Fix the method for checking pad state of curses WINDOW. Patch
  3495. by Masayuki Yamamoto.
  3496. - bpo-31893: Fixed the layout of the kqueue_event structure on OpenBSD and
  3497. NetBSD. Fixed the comparison of the kqueue_event objects.
  3498. - bpo-31891: Fixed building the curses module on NetBSD.
  3499. - bpo-31884: added required constants to subprocess module for setting
  3500. priority on windows
  3501. - bpo-28281: Remove year (1-9999) limits on the Calendar.weekday() function.
  3502. Patch by Mark Gollahon.
  3503. - bpo-31702: crypt.mksalt() now allows to specify the number of rounds for
  3504. SHA-256 and SHA-512 hashing.
  3505. - bpo-30639: :func:`inspect.getfile` no longer computes the repr of unknown
  3506. objects to display in an error message, to protect against badly behaved
  3507. custom reprs.
  3508. - bpo-30768: Fix the pthread+semaphore implementation of
  3509. PyThread_acquire_lock_timed() when called with timeout > 0 and
  3510. intr_flag=0: recompute the timeout if sem_timedwait() is interrupted by a
  3511. signal (EINTR). See also the :pep:`475`.
  3512. - bpo-31854: Add ``mmap.ACCESS_DEFAULT`` constant.
  3513. - bpo-31834: Use optimized code for BLAKE2 only with SSSE3+. The pure SSE2
  3514. implementation is slower than the pure C reference implementation.
  3515. - bpo-28292: Calendar.itermonthdates() will now consistently raise an
  3516. exception when a date falls outside of the 0001-01-01 through 9999-12-31
  3517. range. To support applications that cannot tolerate such exceptions, the
  3518. new methods itermonthdays3() and itermonthdays4() are added. The new
  3519. methods return tuples and are not restricted by the range supported by
  3520. datetime.date.
  3521. - bpo-28564: The shutil.rmtree() function has been sped up to 20--40%. This
  3522. was done using the os.scandir() function.
  3523. - bpo-28416: Instances of pickle.Pickler subclass with the persistent_id()
  3524. method and pickle.Unpickler subclass with the persistent_load() method no
  3525. longer create reference cycles.
  3526. - bpo-31653: Don't release the GIL if we can acquire a multiprocessing
  3527. semaphore immediately.
  3528. - bpo-28326: Fix multiprocessing.Process when stdout and/or stderr is closed
  3529. or None.
  3530. - bpo-20825: Add `subnet_of` and `superset_of` containment tests to
  3531. :class:`ipaddress.IPv6Network` and :class:`ipaddress.IPv4Network`. Patch
  3532. by Michel Albert and Cheryl Sabella.
  3533. - bpo-31827: Remove the os.stat_float_times() function. It was introduced in
  3534. Python 2.3 for backward compatibility with Python 2.2, and was deprecated
  3535. since Python 3.1.
  3536. - bpo-31756: Add a ``subprocess.Popen(text=False)`` keyword argument to
  3537. `subprocess` functions to be more explicit about when the library should
  3538. attempt to decode outputs into text. Patch by Andrew Clegg.
  3539. - bpo-31819: Add AbstractEventLoop.sock_recv_into().
  3540. - bpo-31457: If nested log adapters are used, the inner ``process()``
  3541. methods are no longer omitted.
  3542. - bpo-31457: The ``manager`` property on LoggerAdapter objects is now
  3543. properly settable.
  3544. - bpo-31806: Fix timeout rounding in time.sleep(), threading.Lock.acquire()
  3545. and socket.socket.settimeout() to round correctly negative timeouts
  3546. between -1.0 and 0.0. The functions now block waiting for events as
  3547. expected. Previously, the call was incorrectly non-blocking. Patch by
  3548. Pablo Galindo.
  3549. - bpo-31803: time.clock() and time.get_clock_info('clock') now emit a
  3550. DeprecationWarning warning.
  3551. - bpo-31800: Extended support for parsing UTC offsets. strptime '%z' can now
  3552. parse the output generated by datetime.isoformat, including seconds and
  3553. microseconds.
  3554. - bpo-28603: traceback: Fix a TypeError that occurred during printing of
  3555. exception tracebacks when either the current exception or an exception in
  3556. its context/cause chain is unhashable. Patch by Zane Bitter.
  3557. - bpo-30541: Add new function to seal a mock and prevent the automatically
  3558. creation of child mocks. Patch by Mario Corchero.
  3559. - bpo-31784: Implement the :pep:`564`, add new 6 new functions with
  3560. nanosecond resolution to the :mod:`time` module:
  3561. :func:`~time.clock_gettime_ns`, :func:`~time.clock_settime_ns`,
  3562. :func:`~time.monotonic_ns`, :func:`~time.perf_counter_ns`,
  3563. :func:`~time.process_time_ns`, :func:`~time.time_ns`.
  3564. - bpo-30143: 2to3 now generates a code that uses abstract collection classes
  3565. from collections.abc rather than collections.
  3566. - bpo-31770: Prevent a crash when calling the ``__init__()`` method of a
  3567. ``sqlite3.Cursor`` object more than once. Patch by Oren Milman.
  3568. - bpo-31764: Prevent a crash in ``sqlite3.Cursor.close()`` in case the
  3569. ``Cursor`` object is uninitialized. Patch by Oren Milman.
  3570. - bpo-31752: Fix possible crash in timedelta constructor called with custom
  3571. integers.
  3572. - bpo-31620: an empty asyncio.Queue now doesn't leak memory when queue.get
  3573. pollers timeout
  3574. - bpo-31690: Allow the flags re.ASCII, re.LOCALE, and re.UNICODE to be used
  3575. as group flags for regular expressions.
  3576. - bpo-30349: FutureWarning is now emitted if a regular expression contains
  3577. character set constructs that will change semantically in the future
  3578. (nested sets and set operations).
  3579. - bpo-31664: Added support for the Blowfish hashing in the crypt module.
  3580. - bpo-31632: Fix method set_protocol() of class _SSLProtocolTransport in
  3581. asyncio module. This method was previously modifying a wrong reference to
  3582. the protocol.
  3583. - bpo-15037: Added a workaround for getkey() in curses for ncurses 5.7 and
  3584. earlier.
  3585. - bpo-31307: Allow use of bytes objects for arguments to
  3586. :meth:`configparser.ConfigParser.read`. Patch by Vincent Michel.
  3587. - bpo-31334: Fix ``poll.poll([timeout])`` in the ``select`` module for
  3588. arbitrary negative timeouts on all OSes where it can only be a
  3589. non-negative integer or -1. Patch by Riccardo Coccioli.
  3590. - bpo-31310: multiprocessing's semaphore tracker should be launched again if
  3591. crashed.
  3592. - bpo-31308: Make multiprocessing's forkserver process immune to Ctrl-C and
  3593. other user interruptions. If it crashes, restart it when necessary.
  3594. - bpo-31245: Added support for AF_UNIX socket in asyncio
  3595. `create_datagram_endpoint`.
  3596. - bpo-30553: Add HTTP/2 status code 421 (Misdirected Request) to
  3597. :class:`http.HTTPStatus`. Patch by Vitor Pereira.
  3598. Documentation
  3599. -------------
  3600. - bpo-32105: Added asyncio.BaseEventLoop.connect_accepted_socket
  3601. versionadded marker.
  3602. Tests
  3603. -----
  3604. - bpo-31380: Skip test_httpservers test_undecodable_file on macOS: fails on
  3605. APFS.
  3606. - bpo-31705: Skip test_socket.test_sha256() on Linux kernel older than 4.5.
  3607. The test fails with ENOKEY on kernel 3.10 (on ppc64le). A fix was merged
  3608. into the kernel 4.5.
  3609. - bpo-32138: Skip on Android test_faulthandler tests that raise SIGSEGV and
  3610. remove the test.support.requires_android_level decorator.
  3611. - bpo-32136: The runtime embedding tests have been split out from
  3612. ``Lib/test/test_capi.py`` into a new ``Lib/test/test_embed.py`` file.
  3613. - bpo-28668: test.support.requires_multiprocessing_queue is removed. Skip
  3614. tests with test.support.import_module('multiprocessing.synchronize')
  3615. instead when the semaphore implementation is broken or missing.
  3616. - bpo-32126: Skip test_get_event_loop_new_process in
  3617. test.test_asyncio.test_events when sem_open() is not functional.
  3618. - bpo-31174: Fix test_tools.test_unparse: DirectoryTestCase now stores the
  3619. names sample to always test the same files. It prevents false alarms when
  3620. hunting reference leaks.
  3621. Build
  3622. -----
  3623. - bpo-28538: Revert the previous changes, the if_nameindex structure is
  3624. defined by Unified Headers.
  3625. - bpo-28762: Revert the last commit, the F_LOCK macro is defined by Android
  3626. Unified Headers.
  3627. - bpo-29040: Support building Android with Unified Headers. The first NDK
  3628. release to support Unified Headers is android-ndk-r14.
  3629. - bpo-32059: ``detect_modules()`` in ``setup.py`` now also searches the
  3630. sysroot paths when cross-compiling.
  3631. - bpo-31957: Fixes Windows SDK version detection when building for Windows.
  3632. - bpo-31609: Fixes quotes in PCbuild/clean.bat
  3633. - bpo-31934: Abort the build when building out of a not clean source tree.
  3634. - bpo-31926: Fixed Argument Clinic sometimes causing compilation errors when
  3635. there was more than one function and/or method in a .c file with the same
  3636. name.
  3637. - bpo-28791: Update Windows builds to use SQLite 3.21.0.
  3638. - bpo-28791: Update OS X installer to use SQLite 3.21.0.
  3639. - bpo-28643: Record profile-opt build progress with stamp files.
  3640. - bpo-31866: Finish removing support for AtheOS.
  3641. Windows
  3642. -------
  3643. - bpo-1102: Return ``None`` when ``View.Fetch()`` returns
  3644. ``ERROR_NO_MORE_ITEMS`` instead of raising ``MSIError``.
  3645. Initial patch by Anthony Tuininga.
  3646. - bpo-31944: Fixes Modify button in Apps and Features dialog.
  3647. - bpo-20486: Implement the ``Database.Close()`` method to help closing MSI
  3648. database objects.
  3649. - bpo-31857: Make the behavior of USE_STACKCHECK deterministic in a
  3650. multi-threaded environment.
  3651. macOS
  3652. -----
  3653. - bpo-31392: Update macOS installer to use OpenSSL 1.0.2m
  3654. IDLE
  3655. ----
  3656. - bpo-32207: Improve tk event exception tracebacks in IDLE. When tk event
  3657. handling is driven by IDLE's run loop, a confusing and distracting
  3658. queue.EMPTY traceback context is no longer added to tk event exception
  3659. tracebacks. The traceback is now the same as when event handling is
  3660. driven by user code. Patch based on a suggestion by Serhiy Storchaka.
  3661. - bpo-32164: Delete unused file idlelib/tabbedpages.py. Use of TabbedPageSet
  3662. in configdialog was replaced by ttk.Notebook.
  3663. - bpo-32100: IDLE: Fix old and new bugs in pathbrowser; improve tests. Patch
  3664. mostly by Cheryl Sabella.
  3665. - bpo-31858: IDLE -- Restrict shell prompt manipulation to the shell. Editor
  3666. and output windows only see an empty last prompt line. This simplifies
  3667. the code and fixes a minor bug when newline is inserted. Sys.ps1, if
  3668. present, is read on Shell start-up, but is not set or changed.
  3669. - bpo-31860: The font sample in the IDLE configuration dialog is now
  3670. editable. Changes persist while IDLE remains open
  3671. - bpo-31836: Test_code_module now passes if run after test_idle, which sets
  3672. ps1.
  3673. The code module uses sys.ps1 if present or sets it to '>>> ' if not.
  3674. Test_code_module now properly tests both behaviors. Ditto for ps2.
  3675. - bpo-28603: Fix a TypeError that caused a shell restart when printing a
  3676. traceback that includes an exception that is unhashable. Patch by Zane
  3677. Bitter.
  3678. - bpo-13802: Use non-Latin characters in the IDLE's Font settings sample.
  3679. Even if one selects a font that defines a limited subset of the unicode
  3680. Basic Multilingual Plane, tcl/tk will use other fonts that define a
  3681. character. The expanded example give users of non-Latin characters a
  3682. better idea of what they might see in IDLE's shell and editors.
  3683. To make room for the expanded sample, frames on the Font tab are
  3684. re-arranged. The Font/Tabs help explains a bit about the additions.
  3685. Tools/Demos
  3686. -----------
  3687. - bpo-32159: Remove CVS and Subversion tools: remove svneol.py and
  3688. treesync.py scripts. CPython migrated from CVS to Subversion, to
  3689. Mercurial, and then to Git. CVS and Subversion are no longer used to
  3690. develop CPython.
  3691. - bpo-30722: Make redemo work with Python 3.6 and newer versions.
  3692. Also, remove the ``LOCALE`` option since it doesn't work with string
  3693. patterns in Python 3.
  3694. Patch by Christoph Sarnowski.
  3695. C API
  3696. -----
  3697. - bpo-20891: Fix PyGILState_Ensure(). When PyGILState_Ensure() is called in
  3698. a non-Python thread before PyEval_InitThreads(), only call
  3699. PyEval_InitThreads() after calling PyThreadState_New() to fix a crash.
  3700. - bpo-32125: The ``Py_UseClassExceptionsFlag`` flag has been removed. It was
  3701. deprecated and wasn't used anymore since Python 2.0.
  3702. - bpo-25612: Move the current exception state from the frame object to the
  3703. co-routine. This simplifies the interpreter and fixes a couple of obscure
  3704. bugs caused by having swap exception state when entering or exiting a
  3705. generator.
  3706. - bpo-23699: Add Py_RETURN_RICHCOMPARE macro to reduce boilerplate code in
  3707. rich comparison functions.
  3708. - bpo-30697: The `PyExc_RecursionErrorInst` singleton is removed and
  3709. `PyErr_NormalizeException()` does not use it anymore. This singleton is
  3710. persistent and its members being never cleared may cause a segfault during
  3711. finalization of the interpreter. See also issue #22898.
  3712. What's New in Python 3.7.0 alpha 2?
  3713. ===================================
  3714. *Release date: 2017-10-16*
  3715. Core and Builtins
  3716. -----------------
  3717. - bpo-31558: ``gc.freeze()`` is a new API that allows for moving all objects
  3718. currently tracked by the garbage collector to a permanent generation,
  3719. effectively removing them from future collection events. This can be used
  3720. to protect those objects from having their PyGC_Head mutated. In effect,
  3721. this enables great copy-on-write stability at fork().
  3722. - bpo-31642: Restored blocking "from package import module" by setting
  3723. sys.modules["package.module"] to None.
  3724. - bpo-31708: Allow use of asynchronous generator expressions in synchronous
  3725. functions.
  3726. - bpo-31709: Drop support of asynchronous __aiter__.
  3727. - bpo-30404: The -u option now makes the stdout and stderr streams
  3728. unbuffered rather than line-buffered.
  3729. - bpo-31619: Fixed a ValueError when convert a string with large number of
  3730. underscores to integer with binary base.
  3731. - bpo-31602: Fix an assertion failure in `zipimporter.get_source()` in case
  3732. of a bad `zlib.decompress()`. Patch by Oren Milman.
  3733. - bpo-31592: Fixed an assertion failure in Python parser in case of a bad
  3734. `unicodedata.normalize()`. Patch by Oren Milman.
  3735. - bpo-31588: Raise a `TypeError` with a helpful error message when class
  3736. creation fails due to a metaclass with a bad ``__prepare__()`` method.
  3737. Patch by Oren Milman.
  3738. - bpo-31574: Importlib was instrumented with two dtrace probes to profile
  3739. import timing.
  3740. - bpo-31566: Fix an assertion failure in `_warnings.warn()` in case of a bad
  3741. ``__name__`` global. Patch by Oren Milman.
  3742. - bpo-31506: Improved the error message logic for object.__new__ and
  3743. object.__init__.
  3744. - bpo-31505: Fix an assertion failure in `json`, in case
  3745. `_json.make_encoder()` received a bad `encoder()` argument. Patch by Oren
  3746. Milman.
  3747. - bpo-31492: Fix assertion failures in case of failing to import from a
  3748. module with a bad ``__name__`` attribute, and in case of failing to access
  3749. an attribute of such a module. Patch by Oren Milman.
  3750. - bpo-31478: Fix an assertion failure in `_random.Random.seed()` in case the
  3751. argument has a bad ``__abs__()`` method. Patch by Oren Milman.
  3752. - bpo-31336: Speed up class creation by 10-20% by reducing the overhead in
  3753. the necessary special method lookups. Patch by Stefan Behnel.
  3754. - bpo-31415: Add ``-X importtime`` option to show how long each import
  3755. takes. It can be used to optimize application's startup time. Support the
  3756. :envvar:`PYTHONPROFILEIMPORTTIME` as an equivalent way to enable this.
  3757. - bpo-31410: Optimized calling wrapper and classmethod descriptors.
  3758. - bpo-31353: :pep:`553` - Add a new built-in called ``breakpoint()`` which
  3759. calls ``sys.breakpointhook()``. By default this imports ``pdb`` and calls
  3760. ``pdb.set_trace()``, but users may override ``sys.breakpointhook()`` to
  3761. call whatever debugger they want. The original value of the hook is saved
  3762. in ``sys.__breakpointhook__``.
  3763. - bpo-17852: Maintain a list of open buffered files, flush them before
  3764. exiting the interpreter. Based on a patch from Armin Rigo.
  3765. - bpo-31315: Fix an assertion failure in imp.create_dynamic(), when
  3766. spec.name is not a string. Patch by Oren Milman.
  3767. - bpo-31311: Fix a crash in the ``__setstate__()`` method of
  3768. `ctypes._CData`, in case of a bad ``__dict__``. Patch by Oren Milman.
  3769. - bpo-31293: Fix crashes in true division and multiplication of a timedelta
  3770. object by a float with a bad as_integer_ratio() method. Patch by Oren
  3771. Milman.
  3772. - bpo-31285: Fix an assertion failure in `warnings.warn_explicit`, when the
  3773. return value of the received loader's get_source() has a bad splitlines()
  3774. method. Patch by Oren Milman.
  3775. - bpo-30406: Make ``async`` and ``await`` proper keywords, as specified in
  3776. PEP 492.
  3777. Library
  3778. -------
  3779. - bpo-30058: Fixed buffer overflow in select.kqueue.control().
  3780. - bpo-31672: ``idpattern`` in ``string.Template`` matched some non-ASCII
  3781. characters. Now it uses ``-i`` regular expression local flag to avoid
  3782. non-ASCII characters.
  3783. - bpo-31701: On Windows, faulthandler.enable() now ignores MSC and COM
  3784. exceptions.
  3785. - bpo-31728: Prevent crashes in `_elementtree` due to unsafe cleanup of
  3786. `Element.text` and `Element.tail`. Patch by Oren Milman.
  3787. - bpo-31671: Now ``re.compile()`` converts passed RegexFlag to normal int
  3788. object before compiling. bm_regex_compile benchmark shows 14% performance
  3789. improvements.
  3790. - bpo-30397: The types of compiled regular objects and match objects are now
  3791. exposed as `re.Pattern` and `re.Match`. This adds information in pydoc
  3792. output for the re module.
  3793. - bpo-31675: Fixed memory leaks in Tkinter's methods splitlist() and split()
  3794. when pass a string larger than 2 GiB.
  3795. - bpo-31673: Fixed typo in the name of Tkinter's method adderrorinfo().
  3796. - bpo-31648: Improvements to path predicates in ElementTree:
  3797. * Allow whitespace around predicate parts, i.e. "[a = 'text']" instead of requiring the less readable "[a='text']".
  3798. * Add support for text comparison of the current node, like "[.='text']".
  3799. Patch by Stefan Behnel.
  3800. - bpo-30806: Fix the string representation of a netrc object.
  3801. - bpo-31638: Add optional argument ``compressed`` to
  3802. ``zipapp.create_archive``, and add option ``--compress`` to the command
  3803. line interface of ``zipapp``.
  3804. - bpo-25351: Avoid venv activate failures with undefined variables
  3805. - bpo-20519: Avoid ctypes use (if possible) and improve import time for
  3806. uuid.
  3807. - bpo-28293: The regular expression cache is no longer completely dumped
  3808. when it is full.
  3809. - bpo-31596: Added pthread_getcpuclockid() to the time module
  3810. - bpo-27494: Make 2to3 accept a trailing comma in generator expressions. For
  3811. example, ``set(x for x in [],)`` is now allowed.
  3812. - bpo-30347: Stop crashes when concurrently iterate over itertools.groupby()
  3813. iterators.
  3814. - bpo-30346: An iterator produced by itertools.groupby() iterator now
  3815. becomes exhausted after advancing the groupby iterator.
  3816. - bpo-31556: Cancel asyncio.wait_for future faster if timeout <= 0
  3817. - bpo-31540: Allow passing a context object in
  3818. :class:`concurrent.futures.ProcessPoolExecutor` constructor. Also, free
  3819. job resources in :class:`concurrent.futures.ProcessPoolExecutor` earlier
  3820. to improve memory usage when a worker waits for new jobs.
  3821. - bpo-31516: ``threading.current_thread()`` should not return a dummy thread
  3822. at shutdown.
  3823. - bpo-31525: In the sqlite module, require the sqlite3_prepare_v2 API. Thus,
  3824. the sqlite module now requires sqlite version at least 3.3.9.
  3825. - bpo-26510: argparse subparsers are now required by default. This matches
  3826. behaviour in Python 2. For optional subparsers, use the new parameter
  3827. ``add_subparsers(required=False)``. Patch by Anthony Sottile. (As of
  3828. 3.7.0rc1, the default was changed to not required as had been the case
  3829. since Python 3.3.)
  3830. - bpo-27541: Reprs of subclasses of some collection and iterator classes
  3831. (`bytearray`, `array.array`, `collections.deque`,
  3832. `collections.defaultdict`, `itertools.count`, `itertools.repeat`) now
  3833. contain actual type name insteads of hardcoded name of the base class.
  3834. - bpo-31351: python -m ensurepip now exits with non-zero exit code if pip
  3835. bootstrapping has failed.
  3836. - bpo-31389: ``pdb.set_trace()`` now takes an optional keyword-only argument
  3837. ``header``. If given, this is printed to the console just before debugging
  3838. begins.
  3839. Documentation
  3840. -------------
  3841. - bpo-31537: Fix incorrect usage of ``get_history_length`` in readline
  3842. documentation example code. Patch by Brad Smith.
  3843. - bpo-30085: The operator functions without double underscores are preferred
  3844. for clarity. The one with underscores are only kept for
  3845. back-compatibility.
  3846. Build
  3847. -----
  3848. - bpo-31696: Improve compiler version information in :data:`sys.version`
  3849. when Python is built with Clang.
  3850. - bpo-31625: Stop using ranlib on static libraries. Instead, we assume ar
  3851. supports the 's' flag.
  3852. - bpo-31624: Remove support for BSD/OS.
  3853. - bpo-22140: Prevent double substitution of prefix in python-config.sh.
  3854. - bpo-31569: Correct PCBuild/ case to PCbuild/ in build scripts and
  3855. documentation.
  3856. - bpo-31536: Avoid wholesale rebuild after `make regen-all` if nothing
  3857. changed.
  3858. IDLE
  3859. ----
  3860. - bpo-31460: Simplify the API of IDLE's Module Browser.
  3861. Passing a widget instead of an flist with a root widget opens the option
  3862. of creating a browser frame that is only part of a window. Passing a full
  3863. file name instead of pieces assumed to come from a .py file opens the
  3864. possibility of browsing python files that do not end in .py.
  3865. - bpo-31649: IDLE - Make _htest, _utest parameters keyword only.
  3866. - bpo-31559: Remove test order dependence in idle_test.test_browser.
  3867. - bpo-31459: Rename IDLE's module browser from Class Browser to Module
  3868. Browser. The original module-level class and method browser became a
  3869. module browser, with the addition of module-level functions, years ago.
  3870. Nested classes and functions were added yesterday. For
  3871. back-compatibility, the virtual event <<open-class-browser>>, which
  3872. appears on the Keys tab of the Settings dialog, is not changed. Patch by
  3873. Cheryl Sabella.
  3874. - bpo-31500: Default fonts now are scaled on HiDPI displays.
  3875. - bpo-1612262: IDLE module browser now shows nested classes and functions.
  3876. Original patches for code and tests by Guilherme Polo and Cheryl Sabella,
  3877. respectively.
  3878. C API
  3879. -----
  3880. - bpo-28280: Make `PyMapping_Keys()`, `PyMapping_Values()` and
  3881. `PyMapping_Items()` always return a `list` (rather than a `list` or a
  3882. `tuple`). Patch by Oren Milman.
  3883. - bpo-31532: Fix memory corruption due to allocator mix in getpath.c between
  3884. Py_GetPath() and Py_SetPath()
  3885. - bpo-25658: Implement PEP 539 for Thread Specific Storage (TSS) API: it is
  3886. a new Thread Local Storage (TLS) API to CPython which would supersede use
  3887. of the existing TLS API within the CPython interpreter, while deprecating
  3888. the existing API. PEP written by Erik M. Bray, patch by Masayuki Yamamoto.
  3889. What's New in Python 3.7.0 alpha 1?
  3890. ===================================
  3891. *Release date: 2017-09-19*
  3892. Security
  3893. --------
  3894. - bpo-29781: SSLObject.version() now correctly returns None when handshake
  3895. over BIO has not been performed yet.
  3896. - bpo-29505: Add fuzz tests for float(str), int(str), unicode(str); for
  3897. oss-fuzz.
  3898. - bpo-30947: Upgrade libexpat embedded copy from version 2.2.1 to 2.2.3 to
  3899. get security fixes.
  3900. - bpo-30730: Prevent environment variables injection in subprocess on
  3901. Windows. Prevent passing other environment variables and command
  3902. arguments.
  3903. - bpo-30694: Upgrade expat copy from 2.2.0 to 2.2.1 to get fixes of multiple
  3904. security vulnerabilities including: CVE-2017-9233 (External entity
  3905. infinite loop DoS), CVE-2016-9063 (Integer overflow, re-fix),
  3906. CVE-2016-0718 (Fix regression bugs from 2.2.0's fix to CVE-2016-0718) and
  3907. CVE-2012-0876 (Counter hash flooding with SipHash). Note: the
  3908. CVE-2016-5300 (Use os-specific entropy sources like getrandom) doesn't
  3909. impact Python, since Python already gets entropy from the OS to set the
  3910. expat secret using ``XML_SetHashSalt()``.
  3911. - bpo-30500: Fix urllib.parse.splithost() to correctly parse fragments. For
  3912. example, ``splithost('//127.0.0.1#@evil.com/')`` now correctly returns the
  3913. ``127.0.0.1`` host, instead of treating ``@evil.com`` as the host in an
  3914. authentication (``login@host``).
  3915. - bpo-29591: Update expat copy from 2.1.1 to 2.2.0 to get fixes of
  3916. CVE-2016-0718 and CVE-2016-4472. See
  3917. https://sourceforge.net/p/expat/bugs/537/ for more information.
  3918. Core and Builtins
  3919. -----------------
  3920. - bpo-31490: Fix an assertion failure in `ctypes` class definition, in case
  3921. the class has an attribute whose name is specified in ``_anonymous_`` but
  3922. not in ``_fields_``. Patch by Oren Milman.
  3923. - bpo-31471: Fix an assertion failure in `subprocess.Popen()` on Windows, in
  3924. case the env argument has a bad keys() method. Patch by Oren Milman.
  3925. - bpo-31418: Fix an assertion failure in `PyErr_WriteUnraisable()` in case
  3926. of an exception with a bad ``__module__`` attribute. Patch by Oren Milman.
  3927. - bpo-31416: Fix assertion failures in case of a bad warnings.filters or
  3928. warnings.defaultaction. Patch by Oren Milman.
  3929. - bpo-28411: Change direct usage of PyInterpreterState.modules to
  3930. PyImport_GetModuleDict(). Also introduce more uniformity in other code
  3931. that deals with sys.modules. This helps reduce complications when working
  3932. on sys.modules.
  3933. - bpo-28411: Switch to the abstract API when dealing with
  3934. ``PyInterpreterState.modules``. This allows later support for all dict
  3935. subclasses and other Mapping implementations. Also add a
  3936. ``PyImport_GetModule()`` function to reduce a bunch of duplicated code.
  3937. - bpo-31411: Raise a TypeError instead of SystemError in case
  3938. warnings.onceregistry is not a dictionary. Patch by Oren Milman.
  3939. - bpo-31344: For finer control of tracing behaviour when testing the
  3940. interpreter, two new frame attributes have been added to control the
  3941. emission of particular trace events: ``f_trace_lines`` (``True`` by
  3942. default) to turn off per-line trace events; and ``f_trace_opcodes``
  3943. (``False`` by default) to turn on per-opcode trace events.
  3944. - bpo-31373: Fix several possible instances of undefined behavior due to
  3945. floating-point demotions.
  3946. - bpo-30465: Location information (``lineno`` and ``col_offset``) in
  3947. f-strings is now (mostly) correct. This fixes tools like flake8 from
  3948. showing warnings on the wrong line (typically the first line of the file).
  3949. - bpo-30860: Consolidate CPython's global runtime state under a single
  3950. struct. This improves discoverability of the runtime state.
  3951. - bpo-31347: Fix possible undefined behavior in _PyObject_FastCall_Prepend.
  3952. - bpo-31343: Include sys/sysmacros.h for major(), minor(), and makedev().
  3953. GNU C libray plans to remove the functions from sys/types.h.
  3954. - bpo-31291: Fix an assertion failure in `zipimport.zipimporter.get_data` on
  3955. Windows, when the return value of ``pathname.replace('/','\\')`` isn't a
  3956. string. Patch by Oren Milman.
  3957. - bpo-31271: Fix an assertion failure in the write() method of
  3958. `io.TextIOWrapper`, when the encoder doesn't return a bytes object. Patch
  3959. by Oren Milman.
  3960. - bpo-31243: Fix a crash in some methods of `io.TextIOWrapper`, when the
  3961. decoder's state is invalid. Patch by Oren Milman.
  3962. - bpo-30721: ``print`` now shows correct usage hint for using Python 2
  3963. redirection syntax. Patch by Sanyam Khurana.
  3964. - bpo-31070: Fix a race condition in importlib _get_module_lock().
  3965. - bpo-30747: Add a non-dummy implementation of _Py_atomic_store and
  3966. _Py_atomic_load on MSVC.
  3967. - bpo-31095: Fix potential crash during GC caused by ``tp_dealloc`` which
  3968. doesn't call ``PyObject_GC_UnTrack()``.
  3969. - bpo-31071: Avoid masking original TypeError in call with * unpacking when
  3970. other arguments are passed.
  3971. - bpo-30978: str.format_map() now passes key lookup exceptions through.
  3972. Previously any exception was replaced with a KeyError exception.
  3973. - bpo-30808: Use _Py_atomic API for concurrency-sensitive signal state.
  3974. - bpo-30876: Relative import from unloaded package now reimports the package
  3975. instead of failing with SystemError. Relative import from non-package now
  3976. fails with ImportError rather than SystemError.
  3977. - bpo-30703: Improve signal delivery.
  3978. Avoid using Py_AddPendingCall from signal handler, to avoid calling
  3979. signal-unsafe functions. The tests I'm adding here fail without the rest
  3980. of the patch, on Linux and OS X. This means our signal delivery logic had
  3981. defects (some signals could be lost).
  3982. - bpo-30765: Avoid blocking in pthread_mutex_lock() when
  3983. PyThread_acquire_lock() is asked not to block.
  3984. - bpo-31161: Make sure the 'Missing parentheses' syntax error message is
  3985. only applied to SyntaxError, not to subclasses. Patch by Martijn Pieters.
  3986. - bpo-30814: Fixed a race condition when import a submodule from a package.
  3987. - bpo-30736: The internal unicodedata database has been upgraded to Unicode
  3988. 10.0.
  3989. - bpo-30604: Move co_extra_freefuncs from per-thread to per-interpreter to
  3990. avoid crashes.
  3991. - bpo-30597: ``print`` now shows expected input in custom error message when
  3992. used as a Python 2 statement. Patch by Sanyam Khurana.
  3993. - bpo-30682: Removed a too-strict assertion that failed for certain
  3994. f-strings, such as eval("f'\\\n'") and eval("f'\\\r'").
  3995. - bpo-30501: The compiler now produces more optimal code for complex
  3996. condition expressions in the "if", "while" and "assert" statement, the
  3997. "if" expression, and generator expressions and comprehensions.
  3998. - bpo-28180: Implement PEP 538 (legacy C locale coercion). This means that
  3999. when a suitable coercion target locale is available, both the core
  4000. interpreter and locale-aware C extensions will assume the use of UTF-8 as
  4001. the default text encoding, rather than ASCII.
  4002. - bpo-30486: Allows setting cell values for __closure__. Patch by Lisa
  4003. Roach.
  4004. - bpo-30537: itertools.islice now accepts integer-like objects (having an
  4005. __index__ method) as start, stop, and slice arguments
  4006. - bpo-25324: Tokens needed for parsing in Python moved to C. ``COMMENT``,
  4007. ``NL`` and ``ENCODING``. This way the tokens and tok_names in the token
  4008. module don't get changed when you import the tokenize module.
  4009. - bpo-29104: Fixed parsing backslashes in f-strings.
  4010. - bpo-27945: Fixed various segfaults with dict when input collections are
  4011. mutated during searching, inserting or comparing. Based on patches by
  4012. Duane Griffin and Tim Mitchell.
  4013. - bpo-25794: Fixed type.__setattr__() and type.__delattr__() for
  4014. non-interned attribute names. Based on patch by Eryk Sun.
  4015. - bpo-30039: If a KeyboardInterrupt happens when the interpreter is in the
  4016. middle of resuming a chain of nested 'yield from' or 'await' calls, it's
  4017. now correctly delivered to the innermost frame.
  4018. - bpo-28974: ``object.__format__(x, '')`` is now equivalent to ``str(x)``
  4019. rather than ``format(str(self), '')``.
  4020. - bpo-30024: Circular imports involving absolute imports with binding a
  4021. submodule to a name are now supported.
  4022. - bpo-12414: sys.getsizeof() on a code object now returns the sizes which
  4023. includes the code struct and sizes of objects which it references. Patch
  4024. by Dong-hee Na.
  4025. - bpo-29839: len() now raises ValueError rather than OverflowError if
  4026. __len__() returned a large negative integer.
  4027. - bpo-11913: README.rst is now included in the list of distutils standard
  4028. READMEs and therefore included in source distributions.
  4029. - bpo-29914: Fixed default implementations of __reduce__ and
  4030. __reduce_ex__(). object.__reduce__() no longer takes arguments,
  4031. object.__reduce_ex__() now requires one argument.
  4032. - bpo-29949: Fix memory usage regression of set and frozenset object.
  4033. - bpo-29935: Fixed error messages in the index() method of tuple, list and
  4034. deque when pass indices of wrong type.
  4035. - bpo-29816: Shift operation now has less opportunity to raise
  4036. OverflowError. ValueError always is raised rather than OverflowError for
  4037. negative counts. Shifting zero with non-negative count always returns
  4038. zero.
  4039. - bpo-24821: Fixed the slowing down to 25 times in the searching of some
  4040. unlucky Unicode characters.
  4041. - bpo-29102: Add a unique ID to PyInterpreterState. This makes it easier to
  4042. identify each subinterpreter.
  4043. - bpo-29894: The deprecation warning is emitted if __complex__ returns an
  4044. instance of a strict subclass of complex. In a future versions of Python
  4045. this can be an error.
  4046. - bpo-29859: Show correct error messages when any of the pthread_* calls in
  4047. thread_pthread.h fails.
  4048. - bpo-29849: Fix a memory leak when an ImportError is raised during from
  4049. import.
  4050. - bpo-28856: Fix an oversight that %b format for bytes should support
  4051. objects follow the buffer protocol.
  4052. - bpo-29723: The ``sys.path[0]`` initialization change for bpo-29139 caused
  4053. a regression by revealing an inconsistency in how sys.path is initialized
  4054. when executing ``__main__`` from a zipfile, directory, or other import
  4055. location. The interpreter now consistently avoids ever adding the import
  4056. location's parent directory to ``sys.path``, and ensures no other
  4057. ``sys.path`` entries are inadvertently modified when inserting the import
  4058. location named on the command line.
  4059. - bpo-29568: Escaped percent "%%" in the format string for classic string
  4060. formatting no longer allows any characters between two percents.
  4061. - bpo-29714: Fix a regression that bytes format may fail when containing
  4062. zero bytes inside.
  4063. - bpo-29695: bool(), float(), list() and tuple() no longer take keyword
  4064. arguments. The first argument of int() can now be passes only as
  4065. positional argument.
  4066. - bpo-28893: Set correct __cause__ for errors about invalid awaitables
  4067. returned from __aiter__ and __anext__.
  4068. - bpo-28876: ``bool(range)`` works even if ``len(range)`` raises
  4069. :exc:`OverflowError`.
  4070. - bpo-29683: Fixes to memory allocation in _PyCode_SetExtra. Patch by Brian
  4071. Coleman.
  4072. - bpo-29684: Fix minor regression of PyEval_CallObjectWithKeywords. It
  4073. should raise TypeError when kwargs is not a dict. But it might cause segv
  4074. when args=NULL and kwargs is not a dict.
  4075. - bpo-28598: Support __rmod__ for subclasses of str being called before
  4076. str.__mod__. Patch by Martijn Pieters.
  4077. - bpo-29607: Fix stack_effect computation for CALL_FUNCTION_EX. Patch by
  4078. Matthieu Dartiailh.
  4079. - bpo-29602: Fix incorrect handling of signed zeros in complex constructor
  4080. for complex subclasses and for inputs having a __complex__ method. Patch
  4081. by Serhiy Storchaka.
  4082. - bpo-29347: Fixed possibly dereferencing undefined pointers when creating
  4083. weakref objects.
  4084. - bpo-29463: Add ``docstring`` field to Module, ClassDef, FunctionDef, and
  4085. AsyncFunctionDef ast nodes. docstring is not first stmt in their body
  4086. anymore. It affects ``co_firstlineno`` and ``co_lnotab`` of code object
  4087. for module and class. (Reverted in :issue:`32911`.)
  4088. - bpo-29438: Fixed use-after-free problem in key sharing dict.
  4089. - bpo-29546: Set the 'path' and 'name' attribute on ImportError for ``from
  4090. ... import ...``.
  4091. - bpo-29546: Improve from-import error message with location
  4092. - bpo-29478: If max_line_length=None is specified while using the Compat32
  4093. policy, it is no longer ignored. Patch by Mircea Cosbuc.
  4094. - bpo-29319: Prevent RunMainFromImporter overwriting sys.path[0].
  4095. - bpo-29337: Fixed possible BytesWarning when compare the code objects.
  4096. Warnings could be emitted at compile time.
  4097. - bpo-29327: Fixed a crash when pass the iterable keyword argument to
  4098. sorted().
  4099. - bpo-29034: Fix memory leak and use-after-free in os module
  4100. (path_converter).
  4101. - bpo-29159: Fix regression in bytes(x) when x.__index__() raises Exception.
  4102. - bpo-29049: Call _PyObject_GC_TRACK() lazily when calling Python function.
  4103. Calling function is up to 5% faster.
  4104. - bpo-28927: bytes.fromhex() and bytearray.fromhex() now ignore all ASCII
  4105. whitespace, not only spaces. Patch by Robert Xiao.
  4106. - bpo-28932: Do not include <sys/random.h> if it does not exist.
  4107. - bpo-25677: Correct the positioning of the syntax error caret for indented
  4108. blocks. Based on patch by Michael Layzell.
  4109. - bpo-29000: Fixed bytes formatting of octals with zero padding in alternate
  4110. form.
  4111. - bpo-18896: Python function can now have more than 255 parameters.
  4112. collections.namedtuple() now supports tuples with more than 255 elements.
  4113. - bpo-28596: The preferred encoding is UTF-8 on Android. Patch written by
  4114. Chi Hsuan Yen.
  4115. - bpo-22257: Clean up interpreter startup (see PEP 432).
  4116. - bpo-26919: On Android, operating system data is now always encoded/decoded
  4117. to/from UTF-8, instead of the locale encoding to avoid inconsistencies
  4118. with os.fsencode() and os.fsdecode() which are already using UTF-8.
  4119. - bpo-28991: functools.lru_cache() was susceptible to an obscure reentrancy
  4120. bug triggerable by a monkey-patched len() function.
  4121. - bpo-28147: Fix a memory leak in split-table dictionaries: setattr() must
  4122. not convert combined table into split table. Patch written by INADA Naoki.
  4123. - bpo-28739: f-string expressions are no longer accepted as docstrings and
  4124. by ast.literal_eval() even if they do not include expressions.
  4125. - bpo-28512: Fixed setting the offset attribute of SyntaxError by
  4126. PyErr_SyntaxLocationEx() and PyErr_SyntaxLocationObject().
  4127. - bpo-28918: Fix the cross compilation of xxlimited when Python has been
  4128. built with Py_DEBUG defined.
  4129. - bpo-23722: Rather than silently producing a class that doesn't support
  4130. zero-argument ``super()`` in methods, failing to pass the new
  4131. ``__classcell__`` namespace entry up to ``type.__new__`` now results in a
  4132. ``DeprecationWarning`` and a class that supports zero-argument
  4133. ``super()``.
  4134. - bpo-28797: Modifying the class __dict__ inside the __set_name__ method of
  4135. a descriptor that is used inside that class no longer prevents calling the
  4136. __set_name__ method of other descriptors.
  4137. - bpo-28799: Remove the ``PyEval_GetCallStats()`` function and deprecate the
  4138. untested and undocumented ``sys.callstats()`` function. Remove the
  4139. ``CALL_PROFILE`` special build: use the :func:`sys.setprofile` function,
  4140. :mod:`cProfile` or :mod:`profile` to profile function calls.
  4141. - bpo-12844: More than 255 arguments can now be passed to a function.
  4142. - bpo-28782: Fix a bug in the implementation ``yield from`` when checking if
  4143. the next instruction is YIELD_FROM. Regression introduced by WORDCODE
  4144. (issue #26647).
  4145. - bpo-28774: Fix error position of the unicode error in ASCII and Latin1
  4146. encoders when a string returned by the error handler contains multiple
  4147. non-encodable characters (non-ASCII for the ASCII codec, characters out of
  4148. the U+0000-U+00FF range for Latin1).
  4149. - bpo-28731: Optimize _PyDict_NewPresized() to create correct size dict.
  4150. Improve speed of dict literal with constant keys up to 30%.
  4151. - bpo-28532: Show sys.version when -V option is supplied twice.
  4152. - bpo-27100: The with-statement now checks for __enter__ before it checks
  4153. for __exit__. This gives less confusing error messages when both methods
  4154. are missing. Patch by Jonathan Ellington.
  4155. - bpo-28746: Fix the set_inheritable() file descriptor method on platforms
  4156. that do not have the ioctl FIOCLEX and FIONCLEX commands.
  4157. - bpo-26920: Fix not getting the locale's charset upon initializing the
  4158. interpreter, on platforms that do not have langinfo.
  4159. - bpo-28648: Fixed crash in Py_DecodeLocale() in debug build on Mac OS X
  4160. when decode astral characters. Patch by Xiang Zhang.
  4161. - bpo-28665: Improve speed of the STORE_DEREF opcode by 40%.
  4162. - bpo-19398: Extra slash no longer added to sys.path components in case of
  4163. empty compile-time PYTHONPATH components.
  4164. - bpo-28621: Sped up converting int to float by reusing faster bits counting
  4165. implementation. Patch by Adrian Wielgosik.
  4166. - bpo-28580: Optimize iterating split table values. Patch by Xiang Zhang.
  4167. - bpo-28583: PyDict_SetDefault didn't combine split table when needed. Patch
  4168. by Xiang Zhang.
  4169. - bpo-28128: Deprecation warning for invalid str and byte escape sequences
  4170. now prints better information about where the error occurs. Patch by
  4171. Serhiy Storchaka and Eric Smith.
  4172. - bpo-28509: dict.update() no longer allocate unnecessary large memory.
  4173. - bpo-28426: Fixed potential crash in PyUnicode_AsDecodedObject() in debug
  4174. build.
  4175. - bpo-28517: Fixed of-by-one error in the peephole optimizer that caused
  4176. keeping unreachable code.
  4177. - bpo-28214: Improved exception reporting for problematic __set_name__
  4178. attributes.
  4179. - bpo-23782: Fixed possible memory leak in _PyTraceback_Add() and exception
  4180. loss in PyTraceBack_Here().
  4181. - bpo-28183: Optimize and cleanup dict iteration.
  4182. - bpo-26081: Added C implementation of asyncio.Future. Original patch by
  4183. Yury Selivanov.
  4184. - bpo-28379: Added sanity checks and tests for PyUnicode_CopyCharacters().
  4185. Patch by Xiang Zhang.
  4186. - bpo-28376: The type of long range iterator is now registered as Iterator.
  4187. Patch by Oren Milman.
  4188. - bpo-28376: Creating instances of range_iterator by calling range_iterator
  4189. type now is disallowed. Calling iter() on range instance is the only way.
  4190. Patch by Oren Milman.
  4191. - bpo-26906: Resolving special methods of uninitialized type now causes
  4192. implicit initialization of the type instead of a fail.
  4193. - bpo-18287: PyType_Ready() now checks that tp_name is not NULL. Original
  4194. patch by Niklas Koep.
  4195. - bpo-24098: Fixed possible crash when AST is changed in process of
  4196. compiling it.
  4197. - bpo-28201: Dict reduces possibility of 2nd conflict in hash table when
  4198. hashes have same lower bits.
  4199. - bpo-28350: String constants with null character no longer interned.
  4200. - bpo-26617: Fix crash when GC runs during weakref callbacks.
  4201. - bpo-27942: String constants now interned recursively in tuples and
  4202. frozensets.
  4203. - bpo-28289: ImportError.__init__ now resets not specified attributes.
  4204. - bpo-21578: Fixed misleading error message when ImportError called with
  4205. invalid keyword args.
  4206. - bpo-28203: Fix incorrect type in complex(1.0, {2:3}) error message. Patch
  4207. by Soumya Sharma.
  4208. - bpo-28086: Single var-positional argument of tuple subtype was passed
  4209. unscathed to the C-defined function. Now it is converted to exact tuple.
  4210. - bpo-28214: Now __set_name__ is looked up on the class instead of the
  4211. instance.
  4212. - bpo-27955: Fallback on reading /dev/urandom device when the getrandom()
  4213. syscall fails with EPERM, for example when blocked by SECCOMP.
  4214. - bpo-28192: Don't import readline in isolated mode.
  4215. - bpo-27441: Remove some redundant assignments to ob_size in longobject.c.
  4216. Thanks Oren Milman.
  4217. - bpo-27222: Clean up redundant code in long_rshift function. Thanks Oren
  4218. Milman.
  4219. - Upgrade internal unicode databases to Unicode version 9.0.0.
  4220. - bpo-28131: Fix a regression in zipimport's compile_source(). zipimport
  4221. should use the same optimization level as the interpreter.
  4222. - bpo-28126: Replace Py_MEMCPY with memcpy(). Visual Studio can properly
  4223. optimize memcpy().
  4224. - bpo-28120: Fix dict.pop() for splitted dictionary when trying to remove a
  4225. "pending key" (Not yet inserted in split-table). Patch by Xiang Zhang.
  4226. - bpo-26182: Raise DeprecationWarning when async and await keywords are used
  4227. as variable/attribute/class/function name.
  4228. - bpo-26182: Fix a refleak in code that raises DeprecationWarning.
  4229. - bpo-28721: Fix asynchronous generators aclose() and athrow() to handle
  4230. StopAsyncIteration propagation properly.
  4231. - bpo-26110: Speed-up method calls: add LOAD_METHOD and CALL_METHOD opcodes.
  4232. Library
  4233. -------
  4234. - bpo-31499: xml.etree: Fix a crash when a parser is part of a reference
  4235. cycle.
  4236. - bpo-31482: ``random.seed()`` now works with bytes in version=1
  4237. - bpo-28556: typing.get_type_hints now finds the right globalns for classes
  4238. and modules by default (when no ``globalns`` was specified by the caller).
  4239. - bpo-28556: Speed improvements to the ``typing`` module. Original PRs by
  4240. Ivan Levkivskyi and Mitar.
  4241. - bpo-31544: The C accelerator module of ElementTree ignored exceptions
  4242. raised when looking up TreeBuilder target methods in XMLParser().
  4243. - bpo-31234: socket.create_connection() now fixes manually a reference
  4244. cycle: clear the variable storing the last exception on success.
  4245. - bpo-31457: LoggerAdapter objects can now be nested.
  4246. - bpo-31431: SSLContext.check_hostname now automatically sets
  4247. SSLContext.verify_mode to ssl.CERT_REQUIRED instead of failing with a
  4248. ValueError.
  4249. - bpo-31233: socketserver.ThreadingMixIn now keeps a list of non-daemonic
  4250. threads to wait until all these threads complete in server_close().
  4251. - bpo-28638: Changed the implementation strategy for
  4252. collections.namedtuple() to substantially reduce the use of exec() in
  4253. favor of precomputed methods. As a result, the *verbose* parameter and
  4254. *_source* attribute are no longer supported. The benefits include 1)
  4255. having a smaller memory footprint for applications using multiple named
  4256. tuples, 2) faster creation of the named tuple class (approx 4x to 6x
  4257. depending on how it is measured), and 3) minor speed-ups for instance
  4258. creation using __new__, _make, and _replace. (The primary patch
  4259. contributor is Jelle Zijlstra with further improvements by INADA Naoki,
  4260. Serhiy Storchaka, and Raymond Hettinger.)
  4261. - bpo-31400: Improves SSL error handling to avoid losing error numbers.
  4262. - bpo-27629: Make return types of SSLContext.wrap_bio() and
  4263. SSLContext.wrap_socket() customizable.
  4264. - bpo-28958: ssl.SSLContext() now uses OpenSSL error information when a
  4265. context cannot be instantiated.
  4266. - bpo-28182: The SSL module now raises SSLCertVerificationError when OpenSSL
  4267. fails to verify the peer's certificate. The exception contains more
  4268. information about the error.
  4269. - bpo-27340: SSLSocket.sendall() now uses memoryview to create slices of
  4270. data. This fixes support for all bytes-like object. It is also more
  4271. efficient and avoids costly copies.
  4272. - bpo-14191: A new function
  4273. ``argparse.ArgumentParser.parse_intermixed_args`` provides the ability to
  4274. parse command lines where there user intermixes options and positional
  4275. arguments.
  4276. - bpo-31178: Fix string concatenation bug in rare error path in the
  4277. subprocess module
  4278. - bpo-31350: Micro-optimize :func:`asyncio._get_running_loop` to become up
  4279. to 10% faster.
  4280. - bpo-31170: expat: Update libexpat from 2.2.3 to 2.2.4. Fix copying of
  4281. partial characters for UTF-8 input (libexpat bug 115):
  4282. https://github.com/libexpat/libexpat/issues/115
  4283. - bpo-29136: Add TLS 1.3 cipher suites and OP_NO_TLSv1_3.
  4284. - bpo-1198569: ``string.Template`` subclasses can optionally define
  4285. ``braceidpattern`` if they want to specify different placeholder patterns
  4286. inside and outside the braces. If None (the default) it falls back to
  4287. ``idpattern``.
  4288. - bpo-31326: concurrent.futures.ProcessPoolExecutor.shutdown() now
  4289. explicitly closes the call queue. Moreover, shutdown(wait=True) now also
  4290. join the call queue thread, to prevent leaking a dangling thread.
  4291. - bpo-27144: The ``map()`` and ``as_completed()`` iterators in
  4292. ``concurrent.futures`` now avoid keeping a reference to yielded objects.
  4293. - bpo-31281: Fix ``fileinput.FileInput(files, inplace=True)`` when ``files``
  4294. contain ``pathlib.Path`` objects.
  4295. - bpo-10746: Fix ctypes producing wrong PEP 3118 type codes for integer
  4296. types.
  4297. - bpo-27584: ``AF_VSOCK`` has been added to the socket interface which
  4298. allows communication between virtual machines and their host.
  4299. - bpo-22536: The subprocess module now sets the filename when
  4300. FileNotFoundError is raised on POSIX systems due to the executable or cwd
  4301. not being found.
  4302. - bpo-29741: Update some methods in the _pyio module to also accept integer
  4303. types. Patch by Oren Milman.
  4304. - bpo-31249: concurrent.futures: WorkItem.run() used by ThreadPoolExecutor
  4305. now breaks a reference cycle between an exception object and the WorkItem
  4306. object.
  4307. - bpo-31247: xmlrpc.server now explicitly breaks reference cycles when using
  4308. sys.exc_info() in code handling exceptions.
  4309. - bpo-23835: configparser: reading defaults in the ``ConfigParser()``
  4310. constructor is now using ``read_dict()``, making its behavior consistent
  4311. with the rest of the parser. Non-string keys and values in the defaults
  4312. dictionary are now being implicitly converted to strings. Patch by James
  4313. Tocknell.
  4314. - bpo-31238: pydoc: the stop() method of the private ServerThread class now
  4315. waits until DocServer.serve_until_quit() completes and then explicitly
  4316. sets its docserver attribute to None to break a reference cycle.
  4317. - bpo-5001: Many asserts in `multiprocessing` are now more informative, and
  4318. some error types have been changed to more specific ones.
  4319. - bpo-31109: Convert zipimport to use Argument Clinic.
  4320. - bpo-30102: The ssl and hashlib modules now call
  4321. OPENSSL_add_all_algorithms_noconf() on OpenSSL < 1.1.0. The function
  4322. detects CPU features and enables optimizations on some CPU architectures
  4323. such as POWER8. Patch is based on research from Gustavo Serra Scalet.
  4324. - bpo-18966: Non-daemonic threads created by a multiprocessing.Process are
  4325. now joined on child exit.
  4326. - bpo-31183: `dis` now works with asynchronous generator and coroutine
  4327. objects. Patch by George Collins based on diagnosis by Luciano Ramalho.
  4328. - bpo-5001: There are a number of uninformative asserts in the
  4329. `multiprocessing` module, as noted in issue 5001. This change fixes two of
  4330. the most potentially problematic ones, since they are in error-reporting
  4331. code, in the `multiprocessing.managers.convert_to_error` function. (It
  4332. also makes more informative a ValueError message.) The only potentially
  4333. problematic change is that the AssertionError is now a TypeError; however,
  4334. this should also help distinguish it from an AssertionError being
  4335. *reported* by the function/its caller (such as in issue 31169). - Patch by
  4336. Allen W. Smith (drallensmith on github).
  4337. - bpo-31185: Fixed miscellaneous errors in asyncio speedup module.
  4338. - bpo-31151: socketserver.ForkingMixIn.server_close() now waits until all
  4339. child processes completed to prevent leaking zombie processes.
  4340. - bpo-31072: Add an ``include_file`` parameter to
  4341. ``zipapp.create_archive()``
  4342. - bpo-24700: Optimize array.array comparison. It is now from 10x up to 70x
  4343. faster when comparing arrays holding values of the same integer type.
  4344. - bpo-31135: ttk: fix the destroy() method of LabeledScale and OptionMenu
  4345. classes. Call the parent destroy() method even if the used attribute
  4346. doesn't exist. The LabeledScale.destroy() method now also explicitly
  4347. clears label and scale attributes to help the garbage collector to destroy
  4348. all widgets.
  4349. - bpo-31107: Fix `copyreg._slotnames()` mangled attribute calculation for
  4350. classes whose name begins with an underscore. Patch by Shane Harvey.
  4351. - bpo-31080: Allow `logging.config.fileConfig` to accept kwargs and/or args.
  4352. - bpo-30897: ``pathlib.Path`` objects now include an ``is_mount()`` method
  4353. (only implemented on POSIX). This is similar to ``os.path.ismount(p)``.
  4354. Patch by Cooper Ry Lees.
  4355. - bpo-31061: Fixed a crash when using asyncio and threads.
  4356. - bpo-30987: Added support for CAN ISO-TP protocol in the socket module.
  4357. - bpo-30522: Added a ``setStream`` method to ``logging.StreamHandler`` to
  4358. allow the stream to be set after creation.
  4359. - bpo-30502: Fix handling of long oids in ssl. Based on patch by Christian
  4360. Heimes.
  4361. - bpo-5288: Support tzinfo objects with sub-minute offsets.
  4362. - bpo-30919: Fix shared memory performance regression in multiprocessing in
  4363. 3.x.
  4364. Shared memory used anonymous memory mappings in 2.x, while 3.x mmaps
  4365. actual files. Try to be careful to do as little disk I/O as possible.
  4366. - bpo-26732: Fix too many fds in processes started with the "forkserver"
  4367. method.
  4368. A child process would inherit as many fds as the number of still-running
  4369. children.
  4370. - bpo-29403: Fix ``unittest.mock``'s autospec to not fail on method-bound
  4371. builtin functions. Patch by Aaron Gallagher.
  4372. - bpo-30961: Fix decrementing a borrowed reference in tracemalloc.
  4373. - bpo-19896: Fix multiprocessing.sharedctypes to recognize typecodes ``'q'``
  4374. and ``'Q'``.
  4375. - bpo-30946: Remove obsolete code in readline module for platforms where GNU
  4376. readline is older than 2.1 or where select() is not available.
  4377. - bpo-25684: Change ``ttk.OptionMenu`` radiobuttons to be unique across
  4378. instances of ``OptionMenu``.
  4379. - bpo-30886: Fix multiprocessing.Queue.join_thread(): it now waits until the
  4380. thread completes, even if the thread was started by the same process which
  4381. created the queue.
  4382. - bpo-29854: Fix segfault in readline when using readline's history-size
  4383. option. Patch by Nir Soffer.
  4384. - bpo-30794: Added multiprocessing.Process.kill method to terminate using
  4385. the SIGKILL signal on Unix.
  4386. - bpo-30319: socket.close() now ignores ECONNRESET error.
  4387. - bpo-30828: Fix out of bounds write in
  4388. `asyncio.CFuture.remove_done_callback()`.
  4389. - bpo-30302: Use keywords in the ``repr`` of ``datetime.timedelta``.
  4390. - bpo-30807: signal.setitimer() may disable the timer when passed a tiny
  4391. value.
  4392. Tiny values (such as 1e-6) are valid non-zero values for setitimer(),
  4393. which is specified as taking microsecond-resolution intervals. However, on
  4394. some platform, our conversion routine could convert 1e-6 into a zero
  4395. interval, therefore disabling the timer instead of (re-)scheduling it.
  4396. - bpo-30441: Fix bug when modifying os.environ while iterating over it
  4397. - bpo-29585: Avoid importing ``sysconfig`` from ``site`` to improve startup
  4398. speed. Python startup is about 5% faster on Linux and 30% faster on macOS.
  4399. - bpo-29293: Add missing parameter "n" on
  4400. multiprocessing.Condition.notify().
  4401. The doc claims multiprocessing.Condition behaves like threading.Condition,
  4402. but its notify() method lacked the optional "n" argument (to specify the
  4403. number of sleepers to wake up) that threading.Condition.notify() accepts.
  4404. - bpo-30532: Fix email header value parser dropping folding white space in
  4405. certain cases.
  4406. - bpo-30596: Add a ``close()`` method to ``multiprocessing.Process``.
  4407. - bpo-9146: Fix a segmentation fault in _hashopenssl when standard hash
  4408. functions such as md5 are not available in the linked OpenSSL library. As
  4409. in some special FIPS-140 build environments.
  4410. - bpo-29169: Update zlib to 1.2.11.
  4411. - bpo-30119: ftplib.FTP.putline() now throws ValueError on commands that
  4412. contains CR or LF. Patch by Dong-hee Na.
  4413. - bpo-30879: os.listdir() and os.scandir() now emit bytes names when called
  4414. with bytes-like argument.
  4415. - bpo-30746: Prohibited the '=' character in environment variable names in
  4416. ``os.putenv()`` and ``os.spawn*()``.
  4417. - bpo-30664: The description of a unittest subtest now preserves the order
  4418. of keyword arguments of TestCase.subTest().
  4419. - bpo-21071: struct.Struct.format type is now :class:`str` instead of
  4420. :class:`bytes`.
  4421. - bpo-29212: Fix concurrent.futures.thread.ThreadPoolExecutor threads to
  4422. have a non repr() based thread name by default when no thread_name_prefix
  4423. is supplied. They will now identify themselves as
  4424. "ThreadPoolExecutor-y_n".
  4425. - bpo-29755: Fixed the lgettext() family of functions in the gettext module.
  4426. They now always return bytes.
  4427. - bpo-30616: Functional API of enum allows to create empty enums. Patched by
  4428. Dong-hee Na
  4429. - bpo-30038: Fix race condition between signal delivery and wakeup file
  4430. descriptor. Patch by Nathaniel Smith.
  4431. - bpo-23894: lib2to3 now recognizes ``rb'...'`` and ``f'...'`` strings.
  4432. - bpo-24744: pkgutil.walk_packages function now raises ValueError if *path*
  4433. is a string. Patch by Sanyam Khurana.
  4434. - bpo-24484: Avoid race condition in multiprocessing cleanup.
  4435. - bpo-30589: Fix multiprocessing.Process.exitcode to return the opposite of
  4436. the signal number when the process is killed by a signal (instead of 255)
  4437. when using the "forkserver" method.
  4438. - bpo-28994: The traceback no longer displayed for SystemExit raised in a
  4439. callback registered by atexit.
  4440. - bpo-30508: Don't log exceptions if Task/Future "cancel()" method was
  4441. called.
  4442. - bpo-30645: Fix path calculation in `imp.load_package()`, fixing it for
  4443. cases when a package is only shipped with bytecodes. Patch by Alexandru
  4444. Ardelean.
  4445. - bpo-11822: The dis.dis() function now is able to disassemble nested code
  4446. objects.
  4447. - bpo-30624: selectors does not take KeyboardInterrupt and SystemExit into
  4448. account, leaving a fd in a bad state in case of error. Patch by Giampaolo
  4449. Rodola'.
  4450. - bpo-30595: multiprocessing.Queue.get() with a timeout now polls its reader
  4451. in non-blocking mode if it succeeded to acquire the lock but the acquire
  4452. took longer than the timeout.
  4453. - bpo-28556: Updates to typing module: Add generic AsyncContextManager, add
  4454. support for ContextManager on all versions. Original PRs by Jelle Zijlstra
  4455. and Ivan Levkivskyi
  4456. - bpo-30605: re.compile() no longer raises a BytesWarning when compiling a
  4457. bytes instance with misplaced inline modifier. Patch by Roy Williams.
  4458. - bpo-29870: Fix ssl sockets leaks when connection is aborted in asyncio/ssl
  4459. implementation. Patch by Michaël Sghaïer.
  4460. - bpo-29743: Closing transport during handshake process leaks open socket.
  4461. Patch by Nikolay Kim
  4462. - bpo-27585: Fix waiter cancellation in asyncio.Lock. Patch by Mathieu
  4463. Sornay.
  4464. - bpo-30014: modify() method of poll(), epoll() and devpoll() based classes
  4465. of selectors module is around 10% faster. Patch by Giampaolo Rodola'.
  4466. - bpo-30418: On Windows, subprocess.Popen.communicate() now also ignore
  4467. EINVAL on stdin.write() if the child process is still running but closed
  4468. the pipe.
  4469. - bpo-30463: Addded empty __slots__ to abc.ABC. This allows subclassers to
  4470. deny __dict__ and __weakref__ creation. Patch by Aaron Hall.
  4471. - bpo-30520: Loggers are now pickleable.
  4472. - bpo-30557: faulthandler now correctly filters and displays exception codes
  4473. on Windows
  4474. - bpo-30526: Add TextIOWrapper.reconfigure() and a
  4475. TextIOWrapper.write_through attribute.
  4476. - bpo-30245: Fix possible overflow when organize struct.pack_into error
  4477. message. Patch by Yuan Liu.
  4478. - bpo-30378: Fix the problem that logging.handlers.SysLogHandler cannot
  4479. handle IPv6 addresses.
  4480. - bpo-16500: Allow registering at-fork handlers.
  4481. - bpo-30470: Deprecate invalid ctypes call protection on Windows. Patch by
  4482. Mariatta Wijaya.
  4483. - bpo-30414: multiprocessing.Queue._feed background running thread do not
  4484. break from main loop on exception.
  4485. - bpo-30003: Fix handling escape characters in HZ codec. Based on patch by
  4486. Ma Lin.
  4487. - bpo-30149: inspect.signature() now supports callables with
  4488. variable-argument parameters wrapped with partialmethod. Patch by Dong-hee
  4489. Na.
  4490. - bpo-30436: importlib.find_spec() raises ModuleNotFoundError instead of
  4491. AttributeError if the specified parent module is not a package (i.e. lacks
  4492. a __path__ attribute).
  4493. - bpo-30301: Fix AttributeError when using SimpleQueue.empty() under *spawn*
  4494. and *forkserver* start methods.
  4495. - bpo-30375: Warnings emitted when compile a regular expression now always
  4496. point to the line in the user code. Previously they could point into
  4497. inners of the re module if emitted from inside of groups or conditionals.
  4498. - bpo-30329: imaplib and poplib now catch the Windows socket WSAEINVAL error
  4499. (code 10022) on shutdown(SHUT_RDWR): An invalid operation was attempted.
  4500. This error occurs sometimes on SSL connections.
  4501. - bpo-29196: Removed previously deprecated in Python 2.4 classes Plist, Dict
  4502. and _InternalDict in the plistlib module. Dict values in the result of
  4503. functions readPlist() and readPlistFromBytes() are now normal dicts. You
  4504. no longer can use attribute access to access items of these dictionaries.
  4505. - bpo-9850: The :mod:`macpath` is now deprecated and will be removed in
  4506. Python 3.8.
  4507. - bpo-30299: Compiling regular expression in debug mode on CPython now
  4508. displays the compiled bytecode in human readable form.
  4509. - bpo-30048: Fixed ``Task.cancel()`` can be ignored when the task is running
  4510. coroutine and the coroutine returned without any more ``await``.
  4511. - bpo-30266: contextlib.AbstractContextManager now supports
  4512. anti-registration by setting __enter__ = None or __exit__ = None,
  4513. following the pattern introduced in bpo-25958. Patch by Jelle Zijlstra.
  4514. - bpo-30340: Enhanced regular expressions optimization. This increased the
  4515. performance of matching some patterns up to 25 times.
  4516. - bpo-30298: Weaken the condition of deprecation warnings for inline
  4517. modifiers. Now allowed several subsequential inline modifiers at the start
  4518. of the pattern (e.g. ``'(?i)(?s)...'``). In verbose mode whitespaces and
  4519. comments now are allowed before and between inline modifiers (e.g. ``'(?x)
  4520. (?i) (?s)...'``).
  4521. - bpo-30285: Optimized case-insensitive matching and searching of regular
  4522. expressions.
  4523. - bpo-29990: Fix range checking in GB18030 decoder. Original patch by Ma
  4524. Lin.
  4525. - bpo-29979: rewrite cgi.parse_multipart, reusing the FieldStorage class and
  4526. making its results consistent with those of FieldStorage for
  4527. multipart/form-data requests. Patch by Pierre Quentel.
  4528. - bpo-30243: Removed the __init__ methods of _json's scanner and encoder.
  4529. Misusing them could cause memory leaks or crashes. Now scanner and
  4530. encoder objects are completely initialized in the __new__ methods.
  4531. - bpo-30215: Compiled regular expression objects with the re.LOCALE flag no
  4532. longer depend on the locale at compile time. Only the locale at matching
  4533. time affects the result of matching.
  4534. - bpo-30185: Avoid KeyboardInterrupt tracebacks in forkserver helper process
  4535. when Ctrl-C is received.
  4536. - bpo-30103: binascii.b2a_uu() and uu.encode() now support using ``'`'`` as
  4537. zero instead of space.
  4538. - bpo-28556: Various updates to typing module: add typing.NoReturn type, use
  4539. WrapperDescriptorType, minor bug-fixes. Original PRs by Jim
  4540. Fasarakis-Hilliard and Ivan Levkivskyi.
  4541. - bpo-30205: Fix getsockname() for unbound AF_UNIX sockets on Linux.
  4542. - bpo-30228: The seek() and tell() methods of io.FileIO now set the internal
  4543. seekable attribute to avoid one syscall on open() (in buffered or text
  4544. mode).
  4545. - bpo-30190: unittest's assertAlmostEqual and assertNotAlmostEqual provide a
  4546. better message in case of failure which includes the difference between
  4547. left and right arguments. (patch by Giampaolo Rodola')
  4548. - bpo-30101: Add support for curses.A_ITALIC.
  4549. - bpo-29822: inspect.isabstract() now works during __init_subclass__. Patch
  4550. by Nate Soares.
  4551. - bpo-29960: Preserve generator state when _random.Random.setstate() raises
  4552. an exception. Patch by Bryan Olson.
  4553. - bpo-30070: Fixed leaks and crashes in errors handling in the parser
  4554. module.
  4555. - bpo-22352: Column widths in the output of dis.dis() are now adjusted for
  4556. large line numbers and instruction offsets.
  4557. - bpo-30061: Fixed crashes in IOBase methods __next__() and readlines() when
  4558. readline() or __next__() respectively return non-sizeable object. Fixed
  4559. possible other errors caused by not checking results of PyObject_Size(),
  4560. PySequence_Size(), or PyMapping_Size().
  4561. - bpo-30218: Fix PathLike support for shutil.unpack_archive. Patch by Jelle
  4562. Zijlstra.
  4563. - bpo-10076: Compiled regular expression and match objects in the re module
  4564. now support copy.copy() and copy.deepcopy() (they are considered atomic).
  4565. - bpo-30068: _io._IOBase.readlines will check if it's closed first when hint
  4566. is present.
  4567. - bpo-29694: Fixed race condition in pathlib mkdir with flags parents=True.
  4568. Patch by Armin Rigo.
  4569. - bpo-29692: Fixed arbitrary unchaining of RuntimeError exceptions in
  4570. contextlib.contextmanager. Patch by Siddharth Velankar.
  4571. - bpo-26187: Test that sqlite3 trace callback is not called multiple times
  4572. when schema is changing. Indirectly fixed by switching to use
  4573. sqlite3_prepare_v2() in bpo-9303. Patch by Aviv Palivoda.
  4574. - bpo-30017: Allowed calling the close() method of the zip entry writer
  4575. object multiple times. Writing to a closed writer now always produces a
  4576. ValueError.
  4577. - bpo-29998: Pickling and copying ImportError now preserves name and path
  4578. attributes.
  4579. - bpo-29995: re.escape() now escapes only regex special characters.
  4580. - bpo-29962: Add math.remainder operation, implementing remainder as
  4581. specified in IEEE 754.
  4582. - bpo-29649: Improve struct.pack_into() exception messages for problems with
  4583. the buffer size and offset. Patch by Andrew Nester.
  4584. - bpo-29654: Support If-Modified-Since HTTP header (browser cache). Patch
  4585. by Pierre Quentel.
  4586. - bpo-29931: Fixed comparison check for ipaddress.ip_interface objects.
  4587. Patch by Sanjay Sundaresan.
  4588. - bpo-29953: Fixed memory leaks in the replace() method of datetime and time
  4589. objects when pass out of bound fold argument.
  4590. - bpo-29942: Fix a crash in itertools.chain.from_iterable when encountering
  4591. long runs of empty iterables.
  4592. - bpo-10030: Sped up reading encrypted ZIP files by 2 times.
  4593. - bpo-29204: Element.getiterator() and the html parameter of XMLParser()
  4594. were deprecated only in the documentation (since Python 3.2 and 3.4
  4595. correspondintly). Now using them emits a deprecation warning.
  4596. - bpo-27863: Fixed multiple crashes in ElementTree caused by race conditions
  4597. and wrong types.
  4598. - bpo-25996: Added support of file descriptors in os.scandir() on Unix.
  4599. os.fwalk() is sped up by 2 times by using os.scandir().
  4600. - bpo-28699: Fixed a bug in pools in multiprocessing.pool that raising an
  4601. exception at the very first of an iterable may swallow the exception or
  4602. make the program hang. Patch by Davin Potts and Xiang Zhang.
  4603. - bpo-23890: unittest.TestCase.assertRaises() now manually breaks a
  4604. reference cycle to not keep objects alive longer than expected.
  4605. - bpo-29901: The zipapp module now supports general path-like objects, not
  4606. just pathlib.Path.
  4607. - bpo-25803: Avoid incorrect errors raised by Path.mkdir(exist_ok=True) when
  4608. the OS gives priority to errors such as EACCES over EEXIST.
  4609. - bpo-29861: Release references to tasks, their arguments and their results
  4610. as soon as they are finished in multiprocessing.Pool.
  4611. - bpo-19930: The mode argument of os.makedirs() no longer affects the file
  4612. permission bits of newly-created intermediate-level directories.
  4613. - bpo-29884: faulthandler: Restore the old sigaltstack during teardown.
  4614. Patch by Christophe Zeitouny.
  4615. - bpo-25455: Fixed crashes in repr of recursive buffered file-like objects.
  4616. - bpo-29800: Fix crashes in partial.__repr__ if the keys of partial.keywords
  4617. are not strings. Patch by Michael Seifert.
  4618. - bpo-8256: Fixed possible failing or crashing input() if attributes
  4619. "encoding" or "errors" of sys.stdin or sys.stdout are not set or are not
  4620. strings.
  4621. - bpo-28692: Using non-integer value for selecting a plural form in gettext
  4622. is now deprecated.
  4623. - bpo-26121: Use C library implementation for math functions erf() and
  4624. erfc().
  4625. - bpo-29619: os.stat() and os.DirEntry.inode() now convert inode (st_ino)
  4626. using unsigned integers.
  4627. - bpo-28298: Fix a bug that prevented array 'Q', 'L' and 'I' from accepting
  4628. big intables (objects that have __int__) as elements.
  4629. - bpo-29645: Speed up importing the webbrowser module.
  4630. webbrowser.register() is now thread-safe.
  4631. - bpo-28231: The zipfile module now accepts path-like objects for external
  4632. paths.
  4633. - bpo-26915: index() and count() methods of collections.abc.Sequence now
  4634. check identity before checking equality when do comparisons.
  4635. - bpo-28682: Added support for bytes paths in os.fwalk().
  4636. - bpo-29728: Add new :data:`socket.TCP_NOTSENT_LOWAT` (Linux 3.12) constant.
  4637. Patch by Nathaniel J. Smith.
  4638. - bpo-29623: Allow use of path-like object as a single argument in
  4639. ConfigParser.read(). Patch by David Ellis.
  4640. - bpo-9303: Migrate sqlite3 module to _v2 API. Patch by Aviv Palivoda.
  4641. - bpo-28963: Fix out of bound iteration in
  4642. asyncio.Future.remove_done_callback implemented in C.
  4643. - bpo-29704: asyncio.subprocess.SubprocessStreamProtocol no longer closes
  4644. before all pipes are closed.
  4645. - bpo-29271: Fix Task.current_task and Task.all_tasks implemented in C to
  4646. accept None argument as their pure Python implementation.
  4647. - bpo-29703: Fix asyncio to support instantiation of new event loops in
  4648. child processes.
  4649. - bpo-29615: SimpleXMLRPCDispatcher no longer chains KeyError (or any other
  4650. exception) to exception(s) raised in the dispatched methods. Patch by Petr
  4651. Motejlek.
  4652. - bpo-7769: Method register_function() of
  4653. xmlrpc.server.SimpleXMLRPCDispatcher and its subclasses can now be used as
  4654. a decorator.
  4655. - bpo-29376: Fix assertion error in threading._DummyThread.is_alive().
  4656. - bpo-28624: Add a test that checks that cwd parameter of Popen() accepts
  4657. PathLike objects. Patch by Sayan Chowdhury.
  4658. - bpo-28518: Start a transaction implicitly before a DML statement. Patch by
  4659. Aviv Palivoda.
  4660. - bpo-29742: get_extra_info() raises exception if get called on closed ssl
  4661. transport. Patch by Nikolay Kim.
  4662. - bpo-16285: urllib.parse.quote is now based on RFC 3986 and hence includes
  4663. '~' in the set of characters that is not quoted by default. Patch by
  4664. Christian Theune and Ratnadeep Debnath.
  4665. - bpo-29532: Altering a kwarg dictionary passed to functools.partial() no
  4666. longer affects a partial object after creation.
  4667. - bpo-29110: Fix file object leak in aifc.open() when file is given as a
  4668. filesystem path and is not in valid AIFF format. Patch by Anthony Zhang.
  4669. - bpo-22807: Add uuid.SafeUUID and uuid.UUID.is_safe to relay information
  4670. from the platform about whether generated UUIDs are generated with a
  4671. multiprocessing safe method.
  4672. - bpo-29576: Improve some deprecations in importlib. Some deprecated methods
  4673. now emit DeprecationWarnings and have better descriptive messages.
  4674. - bpo-29534: Fixed different behaviour of Decimal.from_float() for _decimal
  4675. and _pydecimal. Thanks Andrew Nester.
  4676. - bpo-10379: locale.format_string now supports the 'monetary' keyword
  4677. argument, and locale.format is deprecated.
  4678. - bpo-29851: importlib.reload() now raises ModuleNotFoundError if the module
  4679. lacks a spec.
  4680. - bpo-28556: Various updates to typing module: typing.Counter,
  4681. typing.ChainMap, improved ABC caching, etc. Original PRs by Jelle
  4682. Zijlstra, Ivan Levkivskyi, Manuel Krebber, and Łukasz Langa.
  4683. - bpo-29100: Fix datetime.fromtimestamp() regression introduced in Python
  4684. 3.6.0: check minimum and maximum years.
  4685. - bpo-29416: Prevent infinite loop in pathlib.Path.mkdir
  4686. - bpo-29444: Fixed out-of-bounds buffer access in the group() method of the
  4687. match object. Based on patch by WGH.
  4688. - bpo-29377: Add WrapperDescriptorType, MethodWrapperType, and
  4689. MethodDescriptorType built-in types to types module. Original patch by
  4690. Manuel Krebber.
  4691. - bpo-29218: Unused install_misc command is now removed. It has been
  4692. documented as unused since 2000. Patch by Eric N. Vander Weele.
  4693. - bpo-29368: The extend() method is now called instead of the append()
  4694. method when unpickle collections.deque and other list-like objects. This
  4695. can speed up unpickling to 2 times.
  4696. - bpo-29338: The help of a builtin or extension class now includes the
  4697. constructor signature if __text_signature__ is provided for the class.
  4698. - bpo-29335: Fix subprocess.Popen.wait() when the child process has exited
  4699. to a stopped instead of terminated state (ex: when under ptrace).
  4700. - bpo-29290: Fix a regression in argparse that help messages would wrap at
  4701. non-breaking spaces.
  4702. - bpo-28735: Fixed the comparison of mock.MagickMock with mock.ANY.
  4703. - bpo-29197: Removed deprecated function ntpath.splitunc().
  4704. - bpo-29210: Removed support of deprecated argument "exclude" in
  4705. tarfile.TarFile.add().
  4706. - bpo-29219: Fixed infinite recursion in the repr of uninitialized
  4707. ctypes.CDLL instances.
  4708. - bpo-29192: Removed deprecated features in the http.cookies module.
  4709. - bpo-29193: A format string argument for string.Formatter.format() is now
  4710. positional-only.
  4711. - bpo-29195: Removed support of deprecated undocumented keyword arguments in
  4712. methods of regular expression objects.
  4713. - bpo-28969: Fixed race condition in C implementation of
  4714. functools.lru_cache. KeyError could be raised when cached function with
  4715. full cache was simultaneously called from differen threads with the same
  4716. uncached arguments.
  4717. - bpo-20804: The unittest.mock.sentinel attributes now preserve their
  4718. identity when they are copied or pickled.
  4719. - bpo-29142: In urllib.request, suffixes in no_proxy environment variable
  4720. with leading dots could match related hostnames again (e.g. .b.c matches
  4721. a.b.c). Patch by Milan Oberkirch.
  4722. - bpo-28961: Fix unittest.mock._Call helper: don't ignore the name parameter
  4723. anymore. Patch written by Jiajun Huang.
  4724. - bpo-15812: inspect.getframeinfo() now correctly shows the first line of a
  4725. context. Patch by Sam Breese.
  4726. - bpo-28985: Update authorizer constants in sqlite3 module. Patch by
  4727. Dingyuan Wang.
  4728. - bpo-29079: Prevent infinite loop in pathlib.resolve() on Windows
  4729. - bpo-13051: Fixed recursion errors in large or resized
  4730. curses.textpad.Textbox. Based on patch by Tycho Andersen.
  4731. - bpo-9770: curses.ascii predicates now work correctly with negative
  4732. integers.
  4733. - bpo-28427: old keys should not remove new values from WeakValueDictionary
  4734. when collecting from another thread.
  4735. - bpo-28923: Remove editor artifacts from Tix.py.
  4736. - bpo-28871: Fixed a crash when deallocate deep ElementTree.
  4737. - bpo-19542: Fix bugs in WeakValueDictionary.setdefault() and
  4738. WeakValueDictionary.pop() when a GC collection happens in another thread.
  4739. - bpo-20191: Fixed a crash in resource.prlimit() when passing a sequence
  4740. that doesn't own its elements as limits.
  4741. - bpo-16255: subprocess.Popen uses /system/bin/sh on Android as the shell,
  4742. instead of /bin/sh.
  4743. - bpo-28779: multiprocessing.set_forkserver_preload() would crash the
  4744. forkserver process if a preloaded module instantiated some multiprocessing
  4745. objects such as locks.
  4746. - bpo-26937: The chown() method of the tarfile.TarFile class does not fail
  4747. now when the grp module cannot be imported, as for example on Android
  4748. platforms.
  4749. - bpo-28847: dbm.dumb now supports reading read-only files and no longer
  4750. writes the index file when it is not changed. A deprecation warning is
  4751. now emitted if the index file is missed and recreated in the 'r' and 'w'
  4752. modes (will be an error in future Python releases).
  4753. - bpo-27030: Unknown escapes consisting of ``'\'`` and an ASCII letter in
  4754. re.sub() replacement templates regular expressions now are errors.
  4755. - bpo-28835: Fix a regression introduced in warnings.catch_warnings(): call
  4756. warnings.showwarning() if it was overridden inside the context manager.
  4757. - bpo-27172: To assist with upgrades from 2.7, the previously documented
  4758. deprecation of ``inspect.getfullargspec()`` has been reversed. This
  4759. decision may be revisited again after the Python 2.7 branch is no longer
  4760. officially supported.
  4761. - bpo-28740: Add sys.getandroidapilevel(): return the build time API version
  4762. of Android as an integer. Function only available on Android.
  4763. - bpo-26273: Add new :data:`socket.TCP_CONGESTION` (Linux 2.6.13) and
  4764. :data:`socket.TCP_USER_TIMEOUT` (Linux 2.6.37) constants. Patch written by
  4765. Omar Sandoval.
  4766. - bpo-28752: Restored the __reduce__() methods of datetime objects.
  4767. - bpo-28727: Regular expression patterns, _sre.SRE_Pattern objects created
  4768. by re.compile(), become comparable (only x==y and x!=y operators). This
  4769. change should fix the issue #18383: don't duplicate warning filters when
  4770. the warnings module is reloaded (thing usually only done in unit tests).
  4771. - bpo-20572: Remove the subprocess.Popen.wait endtime parameter. It was
  4772. deprecated in 3.4 and undocumented prior to that.
  4773. - bpo-25659: In ctypes, prevent a crash calling the from_buffer() and
  4774. from_buffer_copy() methods on abstract classes like Array.
  4775. - bpo-28548: In the "http.server" module, parse the protocol version if
  4776. possible, to avoid using HTTP 0.9 in some error responses.
  4777. - bpo-19717: Makes Path.resolve() succeed on paths that do not exist. Patch
  4778. by Vajrasky Kok
  4779. - bpo-28563: Fixed possible DoS and arbitrary code execution when handle
  4780. plural form selections in the gettext module. The expression parser now
  4781. supports exact syntax supported by GNU gettext.
  4782. - bpo-28387: Fixed possible crash in _io.TextIOWrapper deallocator when the
  4783. garbage collector is invoked in other thread. Based on patch by Sebastian
  4784. Cufre.
  4785. - bpo-27517: LZMA compressor and decompressor no longer raise exceptions if
  4786. given empty data twice. Patch by Benjamin Fogle.
  4787. - bpo-28549: Fixed segfault in curses's addch() with ncurses6.
  4788. - bpo-28449: tarfile.open() with mode "r" or "r:" now tries to open a tar
  4789. file with compression before trying to open it without compression.
  4790. Otherwise it had 50% chance failed with ignore_zeros=True.
  4791. - bpo-23262: The webbrowser module now supports Firefox 36+ and derived
  4792. browsers. Based on patch by Oleg Broytman.
  4793. - bpo-24241: The webbrowser in an X environment now prefers using the
  4794. default browser directly. Also, the webbrowser register() function now has
  4795. a documented 'preferred' argument, to specify browsers to be returned by
  4796. get() with no arguments. Patch by David Steele
  4797. - bpo-27939: Fixed bugs in tkinter.ttk.LabeledScale and tkinter.Scale caused
  4798. by representing the scale as float value internally in Tk. tkinter.IntVar
  4799. now works if float value is set to underlying Tk variable.
  4800. - bpo-28255: calendar.TextCalendar.prweek() no longer prints a space after a
  4801. weeks's calendar. calendar.TextCalendar.pryear() no longer prints
  4802. redundant newline after a year's calendar. Based on patch by Xiang Zhang.
  4803. - bpo-28255: calendar.TextCalendar.prmonth() no longer prints a space at the
  4804. start of new line after printing a month's calendar. Patch by Xiang
  4805. Zhang.
  4806. - bpo-20491: The textwrap.TextWrapper class now honors non-breaking spaces.
  4807. Based on patch by Kaarle Ritvanen.
  4808. - bpo-28353: os.fwalk() no longer fails on broken links.
  4809. - bpo-28430: Fix iterator of C implemented asyncio.Future doesn't accept
  4810. non-None value is passed to it.send(val).
  4811. - bpo-27025: Generated names for Tkinter widgets now start by the "!" prefix
  4812. for readability.
  4813. - bpo-25464: Fixed HList.header_exists() in tkinter.tix module by addin a
  4814. workaround to Tix library bug.
  4815. - bpo-28488: shutil.make_archive() no longer adds entry "./" to ZIP archive.
  4816. - bpo-25953: re.sub() now raises an error for invalid numerical group
  4817. reference in replacement template even if the pattern is not found in the
  4818. string. Error message for invalid group reference now includes the group
  4819. index and the position of the reference. Based on patch by SilentGhost.
  4820. - bpo-28469: timeit now uses the sequence 1, 2, 5, 10, 20, 50,... instead of
  4821. 1, 10, 100,... for autoranging.
  4822. - bpo-28115: Command-line interface of the zipfile module now uses argparse.
  4823. Added support of long options.
  4824. - bpo-18219: Optimize csv.DictWriter for large number of columns. Patch by
  4825. Mariatta Wijaya.
  4826. - bpo-28448: Fix C implemented asyncio.Future didn't work on Windows.
  4827. - bpo-23214: In the "io" module, the argument to BufferedReader and
  4828. BytesIO's read1() methods is now optional and can be -1, matching the
  4829. BufferedIOBase specification.
  4830. - bpo-28480: Fix error building socket module when multithreading is
  4831. disabled.
  4832. - bpo-28240: timeit: remove ``-c/--clock`` and ``-t/--time`` command line
  4833. options which were deprecated since Python 3.3.
  4834. - bpo-28240: timeit now repeats the benchmarks 5 times instead of only 3 to
  4835. make benchmarks more reliable.
  4836. - bpo-28240: timeit autorange now uses a single loop iteration if the
  4837. benchmark takes less than 10 seconds, instead of 10 iterations. "python3
  4838. -m timeit -s 'import time' 'time.sleep(1)'" now takes 4 seconds instead of
  4839. 40 seconds.
  4840. - Distutils.sdist now looks for README and setup.py files with case
  4841. sensitivity. This behavior matches that found in Setuptools 6.0 and later.
  4842. See `setuptools 100 <https://github.com/pypa/setuptools/issues/100>`_ for
  4843. rationale.
  4844. - bpo-24452: Make webbrowser support Chrome on Mac OS X. Patch by Ned
  4845. Batchelder.
  4846. - bpo-20766: Fix references leaked by pdb in the handling of SIGINT
  4847. handlers.
  4848. - bpo-27998: Fixed bytes path support in os.scandir() on Windows. Patch by
  4849. Eryk Sun.
  4850. - bpo-28317: The disassembler now decodes FORMAT_VALUE argument.
  4851. - bpo-28380: unittest.mock Mock autospec functions now properly support
  4852. assert_called, assert_not_called, and assert_called_once.
  4853. - bpo-28229: lzma module now supports pathlib.
  4854. - bpo-28321: Fixed writing non-BMP characters with binary format in
  4855. plistlib.
  4856. - bpo-28225: bz2 module now supports pathlib. Initial patch by Ethan
  4857. Furman.
  4858. - bpo-28227: gzip now supports pathlib. Patch by Ethan Furman.
  4859. - bpo-28332: Deprecated silent truncations in socket.htons and socket.ntohs.
  4860. Original patch by Oren Milman.
  4861. - bpo-27358: Optimized merging var-keyword arguments and improved error
  4862. message when passing a non-mapping as a var-keyword argument.
  4863. - bpo-28257: Improved error message when passing a non-iterable as a
  4864. var-positional argument. Added opcode BUILD_TUPLE_UNPACK_WITH_CALL.
  4865. - bpo-28322: Fixed possible crashes when unpickle itertools objects from
  4866. incorrect pickle data. Based on patch by John Leitch.
  4867. - bpo-28228: imghdr now supports pathlib.
  4868. - bpo-28226: compileall now supports pathlib.
  4869. - bpo-28314: Fix function declaration (C flags) for the getiterator() method
  4870. of xml.etree.ElementTree.Element.
  4871. - bpo-28148: Stop using localtime() and gmtime() in the time module.
  4872. Introduced platform independent _PyTime_localtime API that is similar to
  4873. POSIX localtime_r, but available on all platforms. Patch by Ed Schouten.
  4874. - bpo-28253: Fixed calendar functions for extreme months: 0001-01 and
  4875. 9999-12.
  4876. Methods itermonthdays() and itermonthdays2() are reimplemented so that
  4877. they don't call itermonthdates() which can cause datetime.date
  4878. under/overflow.
  4879. - bpo-28275: Fixed possible use after free in the decompress() methods of
  4880. the LZMADecompressor and BZ2Decompressor classes. Original patch by John
  4881. Leitch.
  4882. - bpo-27897: Fixed possible crash in sqlite3.Connection.create_collation()
  4883. if pass invalid string-like object as a name. Patch by Xiang Zhang.
  4884. - bpo-18844: random.choices() now has k as a keyword-only argument to
  4885. improve the readability of common cases and come into line with the
  4886. signature used in other languages.
  4887. - bpo-18893: Fix invalid exception handling in Lib/ctypes/macholib/dyld.py.
  4888. Patch by Madison May.
  4889. - bpo-27611: Fixed support of default root window in the tkinter.tix module.
  4890. Added the master parameter in the DisplayStyle constructor.
  4891. - bpo-27348: In the traceback module, restore the formatting of exception
  4892. messages like "Exception: None". This fixes a regression introduced in
  4893. 3.5a2.
  4894. - bpo-25651: Allow falsy values to be used for msg parameter of subTest().
  4895. - bpo-27778: Fix a memory leak in os.getrandom() when the getrandom() is
  4896. interrupted by a signal and a signal handler raises a Python exception.
  4897. - bpo-28200: Fix memory leak on Windows in the os module (fix
  4898. path_converter() function).
  4899. - bpo-25400: RobotFileParser now correctly returns default values for
  4900. crawl_delay and request_rate. Initial patch by Peter Wirtz.
  4901. - bpo-27932: Prevent memory leak in win32_ver().
  4902. - Fix UnboundLocalError in socket._sendfile_use_sendfile.
  4903. - bpo-28075: Check for ERROR_ACCESS_DENIED in Windows implementation of
  4904. os.stat(). Patch by Eryk Sun.
  4905. - bpo-22493: Warning message emitted by using inline flags in the middle of
  4906. regular expression now contains a (truncated) regex pattern. Patch by Tim
  4907. Graham.
  4908. - bpo-25270: Prevent codecs.escape_encode() from raising SystemError when an
  4909. empty bytestring is passed.
  4910. - bpo-28181: Get antigravity over HTTPS. Patch by Kaartic Sivaraam.
  4911. - bpo-25895: Enable WebSocket URL schemes in urllib.parse.urljoin. Patch by
  4912. Gergely Imreh and Markus Holtermann.
  4913. - bpo-28114: Fix a crash in parse_envlist() when env contains byte strings.
  4914. Patch by Eryk Sun.
  4915. - bpo-27599: Fixed buffer overrun in binascii.b2a_qp() and
  4916. binascii.a2b_qp().
  4917. - bpo-27906: Fix socket accept exhaustion during high TCP traffic. Patch by
  4918. Kevin Conway.
  4919. - bpo-28174: Handle when SO_REUSEPORT isn't properly supported. Patch by
  4920. Seth Michael Larson.
  4921. - bpo-26654: Inspect functools.partial in asyncio.Handle.__repr__. Patch by
  4922. iceboy.
  4923. - bpo-26909: Fix slow pipes IO in asyncio. Patch by INADA Naoki.
  4924. - bpo-28176: Fix callbacks race in asyncio.SelectorLoop.sock_connect.
  4925. - bpo-27759: Fix selectors incorrectly retain invalid file descriptors.
  4926. Patch by Mark Williams.
  4927. - bpo-28325: Remove vestigial MacOS 9 macurl2path module and its tests.
  4928. - bpo-28368: Refuse monitoring processes if the child watcher has no loop
  4929. attached. Patch by Vincent Michel.
  4930. - bpo-28369: Raise RuntimeError when transport's FD is used with add_reader,
  4931. add_writer, etc.
  4932. - bpo-28370: Speedup asyncio.StreamReader.readexactly. Patch by Коренберг
  4933. Марк.
  4934. - bpo-28371: Deprecate passing asyncio.Handles to run_in_executor.
  4935. - bpo-28372: Fix asyncio to support formatting of non-python coroutines.
  4936. - bpo-28399: Remove UNIX socket from FS before binding. Patch by Коренберг
  4937. Марк.
  4938. - bpo-27972: Prohibit Tasks to await on themselves.
  4939. - bpo-24142: Reading a corrupt config file left configparser in an invalid
  4940. state. Original patch by Florian Höch.
  4941. - bpo-29581: ABCMeta.__new__ now accepts ``**kwargs``, allowing abstract
  4942. base classes to use keyword parameters in __init_subclass__. Patch by Nate
  4943. Soares.
  4944. - bpo-25532: inspect.unwrap() will now only try to unwrap an object
  4945. sys.getrecursionlimit() times, to protect against objects which create a
  4946. new object on every attribute access.
  4947. - bpo-30177: path.resolve(strict=False) no longer cuts the path after the
  4948. first element not present in the filesystem. Patch by Antoine Pietri.
  4949. Documentation
  4950. -------------
  4951. - bpo-31294: Fix incomplete code snippet in the ZeroMQSocketListener and
  4952. ZeroMQSocketHandler examples and adapt them to Python 3.
  4953. - bpo-21649: Add RFC 7525 and Mozilla server side TLS links to SSL
  4954. documentation.
  4955. - bpo-31128: Allow the pydoc server to bind to arbitrary hostnames.
  4956. - bpo-30803: Clarify doc on truth value testing. Original patch by Peter
  4957. Thomassen.
  4958. - bpo-30176: Add missing attribute related constants in curses
  4959. documentation.
  4960. - bpo-30052: the link targets for :func:`bytes` and :func:`bytearray` are
  4961. now their respective type definitions, rather than the corresponding
  4962. builtin function entries. Use :ref:`bytes <func-bytes>` and
  4963. :ref:`bytearray <func-bytearray>` to reference the latter.
  4964. In order to ensure this and future cross-reference updates are applied
  4965. automatically, the daily documentation builds now disable the default
  4966. output caching features in Sphinx.
  4967. - bpo-26985: Add missing info of code object in inspect documentation.
  4968. - bpo-19824: Improve the documentation for, and links to, template strings
  4969. by emphasizing their utility for internationalization, and by clarifying
  4970. some usage constraints. (See also: bpo-20314, bpo-12518)
  4971. - bpo-28929: Link the documentation to its source file on GitHub.
  4972. - bpo-25008: Document smtpd.py as effectively deprecated and add a pointer
  4973. to aiosmtpd, a third-party asyncio-based replacement.
  4974. - bpo-26355: Add canonical header link on each page to corresponding major
  4975. version of the documentation. Patch by Matthias Bussonnier.
  4976. - bpo-29349: Fix Python 2 syntax in code for building the documentation.
  4977. - bpo-23722: The data model reference and the porting section in the 3.6
  4978. What's New guide now cover the additional ``__classcell__`` handling
  4979. needed for custom metaclasses to fully support PEP 487 and zero-argument
  4980. ``super()``.
  4981. - bpo-28513: Documented command-line interface of zipfile.
  4982. Tests
  4983. -----
  4984. - bpo-29639: test.support.HOST is now "localhost", a new HOSTv4 constant has
  4985. been added for your ``127.0.0.1`` needs, similar to the existing HOSTv6
  4986. constant.
  4987. - bpo-31320: Silence traceback in test_ssl
  4988. - bpo-31346: Prefer PROTOCOL_TLS_CLIENT and PROTOCOL_TLS_SERVER protocols
  4989. for SSLContext.
  4990. - bpo-25674: Remove sha256.tbs-internet.com ssl test
  4991. - bpo-30715: Address ALPN callback changes for OpenSSL 1.1.0f. The latest
  4992. version behaves like OpenSSL 1.0.2 and no longer aborts handshake.
  4993. - bpo-30822: regrtest: Exclude tzdata from regrtest --all. When running the
  4994. test suite using --use=all / -u all, exclude tzdata since it makes
  4995. test_datetime too slow (15-20 min on some buildbots) which then times out
  4996. on some buildbots. Fix also regrtest command line parser to allow passing
  4997. -u extralargefile to run test_zipfile64.
  4998. - bpo-30695: Add the `set_nomemory(start, stop)` and `remove_mem_hooks()`
  4999. functions to the _testcapi module.
  5000. - bpo-30357: test_thread: setUp() now uses support.threading_setup() and
  5001. support.threading_cleanup() to wait until threads complete to avoid random
  5002. side effects on following tests. Initial patch written by Grzegorz
  5003. Grzywacz.
  5004. - bpo-30197: Enhanced functions swap_attr() and swap_item() in the
  5005. test.support module. They now work when delete replaced attribute or item
  5006. inside the with statement. The old value of the attribute or item (or
  5007. None if it doesn't exist) now will be assigned to the target of the "as"
  5008. clause, if there is one.
  5009. - bpo-24932: Use proper command line parsing in _testembed
  5010. - bpo-28950: Disallow -j0 to be combined with -T/-l in regrtest command line
  5011. arguments.
  5012. - bpo-28683: Fix the tests that bind() a unix socket and raise
  5013. PermissionError on Android for a non-root user.
  5014. - bpo-26936: Fix the test_socket failures on Android - getservbyname(),
  5015. getservbyport() and getaddrinfo() are broken on some Android API levels.
  5016. - bpo-28666: Now test.support.rmtree is able to remove unwritable or
  5017. unreadable directories.
  5018. - bpo-23839: Various caches now are cleared before running every test file.
  5019. - bpo-26944: Fix test_posix for Android where 'id -G' is entirely wrong or
  5020. missing the effective gid.
  5021. - bpo-28409: regrtest: fix the parser of command line arguments.
  5022. - bpo-28217: Adds _testconsole module to test console input.
  5023. - bpo-26939: Add the support.setswitchinterval() function to fix
  5024. test_functools hanging on the Android armv7 qemu emulator.
  5025. Build
  5026. -----
  5027. - bpo-31354: Allow --with-lto to be used on all builds, not just `make
  5028. profile-opt`.
  5029. - bpo-31370: Remove support for building --without-threads.
  5030. This option is not really useful anymore in the 21st century. Removing
  5031. lots of conditional paths allows us to simplify the code base, including
  5032. in difficult to maintain low-level internal code.
  5033. - bpo-31341: Per PEP 11, support for the IRIX operating system was removed.
  5034. - bpo-30854: Fix compile error when compiling --without-threads. Patch by
  5035. Masayuki Yamamoto.
  5036. - bpo-30687: Locate msbuild.exe on Windows when building rather than
  5037. vcvarsall.bat
  5038. - bpo-20210: Support the *disabled* marker in Setup files. Extension modules
  5039. listed after this marker are not built at all, neither by the Makefile nor
  5040. by setup.py.
  5041. - bpo-29941: Add ``--with-assertions`` configure flag to explicitly enable C
  5042. ``assert()`` checks. Defaults to off. ``--with-pydebug`` implies
  5043. ``--with-assertions``.
  5044. - bpo-28787: Fix out-of-tree builds of Python when configured with
  5045. ``--with--dtrace``.
  5046. - bpo-29243: Prevent unnecessary rebuilding of Python during ``make test``,
  5047. ``make install`` and some other make targets when configured with
  5048. ``--enable-optimizations``.
  5049. - bpo-23404: Don't regenerate generated files based on file modification
  5050. time anymore: the action is now explicit. Replace ``make touch`` with
  5051. ``make regen-all``.
  5052. - bpo-29643: Fix ``--enable-optimization`` didn't work.
  5053. - bpo-27593: sys.version and the platform module python_build(),
  5054. python_branch(), and python_revision() functions now use git information
  5055. rather than hg when building from a repo.
  5056. - bpo-29572: Update Windows build and OS X installers to use OpenSSL 1.0.2k.
  5057. - bpo-27659: Prohibit implicit C function declarations: use
  5058. ``-Werror=implicit-function-declaration`` when possible (GCC and Clang,
  5059. but it depends on the compiler version). Patch written by Chi Hsuan Yen.
  5060. - bpo-29384: Remove old Be OS helper scripts.
  5061. - bpo-26851: Set Android compilation and link flags.
  5062. - bpo-28768: Fix implicit declaration of function _setmode. Patch by
  5063. Masayuki Yamamoto
  5064. - bpo-29080: Removes hard dependency on hg.exe from PCBuild/build.bat
  5065. - bpo-23903: Added missed names to PC/python3.def.
  5066. - bpo-28762: lockf() is available on Android API level 24, but the F_LOCK
  5067. macro is not defined in android-ndk-r13.
  5068. - bpo-28538: Fix the compilation error that occurs because if_nameindex() is
  5069. available on Android API level 24, but the if_nameindex structure is not
  5070. defined.
  5071. - bpo-20211: Do not add the directory for installing C header files and the
  5072. directory for installing object code libraries to the cross compilation
  5073. search paths. Original patch by Thomas Petazzoni.
  5074. - bpo-28849: Do not define sys.implementation._multiarch on Android.
  5075. - bpo-10656: Fix out-of-tree building on AIX. Patch by Tristan Carel and
  5076. Michael Haubenwallner.
  5077. - bpo-26359: Rename --with-optimiations to --enable-optimizations.
  5078. - bpo-28444: Fix missing extensions modules when cross compiling.
  5079. - bpo-28208: Update Windows build and OS X installers to use SQLite 3.14.2.
  5080. - bpo-28248: Update Windows build and OS X installers to use OpenSSL 1.0.2j.
  5081. - bpo-21124: Fix building the _struct module on Cygwin by passing ``NULL``
  5082. instead of ``&PyType_Type`` to PyVarObject_HEAD_INIT. Patch by Masayuki
  5083. Yamamoto.
  5084. - bpo-13756: Fix building extensions modules on Cygwin. Patch by Roumen
  5085. Petrov, based on original patch by Jason Tishler.
  5086. - bpo-21085: Add configure check for siginfo_t.si_band, which Cygwin does
  5087. not provide. Patch by Masayuki Yamamoto with review and rebase by Erik
  5088. Bray.
  5089. - bpo-28258: Fixed build with Estonian locale (python-config and distclean
  5090. targets in Makefile). Patch by Arfrever Frehtes Taifersar Arahesis.
  5091. - bpo-26661: setup.py now detects system libffi with multiarch wrapper.
  5092. - bpo-27979: A full copy of libffi is no longer bundled for use when
  5093. building _ctypes on non-OSX UNIX platforms. An installed copy of libffi
  5094. is now required when building _ctypes on such platforms.
  5095. - bpo-15819: Remove redundant include search directory option for building
  5096. outside the source tree.
  5097. - bpo-28676: Prevent missing 'getentropy' declaration warning on macOS.
  5098. Patch by Gareth Rees.
  5099. Windows
  5100. -------
  5101. - bpo-31392: Update Windows build to use OpenSSL 1.1.0f
  5102. - bpo-30389: Adds detection of Visual Studio 2017 to distutils on Windows.
  5103. - bpo-31358: zlib is no longer bundled in the CPython source, instead it is
  5104. downloaded on demand just like bz2, lzma, OpenSSL, Tcl/Tk, and SQLite.
  5105. - bpo-31340: Change to building with MSVC v141 (included with Visual Studio
  5106. 2017)
  5107. - bpo-30581: os.cpu_count() now returns the correct number of processors on
  5108. Windows when the number of logical processors is greater than 64.
  5109. - bpo-30916: Pre-build OpenSSL, Tcl and Tk and include the binaries in the
  5110. build.
  5111. - bpo-30731: Add a missing xmlns to python.manifest so that it matches the
  5112. schema.
  5113. - bpo-30291: Allow requiring 64-bit interpreters from py.exe using -64
  5114. suffix. Contributed by Steve (Gadget) Barnes.
  5115. - bpo-30362: Adds list options (-0, -0p) to py.exe launcher. Contributed by
  5116. Steve Barnes.
  5117. - bpo-23451: Fix socket deprecation warnings in socketmodule.c. Patch by
  5118. Segev Finer.
  5119. - bpo-30450: The build process on Windows no longer depends on Subversion,
  5120. instead pulling external code from GitHub via a Python script. If Python
  5121. 3.6 is not found on the system (via ``py -3.6``), NuGet is used to
  5122. download a copy of 32-bit Python.
  5123. - bpo-29579: Removes readme.txt from the installer.
  5124. - bpo-25778: winreg does not truncate string correctly (Patch by Eryk Sun)
  5125. - bpo-28896: Deprecate WindowsRegistryFinder and disable it by default
  5126. - bpo-28522: Fixes mishandled buffer reallocation in getpathp.c
  5127. - bpo-28402: Adds signed catalog files for stdlib on Windows.
  5128. - bpo-28333: Enables Unicode for ps1/ps2 and input() prompts. (Patch by Eryk
  5129. Sun)
  5130. - bpo-28251: Improvements to help manuals on Windows.
  5131. - bpo-28110: launcher.msi has different product codes between 32-bit and
  5132. 64-bit
  5133. - bpo-28161: Opening CON for write access fails
  5134. - bpo-28162: WindowsConsoleIO readall() fails if first line starts with
  5135. Ctrl+Z
  5136. - bpo-28163: WindowsConsoleIO fileno() passes wrong flags to _open_osfhandle
  5137. - bpo-28164: _PyIO_get_console_type fails for various paths
  5138. - bpo-28137: Renames Windows path file to ._pth
  5139. - bpo-28138: Windows ._pth file should allow import site
  5140. IDLE
  5141. ----
  5142. - bpo-31493: IDLE code context -- fix code update and font update timers.
  5143. Canceling timers prevents a warning message when test_idle completes.
  5144. - bpo-31488: IDLE - Update non-key options in former extension classes. When
  5145. applying configdialog changes, call .reload for each feature class. Change
  5146. ParenMatch so updated options affect existing instances attached to
  5147. existing editor windows.
  5148. - bpo-31477: IDLE - Improve rstrip entry in doc. Strip trailing whitespace
  5149. strips more than blank spaces. Multiline string literals are not skipped.
  5150. - bpo-31480: IDLE - make tests pass with zzdummy extension disabled by
  5151. default.
  5152. - bpo-31421: Document how IDLE runs tkinter programs. IDLE calls tcl/tk
  5153. update in the background in order to make live
  5154. interaction and experimentation with tkinter applications much easier.
  5155. - bpo-31414: IDLE -- fix tk entry box tests by deleting first. Adding to an
  5156. int entry is not the same as deleting and inserting because int('') will
  5157. fail.
  5158. - bpo-31051: Rearrange IDLE configdialog GenPage into Window, Editor, and
  5159. Help sections.
  5160. - bpo-30617: IDLE - Add docstrings and tests for outwin subclass of editor.
  5161. Move some data and functions from the class to module level. Patch by
  5162. Cheryl Sabella.
  5163. - bpo-31287: IDLE - Do not modify tkinter.message in test_configdialog.
  5164. - bpo-27099: Convert IDLE's built-in 'extensions' to regular features.
  5165. About 10 IDLE features were implemented as supposedly optional extensions.
  5166. Their different behavior could be confusing or worse for users and not
  5167. good for maintenance. Hence the conversion.
  5168. The main difference for users is that user configurable key bindings for
  5169. builtin features are now handled uniformly. Now, editing a binding in a
  5170. keyset only affects its value in the keyset. All bindings are defined
  5171. together in the system-specific default keysets in config-extensions.def.
  5172. All custom keysets are saved as a whole in config-extension.cfg. All take
  5173. effect as soon as one clicks Apply or Ok.
  5174. The affected events are '<<force-open-completions>>', '<<expand-word>>',
  5175. '<<force-open-calltip>>', '<<flash-paren>>', '<<format-paragraph>>',
  5176. '<<run-module>>', '<<check-module>>', and '<<zoom-height>>'. Any (global)
  5177. customizations made before 3.6.3 will not affect their keyset-specific
  5178. customization after 3.6.3. and vice versa.
  5179. Initial patch by Charles Wohlganger.
  5180. - bpo-31206: IDLE: Factor HighPage(Frame) class from ConfigDialog. Patch by
  5181. Cheryl Sabella.
  5182. - bpo-31001: Add tests for configdialog highlight tab. Patch by Cheryl
  5183. Sabella.
  5184. - bpo-31205: IDLE: Factor KeysPage(Frame) class from ConfigDialog. The
  5185. slightly modified tests continue to pass. Patch by Cheryl Sabella.
  5186. - bpo-31130: IDLE -- stop leaks in test_configdialog. Initial patch by
  5187. Victor Stinner.
  5188. - bpo-31002: Add tests for configdialog keys tab. Patch by Cheryl Sabella.
  5189. - bpo-19903: IDLE: Calltips use `inspect.signature` instead of
  5190. `inspect.getfullargspec`. This improves calltips for builtins converted to
  5191. use Argument Clinic. Patch by Louie Lu.
  5192. - bpo-31083: IDLE - Add an outline of a TabPage class in configdialog.
  5193. Update existing classes to match outline. Initial patch by Cheryl Sabella.
  5194. - bpo-31050: Factor GenPage(Frame) class from ConfigDialog. The slightly
  5195. modified tests continue to pass. Patch by Cheryl Sabella.
  5196. - bpo-31004: IDLE - Factor FontPage(Frame) class from ConfigDialog.
  5197. Slightly modified tests continue to pass. Fix General tests. Patch mostly
  5198. by Cheryl Sabella.
  5199. - bpo-30781: IDLE - Use ttk widgets in ConfigDialog. Patches by Terry Jan
  5200. Reedy and Cheryl Sabella.
  5201. - bpo-31060: IDLE - Finish rearranging methods of ConfigDialog Grouping
  5202. methods pertaining to each tab and the buttons will aid writing tests and
  5203. improving the tabs and will enable splitting the groups into classes.
  5204. - bpo-30853: IDLE -- Factor a VarTrace class out of ConfigDialog.
  5205. Instance tracers manages pairs consisting of a tk variable and a callback
  5206. function. When tracing is turned on, setting the variable calls the
  5207. function. Test coverage for the new class is 100%.
  5208. - bpo-31003: IDLE: Add more tests for General tab.
  5209. - bpo-30993: IDLE - Improve configdialog font page and tests.
  5210. In configdialog: Document causal pathways in create_font_tab docstring.
  5211. Simplify some attribute names. Move set_samples calls to var_changed_font
  5212. (idea from Cheryl Sabella). Move related functions to positions after the
  5213. create widgets function.
  5214. In test_configdialog: Fix test_font_set so not order dependent. Fix
  5215. renamed test_indent_scale so it tests the widget. Adjust tests for
  5216. movement of set_samples call. Add tests for load functions. Put all font
  5217. tests in one class and tab indent tests in another. Except for two lines,
  5218. these tests completely cover the related functions.
  5219. - bpo-30981: IDLE -- Add more configdialog font page tests.
  5220. - bpo-28523: IDLE: replace 'colour' with 'color' in configdialog.
  5221. - bpo-30917: Add tests for idlelib.config.IdleConf. Increase coverage from
  5222. 46% to 96%. Patch by Louie Lu.
  5223. - bpo-30934: Document coverage details for idlelib tests.
  5224. * Add section to idlelib/idle-test/README.txt.
  5225. * Include check that branches are taken both ways.
  5226. * Exclude IDLE-specific code that does not run during unit tests.
  5227. - bpo-30913: IDLE: Document ConfigDialog tk Vars, methods, and widgets in
  5228. docstrings This will facilitate improving the dialog and splitting up the
  5229. class. Original patch by Cheryl Sabella.
  5230. - bpo-30899: IDLE: Add tests for ConfigParser subclasses in config. Patch by
  5231. Louie Lu.
  5232. - bpo-30881: IDLE: Add docstrings to browser.py. Patch by Cheryl Sabella.
  5233. - bpo-30851: IDLE: Remove unused variables in configdialog. One is a
  5234. duplicate, one is set but cannot be altered by users. Patch by Cheryl
  5235. Sabella.
  5236. - bpo-30870: IDLE: In Settings dialog, select font with Up, Down keys as
  5237. well as mouse. Initial patch by Louie Lu.
  5238. - bpo-8231: IDLE: call config.IdleConf.GetUserCfgDir only once.
  5239. - bpo-30779: IDLE: Factor ConfigChanges class from configdialog, put in
  5240. config; test. * In config, put dump test code in a function; run it and
  5241. unittest in 'if __name__ == '__main__'. * Add class config.ConfigChanges
  5242. based on changes_class_v4.py on bpo issue. * Add class
  5243. test_config.ChangesTest, partly using configdialog_tests_v1.py. * Revise
  5244. configdialog to use ConfigChanges; see tracker msg297804. * Revise
  5245. test_configdialog to match configdialog changes. * Remove configdialog
  5246. functions unused or moved to ConfigChanges. Cheryl Sabella contributed
  5247. parts of the patch.
  5248. - bpo-30777: IDLE: configdialog - Add docstrings and fix comments. Patch by
  5249. Cheryl Sabella.
  5250. - bpo-30495: IDLE: Improve textview with docstrings, PEP8 names, and more
  5251. tests. Patch by Cheryl Sabella.
  5252. - bpo-30723: IDLE: Make several improvements to parenmatch. Add 'parens'
  5253. style to highlight both opener and closer. Make 'default' style, which is
  5254. not default, a synonym for 'opener'. Make time-delay work the same with
  5255. all styles. Add help for config dialog extensions tab, including help for
  5256. parenmatch. Add new tests. Original patch by Charles Wohlganger.
  5257. - bpo-30674: IDLE: add docstrings to grep module. Patch by Cheryl Sabella
  5258. - bpo-21519: IDLE's basic custom key entry dialog now detects duplicates
  5259. properly. Original patch by Saimadhav Heblikar.
  5260. - bpo-29910: IDLE no longer deletes a character after commenting out a
  5261. region by a key shortcut. Add ``return 'break'`` for this and other
  5262. potential conflicts between IDLE and default key bindings.
  5263. - bpo-30728: Review and change idlelib.configdialog names. Lowercase method
  5264. and attribute names. Replace 'colour' with 'color', expand overly cryptic
  5265. names, delete unneeded underscores. Replace ``import *`` with specific
  5266. imports. Patches by Cheryl Sabella.
  5267. - bpo-6739: IDLE: Verify user-entered key sequences by trying to bind them
  5268. with tk. Add tests for all 3 validation functions. Original patch by G
  5269. Polo. Tests added by Cheryl Sabella.
  5270. - bpo-15786: Fix several problems with IDLE's autocompletion box. The
  5271. following should now work: clicking on selection box items; using the
  5272. scrollbar; selecting an item by hitting Return. Hangs on MacOSX should no
  5273. longer happen. Patch by Louie Lu.
  5274. - bpo-25514: Add doc subsubsection about IDLE failure to start. Popup
  5275. no-connection message directs users to this section.
  5276. - bpo-30642: Fix reference leaks in IDLE tests. Patches by Louie Lu and
  5277. Terry Jan Reedy.
  5278. - bpo-30495: Add docstrings for textview.py and use PEP8 names. Patches by
  5279. Cheryl Sabella and Terry Jan Reedy.
  5280. - bpo-30290: Help-about: use pep8 names and add tests. Increase coverage to
  5281. 100%. Patches by Louie Lu, Cheryl Sabella, and Terry Jan Reedy.
  5282. - bpo-30303: Add _utest option to textview; add new tests. Increase coverage
  5283. to 100%. Patches by Louie Lu and Terry Jan Reedy.
  5284. - bpo-29071: IDLE colors f-string prefixes (but not invalid ur prefixes).
  5285. - bpo-28572: Add 10% to coverage of IDLE's test_configdialog. Update and
  5286. augment description of the configuration system.
  5287. Tools/Demos
  5288. -----------
  5289. - bpo-30983: gdb integration commands (py-bt, etc.) work on optimized shared
  5290. builds now, too. PEP 523 introduced _PyEval_EvalFrameDefault which
  5291. inlines PyEval_EvalFrameEx on non-debug shared builds. This broke the
  5292. ability to use py-bt, py-up, and a few other Python-specific gdb
  5293. integrations. The problem is fixed by only looking for
  5294. _PyEval_EvalFrameDefault frames in python-gdb.py. Original patch by Bruno
  5295. "Polaco" Penteado.
  5296. - bpo-29748: Added the slice index converter in Argument Clinic.
  5297. - bpo-24037: Argument Clinic now uses the converter `bool(accept={int})`
  5298. rather than `int` for semantical booleans. This avoids repeating the
  5299. default value for Python and C and will help in converting to `bool` in
  5300. future.
  5301. - bpo-29367: python-gdb.py now supports also ``method-wrapper``
  5302. (``wrapperobject``) objects.
  5303. - bpo-28023: Fix python-gdb.py didn't support new dict implementation.
  5304. - bpo-15369: The pybench and pystone microbenchmark have been removed from
  5305. Tools. Please use the new Python benchmark suite
  5306. https://github.com/python/performance which is more reliable and includes
  5307. a portable version of pybench working on Python 2 and Python 3.
  5308. - bpo-28102: The zipfile module CLI now prints usage to stderr. Patch by
  5309. Stephen J. Turnbull.
  5310. C API
  5311. -----
  5312. - bpo-31338: Added the ``Py_UNREACHABLE()`` macro for code paths which are
  5313. never expected to be reached. This and a few other useful macros are now
  5314. documented in the C API manual.
  5315. - bpo-30832: Remove own implementation for thread-local storage.
  5316. CPython has provided the own implementation for thread-local storage (TLS)
  5317. on Python/thread.c, it's used in the case which a platform has not
  5318. supplied native TLS. However, currently all supported platforms (Windows
  5319. and pthreads) have provided native TLS and defined the Py_HAVE_NATIVE_TLS
  5320. macro with unconditional in any case.
  5321. - bpo-30708: PyUnicode_AsWideCharString() now raises a ValueError if the
  5322. second argument is NULL and the wchar_t\* string contains null characters.
  5323. - bpo-16500: Deprecate PyOS_AfterFork() and add PyOS_BeforeFork(),
  5324. PyOS_AfterFork_Parent() and PyOS_AfterFork_Child().
  5325. - bpo-6532: The type of results of PyThread_start_new_thread() and
  5326. PyThread_get_thread_ident(), and the id parameter of
  5327. PyThreadState_SetAsyncExc() changed from "long" to "unsigned long".
  5328. - bpo-27867: Function PySlice_GetIndicesEx() is deprecated and replaced with
  5329. a macro if Py_LIMITED_API is not set or set to the value between
  5330. 0x03050400 and 0x03060000 (not including) or 0x03060100 or higher. Added
  5331. functions PySlice_Unpack() and PySlice_AdjustIndices().
  5332. - bpo-29083: Fixed the declaration of some public API functions.
  5333. PyArg_VaParse() and PyArg_VaParseTupleAndKeywords() were not available in
  5334. limited API. PyArg_ValidateKeywordArguments(), PyArg_UnpackTuple() and
  5335. Py_BuildValue() were not available in limited API of version < 3.3 when
  5336. PY_SSIZE_T_CLEAN is defined.
  5337. - bpo-28769: The result of PyUnicode_AsUTF8AndSize() and PyUnicode_AsUTF8()
  5338. is now of type ``const char *`` rather of ``char *``.
  5339. - bpo-29058: All stable API extensions added after Python 3.2 are now
  5340. available only when Py_LIMITED_API is set to the PY_VERSION_HEX value of
  5341. the minimum Python version supporting this API.
  5342. - bpo-28822: The index parameters *start* and *end* of PyUnicode_FindChar()
  5343. are now adjusted to behave like ``str[start:end]``.
  5344. - bpo-28808: PyUnicode_CompareWithASCIIString() now never raises exceptions.
  5345. - bpo-28761: The fields name and doc of structures PyMemberDef, PyGetSetDef,
  5346. PyStructSequence_Field, PyStructSequence_Desc, and wrapperbase are now of
  5347. type ``const char *`` rather of ``char *``.
  5348. - bpo-28748: Private variable _Py_PackageContext is now of type ``const char
  5349. *`` rather of ``char *``.
  5350. - bpo-19569: Compiler warnings are now emitted if use most of deprecated
  5351. functions.
  5352. - bpo-28426: Deprecated undocumented functions PyUnicode_AsEncodedObject(),
  5353. PyUnicode_AsDecodedObject(), PyUnicode_AsDecodedUnicode() and
  5354. PyUnicode_AsEncodedUnicode().
  5355. What's New in Python 3.6.6 final?
  5356. =================================
  5357. *Release date: 2018-06-27*
  5358. There were no new changes in version 3.6.6.
  5359. What's New in Python 3.6.6 release candidate 1?
  5360. ===============================================
  5361. *Release date: 2018-06-11*
  5362. Core and Builtins
  5363. -----------------
  5364. - bpo-33786: Fix asynchronous generators to handle GeneratorExit in athrow()
  5365. correctly
  5366. - bpo-30654: Fixed reset of the SIGINT handler to SIG_DFL on interpreter
  5367. shutdown even when there was a custom handler set previously. Patch by
  5368. Philipp Kerling.
  5369. - bpo-33622: Fixed a leak when the garbage collector fails to add an object
  5370. with the ``__del__`` method or referenced by it into the
  5371. :data:`gc.garbage` list. :c:func:`PyGC_Collect` can now be called when an
  5372. exception is set and preserves it.
  5373. - bpo-31849: Fix signed/unsigned comparison warning in pyhash.c.
  5374. - bpo-33391: Fix a leak in set_symmetric_difference().
  5375. - bpo-28055: Fix unaligned accesses in siphash24(). Patch by Rolf Eike Beer.
  5376. - bpo-33231: Fix potential memory leak in ``normalizestring()``.
  5377. - bpo-29922: Improved error messages in 'async with' when ``__aenter__()``
  5378. or ``__aexit__()`` return non-awaitable object.
  5379. - bpo-33199: Fix ``ma_version_tag`` in dict implementation is uninitialized
  5380. when copying from key-sharing dict.
  5381. - bpo-33041: Fixed jumping when the function contains an ``async for`` loop.
  5382. - bpo-32282: Fix an unnecessary ifdef in the include of VersionHelpers.h in
  5383. socketmodule on Windows.
  5384. - bpo-21983: Fix a crash in `ctypes.cast()` in case the type argument is a
  5385. ctypes structured data type. Patch by Eryk Sun and Oren Milman.
  5386. Library
  5387. -------
  5388. - bpo-30167: Prevent site.main() exception if PYTHONSTARTUP is set. Patch by
  5389. Steve Weber.
  5390. - bpo-33812: Datetime instance d with non-None tzinfo, but with
  5391. d.tzinfo.utcoffset(d) returning None is now treated as naive by the
  5392. astimezone() method.
  5393. - bpo-30805: Avoid race condition with debug logging
  5394. - bpo-33767: The concatenation (``+``) and repetition (``*``) sequence
  5395. operations now raise :exc:`TypeError` instead of :exc:`SystemError` when
  5396. performed on :class:`mmap.mmap` objects. Patch by Zackery Spytz.
  5397. - bpo-32684: Fix gather to propagate cancellation of itself even with
  5398. return_exceptions.
  5399. - bpo-33674: Fix a race condition in SSLProtocol.connection_made() of
  5400. asyncio.sslproto: start immediately the handshake instead of using
  5401. call_soon(). Previously, data_received() could be called before the
  5402. handshake started, causing the handshake to hang or fail.
  5403. - bpo-31647: Fixed bug where calling write_eof() on a
  5404. _SelectorSocketTransport after it's already closed raises AttributeError.
  5405. - bpo-33672: Fix Task.__repr__ crash with Cython's bogus coroutines
  5406. - bpo-33469: Fix RuntimeError after closing loop that used run_in_executor
  5407. - bpo-11874: Use a better regex when breaking usage into wrappable parts.
  5408. Avoids bogus assertion errors from custom metavar strings.
  5409. - bpo-30877: Fixed a bug in the Python implementation of the JSON decoder
  5410. that prevented the cache of parsed strings from clearing after finishing
  5411. the decoding. Based on patch by c-fos.
  5412. - bpo-33548: tempfile._candidate_tempdir_list should consider common TEMP
  5413. locations
  5414. - bpo-33542: Prevent ``uuid.get_node`` from using a DUID instead of a MAC on
  5415. Windows. Patch by Zvi Effron
  5416. - bpo-26819: Fix race condition with `ReadTransport.resume_reading` in
  5417. Windows proactor event loop.
  5418. - bpo-28556: Minor fixes in typing module: add annotations to
  5419. ``NamedTuple.__new__``, pass ``*args`` and ``**kwds`` in
  5420. ``Generic.__new__``. Original PRs by Paulius Šarka and Chad Dombrova.
  5421. - bpo-20087: Updated alias mapping with glibc 2.27 supported locales.
  5422. - bpo-33422: Fix trailing quotation marks getting deleted when looking up
  5423. byte/string literals on pydoc. Patch by Andrés Delfino.
  5424. - bpo-33197: Update error message when constructing invalid
  5425. inspect.Parameters Patch by Dong-hee Na.
  5426. - bpo-33383: Fixed crash in the get() method of the :mod:`dbm.ndbm` database
  5427. object when it is called with a single argument.
  5428. - bpo-33329: Fix multiprocessing regression on newer glibcs
  5429. - bpo-991266: Fix quoting of the ``Comment`` attribute of
  5430. :class:`http.cookies.SimpleCookie`.
  5431. - bpo-33131: Upgrade bundled version of pip to 10.0.1.
  5432. - bpo-33308: Fixed a crash in the :mod:`parser` module when converting an ST
  5433. object to a tree of tuples or lists with ``line_info=False`` and
  5434. ``col_info=True``.
  5435. - bpo-33263: Fix FD leak in `_SelectorSocketTransport` Patch by Vlad
  5436. Starostin.
  5437. - bpo-33256: Fix display of ``<module>`` call in the html produced by
  5438. ``cgitb.html()``. Patch by Stéphane Blondon.
  5439. - bpo-33203: ``random.Random.choice()`` now raises ``IndexError`` for empty
  5440. sequences consistently even when called from subclasses without a
  5441. ``getrandbits()`` implementation.
  5442. - bpo-33224: Update difflib.mdiff() for PEP 479. Convert an uncaught
  5443. StopIteration in a generator into a return-statement.
  5444. - bpo-33209: End framing at the end of C implementation of
  5445. :func:`pickle.Pickler.dump`.
  5446. - bpo-32861: The urllib.robotparser's ``__str__`` representation now
  5447. includes wildcard entries and the "Crawl-delay" and "Request-rate" fields.
  5448. Patch by Michael Lazar.
  5449. - bpo-33096: Allow ttk.Treeview.insert to insert iid that has a false
  5450. boolean value. Note iid=0 and iid=False would be same. Patch by Garvit
  5451. Khatri.
  5452. - bpo-33127: The ssl module now compiles with LibreSSL 2.7.1.
  5453. - bpo-33021: Release the GIL during fstat() calls, avoiding hang of all
  5454. threads when calling mmap.mmap(), os.urandom(), and random.seed(). Patch
  5455. by Nir Soffer.
  5456. - bpo-27683: Fix a regression in :mod:`ipaddress` that result of
  5457. :meth:`hosts` is empty when the network is constructed by a tuple
  5458. containing an integer mask and only 1 bit left for addresses.
  5459. - bpo-32844: Fix wrong redirection of a low descriptor (0 or 1) to stderr in
  5460. subprocess if another low descriptor is closed.
  5461. - bpo-31908: Fix output of cover files for ``trace`` module command-line
  5462. tool. Previously emitted cover files only when ``--missing`` option was
  5463. used. Patch by Michael Selik.
  5464. - bpo-31457: If nested log adapters are used, the inner ``process()``
  5465. methods are no longer omitted.
  5466. - bpo-16865: Support arrays >=2GiB in :mod:`ctypes`. Patch by Segev Finer.
  5467. - bpo-31238: pydoc: the stop() method of the private ServerThread class now
  5468. waits until DocServer.serve_until_quit() completes and then explicitly
  5469. sets its docserver attribute to None to break a reference cycle.
  5470. Documentation
  5471. -------------
  5472. - bpo-33503: Fix broken pypi link
  5473. - bpo-33421: Add missing documentation for ``typing.AsyncContextManager``.
  5474. - bpo-33378: Add Korean language switcher for https://docs.python.org/3/
  5475. - bpo-33276: Clarify that the ``__path__`` attribute on modules cannot be
  5476. just any value.
  5477. - bpo-33201: Modernize documentation for writing C extension types.
  5478. - bpo-33195: Deprecate ``Py_UNICODE`` usage in ``c-api/arg`` document.
  5479. ``Py_UNICODE`` related APIs are deprecated since Python 3.3, but it is
  5480. missed in the document.
  5481. - bpo-33126: Document PyBuffer_ToContiguous().
  5482. - bpo-27212: Modify documentation for the :func:`islice` recipe to consume
  5483. initial values up to the start index.
  5484. - bpo-28247: Update :mod:`zipapp` documentation to describe how to make
  5485. standalone applications.
  5486. - bpo-18802: Documentation changes for ipaddress. Patch by Jon Foster and
  5487. Berker Peksag.
  5488. - bpo-27428: Update documentation to clarify that ``WindowsRegistryFinder``
  5489. implements ``MetaPathFinder``. (Patch by Himanshu Lakhara)
  5490. - bpo-8243: Add a note about curses.addch and curses.addstr exception
  5491. behavior when writing outside a window, or pad.
  5492. - bpo-31432: Clarify meaning of CERT_NONE, CERT_OPTIONAL, and CERT_REQUIRED
  5493. flags for ssl.SSLContext.verify_mode.
  5494. Tests
  5495. -----
  5496. - bpo-33655: Ignore test_posix_fallocate failures on BSD platforms that
  5497. might be due to running on ZFS.
  5498. - bpo-19417: Add test_bdb.py.
  5499. Build
  5500. -----
  5501. - bpo-5755: Move ``-Wstrict-prototypes`` option to ``CFLAGS_NODIST`` from
  5502. ``OPT``. This option emitted annoying warnings when building extension
  5503. modules written in C++.
  5504. - bpo-33614: Ensures module definition files for the stable ABI on Windows
  5505. are correctly regenerated.
  5506. - bpo-33522: Enable CI builds on Visual Studio Team Services at
  5507. https://python.visualstudio.com/cpython
  5508. - bpo-33012: Add ``-Wno-cast-function-type`` for gcc 8 for silencing
  5509. warnings about function casts like casting to PyCFunction in method
  5510. definition lists.
  5511. - bpo-33394: Enable the verbose build for extension modules, when GNU make
  5512. is passed macros on the command line.
  5513. Windows
  5514. -------
  5515. - bpo-33184: Update Windows installer to OpenSSL 1.0.2o.
  5516. macOS
  5517. -----
  5518. - bpo-33184: Update macOS installer build to use OpenSSL 1.0.2o.
  5519. IDLE
  5520. ----
  5521. - bpo-33656: On Windows, add API call saying that tk scales for DPI. On
  5522. Windows 8.1+ or 10, with DPI compatibility properties of the Python binary
  5523. unchanged, and a monitor resolution greater than 96 DPI, this should make
  5524. text and lines sharper. It should otherwise have no effect.
  5525. - bpo-33768: Clicking on a context line moves that line to the top of the
  5526. editor window.
  5527. - bpo-33763: IDLE: Use read-only text widget for code context instead of
  5528. label widget.
  5529. - bpo-33664: Scroll IDLE editor text by lines. Previously, the mouse wheel
  5530. and scrollbar slider moved text by a fixed number of pixels, resulting in
  5531. partial lines at the top of the editor box. The change also applies to
  5532. the shell and grep output windows, but not to read-only text views.
  5533. - bpo-33679: Enable theme-specific color configuration for Code Context. Use
  5534. the Highlights tab to see the setting for built-in themes or add settings
  5535. to custom themes.
  5536. - bpo-33642: Display up to maxlines non-blank lines for Code Context. If
  5537. there is no current context, show a single blank line.
  5538. - bpo-33628: IDLE: Cleanup codecontext.py and its test.
  5539. - bpo-33564: IDLE's code context now recognizes async as a block opener.
  5540. - bpo-29706: IDLE now colors async and await as keywords in 3.6. They become
  5541. full keywords in 3.7.
  5542. - bpo-21474: Update word/identifier definition from ascii to unicode. In
  5543. text and entry boxes, this affects selection by double-click, movement
  5544. left/right by control-left/right, and deletion left/right by
  5545. control-BACKSPACE/DEL.
  5546. - bpo-33204: IDLE: consistently color invalid string prefixes. A 'u' string
  5547. prefix cannot be paired with either 'r' or 'f'. Consistently color as much
  5548. of the prefix, starting at the right, as is valid. Revise and extend
  5549. colorizer test.
  5550. - bpo-32831: Add docstrings and tests for codecontext.
  5551. Tools/Demos
  5552. -----------
  5553. - bpo-33189: :program:`pygettext.py` now recognizes only literal strings as
  5554. docstrings and translatable strings, and rejects bytes literals and
  5555. f-string expressions.
  5556. - bpo-31920: Fixed handling directories as arguments in the ``pygettext``
  5557. script. Based on patch by Oleg Krasnikov.
  5558. - bpo-29673: Fix pystackv and pystack gdbinit macros.
  5559. - bpo-32885: Add an ``-n`` flag for ``Tools/scripts/pathfix.py`` to disable
  5560. automatic backup creation (files with ``~`` suffix).
  5561. - bpo-31583: Fix 2to3 for using with --add-suffix option but without
  5562. --output-dir option for relative path to files in current directory.
  5563. C API
  5564. -----
  5565. - bpo-32374: Document that m_traverse for multi-phase initialized modules
  5566. can be called with m_state=NULL, and add a sanity check
  5567. What's New in Python 3.6.5 final?
  5568. =================================
  5569. *Release date: 2018-03-28*
  5570. Tests
  5571. -----
  5572. - bpo-32872: Avoid regrtest compatibility issue with namespace packages.
  5573. Build
  5574. -----
  5575. - bpo-33163: Upgrade pip to 9.0.3 and setuptools to v39.0.1.
  5576. What's New in Python 3.6.5 release candidate 1?
  5577. ===============================================
  5578. *Release date: 2018-03-13*
  5579. Security
  5580. --------
  5581. - bpo-33001: Minimal fix to prevent buffer overrun in os.symlink on Windows
  5582. - bpo-32981: Regexes in difflib and poplib were vulnerable to catastrophic
  5583. backtracking. These regexes formed potential DOS vectors (REDOS). They
  5584. have been refactored. This resolves CVE-2018-1060 and CVE-2018-1061. Patch
  5585. by Jamie Davis.
  5586. Core and Builtins
  5587. -----------------
  5588. - bpo-33026: Fixed jumping out of "with" block by setting f_lineno.
  5589. - bpo-17288: Prevent jumps from 'return' and 'exception' trace events.
  5590. - bpo-32889: Update Valgrind suppression list to account for the rename of
  5591. ``Py_ADDRESS_IN_RANG`` to ``address_in_range``.
  5592. - bpo-32650: Pdb and other debuggers dependent on bdb.py will correctly step
  5593. over (next command) native coroutines. Patch by Pablo Galindo.
  5594. - bpo-32685: Improve suggestion when the Python 2 form of print statement is
  5595. either present on the same line as the header of a compound statement or
  5596. else terminated by a semi-colon instead of a newline. Patch by Nitish
  5597. Chandra.
  5598. - bpo-32583: Fix possible crashing in builtin Unicode decoders caused by
  5599. write out-of-bound errors when using customized decode error handlers.
  5600. - bpo-26163: Improved frozenset() hash to create more distinct hash values
  5601. when faced with datasets containing many similar values.
  5602. - bpo-27169: The ``__debug__`` constant is now optimized out at compile
  5603. time. This fixes also bpo-22091.
  5604. - bpo-32329: ``sys.flags.hash_randomization`` is now properly set to 0 when
  5605. hash randomization is turned off by ``PYTHONHASHSEED=0``.
  5606. - bpo-30416: The optimizer is now protected from spending much time doing
  5607. complex calculations and consuming much memory for creating large
  5608. constants in constant folding.
  5609. - bpo-18533: ``repr()`` on a dict containing its own ``values()`` or
  5610. ``items()`` no longer raises ``RecursionError``; OrderedDict similarly.
  5611. Instead, use ``...``, as for other recursive structures. Patch by Ben
  5612. North.
  5613. - bpo-32028: Leading whitespace is now correctly ignored when generating
  5614. suggestions for converting Py2 print statements to Py3 builtin print
  5615. function calls. Patch by Sanyam Khurana.
  5616. - bpo-32137: The repr of deeply nested dict now raises a RecursionError
  5617. instead of crashing due to a stack overflow.
  5618. Library
  5619. -------
  5620. - bpo-33064: lib2to3 now properly supports trailing commas after ``*args``
  5621. and ``**kwargs`` in function signatures.
  5622. - bpo-31804: Avoid failing in multiprocessing.Process if the standard
  5623. streams are closed or None at exit.
  5624. - bpo-33037: Skip sending/receiving data after SSL transport closing.
  5625. - bpo-30353: Fix ctypes pass-by-value for structs on 64-bit Cygwin/MinGW.
  5626. - bpo-33009: Fix inspect.signature() for single-parameter partialmethods.
  5627. - bpo-32969: Expose several missing constants in zlib and fix corresponding
  5628. documentation.
  5629. - bpo-32713: Fixed tarfile.itn handling of out-of-bounds float values. Patch
  5630. by Joffrey Fuhrer.
  5631. - bpo-30622: The ssl module now detects missing NPN support in LibreSSL.
  5632. - bpo-32922: dbm.open() now encodes filename with the filesystem encoding
  5633. rather than default encoding.
  5634. - bpo-32859: In ``os.dup2``, don't check every call whether the ``dup3``
  5635. syscall exists or not.
  5636. - bpo-21060: Rewrite confusing message from setup.py upload from "No dist
  5637. file created in earlier command" to the more helpful "Must create and
  5638. upload files in one command".
  5639. - bpo-32857: In :mod:`tkinter`, ``after_cancel(None)`` now raises a
  5640. :exc:`ValueError` instead of canceling the first scheduled function.
  5641. Patch by Cheryl Sabella.
  5642. - bpo-32852: Make sure sys.argv remains as a list when running trace.
  5643. - bpo-32841: Fixed `asyncio.Condition` issue which silently ignored
  5644. cancellation after notifying and cancelling a conditional lock. Patch by
  5645. Bar Harel.
  5646. - bpo-31787: Fixed refleaks of ``__init__()`` methods in various modules.
  5647. (Contributed by Oren Milman)
  5648. - bpo-30157: Fixed guessing quote and delimiter in csv.Sniffer.sniff() when
  5649. only the last field is quoted. Patch by Jake Davis.
  5650. - bpo-32394: socket: Remove TCP_FASTOPEN, TCP_KEEPCNT flags on older version
  5651. Windows during run-time.
  5652. - bpo-32777: Fix a rare but potential pre-exec child process deadlock in
  5653. subprocess on POSIX systems when marking file descriptors inheritable on
  5654. exec in the child process. This bug appears to have been introduced in
  5655. 3.4.
  5656. - bpo-32647: The ctypes module used to depend on indirect linking for
  5657. dlopen. The shared extension is now explicitly linked against libdl on
  5658. platforms with dl.
  5659. - bpo-32734: Fixed ``asyncio.Lock()`` safety issue which allowed acquiring
  5660. and locking the same lock multiple times, without it being free. Patch by
  5661. Bar Harel.
  5662. - bpo-32727: Do not include name field in SMTP envelope from address. Patch
  5663. by Stéphane Wirtel
  5664. - bpo-27931: Fix email address header parsing error when the username is an
  5665. empty quoted string. Patch by Xiang Zhang.
  5666. - bpo-32304: distutils' upload command no longer corrupts tar files ending
  5667. with a CR byte, and no longer tries to convert CR to CRLF in any of the
  5668. upload text fields.
  5669. - bpo-32502: uuid.uuid1 no longer raises an exception if a 64-bit hardware
  5670. address is encountered.
  5671. - bpo-31848: Fix the error handling in Aifc_read.initfp() when the SSND
  5672. chunk is not found. Patch by Zackery Spytz.
  5673. - bpo-32555: On FreeBSD and Solaris, os.strerror() now always decode the
  5674. byte string from the current locale encoding, rather than using
  5675. ASCII/surrogateescape in some cases.
  5676. - bpo-32521: The nis module is now compatible with new libnsl and headers
  5677. location.
  5678. - bpo-32473: Improve ABCMeta._dump_registry() output readability
  5679. - bpo-32521: glibc has removed Sun RPC. Use replacement libtirpc headers and
  5680. library in nis module.
  5681. - bpo-32228: Ensure that ``truncate()`` preserves the file position (as
  5682. reported by ``tell()``) after writes longer than the buffer size.
  5683. - bpo-26133: Don't unsubscribe signals in asyncio UNIX event loop on
  5684. interpreter shutdown.
  5685. - bpo-32185: The SSL module no longer sends IP addresses in SNI TLS
  5686. extension on platforms with OpenSSL 1.0.2+ or inet_pton.
  5687. - bpo-32323: :func:`urllib.parse.urlsplit()` does not convert zone-id
  5688. (scope) to lower case for scoped IPv6 addresses in hostnames now.
  5689. - bpo-32302: Fix bdist_wininst of distutils for CRT v142: it binary
  5690. compatible with CRT v140.
  5691. - bpo-32255: A single empty field is now always quoted when written into a
  5692. CSV file. This allows to distinguish an empty row from a row consisting of
  5693. a single empty field. Patch by Licht Takeuchi.
  5694. - bpo-32277: Raise ``NotImplementedError`` instead of ``SystemError`` on
  5695. platforms where ``chmod(..., follow_symlinks=False)`` is not supported.
  5696. Patch by Anthony Sottile.
  5697. - bpo-32199: The getnode() ip getter now uses 'ip link' instead of 'ip link
  5698. list'.
  5699. - bpo-27456: Ensure TCP_NODELAY is set on Linux. Tests by Victor Stinner.
  5700. - bpo-31900: The :func:`locale.localeconv` function now sets temporarily the
  5701. ``LC_CTYPE`` locale to the ``LC_NUMERIC`` locale to decode
  5702. ``decimal_point`` and ``thousands_sep`` byte strings if they are non-ASCII
  5703. or longer than 1 byte, and the ``LC_NUMERIC`` locale is different than the
  5704. ``LC_CTYPE`` locale. This temporary change affects other threads.
  5705. Same change for the :meth:`str.format` method when formatting a number
  5706. (:class:`int`, :class:`float`, :class:`float` and subclasses) with the
  5707. ``n`` type (ex: ``'{:n}'.format(1234)``).
  5708. - bpo-31802: Importing native path module (``posixpath``, ``ntpath``) now
  5709. works even if the ``os`` module still is not imported.
  5710. Documentation
  5711. -------------
  5712. - bpo-17232: Clarify docs for -O and -OO. Patch by Terry Reedy.
  5713. - bpo-32800: Update link to w3c doc for xml default namespaces.
  5714. - bpo-8722: Document :meth:`__getattr__` behavior when property :meth:`get`
  5715. method raises :exc:`AttributeError`.
  5716. - bpo-32614: Modify RE examples in documentation to use raw strings to
  5717. prevent :exc:`DeprecationWarning` and add text to REGEX HOWTO to highlight
  5718. the deprecation.
  5719. - bpo-31972: Improve docstrings for `pathlib.PurePath` subclasses.
  5720. - bpo-17799: Explain real behaviour of sys.settrace and sys.setprofile and
  5721. their C-API counterparts regarding which type of events are received in
  5722. each function. Patch by Pablo Galindo Salgado.
  5723. Tests
  5724. -----
  5725. - bpo-32517: Fix failing ``test_asyncio`` on macOS 10.12.2+ due to transport
  5726. of ``KqueueSelector`` loop was not being closed.
  5727. - bpo-32721: Fix test_hashlib to not fail if the _md5 module is not built.
  5728. - bpo-32252: Fix faulthandler_suppress_crash_report() used to prevent core
  5729. dump files when testing crashes. getrlimit() returns zero on success.
  5730. - bpo-31518: Debian Unstable has disabled TLS 1.0 and 1.1 for
  5731. SSLv23_METHOD(). Change TLS/SSL protocol of some tests to PROTOCOL_TLS or
  5732. PROTOCOL_TLSv1_2 to make them pass on Debian.
  5733. Build
  5734. -----
  5735. - bpo-32635: Fix segfault of the crypt module when libxcrypt is provided
  5736. instead of libcrypt at the system.
  5737. Windows
  5738. -------
  5739. - bpo-33016: Fix potential use of uninitialized memory in
  5740. nt._getfinalpathname
  5741. - bpo-32903: Fix a memory leak in os.chdir() on Windows if the current
  5742. directory is set to a UNC path.
  5743. - bpo-31966: Fixed WindowsConsoleIO.write() for writing empty data.
  5744. - bpo-32409: Ensures activate.bat can handle Unicode contents.
  5745. - bpo-32457: Improves handling of denormalized executable path when
  5746. launching Python.
  5747. - bpo-32370: Use the correct encoding for ipconfig output in the uuid
  5748. module. Patch by Segev Finer.
  5749. - bpo-29248: Fix :func:`os.readlink` on Windows, which was mistakenly
  5750. treating the ``PrintNameOffset`` field of the reparse data buffer as a
  5751. number of characters instead of bytes. Patch by Craig Holmquist and SSE4.
  5752. - bpo-32588: Create standalone _distutils_findvs module.
  5753. macOS
  5754. -----
  5755. - bpo-32726: Provide an additional, more modern macOS installer variant that
  5756. supports macOS 10.9+ systems in 64-bit mode only. Upgrade the supplied
  5757. third-party libraries to OpenSSL 1.0.2n, XZ 5.2.3, and SQLite 3.22.0. The
  5758. 10.9+ installer now links with and supplies its own copy of Tcl/Tk 8.6.8.
  5759. IDLE
  5760. ----
  5761. - bpo-32984: Set ``__file__`` while running a startup file. Like Python,
  5762. IDLE optionally runs one startup file in the Shell window before
  5763. presenting the first interactive input prompt. For IDLE, ``-s`` runs a
  5764. file named in environmental variable :envvar:`IDLESTARTUP` or
  5765. :envvar:`PYTHONSTARTUP`; ``-r file`` runs ``file``. Python sets
  5766. ``__file__`` to the startup file name before running the file and unsets
  5767. it before the first prompt. IDLE now does the same when run normally,
  5768. without the ``-n`` option.
  5769. - bpo-32940: Simplify and rename StringTranslatePseudoMapping in pyparse.
  5770. - bpo-32916: Change ``str`` to ``code`` in pyparse.
  5771. - bpo-32905: Remove unused code in pyparse module.
  5772. - bpo-32874: Add tests for pyparse.
  5773. - bpo-32837: Using the system and place-dependent default encoding for
  5774. open() is a bad idea for IDLE's system and location-independent files.
  5775. - bpo-32826: Add "encoding=utf-8" to open() in IDLE's test_help_about. GUI
  5776. test test_file_buttons() only looks at initial ascii-only lines, but
  5777. failed on systems where open() defaults to 'ascii' because readline()
  5778. internally reads and decodes far enough ahead to encounter a non-ascii
  5779. character in CREDITS.txt.
  5780. - bpo-32765: Update configdialog General tab docstring to add new widgets to
  5781. the widget list.
  5782. Tools/Demos
  5783. -----------
  5784. - bpo-24960: 2to3 and lib2to3 can now read pickled grammar files using
  5785. pkgutil.get_data() rather than probing the filesystem. This lets 2to3 and
  5786. lib2to3 work when run from a zipfile.
  5787. - bpo-32222: Fix pygettext not extracting docstrings for functions with type
  5788. annotated arguments. Patch by Toby Harradine.
  5789. C API
  5790. -----
  5791. - bpo-29084: Undocumented C API for OrderedDict has been excluded from the
  5792. limited C API. It was added by mistake and actually never worked in the
  5793. limited C API.
  5794. What's New in Python 3.6.4 final?
  5795. =================================
  5796. *Release date: 2017-12-18*
  5797. There were no new code changes in version 3.6.4 since v3.6.4rc1.
  5798. What's New in Python 3.6.4 release candidate 1?
  5799. ===============================================
  5800. *Release date: 2017-12-05*
  5801. Core and Builtins
  5802. -----------------
  5803. - bpo-32176: co_flags.CO_NOFREE is now always set correctly by the code
  5804. object constructor based on freevars and cellvars, rather than needing to
  5805. be set correctly by the caller. This ensures it will be cleared
  5806. automatically when additional cell references are injected into a modified
  5807. code object and function.
  5808. - bpo-31949: Fixed several issues in printing tracebacks
  5809. (PyTraceBack_Print()).
  5810. * Setting sys.tracebacklimit to 0 or less now suppresses printing tracebacks.
  5811. * Setting sys.tracebacklimit to None now causes using the default limit.
  5812. * Setting sys.tracebacklimit to an integer larger than LONG_MAX now means using
  5813. the limit LONG_MAX rather than the default limit.
  5814. * Fixed integer overflows in the case of more than 2**31 traceback items on
  5815. Windows.
  5816. * Fixed output errors handling.
  5817. - bpo-30696: Fix the interactive interpreter looping endlessly when no
  5818. memory.
  5819. - bpo-20047: Bytearray methods partition() and rpartition() now accept only
  5820. bytes-like objects as separator, as documented. In particular they now
  5821. raise TypeError rather of returning a bogus result when an integer is
  5822. passed as a separator.
  5823. - bpo-31852: Fix a segmentation fault caused by a combination of the async
  5824. soft keyword and continuation lines.
  5825. - bpo-21720: BytesWarning no longer emitted when the *fromlist* argument of
  5826. ``__import__()`` or the ``__all__`` attribute of the module contain bytes
  5827. instances.
  5828. - bpo-31825: Fixed OverflowError in the 'unicode-escape' codec and in
  5829. codecs.escape_decode() when decode an escaped non-ascii byte.
  5830. - bpo-28603: Print the full context/cause chain of exceptions on interpreter
  5831. exit, even if an exception in the chain is unhashable or compares equal to
  5832. later ones. Patch by Zane Bitter.
  5833. - bpo-31786: Fix timeout rounding in the select module to round correctly
  5834. negative timeouts between -1.0 and 0.0. The functions now block waiting
  5835. for events as expected. Previously, the call was incorrectly non-blocking.
  5836. Patch by Pablo Galindo.
  5837. - bpo-31642: Restored blocking "from package import module" by setting
  5838. sys.modules["package.module"] to None.
  5839. - bpo-31626: Fixed a bug in debug memory allocator. There was a write to
  5840. freed memory after shrinking a memory block.
  5841. - bpo-31619: Fixed a ValueError when convert a string with large number of
  5842. underscores to integer with binary base.
  5843. - bpo-31592: Fixed an assertion failure in Python parser in case of a bad
  5844. `unicodedata.normalize()`. Patch by Oren Milman.
  5845. - bpo-31588: Raise a `TypeError` with a helpful error message when class
  5846. creation fails due to a metaclass with a bad ``__prepare__()`` method.
  5847. Patch by Oren Milman.
  5848. - bpo-31566: Fix an assertion failure in `_warnings.warn()` in case of a bad
  5849. ``__name__`` global. Patch by Oren Milman.
  5850. - bpo-31505: Fix an assertion failure in `json`, in case
  5851. `_json.make_encoder()` received a bad `encoder()` argument. Patch by Oren
  5852. Milman.
  5853. - bpo-31492: Fix assertion failures in case of failing to import from a
  5854. module with a bad ``__name__`` attribute, and in case of failing to access
  5855. an attribute of such a module. Patch by Oren Milman.
  5856. - bpo-31490: Fix an assertion failure in `ctypes` class definition, in case
  5857. the class has an attribute whose name is specified in ``_anonymous_`` but
  5858. not in ``_fields_``. Patch by Oren Milman.
  5859. - bpo-31478: Fix an assertion failure in `_random.Random.seed()` in case the
  5860. argument has a bad ``__abs__()`` method. Patch by Oren Milman.
  5861. - bpo-31315: Fix an assertion failure in imp.create_dynamic(), when
  5862. spec.name is not a string. Patch by Oren Milman.
  5863. - bpo-31311: Fix a crash in the ``__setstate__()`` method of
  5864. `ctypes._CData`, in case of a bad ``__dict__``. Patch by Oren Milman.
  5865. - bpo-31293: Fix crashes in true division and multiplication of a timedelta
  5866. object by a float with a bad as_integer_ratio() method. Patch by Oren
  5867. Milman.
  5868. - bpo-31285: Fix an assertion failure in `warnings.warn_explicit`, when the
  5869. return value of the received loader's get_source() has a bad splitlines()
  5870. method. Patch by Oren Milman.
  5871. - bpo-30817: `PyErr_PrintEx()` clears now the ignored exception that may be
  5872. raised by `_PySys_SetObjectId()`, for example when no memory.
  5873. Library
  5874. -------
  5875. - bpo-28556: Two minor fixes for ``typing`` module: allow shallow copying
  5876. instances of generic classes, improve interaction of ``__init_subclass__``
  5877. with generics. Original PRs by Ivan Levkivskyi.
  5878. - bpo-27240: The header folding algorithm for the new email policies has
  5879. been rewritten, which also fixes bpo-30788, bpo-31831, and bpo-32182. In
  5880. particular, RFC2231 folding is now done correctly.
  5881. - bpo-32186: io.FileIO.readall() and io.FileIO.read() now release the GIL
  5882. when getting the file size. Fixed hang of all threads with inaccessible
  5883. NFS server. Patch by Nir Soffer.
  5884. - bpo-12239: Make :meth:`msilib.SummaryInformation.GetProperty` return
  5885. ``None`` when the value of property is ``VT_EMPTY``. Initial patch by
  5886. Mark Mc Mahon.
  5887. - bpo-31325: Fix wrong usage of :func:`collections.namedtuple` in the
  5888. :meth:`RobotFileParser.parse() <urllib.robotparser.RobotFileParser.parse>`
  5889. method.
  5890. Initial patch by Robin Wellner.
  5891. - bpo-12382: :func:`msilib.OpenDatabase` now raises a better exception
  5892. message when it couldn't open or create an MSI file. Initial patch by
  5893. William Tisäter.
  5894. - bpo-32110: ``codecs.StreamReader.read(n)`` now returns not more than *n*
  5895. characters/bytes for non-negative *n*. This makes it compatible with
  5896. ``read()`` methods of other file-like objects.
  5897. - bpo-32072: Fixed issues with binary plists:
  5898. * Fixed saving bytearrays.
  5899. * Identical objects will be saved only once.
  5900. * Equal references will be load as identical objects.
  5901. * Added support for saving and loading recursive data structures.
  5902. - bpo-32034: Make asyncio.IncompleteReadError and LimitOverrunError
  5903. pickleable.
  5904. - bpo-32015: Fixed the looping of asyncio in the case of reconnection the
  5905. socket during waiting async read/write from/to the socket.
  5906. - bpo-32011: Restored support of loading marshal files with the TYPE_INT64
  5907. code. These files can be produced in Python 2.7.
  5908. - bpo-31970: Reduce performance overhead of asyncio debug mode.
  5909. - bpo-9678: Fixed determining the MAC address in the uuid module:
  5910. * Using ifconfig on NetBSD and OpenBSD.
  5911. * Using arp on Linux, FreeBSD, NetBSD and OpenBSD.
  5912. Based on patch by Takayuki Shimizukawa.
  5913. - bpo-30057: Fix potential missed signal in signal.signal().
  5914. - bpo-31933: Fix Blake2 params leaf_size and node_offset on big endian
  5915. platforms. Patch by Jack O'Connor.
  5916. - bpo-31927: Fixed compilation of the socket module on NetBSD 8. Fixed
  5917. assertion failure or reading arbitrary data when parse a AF_BLUETOOTH
  5918. address on NetBSD and DragonFly BSD.
  5919. - bpo-27666: Fixed stack corruption in curses.box() and curses.ungetmouse()
  5920. when the size of types chtype or mmask_t is less than the size of C long.
  5921. curses.box() now accepts characters as arguments. Based on patch by Steve
  5922. Fink.
  5923. - bpo-31897: plistlib now catches more errors when read binary plists and
  5924. raises InvalidFileException instead of unexpected exceptions.
  5925. - bpo-25720: Fix the method for checking pad state of curses WINDOW. Patch
  5926. by Masayuki Yamamoto.
  5927. - bpo-31893: Fixed the layout of the kqueue_event structure on OpenBSD and
  5928. NetBSD. Fixed the comparison of the kqueue_event objects.
  5929. - bpo-31891: Fixed building the curses module on NetBSD.
  5930. - bpo-28416: Instances of pickle.Pickler subclass with the persistent_id()
  5931. method and pickle.Unpickler subclass with the persistent_load() method no
  5932. longer create reference cycles.
  5933. - bpo-28326: Fix multiprocessing.Process when stdout and/or stderr is closed
  5934. or None.
  5935. - bpo-31457: If nested log adapters are used, the inner ``process()``
  5936. methods are no longer omitted.
  5937. - bpo-31457: The ``manager`` property on LoggerAdapter objects is now
  5938. properly settable.
  5939. - bpo-31806: Fix timeout rounding in time.sleep(), threading.Lock.acquire()
  5940. and socket.socket.settimeout() to round correctly negative timeouts
  5941. between -1.0 and 0.0. The functions now block waiting for events as
  5942. expected. Previously, the call was incorrectly non-blocking. Patch by
  5943. Pablo Galindo.
  5944. - bpo-28603: traceback: Fix a TypeError that occurred during printing of
  5945. exception tracebacks when either the current exception or an exception in
  5946. its context/cause chain is unhashable. Patch by Zane Bitter.
  5947. - bpo-30058: Fixed buffer overflow in select.kqueue.control().
  5948. - bpo-31770: Prevent a crash when calling the ``__init__()`` method of a
  5949. ``sqlite3.Cursor`` object more than once. Patch by Oren Milman.
  5950. - bpo-31672: ``idpattern`` in ``string.Template`` matched some non-ASCII
  5951. characters. Now it uses ``-i`` regular expression local flag to avoid
  5952. non-ASCII characters.
  5953. - bpo-31764: Prevent a crash in ``sqlite3.Cursor.close()`` in case the
  5954. ``Cursor`` object is uninitialized. Patch by Oren Milman.
  5955. - bpo-31752: Fix possible crash in timedelta constructor called with custom
  5956. integers.
  5957. - bpo-31701: On Windows, faulthandler.enable() now ignores MSC and COM
  5958. exceptions.
  5959. - bpo-31728: Prevent crashes in `_elementtree` due to unsafe cleanup of
  5960. `Element.text` and `Element.tail`. Patch by Oren Milman.
  5961. - bpo-31620: an empty asyncio.Queue now doesn't leak memory when queue.get
  5962. pollers timeout
  5963. - bpo-31632: Fix method set_protocol() of class _SSLProtocolTransport in
  5964. asyncio module. This method was previously modifying a wrong reference to
  5965. the protocol.
  5966. - bpo-31675: Fixed memory leaks in Tkinter's methods splitlist() and split()
  5967. when pass a string larger than 2 GiB.
  5968. - bpo-31673: Fixed typo in the name of Tkinter's method adderrorinfo().
  5969. - bpo-30806: Fix the string representation of a netrc object.
  5970. - bpo-15037: Added a workaround for getkey() in curses for ncurses 5.7 and
  5971. earlier.
  5972. - bpo-25351: Avoid venv activate failures with undefined variables
  5973. - bpo-25532: inspect.unwrap() will now only try to unwrap an object
  5974. sys.getrecursionlimit() times, to protect against objects which create a
  5975. new object on every attribute access.
  5976. - bpo-30347: Stop crashes when concurrently iterate over itertools.groupby()
  5977. iterators.
  5978. - bpo-31516: ``threading.current_thread()`` should not return a dummy thread
  5979. at shutdown.
  5980. - bpo-31351: python -m ensurepip now exits with non-zero exit code if pip
  5981. bootstrapping has failed.
  5982. - bpo-31482: ``random.seed()`` now works with bytes in version=1
  5983. - bpo-31334: Fix ``poll.poll([timeout])`` in the ``select`` module for
  5984. arbitrary negative timeouts on all OSes where it can only be a
  5985. non-negative integer or -1. Patch by Riccardo Coccioli.
  5986. - bpo-31310: multiprocessing's semaphore tracker should be launched again if
  5987. crashed.
  5988. - bpo-31308: Make multiprocessing's forkserver process immune to Ctrl-C and
  5989. other user interruptions. If it crashes, restart it when necessary.
  5990. Documentation
  5991. -------------
  5992. - bpo-32105: Added asyncio.BaseEventLoop.connect_accepted_socket
  5993. versionadded marker.
  5994. - bpo-31537: Fix incorrect usage of ``get_history_length`` in readline
  5995. documentation example code. Patch by Brad Smith.
  5996. - bpo-30085: The operator functions without double underscores are preferred
  5997. for clarity. The one with underscores are only kept for
  5998. back-compatibility.
  5999. Tests
  6000. -----
  6001. - bpo-31380: Skip test_httpservers test_undecodable_file on macOS: fails on
  6002. APFS.
  6003. - bpo-31705: Skip test_socket.test_sha256() on Linux kernel older than 4.5.
  6004. The test fails with ENOKEY on kernel 3.10 (on ppc64le). A fix was merged
  6005. into the kernel 4.5.
  6006. - bpo-31174: Fix test_tools.test_unparse: DirectoryTestCase now stores the
  6007. names sample to always test the same files. It prevents false alarms when
  6008. hunting reference leaks.
  6009. - bpo-30695: Add the `set_nomemory(start, stop)` and `remove_mem_hooks()`
  6010. functions to the _testcapi module.
  6011. Build
  6012. -----
  6013. - bpo-32059: ``detect_modules()`` in ``setup.py`` now also searches the
  6014. sysroot paths when cross-compiling.
  6015. - bpo-31957: Fixes Windows SDK version detection when building for Windows.
  6016. - bpo-31609: Fixes quotes in PCbuild/clean.bat
  6017. - bpo-31934: Abort the build when building out of a not clean source tree.
  6018. - bpo-31926: Fixed Argument Clinic sometimes causing compilation errors when
  6019. there was more than one function and/or method in a .c file with the same
  6020. name.
  6021. - bpo-28791: Update Windows builds to use SQLite 3.21.0.
  6022. - bpo-28791: Update OS X installer to use SQLite 3.21.0.
  6023. - bpo-22140: Prevent double substitution of prefix in python-config.sh.
  6024. - bpo-31536: Avoid wholesale rebuild after `make regen-all` if nothing
  6025. changed.
  6026. Windows
  6027. -------
  6028. - bpo-1102: Return ``None`` when ``View.Fetch()`` returns
  6029. ``ERROR_NO_MORE_ITEMS`` instead of raising ``MSIError``.
  6030. Initial patch by Anthony Tuininga.
  6031. - bpo-31944: Fixes Modify button in Apps and Features dialog.
  6032. macOS
  6033. -----
  6034. - bpo-31392: Update macOS installer to use OpenSSL 1.0.2m
  6035. IDLE
  6036. ----
  6037. - bpo-32207: Improve tk event exception tracebacks in IDLE. When tk event
  6038. handling is driven by IDLE's run loop, a confusing and distracting
  6039. queue.EMPTY traceback context is no longer added to tk event exception
  6040. tracebacks. The traceback is now the same as when event handling is
  6041. driven by user code. Patch based on a suggestion by Serhiy Storchaka.
  6042. - bpo-32164: Delete unused file idlelib/tabbedpages.py. Use of TabbedPageSet
  6043. in configdialog was replaced by ttk.Notebook.
  6044. - bpo-32100: IDLE: Fix old and new bugs in pathbrowser; improve tests. Patch
  6045. mostly by Cheryl Sabella.
  6046. - bpo-31858: IDLE -- Restrict shell prompt manipulation to the shell. Editor
  6047. and output windows only see an empty last prompt line. This simplifies
  6048. the code and fixes a minor bug when newline is inserted. Sys.ps1, if
  6049. present, is read on Shell start-up, but is not set or changed.
  6050. - bpo-31860: The font sample in the IDLE configuration dialog is now
  6051. editable. Changes persist while IDLE remains open
  6052. - bpo-31836: Test_code_module now passes if run after test_idle, which sets
  6053. ps1.
  6054. The code module uses sys.ps1 if present or sets it to '>>> ' if not.
  6055. Test_code_module now properly tests both behaviors. Ditto for ps2.
  6056. - bpo-28603: Fix a TypeError that caused a shell restart when printing a
  6057. traceback that includes an exception that is unhashable. Patch by Zane
  6058. Bitter.
  6059. - bpo-13802: Use non-Latin characters in the IDLE's Font settings sample.
  6060. Even if one selects a font that defines a limited subset of the unicode
  6061. Basic Multilingual Plane, tcl/tk will use other fonts that define a
  6062. character. The expanded example give users of non-Latin characters a
  6063. better idea of what they might see in IDLE's shell and editors. To make
  6064. room for the expanded sample, frames on the Font tab are re-arranged. The
  6065. Font/Tabs help explains a bit about the additions.
  6066. - bpo-31460: Simplify the API of IDLE's Module Browser.
  6067. Passing a widget instead of an flist with a root widget opens the option
  6068. of creating a browser frame that is only part of a window. Passing a full
  6069. file name instead of pieces assumed to come from a .py file opens the
  6070. possibility of browsing python files that do not end in .py.
  6071. - bpo-31649: IDLE - Make _htest, _utest parameters keyword only.
  6072. - bpo-31559: Remove test order dependence in idle_test.test_browser.
  6073. - bpo-31459: Rename IDLE's module browser from Class Browser to Module
  6074. Browser. The original module-level class and method browser became a
  6075. module browser, with the addition of module-level functions, years ago.
  6076. Nested classes and functions were added yesterday. For
  6077. back-compatibility, the virtual event <<open-class-browser>>, which
  6078. appears on the Keys tab of the Settings dialog, is not changed. Patch by
  6079. Cheryl Sabella.
  6080. - bpo-31500: Default fonts now are scaled on HiDPI displays.
  6081. - bpo-1612262: IDLE module browser now shows nested classes and functions.
  6082. Original patches for code and tests by Guilherme Polo and Cheryl Sabella,
  6083. respectively.
  6084. Tools/Demos
  6085. -----------
  6086. - bpo-30722: Make redemo work with Python 3.6 and newer versions.
  6087. Also, remove the ``LOCALE`` option since it doesn't work with string
  6088. patterns in Python 3.
  6089. Patch by Christoph Sarnowski.
  6090. C API
  6091. -----
  6092. - bpo-20891: Fix PyGILState_Ensure(). When PyGILState_Ensure() is called in
  6093. a non-Python thread before PyEval_InitThreads(), only call
  6094. PyEval_InitThreads() after calling PyThreadState_New() to fix a crash.
  6095. - bpo-31532: Fix memory corruption due to allocator mix in getpath.c between
  6096. Py_GetPath() and Py_SetPath()
  6097. - bpo-30697: The `PyExc_RecursionErrorInst` singleton is removed and
  6098. `PyErr_NormalizeException()` does not use it anymore. This singleton is
  6099. persistent and its members being never cleared may cause a segfault during
  6100. finalization of the interpreter. See also issue #22898.
  6101. What's New in Python 3.6.3 final?
  6102. =================================
  6103. *Release date: 2017-10-03*
  6104. Library
  6105. -------
  6106. - bpo-31641: Re-allow arbitrary iterables in
  6107. `concurrent.futures.as_completed()`. Fixes regression in 3.6.3rc1.
  6108. Build
  6109. -----
  6110. - bpo-31662: Fix typos in Windows ``uploadrelease.bat`` script. Fix Windows
  6111. Doc build issues in ``Doc/make.bat``.
  6112. - bpo-31423: Fix building the PDF documentation with newer versions of
  6113. Sphinx.
  6114. What's New in Python 3.6.3 release candidate 1?
  6115. ===============================================
  6116. *Release date: 2017-09-18*
  6117. Security
  6118. --------
  6119. - bpo-29781: SSLObject.version() now correctly returns None when handshake
  6120. over BIO has not been performed yet.
  6121. - bpo-30947: Upgrade libexpat embedded copy from version 2.2.1 to 2.2.3 to
  6122. get security fixes.
  6123. Core and Builtins
  6124. -----------------
  6125. - bpo-31471: Fix an assertion failure in `subprocess.Popen()` on Windows, in
  6126. case the env argument has a bad keys() method. Patch by Oren Milman.
  6127. - bpo-31418: Fix an assertion failure in `PyErr_WriteUnraisable()` in case
  6128. of an exception with a bad ``__module__`` attribute. Patch by Oren Milman.
  6129. - bpo-31416: Fix assertion failures in case of a bad warnings.filters or
  6130. warnings.defaultaction. Patch by Oren Milman.
  6131. - bpo-31411: Raise a TypeError instead of SystemError in case
  6132. warnings.onceregistry is not a dictionary. Patch by Oren Milman.
  6133. - bpo-31373: Fix several possible instances of undefined behavior due to
  6134. floating-point demotions.
  6135. - bpo-30465: Location information (``lineno`` and ``col_offset``) in
  6136. f-strings is now (mostly) correct. This fixes tools like flake8 from
  6137. showing warnings on the wrong line (typically the first line of the file).
  6138. - bpo-31343: Include sys/sysmacros.h for major(), minor(), and makedev().
  6139. GNU C libray plans to remove the functions from sys/types.h.
  6140. - bpo-31291: Fix an assertion failure in `zipimport.zipimporter.get_data` on
  6141. Windows, when the return value of ``pathname.replace('/','\\')`` isn't a
  6142. string. Patch by Oren Milman.
  6143. - bpo-31271: Fix an assertion failure in the write() method of
  6144. `io.TextIOWrapper`, when the encoder doesn't return a bytes object. Patch
  6145. by Oren Milman.
  6146. - bpo-31243: Fix a crash in some methods of `io.TextIOWrapper`, when the
  6147. decoder's state is invalid. Patch by Oren Milman.
  6148. - bpo-30721: ``print`` now shows correct usage hint for using Python 2
  6149. redirection syntax. Patch by Sanyam Khurana.
  6150. - bpo-31070: Fix a race condition in importlib _get_module_lock().
  6151. - bpo-31095: Fix potential crash during GC caused by ``tp_dealloc`` which
  6152. doesn't call ``PyObject_GC_UnTrack()``.
  6153. - bpo-31071: Avoid masking original TypeError in call with * unpacking when
  6154. other arguments are passed.
  6155. - bpo-30978: str.format_map() now passes key lookup exceptions through.
  6156. Previously any exception was replaced with a KeyError exception.
  6157. - bpo-30808: Use _Py_atomic API for concurrency-sensitive signal state.
  6158. - bpo-30876: Relative import from unloaded package now reimports the package
  6159. instead of failing with SystemError. Relative import from non-package now
  6160. fails with ImportError rather than SystemError.
  6161. - bpo-30703: Improve signal delivery.
  6162. Avoid using Py_AddPendingCall from signal handler, to avoid calling
  6163. signal-unsafe functions. The tests I'm adding here fail without the rest
  6164. of the patch, on Linux and OS X. This means our signal delivery logic had
  6165. defects (some signals could be lost).
  6166. - bpo-30765: Avoid blocking in pthread_mutex_lock() when
  6167. PyThread_acquire_lock() is asked not to block.
  6168. - bpo-31161: Make sure the 'Missing parentheses' syntax error message is
  6169. only applied to SyntaxError, not to subclasses. Patch by Martijn Pieters.
  6170. - bpo-30814: Fixed a race condition when import a submodule from a package.
  6171. - bpo-30597: ``print`` now shows expected input in custom error message when
  6172. used as a Python 2 statement. Patch by Sanyam Khurana.
  6173. Library
  6174. -------
  6175. - bpo-31499: xml.etree: Fix a crash when a parser is part of a reference
  6176. cycle.
  6177. - bpo-28556: typing.get_type_hints now finds the right globalns for classes
  6178. and modules by default (when no ``globalns`` was specified by the caller).
  6179. - bpo-28556: Speed improvements to the ``typing`` module. Original PRs by
  6180. Ivan Levkivskyi and Mitar.
  6181. - bpo-31544: The C accelerator module of ElementTree ignored exceptions
  6182. raised when looking up TreeBuilder target methods in XMLParser().
  6183. - bpo-31234: socket.create_connection() now fixes manually a reference
  6184. cycle: clear the variable storing the last exception on success.
  6185. - bpo-31457: LoggerAdapter objects can now be nested.
  6186. - bpo-31400: Improves SSL error handling to avoid losing error numbers.
  6187. - bpo-28958: ssl.SSLContext() now uses OpenSSL error information when a
  6188. context cannot be instantiated.
  6189. - bpo-27340: SSLSocket.sendall() now uses memoryview to create slices of
  6190. data. This fixes support for all bytes-like object. It is also more
  6191. efficient and avoids costly copies.
  6192. - bpo-31178: Fix string concatenation bug in rare error path in the
  6193. subprocess module
  6194. - bpo-31350: Micro-optimize :func:`asyncio._get_running_loop` to become up
  6195. to 10% faster.
  6196. - bpo-31170: expat: Update libexpat from 2.2.3 to 2.2.4. Fix copying of
  6197. partial characters for UTF-8 input (libexpat bug 115):
  6198. https://github.com/libexpat/libexpat/issues/115
  6199. - bpo-29136: Add TLS 1.3 cipher suites and OP_NO_TLSv1_3.
  6200. - bpo-29212: Fix concurrent.futures.thread.ThreadPoolExecutor threads to
  6201. have a non repr() based thread name by default when no thread_name_prefix
  6202. is supplied. They will now identify themselves as
  6203. "ThreadPoolExecutor-y_n".
  6204. - bpo-9146: Fix a segmentation fault in _hashopenssl when standard hash
  6205. functions such as md5 are not available in the linked OpenSSL library. As
  6206. in some special FIPS-140 build environments.
  6207. - bpo-27144: The ``map()`` and ``as_completed()`` iterators in
  6208. ``concurrent.futures`` now avoid keeping a reference to yielded objects.
  6209. - bpo-10746: Fix ctypes producing wrong PEP 3118 type codes for integer
  6210. types.
  6211. - bpo-22536: The subprocess module now sets the filename when
  6212. FileNotFoundError is raised on POSIX systems due to the executable or cwd
  6213. not being found.
  6214. - bpo-31249: concurrent.futures: WorkItem.run() used by ThreadPoolExecutor
  6215. now breaks a reference cycle between an exception object and the WorkItem
  6216. object.
  6217. - bpo-31247: xmlrpc.server now explicitly breaks reference cycles when using
  6218. sys.exc_info() in code handling exceptions.
  6219. - bpo-30102: The ssl and hashlib modules now call
  6220. OPENSSL_add_all_algorithms_noconf() on OpenSSL < 1.1.0. The function
  6221. detects CPU features and enables optimizations on some CPU architectures
  6222. such as POWER8. Patch is based on research from Gustavo Serra Scalet.
  6223. - bpo-31185: Fixed miscellaneous errors in asyncio speedup module.
  6224. - bpo-31135: ttk: fix the destroy() method of LabeledScale and OptionMenu
  6225. classes. Call the parent destroy() method even if the used attribute
  6226. doesn't exist. The LabeledScale.destroy() method now also explicitly
  6227. clears label and scale attributes to help the garbage collector to destroy
  6228. all widgets.
  6229. - bpo-31107: Fix `copyreg._slotnames()` mangled attribute calculation for
  6230. classes whose name begins with an underscore. Patch by Shane Harvey.
  6231. - bpo-31061: Fixed a crash when using asyncio and threads.
  6232. - bpo-30502: Fix handling of long oids in ssl. Based on patch by Christian
  6233. Heimes.
  6234. - bpo-30119: ftplib.FTP.putline() now throws ValueError on commands that
  6235. contains CR or LF. Patch by Dong-hee Na.
  6236. - bpo-30595: multiprocessing.Queue.get() with a timeout now polls its reader
  6237. in non-blocking mode if it succeeded to acquire the lock but the acquire
  6238. took longer than the timeout.
  6239. - bpo-29403: Fix ``unittest.mock``'s autospec to not fail on method-bound
  6240. builtin functions. Patch by Aaron Gallagher.
  6241. - bpo-30961: Fix decrementing a borrowed reference in tracemalloc.
  6242. - bpo-25684: Change ``ttk.OptionMenu`` radiobuttons to be unique across
  6243. instances of ``OptionMenu``.
  6244. - bpo-30886: Fix multiprocessing.Queue.join_thread(): it now waits until the
  6245. thread completes, even if the thread was started by the same process which
  6246. created the queue.
  6247. - bpo-29854: Fix segfault in readline when using readline's history-size
  6248. option. Patch by Nir Soffer.
  6249. - bpo-30319: socket.close() now ignores ECONNRESET error.
  6250. - bpo-30828: Fix out of bounds write in
  6251. `asyncio.CFuture.remove_done_callback()`.
  6252. - bpo-30807: signal.setitimer() may disable the timer when passed a tiny
  6253. value.
  6254. Tiny values (such as 1e-6) are valid non-zero values for setitimer(),
  6255. which is specified as taking microsecond-resolution intervals. However, on
  6256. some platform, our conversion routine could convert 1e-6 into a zero
  6257. interval, therefore disabling the timer instead of (re-)scheduling it.
  6258. - bpo-30441: Fix bug when modifying os.environ while iterating over it
  6259. - bpo-30532: Fix email header value parser dropping folding white space in
  6260. certain cases.
  6261. - bpo-30879: os.listdir() and os.scandir() now emit bytes names when called
  6262. with bytes-like argument.
  6263. - bpo-30746: Prohibited the '=' character in environment variable names in
  6264. ``os.putenv()`` and ``os.spawn*()``.
  6265. - bpo-29755: Fixed the lgettext() family of functions in the gettext module.
  6266. They now always return bytes.
  6267. Documentation
  6268. -------------
  6269. - bpo-31294: Fix incomplete code snippet in the ZeroMQSocketListener and
  6270. ZeroMQSocketHandler examples and adapt them to Python 3.
  6271. - bpo-21649: Add RFC 7525 and Mozilla server side TLS links to SSL
  6272. documentation.
  6273. - bpo-30803: Clarify doc on truth value testing. Original patch by Peter
  6274. Thomassen.
  6275. Tests
  6276. -----
  6277. - bpo-31320: Silence traceback in test_ssl
  6278. - bpo-25674: Remove sha256.tbs-internet.com ssl test
  6279. - bpo-30715: Address ALPN callback changes for OpenSSL 1.1.0f. The latest
  6280. version behaves like OpenSSL 1.0.2 and no longer aborts handshake.
  6281. - bpo-30822: regrtest: Exclude tzdata from regrtest --all. When running the
  6282. test suite using --use=all / -u all, exclude tzdata since it makes
  6283. test_datetime too slow (15-20 min on some buildbots) which then times out
  6284. on some buildbots. Fix also regrtest command line parser to allow passing
  6285. -u extralargefile to run test_zipfile64.
  6286. Build
  6287. -----
  6288. - bpo-30854: Fix compile error when compiling --without-threads. Patch by
  6289. Masayuki Yamamoto.
  6290. Windows
  6291. -------
  6292. - bpo-30389: Adds detection of Visual Studio 2017 to distutils on Windows.
  6293. - bpo-31340: Change to building with MSVC v141 (included with Visual Studio
  6294. 2017)
  6295. - bpo-30581: os.cpu_count() now returns the correct number of processors on
  6296. Windows when the number of logical processors is greater than 64.
  6297. - bpo-30731: Add a missing xmlns to python.manifest so that it matches the
  6298. schema.
  6299. IDLE
  6300. ----
  6301. - bpo-31493: IDLE code context -- fix code update and font update timers.
  6302. Canceling timers prevents a warning message when test_idle completes.
  6303. - bpo-31488: IDLE - Update non-key options in former extension classes. When
  6304. applying configdialog changes, call .reload for each feature class. Change
  6305. ParenMatch so updated options affect existing instances attached to
  6306. existing editor windows.
  6307. - bpo-31477: IDLE - Improve rstrip entry in doc. Strip trailing whitespace
  6308. strips more than blank spaces. Multiline string literals are not skipped.
  6309. - bpo-31480: IDLE - make tests pass with zzdummy extension disabled by
  6310. default.
  6311. - bpo-31421: Document how IDLE runs tkinter programs. IDLE calls tcl/tk
  6312. update in the background in order to make live
  6313. interaction and experimentation with tkinter applications much easier.
  6314. - bpo-31414: IDLE -- fix tk entry box tests by deleting first. Adding to an
  6315. int entry is not the same as deleting and inserting because int('') will
  6316. fail.
  6317. - bpo-31051: Rearrange IDLE configdialog GenPage into Window, Editor, and
  6318. Help sections.
  6319. - bpo-30617: IDLE - Add docstrings and tests for outwin subclass of editor.
  6320. Move some data and functions from the class to module level. Patch by
  6321. Cheryl Sabella.
  6322. - bpo-31287: IDLE - Do not modify tkinter.message in test_configdialog.
  6323. - bpo-27099: Convert IDLE's built-in 'extensions' to regular features.
  6324. About 10 IDLE features were implemented as supposedly optional extensions.
  6325. Their different behavior could be confusing or worse for users and not
  6326. good for maintenance. Hence the conversion.
  6327. The main difference for users is that user configurable key bindings for
  6328. builtin features are now handled uniformly. Now, editing a binding in a
  6329. keyset only affects its value in the keyset. All bindings are defined
  6330. together in the system-specific default keysets in config-extensions.def.
  6331. All custom keysets are saved as a whole in config-extension.cfg. All take
  6332. effect as soon as one clicks Apply or Ok.
  6333. The affected events are '<<force-open-completions>>', '<<expand-word>>',
  6334. '<<force-open-calltip>>', '<<flash-paren>>', '<<format-paragraph>>',
  6335. '<<run-module>>', '<<check-module>>', and '<<zoom-height>>'. Any (global)
  6336. customizations made before 3.6.3 will not affect their keyset-specific
  6337. customization after 3.6.3. and vice versa. Initial patch by Charles
  6338. Wohlganger.
  6339. - bpo-31206: IDLE: Factor HighPage(Frame) class from ConfigDialog. Patch by
  6340. Cheryl Sabella.
  6341. - bpo-31001: Add tests for configdialog highlight tab. Patch by Cheryl
  6342. Sabella.
  6343. - bpo-31205: IDLE: Factor KeysPage(Frame) class from ConfigDialog. The
  6344. slightly modified tests continue to pass. Patch by Cheryl Sabella.
  6345. - bpo-31130: IDLE -- stop leaks in test_configdialog. Initial patch by
  6346. Victor Stinner.
  6347. - bpo-31002: Add tests for configdialog keys tab. Patch by Cheryl Sabella.
  6348. - bpo-19903: IDLE: Calltips use `inspect.signature` instead of
  6349. `inspect.getfullargspec`. This improves calltips for builtins converted to
  6350. use Argument Clinic. Patch by Louie Lu.
  6351. - bpo-31083: IDLE - Add an outline of a TabPage class in configdialog.
  6352. Update existing classes to match outline. Initial patch by Cheryl Sabella.
  6353. - bpo-31050: Factor GenPage(Frame) class from ConfigDialog. The slightly
  6354. modified tests continue to pass. Patch by Cheryl Sabella.
  6355. - bpo-31004: IDLE - Factor FontPage(Frame) class from ConfigDialog.
  6356. Slightly modified tests continue to pass. Fix General tests. Patch mostly
  6357. by Cheryl Sabella.
  6358. - bpo-30781: IDLE - Use ttk widgets in ConfigDialog. Patches by Terry Jan
  6359. Reedy and Cheryl Sabella.
  6360. - bpo-31060: IDLE - Finish rearranging methods of ConfigDialog Grouping
  6361. methods pertaining to each tab and the buttons will aid writing tests and
  6362. improving the tabs and will enable splitting the groups into classes.
  6363. - bpo-30853: IDLE -- Factor a VarTrace class out of ConfigDialog.
  6364. Instance tracers manages pairs consisting of a tk variable and a callback
  6365. function. When tracing is turned on, setting the variable calls the
  6366. function. Test coverage for the new class is 100%.
  6367. - bpo-31003: IDLE: Add more tests for General tab.
  6368. - bpo-30993: IDLE - Improve configdialog font page and tests.
  6369. In configdialog: Document causal pathways in create_font_tab docstring.
  6370. Simplify some attribute names. Move set_samples calls to var_changed_font
  6371. (idea from Cheryl Sabella). Move related functions to positions after the
  6372. create widgets function.
  6373. In test_configdialog: Fix test_font_set so not order dependent. Fix
  6374. renamed test_indent_scale so it tests the widget. Adjust tests for
  6375. movement of set_samples call. Add tests for load functions. Put all font
  6376. tests in one class and tab indent tests in another. Except for two lines,
  6377. these tests completely cover the related functions.
  6378. - bpo-30981: IDLE -- Add more configdialog font page tests.
  6379. - bpo-28523: IDLE: replace 'colour' with 'color' in configdialog.
  6380. - bpo-30917: Add tests for idlelib.config.IdleConf. Increase coverage from
  6381. 46% to 96%. Patch by Louie Lu.
  6382. - bpo-30934: Document coverage details for idlelib tests.
  6383. * Add section to idlelib/idle-test/README.txt.
  6384. * Include check that branches are taken both ways.
  6385. * Exclude IDLE-specific code that does not run during unit tests.
  6386. - bpo-30913: IDLE: Document ConfigDialog tk Vars, methods, and widgets in
  6387. docstrings This will facilitate improving the dialog and splitting up the
  6388. class. Original patch by Cheryl Sabella.
  6389. - bpo-30899: IDLE: Add tests for ConfigParser subclasses in config. Patch by
  6390. Louie Lu.
  6391. - bpo-30881: IDLE: Add docstrings to browser.py. Patch by Cheryl Sabella.
  6392. - bpo-30851: IDLE: Remove unused variables in configdialog. One is a
  6393. duplicate, one is set but cannot be altered by users. Patch by Cheryl
  6394. Sabella.
  6395. - bpo-30870: IDLE: In Settings dialog, select font with Up, Down keys as
  6396. well as mouse. Initial patch by Louie Lu.
  6397. - bpo-8231: IDLE: call config.IdleConf.GetUserCfgDir only once.
  6398. - bpo-30779: IDLE: Factor ConfigChanges class from configdialog, put in
  6399. config; test. * In config, put dump test code in a function; run it and
  6400. unittest in 'if __name__ == '__main__'. * Add class config.ConfigChanges
  6401. based on changes_class_v4.py on bpo issue. * Add class
  6402. test_config.ChangesTest, partly using configdialog_tests_v1.py. * Revise
  6403. configdialog to use ConfigChanges; see tracker msg297804. * Revise
  6404. test_configdialog to match configdialog changes. * Remove configdialog
  6405. functions unused or moved to ConfigChanges. Cheryl Sabella contributed
  6406. parts of the patch.
  6407. - bpo-30777: IDLE: configdialog - Add docstrings and fix comments. Patch by
  6408. Cheryl Sabella.
  6409. - bpo-30495: IDLE: Improve textview with docstrings, PEP8 names, and more
  6410. tests. Patch by Cheryl Sabella.
  6411. - bpo-30723: IDLE: Make several improvements to parenmatch. Add 'parens'
  6412. style to highlight both opener and closer. Make 'default' style, which is
  6413. not default, a synonym for 'opener'. Make time-delay work the same with
  6414. all styles. Add help for config dialog extensions tab, including help for
  6415. parenmatch. Add new tests. Original patch by Charles Wohlganger.
  6416. - bpo-30674: IDLE: add docstrings to grep module. Patch by Cheryl Sabella
  6417. - bpo-21519: IDLE's basic custom key entry dialog now detects duplicates
  6418. properly. Original patch by Saimadhav Heblikar.
  6419. - bpo-29910: IDLE no longer deletes a character after commenting out a
  6420. region by a key shortcut. Add ``return 'break'`` for this and other
  6421. potential conflicts between IDLE and default key bindings.
  6422. - bpo-30728: Review and change idlelib.configdialog names. Lowercase method
  6423. and attribute names. Replace 'colour' with 'color', expand overly cryptic
  6424. names, delete unneeded underscores. Replace ``import *`` with specific
  6425. imports. Patches by Cheryl Sabella.
  6426. - bpo-6739: IDLE: Verify user-entered key sequences by trying to bind them
  6427. with tk. Add tests for all 3 validation functions. Original patch by G
  6428. Polo. Tests added by Cheryl Sabella.
  6429. Tools/Demos
  6430. -----------
  6431. - bpo-30983: gdb integration commands (py-bt, etc.) work on optimized shared
  6432. builds now, too. PEP 523 introduced _PyEval_EvalFrameDefault which
  6433. inlines PyEval_EvalFrameEx on non-debug shared builds. This broke the
  6434. ability to use py-bt, py-up, and a few other Python-specific gdb
  6435. integrations. The problem is fixed by only looking for
  6436. _PyEval_EvalFrameDefault frames in python-gdb.py. Original patch by Bruno
  6437. "Polaco" Penteado.
  6438. What's New in Python 3.6.2 final?
  6439. =================================
  6440. *Release date: 2017-07-17*
  6441. No changes since release candidate 2
  6442. What's New in Python 3.6.2 release candidate 2?
  6443. ===============================================
  6444. *Release date: 2017-07-07*
  6445. Security
  6446. --------
  6447. - bpo-30730: Prevent environment variables injection in subprocess on
  6448. Windows. Prevent passing other environment variables and command
  6449. arguments.
  6450. - bpo-30694: Upgrade expat copy from 2.2.0 to 2.2.1 to get fixes of multiple
  6451. security vulnerabilities including: CVE-2017-9233 (External entity
  6452. infinite loop DoS), CVE-2016-9063 (Integer overflow, re-fix),
  6453. CVE-2016-0718 (Fix regression bugs from 2.2.0's fix to CVE-2016-0718) and
  6454. CVE-2012-0876 (Counter hash flooding with SipHash). Note: the
  6455. CVE-2016-5300 (Use os-specific entropy sources like getrandom) doesn't
  6456. impact Python, since Python already gets entropy from the OS to set the
  6457. expat secret using ``XML_SetHashSalt()``.
  6458. - bpo-30500: Fix urllib.parse.splithost() to correctly parse fragments. For
  6459. example, ``splithost('//127.0.0.1#@evil.com/')`` now correctly returns the
  6460. ``127.0.0.1`` host, instead of treating ``@evil.com`` as the host in an
  6461. authentication (``login@host``).
  6462. What's New in Python 3.6.2 release candidate 1?
  6463. ===============================================
  6464. *Release date: 2017-06-17*
  6465. Core and Builtins
  6466. -----------------
  6467. - bpo-30682: Removed a too-strict assertion that failed for certain
  6468. f-strings, such as eval("f'\\\n'") and eval("f'\\\r'").
  6469. - bpo-30604: Move co_extra_freefuncs to not be per-thread to avoid crashes
  6470. - bpo-29104: Fixed parsing backslashes in f-strings.
  6471. - bpo-27945: Fixed various segfaults with dict when input collections are
  6472. mutated during searching, inserting or comparing. Based on patches by
  6473. Duane Griffin and Tim Mitchell.
  6474. - bpo-25794: Fixed type.__setattr__() and type.__delattr__() for
  6475. non-interned attribute names. Based on patch by Eryk Sun.
  6476. - bpo-30039: If a KeyboardInterrupt happens when the interpreter is in the
  6477. middle of resuming a chain of nested 'yield from' or 'await' calls, it's
  6478. now correctly delivered to the innermost frame.
  6479. - bpo-12414: sys.getsizeof() on a code object now returns the sizes which
  6480. includes the code struct and sizes of objects which it references. Patch
  6481. by Dong-hee Na.
  6482. - bpo-29949: Fix memory usage regression of set and frozenset object.
  6483. - bpo-29935: Fixed error messages in the index() method of tuple, list and
  6484. deque when pass indices of wrong type.
  6485. - bpo-29859: Show correct error messages when any of the pthread_* calls in
  6486. thread_pthread.h fails.
  6487. - bpo-28876: ``bool(range)`` works even if ``len(range)`` raises
  6488. :exc:`OverflowError`.
  6489. - bpo-29600: Fix wrapping coroutine return values in StopIteration.
  6490. - bpo-28856: Fix an oversight that %b format for bytes should support
  6491. objects follow the buffer protocol.
  6492. - bpo-29714: Fix a regression that bytes format may fail when containing
  6493. zero bytes inside.
  6494. - bpo-29478: If max_line_length=None is specified while using the Compat32
  6495. policy, it is no longer ignored. Patch by Mircea Cosbuc.
  6496. Library
  6497. -------
  6498. - bpo-30616: Functional API of enum allows to create empty enums. Patched by
  6499. Dong-hee Na
  6500. - bpo-30038: Fix race condition between signal delivery and wakeup file
  6501. descriptor. Patch by Nathaniel Smith.
  6502. - bpo-23894: lib2to3 now recognizes ``rb'...'`` and ``f'...'`` strings.
  6503. - bpo-23890: unittest.TestCase.assertRaises() now manually breaks a
  6504. reference cycle to not keep objects alive longer than expected.
  6505. - bpo-30149: inspect.signature() now supports callables with
  6506. variable-argument parameters wrapped with partialmethod. Patch by Dong-hee
  6507. Na.
  6508. - bpo-30645: Fix path calculation in imp.load_package(), fixing it for cases
  6509. when a package is only shipped with bytecodes. Patch by Alexandru
  6510. Ardelean.
  6511. - bpo-29931: Fixed comparison check for ipaddress.ip_interface objects.
  6512. Patch by Sanjay Sundaresan.
  6513. - bpo-30605: re.compile() no longer raises a BytesWarning when compiling a
  6514. bytes instance with misplaced inline modifier. Patch by Roy Williams.
  6515. Security
  6516. --------
  6517. - bpo-29591: Update expat copy from 2.1.1 to 2.2.0 to get fixes of
  6518. CVE-2016-0718 and CVE-2016-4472. See
  6519. https://sourceforge.net/p/expat/bugs/537/ for more information.
  6520. Library
  6521. -------
  6522. - bpo-24484: Avoid race condition in multiprocessing cleanup (#2159)
  6523. - bpo-28994: The traceback no longer displayed for SystemExit raised in a
  6524. callback registered by atexit.
  6525. - bpo-30508: Don't log exceptions if Task/Future "cancel()" method was
  6526. called.
  6527. - bpo-28556: Updates to typing module: Add generic AsyncContextManager, add
  6528. support for ContextManager on all versions. Original PRs by Jelle Zijlstra
  6529. and Ivan Levkivskyi
  6530. - bpo-29870: Fix ssl sockets leaks when connection is aborted in asyncio/ssl
  6531. implementation. Patch by Michaël Sghaïer.
  6532. - bpo-29743: Closing transport during handshake process leaks open socket.
  6533. Patch by Nikolay Kim
  6534. - bpo-27585: Fix waiter cancellation in asyncio.Lock. Patch by Mathieu
  6535. Sornay.
  6536. - bpo-30418: On Windows, subprocess.Popen.communicate() now also ignore
  6537. EINVAL on stdin.write() if the child process is still running but closed
  6538. the pipe.
  6539. - bpo-29822: inspect.isabstract() now works during __init_subclass__. Patch
  6540. by Nate Soares.
  6541. - bpo-29581: ABCMeta.__new__ now accepts ``**kwargs``, allowing abstract
  6542. base classes to use keyword parameters in __init_subclass__. Patch by Nate
  6543. Soares.
  6544. - bpo-30557: faulthandler now correctly filters and displays exception codes
  6545. on Windows
  6546. - bpo-30378: Fix the problem that logging.handlers.SysLogHandler cannot
  6547. handle IPv6 addresses.
  6548. - bpo-29960: Preserve generator state when _random.Random.setstate() raises
  6549. an exception. Patch by Bryan Olson.
  6550. - bpo-30414: multiprocessing.Queue._feed background running thread do not
  6551. break from main loop on exception.
  6552. - bpo-30003: Fix handling escape characters in HZ codec. Based on patch by
  6553. Ma Lin.
  6554. - bpo-30301: Fix AttributeError when using SimpleQueue.empty() under *spawn*
  6555. and *forkserver* start methods.
  6556. - bpo-30329: imaplib and poplib now catch the Windows socket WSAEINVAL error
  6557. (code 10022) on shutdown(SHUT_RDWR): An invalid operation was attempted.
  6558. This error occurs sometimes on SSL connections.
  6559. - bpo-30375: Warnings emitted when compile a regular expression now always
  6560. point to the line in the user code. Previously they could point into
  6561. inners of the re module if emitted from inside of groups or conditionals.
  6562. - bpo-30048: Fixed ``Task.cancel()`` can be ignored when the task is running
  6563. coroutine and the coroutine returned without any more ``await``.
  6564. - bpo-30266: contextlib.AbstractContextManager now supports
  6565. anti-registration by setting __enter__ = None or __exit__ = None,
  6566. following the pattern introduced in bpo-25958. Patch by Jelle Zijlstra.
  6567. - bpo-30298: Weaken the condition of deprecation warnings for inline
  6568. modifiers. Now allowed several subsequential inline modifiers at the start
  6569. of the pattern (e.g. ``'(?i)(?s)...'``). In verbose mode whitespaces and
  6570. comments now are allowed before and between inline modifiers (e.g. ``'(?x)
  6571. (?i) (?s)...'``).
  6572. - bpo-29990: Fix range checking in GB18030 decoder. Original patch by Ma
  6573. Lin.
  6574. - bpo-26293: Change resulted because of zipfile breakage. (See also:
  6575. bpo-29094)
  6576. - bpo-30243: Removed the __init__ methods of _json's scanner and encoder.
  6577. Misusing them could cause memory leaks or crashes. Now scanner and
  6578. encoder objects are completely initialized in the __new__ methods.
  6579. - bpo-30185: Avoid KeyboardInterrupt tracebacks in forkserver helper process
  6580. when Ctrl-C is received.
  6581. - bpo-28556: Various updates to typing module: add typing.NoReturn type, use
  6582. WrapperDescriptorType, minor bug-fixes. Original PRs by Jim
  6583. Fasarakis-Hilliard and Ivan Levkivskyi.
  6584. - bpo-30205: Fix getsockname() for unbound AF_UNIX sockets on Linux.
  6585. - bpo-30070: Fixed leaks and crashes in errors handling in the parser
  6586. module.
  6587. - bpo-30061: Fixed crashes in IOBase methods __next__() and readlines() when
  6588. readline() or __next__() respectively return non-sizeable object. Fixed
  6589. possible other errors caused by not checking results of PyObject_Size(),
  6590. PySequence_Size(), or PyMapping_Size().
  6591. - bpo-30017: Allowed calling the close() method of the zip entry writer
  6592. object multiple times. Writing to a closed writer now always produces a
  6593. ValueError.
  6594. - bpo-30068: _io._IOBase.readlines will check if it's closed first when hint
  6595. is present.
  6596. - bpo-29694: Fixed race condition in pathlib mkdir with flags parents=True.
  6597. Patch by Armin Rigo.
  6598. - bpo-29692: Fixed arbitrary unchaining of RuntimeError exceptions in
  6599. contextlib.contextmanager. Patch by Siddharth Velankar.
  6600. - bpo-29998: Pickling and copying ImportError now preserves name and path
  6601. attributes.
  6602. - bpo-29953: Fixed memory leaks in the replace() method of datetime and time
  6603. objects when pass out of bound fold argument.
  6604. - bpo-29942: Fix a crash in itertools.chain.from_iterable when encountering
  6605. long runs of empty iterables.
  6606. - bpo-27863: Fixed multiple crashes in ElementTree caused by race conditions
  6607. and wrong types.
  6608. - bpo-28699: Fixed a bug in pools in multiprocessing.pool that raising an
  6609. exception at the very first of an iterable may swallow the exception or
  6610. make the program hang. Patch by Davin Potts and Xiang Zhang.
  6611. - bpo-25803: Avoid incorrect errors raised by Path.mkdir(exist_ok=True) when
  6612. the OS gives priority to errors such as EACCES over EEXIST.
  6613. - bpo-29861: Release references to tasks, their arguments and their results
  6614. as soon as they are finished in multiprocessing.Pool.
  6615. - bpo-29884: faulthandler: Restore the old sigaltstack during teardown.
  6616. Patch by Christophe Zeitouny.
  6617. - bpo-25455: Fixed crashes in repr of recursive buffered file-like objects.
  6618. - bpo-29800: Fix crashes in partial.__repr__ if the keys of partial.keywords
  6619. are not strings. Patch by Michael Seifert.
  6620. - bpo-29742: get_extra_info() raises exception if get called on closed ssl
  6621. transport. Patch by Nikolay Kim.
  6622. - bpo-8256: Fixed possible failing or crashing input() if attributes
  6623. "encoding" or "errors" of sys.stdin or sys.stdout are not set or are not
  6624. strings.
  6625. - bpo-28298: Fix a bug that prevented array 'Q', 'L' and 'I' from accepting
  6626. big intables (objects that have __int__) as elements. Patch by Oren
  6627. Milman.
  6628. - bpo-28231: The zipfile module now accepts path-like objects for external
  6629. paths.
  6630. - bpo-26915: index() and count() methods of collections.abc.Sequence now
  6631. check identity before checking equality when do comparisons.
  6632. - bpo-29615: SimpleXMLRPCDispatcher no longer chains KeyError (or any other
  6633. exception) to exception(s) raised in the dispatched methods. Patch by Petr
  6634. Motejlek.
  6635. - bpo-30177: path.resolve(strict=False) no longer cuts the path after the
  6636. first element not present in the filesystem. Patch by Antoine Pietri.
  6637. IDLE
  6638. ----
  6639. - bpo-15786: Fix several problems with IDLE's autocompletion box. The
  6640. following should now work: clicking on selection box items; using the
  6641. scrollbar; selecting an item by hitting Return. Hangs on MacOSX should no
  6642. longer happen. Patch by Louie Lu.
  6643. - bpo-25514: Add doc subsubsection about IDLE failure to start. Popup
  6644. no-connection message directs users to this section.
  6645. - bpo-30642: Fix reference leaks in IDLE tests. Patches by Louie Lu and
  6646. Terry Jan Reedy.
  6647. - bpo-30495: Add docstrings for textview.py and use PEP8 names. Patches by
  6648. Cheryl Sabella and Terry Jan Reedy.
  6649. - bpo-30290: Help-about: use pep8 names and add tests. Increase coverage to
  6650. 100%. Patches by Louie Lu, Cheryl Sabella, and Terry Jan Reedy.
  6651. - bpo-30303: Add _utest option to textview; add new tests. Increase coverage
  6652. to 100%. Patches by Louie Lu and Terry Jan Reedy.
  6653. C API
  6654. -----
  6655. - bpo-27867: Function PySlice_GetIndicesEx() no longer replaced with a macro
  6656. if Py_LIMITED_API is not set.
  6657. Build
  6658. -----
  6659. - bpo-29941: Add ``--with-assertions`` configure flag to explicitly enable C
  6660. ``assert()`` checks. Defaults to off. ``--with-pydebug`` implies
  6661. ``--with-assertions``.
  6662. - bpo-28787: Fix out-of-tree builds of Python when configured with
  6663. ``--with--dtrace``.
  6664. - bpo-29243: Prevent unnecessary rebuilding of Python during ``make test``,
  6665. ``make install`` and some other make targets when configured with
  6666. ``--enable-optimizations``.
  6667. - bpo-23404: Don't regenerate generated files based on file modification
  6668. time anymore: the action is now explicit. Replace ``make touch`` with
  6669. ``make regen-all``.
  6670. - bpo-29643: Fix ``--enable-optimization`` didn't work.
  6671. Documentation
  6672. -------------
  6673. - bpo-30176: Add missing attribute related constants in curses
  6674. documentation.
  6675. - bpo-30052: the link targets for :func:`bytes` and :func:`bytearray` are
  6676. now their respective type definitions, rather than the corresponding
  6677. builtin function entries. Use :ref:`bytes <func-bytes>` and
  6678. :ref:`bytearray <func-bytearray>` to reference the latter.
  6679. In order to ensure this and future cross-reference updates are applied
  6680. automatically, the daily documentation builds now disable the default
  6681. output caching features in Sphinx.
  6682. - bpo-26985: Add missing info of code object in inspect documentation.
  6683. Tools/Demos
  6684. -----------
  6685. - bpo-29367: python-gdb.py now supports also ``method-wrapper``
  6686. (``wrapperobject``) objects.
  6687. Tests
  6688. -----
  6689. - bpo-30357: test_thread: setUp() now uses support.threading_setup() and
  6690. support.threading_cleanup() to wait until threads complete to avoid random
  6691. side effects on following tests. Initial patch written by Grzegorz
  6692. Grzywacz.
  6693. - bpo-30197: Enhanced functions swap_attr() and swap_item() in the
  6694. test.support module. They now work when delete replaced attribute or item
  6695. inside the with statement. The old value of the attribute or item (or
  6696. None if it doesn't exist) now will be assigned to the target of the "as"
  6697. clause, if there is one.
  6698. Windows
  6699. -------
  6700. - bpo-30687: Locate msbuild.exe on Windows when building rather than
  6701. vcvarsall.bat
  6702. - bpo-30450: The build process on Windows no longer depends on Subversion,
  6703. instead pulling external code from GitHub via a Python script. If Python
  6704. 3.6 is not found on the system (via ``py -3.6``), NuGet is used to
  6705. download a copy of 32-bit Python.
  6706. What's New in Python 3.6.1 final?
  6707. =================================
  6708. *Release date: 2017-03-21*
  6709. Core and Builtins
  6710. -----------------
  6711. - bpo-29723: The ``sys.path[0]`` initialization change for bpo-29139 caused
  6712. a regression by revealing an inconsistency in how sys.path is initialized
  6713. when executing ``__main__`` from a zipfile, directory, or other import
  6714. location. The interpreter now consistently avoids ever adding the import
  6715. location's parent directory to ``sys.path``, and ensures no other
  6716. ``sys.path`` entries are inadvertently modified when inserting the import
  6717. location named on the command line.
  6718. Build
  6719. -----
  6720. - bpo-27593: fix format of git information used in sys.version
  6721. - Fix incompatible comment in python.h
  6722. What's New in Python 3.6.1 release candidate 1?
  6723. ===============================================
  6724. *Release date: 2017-03-04*
  6725. Core and Builtins
  6726. -----------------
  6727. - bpo-28893: Set correct __cause__ for errors about invalid awaitables
  6728. returned from __aiter__ and __anext__.
  6729. - bpo-29683: Fixes to memory allocation in _PyCode_SetExtra. Patch by Brian
  6730. Coleman.
  6731. - bpo-29684: Fix minor regression of PyEval_CallObjectWithKeywords. It
  6732. should raise TypeError when kwargs is not a dict. But it might cause segv
  6733. when args=NULL and kwargs is not a dict.
  6734. - bpo-28598: Support __rmod__ for subclasses of str being called before
  6735. str.__mod__. Patch by Martijn Pieters.
  6736. - bpo-29607: Fix stack_effect computation for CALL_FUNCTION_EX. Patch by
  6737. Matthieu Dartiailh.
  6738. - bpo-29602: Fix incorrect handling of signed zeros in complex constructor
  6739. for complex subclasses and for inputs having a __complex__ method. Patch
  6740. by Serhiy Storchaka.
  6741. - bpo-29347: Fixed possibly dereferencing undefined pointers when creating
  6742. weakref objects.
  6743. - bpo-29438: Fixed use-after-free problem in key sharing dict.
  6744. - bpo-29319: Prevent RunMainFromImporter overwriting sys.path[0].
  6745. - bpo-29337: Fixed possible BytesWarning when compare the code objects.
  6746. Warnings could be emitted at compile time.
  6747. - bpo-29327: Fixed a crash when pass the iterable keyword argument to
  6748. sorted().
  6749. - bpo-29034: Fix memory leak and use-after-free in os module
  6750. (path_converter).
  6751. - bpo-29159: Fix regression in bytes(x) when x.__index__() raises Exception.
  6752. - bpo-28932: Do not include <sys/random.h> if it does not exist.
  6753. - bpo-25677: Correct the positioning of the syntax error caret for indented
  6754. blocks. Based on patch by Michael Layzell.
  6755. - bpo-29000: Fixed bytes formatting of octals with zero padding in alternate
  6756. form.
  6757. - bpo-26919: On Android, operating system data is now always encoded/decoded
  6758. to/from UTF-8, instead of the locale encoding to avoid inconsistencies
  6759. with os.fsencode() and os.fsdecode() which are already using UTF-8.
  6760. - bpo-28991: functools.lru_cache() was susceptible to an obscure reentrancy
  6761. bug triggerable by a monkey-patched len() function.
  6762. - bpo-28739: f-string expressions are no longer accepted as docstrings and
  6763. by ast.literal_eval() even if they do not include expressions.
  6764. - bpo-28512: Fixed setting the offset attribute of SyntaxError by
  6765. PyErr_SyntaxLocationEx() and PyErr_SyntaxLocationObject().
  6766. - bpo-28918: Fix the cross compilation of xxlimited when Python has been
  6767. built with Py_DEBUG defined.
  6768. - bpo-28731: Optimize _PyDict_NewPresized() to create correct size dict.
  6769. Improve speed of dict literal with constant keys up to 30%.
  6770. Library
  6771. -------
  6772. - bpo-29169: Update zlib to 1.2.11.
  6773. - bpo-29623: Allow use of path-like object as a single argument in
  6774. ConfigParser.read(). Patch by David Ellis.
  6775. - bpo-28963: Fix out of bound iteration in
  6776. asyncio.Future.remove_done_callback implemented in C.
  6777. - bpo-29704: asyncio.subprocess.SubprocessStreamProtocol no longer closes
  6778. before all pipes are closed.
  6779. - bpo-29271: Fix Task.current_task and Task.all_tasks implemented in C to
  6780. accept None argument as their pure Python implementation.
  6781. - bpo-29703: Fix asyncio to support instantiation of new event loops in
  6782. child processes.
  6783. - bpo-29376: Fix assertion error in threading._DummyThread.is_alive().
  6784. - bpo-28624: Add a test that checks that cwd parameter of Popen() accepts
  6785. PathLike objects. Patch by Sayan Chowdhury.
  6786. - bpo-28518: Start a transaction implicitly before a DML statement. Patch by
  6787. Aviv Palivoda.
  6788. - bpo-29532: Altering a kwarg dictionary passed to functools.partial() no
  6789. longer affects a partial object after creation.
  6790. - bpo-29110: Fix file object leak in aifc.open() when file is given as a
  6791. filesystem path and is not in valid AIFF format. Patch by Anthony Zhang.
  6792. - bpo-28556: Various updates to typing module: typing.Counter,
  6793. typing.ChainMap, improved ABC caching, etc. Original PRs by Jelle
  6794. Zijlstra, Ivan Levkivskyi, Manuel Krebber, and Łukasz Langa.
  6795. - bpo-29100: Fix datetime.fromtimestamp() regression introduced in Python
  6796. 3.6.0: check minimum and maximum years.
  6797. - bpo-29519: Fix weakref spewing exceptions during interpreter shutdown when
  6798. used with a rare combination of multiprocessing and custom codecs.
  6799. - bpo-29416: Prevent infinite loop in pathlib.Path.mkdir
  6800. - bpo-29444: Fixed out-of-bounds buffer access in the group() method of the
  6801. match object. Based on patch by WGH.
  6802. - bpo-29335: Fix subprocess.Popen.wait() when the child process has exited
  6803. to a stopped instead of terminated state (ex: when under ptrace).
  6804. - bpo-29290: Fix a regression in argparse that help messages would wrap at
  6805. non-breaking spaces.
  6806. - bpo-28735: Fixed the comparison of mock.MagickMock with mock.ANY.
  6807. - bpo-29316: Restore the provisional status of typing module, add
  6808. corresponding note to documentation. Patch by Ivan L.
  6809. - bpo-29219: Fixed infinite recursion in the repr of uninitialized
  6810. ctypes.CDLL instances.
  6811. - bpo-29011: Fix an important omission by adding Deque to the typing module.
  6812. - bpo-28969: Fixed race condition in C implementation of
  6813. functools.lru_cache. KeyError could be raised when cached function with
  6814. full cache was simultaneously called from differen threads with the same
  6815. uncached arguments.
  6816. - bpo-29142: In urllib.request, suffixes in no_proxy environment variable
  6817. with leading dots could match related hostnames again (e.g. .b.c matches
  6818. a.b.c). Patch by Milan Oberkirch.
  6819. - bpo-28961: Fix unittest.mock._Call helper: don't ignore the name parameter
  6820. anymore. Patch written by Jiajun Huang.
  6821. - bpo-29203: functools.lru_cache() now respects PEP 468 and preserves the
  6822. order of keyword arguments. f(a=1, b=2) is now cached separately from
  6823. f(b=2, a=1) since both calls could potentially give different results.
  6824. - bpo-15812: inspect.getframeinfo() now correctly shows the first line of a
  6825. context. Patch by Sam Breese.
  6826. - bpo-29094: Offsets in a ZIP file created with extern file object and modes
  6827. "w" and "x" now are relative to the start of the file.
  6828. - bpo-29085: Allow random.Random.seed() to use high quality OS randomness
  6829. rather than the pid and time.
  6830. - bpo-29061: Fixed bug in secrets.randbelow() which would hang when given a
  6831. negative input. Patch by Brendan Donegan.
  6832. - bpo-29079: Prevent infinite loop in pathlib.resolve() on Windows
  6833. - bpo-13051: Fixed recursion errors in large or resized
  6834. curses.textpad.Textbox. Based on patch by Tycho Andersen.
  6835. - bpo-29119: Fix weakrefs in the pure python version of
  6836. collections.OrderedDict move_to_end() method. Contributed by Andra
  6837. Bogildea.
  6838. - bpo-9770: curses.ascii predicates now work correctly with negative
  6839. integers.
  6840. - bpo-28427: old keys should not remove new values from WeakValueDictionary
  6841. when collecting from another thread.
  6842. - bpo-28923: Remove editor artifacts from Tix.py.
  6843. - bpo-29055: Neaten-up empty population error on random.choice() by
  6844. suppressing the upstream exception.
  6845. - bpo-28871: Fixed a crash when deallocate deep ElementTree.
  6846. - bpo-19542: Fix bugs in WeakValueDictionary.setdefault() and
  6847. WeakValueDictionary.pop() when a GC collection happens in another thread.
  6848. - bpo-20191: Fixed a crash in resource.prlimit() when passing a sequence
  6849. that doesn't own its elements as limits.
  6850. - bpo-28779: multiprocessing.set_forkserver_preload() would crash the
  6851. forkserver process if a preloaded module instantiated some multiprocessing
  6852. objects such as locks.
  6853. - bpo-28847: dbm.dumb now supports reading read-only files and no longer
  6854. writes the index file when it is not changed.
  6855. - bpo-26937: The chown() method of the tarfile.TarFile class does not fail
  6856. now when the grp module cannot be imported, as for example on Android
  6857. platforms.
  6858. IDLE
  6859. ----
  6860. - bpo-29071: IDLE colors f-string prefixes (but not invalid ur prefixes).
  6861. - bpo-28572: Add 10% to coverage of IDLE's test_configdialog. Update and
  6862. augment description of the configuration system.
  6863. Windows
  6864. -------
  6865. - bpo-29579: Removes readme.txt from the installer
  6866. - bpo-29326: Ignores blank lines in ._pth files (Patch by Alexey Izbyshev)
  6867. - bpo-28164: Correctly handle special console filenames (patch by Eryk Sun)
  6868. - bpo-29409: Implement PEP 529 for io.FileIO (Patch by Eryk Sun)
  6869. - bpo-29392: Prevent crash when passing invalid arguments into msvcrt
  6870. module.
  6871. - bpo-25778: winreg does not truncate string correctly (Patch by Eryk Sun)
  6872. - bpo-28896: Deprecate WindowsRegistryFinder and disable it by default.
  6873. C API
  6874. -----
  6875. - bpo-27867: Function PySlice_GetIndicesEx() is replaced with a macro if
  6876. Py_LIMITED_API is not set or set to the value between 0x03050400 and
  6877. 0x03060000 (not including) or 0x03060100 or higher.
  6878. - bpo-29083: Fixed the declaration of some public API functions.
  6879. PyArg_VaParse() and PyArg_VaParseTupleAndKeywords() were not available in
  6880. limited API. PyArg_ValidateKeywordArguments(), PyArg_UnpackTuple() and
  6881. Py_BuildValue() were not available in limited API of version < 3.3 when
  6882. PY_SSIZE_T_CLEAN is defined.
  6883. - bpo-29058: All stable API extensions added after Python 3.2 are now
  6884. available only when Py_LIMITED_API is set to the PY_VERSION_HEX value of
  6885. the minimum Python version supporting this API.
  6886. Documentation
  6887. -------------
  6888. - bpo-28929: Link the documentation to its source file on GitHub.
  6889. - bpo-25008: Document smtpd.py as effectively deprecated and add a pointer
  6890. to aiosmtpd, a third-party asyncio-based replacement.
  6891. - bpo-26355: Add canonical header link on each page to corresponding major
  6892. version of the documentation. Patch by Matthias Bussonnier.
  6893. - bpo-29349: Fix Python 2 syntax in code for building the documentation.
  6894. Tests
  6895. -----
  6896. - bpo-28087: Skip test_asyncore and test_eintr poll failures on macOS. Skip
  6897. some tests of select.poll when running on macOS due to unresolved issues
  6898. with the underlying system poll function on some macOS versions.
  6899. - bpo-29571: to match the behaviour of the ``re.LOCALE`` flag,
  6900. test_re.test_locale_flag now uses ``locale.getpreferredencoding(False)``
  6901. to determine the candidate encoding for the test regex (allowing it to
  6902. correctly skip the test when the default locale encoding is a multi-byte
  6903. encoding)
  6904. - bpo-28950: Disallow -j0 to be combined with -T/-l in regrtest command line
  6905. arguments.
  6906. - bpo-28683: Fix the tests that bind() a unix socket and raise
  6907. PermissionError on Android for a non-root user.
  6908. - bpo-26939: Add the support.setswitchinterval() function to fix
  6909. test_functools hanging on the Android armv7 qemu emulator.
  6910. Build
  6911. -----
  6912. - bpo-27593: sys.version and the platform module python_build(),
  6913. python_branch(), and python_revision() functions now use git information
  6914. rather than hg when building from a repo.
  6915. - bpo-29572: Update Windows build and OS X installers to use OpenSSL 1.0.2k.
  6916. - bpo-26851: Set Android compilation and link flags.
  6917. - bpo-28768: Fix implicit declaration of function _setmode. Patch by
  6918. Masayuki Yamamoto
  6919. - bpo-29080: Removes hard dependency on hg.exe from PCBuild/build.bat
  6920. - bpo-23903: Added missed names to PC/python3.def.
  6921. - bpo-28762: lockf() is available on Android API level 24, but the F_LOCK
  6922. macro is not defined in android-ndk-r13.
  6923. - bpo-28538: Fix the compilation error that occurs because if_nameindex() is
  6924. available on Android API level 24, but the if_nameindex structure is not
  6925. defined.
  6926. - bpo-20211: Do not add the directory for installing C header files and the
  6927. directory for installing object code libraries to the cross compilation
  6928. search paths. Original patch by Thomas Petazzoni.
  6929. - bpo-28849: Do not define sys.implementation._multiarch on Android.
  6930. What's New in Python 3.6.0 final?
  6931. =================================
  6932. *Release date: 2016-12-23*
  6933. No changes since release candidate 2
  6934. What's New in Python 3.6.0 release candidate 2?
  6935. ===============================================
  6936. *Release date: 2016-12-16*
  6937. Core and Builtins
  6938. -----------------
  6939. - bpo-28147: Fix a memory leak in split-table dictionaries: setattr() must
  6940. not convert combined table into split table. Patch written by INADA Naoki.
  6941. - bpo-28990: Fix asyncio SSL hanging if connection is closed before
  6942. handshake is completed. (Patch by HoHo-Ho)
  6943. Tools/Demos
  6944. -----------
  6945. - bpo-28770: Fix python-gdb.py for fastcalls.
  6946. Windows
  6947. -------
  6948. - bpo-28896: Deprecate WindowsRegistryFinder.
  6949. Build
  6950. -----
  6951. - bpo-28898: Prevent gdb build errors due to HAVE_LONG_LONG redefinition.
  6952. What's New in Python 3.6.0 release candidate 1?
  6953. ===============================================
  6954. *Release date: 2016-12-06*
  6955. Core and Builtins
  6956. -----------------
  6957. - bpo-23722: Rather than silently producing a class that doesn't support
  6958. zero-argument ``super()`` in methods, failing to pass the new
  6959. ``__classcell__`` namespace entry up to ``type.__new__`` now results in a
  6960. ``DeprecationWarning`` and a class that supports zero-argument
  6961. ``super()``.
  6962. - bpo-28797: Modifying the class __dict__ inside the __set_name__ method of
  6963. a descriptor that is used inside that class no longer prevents calling the
  6964. __set_name__ method of other descriptors.
  6965. - bpo-28782: Fix a bug in the implementation ``yield from`` when checking if
  6966. the next instruction is YIELD_FROM. Regression introduced by WORDCODE
  6967. (issue #26647).
  6968. Library
  6969. -------
  6970. - bpo-27030: Unknown escapes in re.sub() replacement template are allowed
  6971. again. But they still are deprecated and will be disabled in 3.7.
  6972. - bpo-28835: Fix a regression introduced in warnings.catch_warnings(): call
  6973. warnings.showwarning() if it was overriden inside the context manager.
  6974. - bpo-27172: To assist with upgrades from 2.7, the previously documented
  6975. deprecation of ``inspect.getfullargspec()`` has been reversed. This
  6976. decision may be revisited again after the Python 2.7 branch is no longer
  6977. officially supported.
  6978. - bpo-26273: Add new :data:`socket.TCP_CONGESTION` (Linux 2.6.13) and
  6979. :data:`socket.TCP_USER_TIMEOUT` (Linux 2.6.37) constants. Patch written by
  6980. Omar Sandoval.
  6981. - bpo-24142: Reading a corrupt config file left configparser in an invalid
  6982. state. Original patch by Florian Höch.
  6983. - bpo-28843: Fix asyncio C Task to handle exceptions __traceback__.
  6984. C API
  6985. -----
  6986. - bpo-28808: PyUnicode_CompareWithASCIIString() now never raises exceptions.
  6987. Documentation
  6988. -------------
  6989. - bpo-23722: The data model reference and the porting section in the What's
  6990. New guide now cover the additional ``__classcell__`` handling needed for
  6991. custom metaclasses to fully support PEP 487 and zero-argument ``super()``.
  6992. Tools/Demos
  6993. -----------
  6994. - bpo-28023: Fix python-gdb.py didn't support new dict implementation.
  6995. What's New in Python 3.6.0 beta 4?
  6996. ==================================
  6997. *Release date: 2016-11-21*
  6998. Core and Builtins
  6999. -----------------
  7000. - bpo-28532: Show sys.version when -V option is supplied twice.
  7001. - bpo-27100: The with-statement now checks for __enter__ before it checks
  7002. for __exit__. This gives less confusing error messages when both methods
  7003. are missing. Patch by Jonathan Ellington.
  7004. - bpo-28746: Fix the set_inheritable() file descriptor method on platforms
  7005. that do not have the ioctl FIOCLEX and FIONCLEX commands.
  7006. - bpo-26920: Fix not getting the locale's charset upon initializing the
  7007. interpreter, on platforms that do not have langinfo.
  7008. - bpo-28648: Fixed crash in Py_DecodeLocale() in debug build on Mac OS X
  7009. when decode astral characters. Patch by Xiang Zhang.
  7010. - bpo-19398: Extra slash no longer added to sys.path components in case of
  7011. empty compile-time PYTHONPATH components.
  7012. - bpo-28665: Improve speed of the STORE_DEREF opcode by 40%.
  7013. - bpo-28583: PyDict_SetDefault didn't combine split table when needed. Patch
  7014. by Xiang Zhang.
  7015. - bpo-27243: Change PendingDeprecationWarning -> DeprecationWarning. As it
  7016. was agreed in the issue, __aiter__ returning an awaitable should result in
  7017. PendingDeprecationWarning in 3.5 and in DeprecationWarning in 3.6.
  7018. - bpo-26182: Fix a refleak in code that raises DeprecationWarning.
  7019. - bpo-28721: Fix asynchronous generators aclose() and athrow() to handle
  7020. StopAsyncIteration propagation properly.
  7021. Library
  7022. -------
  7023. - bpo-28752: Restored the __reduce__() methods of datetime objects.
  7024. - bpo-28727: Regular expression patterns, _sre.SRE_Pattern objects created
  7025. by re.compile(), become comparable (only x==y and x!=y operators). This
  7026. change should fix the issue #18383: don't duplicate warning filters when
  7027. the warnings module is reloaded (thing usually only done in unit tests).
  7028. - bpo-20572: The subprocess.Popen.wait method's undocumented endtime
  7029. parameter now raises a DeprecationWarning.
  7030. - bpo-25659: In ctypes, prevent a crash calling the from_buffer() and
  7031. from_buffer_copy() methods on abstract classes like Array.
  7032. - bpo-19717: Makes Path.resolve() succeed on paths that do not exist. Patch
  7033. by Vajrasky Kok
  7034. - bpo-28563: Fixed possible DoS and arbitrary code execution when handle
  7035. plural form selections in the gettext module. The expression parser now
  7036. supports exact syntax supported by GNU gettext.
  7037. - bpo-28387: Fixed possible crash in _io.TextIOWrapper deallocator when the
  7038. garbage collector is invoked in other thread. Based on patch by Sebastian
  7039. Cufre.
  7040. - bpo-28600: Optimize loop.call_soon.
  7041. - bpo-28613: Fix get_event_loop() return the current loop if called from
  7042. coroutines/callbacks.
  7043. - bpo-28634: Fix asyncio.isfuture() to support unittest.Mock.
  7044. - bpo-26081: Fix refleak in _asyncio.Future.__iter__().throw.
  7045. - bpo-28639: Fix inspect.isawaitable to always return bool Patch by Justin
  7046. Mayfield.
  7047. - bpo-28652: Make loop methods reject socket kinds they do not support.
  7048. - bpo-28653: Fix a refleak in functools.lru_cache.
  7049. - bpo-28703: Fix asyncio.iscoroutinefunction to handle Mock objects.
  7050. - bpo-28704: Fix create_unix_server to support Path-like objects (PEP 519).
  7051. - bpo-28720: Add collections.abc.AsyncGenerator.
  7052. Documentation
  7053. -------------
  7054. - bpo-28513: Documented command-line interface of zipfile.
  7055. Tests
  7056. -----
  7057. - bpo-28666: Now test.support.rmtree is able to remove unwritable or
  7058. unreadable directories.
  7059. - bpo-23839: Various caches now are cleared before running every test file.
  7060. Build
  7061. -----
  7062. - bpo-10656: Fix out-of-tree building on AIX. Patch by Tristan Carel and
  7063. Michael Haubenwallner.
  7064. - bpo-26359: Rename --with-optimiations to --enable-optimizations.
  7065. - bpo-28676: Prevent missing 'getentropy' declaration warning on macOS.
  7066. Patch by Gareth Rees.
  7067. What's New in Python 3.6.0 beta 3?
  7068. ==================================
  7069. *Release date: 2016-10-31*
  7070. Core and Builtins
  7071. -----------------
  7072. - bpo-28128: Deprecation warning for invalid str and byte escape sequences
  7073. now prints better information about where the error occurs. Patch by
  7074. Serhiy Storchaka and Eric Smith.
  7075. - bpo-28509: dict.update() no longer allocate unnecessary large memory.
  7076. - bpo-28426: Fixed potential crash in PyUnicode_AsDecodedObject() in debug
  7077. build.
  7078. - bpo-28517: Fixed of-by-one error in the peephole optimizer that caused
  7079. keeping unreachable code.
  7080. - bpo-28214: Improved exception reporting for problematic __set_name__
  7081. attributes.
  7082. - bpo-23782: Fixed possible memory leak in _PyTraceback_Add() and exception
  7083. loss in PyTraceBack_Here().
  7084. - bpo-28471: Fix "Python memory allocator called without holding the GIL"
  7085. crash in socket.setblocking.
  7086. Library
  7087. -------
  7088. - bpo-27517: LZMA compressor and decompressor no longer raise exceptions if
  7089. given empty data twice. Patch by Benjamin Fogle.
  7090. - bpo-28549: Fixed segfault in curses's addch() with ncurses6.
  7091. - bpo-28449: tarfile.open() with mode "r" or "r:" now tries to open a tar
  7092. file with compression before trying to open it without compression.
  7093. Otherwise it had 50% chance failed with ignore_zeros=True.
  7094. - bpo-23262: The webbrowser module now supports Firefox 36+ and derived
  7095. browsers. Based on patch by Oleg Broytman.
  7096. - bpo-27939: Fixed bugs in tkinter.ttk.LabeledScale and tkinter.Scale caused
  7097. by representing the scale as float value internally in Tk. tkinter.IntVar
  7098. now works if float value is set to underlying Tk variable.
  7099. - bpo-18844: The various ways of specifying weights for random.choices() now
  7100. produce the same result sequences.
  7101. - bpo-28255: calendar.TextCalendar().prmonth() no longer prints a space at
  7102. the start of new line after printing a month's calendar. Patch by Xiang
  7103. Zhang.
  7104. - bpo-20491: The textwrap.TextWrapper class now honors non-breaking spaces.
  7105. Based on patch by Kaarle Ritvanen.
  7106. - bpo-28353: os.fwalk() no longer fails on broken links.
  7107. - bpo-28430: Fix iterator of C implemented asyncio.Future doesn't accept
  7108. non-None value is passed to it.send(val).
  7109. - bpo-27025: Generated names for Tkinter widgets now start by the "!" prefix
  7110. for readability.
  7111. - bpo-25464: Fixed HList.header_exists() in tkinter.tix module by addin a
  7112. workaround to Tix library bug.
  7113. - bpo-28488: shutil.make_archive() no longer adds entry "./" to ZIP archive.
  7114. - bpo-25953: re.sub() now raises an error for invalid numerical group
  7115. reference in replacement template even if the pattern is not found in the
  7116. string. Error message for invalid group reference now includes the group
  7117. index and the position of the reference. Based on patch by SilentGhost.
  7118. - bpo-18219: Optimize csv.DictWriter for large number of columns. Patch by
  7119. Mariatta Wijaya.
  7120. - bpo-28448: Fix C implemented asyncio.Future didn't work on Windows.
  7121. - bpo-28480: Fix error building socket module when multithreading is
  7122. disabled.
  7123. - bpo-24452: Make webbrowser support Chrome on Mac OS X.
  7124. - bpo-20766: Fix references leaked by pdb in the handling of SIGINT
  7125. handlers.
  7126. - bpo-28492: Fix how StopIteration exception is raised in _asyncio.Future.
  7127. - bpo-28500: Fix asyncio to handle async gens GC from another thread.
  7128. - bpo-26923: Fix asyncio.Gather to refuse being cancelled once all children
  7129. are done. Patch by Johannes Ebke.
  7130. - bpo-26796: Don't configure the number of workers for default threadpool
  7131. executor. Initial patch by Hans Lawrenz.
  7132. - bpo-28544: Implement asyncio.Task in C.
  7133. Windows
  7134. -------
  7135. - bpo-28522: Fixes mishandled buffer reallocation in getpathp.c
  7136. Build
  7137. -----
  7138. - bpo-28444: Fix missing extensions modules when cross compiling.
  7139. - bpo-28208: Update Windows build and OS X installers to use SQLite 3.14.2.
  7140. - bpo-28248: Update Windows build and OS X installers to use OpenSSL 1.0.2j.
  7141. Tests
  7142. -----
  7143. - bpo-26944: Fix test_posix for Android where 'id -G' is entirely wrong or
  7144. missing the effective gid.
  7145. - bpo-28409: regrtest: fix the parser of command line arguments.
  7146. What's New in Python 3.6.0 beta 2?
  7147. ==================================
  7148. *Release date: 2016-10-10*
  7149. Core and Builtins
  7150. -----------------
  7151. - bpo-28183: Optimize and cleanup dict iteration.
  7152. - bpo-26081: Added C implementation of asyncio.Future. Original patch by
  7153. Yury Selivanov.
  7154. - bpo-28379: Added sanity checks and tests for PyUnicode_CopyCharacters().
  7155. Patch by Xiang Zhang.
  7156. - bpo-28376: The type of long range iterator is now registered as Iterator.
  7157. Patch by Oren Milman.
  7158. - bpo-28376: Creating instances of range_iterator by calling range_iterator
  7159. type now is deprecated. Patch by Oren Milman.
  7160. - bpo-28376: The constructor of range_iterator now checks that step is not
  7161. 0. Patch by Oren Milman.
  7162. - bpo-26906: Resolving special methods of uninitialized type now causes
  7163. implicit initialization of the type instead of a fail.
  7164. - bpo-18287: PyType_Ready() now checks that tp_name is not NULL. Original
  7165. patch by Niklas Koep.
  7166. - bpo-24098: Fixed possible crash when AST is changed in process of
  7167. compiling it.
  7168. - bpo-28201: Dict reduces possibility of 2nd conflict in hash table when
  7169. hashes have same lower bits.
  7170. - bpo-28350: String constants with null character no longer interned.
  7171. - bpo-26617: Fix crash when GC runs during weakref callbacks.
  7172. - bpo-27942: String constants now interned recursively in tuples and
  7173. frozensets.
  7174. - bpo-21578: Fixed misleading error message when ImportError called with
  7175. invalid keyword args.
  7176. - bpo-28203: Fix incorrect type in complex(1.0, {2:3}) error message. Patch
  7177. by Soumya Sharma.
  7178. - bpo-28086: Single var-positional argument of tuple subtype was passed
  7179. unscathed to the C-defined function. Now it is converted to exact tuple.
  7180. - bpo-28214: Now __set_name__ is looked up on the class instead of the
  7181. instance.
  7182. - bpo-27955: Fallback on reading /dev/urandom device when the getrandom()
  7183. syscall fails with EPERM, for example when blocked by SECCOMP.
  7184. - bpo-28192: Don't import readline in isolated mode.
  7185. - Upgrade internal unicode databases to Unicode version 9.0.0.
  7186. - bpo-28131: Fix a regression in zipimport's compile_source(). zipimport
  7187. should use the same optimization level as the interpreter.
  7188. - bpo-28126: Replace Py_MEMCPY with memcpy(). Visual Studio can properly
  7189. optimize memcpy().
  7190. - bpo-28120: Fix dict.pop() for splitted dictionary when trying to remove a
  7191. "pending key" (Not yet inserted in split-table). Patch by Xiang Zhang.
  7192. - bpo-26182: Raise DeprecationWarning when async and await keywords are used
  7193. as variable/attribute/class/function name.
  7194. Library
  7195. -------
  7196. - bpo-27998: Fixed bytes path support in os.scandir() on Windows. Patch by
  7197. Eryk Sun.
  7198. - bpo-28317: The disassembler now decodes FORMAT_VALUE argument.
  7199. - bpo-26293: Fixed writing ZIP files that starts not from the start of the
  7200. file. Offsets in ZIP file now are relative to the start of the archive in
  7201. conforming to the specification.
  7202. - bpo-28380: unittest.mock Mock autospec functions now properly support
  7203. assert_called, assert_not_called, and assert_called_once.
  7204. - bpo-27181: remove statistics.geometric_mean and defer until 3.7.
  7205. - bpo-28229: lzma module now supports pathlib.
  7206. - bpo-28321: Fixed writing non-BMP characters with binary format in
  7207. plistlib.
  7208. - bpo-28225: bz2 module now supports pathlib. Initial patch by Ethan
  7209. Furman.
  7210. - bpo-28227: gzip now supports pathlib. Patch by Ethan Furman.
  7211. - bpo-27358: Optimized merging var-keyword arguments and improved error
  7212. message when passing a non-mapping as a var-keyword argument.
  7213. - bpo-28257: Improved error message when passing a non-iterable as a
  7214. var-positional argument. Added opcode BUILD_TUPLE_UNPACK_WITH_CALL.
  7215. - bpo-28322: Fixed possible crashes when unpickle itertools objects from
  7216. incorrect pickle data. Based on patch by John Leitch.
  7217. - bpo-28228: imghdr now supports pathlib.
  7218. - bpo-28226: compileall now supports pathlib.
  7219. - bpo-28314: Fix function declaration (C flags) for the getiterator() method
  7220. of xml.etree.ElementTree.Element.
  7221. - bpo-28148: Stop using localtime() and gmtime() in the time module.
  7222. Introduced platform independent _PyTime_localtime API that is similar to
  7223. POSIX localtime_r, but available on all platforms. Patch by Ed Schouten.
  7224. - bpo-28253: Fixed calendar functions for extreme months: 0001-01 and
  7225. 9999-12.
  7226. Methods itermonthdays() and itermonthdays2() are reimplemented so that
  7227. they don't call itermonthdates() which can cause datetime.date
  7228. under/overflow.
  7229. - bpo-28275: Fixed possible use after free in the decompress() methods of
  7230. the LZMADecompressor and BZ2Decompressor classes. Original patch by John
  7231. Leitch.
  7232. - bpo-27897: Fixed possible crash in sqlite3.Connection.create_collation()
  7233. if pass invalid string-like object as a name. Patch by Xiang Zhang.
  7234. - bpo-18844: random.choices() now has k as a keyword-only argument to
  7235. improve the readability of common cases and come into line with the
  7236. signature used in other languages.
  7237. - bpo-18893: Fix invalid exception handling in Lib/ctypes/macholib/dyld.py.
  7238. Patch by Madison May.
  7239. - bpo-27611: Fixed support of default root window in the tkinter.tix module.
  7240. Added the master parameter in the DisplayStyle constructor.
  7241. - bpo-27348: In the traceback module, restore the formatting of exception
  7242. messages like "Exception: None". This fixes a regression introduced in
  7243. 3.5a2.
  7244. - bpo-25651: Allow falsy values to be used for msg parameter of subTest().
  7245. - bpo-27778: Fix a memory leak in os.getrandom() when the getrandom() is
  7246. interrupted by a signal and a signal handler raises a Python exception.
  7247. - bpo-28200: Fix memory leak on Windows in the os module (fix
  7248. path_converter() function).
  7249. - bpo-25400: RobotFileParser now correctly returns default values for
  7250. crawl_delay and request_rate. Initial patch by Peter Wirtz.
  7251. - bpo-27932: Prevent memory leak in win32_ver().
  7252. - Fix UnboundLocalError in socket._sendfile_use_sendfile.
  7253. - bpo-28075: Check for ERROR_ACCESS_DENIED in Windows implementation of
  7254. os.stat(). Patch by Eryk Sun.
  7255. - bpo-22493: Warning message emitted by using inline flags in the middle of
  7256. regular expression now contains a (truncated) regex pattern. Patch by Tim
  7257. Graham.
  7258. - bpo-25270: Prevent codecs.escape_encode() from raising SystemError when an
  7259. empty bytestring is passed.
  7260. - bpo-28181: Get antigravity over HTTPS. Patch by Kaartic Sivaraam.
  7261. - bpo-25895: Enable WebSocket URL schemes in urllib.parse.urljoin. Patch by
  7262. Gergely Imreh and Markus Holtermann.
  7263. - bpo-28114: Fix a crash in parse_envlist() when env contains byte strings.
  7264. Patch by Eryk Sun.
  7265. - bpo-27599: Fixed buffer overrun in binascii.b2a_qp() and
  7266. binascii.a2b_qp().
  7267. - bpo-27906: Fix socket accept exhaustion during high TCP traffic. Patch by
  7268. Kevin Conway.
  7269. - bpo-28174: Handle when SO_REUSEPORT isn't properly supported. Patch by
  7270. Seth Michael Larson.
  7271. - bpo-26654: Inspect functools.partial in asyncio.Handle.__repr__. Patch by
  7272. iceboy.
  7273. - bpo-26909: Fix slow pipes IO in asyncio. Patch by INADA Naoki.
  7274. - bpo-28176: Fix callbacks race in asyncio.SelectorLoop.sock_connect.
  7275. - bpo-27759: Fix selectors incorrectly retain invalid file descriptors.
  7276. Patch by Mark Williams.
  7277. - bpo-28368: Refuse monitoring processes if the child watcher has no loop
  7278. attached. Patch by Vincent Michel.
  7279. - bpo-28369: Raise RuntimeError when transport's FD is used with add_reader,
  7280. add_writer, etc.
  7281. - bpo-28370: Speedup asyncio.StreamReader.readexactly. Patch by Коренберг
  7282. Марк.
  7283. - bpo-28371: Deprecate passing asyncio.Handles to run_in_executor.
  7284. - bpo-28372: Fix asyncio to support formatting of non-python coroutines.
  7285. - bpo-28399: Remove UNIX socket from FS before binding. Patch by Коренберг
  7286. Марк.
  7287. - bpo-27972: Prohibit Tasks to await on themselves.
  7288. Windows
  7289. -------
  7290. - bpo-28402: Adds signed catalog files for stdlib on Windows.
  7291. - bpo-28333: Enables Unicode for ps1/ps2 and input() prompts. (Patch by Eryk
  7292. Sun)
  7293. - bpo-28251: Improvements to help manuals on Windows.
  7294. - bpo-28110: launcher.msi has different product codes between 32-bit and
  7295. 64-bit
  7296. - bpo-28161: Opening CON for write access fails
  7297. - bpo-28162: WindowsConsoleIO readall() fails if first line starts with
  7298. Ctrl+Z
  7299. - bpo-28163: WindowsConsoleIO fileno() passes wrong flags to _open_osfhandle
  7300. - bpo-28164: _PyIO_get_console_type fails for various paths
  7301. - bpo-28137: Renames Windows path file to ._pth
  7302. - bpo-28138: Windows ._pth file should allow import site
  7303. C API
  7304. -----
  7305. - bpo-28426: Deprecated undocumented functions PyUnicode_AsEncodedObject(),
  7306. PyUnicode_AsDecodedObject(), PyUnicode_AsDecodedUnicode() and
  7307. PyUnicode_AsEncodedUnicode().
  7308. Build
  7309. -----
  7310. - bpo-28258: Fixed build with Estonian locale (python-config and distclean
  7311. targets in Makefile). Patch by Arfrever Frehtes Taifersar Arahesis.
  7312. - bpo-26661: setup.py now detects system libffi with multiarch wrapper.
  7313. - bpo-15819: Remove redundant include search directory option for building
  7314. outside the source tree.
  7315. Tests
  7316. -----
  7317. - bpo-28217: Adds _testconsole module to test console input.
  7318. What's New in Python 3.6.0 beta 1?
  7319. ==================================
  7320. *Release date: 2016-09-12*
  7321. Core and Builtins
  7322. -----------------
  7323. - bpo-23722: The __class__ cell used by zero-argument super() is now
  7324. initialized from type.__new__ rather than __build_class__, so class
  7325. methods relying on that will now work correctly when called from metaclass
  7326. methods during class creation. Patch by Martin Teichmann.
  7327. - bpo-25221: Fix corrupted result from PyLong_FromLong(0) when Python is
  7328. compiled with NSMALLPOSINTS = 0.
  7329. - bpo-27080: Implement formatting support for PEP 515. Initial patch by
  7330. Chris Angelico.
  7331. - bpo-27199: In tarfile, expose copyfileobj bufsize to improve throughput.
  7332. Patch by Jason Fried.
  7333. - bpo-27948: In f-strings, only allow backslashes inside the braces (where
  7334. the expressions are). This is a breaking change from the 3.6 alpha
  7335. releases, where backslashes are allowed anywhere in an f-string. Also,
  7336. require that expressions inside f-strings be enclosed within literal
  7337. braces, and not escapes like ``f'\x7b"hi"\x7d'``.
  7338. - bpo-28046: Remove platform-specific directories from sys.path.
  7339. - bpo-28071: Add early-out for differencing from an empty set.
  7340. - bpo-25758: Prevents zipimport from unnecessarily encoding a filename
  7341. (patch by Eryk Sun)
  7342. - bpo-25856: The __module__ attribute of extension classes and functions now
  7343. is interned. This leads to more compact pickle data with protocol 4.
  7344. - bpo-27213: Rework CALL_FUNCTION* opcodes to produce shorter and more
  7345. efficient bytecode. Patch by Demur Rumed, design by Serhiy Storchaka,
  7346. reviewed by Serhiy Storchaka and Victor Stinner.
  7347. - bpo-26331: Implement tokenizing support for PEP 515. Patch by Georg
  7348. Brandl.
  7349. - bpo-27999: Make "global after use" a SyntaxError, and ditto for nonlocal.
  7350. Patch by Ivan Levkivskyi.
  7351. - bpo-28003: Implement PEP 525 -- Asynchronous Generators.
  7352. - bpo-27985: Implement PEP 526 -- Syntax for Variable Annotations. Patch by
  7353. Ivan Levkivskyi.
  7354. - bpo-26058: Add a new private version to the builtin dict type, incremented
  7355. at each dictionary creation and at each dictionary change. Implementation
  7356. of the PEP 509.
  7357. - bpo-27364: A backslash-character pair that is not a valid escape sequence
  7358. now generates a DeprecationWarning. Patch by Emanuel Barry.
  7359. - bpo-27350: `dict` implementation is changed like PyPy. It is more compact
  7360. and preserves insertion order. (Concept developed by Raymond Hettinger and
  7361. patch by Inada Naoki.)
  7362. - bpo-27911: Remove unnecessary error checks in
  7363. ``exec_builtin_or_dynamic()``.
  7364. - bpo-27078: Added BUILD_STRING opcode. Optimized f-strings evaluation.
  7365. - bpo-17884: Python now requires systems with inttypes.h and stdint.h
  7366. - bpo-27961: Require platforms to support ``long long``. Python hasn't
  7367. compiled without ``long long`` for years, so this is basically a
  7368. formality.
  7369. - bpo-27355: Removed support for Windows CE. It was never finished, and
  7370. Windows CE is no longer a relevant platform for Python.
  7371. - Implement PEP 523.
  7372. - bpo-27870: A left shift of zero by a large integer no longer attempts to
  7373. allocate large amounts of memory.
  7374. - bpo-25402: In int-to-decimal-string conversion, improve the estimate of
  7375. the intermediate memory required, and remove an unnecessarily strict
  7376. overflow check. Patch by Serhiy Storchaka.
  7377. - bpo-27214: In long_invert, be more careful about modifying object returned
  7378. by long_add, and remove an unnecessary check for small longs. Thanks Oren
  7379. Milman for analysis and patch.
  7380. - bpo-27506: Support passing the bytes/bytearray.translate() "delete"
  7381. argument by keyword.
  7382. - bpo-27812: Properly clear out a generator's frame's backreference to the
  7383. generator to prevent crashes in frame.clear().
  7384. - bpo-27811: Fix a crash when a coroutine that has not been awaited is
  7385. finalized with warnings-as-errors enabled.
  7386. - bpo-27587: Fix another issue found by PVS-Studio: Null pointer check after
  7387. use of 'def' in _PyState_AddModule(). Initial patch by Christian Heimes.
  7388. - bpo-27792: The modulo operation applied to ``bool`` and other ``int``
  7389. subclasses now always returns an ``int``. Previously the return type
  7390. depended on the input values. Patch by Xiang Zhang.
  7391. - bpo-26984: int() now always returns an instance of exact int.
  7392. - bpo-25604: Fix a minor bug in integer true division; this bug could
  7393. potentially have caused off-by-one-ulp results on platforms with
  7394. unreliable ldexp implementations.
  7395. - bpo-24254: Make class definition namespace ordered by default.
  7396. - bpo-27662: Fix an overflow check in ``List_New``: the original code was
  7397. checking against ``Py_SIZE_MAX`` instead of the correct upper bound of
  7398. ``Py_SSIZE_T_MAX``. Patch by Xiang Zhang.
  7399. - bpo-27782: Multi-phase extension module import now correctly allows the
  7400. ``m_methods`` field to be used to add module level functions to instances
  7401. of non-module types returned from ``Py_create_mod``. Patch by Xiang Zhang.
  7402. - bpo-27936: The round() function accepted a second None argument for some
  7403. types but not for others. Fixed the inconsistency by accepting None for
  7404. all numeric types.
  7405. - bpo-27487: Warn if a submodule argument to "python -m" or
  7406. runpy.run_module() is found in sys.modules after parent packages are
  7407. imported, but before the submodule is executed.
  7408. - bpo-27157: Make only type() itself accept the one-argument form. Patch by
  7409. Eryk Sun and Emanuel Barry.
  7410. - bpo-27558: Fix a SystemError in the implementation of "raise" statement.
  7411. In a brand new thread, raise a RuntimeError since there is no active
  7412. exception to reraise. Patch written by Xiang Zhang.
  7413. - bpo-28008: Implement PEP 530 -- asynchronous comprehensions.
  7414. - bpo-27942: Fix memory leak in codeobject.c
  7415. Library
  7416. -------
  7417. - bpo-28732: Fix crash in os.spawnv() with no elements in args
  7418. - bpo-28485: Always raise ValueError for negative
  7419. compileall.compile_dir(workers=...) parameter, even when multithreading is
  7420. unavailable.
  7421. - bpo-28037: Use sqlite3_get_autocommit() instead of setting
  7422. Connection->inTransaction manually.
  7423. - bpo-25283: Attributes tm_gmtoff and tm_zone are now available on all
  7424. platforms in the return values of time.localtime() and time.gmtime().
  7425. - bpo-24454: Regular expression match object groups are now accessible using
  7426. __getitem__. "mo[x]" is equivalent to "mo.group(x)".
  7427. - bpo-10740: sqlite3 no longer implicitly commit an open transaction before
  7428. DDL statements.
  7429. - bpo-17941: Add a *module* parameter to collections.namedtuple().
  7430. - bpo-22493: Inline flags now should be used only at the start of the
  7431. regular expression. Deprecation warning is emitted if uses them in the
  7432. middle of the regular expression.
  7433. - bpo-26885: xmlrpc now supports unmarshalling additional data types used by
  7434. Apache XML-RPC implementation for numerics and None.
  7435. - bpo-28070: Fixed parsing inline verbose flag in regular expressions.
  7436. - bpo-19500: Add client-side SSL session resumption to the ssl module.
  7437. - bpo-28022: Deprecate ssl-related arguments in favor of SSLContext. The
  7438. deprecation include manual creation of SSLSocket and certfile/keyfile (or
  7439. similar) in ftplib, httplib, imaplib, smtplib, poplib and urllib.
  7440. - bpo-28043: SSLContext has improved default settings: OP_NO_SSLv2,
  7441. OP_NO_SSLv3, OP_NO_COMPRESSION, OP_CIPHER_SERVER_PREFERENCE,
  7442. OP_SINGLE_DH_USE, OP_SINGLE_ECDH_USE and HIGH ciphers without MD5.
  7443. - bpo-24693: Changed some RuntimeError's in the zipfile module to more
  7444. appropriate types. Improved some error messages and debugging output.
  7445. - bpo-17909: ``json.load`` and ``json.loads`` now support binary input
  7446. encoded as UTF-8, UTF-16 or UTF-32. Patch by Serhiy Storchaka.
  7447. - bpo-27137: the pure Python fallback implementation of
  7448. ``functools.partial`` now matches the behaviour of its accelerated C
  7449. counterpart for subclassing, pickling and text representation purposes.
  7450. Patch by Emanuel Barry and Serhiy Storchaka.
  7451. - Fix possible integer overflows and crashes in the mmap module with unusual
  7452. usage patterns.
  7453. - bpo-1703178: Fix the ability to pass the --link-objects option to the
  7454. distutils build_ext command.
  7455. - bpo-28019: itertools.count() no longer rounds non-integer step in range
  7456. between 1.0 and 2.0 to 1.
  7457. - bpo-18401: Pdb now supports the 'readrc' keyword argument to control
  7458. whether .pdbrc files should be read. Patch by Martin Matusiak and Sam
  7459. Kimbrel.
  7460. - bpo-25969: Update the lib2to3 grammar to handle the unpacking
  7461. generalizations added in 3.5.
  7462. - bpo-14977: mailcap now respects the order of the lines in the mailcap
  7463. files ("first match"), as required by RFC 1542. Patch by Michael Lazar.
  7464. - bpo-28082: Convert re flag constants to IntFlag.
  7465. - bpo-28025: Convert all ssl module constants to IntEnum and IntFlags.
  7466. SSLContext properties now return flags and enums.
  7467. - bpo-23591: Add Flag, IntFlag, and auto() to enum module.
  7468. - bpo-433028: Added support of modifier spans in regular expressions.
  7469. - bpo-24594: Validates persist parameter when opening MSI database
  7470. - bpo-17582: xml.etree.ElementTree nows preserves whitespaces in attributes
  7471. (Patch by Duane Griffin. Reviewed and approved by Stefan Behnel.)
  7472. - bpo-28047: Fixed calculation of line length used for the base64 CTE in the
  7473. new email policies.
  7474. - bpo-27576: Fix call order in OrderedDict.__init__().
  7475. - email.generator.DecodedGenerator now supports the policy keyword.
  7476. - bpo-28027: Remove undocumented modules from ``Lib/plat-*``: IN, CDROM,
  7477. DLFCN, TYPES, CDIO, and STROPTS.
  7478. - bpo-27445: Don't pass str(_charset) to MIMEText.set_payload(). Patch by
  7479. Claude Paroz.
  7480. - bpo-24277: The new email API is no longer provisional, and the docs have
  7481. been reorganized and rewritten to emphasize the new API.
  7482. - bpo-22450: urllib now includes an ``Accept: */*`` header among the default
  7483. headers. This makes the results of REST API requests more consistent and
  7484. predictable especially when proxy servers are involved.
  7485. - lib2to3.pgen3.driver.load_grammar() now creates a stable cache file
  7486. between runs given the same Grammar.txt input regardless of the hash
  7487. randomization setting.
  7488. - bpo-28005: Allow ImportErrors in encoding implementation to propagate.
  7489. - bpo-26667: Support path-like objects in importlib.util.
  7490. - bpo-27570: Avoid zero-length memcpy() etc calls with null source pointers
  7491. in the "ctypes" and "array" modules.
  7492. - bpo-22233: Break email header lines *only* on the RFC specified CR and LF
  7493. characters, not on arbitrary unicode line breaks. This also fixes a bug
  7494. in HTTP header parsing.
  7495. - bpo-27331: The email.mime classes now all accept an optional policy
  7496. keyword.
  7497. - bpo-27988: Fix email iter_attachments incorrect mutation of payload list.
  7498. - bpo-16113: Add SHA-3 and SHAKE support to hashlib module.
  7499. - Eliminate a tautological-pointer-compare warning in _scproxy.c.
  7500. - bpo-27776: The :func:`os.urandom` function does now block on Linux 3.17
  7501. and newer until the system urandom entropy pool is initialized to increase
  7502. the security. This change is part of the :pep:`524`.
  7503. - bpo-27778: Expose the Linux ``getrandom()`` syscall as a new
  7504. :func:`os.getrandom` function. This change is part of the :pep:`524`.
  7505. - bpo-27691: Fix ssl module's parsing of GEN_RID subject alternative name
  7506. fields in X.509 certs.
  7507. - bpo-18844: Add random.choices().
  7508. - bpo-25761: Improved error reporting about truncated pickle data in C
  7509. implementation of unpickler. UnpicklingError is now raised instead of
  7510. AttributeError and ValueError in some cases.
  7511. - bpo-26798: Add BLAKE2 (blake2b and blake2s) to hashlib.
  7512. - bpo-26032: Optimized globbing in pathlib by using os.scandir(); it is now
  7513. about 1.5--4 times faster.
  7514. - bpo-25596: Optimized glob() and iglob() functions in the glob module; they
  7515. are now about 3--6 times faster.
  7516. - bpo-27928: Add scrypt (password-based key derivation function) to hashlib
  7517. module (requires OpenSSL 1.1.0).
  7518. - bpo-27850: Remove 3DES from ssl module's default cipher list to counter
  7519. measure sweet32 attack (CVE-2016-2183).
  7520. - bpo-27766: Add ChaCha20 Poly1305 to ssl module's default cipher list.
  7521. (Required OpenSSL 1.1.0 or LibreSSL).
  7522. - bpo-25387: Check return value of winsound.MessageBeep.
  7523. - bpo-27866: Add SSLContext.get_ciphers() method to get a list of all
  7524. enabled ciphers.
  7525. - bpo-27744: Add AF_ALG (Linux Kernel crypto) to socket module.
  7526. - bpo-26470: Port ssl and hashlib module to OpenSSL 1.1.0.
  7527. - bpo-11620: Fix support for SND_MEMORY in winsound.PlaySound. Based on a
  7528. patch by Tim Lesher.
  7529. - bpo-11734: Add support for IEEE 754 half-precision floats to the struct
  7530. module. Based on a patch by Eli Stevens.
  7531. - bpo-27919: Deprecated ``extra_path`` distribution option in distutils
  7532. packaging.
  7533. - bpo-23229: Add new ``cmath`` constants: ``cmath.inf`` and ``cmath.nan`` to
  7534. match ``math.inf`` and ``math.nan``, and also ``cmath.infj`` and
  7535. ``cmath.nanj`` to match the format used by complex repr.
  7536. - bpo-27842: The csv.DictReader now returns rows of type OrderedDict.
  7537. (Contributed by Steve Holden.)
  7538. - Remove support for passing a file descriptor to os.access. It never worked
  7539. but previously didn't raise.
  7540. - bpo-12885: Fix error when distutils encounters symlink.
  7541. - bpo-27881: Fixed possible bugs when setting
  7542. sqlite3.Connection.isolation_level. Based on patch by Xiang Zhang.
  7543. - bpo-27861: Fixed a crash in sqlite3.Connection.cursor() when a factory
  7544. creates not a cursor. Patch by Xiang Zhang.
  7545. - bpo-19884: Avoid spurious output on OS X with Gnu Readline.
  7546. - bpo-27706: Restore deterministic behavior of random.Random().seed() for
  7547. string seeds using seeding version 1. Allows sequences of calls to
  7548. random() to exactly match those obtained in Python 2. Patch by Nofar
  7549. Schnider.
  7550. - bpo-10513: Fix a regression in Connection.commit(). Statements should not
  7551. be reset after a commit.
  7552. - bpo-12319: Chunked transfer encoding support added to
  7553. http.client.HTTPConnection requests. The
  7554. urllib.request.AbstractHTTPHandler class does not enforce a Content-Length
  7555. header any more. If a HTTP request has a file or iterable body, but no
  7556. Content-Length header, the library now falls back to use chunked
  7557. transfer-encoding.
  7558. - A new version of typing.py from https://github.com/python/typing: -
  7559. Collection (only for 3.6) (Issue #27598) - Add FrozenSet to __all__
  7560. (upstream #261) - fix crash in _get_type_vars() (upstream #259) - Remove
  7561. the dict constraint in ForwardRef._eval_type (upstream #252)
  7562. - bpo-27832: Make ``_normalize`` parameter to ``Fraction`` constuctor
  7563. keyword-only, so that ``Fraction(2, 3, 4)`` now raises ``TypeError``.
  7564. - bpo-27539: Fix unnormalised ``Fraction.__pow__`` result in the case of
  7565. negative exponent and negative base.
  7566. - bpo-21718: cursor.description is now available for queries using CTEs.
  7567. - bpo-27819: In distutils sdists, simply produce the "gztar" (gzipped tar
  7568. format) distributions on all platforms unless "formats" is supplied.
  7569. - bpo-2466: posixpath.ismount now correctly recognizes mount points which
  7570. the user does not have permission to access.
  7571. - bpo-9998: On Linux, ctypes.util.find_library now looks in LD_LIBRARY_PATH
  7572. for shared libraries.
  7573. - bpo-27573: exit message for code.interact is now configurable.
  7574. - bpo-27930: Improved behaviour of logging.handlers.QueueListener. Thanks to
  7575. Paulo Andrade and Petr Viktorin for the analysis and patch.
  7576. - bpo-6766: Distributed reference counting added to multiprocessing to
  7577. support nesting of shared values / proxy objects.
  7578. - bpo-21201: Improves readability of multiprocessing error message. Thanks
  7579. to Wojciech Walczak for patch.
  7580. - asyncio: Add set_protocol / get_protocol to Transports.
  7581. - bpo-27456: asyncio: Set TCP_NODELAY by default.
  7582. IDLE
  7583. ----
  7584. - bpo-15308: Add 'interrupt execution' (^C) to Shell menu. Patch by Roger
  7585. Serwy, updated by Bayard Randel.
  7586. - bpo-27922: Stop IDLE tests from 'flashing' gui widgets on the screen.
  7587. - bpo-27891: Consistently group and sort imports within idlelib modules.
  7588. - bpo-17642: add larger font sizes for classroom projection.
  7589. - Add version to title of IDLE help window.
  7590. - bpo-25564: In section on IDLE -- console differences, mention that using
  7591. exec means that __builtins__ is defined for each statement.
  7592. - bpo-27821: Fix 3.6.0a3 regression that prevented custom key sets from
  7593. being selected when no custom theme was defined.
  7594. C API
  7595. -----
  7596. - bpo-26900: Excluded underscored names and other private API from limited
  7597. API.
  7598. - bpo-26027: Add support for path-like objects in PyUnicode_FSConverter() &
  7599. PyUnicode_FSDecoder().
  7600. Tests
  7601. -----
  7602. - bpo-27427: Additional tests for the math module. Patch by Francisco Couzo.
  7603. - bpo-27953: Skip math and cmath tests that fail on OS X 10.4 due to a poor
  7604. libm implementation of tan.
  7605. - bpo-26040: Improve test_math and test_cmath coverage and rigour. Patch by
  7606. Jeff Allen.
  7607. - bpo-27787: Call gc.collect() before checking each test for "dangling
  7608. threads", since the dangling threads are weak references.
  7609. Build
  7610. -----
  7611. - bpo-27566: Fix clean target in freeze makefile (patch by Lisa Roach)
  7612. - bpo-27705: Update message in validate_ucrtbase.py
  7613. - bpo-27976: Deprecate building _ctypes with the bundled copy of libffi on
  7614. non-OSX UNIX platforms.
  7615. - bpo-27983: Cause lack of llvm-profdata tool when using clang as required
  7616. for PGO linking to be a configure time error rather than make time when
  7617. ``--with-optimizations`` is enabled. Also improve our ability to find the
  7618. llvm-profdata tool on MacOS and some Linuxes.
  7619. - bpo-21590: Support for DTrace and SystemTap probes.
  7620. - bpo-26307: The profile-opt build now applies PGO to the built-in modules.
  7621. - bpo-26359: Add the --with-optimizations flag to turn on LTO and PGO build
  7622. support when available.
  7623. - bpo-27917: Set platform triplets for Android builds.
  7624. - bpo-25825: Update references to the $(LIBPL) installation path on AIX.
  7625. This path was changed in 3.2a4.
  7626. - Update OS X installer to use SQLite 3.14.1 and XZ 5.2.2.
  7627. - bpo-21122: Fix LTO builds on OS X.
  7628. - bpo-17128: Build OS X installer with a private copy of OpenSSL. Also
  7629. provide a sample Install Certificates command script to install a set of
  7630. root certificates from the third-party certifi module.
  7631. Tools/Demos
  7632. -----------
  7633. - bpo-27952: Get Tools/scripts/fixcid.py working with Python 3 and the
  7634. current "re" module, avoid invalid Python backslash escapes, and fix a bug
  7635. parsing escaped C quote signs.
  7636. Windows
  7637. -------
  7638. - bpo-28065: Update xz dependency to 5.2.2 and build it from source.
  7639. - bpo-25144: Ensures TargetDir is set before continuing with custom install.
  7640. - bpo-1602: Windows console doesn't input or print Unicode (PEP 528)
  7641. - bpo-27781: Change file system encoding on Windows to UTF-8 (PEP 529)
  7642. - bpo-27731: Opt-out of MAX_PATH on Windows 10
  7643. - bpo-6135: Adds encoding and errors parameters to subprocess.
  7644. - bpo-27959: Adds oem encoding, alias ansi to mbcs, move aliasmbcs to codec
  7645. lookup.
  7646. - bpo-27982: The functions of the winsound module now accept keyword
  7647. arguments.
  7648. - bpo-20366: Build full text search support into SQLite on Windows.
  7649. - bpo-27756: Adds new icons for Python files and processes on Windows.
  7650. Designs by Cherry Wang.
  7651. - bpo-27883: Update sqlite to 3.14.1.0 on Windows.
  7652. What's New in Python 3.6.0 alpha 4?
  7653. ===================================
  7654. *Release date: 2016-08-15*
  7655. Core and Builtins
  7656. -----------------
  7657. - bpo-27704: Optimized creating bytes and bytearray from byte-like objects
  7658. and iterables. Speed up to 3 times for short objects. Original patch by
  7659. Naoki Inada.
  7660. - bpo-26823: Large sections of repeated lines in tracebacks are now
  7661. abbreviated as "[Previous line repeated {count} more times]" by the
  7662. builtin traceback rendering. Patch by Emanuel Barry.
  7663. - bpo-27574: Decreased an overhead of parsing keyword arguments in functions
  7664. implemented with using Argument Clinic.
  7665. - bpo-22557: Now importing already imported modules is up to 2.5 times
  7666. faster.
  7667. - bpo-17596: Include <wincrypt.h> to help with Min GW building.
  7668. - bpo-17599: On Windows, rename the privately defined REPARSE_DATA_BUFFER
  7669. structure to avoid conflicting with the definition from Min GW.
  7670. - bpo-27507: Add integer overflow check in bytearray.extend(). Patch by
  7671. Xiang Zhang.
  7672. - bpo-27581: Don't rely on wrapping for overflow check in
  7673. PySequence_Tuple(). Patch by Xiang Zhang.
  7674. - bpo-1621: Avoid signed integer overflow in list and tuple operations.
  7675. Patch by Xiang Zhang.
  7676. - bpo-27419: Standard __import__() no longer look up "__import__" in globals
  7677. or builtins for importing submodules or "from import". Fixed a crash if
  7678. raise a warning about unabling to resolve package from __spec__ or
  7679. __package__.
  7680. - bpo-27083: Respect the PYTHONCASEOK environment variable under Windows.
  7681. - bpo-27514: Make having too many statically nested blocks a SyntaxError
  7682. instead of SystemError.
  7683. - bpo-27366: Implemented PEP 487 (Simpler customization of class creation).
  7684. Upon subclassing, the __init_subclass__ classmethod is called on the base
  7685. class. Descriptors are initialized with __set_name__ after class creation.
  7686. Library
  7687. -------
  7688. - bpo-26027: Add PEP 519/__fspath__() support to the os and os.path modules.
  7689. Includes code from Jelle Zijlstra. (See also: bpo-27524)
  7690. - bpo-27598: Add Collections to collections.abc. Patch by Ivan Levkivskyi,
  7691. docs by Neil Girdhar.
  7692. - bpo-25958: Support "anti-registration" of special methods from various
  7693. ABCs, like __hash__, __iter__ or __len__. All these (and several more)
  7694. can be set to None in an implementation class and the behavior will be as
  7695. if the method is not defined at all. (Previously, this mechanism existed
  7696. only for __hash__, to make mutable classes unhashable.) Code contributed
  7697. by Andrew Barnert and Ivan Levkivskyi.
  7698. - bpo-16764: Support keyword arguments to zlib.decompress(). Patch by Xiang
  7699. Zhang.
  7700. - bpo-27736: Prevent segfault after interpreter re-initialization due to ref
  7701. count problem introduced in code for Issue #27038 in 3.6.0a3. Patch by
  7702. Xiang Zhang.
  7703. - bpo-25628: The *verbose* and *rename* parameters for
  7704. collections.namedtuple are now keyword-only.
  7705. - bpo-12345: Add mathematical constant tau to math and cmath. See also PEP
  7706. 628.
  7707. - bpo-26823: traceback.StackSummary.format now abbreviates large sections of
  7708. repeated lines as "[Previous line repeated {count} more times]" (this
  7709. change then further affects other traceback display operations in the
  7710. module). Patch by Emanuel Barry.
  7711. - bpo-27664: Add to concurrent.futures.thread.ThreadPoolExecutor() the
  7712. ability to specify a thread name prefix.
  7713. - bpo-27181: Add geometric_mean and harmonic_mean to statistics module.
  7714. - bpo-27573: code.interact now prints an message when exiting.
  7715. - bpo-6422: Add autorange method to timeit.Timer objects.
  7716. - bpo-27773: Correct some memory management errors server_hostname in
  7717. _ssl.wrap_socket().
  7718. - bpo-26750: unittest.mock.create_autospec() now works properly for
  7719. subclasses of property() and other data descriptors. Removes the never
  7720. publicly used, never documented unittest.mock.DescriptorTypes tuple.
  7721. - bpo-26754: Undocumented support of general bytes-like objects as path in
  7722. compile() and similar functions is now deprecated.
  7723. - bpo-26800: Undocumented support of general bytes-like objects as paths in
  7724. os functions is now deprecated.
  7725. - bpo-26981: Add _order_ compatibility shim to enum.Enum for Python 2/3 code
  7726. bases.
  7727. - bpo-27661: Added tzinfo keyword argument to datetime.combine.
  7728. - In the curses module, raise an error if window.getstr() or window.instr()
  7729. is passed a negative value.
  7730. - bpo-27783: Fix possible usage of uninitialized memory in
  7731. operator.methodcaller.
  7732. - bpo-27774: Fix possible Py_DECREF on unowned object in _sre.
  7733. - bpo-27760: Fix possible integer overflow in binascii.b2a_qp.
  7734. - bpo-27758: Fix possible integer overflow in the _csv module for large
  7735. record lengths.
  7736. - bpo-27568: Prevent HTTPoxy attack (CVE-2016-1000110). Ignore the
  7737. HTTP_PROXY variable when REQUEST_METHOD environment is set, which
  7738. indicates that the script is in CGI mode.
  7739. - bpo-7063: Remove dead code from the "array" module's slice handling. Patch
  7740. by Chuck.
  7741. - bpo-27656: Do not assume sched.h defines any SCHED_* constants.
  7742. - bpo-27130: In the "zlib" module, fix handling of large buffers (typically
  7743. 4 GiB) when compressing and decompressing. Previously, inputs were
  7744. limited to 4 GiB, and compression and decompression operations did not
  7745. properly handle results of 4 GiB.
  7746. - bpo-24773: Implemented PEP 495 (Local Time Disambiguation).
  7747. - Expose the EPOLLEXCLUSIVE constant (when it is defined) in the select
  7748. module.
  7749. - bpo-27567: Expose the EPOLLRDHUP and POLLRDHUP constants in the select
  7750. module.
  7751. - bpo-1621: Avoid signed int negation overflow in the "audioop" module.
  7752. - bpo-27533: Release GIL in nt._isdir
  7753. - bpo-17711: Fixed unpickling by the persistent ID with protocol 0. Original
  7754. patch by Alexandre Vassalotti.
  7755. - bpo-27522: Avoid an unintentional reference cycle in email.feedparser.
  7756. - bpo-27512: Fix a segfault when os.fspath() called an __fspath__() method
  7757. that raised an exception. Patch by Xiang Zhang.
  7758. IDLE
  7759. ----
  7760. - bpo-27714: text_textview and test_autocomplete now pass when re-run in the
  7761. same process. This occurs when test_idle fails when run with the -w
  7762. option but without -jn. Fix warning from test_config.
  7763. - bpo-27621: Put query response validation error messages in the query box
  7764. itself instead of in a separate messagebox. Redo tests to match. Add Mac
  7765. OSX refinements. Original patch by Mark Roseman.
  7766. - bpo-27620: Escape key now closes Query box as cancelled.
  7767. - bpo-27609: IDLE: tab after initial whitespace should tab, not
  7768. autocomplete. This fixes problem with writing docstrings at least twice
  7769. indented.
  7770. - bpo-27609: Explicitly return None when there are also non-None returns. In
  7771. a few cases, reverse a condition and eliminate a return.
  7772. - bpo-25507: IDLE no longer runs buggy code because of its tkinter imports.
  7773. Users must include the same imports required to run directly in Python.
  7774. - bpo-27173: Add 'IDLE Modern Unix' to the built-in key sets. Make the
  7775. default key set depend on the platform. Add tests for the changes to the
  7776. config module.
  7777. - bpo-27452: add line counter and crc to IDLE configHandler test dump.
  7778. Tests
  7779. -----
  7780. - bpo-25805: Skip a test in test_pkgutil as needed that doesn't work when
  7781. ``__name__ == __main__``. Patch by SilentGhost.
  7782. - bpo-27472: Add test.support.unix_shell as the path to the default shell.
  7783. - bpo-27369: In test_pyexpat, avoid testing an error message detail that
  7784. changed in Expat 2.2.0.
  7785. - bpo-27594: Prevent assertion error when running test_ast with coverage
  7786. enabled: ensure code object has a valid first line number. Patch suggested
  7787. by Ivan Levkivskyi.
  7788. Windows
  7789. -------
  7790. - bpo-27647: Update bundled Tcl/Tk to 8.6.6.
  7791. - bpo-27610: Adds PEP 514 metadata to Windows installer
  7792. - bpo-27469: Adds a shell extension to the launcher so that drag and drop
  7793. works correctly.
  7794. - bpo-27309: Enables proper Windows styles in python[w].exe manifest.
  7795. Build
  7796. -----
  7797. - bpo-27713: Suppress spurious build warnings when updating importlib's
  7798. bootstrap files. Patch by Xiang Zhang
  7799. - bpo-25825: Correct the references to Modules/python.exp, which is required
  7800. on AIX. The references were accidentally changed in 3.5.0a1.
  7801. - bpo-27453: CPP invocation in configure must use CPPFLAGS. Patch by Chi
  7802. Hsuan Yen.
  7803. - bpo-27641: The configure script now inserts comments into the makefile to
  7804. prevent the pgen and _freeze_importlib executables from being
  7805. cross-compiled.
  7806. - bpo-26662: Set PYTHON_FOR_GEN in configure as the Python program to be
  7807. used for file generation during the build.
  7808. - bpo-10910: Avoid C++ compilation errors on FreeBSD and OS X. Also update
  7809. FreedBSD version checks for the original ctype UTF-8 workaround.
  7810. What's New in Python 3.6.0 alpha 3?
  7811. ===================================
  7812. *Release date: 2016-07-11*
  7813. Core and Builtins
  7814. -----------------
  7815. - bpo-27473: Fixed possible integer overflow in bytes and bytearray
  7816. concatenations. Patch by Xiang Zhang.
  7817. - bpo-23034: The output of a special Python build with defined COUNT_ALLOCS,
  7818. SHOW_ALLOC_COUNT or SHOW_TRACK_COUNT macros is now off by default. It
  7819. can be re-enabled using the "-X showalloccount" option. It now outputs to
  7820. stderr instead of stdout.
  7821. - bpo-27443: __length_hint__() of bytearray iterators no longer return a
  7822. negative integer for a resized bytearray.
  7823. - bpo-27007: The fromhex() class methods of bytes and bytearray subclasses
  7824. now return an instance of corresponding subclass.
  7825. Library
  7826. -------
  7827. - bpo-26844: Fix error message for imp.find_module() to refer to 'path'
  7828. instead of 'name'. Patch by Lev Maximov.
  7829. - bpo-23804: Fix SSL zero-length recv() calls to not block and not raise an
  7830. error about unclean EOF.
  7831. - bpo-27466: Change time format returned by http.cookie.time2netscape,
  7832. confirming the netscape cookie format and making it consistent with
  7833. documentation.
  7834. - bpo-21708: Deprecated dbm.dumb behavior that differs from common dbm
  7835. behavior: creating a database in 'r' and 'w' modes and modifying a
  7836. database in 'r' mode.
  7837. - bpo-26721: Change the socketserver.StreamRequestHandler.wfile attribute to
  7838. implement BufferedIOBase. In particular, the write() method no longer does
  7839. partial writes.
  7840. - bpo-22115: Added methods trace_add, trace_remove and trace_info in the
  7841. tkinter.Variable class. They replace old methods trace_variable, trace,
  7842. trace_vdelete and trace_vinfo that use obsolete Tcl commands and might not
  7843. work in future versions of Tcl. Fixed old tracing methods:
  7844. trace_vdelete() with wrong mode no longer break tracing, trace_vinfo() now
  7845. always returns a list of pairs of strings, tracing in the "u" mode now
  7846. works.
  7847. - bpo-26243: Only the level argument to zlib.compress() is keyword argument
  7848. now. The first argument is positional-only.
  7849. - bpo-27038: Expose the DirEntry type as os.DirEntry. Code patch by Jelle
  7850. Zijlstra.
  7851. - bpo-27186: Update os.fspath()/PyOS_FSPath() to check the return value of
  7852. __fspath__() to be either str or bytes.
  7853. - bpo-18726: All optional parameters of the dump(), dumps(), load() and
  7854. loads() functions and JSONEncoder and JSONDecoder class constructors in
  7855. the json module are now keyword-only.
  7856. - bpo-27319: Methods selection_set(), selection_add(), selection_remove()
  7857. and selection_toggle() of ttk.TreeView now allow passing multiple items as
  7858. multiple arguments instead of passing them as a tuple. Deprecated
  7859. undocumented ability of calling the selection() method with arguments.
  7860. - bpo-27079: Fixed curses.ascii functions isblank(), iscntrl() and
  7861. ispunct().
  7862. - bpo-27294: Numerical state in the repr for Tkinter event objects is now
  7863. represented as a combination of known flags.
  7864. - bpo-27177: Match objects in the re module now support index-like objects
  7865. as group indices. Based on patches by Jeroen Demeyer and Xiang Zhang.
  7866. - bpo-26754: Some functions (compile() etc) accepted a filename argument
  7867. encoded as an iterable of integers. Now only strings and byte-like objects
  7868. are accepted.
  7869. - bpo-26536: socket.ioctl now supports SIO_LOOPBACK_FAST_PATH. Patch by
  7870. Daniel Stokes.
  7871. - bpo-27048: Prevents distutils failing on Windows when environment
  7872. variables contain non-ASCII characters
  7873. - bpo-27330: Fixed possible leaks in the ctypes module.
  7874. - bpo-27238: Got rid of bare excepts in the turtle module. Original patch
  7875. by Jelle Zijlstra.
  7876. - bpo-27122: When an exception is raised within the context being managed by
  7877. a contextlib.ExitStack() and one of the exit stack generators catches and
  7878. raises it in a chain, do not re-raise the original exception when exiting,
  7879. let the new chained one through. This avoids the PEP 479 bug described in
  7880. issue25782.
  7881. Security
  7882. --------
  7883. - bpo-27278: Fix os.urandom() implementation using getrandom() on Linux.
  7884. Truncate size to INT_MAX and loop until we collected enough random bytes,
  7885. instead of casting a directly Py_ssize_t to int.
  7886. Library
  7887. -------
  7888. - bpo-16864: sqlite3.Cursor.lastrowid now supports REPLACE statement.
  7889. Initial patch by Alex LordThorsen.
  7890. - bpo-26386: Fixed ttk.TreeView selection operations with item id's
  7891. containing spaces.
  7892. - bpo-8637: Honor a pager set by the env var MANPAGER (in preference to one
  7893. set by the env var PAGER).
  7894. Security
  7895. --------
  7896. - bpo-22636: Avoid shell injection problems with ctypes.util.find_library().
  7897. Library
  7898. -------
  7899. - bpo-16182: Fix various functions in the "readline" module to use the
  7900. locale encoding, and fix get_begidx() and get_endidx() to return code
  7901. point indexes.
  7902. - bpo-27392: Add loop.connect_accepted_socket(). Patch by Jim Fulton.
  7903. IDLE
  7904. ----
  7905. - bpo-27477: IDLE search dialogs now use ttk widgets.
  7906. - bpo-27173: Add 'IDLE Modern Unix' to the built-in key sets. Make the
  7907. default key set depend on the platform. Add tests for the changes to the
  7908. config module.
  7909. - bpo-27452: make command line "idle-test> python test_help.py" work.
  7910. __file__ is relative when python is started in the file's directory.
  7911. - bpo-27452: add line counter and crc to IDLE configHandler test dump.
  7912. - bpo-27380: IDLE: add query.py with base Query dialog and ttk widgets.
  7913. Module had subclasses SectionName, ModuleName, and HelpSource, which are
  7914. used to get information from users by configdialog and file =>Load Module.
  7915. Each subclass has itw own validity checks. Using ModuleName allows users
  7916. to edit bad module names instead of starting over. Add tests and delete
  7917. the two files combined into the new one.
  7918. - bpo-27372: Test_idle no longer changes the locale.
  7919. - bpo-27365: Allow non-ascii chars in IDLE NEWS.txt, for contributor names.
  7920. - bpo-27245: IDLE: Cleanly delete custom themes and key bindings.
  7921. Previously, when IDLE was started from a console or by import, a cascade
  7922. of warnings was emitted. Patch by Serhiy Storchaka.
  7923. - bpo-24137: Run IDLE, test_idle, and htest with tkinter default root
  7924. disabled. Fix code and tests that fail with this restriction. Fix htests
  7925. to not create a second and redundant root and mainloop.
  7926. - bpo-27310: Fix IDLE.app failure to launch on OS X due to vestigial import.
  7927. C API
  7928. -----
  7929. - bpo-26754: PyUnicode_FSDecoder() accepted a filename argument encoded as
  7930. an iterable of integers. Now only strings and byte-like objects are
  7931. accepted.
  7932. Build
  7933. -----
  7934. - bpo-28066: Fix the logic that searches build directories for generated
  7935. include files when building outside the source tree.
  7936. - bpo-27442: Expose the Android API level that python was built against, in
  7937. sysconfig.get_config_vars() as 'ANDROID_API_LEVEL'.
  7938. - bpo-27434: The interpreter that runs the cross-build, found in PATH, must
  7939. now be of the same feature version (e.g. 3.6) as the source being built.
  7940. - bpo-26930: Update Windows builds to use OpenSSL 1.0.2h.
  7941. - bpo-23968: Rename the platform directory from plat-$(MACHDEP) to
  7942. plat-$(PLATFORM_TRIPLET). Rename the config directory (LIBPL) from
  7943. config-$(LDVERSION) to config-$(LDVERSION)-$(PLATFORM_TRIPLET). Install
  7944. the platform specific _sysconfigdata module into the platform directory
  7945. and rename it to include the ABIFLAGS.
  7946. - Don't use largefile support for GNU/Hurd.
  7947. Tools/Demos
  7948. -----------
  7949. - bpo-27332: Fixed the type of the first argument of module-level functions
  7950. generated by Argument Clinic. Patch by Petr Viktorin.
  7951. - bpo-27418: Fixed Tools/importbench/importbench.py.
  7952. Documentation
  7953. -------------
  7954. - bpo-19489: Moved the search box from the sidebar to the header and footer
  7955. of each page. Patch by Ammar Askar.
  7956. - bpo-27285: Update documentation to reflect the deprecation of ``pyvenv``
  7957. and normalize on the term "virtual environment". Patch by Steve Piercy.
  7958. Tests
  7959. -----
  7960. - bpo-27027: Added test.support.is_android that is True when this is an
  7961. Android build.
  7962. What's New in Python 3.6.0 alpha 2?
  7963. ===================================
  7964. *Release date: 2016-06-13*
  7965. Core and Builtins
  7966. -----------------
  7967. - bpo-27095: Simplified MAKE_FUNCTION and removed MAKE_CLOSURE opcodes.
  7968. Patch by Demur Rumed.
  7969. - bpo-27190: Raise NotSupportedError if sqlite3 is older than 3.3.1. Patch
  7970. by Dave Sawyer.
  7971. - bpo-27286: Fixed compiling BUILD_MAP_UNPACK_WITH_CALL opcode. Calling
  7972. function with generalized unpacking (PEP 448) and conflicting keyword
  7973. names could cause undefined behavior.
  7974. - bpo-27140: Added BUILD_CONST_KEY_MAP opcode.
  7975. - bpo-27186: Add support for os.PathLike objects to open() (part of PEP
  7976. 519).
  7977. - bpo-27066: Fixed SystemError if a custom opener (for open()) returns a
  7978. negative number without setting an exception.
  7979. - bpo-26983: float() now always return an instance of exact float. The
  7980. deprecation warning is emitted if __float__ returns an instance of a
  7981. strict subclass of float. In a future versions of Python this can be an
  7982. error.
  7983. - bpo-27097: Python interpreter is now about 7% faster due to optimized
  7984. instruction decoding. Based on patch by Demur Rumed.
  7985. - bpo-26647: Python interpreter now uses 16-bit wordcode instead of
  7986. bytecode. Patch by Demur Rumed.
  7987. - bpo-23275: Allow assigning to an empty target list in round brackets: () =
  7988. iterable.
  7989. - bpo-27243: Update the __aiter__ protocol: instead of returning an
  7990. awaitable that resolves to an asynchronous iterator, the asynchronous
  7991. iterator should be returned directly. Doing the former will trigger a
  7992. PendingDeprecationWarning.
  7993. Library
  7994. -------
  7995. - Comment out socket (SO_REUSEPORT) and posix (O_SHLOCK, O_EXLOCK) constants
  7996. exposed on the API which are not implemented on GNU/Hurd. They would not
  7997. work at runtime anyway.
  7998. - bpo-27025: Generated names for Tkinter widgets are now more meaningful and
  7999. recognizable.
  8000. - bpo-25455: Fixed crashes in repr of recursive ElementTree.Element and
  8001. functools.partial objects.
  8002. - bpo-27294: Improved repr for Tkinter event objects.
  8003. - bpo-20508: Improve exception message of IPv{4,6}Network.__getitem__. Patch
  8004. by Gareth Rees.
  8005. Security
  8006. --------
  8007. - bpo-26556: Update expat to 2.1.1, fixes CVE-2015-1283.
  8008. - Fix TLS stripping vulnerability in smtplib, CVE-2016-0772. Reported by
  8009. Team Oststrom.
  8010. Library
  8011. -------
  8012. - bpo-21386: Implement missing IPv4Address.is_global property. It was
  8013. documented since 07a5610bae9d. Initial patch by Roger Luethi.
  8014. - bpo-27029: Removed deprecated support of universal newlines mode from
  8015. ZipFile.open().
  8016. - bpo-27030: Unknown escapes consisting of ``'\'`` and an ASCII letter in
  8017. regular expressions now are errors. The re.LOCALE flag now can be used
  8018. only with bytes patterns.
  8019. - bpo-27186: Add os.PathLike support to DirEntry (part of PEP 519). Initial
  8020. patch by Jelle Zijlstra.
  8021. - bpo-20900: distutils register command now decodes HTTP responses
  8022. correctly. Initial patch by ingrid.
  8023. - bpo-27186: Add os.PathLike support to pathlib, removing its provisional
  8024. status (part of PEP 519). Initial patch by Dusty Phillips.
  8025. - bpo-27186: Add support for os.PathLike objects to os.fsencode() and
  8026. os.fsdecode() (part of PEP 519).
  8027. - bpo-27186: Introduce os.PathLike and os.fspath() (part of PEP 519).
  8028. - A new version of typing.py provides several new classes and features:
  8029. @overload outside stubs, Reversible, DefaultDict, Text, ContextManager,
  8030. Type[], NewType(), TYPE_CHECKING, and numerous bug fixes (note that some
  8031. of the new features are not yet implemented in mypy or other static
  8032. analyzers). Also classes for PEP 492 (Awaitable, AsyncIterable,
  8033. AsyncIterator) have been added (in fact they made it into 3.5.1 but were
  8034. never mentioned).
  8035. - bpo-25738: Stop http.server.BaseHTTPRequestHandler.send_error() from
  8036. sending a message body for 205 Reset Content. Also, don't send Content
  8037. header fields in responses that don't have a body. Patch by Susumu
  8038. Koshiba.
  8039. - bpo-21313: Fix the "platform" module to tolerate when sys.version contains
  8040. truncated build information.
  8041. Security
  8042. --------
  8043. - bpo-26839: On Linux, :func:`os.urandom` now calls ``getrandom()`` with
  8044. ``GRND_NONBLOCK`` to fall back on reading ``/dev/urandom`` if the urandom
  8045. entropy pool is not initialized yet. Patch written by Colm Buckley.
  8046. Library
  8047. -------
  8048. - bpo-23883: Added missing APIs to __all__ to match the documented APIs for
  8049. the following modules: cgi, mailbox, mimetypes, plistlib and smtpd.
  8050. Patches by Jacek Kołodziej.
  8051. - bpo-27164: In the zlib module, allow decompressing raw Deflate streams
  8052. with a predefined zdict. Based on patch by Xiang Zhang.
  8053. - bpo-24291: Fix wsgiref.simple_server.WSGIRequestHandler to completely
  8054. write data to the client. Previously it could do partial writes and
  8055. truncate data. Also, wsgiref.handler.ServerHandler can now handle stdout
  8056. doing partial writes, but this is deprecated.
  8057. - bpo-21272: Use _sysconfigdata.py to initialize distutils.sysconfig.
  8058. - bpo-19611: :mod:`inspect` now reports the implicit ``.0`` parameters
  8059. generated by the compiler for comprehension and generator expression
  8060. scopes as if they were positional-only parameters called ``implicit0``.
  8061. Patch by Jelle Zijlstra.
  8062. - bpo-26809: Add ``__all__`` to :mod:`string`. Patch by Emanuel Barry.
  8063. - bpo-26373: subprocess.Popen.communicate now correctly ignores
  8064. BrokenPipeError when the child process dies before .communicate() is
  8065. called in more/all circumstances.
  8066. - signal, socket, and ssl module IntEnum constant name lookups now return a
  8067. consistent name for values having multiple names. Ex: signal.Signals(6)
  8068. now refers to itself as signal.SIGALRM rather than flipping between that
  8069. and signal.SIGIOT based on the interpreter's hash randomization seed.
  8070. - bpo-27167: Clarify the subprocess.CalledProcessError error message text
  8071. when the child process died due to a signal.
  8072. - bpo-25931: Don't define socketserver.Forking* names on platforms such as
  8073. Windows that do not support os.fork().
  8074. - bpo-21776: distutils.upload now correctly handles HTTPError. Initial patch
  8075. by Claudiu Popa.
  8076. - bpo-26526: Replace custom parse tree validation in the parser module with
  8077. a simple DFA validator.
  8078. - bpo-27114: Fix SSLContext._load_windows_store_certs fails with
  8079. PermissionError
  8080. - bpo-18383: Avoid creating duplicate filters when using filterwarnings and
  8081. simplefilter. Based on patch by Alex Shkop.
  8082. - bpo-23026: winreg.QueryValueEx() now return an integer for REG_QWORD type.
  8083. - bpo-26741: subprocess.Popen destructor now emits a ResourceWarning warning
  8084. if the child process is still running.
  8085. - bpo-27056: Optimize pickle.load() and pickle.loads(), up to 10% faster to
  8086. deserialize a lot of small objects.
  8087. - bpo-21271: New keyword only parameters in reset_mock call.
  8088. IDLE
  8089. ----
  8090. - bpo-5124: Paste with text selected now replaces the selection on X11. This
  8091. matches how paste works on Windows, Mac, most modern Linux apps, and ttk
  8092. widgets. Original patch by Serhiy Storchaka.
  8093. - bpo-24750: Switch all scrollbars in IDLE to ttk versions. Where needed,
  8094. minimal tests are added to cover changes.
  8095. - bpo-24759: IDLE requires tk 8.5 and availability ttk widgets. Delete now
  8096. unneeded tk version tests and code for older versions. Add test for IDLE
  8097. syntax colorizer.
  8098. - bpo-27239: idlelib.macosx.isXyzTk functions initialize as needed.
  8099. - bpo-27262: move Aqua unbinding code, which enable context menus, to
  8100. macosx.
  8101. - bpo-24759: Make clear in idlelib.idle_test.__init__ that the directory is
  8102. a private implementation of test.test_idle and tool for maintainers.
  8103. - bpo-27196: Stop 'ThemeChanged' warnings when running IDLE tests. These
  8104. persisted after other warnings were suppressed in #20567. Apply Serhiy
  8105. Storchaka's update_idletasks solution to four test files. Record this
  8106. additional advice in idle_test/README.txt
  8107. - bpo-20567: Revise idle_test/README.txt with advice about avoiding tk
  8108. warning messages from tests. Apply advice to several IDLE tests.
  8109. - bpo-24225: Update idlelib/README.txt with new file names and event
  8110. handlers.
  8111. - bpo-27156: Remove obsolete code not used by IDLE.
  8112. - bpo-27117: Make colorizer htest and turtledemo work with dark themes. Move
  8113. code for configuring text widget colors to a new function.
  8114. - bpo-24225: Rename many `idlelib/*.py` and `idle_test/test_*.py` files.
  8115. Edit files to replace old names with new names when the old name referred
  8116. to the module rather than the class it contained. See the issue and IDLE
  8117. section in What's New in 3.6 for more.
  8118. - bpo-26673: When tk reports font size as 0, change to size 10. Such fonts
  8119. on Linux prevented the configuration dialog from opening.
  8120. - bpo-21939: Add test for IDLE's percolator. Original patch by Saimadhav
  8121. Heblikar.
  8122. - bpo-21676: Add test for IDLE's replace dialog. Original patch by Saimadhav
  8123. Heblikar.
  8124. - bpo-18410: Add test for IDLE's search dialog. Original patch by Westley
  8125. Martínez.
  8126. - bpo-21703: Add test for undo delegator. Patch mostly by Saimadhav
  8127. Heblikar .
  8128. - bpo-27044: Add ConfigDialog.remove_var_callbacks to stop memory leaks.
  8129. - bpo-23977: Add more asserts to test_delegator.
  8130. Documentation
  8131. -------------
  8132. - bpo-16484: Change the default PYTHONDOCS URL to "https:", and fix the
  8133. resulting links to use lowercase. Patch by Sean Rodman, test by Kaushik
  8134. Nadikuditi.
  8135. - bpo-24136: Document the new PEP 448 unpacking syntax of 3.5.
  8136. - bpo-22558: Add remaining doc links to source code for Python-coded
  8137. modules. Patch by Yoni Lavi.
  8138. Tests
  8139. -----
  8140. - bpo-25285: regrtest now uses subprocesses when the -j1 command line option
  8141. is used: each test file runs in a fresh child process. Before, the -j1
  8142. option was ignored.
  8143. - bpo-25285: Tools/buildbot/test.bat script now uses -j1 by default to run
  8144. each test file in fresh child process.
  8145. Windows
  8146. -------
  8147. - bpo-27064: The py.exe launcher now defaults to Python 3. The Windows
  8148. launcher ``py.exe`` no longer prefers an installed Python 2 version over
  8149. Python 3 by default when used interactively.
  8150. Build
  8151. -----
  8152. - bpo-27229: Fix the cross-compiling pgen rule for in-tree builds. Patch by
  8153. Xavier de Gaye.
  8154. - bpo-26930: Update OS X 10.5+ 32-bit-only installer to build and link with
  8155. OpenSSL 1.0.2h.
  8156. Windows
  8157. -------
  8158. - bpo-17500: Remove unused and outdated icons. (See also:
  8159. https://github.com/python/pythondotorg/issues/945)
  8160. C API
  8161. -----
  8162. - bpo-27186: Add the PyOS_FSPath() function (part of PEP 519).
  8163. - bpo-26282: PyArg_ParseTupleAndKeywords() now supports positional-only
  8164. parameters.
  8165. Tools/Demos
  8166. -----------
  8167. - bpo-26282: Argument Clinic now supports positional-only and keyword
  8168. parameters in the same function.
  8169. What's New in Python 3.6.0 alpha 1?
  8170. ===================================
  8171. *Release date: 2016-05-16*
  8172. Core and Builtins
  8173. -----------------
  8174. - bpo-20041: Fixed TypeError when frame.f_trace is set to None. Patch by
  8175. Xavier de Gaye.
  8176. - bpo-26168: Fixed possible refleaks in failing Py_BuildValue() with the "N"
  8177. format unit.
  8178. - bpo-26991: Fix possible refleak when creating a function with annotations.
  8179. - bpo-27039: Fixed bytearray.remove() for values greater than 127. Based on
  8180. patch by Joe Jevnik.
  8181. - bpo-23640: int.from_bytes() no longer bypasses constructors for
  8182. subclasses.
  8183. - bpo-27005: Optimized the float.fromhex() class method for exact float. It
  8184. is now 2 times faster.
  8185. - bpo-18531: Single var-keyword argument of dict subtype was passed
  8186. unscathed to the C-defined function. Now it is converted to exact dict.
  8187. - bpo-26811: gc.get_objects() no longer contains a broken tuple with NULL
  8188. pointer.
  8189. - bpo-20120: Use RawConfigParser for .pypirc parsing, removing support for
  8190. interpolation unintentionally added with move to Python 3. Behavior no
  8191. longer does any interpolation in .pypirc files, matching behavior in
  8192. Python 2.7 and Setuptools 19.0.
  8193. - bpo-26249: Memory functions of the :c:func:`PyMem_Malloc` domain
  8194. (:c:data:`PYMEM_DOMAIN_MEM`) now use the :ref:`pymalloc allocator
  8195. <pymalloc>` rather than system :c:func:`malloc`. Applications calling
  8196. :c:func:`PyMem_Malloc` without holding the GIL can now crash: use
  8197. ``PYTHONMALLOC=debug`` environment variable to validate the usage of
  8198. memory allocators in your application.
  8199. - bpo-26802: Optimize function calls only using unpacking like
  8200. ``func(*tuple)`` (no other positional argument, no keyword): avoid copying
  8201. the tuple. Patch written by Joe Jevnik.
  8202. - bpo-26659: Make the builtin slice type support cycle collection.
  8203. - bpo-26718: super.__init__ no longer leaks memory if called multiple times.
  8204. NOTE: A direct call of super.__init__ is not endorsed!
  8205. - bpo-27138: Fix the doc comment for FileFinder.find_spec().
  8206. - bpo-27147: Mention PEP 420 in the importlib docs.
  8207. - bpo-25339: PYTHONIOENCODING now has priority over locale in setting the
  8208. error handler for stdin and stdout.
  8209. - bpo-26494: Fixed crash on iterating exhausting iterators. Affected classes
  8210. are generic sequence iterators, iterators of str, bytes, bytearray, list,
  8211. tuple, set, frozenset, dict, OrderedDict, corresponding views and
  8212. os.scandir() iterator.
  8213. - bpo-26574: Optimize ``bytes.replace(b'', b'.')`` and
  8214. ``bytearray.replace(b'', b'.')``. Patch written by Josh Snider.
  8215. - bpo-26581: If coding cookie is specified multiple times on a line in
  8216. Python source code file, only the first one is taken to account.
  8217. - bpo-19711: Add tests for reloading namespace packages.
  8218. - bpo-21099: Switch applicable importlib tests to use PEP 451 API.
  8219. - bpo-26563: Debug hooks on Python memory allocators now raise a fatal error
  8220. if functions of the :c:func:`PyMem_Malloc` family are called without
  8221. holding the GIL.
  8222. - bpo-26564: On error, the debug hooks on Python memory allocators now use
  8223. the :mod:`tracemalloc` module to get the traceback where a memory block
  8224. was allocated.
  8225. - bpo-26558: The debug hooks on Python memory allocator
  8226. :c:func:`PyObject_Malloc` now detect when functions are called without
  8227. holding the GIL.
  8228. - bpo-26516: Add :envvar:`PYTHONMALLOC` environment variable to set the
  8229. Python memory allocators and/or install debug hooks.
  8230. - bpo-26516: The :c:func:`PyMem_SetupDebugHooks` function can now also be
  8231. used on Python compiled in release mode.
  8232. - bpo-26516: The :envvar:`PYTHONMALLOCSTATS` environment variable can now
  8233. also be used on Python compiled in release mode. It now has no effect if
  8234. set to an empty string.
  8235. - bpo-26516: In debug mode, debug hooks are now also installed on Python
  8236. memory allocators when Python is configured without pymalloc.
  8237. - bpo-26464: Fix str.translate() when string is ASCII and first replacements
  8238. removes character, but next replacement uses a non-ASCII character or a
  8239. string longer than 1 character. Regression introduced in Python 3.5.0.
  8240. - bpo-22836: Ensure exception reports from PyErr_Display() and
  8241. PyErr_WriteUnraisable() are sensible even when formatting them produces
  8242. secondary errors. This affects the reports produced by
  8243. sys.__excepthook__() and when __del__() raises an exception.
  8244. - bpo-26302: Correct behavior to reject comma as a legal character for
  8245. cookie names.
  8246. - bpo-26136: Upgrade the warning when a generator raises StopIteration from
  8247. PendingDeprecationWarning to DeprecationWarning. Patch by Anish Shah.
  8248. - bpo-26204: The compiler now ignores all constant statements: bytes, str,
  8249. int, float, complex, name constants (None, False, True), Ellipsis and
  8250. ast.Constant; not only str and int. For example, ``1.0`` is now ignored in
  8251. ``def f(): 1.0``.
  8252. - bpo-4806: Avoid masking the original TypeError exception when using star
  8253. (``*``) unpacking in function calls. Based on patch by Hagen Fürstenau
  8254. and Daniel Urban.
  8255. - bpo-26146: Add a new kind of AST node: ``ast.Constant``. It can be used by
  8256. external AST optimizers, but the compiler does not emit directly such
  8257. node.
  8258. - bpo-23601: Sped-up allocation of dict key objects by using Python's small
  8259. object allocator. (Contributed by Julian Taylor.)
  8260. - bpo-18018: Import raises ImportError instead of SystemError if a relative
  8261. import is attempted without a known parent package.
  8262. - bpo-25843: When compiling code, don't merge constants if they are equal
  8263. but have a different types. For example, ``f1, f2 = lambda: 1, lambda:
  8264. 1.0`` is now correctly compiled to two different functions: ``f1()``
  8265. returns ``1`` (``int``) and ``f2()`` returns ``1.0`` (``float``), even if
  8266. ``1`` and ``1.0`` are equal.
  8267. - bpo-26107: The format of the ``co_lnotab`` attribute of code objects
  8268. changes to support negative line number delta.
  8269. - bpo-26154: Add a new private _PyThreadState_UncheckedGet() function to get
  8270. the current Python thread state, but don't issue a fatal error if it is
  8271. NULL. This new function must be used instead of accessing directly the
  8272. _PyThreadState_Current variable. The variable is no more exposed since
  8273. Python 3.5.1 to hide the exact implementation of atomic C types, to avoid
  8274. compiler issues.
  8275. - bpo-25791: If __package__ != __spec__.parent or if neither __package__ or
  8276. __spec__ are defined then ImportWarning is raised.
  8277. - bpo-22995: [UPDATE] Comment out the one of the pickleability tests in
  8278. _PyObject_GetState() due to regressions observed in Cython-based projects.
  8279. - bpo-25961: Disallowed null characters in the type name.
  8280. - bpo-25973: Fix segfault when an invalid nonlocal statement binds a name
  8281. starting with two underscores.
  8282. - bpo-22995: Instances of extension types with a state that aren't
  8283. subclasses of list or dict and haven't implemented any pickle-related
  8284. methods (__reduce__, __reduce_ex__, __getnewargs__, __getnewargs_ex__, or
  8285. __getstate__), can no longer be pickled. Including memoryview.
  8286. - bpo-20440: Massive replacing unsafe attribute setting code with special
  8287. macro Py_SETREF.
  8288. - bpo-25766: Special method __bytes__() now works in str subclasses.
  8289. - bpo-25421: __sizeof__ methods of builtin types now use dynamic basic size.
  8290. This allows sys.getsize() to work correctly with their subclasses with
  8291. __slots__ defined.
  8292. - bpo-25709: Fixed problem with in-place string concatenation and utf-8
  8293. cache.
  8294. - bpo-5319: New Py_FinalizeEx() API allowing Python to set an exit status of
  8295. 120 on failure to flush buffered streams.
  8296. - bpo-25485: telnetlib.Telnet is now a context manager.
  8297. - bpo-24097: Fixed crash in object.__reduce__() if slot name is freed inside
  8298. __getattr__.
  8299. - bpo-24731: Fixed crash on converting objects with special methods
  8300. __bytes__, __trunc__, and __float__ returning instances of subclasses of
  8301. bytes, int, and float to subclasses of bytes, int, and float
  8302. correspondingly.
  8303. - bpo-25630: Fix a possible segfault during argument parsing in functions
  8304. that accept filesystem paths.
  8305. - bpo-23564: Fixed a partially broken sanity check in the _posixsubprocess
  8306. internals regarding how fds_to_pass were passed to the child. The bug had
  8307. no actual impact as subprocess.py already avoided it.
  8308. - bpo-25388: Fixed tokenizer crash when processing undecodable source code
  8309. with a null byte.
  8310. - bpo-25462: The hash of the key now is calculated only once in most
  8311. operations in C implementation of OrderedDict.
  8312. - bpo-22995: Default implementation of __reduce__ and __reduce_ex__ now
  8313. rejects builtin types with not defined __new__.
  8314. - bpo-24802: Avoid buffer overreads when int(), float(), compile(), exec()
  8315. and eval() are passed bytes-like objects. These objects are not
  8316. necessarily terminated by a null byte, but the functions assumed they
  8317. were.
  8318. - bpo-25555: Fix parser and AST: fill lineno and col_offset of "arg" node
  8319. when compiling AST from Python objects.
  8320. - bpo-24726: Fixed a crash and leaking NULL in repr() of OrderedDict that
  8321. was mutated by direct calls of dict methods.
  8322. - bpo-25449: Iterating OrderedDict with keys with unstable hash now raises
  8323. KeyError in C implementations as well as in Python implementation.
  8324. - bpo-25395: Fixed crash when highly nested OrderedDict structures were
  8325. garbage collected.
  8326. - bpo-25401: Optimize bytes.fromhex() and bytearray.fromhex(): they are now
  8327. between 2x and 3.5x faster.
  8328. - bpo-25399: Optimize bytearray % args using the new private _PyBytesWriter
  8329. API. Formatting is now between 2.5 and 5 times faster.
  8330. - bpo-25274: sys.setrecursionlimit() now raises a RecursionError if the new
  8331. recursion limit is too low depending at the current recursion depth.
  8332. Modify also the "lower-water mark" formula to make it monotonic. This mark
  8333. is used to decide when the overflowed flag of the thread state is reset.
  8334. - bpo-24402: Fix input() to prompt to the redirected stdout when
  8335. sys.stdout.fileno() fails.
  8336. - bpo-25349: Optimize bytes % args using the new private _PyBytesWriter API.
  8337. Formatting is now up to 2 times faster.
  8338. - bpo-24806: Prevent builtin types that are not allowed to be subclassed
  8339. from being subclassed through multiple inheritance.
  8340. - bpo-25301: The UTF-8 decoder is now up to 15 times as fast for error
  8341. handlers: ``ignore``, ``replace`` and ``surrogateescape``.
  8342. - bpo-24848: Fixed a number of bugs in UTF-7 decoding of misformed data.
  8343. - bpo-25267: The UTF-8 encoder is now up to 75 times as fast for error
  8344. handlers: ``ignore``, ``replace``, ``surrogateescape``, ``surrogatepass``.
  8345. Patch co-written with Serhiy Storchaka.
  8346. - bpo-25280: Import trace messages emitted in verbose (-v) mode are no
  8347. longer formatted twice.
  8348. - bpo-25227: Optimize ASCII and latin1 encoders with the ``surrogateescape``
  8349. error handler: the encoders are now up to 3 times as fast. Initial patch
  8350. written by Serhiy Storchaka.
  8351. - bpo-25003: On Solaris 11.3 or newer, os.urandom() now uses the getrandom()
  8352. function instead of the getentropy() function. The getentropy() function
  8353. is blocking to generate very good quality entropy, os.urandom() doesn't
  8354. need such high-quality entropy.
  8355. - bpo-9232: Modify Python's grammar to allow trailing commas in the argument
  8356. list of a function declaration. For example, "def f(\*, a = 3,): pass" is
  8357. now legal. Patch from Mark Dickinson.
  8358. - bpo-24965: Implement PEP 498 "Literal String Interpolation". This allows
  8359. you to embed expressions inside f-strings, which are converted to normal
  8360. strings at run time. Given x=3, then f'value={x}' == 'value=3'. Patch by
  8361. Eric V. Smith.
  8362. - bpo-26478: Fix semantic bugs when using binary operators with dictionary
  8363. views and tuples.
  8364. - bpo-26171: Fix possible integer overflow and heap corruption in
  8365. zipimporter.get_data().
  8366. - bpo-25660: Fix TAB key behaviour in REPL with readline.
  8367. - bpo-26288: Optimize PyLong_AsDouble.
  8368. - bpo-26289: Optimize floor and modulo division for single-digit longs.
  8369. Microbenchmarks show 2-2.5x improvement. Built-in 'divmod' function is
  8370. now also ~10% faster. (See also: bpo-26315)
  8371. - bpo-25887: Raise a RuntimeError when a coroutine object is awaited more
  8372. than once.
  8373. Library
  8374. -------
  8375. - bpo-27057: Fix os.set_inheritable() on Android, ioctl() is blocked by
  8376. SELinux and fails with EACCESS. The function now falls back to fcntl().
  8377. Patch written by Michał Bednarski.
  8378. - bpo-27014: Fix infinite recursion using typing.py. Thanks to Kalle Tuure!
  8379. - bpo-27031: Removed dummy methods in Tkinter widget classes: tk_menuBar()
  8380. and tk_bindForTraversal().
  8381. - bpo-14132: Fix urllib.request redirect handling when the target only has a
  8382. query string. Original fix by Ján Janech.
  8383. - bpo-17214: The "urllib.request" module now percent-encodes non-ASCII bytes
  8384. found in redirect target URLs. Some servers send Location header fields
  8385. with non-ASCII bytes, but "http.client" requires the request target to be
  8386. ASCII-encodable, otherwise a UnicodeEncodeError is raised. Based on patch
  8387. by Christian Heimes.
  8388. - bpo-27033: The default value of the decode_data parameter for
  8389. smtpd.SMTPChannel and smtpd.SMTPServer constructors is changed to False.
  8390. - bpo-27034: Removed deprecated class asynchat.fifo.
  8391. - bpo-26870: Added readline.set_auto_history(), which can stop entries being
  8392. automatically added to the history list. Based on patch by Tyler
  8393. Crompton.
  8394. - bpo-26039: zipfile.ZipFile.open() can now be used to write data into a ZIP
  8395. file, as well as for extracting data. Patch by Thomas Kluyver.
  8396. - bpo-26892: Honor debuglevel flag in urllib.request.HTTPHandler. Patch
  8397. contributed by Chi Hsuan Yen.
  8398. - bpo-22274: In the subprocess module, allow stderr to be redirected to
  8399. stdout even when stdout is not redirected. Patch by Akira Li.
  8400. - bpo-26807: mock_open 'files' no longer error on readline at end of file.
  8401. Patch from Yolanda Robla.
  8402. - bpo-25745: Fixed leaking a userptr in curses panel destructor.
  8403. - bpo-26977: Removed unnecessary, and ignored, call to sum of squares helper
  8404. in statistics.pvariance.
  8405. - bpo-26002: Use bisect in statistics.median instead of a linear search.
  8406. Patch by Upendra Kuma.
  8407. - bpo-25974: Make use of new Decimal.as_integer_ratio() method in statistics
  8408. module. Patch by Stefan Krah.
  8409. - bpo-26996: Add secrets module as described in PEP 506.
  8410. - bpo-26881: The modulefinder module now supports extended opcode arguments.
  8411. - bpo-23815: Fixed crashes related to directly created instances of types in
  8412. _tkinter and curses.panel modules.
  8413. - bpo-17765: weakref.ref() no longer silently ignores keyword arguments.
  8414. Patch by Georg Brandl.
  8415. - bpo-26873: xmlrpc now raises ResponseError on unsupported type tags
  8416. instead of silently return incorrect result.
  8417. - bpo-26915: The __contains__ methods in the collections ABCs now check for
  8418. identity before checking equality. This better matches the behavior of
  8419. the concrete classes, allows sensible handling of NaNs, and makes it
  8420. easier to reason about container invariants.
  8421. - bpo-26711: Fixed the comparison of plistlib.Data with other types.
  8422. - bpo-24114: Fix an uninitialized variable in `ctypes.util`.
  8423. The bug only occurs on SunOS when the ctypes implementation searches for
  8424. the `crle` program. Patch by Xiang Zhang. Tested on SunOS by Kees Bos.
  8425. - bpo-26864: In urllib.request, change the proxy bypass host checking
  8426. against no_proxy to be case-insensitive, and to not match unrelated host
  8427. names that happen to have a bypassed hostname as a suffix. Patch by Xiang
  8428. Zhang.
  8429. - bpo-24902: Print server URL on http.server startup. Initial patch by
  8430. Felix Kaiser.
  8431. - bpo-25788: fileinput.hook_encoded() now supports an "errors" argument for
  8432. passing to open. Original patch by Joseph Hackman.
  8433. - bpo-26634: recursive_repr() now sets __qualname__ of wrapper. Patch by
  8434. Xiang Zhang.
  8435. - bpo-26804: urllib.request will prefer lower_case proxy environment
  8436. variables over UPPER_CASE or Mixed_Case ones. Patch contributed by
  8437. Hans-Peter Jansen.
  8438. - bpo-26837: assertSequenceEqual() now correctly outputs non-stringified
  8439. differing items (like bytes in the -b mode). This affects
  8440. assertListEqual() and assertTupleEqual().
  8441. - bpo-26041: Remove "will be removed in Python 3.7" from deprecation
  8442. messages of platform.dist() and platform.linux_distribution(). Patch by
  8443. Kumaripaba Miyurusara Athukorala.
  8444. - bpo-26822: itemgetter, attrgetter and methodcaller objects no longer
  8445. silently ignore keyword arguments.
  8446. - bpo-26733: Disassembling a class now disassembles class and static
  8447. methods. Patch by Xiang Zhang.
  8448. - bpo-26801: Fix error handling in :func:`shutil.get_terminal_size`, catch
  8449. :exc:`AttributeError` instead of :exc:`NameError`. Patch written by
  8450. Emanuel Barry.
  8451. - bpo-24838: tarfile's ustar and gnu formats now correctly calculate name
  8452. and link field limits for multibyte character encodings like utf-8.
  8453. Security
  8454. --------
  8455. - bpo-26657: Fix directory traversal vulnerability with http.server on
  8456. Windows. This fixes a regression that was introduced in 3.3.4rc1 and
  8457. 3.4.0rc1. Based on patch by Philipp Hagemeister.
  8458. Library
  8459. -------
  8460. - bpo-26717: Stop encoding Latin-1-ized WSGI paths with UTF-8. Patch by
  8461. Anthony Sottile.
  8462. - bpo-26782: Add STARTUPINFO to subprocess.__all__ on Windows.
  8463. - bpo-26404: Add context manager to socketserver. Patch by Aviv Palivoda.
  8464. - bpo-26735: Fix :func:`os.urandom` on Solaris 11.3 and newer when reading
  8465. more than 1,024 bytes: call ``getrandom()`` multiple times with a limit of
  8466. 1024 bytes per call.
  8467. - bpo-26585: Eliminate http.server._quote_html() and use
  8468. html.escape(quote=False). Patch by Xiang Zhang.
  8469. - bpo-26685: Raise OSError if closing a socket fails.
  8470. - bpo-16329: Add .webm to mimetypes.types_map. Patch by Giampaolo Rodola'.
  8471. - bpo-13952: Add .csv to mimetypes.types_map. Patch by Geoff Wilson.
  8472. - bpo-26587: the site module now allows .pth files to specify files to be
  8473. added to sys.path (e.g. zip files).
  8474. - bpo-25609: Introduce contextlib.AbstractContextManager and
  8475. typing.ContextManager.
  8476. - bpo-26709: Fixed Y2038 problem in loading binary PLists.
  8477. - bpo-23735: Handle terminal resizing with Readline 6.3+ by installing our
  8478. own SIGWINCH handler. Patch by Eric Price.
  8479. - bpo-25951: Change SSLSocket.sendall() to return None, as explicitly
  8480. documented for plain socket objects. Patch by Aviv Palivoda.
  8481. - bpo-26586: In http.server, respond with "413 Request header fields too
  8482. large" if there are too many header fields to parse, rather than killing
  8483. the connection and raising an unhandled exception. Patch by Xiang Zhang.
  8484. - bpo-26676: Added missing XMLPullParser to ElementTree.__all__.
  8485. - bpo-22854: Change BufferedReader.writable() and BufferedWriter.readable()
  8486. to always return False.
  8487. - bpo-26492: Exhausted iterator of array.array now conforms with the
  8488. behavior of iterators of other mutable sequences: it lefts exhausted even
  8489. if iterated array is extended.
  8490. - bpo-26641: doctest.DocFileTest and doctest.testfile() now support packages
  8491. (module splitted into multiple directories) for the package parameter.
  8492. - bpo-25195: Fix a regression in mock.MagicMock. _Call is a subclass of
  8493. tuple (changeset 3603bae63c13 only works for classes) so we need to
  8494. implement __ne__ ourselves. Patch by Andrew Plummer.
  8495. - bpo-26644: Raise ValueError rather than SystemError when a negative length
  8496. is passed to SSLSocket.recv() or read().
  8497. - bpo-23804: Fix SSL recv(0) and read(0) methods to return zero bytes
  8498. instead of up to 1024.
  8499. - bpo-26616: Fixed a bug in datetime.astimezone() method.
  8500. - bpo-26637: The :mod:`importlib` module now emits an :exc:`ImportError`
  8501. rather than a :exc:`TypeError` if :func:`__import__` is tried during the
  8502. Python shutdown process but :data:`sys.path` is already cleared (set to
  8503. ``None``).
  8504. - bpo-21925: :func:`warnings.formatwarning` now catches exceptions when
  8505. calling :func:`linecache.getline` and
  8506. :func:`tracemalloc.get_object_traceback` to be able to log
  8507. :exc:`ResourceWarning` emitted late during the Python shutdown process.
  8508. - bpo-23848: On Windows, faulthandler.enable() now also installs an
  8509. exception handler to dump the traceback of all Python threads on any
  8510. Windows exception, not only on UNIX signals (SIGSEGV, SIGFPE, SIGABRT).
  8511. - bpo-26530: Add C functions :c:func:`_PyTraceMalloc_Track` and
  8512. :c:func:`_PyTraceMalloc_Untrack` to track memory blocks using the
  8513. :mod:`tracemalloc` module. Add :c:func:`_PyTraceMalloc_GetTraceback` to
  8514. get the traceback of an object.
  8515. - bpo-26588: The _tracemalloc now supports tracing memory allocations of
  8516. multiple address spaces (domains).
  8517. - bpo-24266: Ctrl+C during Readline history search now cancels the search
  8518. mode when compiled with Readline 7.
  8519. - bpo-26590: Implement a safe finalizer for the _socket.socket type. It now
  8520. releases the GIL to close the socket.
  8521. - bpo-18787: spwd.getspnam() now raises a PermissionError if the user
  8522. doesn't have privileges.
  8523. - bpo-26560: Avoid potential ValueError in BaseHandler.start_response.
  8524. Initial patch by Peter Inglesby.
  8525. - bpo-26567: Add a new function :c:func:`PyErr_ResourceWarning` function to
  8526. pass the destroyed object. Add a *source* attribute to
  8527. :class:`warnings.WarningMessage`. Add warnings._showwarnmsg() which uses
  8528. tracemalloc to get the traceback where source object was allocated.
  8529. Security
  8530. --------
  8531. - bpo-26313: ssl.py _load_windows_store_certs fails if windows cert store is
  8532. empty. Patch by Baji.
  8533. Library
  8534. -------
  8535. - bpo-26569: Fix :func:`pyclbr.readmodule` and :func:`pyclbr.readmodule_ex`
  8536. to support importing packages.
  8537. - bpo-26499: Account for remaining Content-Length in HTTPResponse.readline()
  8538. and read1(). Based on patch by Silent Ghost. Also document that
  8539. HTTPResponse now supports these methods.
  8540. - bpo-25320: Handle sockets in directories unittest discovery is scanning.
  8541. Patch from Victor van den Elzen.
  8542. - bpo-16181: cookiejar.http2time() now returns None if year is higher than
  8543. datetime.MAXYEAR.
  8544. - bpo-26513: Fixes platform module detection of Windows Server
  8545. - bpo-23718: Fixed parsing time in week 0 before Jan 1. Original patch by
  8546. Tamás Bence Gedai.
  8547. - bpo-26323: Add Mock.assert_called() and Mock.assert_called_once() methods
  8548. to unittest.mock. Patch written by Amit Saha.
  8549. - bpo-20589: Invoking Path.owner() and Path.group() on Windows now raise
  8550. NotImplementedError instead of ImportError.
  8551. - bpo-26177: Fixed the keys() method for Canvas and Scrollbar widgets.
  8552. - bpo-15068: Got rid of excessive buffering in fileinput. The bufsize
  8553. parameter is now deprecated and ignored.
  8554. - bpo-19475: Added an optional argument timespec to the datetime isoformat()
  8555. method to choose the precision of the time component.
  8556. - bpo-2202: Fix UnboundLocalError in
  8557. AbstractDigestAuthHandler.get_algorithm_impls. Initial patch by Mathieu
  8558. Dupuy.
  8559. - bpo-26167: Minimized overhead in copy.copy() and copy.deepcopy().
  8560. Optimized copying and deepcopying bytearrays, NotImplemented, slices,
  8561. short lists, tuples, dicts, sets.
  8562. - bpo-25718: Fixed pickling and copying the accumulate() iterator with total
  8563. is None.
  8564. - bpo-26475: Fixed debugging output for regular expressions with the (?x)
  8565. flag.
  8566. - bpo-26482: Allowed pickling recursive dequeues.
  8567. - bpo-26335: Make mmap.write() return the number of bytes written like other
  8568. write methods. Patch by Jakub Stasiak.
  8569. - bpo-26457: Fixed the subnets() methods in IP network classes for the case
  8570. when resulting prefix length is equal to maximal prefix length. Based on
  8571. patch by Xiang Zhang.
  8572. - bpo-26385: Remove the file if the internal open() call in
  8573. NamedTemporaryFile() fails. Patch by Silent Ghost.
  8574. - bpo-26402: Fix XML-RPC client to retry when the server shuts down a
  8575. persistent connection. This was a regression related to the new
  8576. http.client.RemoteDisconnected exception in 3.5.0a4.
  8577. - bpo-25913: Leading ``<~`` is optional now in base64.a85decode() with
  8578. adobe=True. Patch by Swati Jaiswal.
  8579. - bpo-26186: Remove an invalid type check in importlib.util.LazyLoader.
  8580. - bpo-26367: importlib.__import__() raises ImportError like
  8581. builtins.__import__() when ``level`` is specified but without an
  8582. accompanying package specified.
  8583. - bpo-26309: In the "socketserver" module, shut down the request (closing
  8584. the connected socket) when verify_request() returns false. Patch by Aviv
  8585. Palivoda.
  8586. - bpo-23430: Change the socketserver module to only catch exceptions raised
  8587. from a request handler that are derived from Exception (instead of
  8588. BaseException). Therefore SystemExit and KeyboardInterrupt no longer
  8589. trigger the handle_error() method, and will now to stop a single-threaded
  8590. server.
  8591. Security
  8592. --------
  8593. - bpo-25939: On Windows open the cert store readonly in
  8594. ssl.enum_certificates.
  8595. Library
  8596. -------
  8597. - bpo-25995: os.walk() no longer uses FDs proportional to the tree depth.
  8598. - bpo-25994: Added the close() method and the support of the context manager
  8599. protocol for the os.scandir() iterator.
  8600. - bpo-23992: multiprocessing: make MapResult not fail-fast upon exception.
  8601. - bpo-26243: Support keyword arguments to zlib.compress(). Patch by Aviv
  8602. Palivoda.
  8603. - bpo-26117: The os.scandir() iterator now closes file descriptor not only
  8604. when the iteration is finished, but when it was failed with error.
  8605. - bpo-25949: __dict__ for an OrderedDict instance is now created only when
  8606. needed.
  8607. - bpo-25911: Restored support of bytes paths in os.walk() on Windows.
  8608. - bpo-26045: Add UTF-8 suggestion to error message when posting a
  8609. non-Latin-1 string with http.client.
  8610. - bpo-26039: Added zipfile.ZipInfo.from_file() and zipinfo.ZipInfo.is_dir().
  8611. Patch by Thomas Kluyver.
  8612. - bpo-12923: Reset FancyURLopener's redirect counter even if there is an
  8613. exception. Based on patches by Brian Brazil and Daniel Rocco.
  8614. - bpo-25945: Fixed a crash when unpickle the functools.partial object with
  8615. wrong state. Fixed a leak in failed functools.partial constructor. "args"
  8616. and "keywords" attributes of functools.partial have now always types tuple
  8617. and dict correspondingly.
  8618. - bpo-26202: copy.deepcopy() now correctly copies range() objects with
  8619. non-atomic attributes.
  8620. - bpo-23076: Path.glob() now raises a ValueError if it's called with an
  8621. invalid pattern. Patch by Thomas Nyberg.
  8622. - bpo-19883: Fixed possible integer overflows in zipimport.
  8623. - bpo-26227: On Windows, getnameinfo(), gethostbyaddr() and
  8624. gethostbyname_ex() functions of the socket module now decode the hostname
  8625. from the ANSI code page rather than UTF-8.
  8626. - bpo-26099: The site module now writes an error into stderr if
  8627. sitecustomize module can be imported but executing the module raise an
  8628. ImportError. Same change for usercustomize.
  8629. - bpo-26147: xmlrpc now works with strings not encodable with used non-UTF-8
  8630. encoding.
  8631. - bpo-25935: Garbage collector now breaks reference loops with OrderedDict.
  8632. - bpo-16620: Fixed AttributeError in msilib.Directory.glob().
  8633. - bpo-26013: Added compatibility with broken protocol 2 pickles created in
  8634. old Python 3 versions (3.4.3 and lower).
  8635. - bpo-26129: Deprecated accepting non-integers in grp.getgrgid().
  8636. - bpo-25850: Use cross-compilation by default for 64-bit Windows.
  8637. - bpo-25822: Add docstrings to the fields of urllib.parse results. Patch
  8638. contributed by Swati Jaiswal.
  8639. - bpo-22642: Convert trace module option parsing mechanism to argparse.
  8640. Patch contributed by SilentGhost.
  8641. - bpo-24705: Fix sysconfig._parse_makefile not expanding ${} vars appearing
  8642. before $() vars.
  8643. - bpo-26069: Remove the deprecated apis in the trace module.
  8644. - bpo-22138: Fix mock.patch behavior when patching descriptors. Restore
  8645. original values after patching. Patch contributed by Sean McCully.
  8646. - bpo-25672: In the ssl module, enable the SSL_MODE_RELEASE_BUFFERS mode
  8647. option if it is safe to do so.
  8648. - bpo-26012: Don't traverse into symlinks for ``**`` pattern in
  8649. pathlib.Path.[r]glob().
  8650. - bpo-24120: Ignore PermissionError when traversing a tree with
  8651. pathlib.Path.[r]glob(). Patch by Ulrich Petri.
  8652. - bpo-21815: Accept ] characters in the data portion of imap responses, in
  8653. order to handle the flags with square brackets accepted and produced by
  8654. servers such as gmail.
  8655. - bpo-25447: fileinput now uses sys.stdin as-is if it does not have a buffer
  8656. attribute (restores backward compatibility).
  8657. - bpo-25971: Optimized creating Fractions from floats by 2 times and from
  8658. Decimals by 3 times.
  8659. - bpo-25802: Document as deprecated the remaining implementations of
  8660. importlib.abc.Loader.load_module().
  8661. - bpo-25928: Add Decimal.as_integer_ratio().
  8662. - bpo-25447: Copying the lru_cache() wrapper object now always works,
  8663. independently from the type of the wrapped object (by returning the
  8664. original object unchanged).
  8665. - bpo-25768: Have the functions in compileall return booleans instead of
  8666. ints and add proper documentation and tests for the return values.
  8667. - bpo-24103: Fixed possible use after free in ElementTree.XMLPullParser.
  8668. - bpo-25860: os.fwalk() no longer skips remaining directories when error
  8669. occurs. Original patch by Samson Lee.
  8670. - bpo-25914: Fixed and simplified OrderedDict.__sizeof__.
  8671. - bpo-25869: Optimized deepcopying ElementTree; it is now 20 times faster.
  8672. - bpo-25873: Optimized iterating ElementTree. Iterating elements
  8673. Element.iter() is now 40% faster, iterating text Element.itertext() is now
  8674. up to 2.5 times faster.
  8675. - bpo-25902: Fixed various refcount issues in ElementTree iteration.
  8676. - bpo-22227: The TarFile iterator is reimplemented using generator. This
  8677. implementation is simpler that using class.
  8678. - bpo-25638: Optimized ElementTree.iterparse(); it is now 2x faster.
  8679. Optimized ElementTree parsing; it is now 10% faster.
  8680. - bpo-25761: Improved detecting errors in broken pickle data.
  8681. - bpo-25717: Restore the previous behaviour of tolerating most fstat()
  8682. errors when opening files. This was a regression in 3.5a1, and stopped
  8683. anonymous temporary files from working in special cases.
  8684. - bpo-24903: Fix regression in number of arguments compileall accepts when
  8685. '-d' is specified. The check on the number of arguments has been dropped
  8686. completely as it never worked correctly anyway.
  8687. - bpo-25764: In the subprocess module, preserve any exception caused by
  8688. fork() failure when preexec_fn is used.
  8689. - bpo-25771: Tweak the exception message for importlib.util.resolve_name()
  8690. when 'package' isn't specified but necessary.
  8691. - bpo-6478: _strptime's regexp cache now is reset after changing timezone
  8692. with time.tzset().
  8693. - bpo-14285: When executing a package with the "python -m package" option,
  8694. and package initialization fails, a proper traceback is now reported. The
  8695. "runpy" module now lets exceptions from package initialization pass back
  8696. to the caller, rather than raising ImportError.
  8697. - bpo-19771: Also in runpy and the "-m" option, omit the irrelevant message
  8698. ". . . is a package and cannot be directly executed" if the package could
  8699. not even be initialized (e.g. due to a bad ``*.pyc`` file).
  8700. - bpo-25177: Fixed problem with the mean of very small and very large
  8701. numbers. As a side effect, statistics.mean and statistics.variance should
  8702. be significantly faster.
  8703. - bpo-25718: Fixed copying object with state with boolean value is false.
  8704. - bpo-10131: Fixed deep copying of minidom documents. Based on patch by
  8705. Marian Ganisin.
  8706. - bpo-7990: dir() on ElementTree.Element now lists properties: "tag",
  8707. "text", "tail" and "attrib". Original patch by Santoso Wijaya.
  8708. - bpo-25725: Fixed a reference leak in pickle.loads() when unpickling
  8709. invalid data including tuple instructions.
  8710. - bpo-25663: In the Readline completer, avoid listing duplicate global
  8711. names, and search the global namespace before searching builtins.
  8712. - bpo-25688: Fixed file leak in ElementTree.iterparse() raising an error.
  8713. - bpo-23914: Fixed SystemError raised by unpickler on broken pickle data.
  8714. - bpo-25691: Fixed crash on deleting ElementTree.Element attributes.
  8715. - bpo-25624: ZipFile now always writes a ZIP_STORED header for directory
  8716. entries. Patch by Dingyuan Wang.
  8717. - bpo-25626: Change three zlib functions to accept sizes that fit in
  8718. Py_ssize_t, but internally cap those sizes to UINT_MAX. This resolves a
  8719. regression in 3.5 where GzipFile.read() failed to read chunks larger than
  8720. 2 or 4 GiB. The change affects the zlib.Decompress.decompress()
  8721. max_length parameter, the zlib.decompress() bufsize parameter, and the
  8722. zlib.Decompress.flush() length parameter.
  8723. - bpo-25583: Avoid incorrect errors raised by os.makedirs(exist_ok=True)
  8724. when the OS gives priority to errors such as EACCES over EEXIST.
  8725. - bpo-25593: Change semantics of EventLoop.stop() in asyncio.
  8726. - bpo-6973: When we know a subprocess.Popen process has died, do not allow
  8727. the send_signal(), terminate(), or kill() methods to do anything as they
  8728. could potentially signal a different process.
  8729. - bpo-23883: Added missing APIs to __all__ to match the documented APIs for
  8730. the following modules: calendar, csv, enum, fileinput, ftplib, logging,
  8731. optparse, tarfile, threading and wave. Also added a
  8732. test.support.check__all__() helper. Patches by Jacek Kołodziej, Mauro S.
  8733. M. Rodrigues and Joel Taddei.
  8734. - bpo-25590: In the Readline completer, only call getattr() once per
  8735. attribute. Also complete names of attributes such as properties and slots
  8736. which are listed by dir() but not yet created on an instance.
  8737. - bpo-25498: Fix a crash when garbage-collecting ctypes objects created by
  8738. wrapping a memoryview. This was a regression made in 3.5a1. Based on
  8739. patch by Eryksun.
  8740. - bpo-25584: Added "escape" to the __all__ list in the glob module.
  8741. - bpo-25584: Fixed recursive glob() with patterns starting with ``**``.
  8742. - bpo-25446: Fix regression in smtplib's AUTH LOGIN support.
  8743. - bpo-18010: Fix the pydoc web server's module search function to handle
  8744. exceptions from importing packages.
  8745. - bpo-25554: Got rid of circular references in regular expression parsing.
  8746. - bpo-18973: Command-line interface of the calendar module now uses argparse
  8747. instead of optparse.
  8748. - bpo-25510: fileinput.FileInput.readline() now returns b'' instead of '' at
  8749. the end if the FileInput was opened with binary mode. Patch by Ryosuke
  8750. Ito.
  8751. - bpo-25503: Fixed inspect.getdoc() for inherited docstrings of properties.
  8752. Original patch by John Mark Vandenberg.
  8753. - bpo-25515: Always use os.urandom as a source of randomness in uuid.uuid4.
  8754. - bpo-21827: Fixed textwrap.dedent() for the case when largest common
  8755. whitespace is a substring of smallest leading whitespace. Based on patch
  8756. by Robert Li.
  8757. - bpo-25447: The lru_cache() wrapper objects now can be copied and pickled
  8758. (by returning the original object unchanged).
  8759. - bpo-25390: typing: Don't crash on Union[str, Pattern].
  8760. - bpo-25441: asyncio: Raise error from drain() when socket is closed.
  8761. - bpo-25410: Cleaned up and fixed minor bugs in C implementation of
  8762. OrderedDict.
  8763. - bpo-25411: Improved Unicode support in SMTPHandler through better use of
  8764. the email package. Thanks to user simon04 for the patch.
  8765. - Move the imp module from a PendingDeprecationWarning to
  8766. DeprecationWarning.
  8767. - bpo-25407: Remove mentions of the formatter module being removed in Python
  8768. 3.6.
  8769. - bpo-25406: Fixed a bug in C implementation of OrderedDict.move_to_end()
  8770. that caused segmentation fault or hang in iterating after moving several
  8771. items to the start of ordered dict.
  8772. - bpo-25382: pickletools.dis() now outputs implicit memo index for the
  8773. MEMOIZE opcode.
  8774. - bpo-25357: Add an optional newline parameter to binascii.b2a_base64().
  8775. base64.b64encode() uses it to avoid a memory copy.
  8776. - bpo-24164: Objects that need calling ``__new__`` with keyword arguments,
  8777. can now be pickled using pickle protocols older than protocol version 4.
  8778. - bpo-25364: zipfile now works in threads disabled builds.
  8779. - bpo-25328: smtpd's SMTPChannel now correctly raises a ValueError if both
  8780. decode_data and enable_SMTPUTF8 are set to true.
  8781. - bpo-16099: RobotFileParser now supports Crawl-delay and Request-rate
  8782. extensions. Patch by Nikolay Bogoychev.
  8783. - bpo-25316: distutils raises OSError instead of DistutilsPlatformError when
  8784. MSVC is not installed.
  8785. - bpo-25380: Fixed protocol for the STACK_GLOBAL opcode in
  8786. pickletools.opcodes.
  8787. - bpo-23972: Updates asyncio datagram create method allowing reuseport and
  8788. reuseaddr socket options to be set prior to binding the socket. Mirroring
  8789. the existing asyncio create_server method the reuseaddr option for
  8790. datagram sockets defaults to True if the O/S is 'posix' (except if the
  8791. platform is Cygwin). Patch by Chris Laws.
  8792. - bpo-25304: Add asyncio.run_coroutine_threadsafe(). This lets you submit a
  8793. coroutine to a loop from another thread, returning a
  8794. concurrent.futures.Future. By Vincent Michel.
  8795. - bpo-25232: Fix CGIRequestHandler to split the query from the URL at the
  8796. first question mark (?) rather than the last. Patch from Xiang Zhang.
  8797. - bpo-24657: Prevent CGIRequestHandler from collapsing slashes in the query
  8798. part of the URL as if it were a path. Patch from Xiang Zhang.
  8799. - bpo-25287: Don't add crypt.METHOD_CRYPT to crypt.methods if it's not
  8800. supported. Check if it is supported, it may not be supported on OpenBSD
  8801. for example.
  8802. - bpo-23600: Default implementation of tzinfo.fromutc() was returning wrong
  8803. results in some cases.
  8804. - bpo-25203: Failed readline.set_completer_delims() no longer left the
  8805. module in inconsistent state.
  8806. - bpo-25011: rlcompleter now omits private and special attribute names
  8807. unless the prefix starts with underscores.
  8808. - bpo-25209: rlcompleter now can add a space or a colon after completed
  8809. keyword.
  8810. - bpo-22241: timezone.utc name is now plain 'UTC', not 'UTC-00:00'.
  8811. - bpo-23517: fromtimestamp() and utcfromtimestamp() methods of
  8812. datetime.datetime now round microseconds to nearest with ties going to
  8813. nearest even integer (ROUND_HALF_EVEN), as round(float), instead of
  8814. rounding towards -Infinity (ROUND_FLOOR).
  8815. - bpo-23552: Timeit now warns when there is substantial (4x) variance
  8816. between best and worst times. Patch from Serhiy Storchaka.
  8817. - bpo-24633: site-packages/README -> README.txt.
  8818. - bpo-24879: help() and pydoc can now list named tuple fields in the order
  8819. they were defined rather than alphabetically. The ordering is determined
  8820. by the _fields attribute if present.
  8821. - bpo-24874: Improve speed of itertools.cycle() and make its pickle more
  8822. compact.
  8823. - Fix crash in itertools.cycle.__setstate__() when the first argument wasn't
  8824. a list.
  8825. - bpo-20059: urllib.parse raises ValueError on all invalid ports. Patch by
  8826. Martin Panter.
  8827. - bpo-24360: Improve __repr__ of argparse.Namespace() for invalid
  8828. identifiers. Patch by Matthias Bussonnier.
  8829. - bpo-23426: run_setup was broken in distutils. Patch from Alexander
  8830. Belopolsky.
  8831. - bpo-13938: 2to3 converts StringTypes to a tuple. Patch from Mark Hammond.
  8832. - bpo-2091: open() accepted a 'U' mode string containing '+', but 'U' can
  8833. only be used with 'r'. Patch from Jeff Balogh and John O'Connor.
  8834. - bpo-8585: improved tests for zipimporter2. Patch from Mark Lawrence.
  8835. - bpo-18622: unittest.mock.mock_open().reset_mock would recurse infinitely.
  8836. Patch from Nicola Palumbo and Laurent De Buyst.
  8837. - bpo-24426: Fast searching optimization in regular expressions now works
  8838. for patterns that starts with capturing groups. Fast searching
  8839. optimization now can't be disabled at compile time.
  8840. - bpo-23661: unittest.mock side_effects can now be exceptions again. This
  8841. was a regression vs Python 3.4. Patch from Ignacio Rossi
  8842. - bpo-13248: Remove deprecated inspect.getmoduleinfo function.
  8843. - bpo-25578: Fix (another) memory leak in SSLSocket.getpeercer().
  8844. - bpo-25530: Disable the vulnerable SSLv3 protocol by default when creating
  8845. ssl.SSLContext.
  8846. - bpo-25569: Fix memory leak in SSLSocket.getpeercert().
  8847. - bpo-25471: Sockets returned from accept() shouldn't appear to be
  8848. nonblocking.
  8849. - bpo-25319: When threading.Event is reinitialized, the underlying condition
  8850. should use a regular lock rather than a recursive lock.
  8851. - Skip getaddrinfo if host is already resolved. Patch by A. Jesse Jiryu
  8852. Davis.
  8853. - bpo-26050: Add asyncio.StreamReader.readuntil() method. Patch by Марк
  8854. Коренберг.
  8855. - bpo-25924: Avoid unnecessary serialization of getaddrinfo(3) calls on OS X
  8856. versions 10.5 or higher. Original patch by A. Jesse Jiryu Davis.
  8857. - bpo-26406: Avoid unnecessary serialization of getaddrinfo(3) calls on
  8858. current versions of OpenBSD and NetBSD. Patch by A. Jesse Jiryu Davis.
  8859. - bpo-26848: Fix asyncio/subprocess.communicate() to handle empty input.
  8860. Patch by Jack O'Connor.
  8861. - bpo-27040: Add loop.get_exception_handler method
  8862. - bpo-27041: asyncio: Add loop.create_future method
  8863. IDLE
  8864. ----
  8865. - bpo-20640: Add tests for idlelib.configHelpSourceEdit. Patch by Saimadhav
  8866. Heblikar.
  8867. - In the 'IDLE-console differences' section of the IDLE doc, clarify how
  8868. running with IDLE affects sys.modules and the standard streams.
  8869. - bpo-25507: fix incorrect change in IOBinding that prevented printing.
  8870. Augment IOBinding htest to include all major IOBinding functions.
  8871. - bpo-25905: Revert unwanted conversion of ' to ’ RIGHT SINGLE QUOTATION
  8872. MARK in README.txt and open this and NEWS.txt with 'ascii'. Re-encode
  8873. CREDITS.txt to utf-8 and open it with 'utf-8'.
  8874. - bpo-15348: Stop the debugger engine (normally in a user process) before
  8875. closing the debugger window (running in the IDLE process). This prevents
  8876. the RuntimeErrors that were being caught and ignored.
  8877. - bpo-24455: Prevent IDLE from hanging when a) closing the shell while the
  8878. debugger is active (15347); b) closing the debugger with the [X] button
  8879. (15348); and c) activating the debugger when already active (24455). The
  8880. patch by Mark Roseman does this by making two changes. 1. Suspend and
  8881. resume the gui.interaction method with the tcl vwait mechanism intended
  8882. for this purpose (instead of root.mainloop & .quit). 2. In gui.run, allow
  8883. any existing interaction to terminate first.
  8884. - Change 'The program' to 'Your program' in an IDLE 'kill program?' message
  8885. to make it clearer that the program referred to is the currently running
  8886. user program, not IDLE itself.
  8887. - bpo-24750: Improve the appearance of the IDLE editor window status bar.
  8888. Patch by Mark Roseman.
  8889. - bpo-25313: Change the handling of new built-in text color themes to better
  8890. address the compatibility problem introduced by the addition of IDLE Dark.
  8891. Consistently use the revised idleConf.CurrentTheme everywhere in idlelib.
  8892. - bpo-24782: Extension configuration is now a tab in the IDLE Preferences
  8893. dialog rather than a separate dialog. The former tabs are now a sorted
  8894. list. Patch by Mark Roseman.
  8895. - bpo-22726: Re-activate the config dialog help button with some content
  8896. about the other buttons and the new IDLE Dark theme.
  8897. - bpo-24820: IDLE now has an 'IDLE Dark' built-in text color theme. It is
  8898. more or less IDLE Classic inverted, with a cobalt blue background.
  8899. Strings, comments, keywords, ... are still green, red, orange, ... . To
  8900. use it with IDLEs released before November 2015, hit the 'Save as New
  8901. Custom Theme' button and enter a new name, such as 'Custom Dark'. The
  8902. custom theme will work with any IDLE release, and can be modified.
  8903. - bpo-25224: README.txt is now an idlelib index for IDLE developers and
  8904. curious users. The previous user content is now in the IDLE doc chapter.
  8905. 'IDLE' now means 'Integrated Development and Learning Environment'.
  8906. - bpo-24820: Users can now set breakpoint colors in Settings -> Custom
  8907. Highlighting. Original patch by Mark Roseman.
  8908. - bpo-24972: Inactive selection background now matches active selection
  8909. background, as configured by users, on all systems. Found items are now
  8910. always highlighted on Windows. Initial patch by Mark Roseman.
  8911. - bpo-24570: Idle: make calltip and completion boxes appear on Macs affected
  8912. by a tk regression. Initial patch by Mark Roseman.
  8913. - bpo-24988: Idle ScrolledList context menus (used in debugger) now work on
  8914. Mac Aqua. Patch by Mark Roseman.
  8915. - bpo-24801: Make right-click for context menu work on Mac Aqua. Patch by
  8916. Mark Roseman.
  8917. - bpo-25173: Associate tkinter messageboxes with a specific widget. For Mac
  8918. OSX, make them a 'sheet'. Patch by Mark Roseman.
  8919. - bpo-25198: Enhance the initial html viewer now used for Idle Help.
  8920. Properly indent fixed-pitch text (patch by Mark Roseman). Give code
  8921. snippet a very Sphinx-like light blueish-gray background. Re-use initial
  8922. width and height set by users for shell and editor. When the Table of
  8923. Contents (TOC) menu is used, put the section header at the top of the
  8924. screen.
  8925. - bpo-25225: Condense and rewrite Idle doc section on text colors.
  8926. - bpo-21995: Explain some differences between IDLE and console Python.
  8927. - bpo-22820: Explain need for *print* when running file from Idle editor.
  8928. - bpo-25224: Doc: augment Idle feature list and no-subprocess section.
  8929. - bpo-25219: Update doc for Idle command line options. Some were missing and
  8930. notes were not correct.
  8931. - bpo-24861: Most of idlelib is private and subject to change. Use
  8932. idleib.idle.* to start Idle. See idlelib.__init__.__doc__.
  8933. - bpo-25199: Idle: add synchronization comments for future maintainers.
  8934. - bpo-16893: Replace help.txt with help.html for Idle doc display. The new
  8935. idlelib/help.html is rstripped Doc/build/html/library/idle.html. It looks
  8936. better than help.txt and will better document Idle as released. The
  8937. tkinter html viewer that works for this file was written by Rose Roseman.
  8938. The now unused EditorWindow.HelpDialog class and helt.txt file are
  8939. deprecated.
  8940. - bpo-24199: Deprecate unused idlelib.idlever with possible removal in 3.6.
  8941. - bpo-24790: Remove extraneous code (which also create 2 & 3 conflicts).
  8942. Documentation
  8943. -------------
  8944. - bpo-26736: Used HTTPS for external links in the documentation if possible.
  8945. - bpo-6953: Rework the Readline module documentation to group related
  8946. functions together, and add more details such as what underlying Readline
  8947. functions and variables are accessed.
  8948. - bpo-23606: Adds note to ctypes documentation regarding cdll.msvcrt.
  8949. - bpo-24952: Clarify the default size argument of stack_size() in the
  8950. "threading" and "_thread" modules. Patch from Mattip.
  8951. - bpo-26014: Update 3.x packaging documentation: * "See also" links to the
  8952. new docs are now provided in the legacy pages * links to setuptools
  8953. documentation have been updated
  8954. Tests
  8955. -----
  8956. - bpo-21916: Added tests for the turtle module. Patch by ingrid, Gregory
  8957. Loyse and Jelle Zijlstra.
  8958. - bpo-26295: When using "python3 -m test --testdir=TESTDIR", regrtest
  8959. doesn't add "test." prefix to test module names.
  8960. - bpo-26523: The multiprocessing thread pool (multiprocessing.dummy.Pool)
  8961. was untested.
  8962. - bpo-26015: Added new tests for pickling iterators of mutable sequences.
  8963. - bpo-26325: Added test.support.check_no_resource_warning() to check that no
  8964. ResourceWarning is emitted.
  8965. - bpo-25940: Changed test_ssl to use its internal local server more. This
  8966. avoids relying on svn.python.org, which recently changed root certificate.
  8967. - bpo-25616: Tests for OrderedDict are extracted from test_collections into
  8968. separate file test_ordered_dict.
  8969. - bpo-25449: Added tests for OrderedDict subclasses.
  8970. - bpo-25188: Add -P/--pgo to test.regrtest to suppress error output when
  8971. running the test suite for the purposes of a PGO build. Initial patch by
  8972. Alecsandru Patrascu.
  8973. - bpo-22806: Add ``python -m test --list-tests`` command to list tests.
  8974. - bpo-18174: ``python -m test --huntrleaks ...`` now also checks for leak of
  8975. file descriptors. Patch written by Richard Oudkerk.
  8976. - bpo-25260: Fix ``python -m test --coverage`` on Windows. Remove the list
  8977. of ignored directories.
  8978. - ``PCbuild\rt.bat`` now accepts an unlimited number of arguments to pass
  8979. along to regrtest.py. Previously there was a limit of 9.
  8980. - bpo-26583: Skip test_timestamp_overflow in test_import if bytecode files
  8981. cannot be written.
  8982. Build
  8983. -----
  8984. - bpo-21277: Don't try to link _ctypes with a ffi_convenience library.
  8985. - bpo-26884: Fix linking extension modules for cross builds. Patch by Xavier
  8986. de Gaye.
  8987. - bpo-26932: Fixed support of RTLD_* constants defined as enum values, not
  8988. via macros (in particular on Android). Patch by Chi Hsuan Yen.
  8989. - bpo-22359: Disable the rules for running _freeze_importlib and pgen when
  8990. cross-compiling. The output of these programs is normally saved with the
  8991. source code anyway, and is still regenerated when doing a native build.
  8992. Patch by Xavier de Gaye.
  8993. - bpo-21668: Link audioop, _datetime, _ctypes_test modules to libm, except
  8994. on Mac OS X. Patch written by Chi Hsuan Yen.
  8995. - bpo-25702: A --with-lto configure option has been added that will enable
  8996. link time optimizations at build time during a make profile-opt. Some
  8997. compilers and toolchains are known to not produce stable code when using
  8998. LTO, be sure to test things thoroughly before relying on it. It can
  8999. provide a few % speed up over profile-opt alone.
  9000. - bpo-26624: Adds validation of ucrtbase[d].dll version with warning for old
  9001. versions.
  9002. - bpo-17603: Avoid error about nonexistent fileblocks.o file by using a
  9003. lower-level check for st_blocks in struct stat.
  9004. - bpo-26079: Fixing the build output folder for tix-8.4.3.6. Patch by Bjoern
  9005. Thiel.
  9006. - bpo-26465: Update Windows builds to use OpenSSL 1.0.2g.
  9007. - bpo-25348: Added ``--pgo`` and ``--pgo-job`` arguments to
  9008. ``PCbuild\build.bat`` for building with Profile-Guided Optimization. The
  9009. old ``PCbuild\build_pgo.bat`` script is removed.
  9010. - bpo-25827: Add support for building with ICC to ``configure``, including a
  9011. new ``--with-icc`` flag.
  9012. - bpo-25696: Fix installation of Python on UNIX with make -j9.
  9013. - bpo-24986: It is now possible to build Python on Windows without errors
  9014. when external libraries are not available.
  9015. - bpo-24421: Compile Modules/_math.c once, before building extensions.
  9016. Previously it could fail to compile properly if the math and cmath builds
  9017. were concurrent.
  9018. - bpo-26465: Update OS X 10.5+ 32-bit-only installer to build and link with
  9019. OpenSSL 1.0.2g.
  9020. - bpo-26268: Update Windows builds to use OpenSSL 1.0.2f.
  9021. - bpo-25136: Support Apple Xcode 7's new textual SDK stub libraries.
  9022. - bpo-24324: Do not enable unreachable code warnings when using gcc as the
  9023. option does not work correctly in older versions of gcc and has been
  9024. silently removed as of gcc-4.5.
  9025. Windows
  9026. -------
  9027. - bpo-27053: Updates make_zip.py to correctly generate library ZIP file.
  9028. - bpo-26268: Update the prepare_ssl.py script to handle OpenSSL releases
  9029. that don't include the contents of the include directory (that is, 1.0.2e
  9030. and later).
  9031. - bpo-26071: bdist_wininst created binaries fail to start and find 32bit
  9032. Python
  9033. - bpo-26073: Update the list of magic numbers in launcher
  9034. - bpo-26065: Excludes venv from library when generating embeddable distro.
  9035. - bpo-25022: Removed very outdated PC/example_nt/ directory.
  9036. Tools/Demos
  9037. -----------
  9038. - bpo-26799: Fix python-gdb.py: don't get C types once when the Python code
  9039. is loaded, but get C types on demand. The C types can change if
  9040. python-gdb.py is loaded before the Python executable. Patch written by
  9041. Thomas Ilsche.
  9042. - bpo-26271: Fix the Freeze tool to properly use flags passed through
  9043. configure. Patch by Daniel Shaulov.
  9044. - bpo-26489: Add dictionary unpacking support to Tools/parser/unparse.py.
  9045. Patch by Guo Ci Teo.
  9046. - bpo-26316: Fix variable name typo in Argument Clinic.
  9047. - bpo-25440: Fix output of python-config --extension-suffix.
  9048. - bpo-25154: The pyvenv script has been deprecated in favour of `python3 -m
  9049. venv`.
  9050. C API
  9051. -----
  9052. - bpo-26312: SystemError is now raised in all programming bugs with using
  9053. PyArg_ParseTupleAndKeywords(). RuntimeError did raised before in some
  9054. programming bugs.
  9055. - bpo-26198: ValueError is now raised instead of TypeError on buffer
  9056. overflow in parsing "es#" and "et#" format units. SystemError is now
  9057. raised instead of TypeError on programmatical error in parsing format
  9058. string.
  9059. What's New in Python 3.5.5 final?
  9060. =================================
  9061. *Release date: 2018-02-04*
  9062. There were no new changes in version 3.5.5.
  9063. What's New in Python 3.5.5 release candidate 1?
  9064. ===============================================
  9065. *Release date: 2018-01-23*
  9066. Security
  9067. --------
  9068. - bpo-32551: The ``sys.path[0]`` initialization change for bpo-29139 caused
  9069. a regression by revealing an inconsistency in how sys.path is initialized
  9070. when executing ``__main__`` from a zipfile, directory, or other import
  9071. location. This is considered a potential security issue, as it may lead to
  9072. privileged processes unexpectedly loading code from user controlled
  9073. directories in situations where that was not previously the case.
  9074. The interpreter now consistently avoids ever adding the import location's
  9075. parent directory to ``sys.path``, and ensures no other ``sys.path``
  9076. entries are inadvertently modified when inserting the import location
  9077. named on the command line. (Originally reported as bpo-29723 against
  9078. Python 3.6rc1, but it was missed at the time that the then upcoming Python
  9079. 3.5.4 release would also be affected)
  9080. - bpo-30657: Fixed possible integer overflow in PyBytes_DecodeEscape,
  9081. CVE-2017-1000158. Original patch by Jay Bosamiya; rebased to Python 3 by
  9082. Miro Hrončok.
  9083. - bpo-30947: Upgrade libexpat embedded copy from version 2.2.1 to 2.2.3 to
  9084. get security fixes.
  9085. Core and Builtins
  9086. -----------------
  9087. - bpo-31095: Fix potential crash during GC caused by ``tp_dealloc`` which
  9088. doesn't call ``PyObject_GC_UnTrack()``.
  9089. Library
  9090. -------
  9091. - bpo-32072: Fixed issues with binary plists:
  9092. * Fixed saving bytearrays.
  9093. * Identical objects will be saved only once.
  9094. * Equal references will be load as identical objects.
  9095. * Added support for saving and loading recursive data structures.
  9096. - bpo-31170: expat: Update libexpat from 2.2.3 to 2.2.4. Fix copying of
  9097. partial characters for UTF-8 input (libexpat bug 115):
  9098. https://github.com/libexpat/libexpat/issues/115
  9099. What's New in Python 3.5.4 final?
  9100. =================================
  9101. *Release date: 2017-08-07*
  9102. Library
  9103. -------
  9104. - bpo-30119: ftplib.FTP.putline() now throws ValueError on commands that
  9105. contains CR or LF. Patch by Dong-hee Na.
  9106. What's New in Python 3.5.4 release candidate 1?
  9107. ===============================================
  9108. *Release date: 2017-07-23*
  9109. Security
  9110. --------
  9111. - bpo-30730: Prevent environment variables injection in subprocess on
  9112. Windows. Prevent passing other environment variables and command
  9113. arguments.
  9114. - bpo-30694: Upgrade expat copy from 2.2.0 to 2.2.1 to get fixes of multiple
  9115. security vulnerabilities including: CVE-2017-9233 (External entity
  9116. infinite loop DoS), CVE-2016-9063 (Integer overflow, re-fix),
  9117. CVE-2016-0718 (Fix regression bugs from 2.2.0's fix to CVE-2016-0718) and
  9118. CVE-2012-0876 (Counter hash flooding with SipHash). Note: the
  9119. CVE-2016-5300 (Use os-specific entropy sources like getrandom) doesn't
  9120. impact Python, since Python already gets entropy from the OS to set the
  9121. expat secret using ``XML_SetHashSalt()``.
  9122. - bpo-30500: Fix urllib.parse.splithost() to correctly parse fragments. For
  9123. example, ``splithost('//127.0.0.1#@evil.com/')`` now correctly returns the
  9124. ``127.0.0.1`` host, instead of treating ``@evil.com`` as the host in an
  9125. authentication (``login@host``).
  9126. - bpo-29591: Update expat copy from 2.1.1 to 2.2.0 to get fixes of
  9127. CVE-2016-0718 and CVE-2016-4472. See
  9128. https://sourceforge.net/p/expat/bugs/537/ for more information.
  9129. Core and Builtins
  9130. -----------------
  9131. - bpo-30876: Relative import from unloaded package now reimports the package
  9132. instead of failing with SystemError. Relative import from non-package now
  9133. fails with ImportError rather than SystemError.
  9134. - bpo-30765: Avoid blocking in pthread_mutex_lock() when
  9135. PyThread_acquire_lock() is asked not to block.
  9136. - bpo-27945: Fixed various segfaults with dict when input collections are
  9137. mutated during searching, inserting or comparing. Based on patches by
  9138. Duane Griffin and Tim Mitchell.
  9139. - bpo-25794: Fixed type.__setattr__() and type.__delattr__() for
  9140. non-interned attribute names. Based on patch by Eryk Sun.
  9141. - bpo-29935: Fixed error messages in the index() method of tuple, list and
  9142. deque when pass indices of wrong type.
  9143. - bpo-28876: ``bool(range)`` works even if ``len(range)`` raises
  9144. :exc:`OverflowError`.
  9145. - bpo-29600: Fix wrapping coroutine return values in StopIteration.
  9146. - bpo-29537: Restore runtime compatibility with bytecode files generated by
  9147. CPython 3.5.0 to 3.5.2, and adjust the eval loop to avoid the problems
  9148. that could be caused by the malformed variant of the
  9149. BUILD_MAP_UNPACK_WITH_CALL opcode that they may contain. Patch by Petr
  9150. Viktorin, Serhiy Storchaka, and Nick Coghlan.
  9151. - bpo-28598: Support __rmod__ for subclasses of str being called before
  9152. str.__mod__. Patch by Martijn Pieters.
  9153. - bpo-29602: Fix incorrect handling of signed zeros in complex constructor
  9154. for complex subclasses and for inputs having a __complex__ method. Patch
  9155. by Serhiy Storchaka.
  9156. - bpo-29347: Fixed possibly dereferencing undefined pointers when creating
  9157. weakref objects.
  9158. - bpo-29438: Fixed use-after-free problem in key sharing dict.
  9159. - bpo-29319: Prevent RunMainFromImporter overwriting sys.path[0].
  9160. - bpo-29337: Fixed possible BytesWarning when compare the code objects.
  9161. Warnings could be emitted at compile time.
  9162. - bpo-29478: If max_line_length=None is specified while using the Compat32
  9163. policy, it is no longer ignored. Patch by Mircea Cosbuc.
  9164. Library
  9165. -------
  9166. - bpo-29403: Fix ``unittest.mock``'s autospec to not fail on method-bound
  9167. builtin functions. Patch by Aaron Gallagher.
  9168. - bpo-30961: Fix decrementing a borrowed reference in tracemalloc.
  9169. - bpo-30886: Fix multiprocessing.Queue.join_thread(): it now waits until the
  9170. thread completes, even if the thread was started by the same process which
  9171. created the queue.
  9172. - bpo-29854: Fix segfault in readline when using readline's history-size
  9173. option. Patch by Nir Soffer.
  9174. - bpo-30807: signal.setitimer() may disable the timer when passed a tiny
  9175. value.
  9176. Tiny values (such as 1e-6) are valid non-zero values for setitimer(),
  9177. which is specified as taking microsecond-resolution intervals. However, on
  9178. some platform, our conversion routine could convert 1e-6 into a zero
  9179. interval, therefore disabling the timer instead of (re-)scheduling it.
  9180. - bpo-30441: Fix bug when modifying os.environ while iterating over it
  9181. - bpo-30532: Fix email header value parser dropping folding white space in
  9182. certain cases.
  9183. - bpo-29169: Update zlib to 1.2.11.
  9184. - bpo-30879: os.listdir() and os.scandir() now emit bytes names when called
  9185. with bytes-like argument.
  9186. - bpo-30746: Prohibited the '=' character in environment variable names in
  9187. ``os.putenv()`` and ``os.spawn*()``.
  9188. - bpo-29755: Fixed the lgettext() family of functions in the gettext module.
  9189. They now always return bytes.
  9190. - bpo-30645: Fix path calculation in imp.load_package(), fixing it for cases
  9191. when a package is only shipped with bytecodes. Patch by Alexandru
  9192. Ardelean.
  9193. - bpo-23890: unittest.TestCase.assertRaises() now manually breaks a
  9194. reference cycle to not keep objects alive longer than expected.
  9195. - bpo-30149: inspect.signature() now supports callables with
  9196. variable-argument parameters wrapped with partialmethod. Patch by Dong-hee
  9197. Na.
  9198. - bpo-29931: Fixed comparison check for ipaddress.ip_interface objects.
  9199. Patch by Sanjay Sundaresan.
  9200. - bpo-24484: Avoid race condition in multiprocessing cleanup.
  9201. - bpo-28994: The traceback no longer displayed for SystemExit raised in a
  9202. callback registered by atexit.
  9203. - bpo-30508: Don't log exceptions if Task/Future "cancel()" method was
  9204. called.
  9205. - bpo-28556: Updates to typing module: Add generic AsyncContextManager, add
  9206. support for ContextManager on all versions. Original PRs by Jelle Zijlstra
  9207. and Ivan Levkivskyi
  9208. - bpo-29870: Fix ssl sockets leaks when connection is aborted in asyncio/ssl
  9209. implementation. Patch by Michaël Sghaïer.
  9210. - bpo-29743: Closing transport during handshake process leaks open socket.
  9211. Patch by Nikolay Kim
  9212. - bpo-27585: Fix waiter cancellation in asyncio.Lock. Patch by Mathieu
  9213. Sornay.
  9214. - bpo-30418: On Windows, subprocess.Popen.communicate() now also ignore
  9215. EINVAL on stdin.write() if the child process is still running but closed
  9216. the pipe.
  9217. - bpo-30378: Fix the problem that logging.handlers.SysLogHandler cannot
  9218. handle IPv6 addresses.
  9219. - bpo-29960: Preserve generator state when _random.Random.setstate() raises
  9220. an exception. Patch by Bryan Olson.
  9221. - bpo-30414: multiprocessing.Queue._feed background running thread do not
  9222. break from main loop on exception.
  9223. - bpo-30003: Fix handling escape characters in HZ codec. Based on patch by
  9224. Ma Lin.
  9225. - bpo-30301: Fix AttributeError when using SimpleQueue.empty() under *spawn*
  9226. and *forkserver* start methods.
  9227. - bpo-30329: imaplib and poplib now catch the Windows socket WSAEINVAL error
  9228. (code 10022) on shutdown(SHUT_RDWR): An invalid operation was attempted.
  9229. This error occurs sometimes on SSL connections.
  9230. - bpo-30375: Warnings emitted when compile a regular expression now always
  9231. point to the line in the user code. Previously they could point into
  9232. inners of the re module if emitted from inside of groups or conditionals.
  9233. - bpo-30048: Fixed ``Task.cancel()`` can be ignored when the task is running
  9234. coroutine and the coroutine returned without any more ``await``.
  9235. - bpo-29990: Fix range checking in GB18030 decoder. Original patch by Ma
  9236. Lin.
  9237. - bpo-26293: Change resulted because of zipfile breakage. (See also:
  9238. bpo-29094)
  9239. - bpo-30243: Removed the __init__ methods of _json's scanner and encoder.
  9240. Misusing them could cause memory leaks or crashes. Now scanner and
  9241. encoder objects are completely initialized in the __new__ methods.
  9242. - bpo-30185: Avoid KeyboardInterrupt tracebacks in forkserver helper process
  9243. when Ctrl-C is received.
  9244. - bpo-28556: Various updates to typing module: add typing.NoReturn type, use
  9245. WrapperDescriptorType, minor bug-fixes. Original PRs by Jim
  9246. Fasarakis-Hilliard and Ivan Levkivskyi.
  9247. - bpo-30205: Fix getsockname() for unbound AF_UNIX sockets on Linux.
  9248. - bpo-30070: Fixed leaks and crashes in errors handling in the parser
  9249. module.
  9250. - bpo-30061: Fixed crashes in IOBase methods __next__() and readlines() when
  9251. readline() or __next__() respectively return non-sizeable object. Fixed
  9252. possible other errors caused by not checking results of PyObject_Size(),
  9253. PySequence_Size(), or PyMapping_Size().
  9254. - bpo-30068: _io._IOBase.readlines will check if it's closed first when hint
  9255. is present.
  9256. - bpo-29694: Fixed race condition in pathlib mkdir with flags parents=True.
  9257. Patch by Armin Rigo.
  9258. - bpo-29692: Fixed arbitrary unchaining of RuntimeError exceptions in
  9259. contextlib.contextmanager. Patch by Siddharth Velankar.
  9260. - bpo-29998: Pickling and copying ImportError now preserves name and path
  9261. attributes.
  9262. - bpo-29942: Fix a crash in itertools.chain.from_iterable when encountering
  9263. long runs of empty iterables.
  9264. - bpo-27863: Fixed multiple crashes in ElementTree caused by race conditions
  9265. and wrong types.
  9266. - bpo-28699: Fixed a bug in pools in multiprocessing.pool that raising an
  9267. exception at the very first of an iterable may swallow the exception or
  9268. make the program hang. Patch by Davin Potts and Xiang Zhang.
  9269. - bpo-25803: Avoid incorrect errors raised by Path.mkdir(exist_ok=True) when
  9270. the OS gives priority to errors such as EACCES over EEXIST.
  9271. - bpo-29861: Release references to tasks, their arguments and their results
  9272. as soon as they are finished in multiprocessing.Pool.
  9273. - bpo-29884: faulthandler: Restore the old sigaltstack during teardown.
  9274. Patch by Christophe Zeitouny.
  9275. - bpo-25455: Fixed crashes in repr of recursive buffered file-like objects.
  9276. - bpo-29800: Fix crashes in partial.__repr__ if the keys of partial.keywords
  9277. are not strings. Patch by Michael Seifert.
  9278. - bpo-29742: get_extra_info() raises exception if get called on closed ssl
  9279. transport. Patch by Nikolay Kim.
  9280. - bpo-8256: Fixed possible failing or crashing input() if attributes
  9281. "encoding" or "errors" of sys.stdin or sys.stdout are not set or are not
  9282. strings.
  9283. - bpo-28298: Fix a bug that prevented array 'Q', 'L' and 'I' from accepting
  9284. big intables (objects that have __int__) as elements. Patch by Oren
  9285. Milman.
  9286. - bpo-29615: SimpleXMLRPCDispatcher no longer chains KeyError (or any other
  9287. exception) to exception(s) raised in the dispatched methods. Patch by Petr
  9288. Motejlek.
  9289. - bpo-29704: asyncio.subprocess.SubprocessStreamProtocol no longer closes
  9290. before all pipes are closed.
  9291. - bpo-29703: Fix asyncio to support instantiation of new event loops in
  9292. child processes.
  9293. - bpo-29376: Fix assertion error in threading._DummyThread.is_alive().
  9294. - bpo-29110: Fix file object leak in aifc.open() when file is given as a
  9295. filesystem path and is not in valid AIFF format. Patch by Anthony Zhang.
  9296. - bpo-28961: Fix unittest.mock._Call helper: don't ignore the name parameter
  9297. anymore. Patch written by Jiajun Huang.
  9298. - bpo-29532: Altering a kwarg dictionary passed to functools.partial() no
  9299. longer affects a partial object after creation.
  9300. - bpo-28556: Various updates to typing module: typing.Counter,
  9301. typing.ChainMap, improved ABC caching, etc. Original PRs by Jelle
  9302. Zijlstra, Ivan Levkivskyi, Manuel Krebber, and Łukasz Langa.
  9303. - bpo-29100: Fix datetime.fromtimestamp() regression introduced in Python
  9304. 3.6.0: check minimum and maximum years.
  9305. - bpo-29519: Fix weakref spewing exceptions during interpreter shutdown when
  9306. used with a rare combination of multiprocessing and custom codecs.
  9307. - bpo-29416: Prevent infinite loop in pathlib.Path.mkdir
  9308. - bpo-29444: Fixed out-of-bounds buffer access in the group() method of the
  9309. match object. Based on patch by WGH.
  9310. - bpo-29335: Fix subprocess.Popen.wait() when the child process has exited
  9311. to a stopped instead of terminated state (ex: when under ptrace).
  9312. - bpo-29290: Fix a regression in argparse that help messages would wrap at
  9313. non-breaking spaces.
  9314. - bpo-28735: Fixed the comparison of mock.MagickMock with mock.ANY.
  9315. - bpo-29011: Fix an important omission by adding Deque to the typing module.
  9316. - bpo-29219: Fixed infinite recursion in the repr of uninitialized
  9317. ctypes.CDLL instances.
  9318. - bpo-28969: Fixed race condition in C implementation of
  9319. functools.lru_cache. KeyError could be raised when cached function with
  9320. full cache was simultaneously called from differen threads with the same
  9321. uncached arguments.
  9322. - bpo-29142: In urllib.request, suffixes in no_proxy environment variable
  9323. with leading dots could match related hostnames again (e.g. .b.c matches
  9324. a.b.c). Patch by Milan Oberkirch.
  9325. Documentation
  9326. -------------
  9327. - bpo-30176: Add missing attribute related constants in curses
  9328. documentation.
  9329. - bpo-26985: Add missing info of code object in inspect documentation.
  9330. - bpo-28929: Link the documentation to its source file on GitHub.
  9331. - bpo-25008: Document smtpd.py as effectively deprecated and add a pointer
  9332. to aiosmtpd, a third-party asyncio-based replacement.
  9333. - bpo-26355: Add canonical header link on each page to corresponding major
  9334. version of the documentation. Patch by Matthias Bussonnier.
  9335. - bpo-29349: Fix Python 2 syntax in code for building the documentation.
  9336. Tests
  9337. -----
  9338. - bpo-30822: Fix regrtest command line parser to allow passing -u
  9339. extralargefile to run test_zipfile64.
  9340. - bpo-30383: regrtest: Enhance regrtest and backport features from the
  9341. master branch.
  9342. Add options: --coverage, --testdir, --list-tests (list test files, don't
  9343. run them), --list-cases (list test identifiers, don't run them,
  9344. :issue:`30523`), --matchfile (load a list of test filters from a text
  9345. file, :issue:`30540`), --slowest (alias to --slow).
  9346. Enhance output: add timestamp, test result, currently running tests,
  9347. "Tests result: xxx" summary with total duration, etc.
  9348. Fix reference leak hunting in regrtest, --huntrleaks: regrtest now warms
  9349. up caches, create explicitly all internal singletons which are created on
  9350. demand to prevent false positives when checking for reference leaks.
  9351. (:issue:`30675`).
  9352. - bpo-30357: test_thread: setUp() now uses support.threading_setup() and
  9353. support.threading_cleanup() to wait until threads complete to avoid random
  9354. side effects on following tests. Initial patch written by Grzegorz
  9355. Grzywacz.
  9356. - bpo-28087: Skip test_asyncore and test_eintr poll failures on macOS. Skip
  9357. some tests of select.poll when running on macOS due to unresolved issues
  9358. with the underlying system poll function on some macOS versions.
  9359. - bpo-30197: Enhanced functions swap_attr() and swap_item() in the
  9360. test.support module. They now work when delete replaced attribute or item
  9361. inside the with statement. The old value of the attribute or item (or
  9362. None if it doesn't exist) now will be assigned to the target of the "as"
  9363. clause, if there is one.
  9364. - bpo-29571: to match the behaviour of the ``re.LOCALE`` flag,
  9365. test_re.test_locale_flag now uses ``locale.getpreferredencoding(False)``
  9366. to determine the candidate encoding for the test regex (allowing it to
  9367. correctly skip the test when the default locale encoding is a multi-byte
  9368. encoding)
  9369. Build
  9370. -----
  9371. - bpo-29243: Prevent unnecessary rebuilding of Python during ``make test``,
  9372. ``make install`` and some other make targets when configured with
  9373. ``--enable-optimizations``.
  9374. - bpo-23404: Don't regenerate generated files based on file modification
  9375. time anymore: the action is now explicit. Replace ``make touch`` with
  9376. ``make regen-all``.
  9377. - bpo-29643: Fix ``--enable-optimization`` didn't work.
  9378. Windows
  9379. -------
  9380. - bpo-30687: Locate msbuild.exe on Windows when building rather than
  9381. vcvarsall.bat
  9382. - bpo-29392: Prevent crash when passing invalid arguments into msvcrt
  9383. module.
  9384. C API
  9385. -----
  9386. - bpo-27867: Function PySlice_GetIndicesEx() is replaced with a macro if
  9387. Py_LIMITED_API is set to the value between 0x03050400 and 0x03060000 (not
  9388. including) or 0x03060100 or higher.
  9389. - bpo-29083: Fixed the declaration of some public API functions.
  9390. PyArg_VaParse() and PyArg_VaParseTupleAndKeywords() were not available in
  9391. limited API. PyArg_ValidateKeywordArguments(), PyArg_UnpackTuple() and
  9392. Py_BuildValue() were not available in limited API of version < 3.3 when
  9393. PY_SSIZE_T_CLEAN is defined.
  9394. What's New in Python 3.5.3 final?
  9395. =================================
  9396. *Release date: 2017-01-17*
  9397. There were no code changes between 3.5.3rc1 and 3.5.3 final.
  9398. What's New in Python 3.5.3 release candidate 1?
  9399. ===============================================
  9400. *Release date: 2017-01-02*
  9401. Core and Builtins
  9402. -----------------
  9403. - bpo-29073: bytearray formatting no longer truncates on first null byte.
  9404. - bpo-28932: Do not include <sys/random.h> if it does not exist.
  9405. - bpo-28147: Fix a memory leak in split-table dictionaries: setattr() must
  9406. not convert combined table into split table.
  9407. - bpo-25677: Correct the positioning of the syntax error caret for indented
  9408. blocks. Based on patch by Michael Layzell.
  9409. - bpo-29000: Fixed bytes formatting of octals with zero padding in alternate
  9410. form.
  9411. - bpo-28512: Fixed setting the offset attribute of SyntaxError by
  9412. PyErr_SyntaxLocationEx() and PyErr_SyntaxLocationObject().
  9413. - bpo-28991: functools.lru_cache() was susceptible to an obscure reentrancy
  9414. bug caused by a monkey-patched len() function.
  9415. - bpo-28648: Fixed crash in Py_DecodeLocale() in debug build on Mac OS X
  9416. when decode astral characters. Patch by Xiang Zhang.
  9417. - bpo-19398: Extra slash no longer added to sys.path components in case of
  9418. empty compile-time PYTHONPATH components.
  9419. - bpo-28426: Fixed potential crash in PyUnicode_AsDecodedObject() in debug
  9420. build.
  9421. - bpo-23782: Fixed possible memory leak in _PyTraceback_Add() and exception
  9422. loss in PyTraceBack_Here().
  9423. - bpo-28379: Added sanity checks and tests for PyUnicode_CopyCharacters().
  9424. Patch by Xiang Zhang.
  9425. - bpo-28376: The type of long range iterator is now registered as Iterator.
  9426. Patch by Oren Milman.
  9427. - bpo-28376: The constructor of range_iterator now checks that step is not
  9428. 0. Patch by Oren Milman.
  9429. - bpo-26906: Resolving special methods of uninitialized type now causes
  9430. implicit initialization of the type instead of a fail.
  9431. - bpo-18287: PyType_Ready() now checks that tp_name is not NULL. Original
  9432. patch by Niklas Koep.
  9433. - bpo-24098: Fixed possible crash when AST is changed in process of
  9434. compiling it.
  9435. - bpo-28350: String constants with null character no longer interned.
  9436. - bpo-26617: Fix crash when GC runs during weakref callbacks.
  9437. - bpo-27942: String constants now interned recursively in tuples and
  9438. frozensets.
  9439. - bpo-21578: Fixed misleading error message when ImportError called with
  9440. invalid keyword args.
  9441. - bpo-28203: Fix incorrect type in error message from ``complex(1.0,
  9442. {2:3})``. Patch by Soumya Sharma.
  9443. - bpo-27955: Fallback on reading /dev/urandom device when the getrandom()
  9444. syscall fails with EPERM, for example when blocked by SECCOMP.
  9445. - bpo-28131: Fix a regression in zipimport's compile_source(). zipimport
  9446. should use the same optimization level as the interpreter.
  9447. - bpo-25221: Fix corrupted result from PyLong_FromLong(0) when Python is
  9448. compiled with NSMALLPOSINTS = 0.
  9449. - bpo-25758: Prevents zipimport from unnecessarily encoding a filename
  9450. (patch by Eryk Sun)
  9451. - bpo-28189: dictitems_contains no longer swallows compare errors. (Patch by
  9452. Xiang Zhang)
  9453. - bpo-27812: Properly clear out a generator's frame's backreference to the
  9454. generator to prevent crashes in frame.clear().
  9455. - bpo-27811: Fix a crash when a coroutine that has not been awaited is
  9456. finalized with warnings-as-errors enabled.
  9457. - bpo-27587: Fix another issue found by PVS-Studio: Null pointer check after
  9458. use of 'def' in _PyState_AddModule(). Initial patch by Christian Heimes.
  9459. - bpo-26020: set literal evaluation order did not match documented
  9460. behaviour.
  9461. - bpo-27782: Multi-phase extension module import now correctly allows the
  9462. ``m_methods`` field to be used to add module level functions to instances
  9463. of non-module types returned from ``Py_create_mod``. Patch by Xiang Zhang.
  9464. - bpo-27936: The round() function accepted a second None argument for some
  9465. types but not for others. Fixed the inconsistency by accepting None for
  9466. all numeric types.
  9467. - bpo-27487: Warn if a submodule argument to "python -m" or
  9468. runpy.run_module() is found in sys.modules after parent packages are
  9469. imported, but before the submodule is executed.
  9470. - bpo-27558: Fix a SystemError in the implementation of "raise" statement.
  9471. In a brand new thread, raise a RuntimeError since there is no active
  9472. exception to reraise. Patch written by Xiang Zhang.
  9473. - bpo-27419: Standard __import__() no longer look up "__import__" in globals
  9474. or builtins for importing submodules or "from import". Fixed handling an
  9475. error of non-string package name.
  9476. - bpo-27083: Respect the PYTHONCASEOK environment variable under Windows.
  9477. - bpo-27514: Make having too many statically nested blocks a SyntaxError
  9478. instead of SystemError.
  9479. - bpo-27473: Fixed possible integer overflow in bytes and bytearray
  9480. concatenations. Patch by Xiang Zhang.
  9481. - bpo-27507: Add integer overflow check in bytearray.extend(). Patch by
  9482. Xiang Zhang.
  9483. - bpo-27581: Don't rely on wrapping for overflow check in
  9484. PySequence_Tuple(). Patch by Xiang Zhang.
  9485. - bpo-27443: __length_hint__() of bytearray iterators no longer return a
  9486. negative integer for a resized bytearray.
  9487. - bpo-27942: Fix memory leak in codeobject.c
  9488. Library
  9489. -------
  9490. - bpo-15812: inspect.getframeinfo() now correctly shows the first line of a
  9491. context. Patch by Sam Breese.
  9492. - bpo-29094: Offsets in a ZIP file created with extern file object and modes
  9493. "w" and "x" now are relative to the start of the file.
  9494. - bpo-13051: Fixed recursion errors in large or resized
  9495. curses.textpad.Textbox. Based on patch by Tycho Andersen.
  9496. - bpo-29119: Fix weakrefs in the pure python version of
  9497. collections.OrderedDict move_to_end() method. Contributed by Andra
  9498. Bogildea.
  9499. - bpo-9770: curses.ascii predicates now work correctly with negative
  9500. integers.
  9501. - bpo-28427: old keys should not remove new values from WeakValueDictionary
  9502. when collecting from another thread.
  9503. - bpo-28923: Remove editor artifacts from Tix.py.
  9504. - bpo-28871: Fixed a crash when deallocate deep ElementTree.
  9505. - bpo-19542: Fix bugs in WeakValueDictionary.setdefault() and
  9506. WeakValueDictionary.pop() when a GC collection happens in another thread.
  9507. - bpo-20191: Fixed a crash in resource.prlimit() when pass a sequence that
  9508. doesn't own its elements as limits.
  9509. - bpo-28779: multiprocessing.set_forkserver_preload() would crash the
  9510. forkserver process if a preloaded module instantiated some multiprocessing
  9511. objects such as locks.
  9512. - bpo-28847: dbm.dumb now supports reading read-only files and no longer
  9513. writes the index file when it is not changed.
  9514. - bpo-25659: In ctypes, prevent a crash calling the from_buffer() and
  9515. from_buffer_copy() methods on abstract classes like Array.
  9516. - bpo-28732: Fix crash in os.spawnv() with no elements in args
  9517. - bpo-28485: Always raise ValueError for negative
  9518. compileall.compile_dir(workers=...) parameter, even when multithreading is
  9519. unavailable.
  9520. - bpo-28387: Fixed possible crash in _io.TextIOWrapper deallocator when the
  9521. garbage collector is invoked in other thread. Based on patch by Sebastian
  9522. Cufre.
  9523. - bpo-27517: LZMA compressor and decompressor no longer raise exceptions if
  9524. given empty data twice. Patch by Benjamin Fogle.
  9525. - bpo-28549: Fixed segfault in curses's addch() with ncurses6.
  9526. - bpo-28449: tarfile.open() with mode "r" or "r:" now tries to open a tar
  9527. file with compression before trying to open it without compression.
  9528. Otherwise it had 50% chance failed with ignore_zeros=True.
  9529. - bpo-23262: The webbrowser module now supports Firefox 36+ and derived
  9530. browsers. Based on patch by Oleg Broytman.
  9531. - bpo-27939: Fixed bugs in tkinter.ttk.LabeledScale and tkinter.Scale caused
  9532. by representing the scale as float value internally in Tk. tkinter.IntVar
  9533. now works if float value is set to underlying Tk variable.
  9534. - bpo-28255: calendar.TextCalendar().prmonth() no longer prints a space at
  9535. the start of new line after printing a month's calendar. Patch by Xiang
  9536. Zhang.
  9537. - bpo-20491: The textwrap.TextWrapper class now honors non-breaking spaces.
  9538. Based on patch by Kaarle Ritvanen.
  9539. - bpo-28353: os.fwalk() no longer fails on broken links.
  9540. - bpo-25464: Fixed HList.header_exists() in tkinter.tix module by addin a
  9541. workaround to Tix library bug.
  9542. - bpo-28488: shutil.make_archive() no longer add entry "./" to ZIP archive.
  9543. - bpo-24452: Make webbrowser support Chrome on Mac OS X.
  9544. - bpo-20766: Fix references leaked by pdb in the handling of SIGINT
  9545. handlers.
  9546. - bpo-26293: Fixed writing ZIP files that starts not from the start of the
  9547. file. Offsets in ZIP file now are relative to the start of the archive in
  9548. conforming to the specification.
  9549. - bpo-28321: Fixed writing non-BMP characters with binary format in
  9550. plistlib.
  9551. - bpo-28322: Fixed possible crashes when unpickle itertools objects from
  9552. incorrect pickle data. Based on patch by John Leitch.
  9553. - Fix possible integer overflows and crashes in the mmap module with unusual
  9554. usage patterns.
  9555. - bpo-1703178: Fix the ability to pass the --link-objects option to the
  9556. distutils build_ext command.
  9557. - bpo-28253: Fixed calendar functions for extreme months: 0001-01 and
  9558. 9999-12.
  9559. Methods itermonthdays() and itermonthdays2() are reimplemented so that
  9560. they don't call itermonthdates() which can cause datetime.date
  9561. under/overflow.
  9562. - bpo-28275: Fixed possible use after free in the decompress() methods of
  9563. the LZMADecompressor and BZ2Decompressor classes. Original patch by John
  9564. Leitch.
  9565. - bpo-27897: Fixed possible crash in sqlite3.Connection.create_collation()
  9566. if pass invalid string-like object as a name. Patch by Xiang Zhang.
  9567. - bpo-18893: Fix invalid exception handling in Lib/ctypes/macholib/dyld.py.
  9568. Patch by Madison May.
  9569. - bpo-27611: Fixed support of default root window in the tkinter.tix module.
  9570. - bpo-27348: In the traceback module, restore the formatting of exception
  9571. messages like "Exception: None". This fixes a regression introduced in
  9572. 3.5a2.
  9573. - bpo-25651: Allow falsy values to be used for msg parameter of subTest().
  9574. - bpo-27932: Prevent memory leak in win32_ver().
  9575. - Fix UnboundLocalError in socket._sendfile_use_sendfile.
  9576. - bpo-28075: Check for ERROR_ACCESS_DENIED in Windows implementation of
  9577. os.stat(). Patch by Eryk Sun.
  9578. - bpo-25270: Prevent codecs.escape_encode() from raising SystemError when an
  9579. empty bytestring is passed.
  9580. - bpo-28181: Get antigravity over HTTPS. Patch by Kaartic Sivaraam.
  9581. - bpo-25895: Enable WebSocket URL schemes in urllib.parse.urljoin. Patch by
  9582. Gergely Imreh and Markus Holtermann.
  9583. - bpo-27599: Fixed buffer overrun in binascii.b2a_qp() and
  9584. binascii.a2b_qp().
  9585. - bpo-19003: m email.generator now replaces only ``\r`` and/or ``\n`` line
  9586. endings, per the RFC, instead of all unicode line endings.
  9587. - bpo-28019: itertools.count() no longer rounds non-integer step in range
  9588. between 1.0 and 2.0 to 1.
  9589. - bpo-25969: Update the lib2to3 grammar to handle the unpacking
  9590. generalizations added in 3.5.
  9591. - bpo-14977: mailcap now respects the order of the lines in the mailcap
  9592. files ("first match"), as required by RFC 1542. Patch by Michael Lazar.
  9593. - bpo-24594: Validates persist parameter when opening MSI database
  9594. - bpo-17582: xml.etree.ElementTree nows preserves whitespaces in attributes
  9595. (Patch by Duane Griffin. Reviewed and approved by Stefan Behnel.)
  9596. - bpo-28047: Fixed calculation of line length used for the base64 CTE in the
  9597. new email policies.
  9598. - bpo-27445: Don't pass str(_charset) to MIMEText.set_payload(). Patch by
  9599. Claude Paroz.
  9600. - bpo-22450: urllib now includes an ``Accept: */*`` header among the default
  9601. headers. This makes the results of REST API requests more consistent and
  9602. predictable especially when proxy servers are involved.
  9603. - lib2to3.pgen3.driver.load_grammar() now creates a stable cache file
  9604. between runs given the same Grammar.txt input regardless of the hash
  9605. randomization setting.
  9606. - bpo-27570: Avoid zero-length memcpy() etc calls with null source pointers
  9607. in the "ctypes" and "array" modules.
  9608. - bpo-22233: Break email header lines *only* on the RFC specified CR and LF
  9609. characters, not on arbitrary unicode line breaks. This also fixes a bug
  9610. in HTTP header parsing.
  9611. - bpo-27988: Fix email iter_attachments incorrect mutation of payload list.
  9612. - bpo-27691: Fix ssl module's parsing of GEN_RID subject alternative name
  9613. fields in X.509 certs.
  9614. - bpo-27850: Remove 3DES from ssl module's default cipher list to counter
  9615. measure sweet32 attack (CVE-2016-2183).
  9616. - bpo-27766: Add ChaCha20 Poly1305 to ssl module's default cipher list.
  9617. (Required OpenSSL 1.1.0 or LibreSSL).
  9618. - bpo-26470: Port ssl and hashlib module to OpenSSL 1.1.0.
  9619. - Remove support for passing a file descriptor to os.access. It never worked
  9620. but previously didn't raise.
  9621. - bpo-12885: Fix error when distutils encounters symlink.
  9622. - bpo-27881: Fixed possible bugs when setting
  9623. sqlite3.Connection.isolation_level. Based on patch by Xiang Zhang.
  9624. - bpo-27861: Fixed a crash in sqlite3.Connection.cursor() when a factory
  9625. creates not a cursor. Patch by Xiang Zhang.
  9626. - bpo-19884: Avoid spurious output on OS X with Gnu Readline.
  9627. - bpo-27706: Restore deterministic behavior of random.Random().seed() for
  9628. string seeds using seeding version 1. Allows sequences of calls to
  9629. random() to exactly match those obtained in Python 2. Patch by Nofar
  9630. Schnider.
  9631. - bpo-10513: Fix a regression in Connection.commit(). Statements should not
  9632. be reset after a commit.
  9633. - A new version of typing.py from https://github.com/python/typing:
  9634. Collection (only for 3.6) (Issue #27598). Add FrozenSet to __all__
  9635. (upstream #261). Fix crash in _get_type_vars() (upstream #259). Remove the
  9636. dict constraint in ForwardRef._eval_type (upstream #252).
  9637. - bpo-27539: Fix unnormalised ``Fraction.__pow__`` result in the case of
  9638. negative exponent and negative base.
  9639. - bpo-21718: cursor.description is now available for queries using CTEs.
  9640. - bpo-2466: posixpath.ismount now correctly recognizes mount points which
  9641. the user does not have permission to access.
  9642. - bpo-27773: Correct some memory management errors server_hostname in
  9643. _ssl.wrap_socket().
  9644. - bpo-26750: unittest.mock.create_autospec() now works properly for
  9645. subclasses of property() and other data descriptors.
  9646. - In the curses module, raise an error if window.getstr() or window.instr()
  9647. is passed a negative value.
  9648. - bpo-27783: Fix possible usage of uninitialized memory in
  9649. operator.methodcaller.
  9650. - bpo-27774: Fix possible Py_DECREF on unowned object in _sre.
  9651. - bpo-27760: Fix possible integer overflow in binascii.b2a_qp.
  9652. - bpo-27758: Fix possible integer overflow in the _csv module for large
  9653. record lengths.
  9654. - bpo-27568: Prevent HTTPoxy attack (CVE-2016-1000110). Ignore the
  9655. HTTP_PROXY variable when REQUEST_METHOD environment is set, which
  9656. indicates that the script is in CGI mode.
  9657. - bpo-27656: Do not assume sched.h defines any SCHED_* constants.
  9658. - bpo-27130: In the "zlib" module, fix handling of large buffers (typically
  9659. 4 GiB) when compressing and decompressing. Previously, inputs were
  9660. limited to 4 GiB, and compression and decompression operations did not
  9661. properly handle results of 4 GiB.
  9662. - bpo-27533: Release GIL in nt._isdir
  9663. - bpo-17711: Fixed unpickling by the persistent ID with protocol 0. Original
  9664. patch by Alexandre Vassalotti.
  9665. - bpo-27522: Avoid an unintentional reference cycle in email.feedparser.
  9666. - bpo-26844: Fix error message for imp.find_module() to refer to 'path'
  9667. instead of 'name'. Patch by Lev Maximov.
  9668. - bpo-23804: Fix SSL zero-length recv() calls to not block and not raise an
  9669. error about unclean EOF.
  9670. - bpo-27466: Change time format returned by http.cookie.time2netscape,
  9671. confirming the netscape cookie format and making it consistent with
  9672. documentation.
  9673. - bpo-26664: Fix activate.fish by removing mis-use of ``$``.
  9674. - bpo-22115: Fixed tracing Tkinter variables: trace_vdelete() with wrong
  9675. mode no longer break tracing, trace_vinfo() now always returns a list of
  9676. pairs of strings, tracing in the "u" mode now works.
  9677. - Fix a scoping issue in importlib.util.LazyLoader which triggered an
  9678. UnboundLocalError when lazy-loading a module that was already put into
  9679. sys.modules.
  9680. - bpo-27079: Fixed curses.ascii functions isblank(), iscntrl() and
  9681. ispunct().
  9682. - bpo-26754: Some functions (compile() etc) accepted a filename argument
  9683. encoded as an iterable of integers. Now only strings and byte-like objects
  9684. are accepted.
  9685. - bpo-27048: Prevents distutils failing on Windows when environment
  9686. variables contain non-ASCII characters
  9687. - bpo-27330: Fixed possible leaks in the ctypes module.
  9688. - bpo-27238: Got rid of bare excepts in the turtle module. Original patch
  9689. by Jelle Zijlstra.
  9690. - bpo-27122: When an exception is raised within the context being managed by
  9691. a contextlib.ExitStack() and one of the exit stack generators catches and
  9692. raises it in a chain, do not re-raise the original exception when exiting,
  9693. let the new chained one through. This avoids the PEP 479 bug described in
  9694. issue25782.
  9695. Security
  9696. --------
  9697. - bpo-27278: Fix os.urandom() implementation using getrandom() on Linux.
  9698. Truncate size to INT_MAX and loop until we collected enough random bytes,
  9699. instead of casting a directly Py_ssize_t to int.
  9700. Library
  9701. -------
  9702. - bpo-26386: Fixed ttk.TreeView selection operations with item id's
  9703. containing spaces.
  9704. Security
  9705. --------
  9706. - bpo-22636: Avoid shell injection problems with ctypes.util.find_library().
  9707. Library
  9708. -------
  9709. - bpo-16182: Fix various functions in the "readline" module to use the
  9710. locale encoding, and fix get_begidx() and get_endidx() to return code
  9711. point indexes.
  9712. - bpo-27392: Add loop.connect_accepted_socket(). Patch by Jim Fulton.
  9713. - bpo-27930: Improved behaviour of logging.handlers.QueueListener. Thanks to
  9714. Paulo Andrade and Petr Viktorin for the analysis and patch.
  9715. - bpo-21201: Improves readability of multiprocessing error message. Thanks
  9716. to Wojciech Walczak for patch.
  9717. - bpo-27456: asyncio: Set TCP_NODELAY by default.
  9718. - bpo-27906: Fix socket accept exhaustion during high TCP traffic. Patch by
  9719. Kevin Conway.
  9720. - bpo-28174: Handle when SO_REUSEPORT isn't properly supported. Patch by
  9721. Seth Michael Larson.
  9722. - bpo-26654: Inspect functools.partial in asyncio.Handle.__repr__. Patch by
  9723. iceboy.
  9724. - bpo-26909: Fix slow pipes IO in asyncio. Patch by INADA Naoki.
  9725. - bpo-28176: Fix callbacks race in asyncio.SelectorLoop.sock_connect.
  9726. - bpo-27759: Fix selectors incorrectly retain invalid file descriptors.
  9727. Patch by Mark Williams.
  9728. - bpo-28368: Refuse monitoring processes if the child watcher has no loop
  9729. attached. Patch by Vincent Michel.
  9730. - bpo-28369: Raise RuntimeError when transport's FD is used with add_reader,
  9731. add_writer, etc.
  9732. - bpo-28370: Speedup asyncio.StreamReader.readexactly. Patch by Коренберг
  9733. Марк.
  9734. - bpo-28371: Deprecate passing asyncio.Handles to run_in_executor.
  9735. - bpo-28372: Fix asyncio to support formatting of non-python coroutines.
  9736. - bpo-28399: Remove UNIX socket from FS before binding. Patch by Коренберг
  9737. Марк.
  9738. - bpo-27972: Prohibit Tasks to await on themselves.
  9739. - bpo-26923: Fix asyncio.Gather to refuse being cancelled once all children
  9740. are done. Patch by Johannes Ebke.
  9741. - bpo-26796: Don't configure the number of workers for default threadpool
  9742. executor. Initial patch by Hans Lawrenz.
  9743. - bpo-28600: Optimize loop.call_soon().
  9744. - bpo-28613: Fix get_event_loop() return the current loop if called from
  9745. coroutines/callbacks.
  9746. - bpo-28639: Fix inspect.isawaitable to always return bool Patch by Justin
  9747. Mayfield.
  9748. - bpo-28652: Make loop methods reject socket kinds they do not support.
  9749. - bpo-28653: Fix a refleak in functools.lru_cache.
  9750. - bpo-28703: Fix asyncio.iscoroutinefunction to handle Mock objects.
  9751. - bpo-24142: Reading a corrupt config file left the parser in an invalid
  9752. state. Original patch by Florian Höch.
  9753. - bpo-28990: Fix SSL hanging if connection is closed before handshake
  9754. completed. (Patch by HoHo-Ho)
  9755. IDLE
  9756. ----
  9757. - bpo-15308: Add 'interrupt execution' (^C) to Shell menu. Patch by Roger
  9758. Serwy, updated by Bayard Randel.
  9759. - bpo-27922: Stop IDLE tests from 'flashing' gui widgets on the screen.
  9760. - Add version to title of IDLE help window.
  9761. - bpo-25564: In section on IDLE -- console differences, mention that using
  9762. exec means that __builtins__ is defined for each statement.
  9763. - bpo-27714: text_textview and test_autocomplete now pass when re-run in the
  9764. same process. This occurs when test_idle fails when run with the -w
  9765. option but without -jn. Fix warning from test_config.
  9766. - bpo-25507: IDLE no longer runs buggy code because of its tkinter imports.
  9767. Users must include the same imports required to run directly in Python.
  9768. - bpo-27452: add line counter and crc to IDLE configHandler test dump.
  9769. - bpo-27365: Allow non-ascii chars in IDLE NEWS.txt, for contributor names.
  9770. - bpo-27245: IDLE: Cleanly delete custom themes and key bindings.
  9771. Previously, when IDLE was started from a console or by import, a cascade
  9772. of warnings was emitted. Patch by Serhiy Storchaka.
  9773. C API
  9774. -----
  9775. - bpo-28808: PyUnicode_CompareWithASCIIString() now never raises exceptions.
  9776. - bpo-26754: PyUnicode_FSDecoder() accepted a filename argument encoded as
  9777. an iterable of integers. Now only strings and bytes-like objects are
  9778. accepted.
  9779. Documentation
  9780. -------------
  9781. - bpo-28513: Documented command-line interface of zipfile.
  9782. Tests
  9783. -----
  9784. - bpo-28950: Disallow -j0 to be combined with -T/-l/-M in regrtest command
  9785. line arguments.
  9786. - bpo-28666: Now test.support.rmtree is able to remove unwritable or
  9787. unreadable directories.
  9788. - bpo-23839: Various caches now are cleared before running every test file.
  9789. - bpo-28409: regrtest: fix the parser of command line arguments.
  9790. - bpo-27787: Call gc.collect() before checking each test for "dangling
  9791. threads", since the dangling threads are weak references.
  9792. - bpo-27369: In test_pyexpat, avoid testing an error message detail that
  9793. changed in Expat 2.2.0.
  9794. Tools/Demos
  9795. -----------
  9796. - bpo-27952: Get Tools/scripts/fixcid.py working with Python 3 and the
  9797. current "re" module, avoid invalid Python backslash escapes, and fix a bug
  9798. parsing escaped C quote signs.
  9799. - bpo-27332: Fixed the type of the first argument of module-level functions
  9800. generated by Argument Clinic. Patch by Petr Viktorin.
  9801. - bpo-27418: Fixed Tools/importbench/importbench.py.
  9802. Windows
  9803. -------
  9804. - bpo-28251: Improvements to help manuals on Windows.
  9805. - bpo-28110: launcher.msi has different product codes between 32-bit and
  9806. 64-bit
  9807. - bpo-25144: Ensures TargetDir is set before continuing with custom install.
  9808. - bpo-27469: Adds a shell extension to the launcher so that drag and drop
  9809. works correctly.
  9810. - bpo-27309: Enabled proper Windows styles in python[w].exe manifest.
  9811. Build
  9812. -----
  9813. - bpo-29080: Removes hard dependency on hg.exe from PCBuild/build.bat
  9814. - bpo-23903: Added missed names to PC/python3.def.
  9815. - bpo-10656: Fix out-of-tree building on AIX. Patch by Tristan Carel and
  9816. Michael Haubenwallner.
  9817. - bpo-26359: Rename --with-optimiations to --enable-optimizations.
  9818. - bpo-28444: Fix missing extensions modules when cross compiling.
  9819. - bpo-28248: Update Windows build and OS X installers to use OpenSSL 1.0.2j.
  9820. - bpo-28258: Fixed build with Estonian locale (python-config and distclean
  9821. targets in Makefile). Patch by Arfrever Frehtes Taifersar Arahesis.
  9822. - bpo-26661: setup.py now detects system libffi with multiarch wrapper.
  9823. - bpo-28066: Fix the logic that searches build directories for generated
  9824. include files when building outside the source tree.
  9825. - bpo-15819: Remove redundant include search directory option for building
  9826. outside the source tree.
  9827. - bpo-27566: Fix clean target in freeze makefile (patch by Lisa Roach)
  9828. - bpo-27705: Update message in validate_ucrtbase.py
  9829. - bpo-27983: Cause lack of llvm-profdata tool when using clang as required
  9830. for PGO linking to be a configure time error rather than make time when
  9831. --with-optimizations is enabled. Also improve our ability to find the
  9832. llvm-profdata tool on MacOS and some Linuxes.
  9833. - bpo-26307: The profile-opt build now applies PGO to the built-in modules.
  9834. - bpo-26359: Add the --with-optimizations configure flag.
  9835. - bpo-27713: Suppress spurious build warnings when updating importlib's
  9836. bootstrap files. Patch by Xiang Zhang
  9837. - bpo-25825: Correct the references to Modules/python.exp and ld_so_aix,
  9838. which are required on AIX. This updates references to an installation
  9839. path that was changed in 3.2a4, and undoes changed references to the build
  9840. tree that were made in 3.5.0a1.
  9841. - bpo-27453: CPP invocation in configure must use CPPFLAGS. Patch by Chi
  9842. Hsuan Yen.
  9843. - bpo-27641: The configure script now inserts comments into the makefile to
  9844. prevent the pgen and _freeze_importlib executables from being
  9845. cross-compiled.
  9846. - bpo-26662: Set PYTHON_FOR_GEN in configure as the Python program to be
  9847. used for file generation during the build.
  9848. - bpo-10910: Avoid C++ compilation errors on FreeBSD and OS X. Also update
  9849. FreedBSD version checks for the original ctype UTF-8 workaround.
  9850. - bpo-28676: Prevent missing 'getentropy' declaration warning on macOS.
  9851. Patch by Gareth Rees.
  9852. What's New in Python 3.5.2 final?
  9853. =================================
  9854. *Release date: 2016-06-26*
  9855. Core and Builtins
  9856. -----------------
  9857. - bpo-26930: Update Windows builds to use OpenSSL 1.0.2h.
  9858. Tests
  9859. -----
  9860. - bpo-26867: Ubuntu's openssl OP_NO_SSLv3 is forced on by default; fix test.
  9861. IDLE
  9862. ----
  9863. - bpo-27365: Allow non-ascii in idlelib/NEWS.txt - minimal part for 3.5.2.
  9864. What's New in Python 3.5.2 release candidate 1?
  9865. ===============================================
  9866. *Release date: 2016-06-12*
  9867. Core and Builtins
  9868. -----------------
  9869. - bpo-27066: Fixed SystemError if a custom opener (for open()) returns a
  9870. negative number without setting an exception.
  9871. - bpo-20041: Fixed TypeError when frame.f_trace is set to None. Patch by
  9872. Xavier de Gaye.
  9873. - bpo-26168: Fixed possible refleaks in failing Py_BuildValue() with the "N"
  9874. format unit.
  9875. - bpo-26991: Fix possible refleak when creating a function with annotations.
  9876. - bpo-27039: Fixed bytearray.remove() for values greater than 127. Patch by
  9877. Joe Jevnik.
  9878. - bpo-23640: int.from_bytes() no longer bypasses constructors for
  9879. subclasses.
  9880. - bpo-26811: gc.get_objects() no longer contains a broken tuple with NULL
  9881. pointer.
  9882. - bpo-20120: Use RawConfigParser for .pypirc parsing, removing support for
  9883. interpolation unintentionally added with move to Python 3. Behavior no
  9884. longer does any interpolation in .pypirc files, matching behavior in
  9885. Python 2.7 and Setuptools 19.0.
  9886. - bpo-26659: Make the builtin slice type support cycle collection.
  9887. - bpo-26718: super.__init__ no longer leaks memory if called multiple times.
  9888. NOTE: A direct call of super.__init__ is not endorsed!
  9889. - bpo-25339: PYTHONIOENCODING now has priority over locale in setting the
  9890. error handler for stdin and stdout.
  9891. - bpo-26494: Fixed crash on iterating exhausting iterators. Affected classes
  9892. are generic sequence iterators, iterators of str, bytes, bytearray, list,
  9893. tuple, set, frozenset, dict, OrderedDict, corresponding views and
  9894. os.scandir() iterator.
  9895. - bpo-26581: If coding cookie is specified multiple times on a line in
  9896. Python source code file, only the first one is taken to account.
  9897. - bpo-26464: Fix str.translate() when string is ASCII and first replacements
  9898. removes character, but next replacement uses a non-ASCII character or a
  9899. string longer than 1 character. Regression introduced in Python 3.5.0.
  9900. - bpo-22836: Ensure exception reports from PyErr_Display() and
  9901. PyErr_WriteUnraisable() are sensible even when formatting them produces
  9902. secondary errors. This affects the reports produced by
  9903. sys.__excepthook__() and when __del__() raises an exception.
  9904. - bpo-26302: Correct behavior to reject comma as a legal character for
  9905. cookie names.
  9906. - bpo-4806: Avoid masking the original TypeError exception when using star
  9907. (``*``) unpacking in function calls. Based on patch by Hagen Fürstenau
  9908. and Daniel Urban.
  9909. - bpo-27138: Fix the doc comment for FileFinder.find_spec().
  9910. - bpo-26154: Add a new private _PyThreadState_UncheckedGet() function to get
  9911. the current Python thread state, but don't issue a fatal error if it is
  9912. NULL. This new function must be used instead of accessing directly the
  9913. _PyThreadState_Current variable. The variable is no more exposed since
  9914. Python 3.5.1 to hide the exact implementation of atomic C types, to avoid
  9915. compiler issues.
  9916. - bpo-26194: Deque.insert() gave odd results for bounded deques that had
  9917. reached their maximum size. Now an IndexError will be raised when
  9918. attempting to insert into a full deque.
  9919. - bpo-25843: When compiling code, don't merge constants if they are equal
  9920. but have a different types. For example, ``f1, f2 = lambda: 1, lambda:
  9921. 1.0`` is now correctly compiled to two different functions: ``f1()``
  9922. returns ``1`` (``int``) and ``f2()`` returns ``1.0`` (``int``), even if
  9923. ``1`` and ``1.0`` are equal.
  9924. - bpo-22995: [UPDATE] Comment out the one of the pickleability tests in
  9925. _PyObject_GetState() due to regressions observed in Cython-based projects.
  9926. - bpo-25961: Disallowed null characters in the type name.
  9927. - bpo-25973: Fix segfault when an invalid nonlocal statement binds a name
  9928. starting with two underscores.
  9929. - bpo-22995: Instances of extension types with a state that aren't
  9930. subclasses of list or dict and haven't implemented any pickle-related
  9931. methods (__reduce__, __reduce_ex__, __getnewargs__, __getnewargs_ex__, or
  9932. __getstate__), can no longer be pickled. Including memoryview.
  9933. - bpo-20440: Massive replacing unsafe attribute setting code with special
  9934. macro Py_SETREF.
  9935. - bpo-25766: Special method __bytes__() now works in str subclasses.
  9936. - bpo-25421: __sizeof__ methods of builtin types now use dynamic basic size.
  9937. This allows sys.getsize() to work correctly with their subclasses with
  9938. __slots__ defined.
  9939. - bpo-25709: Fixed problem with in-place string concatenation and utf-8
  9940. cache.
  9941. - bpo-27147: Mention PEP 420 in the importlib docs.
  9942. - bpo-24097: Fixed crash in object.__reduce__() if slot name is freed inside
  9943. __getattr__.
  9944. - bpo-24731: Fixed crash on converting objects with special methods
  9945. __bytes__, __trunc__, and __float__ returning instances of subclasses of
  9946. bytes, int, and float to subclasses of bytes, int, and float
  9947. correspondingly.
  9948. - bpo-26478: Fix semantic bugs when using binary operators with dictionary
  9949. views and tuples.
  9950. - bpo-26171: Fix possible integer overflow and heap corruption in
  9951. zipimporter.get_data().
  9952. - bpo-25660: Fix TAB key behaviour in REPL with readline.
  9953. - bpo-25887: Raise a RuntimeError when a coroutine object is awaited more
  9954. than once.
  9955. - bpo-27243: Update the __aiter__ protocol: instead of returning an
  9956. awaitable that resolves to an asynchronous iterator, the asynchronous
  9957. iterator should be returned directly. Doing the former will trigger a
  9958. PendingDeprecationWarning.
  9959. Security
  9960. --------
  9961. - bpo-26556: Update expat to 2.1.1, fixes CVE-2015-1283.
  9962. - Fix TLS stripping vulnerability in smtplib, CVE-2016-0772. Reported by
  9963. Team Oststrom
  9964. Library
  9965. -------
  9966. - bpo-21386: Implement missing IPv4Address.is_global property. It was
  9967. documented since 07a5610bae9d. Initial patch by Roger Luethi.
  9968. - bpo-20900: distutils register command now decodes HTTP responses
  9969. correctly. Initial patch by ingrid.
  9970. - A new version of typing.py provides several new classes and features:
  9971. @overload outside stubs, Reversible, DefaultDict, Text, ContextManager,
  9972. Type[], NewType(), TYPE_CHECKING, and numerous bug fixes (note that some
  9973. of the new features are not yet implemented in mypy or other static
  9974. analyzers). Also classes for PEP 492 (Awaitable, AsyncIterable,
  9975. AsyncIterator) have been added (in fact they made it into 3.5.1 but were
  9976. never mentioned).
  9977. - bpo-25738: Stop http.server.BaseHTTPRequestHandler.send_error() from
  9978. sending a message body for 205 Reset Content. Also, don't send Content
  9979. header fields in responses that don't have a body. Patch by Susumu
  9980. Koshiba.
  9981. - bpo-21313: Fix the "platform" module to tolerate when sys.version contains
  9982. truncated build information.
  9983. Security
  9984. --------
  9985. - bpo-26839: On Linux, :func:`os.urandom` now calls ``getrandom()`` with
  9986. ``GRND_NONBLOCK`` to fall back on reading ``/dev/urandom`` if the urandom
  9987. entropy pool is not initialized yet. Patch written by Colm Buckley.
  9988. Library
  9989. -------
  9990. - bpo-27164: In the zlib module, allow decompressing raw Deflate streams
  9991. with a predefined zdict. Based on patch by Xiang Zhang.
  9992. - bpo-24291: Fix wsgiref.simple_server.WSGIRequestHandler to completely
  9993. write data to the client. Previously it could do partial writes and
  9994. truncate data. Also, wsgiref.handler.ServerHandler can now handle stdout
  9995. doing partial writes, but this is deprecated.
  9996. - bpo-26809: Add ``__all__`` to :mod:`string`. Patch by Emanuel Barry.
  9997. - bpo-26373: subprocess.Popen.communicate now correctly ignores
  9998. BrokenPipeError when the child process dies before .communicate() is
  9999. called in more/all circumstances.
  10000. - bpo-21776: distutils.upload now correctly handles HTTPError. Initial patch
  10001. by Claudiu Popa.
  10002. - bpo-27114: Fix SSLContext._load_windows_store_certs fails with
  10003. PermissionError
  10004. - bpo-18383: Avoid creating duplicate filters when using filterwarnings and
  10005. simplefilter. Based on patch by Alex Shkop.
  10006. - bpo-27057: Fix os.set_inheritable() on Android, ioctl() is blocked by
  10007. SELinux and fails with EACCESS. The function now falls back to fcntl().
  10008. Patch written by Michał Bednarski.
  10009. - bpo-27014: Fix infinite recursion using typing.py. Thanks to Kalle Tuure!
  10010. - bpo-14132: Fix urllib.request redirect handling when the target only has a
  10011. query string. Original fix by Ján Janech.
  10012. - bpo-17214: The "urllib.request" module now percent-encodes non-ASCII bytes
  10013. found in redirect target URLs. Some servers send Location header fields
  10014. with non-ASCII bytes, but "http.client" requires the request target to be
  10015. ASCII-encodable, otherwise a UnicodeEncodeError is raised. Based on patch
  10016. by Christian Heimes.
  10017. - bpo-26892: Honor debuglevel flag in urllib.request.HTTPHandler. Patch
  10018. contributed by Chi Hsuan Yen.
  10019. - bpo-22274: In the subprocess module, allow stderr to be redirected to
  10020. stdout even when stdout is not redirected. Patch by Akira Li.
  10021. - bpo-26807: mock_open 'files' no longer error on readline at end of file.
  10022. Patch from Yolanda Robla.
  10023. - bpo-25745: Fixed leaking a userptr in curses panel destructor.
  10024. - bpo-26977: Removed unnecessary, and ignored, call to sum of squares helper
  10025. in statistics.pvariance.
  10026. - bpo-26881: The modulefinder module now supports extended opcode arguments.
  10027. - bpo-23815: Fixed crashes related to directly created instances of types in
  10028. _tkinter and curses.panel modules.
  10029. - bpo-17765: weakref.ref() no longer silently ignores keyword arguments.
  10030. Patch by Georg Brandl.
  10031. - bpo-26873: xmlrpc now raises ResponseError on unsupported type tags
  10032. instead of silently return incorrect result.
  10033. - bpo-26711: Fixed the comparison of plistlib.Data with other types.
  10034. - bpo-24114: Fix an uninitialized variable in `ctypes.util`.
  10035. The bug only occurs on SunOS when the ctypes implementation searches for
  10036. the `crle` program. Patch by Xiang Zhang. Tested on SunOS by Kees Bos.
  10037. - bpo-26864: In urllib.request, change the proxy bypass host checking
  10038. against no_proxy to be case-insensitive, and to not match unrelated host
  10039. names that happen to have a bypassed hostname as a suffix. Patch by Xiang
  10040. Zhang.
  10041. - bpo-26634: recursive_repr() now sets __qualname__ of wrapper. Patch by
  10042. Xiang Zhang.
  10043. - bpo-26804: urllib.request will prefer lower_case proxy environment
  10044. variables over UPPER_CASE or Mixed_Case ones. Patch contributed by
  10045. Hans-Peter Jansen.
  10046. - bpo-26837: assertSequenceEqual() now correctly outputs non-stringified
  10047. differing items (like bytes in the -b mode). This affects
  10048. assertListEqual() and assertTupleEqual().
  10049. - bpo-26041: Remove "will be removed in Python 3.7" from deprecation
  10050. messages of platform.dist() and platform.linux_distribution(). Patch by
  10051. Kumaripaba Miyurusara Athukorala.
  10052. - bpo-26822: itemgetter, attrgetter and methodcaller objects no longer
  10053. silently ignore keyword arguments.
  10054. - bpo-26733: Disassembling a class now disassembles class and static
  10055. methods. Patch by Xiang Zhang.
  10056. - bpo-26801: Fix error handling in :func:`shutil.get_terminal_size`, catch
  10057. :exc:`AttributeError` instead of :exc:`NameError`. Patch written by
  10058. Emanuel Barry.
  10059. - bpo-24838: tarfile's ustar and gnu formats now correctly calculate name
  10060. and link field limits for multibyte character encodings like utf-8.
  10061. Security
  10062. --------
  10063. - bpo-26657: Fix directory traversal vulnerability with http.server on
  10064. Windows. This fixes a regression that was introduced in 3.3.4rc1 and
  10065. 3.4.0rc1. Based on patch by Philipp Hagemeister.
  10066. Library
  10067. -------
  10068. - bpo-26717: Stop encoding Latin-1-ized WSGI paths with UTF-8. Patch by
  10069. Anthony Sottile.
  10070. - bpo-26735: Fix :func:`os.urandom` on Solaris 11.3 and newer when reading
  10071. more than 1,024 bytes: call ``getrandom()`` multiple times with a limit of
  10072. 1024 bytes per call.
  10073. - bpo-16329: Add .webm to mimetypes.types_map. Patch by Giampaolo Rodola'.
  10074. - bpo-13952: Add .csv to mimetypes.types_map. Patch by Geoff Wilson.
  10075. - bpo-26709: Fixed Y2038 problem in loading binary PLists.
  10076. - bpo-23735: Handle terminal resizing with Readline 6.3+ by installing our
  10077. own SIGWINCH handler. Patch by Eric Price.
  10078. - bpo-26586: In http.server, respond with "413 Request header fields too
  10079. large" if there are too many header fields to parse, rather than killing
  10080. the connection and raising an unhandled exception. Patch by Xiang Zhang.
  10081. - bpo-22854: Change BufferedReader.writable() and BufferedWriter.readable()
  10082. to always return False.
  10083. - bpo-25195: Fix a regression in mock.MagicMock. _Call is a subclass of
  10084. tuple (changeset 3603bae63c13 only works for classes) so we need to
  10085. implement __ne__ ourselves. Patch by Andrew Plummer.
  10086. - bpo-26644: Raise ValueError rather than SystemError when a negative length
  10087. is passed to SSLSocket.recv() or read().
  10088. - bpo-23804: Fix SSL recv(0) and read(0) methods to return zero bytes
  10089. instead of up to 1024.
  10090. - bpo-26616: Fixed a bug in datetime.astimezone() method.
  10091. - bpo-21925: :func:`warnings.formatwarning` now catches exceptions on
  10092. ``linecache.getline(...)`` to be able to log :exc:`ResourceWarning`
  10093. emitted late during the Python shutdown process.
  10094. - bpo-24266: Ctrl+C during Readline history search now cancels the search
  10095. mode when compiled with Readline 7.
  10096. - bpo-26560: Avoid potential ValueError in BaseHandler.start_response.
  10097. Initial patch by Peter Inglesby.
  10098. Security
  10099. --------
  10100. - bpo-26313: ssl.py _load_windows_store_certs fails if windows cert store is
  10101. empty. Patch by Baji.
  10102. Library
  10103. -------
  10104. - bpo-26569: Fix :func:`pyclbr.readmodule` and :func:`pyclbr.readmodule_ex`
  10105. to support importing packages.
  10106. - bpo-26499: Account for remaining Content-Length in HTTPResponse.readline()
  10107. and read1(). Based on patch by Silent Ghost. Also document that
  10108. HTTPResponse now supports these methods.
  10109. - bpo-25320: Handle sockets in directories unittest discovery is scanning.
  10110. Patch from Victor van den Elzen.
  10111. - bpo-16181: cookiejar.http2time() now returns None if year is higher than
  10112. datetime.MAXYEAR.
  10113. - bpo-26513: Fixes platform module detection of Windows Server
  10114. - bpo-23718: Fixed parsing time in week 0 before Jan 1. Original patch by
  10115. Tamás Bence Gedai.
  10116. - bpo-20589: Invoking Path.owner() and Path.group() on Windows now raise
  10117. NotImplementedError instead of ImportError.
  10118. - bpo-26177: Fixed the keys() method for Canvas and Scrollbar widgets.
  10119. - bpo-15068: Got rid of excessive buffering in the fileinput module. The
  10120. bufsize parameter is no longer used.
  10121. - bpo-2202: Fix UnboundLocalError in
  10122. AbstractDigestAuthHandler.get_algorithm_impls. Initial patch by Mathieu
  10123. Dupuy.
  10124. - bpo-25718: Fixed pickling and copying the accumulate() iterator with total
  10125. is None.
  10126. - bpo-26475: Fixed debugging output for regular expressions with the (?x)
  10127. flag.
  10128. - bpo-26457: Fixed the subnets() methods in IP network classes for the case
  10129. when resulting prefix length is equal to maximal prefix length. Based on
  10130. patch by Xiang Zhang.
  10131. - bpo-26385: Remove the file if the internal open() call in
  10132. NamedTemporaryFile() fails. Patch by Silent Ghost.
  10133. - bpo-26402: Fix XML-RPC client to retry when the server shuts down a
  10134. persistent connection. This was a regression related to the new
  10135. http.client.RemoteDisconnected exception in 3.5.0a4.
  10136. - bpo-25913: Leading ``<~`` is optional now in base64.a85decode() with
  10137. adobe=True. Patch by Swati Jaiswal.
  10138. - bpo-26186: Remove an invalid type check in importlib.util.LazyLoader.
  10139. - bpo-26367: importlib.__import__() raises SystemError like
  10140. builtins.__import__() when ``level`` is specified but without an
  10141. accompanying package specified.
  10142. - bpo-26309: In the "socketserver" module, shut down the request (closing
  10143. the connected socket) when verify_request() returns false. Patch by Aviv
  10144. Palivoda.
  10145. Security
  10146. --------
  10147. - bpo-25939: On Windows open the cert store readonly in
  10148. ssl.enum_certificates.
  10149. Library
  10150. -------
  10151. - bpo-25995: os.walk() no longer uses FDs proportional to the tree depth.
  10152. - bpo-26117: The os.scandir() iterator now closes file descriptor not only
  10153. when the iteration is finished, but when it was failed with error.
  10154. - bpo-25911: Restored support of bytes paths in os.walk() on Windows.
  10155. - bpo-26045: Add UTF-8 suggestion to error message when posting a
  10156. non-Latin-1 string with http.client.
  10157. - bpo-12923: Reset FancyURLopener's redirect counter even if there is an
  10158. exception. Based on patches by Brian Brazil and Daniel Rocco.
  10159. - bpo-25945: Fixed a crash when unpickle the functools.partial object with
  10160. wrong state. Fixed a leak in failed functools.partial constructor. "args"
  10161. and "keywords" attributes of functools.partial have now always types tuple
  10162. and dict correspondingly.
  10163. - bpo-26202: copy.deepcopy() now correctly copies range() objects with
  10164. non-atomic attributes.
  10165. - bpo-23076: Path.glob() now raises a ValueError if it's called with an
  10166. invalid pattern. Patch by Thomas Nyberg.
  10167. - bpo-19883: Fixed possible integer overflows in zipimport.
  10168. - bpo-26227: On Windows, getnameinfo(), gethostbyaddr() and
  10169. gethostbyname_ex() functions of the socket module now decode the hostname
  10170. from the ANSI code page rather than UTF-8.
  10171. - bpo-26147: xmlrpc now works with strings not encodable with used non-UTF-8
  10172. encoding.
  10173. - bpo-25935: Garbage collector now breaks reference loops with OrderedDict.
  10174. - bpo-16620: Fixed AttributeError in msilib.Directory.glob().
  10175. - bpo-26013: Added compatibility with broken protocol 2 pickles created in
  10176. old Python 3 versions (3.4.3 and lower).
  10177. - bpo-25850: Use cross-compilation by default for 64-bit Windows.
  10178. - bpo-17633: Improve zipimport's support for namespace packages.
  10179. - bpo-24705: Fix sysconfig._parse_makefile not expanding ${} vars appearing
  10180. before $() vars.
  10181. - bpo-22138: Fix mock.patch behavior when patching descriptors. Restore
  10182. original values after patching. Patch contributed by Sean McCully.
  10183. - bpo-25672: In the ssl module, enable the SSL_MODE_RELEASE_BUFFERS mode
  10184. option if it is safe to do so.
  10185. - bpo-26012: Don't traverse into symlinks for ``**`` pattern in
  10186. pathlib.Path.[r]glob().
  10187. - bpo-24120: Ignore PermissionError when traversing a tree with
  10188. pathlib.Path.[r]glob(). Patch by Ulrich Petri.
  10189. - bpo-25447: fileinput now uses sys.stdin as-is if it does not have a buffer
  10190. attribute (restores backward compatibility).
  10191. - bpo-25447: Copying the lru_cache() wrapper object now always works,
  10192. independently from the type of the wrapped object (by returning the
  10193. original object unchanged).
  10194. - bpo-24103: Fixed possible use after free in ElementTree.XMLPullParser.
  10195. - bpo-25860: os.fwalk() no longer skips remaining directories when error
  10196. occurs. Original patch by Samson Lee.
  10197. - bpo-25914: Fixed and simplified OrderedDict.__sizeof__.
  10198. - bpo-25902: Fixed various refcount issues in ElementTree iteration.
  10199. - bpo-25717: Restore the previous behaviour of tolerating most fstat()
  10200. errors when opening files. This was a regression in 3.5a1, and stopped
  10201. anonymous temporary files from working in special cases.
  10202. - bpo-24903: Fix regression in number of arguments compileall accepts when
  10203. '-d' is specified. The check on the number of arguments has been dropped
  10204. completely as it never worked correctly anyway.
  10205. - bpo-25764: In the subprocess module, preserve any exception caused by
  10206. fork() failure when preexec_fn is used.
  10207. - bpo-6478: _strptime's regexp cache now is reset after changing timezone
  10208. with time.tzset().
  10209. - bpo-14285: When executing a package with the "python -m package" option,
  10210. and package initialization fails, a proper traceback is now reported. The
  10211. "runpy" module now lets exceptions from package initialization pass back
  10212. to the caller, rather than raising ImportError.
  10213. - bpo-19771: Also in runpy and the "-m" option, omit the irrelevant message
  10214. ". . . is a package and cannot be directly executed" if the package could
  10215. not even be initialized (e.g. due to a bad ``*.pyc`` file).
  10216. - bpo-25177: Fixed problem with the mean of very small and very large
  10217. numbers. As a side effect, statistics.mean and statistics.variance should
  10218. be significantly faster.
  10219. - bpo-25718: Fixed copying object with state with boolean value is false.
  10220. - bpo-10131: Fixed deep copying of minidom documents. Based on patch by
  10221. Marian Ganisin.
  10222. - bpo-25725: Fixed a reference leak in pickle.loads() when unpickling
  10223. invalid data including tuple instructions.
  10224. - bpo-25663: In the Readline completer, avoid listing duplicate global
  10225. names, and search the global namespace before searching builtins.
  10226. - bpo-25688: Fixed file leak in ElementTree.iterparse() raising an error.
  10227. - bpo-23914: Fixed SystemError raised by unpickler on broken pickle data.
  10228. - bpo-25691: Fixed crash on deleting ElementTree.Element attributes.
  10229. - bpo-25624: ZipFile now always writes a ZIP_STORED header for directory
  10230. entries. Patch by Dingyuan Wang.
  10231. - Skip getaddrinfo if host is already resolved. Patch by A. Jesse Jiryu
  10232. Davis.
  10233. - bpo-26050: Add asyncio.StreamReader.readuntil() method. Patch by Марк
  10234. Коренберг.
  10235. - bpo-25924: Avoid unnecessary serialization of getaddrinfo(3) calls on OS X
  10236. versions 10.5 or higher. Original patch by A. Jesse Jiryu Davis.
  10237. - bpo-26406: Avoid unnecessary serialization of getaddrinfo(3) calls on
  10238. current versions of OpenBSD and NetBSD. Patch by A. Jesse Jiryu Davis.
  10239. - bpo-26848: Fix asyncio/subprocess.communicate() to handle empty input.
  10240. Patch by Jack O'Connor.
  10241. - bpo-27040: Add loop.get_exception_handler method
  10242. - bpo-27041: asyncio: Add loop.create_future method
  10243. - bpo-27223: asyncio: Fix _read_ready and _write_ready to respect
  10244. _conn_lost. Patch by Łukasz Langa.
  10245. - bpo-22970: asyncio: Fix inconsistency cancelling Condition.wait. Patch by
  10246. David Coles.
  10247. IDLE
  10248. ----
  10249. - bpo-5124: Paste with text selected now replaces the selection on X11. This
  10250. matches how paste works on Windows, Mac, most modern Linux apps, and ttk
  10251. widgets. Original patch by Serhiy Storchaka.
  10252. - bpo-24759: Make clear in idlelib.idle_test.__init__ that the directory is
  10253. a private implementation of test.test_idle and tool for maintainers.
  10254. - bpo-27196: Stop 'ThemeChanged' warnings when running IDLE tests. These
  10255. persisted after other warnings were suppressed in #20567. Apply Serhiy
  10256. Storchaka's update_idletasks solution to four test files. Record this
  10257. additional advice in idle_test/README.txt
  10258. - bpo-20567: Revise idle_test/README.txt with advice about avoiding tk
  10259. warning messages from tests. Apply advice to several IDLE tests.
  10260. - bpo-27117: Make colorizer htest and turtledemo work with dark themes. Move
  10261. code for configuring text widget colors to a new function.
  10262. - bpo-26673: When tk reports font size as 0, change to size 10. Such fonts
  10263. on Linux prevented the configuration dialog from opening.
  10264. - bpo-21939: Add test for IDLE's percolator. Original patch by Saimadhav
  10265. Heblikar.
  10266. - bpo-21676: Add test for IDLE's replace dialog. Original patch by Saimadhav
  10267. Heblikar.
  10268. - bpo-18410: Add test for IDLE's search dialog. Original patch by Westley
  10269. Martínez.
  10270. - bpo-21703: Add test for IDLE's undo delegator. Original patch by Saimadhav
  10271. Heblikar .
  10272. - bpo-27044: Add ConfigDialog.remove_var_callbacks to stop memory leaks.
  10273. - bpo-23977: Add more asserts to test_delegator.
  10274. - bpo-20640: Add tests for idlelib.configHelpSourceEdit. Patch by Saimadhav
  10275. Heblikar.
  10276. - In the 'IDLE-console differences' section of the IDLE doc, clarify how
  10277. running with IDLE affects sys.modules and the standard streams.
  10278. - bpo-25507: fix incorrect change in IOBinding that prevented printing.
  10279. Augment IOBinding htest to include all major IOBinding functions.
  10280. - bpo-25905: Revert unwanted conversion of ' to ’ RIGHT SINGLE QUOTATION
  10281. MARK in README.txt and open this and NEWS.txt with 'ascii'. Re-encode
  10282. CREDITS.txt to utf-8 and open it with 'utf-8'.
  10283. Documentation
  10284. -------------
  10285. - bpo-19489: Moved the search box from the sidebar to the header and footer
  10286. of each page. Patch by Ammar Askar.
  10287. - bpo-24136: Document the new PEP 448 unpacking syntax of 3.5.
  10288. - bpo-26736: Used HTTPS for external links in the documentation if possible.
  10289. - bpo-6953: Rework the Readline module documentation to group related
  10290. functions together, and add more details such as what underlying Readline
  10291. functions and variables are accessed.
  10292. - bpo-23606: Adds note to ctypes documentation regarding cdll.msvcrt.
  10293. - bpo-25500: Fix documentation to not claim that __import__ is searched for
  10294. in the global scope.
  10295. - bpo-26014: Update 3.x packaging documentation: * "See also" links to the
  10296. new docs are now provided in the legacy pages * links to setuptools
  10297. documentation have been updated
  10298. Tests
  10299. -----
  10300. - bpo-21916: Added tests for the turtle module. Patch by ingrid, Gregory
  10301. Loyse and Jelle Zijlstra.
  10302. - bpo-26523: The multiprocessing thread pool (multiprocessing.dummy.Pool)
  10303. was untested.
  10304. - bpo-26015: Added new tests for pickling iterators of mutable sequences.
  10305. - bpo-26325: Added test.support.check_no_resource_warning() to check that no
  10306. ResourceWarning is emitted.
  10307. - bpo-25940: Changed test_ssl to use self-signed.pythontest.net. This
  10308. avoids relying on svn.python.org, which recently changed root certificate.
  10309. - bpo-25616: Tests for OrderedDict are extracted from test_collections into
  10310. separate file test_ordered_dict.
  10311. - bpo-26583: Skip test_timestamp_overflow in test_import if bytecode files
  10312. cannot be written.
  10313. Build
  10314. -----
  10315. - bpo-26884: Fix linking extension modules for cross builds. Patch by Xavier
  10316. de Gaye.
  10317. - bpo-22359: Disable the rules for running _freeze_importlib and pgen when
  10318. cross-compiling. The output of these programs is normally saved with the
  10319. source code anyway, and is still regenerated when doing a native build.
  10320. Patch by Xavier de Gaye.
  10321. - bpo-27229: Fix the cross-compiling pgen rule for in-tree builds. Patch by
  10322. Xavier de Gaye.
  10323. - bpo-21668: Link audioop, _datetime, _ctypes_test modules to libm, except
  10324. on Mac OS X. Patch written by Xavier de Gaye.
  10325. - bpo-25702: A --with-lto configure option has been added that will enable
  10326. link time optimizations at build time during a make profile-opt. Some
  10327. compilers and toolchains are known to not produce stable code when using
  10328. LTO, be sure to test things thoroughly before relying on it. It can
  10329. provide a few % speed up over profile-opt alone.
  10330. - bpo-26624: Adds validation of ucrtbase[d].dll version with warning for old
  10331. versions.
  10332. - bpo-17603: Avoid error about nonexistent fileblocks.o file by using a
  10333. lower-level check for st_blocks in struct stat.
  10334. - bpo-26079: Fixing the build output folder for tix-8.4.3.6. Patch by Bjoern
  10335. Thiel.
  10336. - bpo-26465: Update Windows builds to use OpenSSL 1.0.2g.
  10337. - bpo-24421: Compile Modules/_math.c once, before building extensions.
  10338. Previously it could fail to compile properly if the math and cmath builds
  10339. were concurrent.
  10340. - bpo-25348: Added ``--pgo`` and ``--pgo-job`` arguments to
  10341. ``PCbuild\build.bat`` for building with Profile-Guided Optimization. The
  10342. old ``PCbuild\build_pgo.bat`` script is now deprecated, and simply calls
  10343. ``PCbuild\build.bat --pgo %*``.
  10344. - bpo-25827: Add support for building with ICC to ``configure``, including a
  10345. new ``--with-icc`` flag.
  10346. - bpo-25696: Fix installation of Python on UNIX with make -j9.
  10347. - bpo-26930: Update OS X 10.5+ 32-bit-only installer to build and link with
  10348. OpenSSL 1.0.2h.
  10349. - bpo-26268: Update Windows builds to use OpenSSL 1.0.2f.
  10350. - bpo-25136: Support Apple Xcode 7's new textual SDK stub libraries.
  10351. - bpo-24324: Do not enable unreachable code warnings when using gcc as the
  10352. option does not work correctly in older versions of gcc and has been
  10353. silently removed as of gcc-4.5.
  10354. Windows
  10355. -------
  10356. - bpo-27053: Updates make_zip.py to correctly generate library ZIP file.
  10357. - bpo-26268: Update the prepare_ssl.py script to handle OpenSSL releases
  10358. that don't include the contents of the include directory (that is, 1.0.2e
  10359. and later).
  10360. - bpo-26071: bdist_wininst created binaries fail to start and find 32bit
  10361. Python
  10362. - bpo-26073: Update the list of magic numbers in launcher
  10363. - bpo-26065: Excludes venv from library when generating embeddable distro.
  10364. Tools/Demos
  10365. -----------
  10366. - bpo-26799: Fix python-gdb.py: don't get C types once when the Python code
  10367. is loaded, but get C types on demand. The C types can change if
  10368. python-gdb.py is loaded before the Python executable. Patch written by
  10369. Thomas Ilsche.
  10370. - bpo-26271: Fix the Freeze tool to properly use flags passed through
  10371. configure. Patch by Daniel Shaulov.
  10372. - bpo-26489: Add dictionary unpacking support to Tools/parser/unparse.py.
  10373. Patch by Guo Ci Teo.
  10374. - bpo-26316: Fix variable name typo in Argument Clinic.
  10375. Windows
  10376. -------
  10377. - bpo-17500: Remove unused and outdated icons. (See also:
  10378. https://github.com/python/pythondotorg/issues/945)
  10379. What's New in Python 3.5.1 final?
  10380. =================================
  10381. *Release date: 2015-12-06*
  10382. Core and Builtins
  10383. -----------------
  10384. - bpo-25709: Fixed problem with in-place string concatenation and utf-8
  10385. cache.
  10386. Windows
  10387. -------
  10388. - bpo-25715: Python 3.5.1 installer shows wrong upgrade path and incorrect
  10389. logic for launcher detection.
  10390. What's New in Python 3.5.1 release candidate 1?
  10391. ===============================================
  10392. *Release date: 2015-11-22*
  10393. Core and Builtins
  10394. -----------------
  10395. - bpo-25630: Fix a possible segfault during argument parsing in functions
  10396. that accept filesystem paths.
  10397. - bpo-23564: Fixed a partially broken sanity check in the _posixsubprocess
  10398. internals regarding how fds_to_pass were passed to the child. The bug had
  10399. no actual impact as subprocess.py already avoided it.
  10400. - bpo-25388: Fixed tokenizer crash when processing undecodable source code
  10401. with a null byte.
  10402. - bpo-25462: The hash of the key now is calculated only once in most
  10403. operations in C implementation of OrderedDict.
  10404. - bpo-22995: Default implementation of __reduce__ and __reduce_ex__ now
  10405. rejects builtin types with not defined __new__.
  10406. - bpo-25555: Fix parser and AST: fill lineno and col_offset of "arg" node
  10407. when compiling AST from Python objects.
  10408. - bpo-24802: Avoid buffer overreads when int(), float(), compile(), exec()
  10409. and eval() are passed bytes-like objects. These objects are not
  10410. necessarily terminated by a null byte, but the functions assumed they
  10411. were.
  10412. - bpo-24726: Fixed a crash and leaking NULL in repr() of OrderedDict that
  10413. was mutated by direct calls of dict methods.
  10414. - bpo-25449: Iterating OrderedDict with keys with unstable hash now raises
  10415. KeyError in C implementations as well as in Python implementation.
  10416. - bpo-25395: Fixed crash when highly nested OrderedDict structures were
  10417. garbage collected.
  10418. - bpo-25274: sys.setrecursionlimit() now raises a RecursionError if the new
  10419. recursion limit is too low depending at the current recursion depth.
  10420. Modify also the "lower-water mark" formula to make it monotonic. This mark
  10421. is used to decide when the overflowed flag of the thread state is reset.
  10422. - bpo-24402: Fix input() to prompt to the redirected stdout when
  10423. sys.stdout.fileno() fails.
  10424. - bpo-24806: Prevent builtin types that are not allowed to be subclassed
  10425. from being subclassed through multiple inheritance.
  10426. - bpo-24848: Fixed a number of bugs in UTF-7 decoding of misformed data.
  10427. - bpo-25280: Import trace messages emitted in verbose (-v) mode are no
  10428. longer formatted twice.
  10429. - bpo-25003: On Solaris 11.3 or newer, os.urandom() now uses the getrandom()
  10430. function instead of the getentropy() function. The getentropy() function
  10431. is blocking to generate very good quality entropy, os.urandom() doesn't
  10432. need such high-quality entropy.
  10433. - bpo-25182: The stdprinter (used as sys.stderr before the io module is
  10434. imported at startup) now uses the backslashreplace error handler.
  10435. - bpo-25131: Make the line number and column offset of set/dict literals and
  10436. comprehensions correspond to the opening brace.
  10437. - bpo-25150: Hide the private _Py_atomic_xxx symbols from the public
  10438. Python.h header to fix a compilation error with OpenMP.
  10439. PyThreadState_GET() becomes an alias to PyThreadState_Get() to avoid ABI
  10440. incompatibilities.
  10441. Library
  10442. -------
  10443. - bpo-25626: Change three zlib functions to accept sizes that fit in
  10444. Py_ssize_t, but internally cap those sizes to UINT_MAX. This resolves a
  10445. regression in 3.5 where GzipFile.read() failed to read chunks larger than
  10446. 2 or 4 GiB. The change affects the zlib.Decompress.decompress()
  10447. max_length parameter, the zlib.decompress() bufsize parameter, and the
  10448. zlib.Decompress.flush() length parameter.
  10449. - bpo-25583: Avoid incorrect errors raised by os.makedirs(exist_ok=True)
  10450. when the OS gives priority to errors such as EACCES over EEXIST.
  10451. - bpo-25593: Change semantics of EventLoop.stop() in asyncio.
  10452. - bpo-6973: When we know a subprocess.Popen process has died, do not allow
  10453. the send_signal(), terminate(), or kill() methods to do anything as they
  10454. could potentially signal a different process.
  10455. - bpo-25590: In the Readline completer, only call getattr() once per
  10456. attribute.
  10457. - bpo-25498: Fix a crash when garbage-collecting ctypes objects created by
  10458. wrapping a memoryview. This was a regression made in 3.5a1. Based on
  10459. patch by Eryksun.
  10460. - bpo-25584: Added "escape" to the __all__ list in the glob module.
  10461. - bpo-25584: Fixed recursive glob() with patterns starting with ``**``.
  10462. - bpo-25446: Fix regression in smtplib's AUTH LOGIN support.
  10463. - bpo-18010: Fix the pydoc web server's module search function to handle
  10464. exceptions from importing packages.
  10465. - bpo-25554: Got rid of circular references in regular expression parsing.
  10466. - bpo-25510: fileinput.FileInput.readline() now returns b'' instead of '' at
  10467. the end if the FileInput was opened with binary mode. Patch by Ryosuke
  10468. Ito.
  10469. - bpo-25503: Fixed inspect.getdoc() for inherited docstrings of properties.
  10470. Original patch by John Mark Vandenberg.
  10471. - bpo-25515: Always use os.urandom as a source of randomness in uuid.uuid4.
  10472. - bpo-21827: Fixed textwrap.dedent() for the case when largest common
  10473. whitespace is a substring of smallest leading whitespace. Based on patch
  10474. by Robert Li.
  10475. - bpo-25447: The lru_cache() wrapper objects now can be copied and pickled
  10476. (by returning the original object unchanged).
  10477. - bpo-25390: typing: Don't crash on Union[str, Pattern].
  10478. - bpo-25441: asyncio: Raise error from drain() when socket is closed.
  10479. - bpo-25410: Cleaned up and fixed minor bugs in C implementation of
  10480. OrderedDict.
  10481. - bpo-25411: Improved Unicode support in SMTPHandler through better use of
  10482. the email package. Thanks to user simon04 for the patch.
  10483. - bpo-25407: Remove mentions of the formatter module being removed in Python
  10484. 3.6.
  10485. - bpo-25406: Fixed a bug in C implementation of OrderedDict.move_to_end()
  10486. that caused segmentation fault or hang in iterating after moving several
  10487. items to the start of ordered dict.
  10488. - bpo-25364: zipfile now works in threads disabled builds.
  10489. - bpo-25328: smtpd's SMTPChannel now correctly raises a ValueError if both
  10490. decode_data and enable_SMTPUTF8 are set to true.
  10491. - bpo-25316: distutils raises OSError instead of DistutilsPlatformError when
  10492. MSVC is not installed.
  10493. - bpo-25380: Fixed protocol for the STACK_GLOBAL opcode in
  10494. pickletools.opcodes.
  10495. - bpo-23972: Updates asyncio datagram create method allowing reuseport and
  10496. reuseaddr socket options to be set prior to binding the socket. Mirroring
  10497. the existing asyncio create_server method the reuseaddr option for
  10498. datagram sockets defaults to True if the O/S is 'posix' (except if the
  10499. platform is Cygwin). Patch by Chris Laws.
  10500. - bpo-25304: Add asyncio.run_coroutine_threadsafe(). This lets you submit a
  10501. coroutine to a loop from another thread, returning a
  10502. concurrent.futures.Future. By Vincent Michel.
  10503. - bpo-25232: Fix CGIRequestHandler to split the query from the URL at the
  10504. first question mark (?) rather than the last. Patch from Xiang Zhang.
  10505. - bpo-24657: Prevent CGIRequestHandler from collapsing slashes in the query
  10506. part of the URL as if it were a path. Patch from Xiang Zhang.
  10507. - bpo-24483: C implementation of functools.lru_cache() now calculates key's
  10508. hash only once.
  10509. - bpo-22958: Constructor and update method of weakref.WeakValueDictionary
  10510. now accept the self and the dict keyword arguments.
  10511. - bpo-22609: Constructor of collections.UserDict now accepts the self
  10512. keyword argument.
  10513. - bpo-25111: Fixed comparison of traceback.FrameSummary.
  10514. - bpo-25262: Added support for BINBYTES8 opcode in Python implementation of
  10515. unpickler. Highest 32 bits of 64-bit size for BINUNICODE8 and BINBYTES8
  10516. opcodes no longer silently ignored on 32-bit platforms in C
  10517. implementation.
  10518. - bpo-25034: Fix string.Formatter problem with auto-numbering and nested
  10519. format_specs. Patch by Anthon van der Neut.
  10520. - bpo-25233: Rewrite the guts of asyncio.Queue and asyncio.Semaphore to be
  10521. more understandable and correct.
  10522. - bpo-25203: Failed readline.set_completer_delims() no longer left the
  10523. module in inconsistent state.
  10524. - bpo-23600: Default implementation of tzinfo.fromutc() was returning wrong
  10525. results in some cases.
  10526. - bpo-23329: Allow the ssl module to be built with older versions of
  10527. LibreSSL.
  10528. - Prevent overflow in _Unpickler_Read.
  10529. - bpo-25047: The XML encoding declaration written by Element Tree now
  10530. respects the letter case given by the user. This restores the ability to
  10531. write encoding names in uppercase like "UTF-8", which worked in Python 2.
  10532. - bpo-25135: Make deque_clear() safer by emptying the deque before clearing.
  10533. This helps avoid possible reentrancy issues.
  10534. - bpo-19143: platform module now reads Windows version from kernel32.dll to
  10535. avoid compatibility shims.
  10536. - bpo-25092: Fix datetime.strftime() failure when errno was already set to
  10537. EINVAL.
  10538. - bpo-23517: Fix rounding in fromtimestamp() and utcfromtimestamp() methods
  10539. of datetime.datetime: microseconds are now rounded to nearest with ties
  10540. going to nearest even integer (ROUND_HALF_EVEN), instead of being rounding
  10541. towards minus infinity (ROUND_FLOOR). It's important that these methods
  10542. use the same rounding mode than datetime.timedelta to keep the property:
  10543. (datetime(1970,1,1) + timedelta(seconds=t)) ==
  10544. datetime.utcfromtimestamp(t). It also the rounding mode used by
  10545. round(float) for example.
  10546. - bpo-25155: Fix datetime.datetime.now() and datetime.datetime.utcnow() on
  10547. Windows to support date after year 2038. It was a regression introduced in
  10548. Python 3.5.0.
  10549. - bpo-25108: Omitted internal frames in traceback functions print_stack(),
  10550. format_stack(), and extract_stack() called without arguments.
  10551. - bpo-25118: Fix a regression of Python 3.5.0 in os.waitpid() on Windows.
  10552. - bpo-24684: socket.socket.getaddrinfo() now calls
  10553. PyUnicode_AsEncodedString() instead of calling the encode() method of the
  10554. host, to handle correctly custom string with an encode() method which
  10555. doesn't return a byte string. The encoder of the IDNA codec is now called
  10556. directly instead of calling the encode() method of the string.
  10557. - bpo-25060: Correctly compute stack usage of the BUILD_MAP opcode.
  10558. - bpo-24857: Comparing call_args to a long sequence now correctly returns a
  10559. boolean result instead of raising an exception. Patch by A Kaptur.
  10560. - bpo-23144: Make sure that HTMLParser.feed() returns all the data, even
  10561. when convert_charrefs is True.
  10562. - bpo-24982: shutil.make_archive() with the "zip" format now adds entries
  10563. for directories (including empty directories) in ZIP file.
  10564. - bpo-25019: Fixed a crash caused by setting non-string key of expat parser.
  10565. Based on patch by John Leitch.
  10566. - bpo-16180: Exit pdb if file has syntax error, instead of trapping user in
  10567. an infinite loop. Patch by Xavier de Gaye.
  10568. - bpo-24891: Fix a race condition at Python startup if the file descriptor
  10569. of stdin (0), stdout (1) or stderr (2) is closed while Python is creating
  10570. sys.stdin, sys.stdout and sys.stderr objects. These attributes are now set
  10571. to None if the creation of the object failed, instead of raising an
  10572. OSError exception. Initial patch written by Marco Paolini.
  10573. - bpo-24992: Fix error handling and a race condition (related to garbage
  10574. collection) in collections.OrderedDict constructor.
  10575. - bpo-24881: Fixed setting binary mode in Python implementation of FileIO on
  10576. Windows and Cygwin. Patch from Akira Li.
  10577. - bpo-25578: Fix (another) memory leak in SSLSocket.getpeercer().
  10578. - bpo-25530: Disable the vulnerable SSLv3 protocol by default when creating
  10579. ssl.SSLContext.
  10580. - bpo-25569: Fix memory leak in SSLSocket.getpeercert().
  10581. - bpo-25471: Sockets returned from accept() shouldn't appear to be
  10582. nonblocking.
  10583. - bpo-25319: When threading.Event is reinitialized, the underlying condition
  10584. should use a regular lock rather than a recursive lock.
  10585. - bpo-21112: Fix regression in unittest.expectedFailure on subclasses. Patch
  10586. from Berker Peksag.
  10587. - bpo-24764: cgi.FieldStorage.read_multi() now ignores the Content-Length
  10588. header in part headers. Patch written by Peter Landry and reviewed by
  10589. Pierre Quentel.
  10590. - bpo-24913: Fix overrun error in deque.index(). Found by John Leitch and
  10591. Bryce Darling.
  10592. - bpo-24774: Fix docstring in http.server.test. Patch from Chiu-Hsiang Hsu.
  10593. - bpo-21159: Improve message in
  10594. configparser.InterpolationMissingOptionError. Patch from Łukasz Langa.
  10595. - bpo-20362: Honour TestCase.longMessage correctly in assertRegex. Patch
  10596. from Ilia Kurenkov.
  10597. - bpo-23572: Fixed functools.singledispatch on classes with falsy
  10598. metaclasses. Patch by Ethan Furman.
  10599. - asyncio: ensure_future() now accepts awaitable objects.
  10600. IDLE
  10601. ----
  10602. - bpo-15348: Stop the debugger engine (normally in a user process) before
  10603. closing the debugger window (running in the IDLE process). This prevents
  10604. the RuntimeErrors that were being caught and ignored.
  10605. - bpo-24455: Prevent IDLE from hanging when a) closing the shell while the
  10606. debugger is active (15347); b) closing the debugger with the [X] button
  10607. (15348); and c) activating the debugger when already active (24455). The
  10608. patch by Mark Roseman does this by making two changes. 1. Suspend and
  10609. resume the gui.interaction method with the tcl vwait mechanism intended
  10610. for this purpose (instead of root.mainloop & .quit). 2. In gui.run, allow
  10611. any existing interaction to terminate first.
  10612. - Change 'The program' to 'Your program' in an IDLE 'kill program?' message
  10613. to make it clearer that the program referred to is the currently running
  10614. user program, not IDLE itself.
  10615. - bpo-24750: Improve the appearance of the IDLE editor window status bar.
  10616. Patch by Mark Roseman.
  10617. - bpo-25313: Change the handling of new built-in text color themes to better
  10618. address the compatibility problem introduced by the addition of IDLE Dark.
  10619. Consistently use the revised idleConf.CurrentTheme everywhere in idlelib.
  10620. - bpo-24782: Extension configuration is now a tab in the IDLE Preferences
  10621. dialog rather than a separate dialog. The former tabs are now a sorted
  10622. list. Patch by Mark Roseman.
  10623. - bpo-22726: Re-activate the config dialog help button with some content
  10624. about the other buttons and the new IDLE Dark theme.
  10625. - bpo-24820: IDLE now has an 'IDLE Dark' built-in text color theme. It is
  10626. more or less IDLE Classic inverted, with a cobalt blue background.
  10627. Strings, comments, keywords, ... are still green, red, orange, ... . To
  10628. use it with IDLEs released before November 2015, hit the 'Save as New
  10629. Custom Theme' button and enter a new name, such as 'Custom Dark'. The
  10630. custom theme will work with any IDLE release, and can be modified.
  10631. - bpo-25224: README.txt is now an idlelib index for IDLE developers and
  10632. curious users. The previous user content is now in the IDLE doc chapter.
  10633. 'IDLE' now means 'Integrated Development and Learning Environment'.
  10634. - bpo-24820: Users can now set breakpoint colors in Settings -> Custom
  10635. Highlighting. Original patch by Mark Roseman.
  10636. - bpo-24972: Inactive selection background now matches active selection
  10637. background, as configured by users, on all systems. Found items are now
  10638. always highlighted on Windows. Initial patch by Mark Roseman.
  10639. - bpo-24570: Idle: make calltip and completion boxes appear on Macs affected
  10640. by a tk regression. Initial patch by Mark Roseman.
  10641. - bpo-24988: Idle ScrolledList context menus (used in debugger) now work on
  10642. Mac Aqua. Patch by Mark Roseman.
  10643. - bpo-24801: Make right-click for context menu work on Mac Aqua. Patch by
  10644. Mark Roseman.
  10645. - bpo-25173: Associate tkinter messageboxes with a specific widget. For Mac
  10646. OSX, make them a 'sheet'. Patch by Mark Roseman.
  10647. - bpo-25198: Enhance the initial html viewer now used for Idle Help.
  10648. Properly indent fixed-pitch text (patch by Mark Roseman). Give code
  10649. snippet a very Sphinx-like light blueish-gray background. Re-use initial
  10650. width and height set by users for shell and editor. When the Table of
  10651. Contents (TOC) menu is used, put the section header at the top of the
  10652. screen.
  10653. - bpo-25225: Condense and rewrite Idle doc section on text colors.
  10654. - bpo-21995: Explain some differences between IDLE and console Python.
  10655. - bpo-22820: Explain need for *print* when running file from Idle editor.
  10656. - bpo-25224: Doc: augment Idle feature list and no-subprocess section.
  10657. - bpo-25219: Update doc for Idle command line options. Some were missing and
  10658. notes were not correct.
  10659. - bpo-24861: Most of idlelib is private and subject to change. Use
  10660. idleib.idle.* to start Idle. See idlelib.__init__.__doc__.
  10661. - bpo-25199: Idle: add synchronization comments for future maintainers.
  10662. - bpo-16893: Replace help.txt with help.html for Idle doc display. The new
  10663. idlelib/help.html is rstripped Doc/build/html/library/idle.html. It looks
  10664. better than help.txt and will better document Idle as released. The
  10665. tkinter html viewer that works for this file was written by Mark Roseman.
  10666. The now unused EditorWindow.HelpDialog class and helt.txt file are
  10667. deprecated.
  10668. - bpo-24199: Deprecate unused idlelib.idlever with possible removal in 3.6.
  10669. - bpo-24790: Remove extraneous code (which also create 2 & 3 conflicts).
  10670. Documentation
  10671. -------------
  10672. - bpo-22558: Add remaining doc links to source code for Python-coded
  10673. modules. Patch by Yoni Lavi.
  10674. - bpo-12067: Rewrite Comparisons section in the Expressions chapter of the
  10675. language reference. Some of the details of comparing mixed types were
  10676. incorrect or ambiguous. NotImplemented is only relevant at a lower level
  10677. than the Expressions chapter. Added details of comparing range() objects,
  10678. and default behaviour and consistency suggestions for user-defined
  10679. classes. Patch from Andy Maier.
  10680. - bpo-24952: Clarify the default size argument of stack_size() in the
  10681. "threading" and "_thread" modules. Patch from Mattip.
  10682. - bpo-23725: Overhaul tempfile docs. Note deprecated status of mktemp. Patch
  10683. from Zbigniew Jędrzejewski-Szmek.
  10684. - bpo-24808: Update the types of some PyTypeObject fields. Patch by Joseph
  10685. Weston.
  10686. - bpo-22812: Fix unittest discovery examples. Patch from Pam McA'Nulty.
  10687. Tests
  10688. -----
  10689. - bpo-25449: Added tests for OrderedDict subclasses.
  10690. - bpo-25099: Make test_compileall not fail when an entry on sys.path cannot
  10691. be written to (commonly seen in administrative installs on Windows).
  10692. - bpo-23919: Prevents assert dialogs appearing in the test suite.
  10693. - ``PCbuild\rt.bat`` now accepts an unlimited number of arguments to pass
  10694. along to regrtest.py. Previously there was a limit of 9.
  10695. Build
  10696. -----
  10697. - bpo-24915: Add LLVM support for PGO builds and use the test suite to
  10698. generate the profile data. Initial patch by Alecsandru Patrascu of Intel.
  10699. - bpo-24910: Windows MSIs now have unique display names.
  10700. - bpo-24986: It is now possible to build Python on Windows without errors
  10701. when external libraries are not available.
  10702. Windows
  10703. -------
  10704. - bpo-25450: Updates shortcuts to start Python in installation directory.
  10705. - bpo-25164: Changes default all-users install directory to match per-user
  10706. directory.
  10707. - bpo-25143: Improves installer error messages for unsupported platforms.
  10708. - bpo-25163: Display correct directory in installer when using non-default
  10709. settings.
  10710. - bpo-25361: Disables use of SSE2 instructions in Windows 32-bit build
  10711. - bpo-25089: Adds logging to installer for case where launcher is not
  10712. selected on upgrade.
  10713. - bpo-25165: Windows uninstallation should not remove launcher if other
  10714. versions remain
  10715. - bpo-25112: py.exe launcher is missing icons
  10716. - bpo-25102: Windows installer does not precompile for -O or -OO.
  10717. - bpo-25081: Makes Back button in installer go back to upgrade page when
  10718. upgrading.
  10719. - bpo-25091: Increases font size of the installer.
  10720. - bpo-25126: Clarifies that the non-web installer will download some
  10721. components.
  10722. - bpo-25213: Restores requestedExecutionLevel to manifest to disable UAC
  10723. virtualization.
  10724. - bpo-25022: Removed very outdated PC/example_nt/ directory.
  10725. Tools/Demos
  10726. -----------
  10727. - bpo-25440: Fix output of python-config --extension-suffix.
  10728. What's New in Python 3.5.0 final?
  10729. =================================
  10730. *Release date: 2015-09-13*
  10731. Build
  10732. -----
  10733. - bpo-25071: Windows installer should not require TargetDir parameter when
  10734. installing quietly.
  10735. What's New in Python 3.5.0 release candidate 4?
  10736. ===============================================
  10737. *Release date: 2015-09-09*
  10738. Library
  10739. -------
  10740. - bpo-25029: Fixes MemoryError in test_strptime.
  10741. Build
  10742. -----
  10743. - bpo-25027: Reverts partial-static build options and adds vcruntime140.dll
  10744. to Windows installation.
  10745. What's New in Python 3.5.0 release candidate 3?
  10746. ===============================================
  10747. *Release date: 2015-09-07*
  10748. Core and Builtins
  10749. -----------------
  10750. - bpo-24305: Prevent import subsystem stack frames from being counted by the
  10751. warnings.warn(stacklevel=) parameter.
  10752. - bpo-24912: Prevent __class__ assignment to immutable built-in objects.
  10753. - bpo-24975: Fix AST compilation for PEP 448 syntax.
  10754. Library
  10755. -------
  10756. - bpo-24917: time_strftime() buffer over-read.
  10757. - bpo-24748: To resolve a compatibility problem found with py2exe and
  10758. pywin32, imp.load_dynamic() once again ignores previously loaded modules
  10759. to support Python modules replacing themselves with extension modules.
  10760. Patch by Petr Viktorin.
  10761. - bpo-24635: Fixed a bug in typing.py where isinstance([], typing.Iterable)
  10762. would return True once, then False on subsequent calls.
  10763. - bpo-24989: Fixed buffer overread in BytesIO.readline() if a position is
  10764. set beyond size. Based on patch by John Leitch.
  10765. - bpo-24913: Fix overrun error in deque.index(). Found by John Leitch and
  10766. Bryce Darling.
  10767. What's New in Python 3.5.0 release candidate 2?
  10768. ===============================================
  10769. *Release date: 2015-08-25*
  10770. Core and Builtins
  10771. -----------------
  10772. - bpo-24769: Interpreter now starts properly when dynamic loading is
  10773. disabled. Patch by Petr Viktorin.
  10774. - bpo-21167: NAN operations are now handled correctly when python is
  10775. compiled with ICC even if -fp-model strict is not specified.
  10776. - bpo-24492: A "package" lacking a __name__ attribute when trying to perform
  10777. a ``from .. import ...`` statement will trigger an ImportError instead of
  10778. an AttributeError.
  10779. Library
  10780. -------
  10781. - bpo-24847: Removes vcruntime140.dll dependency from Tcl/Tk.
  10782. - bpo-24839: platform._syscmd_ver raises DeprecationWarning
  10783. - bpo-24867: Fix Task.get_stack() for 'async def' coroutines
  10784. What's New in Python 3.5.0 release candidate 1?
  10785. ===============================================
  10786. *Release date: 2015-08-09*
  10787. Core and Builtins
  10788. -----------------
  10789. - bpo-24667: Resize odict in all cases that the underlying dict resizes.
  10790. Library
  10791. -------
  10792. - bpo-24824: Signatures of codecs.encode() and codecs.decode() now are
  10793. compatible with pydoc.
  10794. - bpo-24634: Importing uuid should not try to load libc on Windows
  10795. - bpo-24798: _msvccompiler.py doesn't properly support manifests
  10796. - bpo-4395: Better testing and documentation of binary operators. Patch by
  10797. Martin Panter.
  10798. - bpo-23973: Update typing.py from GitHub repo.
  10799. - bpo-23004: mock_open() now reads binary data correctly when the type of
  10800. read_data is bytes. Initial patch by Aaron Hill.
  10801. - bpo-23888: Handle fractional time in cookie expiry. Patch by ssh.
  10802. - bpo-23652: Make it possible to compile the select module against the libc
  10803. headers from the Linux Standard Base, which do not include some EPOLL
  10804. macros. Patch by Matt Frank.
  10805. - bpo-22932: Fix timezones in email.utils.formatdate. Patch from Dmitry
  10806. Shachnev.
  10807. - bpo-23779: imaplib raises TypeError if authenticator tries to abort. Patch
  10808. from Craig Holmquist.
  10809. - bpo-23319: Fix ctypes.BigEndianStructure, swap correctly bytes. Patch
  10810. written by Matthieu Gautier.
  10811. - bpo-23254: Document how to close the TCPServer listening socket. Patch
  10812. from Martin Panter.
  10813. - bpo-19450: Update Windows and OS X installer builds to use SQLite 3.8.11.
  10814. - bpo-17527: Add PATCH to wsgiref.validator. Patch from Luca Sbardella.
  10815. - bpo-24791: Fix grammar regression for call syntax: 'g(\*a or b)'.
  10816. IDLE
  10817. ----
  10818. - bpo-23672: Allow Idle to edit and run files with astral chars in name.
  10819. Patch by Mohd Sanad Zaki Rizvi.
  10820. - bpo-24745: Idle editor default font. Switch from Courier to
  10821. platform-sensitive TkFixedFont. This should not affect current customized
  10822. font selections. If there is a problem, edit
  10823. $HOME/.idlerc/config-main.cfg and remove 'fontxxx' entries from [Editor
  10824. Window]. Patch by Mark Roseman.
  10825. - bpo-21192: Idle editor. When a file is run, put its name in the restart
  10826. bar. Do not print false prompts. Original patch by Adnan Umer.
  10827. - bpo-13884: Idle menus. Remove tearoff lines. Patch by Roger Serwy.
  10828. Documentation
  10829. -------------
  10830. - bpo-24129: Clarify the reference documentation for name resolution. This
  10831. includes removing the assumption that readers will be familiar with the
  10832. name resolution scheme Python used prior to the introduction of lexical
  10833. scoping for function namespaces. Patch by Ivan Levkivskyi.
  10834. - bpo-20769: Improve reload() docs. Patch by Dorian Pula.
  10835. - bpo-23589: Remove duplicate sentence from the FAQ. Patch by Yongzhi Pan.
  10836. - bpo-24729: Correct IO tutorial to match implementation regarding encoding
  10837. parameter to open function.
  10838. Tests
  10839. -----
  10840. - bpo-24751: When running regrtest with the ``-w`` command line option, a
  10841. test run is no longer marked as a failure if all tests succeed when
  10842. re-run.
  10843. What's New in Python 3.5.0 beta 4?
  10844. ==================================
  10845. *Release date: 2015-07-26*
  10846. Core and Builtins
  10847. -----------------
  10848. - bpo-23573: Restored optimization of bytes.rfind() and bytearray.rfind()
  10849. for single-byte argument on Linux.
  10850. - bpo-24569: Make PEP 448 dictionary evaluation more consistent.
  10851. - bpo-24583: Fix crash when set is mutated while being updated.
  10852. - bpo-24407: Fix crash when dict is mutated while being updated.
  10853. - bpo-24619: New approach for tokenizing async/await. As a consequence, it
  10854. is now possible to have one-line 'async def foo(): await ..' functions.
  10855. - bpo-24687: Plug refleak on SyntaxError in function parameters annotations.
  10856. - bpo-15944: memoryview: Allow arbitrary formats when casting to bytes.
  10857. Patch by Martin Panter.
  10858. Library
  10859. -------
  10860. - bpo-23441: rcompleter now prints a tab character instead of displaying
  10861. possible completions for an empty word. Initial patch by Martin Sekera.
  10862. - bpo-24683: Fixed crashes in _json functions called with arguments of
  10863. inappropriate type.
  10864. - bpo-21697: shutil.copytree() now correctly handles symbolic links that
  10865. point to directories. Patch by Eduardo Seabra and Thomas Kluyver.
  10866. - bpo-14373: Fixed segmentation fault when gc.collect() is called during
  10867. constructing lru_cache (C implementation).
  10868. - bpo-24695: Fix a regression in traceback.print_exception(). If
  10869. exc_traceback is None we shouldn't print a traceback header like described
  10870. in the documentation.
  10871. - bpo-24620: Random.setstate() now validates the value of state last
  10872. element.
  10873. - bpo-22485: Fixed an issue that caused `inspect.getsource` to return
  10874. incorrect results on nested functions.
  10875. - bpo-22153: Improve unittest docs. Patch from Martin Panter and evilzero.
  10876. - bpo-24580: Symbolic group references to open group in re patterns now are
  10877. explicitly forbidden as well as numeric group references.
  10878. - bpo-24206: Fixed __eq__ and __ne__ methods of inspect classes.
  10879. - bpo-24631: Fixed regression in the timeit module with multiline setup.
  10880. - bpo-18622: unittest.mock.mock_open().reset_mock would recurse infinitely.
  10881. Patch from Nicola Palumbo and Laurent De Buyst.
  10882. - bpo-23661: unittest.mock side_effects can now be exceptions again. This
  10883. was a regression vs Python 3.4. Patch from Ignacio Rossi
  10884. - bpo-24608: chunk.Chunk.read() now always returns bytes, not str.
  10885. - bpo-18684: Fixed reading out of the buffer in the re module.
  10886. - bpo-24259: tarfile now raises a ReadError if an archive is truncated
  10887. inside a data segment.
  10888. - bpo-15014: SMTP.auth() and SMTP.login() now support RFC 4954's optional
  10889. initial-response argument to the SMTP AUTH command.
  10890. - bpo-24669: Fix inspect.getsource() for 'async def' functions. Patch by Kai
  10891. Groner.
  10892. - bpo-24688: ast.get_docstring() for 'async def' functions.
  10893. Build
  10894. -----
  10895. - bpo-24603: Update Windows builds and OS X 10.5 installer to use OpenSSL
  10896. 1.0.2d.
  10897. What's New in Python 3.5.0 beta 3?
  10898. ==================================
  10899. *Release date: 2015-07-05*
  10900. Core and Builtins
  10901. -----------------
  10902. - bpo-24467: Fixed possible buffer over-read in bytearray. The bytearray
  10903. object now always allocates place for trailing null byte and it's buffer
  10904. now is always null-terminated.
  10905. - Upgrade to Unicode 8.0.0.
  10906. - bpo-24345: Add Py_tp_finalize slot for the stable ABI.
  10907. - bpo-24400: Introduce a distinct type for PEP 492 coroutines; add
  10908. types.CoroutineType, inspect.getcoroutinestate,
  10909. inspect.getcoroutinelocals; coroutines no longer use CO_GENERATOR flag;
  10910. sys.set_coroutine_wrapper works only for 'async def' coroutines;
  10911. inspect.iscoroutine no longer uses collections.abc.Coroutine, it's
  10912. intended to test for pure 'async def' coroutines only; add new opcode:
  10913. GET_YIELD_FROM_ITER; fix generators wrapper used in types.coroutine to be
  10914. instance of collections.abc.Generator; collections.abc.Awaitable and
  10915. collections.abc.Coroutine can no longer be used to detect generator-based
  10916. coroutines--use inspect.isawaitable instead.
  10917. - bpo-24450: Add gi_yieldfrom to generators and cr_await to coroutines.
  10918. Contributed by Benno Leslie and Yury Selivanov.
  10919. - bpo-19235: Add new RecursionError exception. Patch by Georg Brandl.
  10920. Library
  10921. -------
  10922. - bpo-21750: mock_open.read_data can now be read from each instance, as it
  10923. could in Python 3.3.
  10924. - bpo-24552: Fix use after free in an error case of the _pickle module.
  10925. - bpo-24514: tarfile now tolerates number fields consisting of only
  10926. whitespace.
  10927. - bpo-19176: Fixed doctype() related bugs in C implementation of
  10928. ElementTree. A deprecation warning no longer issued by XMLParser subclass
  10929. with default doctype() method. Direct call of doctype() now issues a
  10930. warning. Parser's doctype() now is not called if target's doctype() is
  10931. called. Based on patch by Martin Panter.
  10932. - bpo-20387: Restore semantic round-trip correctness in tokenize/untokenize
  10933. for tab-indented blocks.
  10934. - bpo-24456: Fixed possible buffer over-read in adpcm2lin() and lin2adpcm()
  10935. functions of the audioop module.
  10936. - bpo-24336: The contextmanager decorator now works with functions with
  10937. keyword arguments called "func" and "self". Patch by Martin Panter.
  10938. - bpo-24522: Fix possible integer overflow in json accelerator module.
  10939. - bpo-24489: ensure a previously set C errno doesn't disturb cmath.polar().
  10940. - bpo-24408: Fixed AttributeError in measure() and metrics() methods of
  10941. tkinter.Font.
  10942. - bpo-14373: C implementation of functools.lru_cache() now can be used with
  10943. methods.
  10944. - bpo-24347: Set KeyError if PyDict_GetItemWithError returns NULL.
  10945. - bpo-24348: Drop superfluous incref/decref.
  10946. - bpo-24359: Check for changed OrderedDict size during iteration.
  10947. - bpo-24368: Support keyword arguments in OrderedDict methods.
  10948. - bpo-24362: Simplify the C OrderedDict fast nodes resize logic.
  10949. - bpo-24377: Fix a ref leak in OrderedDict.__repr__.
  10950. - bpo-24369: Defend against key-changes during iteration.
  10951. Tests
  10952. -----
  10953. - bpo-24373: _testmultiphase and xxlimited now use tp_traverse and
  10954. tp_finalize to avoid reference leaks encountered when combining tp_dealloc
  10955. with PyType_FromSpec (see issue #16690 for details)
  10956. Documentation
  10957. -------------
  10958. - bpo-24458: Update documentation to cover multi-phase initialization for
  10959. extension modules (PEP 489). Patch by Petr Viktorin.
  10960. - bpo-24351: Clarify what is meant by "identifier" in the context of
  10961. string.Template instances.
  10962. Build
  10963. -----
  10964. - bpo-24432: Update Windows builds and OS X 10.5 installer to use OpenSSL
  10965. 1.0.2c.
  10966. What's New in Python 3.5.0 beta 2?
  10967. ==================================
  10968. *Release date: 2015-05-31*
  10969. Core and Builtins
  10970. -----------------
  10971. - bpo-24284: The startswith and endswith methods of the str class no longer
  10972. return True when finding the empty string and the indexes are completely
  10973. out of range.
  10974. - bpo-24115: Update uses of PyObject_IsTrue(), PyObject_Not(),
  10975. PyObject_IsInstance(), PyObject_RichCompareBool() and _PyDict_Contains()
  10976. to check for and handle errors correctly.
  10977. - bpo-24328: Fix importing one character extension modules.
  10978. - bpo-11205: In dictionary displays, evaluate the key before the value.
  10979. - bpo-24285: Fixed regression that prevented importing extension modules
  10980. from inside packages. Patch by Petr Viktorin.
  10981. Library
  10982. -------
  10983. - bpo-23247: Fix a crash in the StreamWriter.reset() of CJK codecs.
  10984. - bpo-24270: Add math.isclose() and cmath.isclose() functions as per PEP
  10985. 485. Contributed by Chris Barker and Tal Einat.
  10986. - bpo-5633: Fixed timeit when the statement is a string and the setup is
  10987. not.
  10988. - bpo-24326: Fixed audioop.ratecv() with non-default weightB argument.
  10989. Original patch by David Moore.
  10990. - bpo-16991: Add a C implementation of OrderedDict.
  10991. - bpo-23934: Fix inspect.signature to fail correctly for builtin types
  10992. lacking signature information. Initial patch by James Powell.
  10993. What's New in Python 3.5.0 beta 1?
  10994. ==================================
  10995. *Release date: 2015-05-24*
  10996. Core and Builtins
  10997. -----------------
  10998. - bpo-24276: Fixed optimization of property descriptor getter.
  10999. - bpo-24268: PEP 489: Multi-phase extension module initialization. Patch by
  11000. Petr Viktorin.
  11001. - bpo-23955: Add pyvenv.cfg option to suppress registry/environment lookup
  11002. for generating sys.path on Windows.
  11003. - bpo-24257: Fixed system error in the comparison of faked
  11004. types.SimpleNamespace.
  11005. - bpo-22939: Fixed integer overflow in iterator object. Patch by Clement
  11006. Rouault.
  11007. - bpo-23985: Fix a possible buffer overrun when deleting a slice from the
  11008. front of a bytearray and then appending some other bytes data.
  11009. - bpo-24102: Fixed exception type checking in standard error handlers.
  11010. - bpo-15027: The UTF-32 encoder is now 3x to 7x faster.
  11011. - bpo-23290: Optimize set_merge() for cases where the target is empty.
  11012. (Contributed by Serhiy Storchaka.)
  11013. - bpo-2292: PEP 448: Additional Unpacking Generalizations.
  11014. - bpo-24096: Make warnings.warn_explicit more robust against mutation of the
  11015. warnings.filters list.
  11016. - bpo-23996: Avoid a crash when a delegated generator raises an unnormalized
  11017. StopIteration exception. Patch by Stefan Behnel.
  11018. - bpo-23910: Optimize property() getter calls. Patch by Joe Jevnik.
  11019. - bpo-23911: Move path-based importlib bootstrap code to a separate frozen
  11020. module.
  11021. - bpo-24192: Fix namespace package imports.
  11022. - bpo-24022: Fix tokenizer crash when processing undecodable source code.
  11023. - bpo-9951: Added a hex() method to bytes, bytearray, and memoryview.
  11024. - bpo-22906: PEP 479: Change StopIteration handling inside generators.
  11025. - bpo-24017: PEP 492: Coroutines with async and await syntax.
  11026. Library
  11027. -------
  11028. - bpo-14373: Added C implementation of functools.lru_cache(). Based on
  11029. patches by Matt Joiner and Alexey Kachayev.
  11030. - bpo-24230: The tempfile module now accepts bytes for prefix, suffix and
  11031. dir parameters and returns bytes in such situations (matching the os
  11032. module APIs).
  11033. - bpo-22189: collections.UserString now supports __getnewargs__(),
  11034. __rmod__(), casefold(), format_map(), isprintable(), and maketrans().
  11035. Patch by Joe Jevnik.
  11036. - bpo-24244: Prevents termination when an invalid format string is
  11037. encountered on Windows in strftime.
  11038. - bpo-23973: PEP 484: Add the typing module.
  11039. - bpo-23086: The collections.abc.Sequence() abstract base class added
  11040. *start* and *stop* parameters to the index() mixin. Patch by Devin
  11041. Jeanpierre.
  11042. - bpo-20035: Replaced the ``tkinter._fix`` module used for setting up the
  11043. Tcl/Tk environment on Windows with a private function in the ``_tkinter``
  11044. module that makes no permanent changes to the environment.
  11045. - bpo-24257: Fixed segmentation fault in sqlite3.Row constructor with faked
  11046. cursor type.
  11047. - bpo-15836: assertRaises(), assertRaisesRegex(), assertWarns() and
  11048. assertWarnsRegex() assertments now check the type of the first argument to
  11049. prevent possible user error. Based on patch by Daniel Wagner-Hall.
  11050. - bpo-9858: Add missing method stubs to _io.RawIOBase. Patch by Laura
  11051. Rupprecht.
  11052. - bpo-22955: attrgetter, itemgetter and methodcaller objects in the operator
  11053. module now support pickling. Added readable and evaluable repr for these
  11054. objects. Based on patch by Josh Rosenberg.
  11055. - bpo-22107: tempfile.gettempdir() and tempfile.mkdtemp() now try again when
  11056. a directory with the chosen name already exists on Windows as well as on
  11057. Unix. tempfile.mkstemp() now fails early if parent directory is not valid
  11058. (not exists or is a file) on Windows.
  11059. - bpo-23780: Improved error message in os.path.join() with single argument.
  11060. - bpo-6598: Increased time precision and random number range in
  11061. email.utils.make_msgid() to strengthen the uniqueness of the message ID.
  11062. - bpo-24091: Fixed various crashes in corner cases in C implementation of
  11063. ElementTree.
  11064. - bpo-21931: msilib.FCICreate() now raises TypeError in the case of a bad
  11065. argument instead of a ValueError with a bogus FCI error number. Patch by
  11066. Jeffrey Armstrong.
  11067. - bpo-13866: *quote_via* argument added to urllib.parse.urlencode.
  11068. - bpo-20098: New mangle_from policy option for email, default True for
  11069. compat32, but False for all other policies.
  11070. - bpo-24211: The email library now supports RFC 6532: it can generate
  11071. headers using utf-8 instead of encoded words.
  11072. - bpo-16314: Added support for the LZMA compression in distutils.
  11073. - bpo-21804: poplib now supports RFC 6856 (UTF8).
  11074. - bpo-18682: Optimized pprint functions for builtin scalar types.
  11075. - bpo-22027: smtplib now supports RFC 6531 (SMTPUTF8).
  11076. - bpo-23488: Random generator objects now consume 2x less memory on 64-bit.
  11077. - bpo-1322: platform.dist() and platform.linux_distribution() functions are
  11078. now deprecated. Initial patch by Vajrasky Kok.
  11079. - bpo-22486: Added the math.gcd() function. The fractions.gcd() function
  11080. now is deprecated. Based on patch by Mark Dickinson.
  11081. - bpo-24064: Property() docstrings are now writeable. (Patch by Berker
  11082. Peksag.)
  11083. - bpo-22681: Added support for the koi8_t encoding.
  11084. - bpo-22682: Added support for the kz1048 encoding.
  11085. - bpo-23796: peek and read1 methods of BufferedReader now raise ValueError
  11086. if they called on a closed object. Patch by John Hergenroeder.
  11087. - bpo-21795: smtpd now supports the 8BITMIME extension whenever the new
  11088. *decode_data* constructor argument is set to False.
  11089. - bpo-24155: optimize heapq.heapify() for better cache performance when
  11090. heapifying large lists.
  11091. - bpo-21800: imaplib now supports RFC 5161 (enable), RFC 6855
  11092. (utf8/internationalized email) and automatically encodes non-ASCII
  11093. usernames and passwords to UTF8.
  11094. - bpo-20274: When calling a _sqlite.Connection, it now complains if passed
  11095. any keyword arguments. Previously it silently ignored them.
  11096. - bpo-20274: Remove ignored and erroneous "kwargs" parameters from three
  11097. METH_VARARGS methods on _sqlite.Connection.
  11098. - bpo-24134: assertRaises(), assertRaisesRegex(), assertWarns() and
  11099. assertWarnsRegex() checks now emits a deprecation warning when callable is
  11100. None or keyword arguments except msg is passed in the context manager
  11101. mode.
  11102. - bpo-24018: Add a collections.abc.Generator abstract base class.
  11103. Contributed by Stefan Behnel.
  11104. - bpo-23880: Tkinter's getint() and getdouble() now support Tcl_Obj.
  11105. Tkinter's getdouble() now supports any numbers (in particular int).
  11106. - bpo-22619: Added negative limit support in the traceback module. Based on
  11107. patch by Dmitry Kazakov.
  11108. - bpo-24094: Fix possible crash in json.encode with poorly behaved dict
  11109. subclasses.
  11110. - bpo-9246: On POSIX, os.getcwd() now supports paths longer than 1025 bytes.
  11111. Patch written by William Orr.
  11112. - bpo-17445: add difflib.diff_bytes() to support comparison of byte strings
  11113. (fixes a regression from Python 2).
  11114. - bpo-23917: Fall back to sequential compilation when ProcessPoolExecutor
  11115. doesn't exist. Patch by Claudiu Popa.
  11116. - bpo-23008: Fixed resolving attributes with boolean value is False in
  11117. pydoc.
  11118. - Fix asyncio issue 235: LifoQueue and PriorityQueue's put didn't increment
  11119. unfinished tasks (this bug was introduced when JoinableQueue was merged
  11120. with Queue).
  11121. - bpo-23908: os functions now reject paths with embedded null character on
  11122. Windows instead of silently truncating them.
  11123. - bpo-23728: binascii.crc_hqx() could return an integer outside of the range
  11124. 0-0xffff for empty data.
  11125. - bpo-23887: urllib.error.HTTPError now has a proper repr() representation.
  11126. Patch by Berker Peksag.
  11127. - asyncio: New event loop APIs: set_task_factory() and get_task_factory().
  11128. - asyncio: async() function is deprecated in favour of ensure_future().
  11129. - bpo-24178: asyncio.Lock, Condition, Semaphore, and BoundedSemaphore
  11130. support new 'async with' syntax. Contributed by Yury Selivanov.
  11131. - bpo-24179: Support 'async for' for asyncio.StreamReader. Contributed by
  11132. Yury Selivanov.
  11133. - bpo-24184: Add AsyncIterator and AsyncIterable ABCs to collections.abc.
  11134. Contributed by Yury Selivanov.
  11135. - bpo-22547: Implement informative __repr__ for inspect.BoundArguments.
  11136. Contributed by Yury Selivanov.
  11137. - bpo-24190: Implement inspect.BoundArgument.apply_defaults() method.
  11138. Contributed by Yury Selivanov.
  11139. - bpo-20691: Add 'follow_wrapped' argument to
  11140. inspect.Signature.from_callable() and inspect.signature(). Contributed by
  11141. Yury Selivanov.
  11142. - bpo-24248: Deprecate inspect.Signature.from_function() and
  11143. inspect.Signature.from_builtin().
  11144. - bpo-23898: Fix inspect.classify_class_attrs() to support attributes with
  11145. overloaded __eq__ and __bool__. Patch by Mike Bayer.
  11146. - bpo-24298: Fix inspect.signature() to correctly unwrap wrappers around
  11147. bound methods.
  11148. IDLE
  11149. ----
  11150. - bpo-23184: remove unused names and imports in idlelib. Initial patch by Al
  11151. Sweigart.
  11152. Tests
  11153. -----
  11154. - bpo-21520: test_zipfile no longer fails if the word 'bad' appears anywhere
  11155. in the name of the current directory.
  11156. - bpo-9517: Move script_helper into the support package. Patch by Christie
  11157. Wilson.
  11158. Documentation
  11159. -------------
  11160. - bpo-22155: Add File Handlers subsection with createfilehandler to tkinter
  11161. doc. Remove obsolete example from FAQ. Patch by Martin Panter.
  11162. - bpo-24029: Document the name binding behavior for submodule imports.
  11163. - bpo-24077: Fix typo in man page for -I command option: -s, not -S
  11164. Tools/Demos
  11165. -----------
  11166. - bpo-24000: Improved Argument Clinic's mapping of converters to legacy
  11167. "format units". Updated the documentation to match.
  11168. - bpo-24001: Argument Clinic converters now use accept={type} instead of
  11169. types={'type'} to specify the types the converter accepts.
  11170. - bpo-23330: h2py now supports arbitrary filenames in #include.
  11171. - bpo-24031: make patchcheck now supports git checkouts, too.
  11172. What's New in Python 3.5.0 alpha 4?
  11173. ===================================
  11174. *Release date: 2015-04-19*
  11175. Core and Builtins
  11176. -----------------
  11177. - bpo-22980: Under Linux, GNU/KFreeBSD and the Hurd, C extensions now
  11178. include the architecture triplet in the extension name, to make it easy to
  11179. test builds for different ABIs in the same working tree. Under OS X, the
  11180. extension name now includes PEP 3149-style information.
  11181. - bpo-22631: Added Linux-specific socket constant CAN_RAW_FD_FRAMES. Patch
  11182. courtesy of Joe Jevnik.
  11183. - bpo-23731: Implement PEP 488: removal of .pyo files.
  11184. - bpo-23726: Don't enable GC for user subclasses of non-GC types that don't
  11185. add any new fields. Patch by Eugene Toder.
  11186. - bpo-23309: Avoid a deadlock at shutdown if a daemon thread is aborted
  11187. while it is holding a lock to a buffered I/O object, and the main thread
  11188. tries to use the same I/O object (typically stdout or stderr). A fatal
  11189. error is emitted instead.
  11190. - bpo-22977: Fixed formatting Windows error messages on Wine. Patch by
  11191. Martin Panter.
  11192. - bpo-23466: %c, %o, %x, and %X in bytes formatting now raise TypeError on
  11193. non-integer input.
  11194. - bpo-24044: Fix possible null pointer dereference in list.sort in out of
  11195. memory conditions.
  11196. - bpo-21354: PyCFunction_New function is exposed by python DLL again.
  11197. Library
  11198. -------
  11199. - bpo-23840: tokenize.open() now closes the temporary binary file on error
  11200. to fix a resource warning.
  11201. - bpo-16914: new debuglevel 2 in smtplib adds timestamps to debug output.
  11202. - bpo-7159: urllib.request now supports sending auth credentials
  11203. automatically after the first 401. This enhancement is a superset of the
  11204. enhancement from issue #19494 and supersedes that change.
  11205. - bpo-23703: Fix a regression in urljoin() introduced in 901e4e52b20a. Patch
  11206. by Demian Brecht.
  11207. - bpo-4254: Adds _curses.update_lines_cols(). Patch by Arnon Yaari
  11208. - bpo-19933: Provide default argument for ndigits in round. Patch by
  11209. Vajrasky Kok.
  11210. - bpo-23193: Add a numeric_owner parameter to tarfile.TarFile.extract and
  11211. tarfile.TarFile.extractall. Patch by Michael Vogt and Eric Smith.
  11212. - bpo-23342: Add a subprocess.run() function than returns a CalledProcess
  11213. instance for a more consistent API than the existing call* functions.
  11214. - bpo-21217: inspect.getsourcelines() now tries to compute the start and end
  11215. lines from the code object, fixing an issue when a lambda function is used
  11216. as decorator argument. Patch by Thomas Ballinger and Allison Kaptur.
  11217. - bpo-24521: Fix possible integer overflows in the pickle module.
  11218. - bpo-22931: Allow '[' and ']' in cookie values.
  11219. - The keywords attribute of functools.partial is now always a dictionary.
  11220. - bpo-23811: Add missing newline to the PyCompileError error message. Patch
  11221. by Alex Shkop.
  11222. - bpo-21116: Avoid blowing memory when allocating a multiprocessing shared
  11223. array that's larger than 50% of the available RAM. Patch by Médéric
  11224. Boquien.
  11225. - bpo-22982: Improve BOM handling when seeking to multiple positions of a
  11226. writable text file.
  11227. - bpo-23464: Removed deprecated asyncio JoinableQueue.
  11228. - bpo-23529: Limit the size of decompressed data when reading from GzipFile,
  11229. BZ2File or LZMAFile. This defeats denial of service attacks using
  11230. compressed bombs (i.e. compressed payloads which decompress to a huge
  11231. size). Patch by Martin Panter and Nikolaus Rath.
  11232. - bpo-21859: Added Python implementation of io.FileIO.
  11233. - bpo-23865: close() methods in multiple modules now are idempotent and more
  11234. robust at shutdown. If they need to release multiple resources, all are
  11235. released even if errors occur.
  11236. - bpo-23400: Raise same exception on both Python 2 and 3 if sem_open is not
  11237. available. Patch by Davin Potts.
  11238. - bpo-10838: The subprocess now module includes SubprocessError and
  11239. TimeoutError in its list of exported names for the users wild enough to
  11240. use ``from subprocess import *``.
  11241. - bpo-23411: Added DefragResult, ParseResult, SplitResult,
  11242. DefragResultBytes, ParseResultBytes, and SplitResultBytes to
  11243. urllib.parse.__all__. Patch by Martin Panter.
  11244. - bpo-23881: urllib.request.ftpwrapper constructor now closes the socket if
  11245. the FTP connection failed to fix a ResourceWarning.
  11246. - bpo-23853: :meth:`socket.socket.sendall` does no more reset the socket
  11247. timeout each time data is sent successfully. The socket timeout is now the
  11248. maximum total duration to send all data.
  11249. - bpo-22721: An order of multiline pprint output of set or dict containing
  11250. orderable and non-orderable elements no longer depends on iteration order
  11251. of set or dict.
  11252. - bpo-15133: _tkinter.tkapp.getboolean() now supports Tcl_Obj and always
  11253. returns bool. tkinter.BooleanVar now validates input values (accepted
  11254. bool, int, str, and Tcl_Obj). tkinter.BooleanVar.get() now always returns
  11255. bool.
  11256. - bpo-10590: xml.sax.parseString() now supports string argument.
  11257. - bpo-23338: Fixed formatting ctypes error messages on Cygwin. Patch by
  11258. Makoto Kato.
  11259. - bpo-15582: inspect.getdoc() now follows inheritance chains.
  11260. - bpo-2175: SAX parsers now support a character stream of InputSource
  11261. object.
  11262. - bpo-16840: Tkinter now supports 64-bit integers added in Tcl 8.4 and
  11263. arbitrary precision integers added in Tcl 8.5.
  11264. - bpo-23834: Fix socket.sendto(), use the C Py_ssize_t type to store the
  11265. result of sendto() instead of the C int type.
  11266. - bpo-23618: :meth:`socket.socket.connect` now waits until the connection
  11267. completes instead of raising :exc:`InterruptedError` if the connection is
  11268. interrupted by signals, signal handlers don't raise an exception and the
  11269. socket is blocking or has a timeout. :meth:`socket.socket.connect` still
  11270. raise :exc:`InterruptedError` for non-blocking sockets.
  11271. - bpo-21526: Tkinter now supports new boolean type in Tcl 8.5.
  11272. - bpo-23836: Fix the faulthandler module to handle reentrant calls to its
  11273. signal handlers.
  11274. - bpo-23838: linecache now clears the cache and returns an empty result on
  11275. MemoryError.
  11276. - bpo-10395: Added os.path.commonpath(). Implemented in posixpath and
  11277. ntpath. Based on patch by Rafik Draoui.
  11278. - bpo-23611: Serializing more "lookupable" objects (such as unbound methods
  11279. or nested classes) now are supported with pickle protocols < 4.
  11280. - bpo-13583: sqlite3.Row now supports slice indexing.
  11281. - bpo-18473: Fixed 2to3 and 3to2 compatible pickle mappings. Fixed
  11282. ambiguous reverse mappings. Added many new mappings. Import mapping is
  11283. no longer applied to modules already mapped with full name mapping.
  11284. - bpo-23485: select.select() is now retried automatically with the
  11285. recomputed timeout when interrupted by a signal, except if the signal
  11286. handler raises an exception. This change is part of the PEP 475.
  11287. - bpo-23752: When built from an existing file descriptor, io.FileIO() now
  11288. only calls fstat() once. Before fstat() was called twice, which was not
  11289. necessary.
  11290. - bpo-23704: collections.deque() objects now support __add__, __mul__, and
  11291. __imul__().
  11292. - bpo-23171: csv.Writer.writerow() now supports arbitrary iterables.
  11293. - bpo-23745: The new email header parser now handles duplicate MIME
  11294. parameter names without error, similar to how get_param behaves.
  11295. - bpo-22117: Fix os.utime(), it now rounds the timestamp towards minus
  11296. infinity (-inf) instead of rounding towards zero.
  11297. - bpo-23310: Fix MagicMock's initializer to work with __methods__, just like
  11298. configure_mock(). Patch by Kasia Jachim.
  11299. Build
  11300. -----
  11301. - bpo-23817: FreeBSD now uses "1.0" in the SOVERSION as other operating
  11302. systems, instead of just "1".
  11303. - bpo-23501: Argument Clinic now generates code into separate files by
  11304. default.
  11305. Tests
  11306. -----
  11307. - bpo-23799: Added test.support.start_threads() for running and cleaning up
  11308. multiple threads.
  11309. - bpo-22390: test.regrtest now emits a warning if temporary files or
  11310. directories are left after running a test.
  11311. Tools/Demos
  11312. -----------
  11313. - bpo-18128: pygettext now uses standard +NNNN format in the
  11314. POT-Creation-Date header.
  11315. - bpo-23935: Argument Clinic's understanding of format units accepting
  11316. bytes, bytearrays, and buffers is now consistent with both the
  11317. documentation and the implementation.
  11318. - bpo-23944: Argument Clinic now wraps long impl prototypes at column 78.
  11319. - bpo-20586: Argument Clinic now ensures that functions without docstrings
  11320. have signatures.
  11321. - bpo-23492: Argument Clinic now generates argument parsing code with
  11322. PyArg_Parse instead of PyArg_ParseTuple if possible.
  11323. - bpo-23500: Argument Clinic is now smarter about generating the "#ifndef"
  11324. (empty) definition of the methoddef macro: it's only generated once, even
  11325. if Argument Clinic processes the same symbol multiple times, and it's
  11326. emitted at the end of all processing rather than immediately after the
  11327. first use.
  11328. C API
  11329. -----
  11330. - bpo-23998: PyImport_ReInitLock() now checks for lock allocation error
  11331. What's New in Python 3.5.0 alpha 3?
  11332. ===================================
  11333. *Release date: 2015-03-28*
  11334. Core and Builtins
  11335. -----------------
  11336. - bpo-23573: Increased performance of string search operations (str.find,
  11337. str.index, str.count, the in operator, str.split, str.partition) with
  11338. arguments of different kinds (UCS1, UCS2, UCS4).
  11339. - bpo-23753: Python doesn't support anymore platforms without stat() or
  11340. fstat(), these functions are always required.
  11341. - bpo-23681: The -b option now affects comparisons of bytes with int.
  11342. - bpo-23632: Memoryviews now allow tuple indexing (including for
  11343. multi-dimensional memoryviews).
  11344. - bpo-23192: Fixed generator lambdas. Patch by Bruno Cauet.
  11345. - bpo-23629: Fix the default __sizeof__ implementation for variable-sized
  11346. objects.
  11347. Library
  11348. -------
  11349. - bpo-14260: The groupindex attribute of regular expression pattern object
  11350. now is non-modifiable mapping.
  11351. - bpo-23792: Ignore KeyboardInterrupt when the pydoc pager is active. This
  11352. mimics the behavior of the standard unix pagers, and prevents pipepager
  11353. from shutting down while the pager itself is still running.
  11354. - bpo-23775: pprint() of OrderedDict now outputs the same representation as
  11355. repr().
  11356. - bpo-23765: Removed IsBadStringPtr calls in ctypes
  11357. - bpo-22364: Improved some re error messages using regex for hints.
  11358. - bpo-23742: ntpath.expandvars() no longer loses unbalanced single quotes.
  11359. - bpo-21717: The zipfile.ZipFile.open function now supports 'x' (exclusive
  11360. creation) mode.
  11361. - bpo-21802: The reader in BufferedRWPair now is closed even when closing
  11362. writer failed in BufferedRWPair.close().
  11363. - bpo-23622: Unknown escapes in regular expressions that consist of ``'\'``
  11364. and ASCII letter now raise a deprecation warning and will be forbidden in
  11365. Python 3.6.
  11366. - bpo-23671: string.Template now allows specifying the "self" parameter as a
  11367. keyword argument. string.Formatter now allows specifying the "self" and
  11368. the "format_string" parameters as keyword arguments.
  11369. - bpo-23502: The pprint module now supports mapping proxies.
  11370. - bpo-17530: pprint now wraps long bytes objects and bytearrays.
  11371. - bpo-22687: Fixed some corner cases in breaking words in tetxtwrap. Got rid
  11372. of quadratic complexity in breaking long words.
  11373. - bpo-4727: The copy module now uses pickle protocol 4 (PEP 3154) and
  11374. supports copying of instances of classes whose __new__ method takes
  11375. keyword-only arguments.
  11376. - bpo-23491: Added a zipapp module to support creating executable zip file
  11377. archives of Python code. Registered ".pyz" and ".pyzw" extensions on
  11378. Windows for these archives (PEP 441).
  11379. - bpo-23657: Avoid explicit checks for str in zipapp, adding support for
  11380. pathlib.Path objects as arguments.
  11381. - bpo-23688: Added support of arbitrary bytes-like objects and avoided
  11382. unnecessary copying of memoryview in gzip.GzipFile.write(). Original patch
  11383. by Wolfgang Maier.
  11384. - bpo-23252: Added support for writing ZIP files to unseekable streams.
  11385. - bpo-23647: Increase imaplib's MAXLINE to accommodate modern mailbox sizes.
  11386. - bpo-23539: If body is None, http.client.HTTPConnection.request now sets
  11387. Content-Length to 0 for PUT, POST, and PATCH headers to avoid 411 errors
  11388. from some web servers.
  11389. - bpo-22351: The nntplib.NNTP constructor no longer leaves the connection
  11390. and socket open until the garbage collector cleans them up. Patch by
  11391. Martin Panter.
  11392. - bpo-23704: collections.deque() objects now support methods for index(),
  11393. insert(), and copy(). This allows deques to be registered as a
  11394. MutableSequence and it improves their substitutability for lists.
  11395. - bpo-23715: :func:`signal.sigwaitinfo` and :func:`signal.sigtimedwait` are
  11396. now retried when interrupted by a signal not in the *sigset* parameter, if
  11397. the signal handler does not raise an exception. signal.sigtimedwait()
  11398. recomputes the timeout with a monotonic clock when it is retried.
  11399. - bpo-23001: Few functions in modules mmap, ossaudiodev, socket, ssl, and
  11400. codecs, that accepted only read-only bytes-like object now accept writable
  11401. bytes-like object too.
  11402. - bpo-23646: If time.sleep() is interrupted by a signal, the sleep is now
  11403. retried with the recomputed delay, except if the signal handler raises an
  11404. exception (PEP 475).
  11405. - bpo-23136: _strptime now uniformly handles all days in week 0, including
  11406. Dec 30 of previous year. Based on patch by Jim Carroll.
  11407. - bpo-23700: Iterator of NamedTemporaryFile now keeps a reference to
  11408. NamedTemporaryFile instance. Patch by Bohuslav Kabrda.
  11409. - bpo-22903: The fake test case created by unittest.loader when it fails
  11410. importing a test module is now picklable.
  11411. - bpo-22181: On Linux, os.urandom() now uses the new getrandom() syscall if
  11412. available, syscall introduced in the Linux kernel 3.17. It is more
  11413. reliable and more secure, because it avoids the need of a file descriptor
  11414. and waits until the kernel has enough entropy.
  11415. - bpo-2211: Updated the implementation of the http.cookies.Morsel class.
  11416. Setting attributes key, value and coded_value directly now is deprecated.
  11417. update() and setdefault() now transform and check keys. Comparing for
  11418. equality now takes into account attributes key, value and coded_value.
  11419. copy() now returns a Morsel, not a dict. repr() now contains all
  11420. attributes. Optimized checking keys and quoting values. Added new tests.
  11421. Original patch by Demian Brecht.
  11422. - bpo-18983: Allow selection of output units in timeit. Patch by Julian
  11423. Gindi.
  11424. - bpo-23631: Fix traceback.format_list when a traceback has been mutated.
  11425. - bpo-23568: Add rdivmod support to MagicMock() objects. Patch by Håkan
  11426. Lövdahl.
  11427. - bpo-2052: Add charset parameter to HtmlDiff.make_file().
  11428. - bpo-23668: Support os.truncate and os.ftruncate on Windows.
  11429. - bpo-23138: Fixed parsing cookies with absent keys or values in cookiejar.
  11430. Patch by Demian Brecht.
  11431. - bpo-23051: multiprocessing.Pool methods imap() and imap_unordered() now
  11432. handle exceptions raised by an iterator. Patch by Alon Diamant and Davin
  11433. Potts.
  11434. - bpo-23581: Add matmul support to MagicMock. Patch by Håkan Lövdahl.
  11435. - bpo-23566: enable(), register(), dump_traceback() and
  11436. dump_traceback_later() functions of faulthandler now accept file
  11437. descriptors. Patch by Wei Wu.
  11438. - bpo-22928: Disabled HTTP header injections in http.client. Original patch
  11439. by Demian Brecht.
  11440. - bpo-23615: Modules bz2, tarfile and tokenize now can be reloaded with
  11441. imp.reload(). Patch by Thomas Kluyver.
  11442. - bpo-23605: os.walk() now calls os.scandir() instead of os.listdir(). The
  11443. usage of os.scandir() reduces the number of calls to os.stat(). Initial
  11444. patch written by Ben Hoyt.
  11445. Build
  11446. -----
  11447. - bpo-23585: make patchcheck will ensure the interpreter is built.
  11448. Tests
  11449. -----
  11450. - bpo-23583: Added tests for standard IO streams in IDLE.
  11451. - bpo-22289: Prevent test_urllib2net failures due to ftp connection timeout.
  11452. Tools/Demos
  11453. -----------
  11454. - bpo-22826: The result of open() in Tools/freeze/bkfile.py is now better
  11455. compatible with regular files (in particular it now supports the context
  11456. management protocol).
  11457. What's New in Python 3.5.0 alpha 2?
  11458. ===================================
  11459. *Release date: 2015-03-09*
  11460. Core and Builtins
  11461. -----------------
  11462. - bpo-23571: PyObject_Call() and PyCFunction_Call() now raise a SystemError
  11463. if a function returns a result and raises an exception. The SystemError is
  11464. chained to the previous exception.
  11465. Library
  11466. -------
  11467. - bpo-22524: New os.scandir() function, part of the PEP 471: "os.scandir()
  11468. function -- a better and faster directory iterator". Patch written by Ben
  11469. Hoyt.
  11470. - bpo-23103: Reduced the memory consumption of IPv4Address and IPv6Address.
  11471. - bpo-21793: BaseHTTPRequestHandler again logs response code as numeric, not
  11472. as stringified enum. Patch by Demian Brecht.
  11473. - bpo-23476: In the ssl module, enable OpenSSL's X509_V_FLAG_TRUSTED_FIRST
  11474. flag on certificate stores when it is available.
  11475. - bpo-23576: Avoid stalling in SSL reads when EOF has been reached in the
  11476. SSL layer but the underlying connection hasn't been closed.
  11477. - bpo-23504: Added an __all__ to the types module.
  11478. - bpo-23563: Optimized utility functions in urllib.parse.
  11479. - bpo-7830: Flatten nested functools.partial.
  11480. - bpo-20204: Added the __module__ attribute to _tkinter classes.
  11481. - bpo-19980: Improved help() for non-recognized strings. help('') now shows
  11482. the help on str. help('help') now shows the help on help(). Original
  11483. patch by Mark Lawrence.
  11484. - bpo-23521: Corrected pure python implementation of timedelta division.
  11485. Eliminated OverflowError from ``timedelta * float`` for some floats;
  11486. Corrected rounding in timedelta true division.
  11487. - bpo-21619: Popen objects no longer leave a zombie after exit in the with
  11488. statement if the pipe was broken. Patch by Martin Panter.
  11489. - bpo-22936: Make it possible to show local variables in tracebacks for both
  11490. the traceback module and unittest.
  11491. - bpo-15955: Add an option to limit the output size in bz2.decompress().
  11492. Patch by Nikolaus Rath.
  11493. - bpo-6639: Module-level turtle functions no longer raise TclError after
  11494. closing the window.
  11495. - bpo-814253: Group references and conditional group references now work in
  11496. lookbehind assertions in regular expressions. (See also: bpo-9179)
  11497. - bpo-23215: Multibyte codecs with custom error handlers that ignores errors
  11498. consumed too much memory and raised SystemError or MemoryError. Original
  11499. patch by Aleksi Torhamo.
  11500. - bpo-5700: io.FileIO() called flush() after closing the file. flush() was
  11501. not called in close() if closefd=False.
  11502. - bpo-23374: Fixed pydoc failure with non-ASCII files when stdout encoding
  11503. differs from file system encoding (e.g. on Mac OS).
  11504. - bpo-23481: Remove RC4 from the SSL module's default cipher list.
  11505. - bpo-21548: Fix pydoc.synopsis() and pydoc.apropos() on modules with empty
  11506. docstrings.
  11507. - bpo-22885: Fixed arbitrary code execution vulnerability in the dbm.dumb
  11508. module. Original patch by Claudiu Popa.
  11509. - bpo-23239: ssl.match_hostname() now supports matching of IP addresses.
  11510. - bpo-23146: Fix mishandling of absolute Windows paths with forward slashes
  11511. in pathlib.
  11512. - bpo-23096: Pickle representation of floats with protocol 0 now is the same
  11513. for both Python and C implementations.
  11514. - bpo-19105: pprint now more efficiently uses free space at the right.
  11515. - bpo-14910: Add allow_abbrev parameter to argparse.ArgumentParser. Patch by
  11516. Jonathan Paugh, Steven Bethard, paul j3 and Daniel Eriksson.
  11517. - bpo-21717: tarfile.open() now supports 'x' (exclusive creation) mode.
  11518. - bpo-23344: marshal.dumps() is now 20-25% faster on average.
  11519. - bpo-20416: marshal.dumps() with protocols 3 and 4 is now 40-50% faster on
  11520. average.
  11521. - bpo-23421: Fixed compression in tarfile CLI. Patch by wdv4758h.
  11522. - bpo-23367: Fix possible overflows in the unicodedata module.
  11523. - bpo-23361: Fix possible overflow in Windows subprocess creation code.
  11524. - logging.handlers.QueueListener now takes a respect_handler_level keyword
  11525. argument which, if set to True, will pass messages to handlers taking
  11526. handler levels into account.
  11527. - bpo-19705: turtledemo now has a visual sorting algorithm demo. Original
  11528. patch from Jason Yeo.
  11529. - bpo-23801: Fix issue where cgi.FieldStorage did not always ignore the
  11530. entire preamble to a multipart body.
  11531. Build
  11532. -----
  11533. - bpo-23445: pydebug builds now use "gcc -Og" where possible, to make the
  11534. resulting executable faster.
  11535. - bpo-23686: Update OS X 10.5 installer build to use OpenSSL 1.0.2a.
  11536. C API
  11537. -----
  11538. - bpo-20204: Deprecation warning is now raised for builtin types without the
  11539. __module__ attribute.
  11540. Windows
  11541. -------
  11542. - bpo-23465: Implement PEP 486 - Make the Python Launcher aware of virtual
  11543. environments. Patch by Paul Moore.
  11544. - bpo-23437: Make user scripts directory versioned on Windows. Patch by Paul
  11545. Moore.
  11546. What's New in Python 3.5.0 alpha 1?
  11547. ===================================
  11548. *Release date: 2015-02-08*
  11549. Core and Builtins
  11550. -----------------
  11551. - bpo-23285: PEP 475 - EINTR handling.
  11552. - bpo-22735: Fix many edge cases (including crashes) involving custom mro()
  11553. implementations.
  11554. - bpo-22896: Avoid using PyObject_AsCharBuffer(), PyObject_AsReadBuffer()
  11555. and PyObject_AsWriteBuffer().
  11556. - bpo-21295: Revert some changes (issue #16795) to AST line numbers and
  11557. column offsets that constituted a regression.
  11558. - bpo-22986: Allow changing an object's __class__ between a dynamic type and
  11559. static type in some cases.
  11560. - bpo-15859: PyUnicode_EncodeFSDefault(), PyUnicode_EncodeMBCS() and
  11561. PyUnicode_EncodeCodePage() now raise an exception if the object is not a
  11562. Unicode object. For PyUnicode_EncodeFSDefault(), it was already the case
  11563. on platforms other than Windows. Patch written by Campbell Barton.
  11564. - bpo-21408: The default __ne__() now returns NotImplemented if __eq__()
  11565. returned NotImplemented. Original patch by Martin Panter.
  11566. - bpo-23321: Fixed a crash in str.decode() when error handler returned
  11567. replacement string longer than malformed input data.
  11568. - bpo-22286: The "backslashreplace" error handlers now works with decoding
  11569. and translating.
  11570. - bpo-23253: Delay-load ShellExecute[AW] in os.startfile for reduced startup
  11571. overhead on Windows.
  11572. - bpo-22038: pyatomic.h now uses stdatomic.h or GCC built-in functions for
  11573. atomic memory access if available. Patch written by Vitor de Lima and
  11574. Gustavo Temple.
  11575. - bpo-20284: %-interpolation (aka printf) formatting added for bytes and
  11576. bytearray.
  11577. - bpo-23048: Fix jumping out of an infinite while loop in the pdb.
  11578. - bpo-20335: bytes constructor now raises TypeError when encoding or errors
  11579. is specified with non-string argument. Based on patch by Renaud Blanch.
  11580. - bpo-22834: If the current working directory ends up being set to a
  11581. non-existent directory then import will no longer raise FileNotFoundError.
  11582. - bpo-22869: Move the interpreter startup & shutdown code to a new dedicated
  11583. pylifecycle.c module
  11584. - bpo-22847: Improve method cache efficiency.
  11585. - bpo-22335: Fix crash when trying to enlarge a bytearray to 0x7fffffff
  11586. bytes on a 32-bit platform.
  11587. - bpo-22653: Fix an assertion failure in debug mode when doing a reentrant
  11588. dict insertion in debug mode.
  11589. - bpo-22643: Fix integer overflow in Unicode case operations (upper, lower,
  11590. title, swapcase, casefold).
  11591. - bpo-17636: Circular imports involving relative imports are now supported.
  11592. - bpo-22604: Fix assertion error in debug mode when dividing a complex
  11593. number by (nan+0j).
  11594. - bpo-21052: Do not raise ImportWarning when sys.path_hooks or sys.meta_path
  11595. are set to None.
  11596. - bpo-16518: Use 'bytes-like object required' in error messages that
  11597. previously used the far more cryptic "'x' does not support the buffer
  11598. protocol.
  11599. - bpo-22470: Fixed integer overflow issues in "backslashreplace",
  11600. "xmlcharrefreplace", and "surrogatepass" error handlers.
  11601. - bpo-22540: speed up `PyObject_IsInstance` and `PyObject_IsSubclass` in the
  11602. common case that the second argument has metaclass `type`.
  11603. - bpo-18711: Add a new `PyErr_FormatV` function, similar to `PyErr_Format`
  11604. but accepting a `va_list` argument.
  11605. - bpo-22520: Fix overflow checking when generating the repr of a unicode
  11606. object.
  11607. - bpo-22519: Fix overflow checking in PyBytes_Repr.
  11608. - bpo-22518: Fix integer overflow issues in latin-1 encoding.
  11609. - bpo-16324: _charset parameter of MIMEText now also accepts
  11610. email.charset.Charset instances. Initial patch by Claude Paroz.
  11611. - bpo-1764286: Fix inspect.getsource() to support decorated functions. Patch
  11612. by Claudiu Popa.
  11613. - bpo-18554: os.__all__ includes posix functions.
  11614. - bpo-21391: Use os.path.abspath in the shutil module.
  11615. - bpo-11471: avoid generating a JUMP_FORWARD instruction at the end of an
  11616. if-block if there is no else-clause. Original patch by Eugene Toder.
  11617. - bpo-22215: Now ValueError is raised instead of TypeError when str or bytes
  11618. argument contains not permitted null character or byte.
  11619. - bpo-22258: Fix the internal function set_inheritable() on Illumos. This
  11620. platform exposes the function ``ioctl(FIOCLEX)``, but calling it fails
  11621. with errno is ENOTTY: "Inappropriate ioctl for device". set_inheritable()
  11622. now falls back to the slower ``fcntl()`` (``F_GETFD`` and then
  11623. ``F_SETFD``).
  11624. - bpo-21389: Displaying the __qualname__ of the underlying function in the
  11625. repr of a bound method.
  11626. - bpo-22206: Using pthread, PyThread_create_key() now sets errno to ENOMEM
  11627. and returns -1 (error) on integer overflow.
  11628. - bpo-20184: Argument Clinic based signature introspection added for 30 of
  11629. the builtin functions.
  11630. - bpo-22116: C functions and methods (of the 'builtin_function_or_method'
  11631. type) can now be weakref'ed. Patch by Wei Wu.
  11632. - bpo-22077: Improve index error messages for bytearrays, bytes, lists, and
  11633. tuples by adding 'or slices'. Added ', not <typename>' for bytearrays.
  11634. Original patch by Claudiu Popa.
  11635. - bpo-20179: Apply Argument Clinic to bytes and bytearray. Patch by Tal
  11636. Einat.
  11637. - bpo-22082: Clear interned strings in slotdefs.
  11638. - Upgrade Unicode database to Unicode 7.0.0.
  11639. - bpo-21897: Fix a crash with the f_locals attribute with closure variables
  11640. when frame.clear() has been called.
  11641. - bpo-21205: Add a new ``__qualname__`` attribute to generator, the
  11642. qualified name, and use it in the representation of a generator
  11643. (``repr(gen)``). The default name of the generator (``__name__``
  11644. attribute) is now get from the function instead of the code. Use
  11645. ``gen.gi_code.co_name`` to get the name of the code.
  11646. - bpo-21669: With the aid of heuristics in SyntaxError.__init__, the parser
  11647. now attempts to generate more meaningful (or at least more search engine
  11648. friendly) error messages when "exec" and "print" are used as statements.
  11649. - bpo-21642: In the conditional if-else expression, allow an integer written
  11650. with no space between itself and the ``else`` keyword (e.g. ``True if
  11651. 42else False``) to be valid syntax.
  11652. - bpo-21523: Fix over-pessimistic computation of the stack effect of some
  11653. opcodes in the compiler. This also fixes a quadratic compilation time
  11654. issue noticeable when compiling code with a large number of "and" and "or"
  11655. operators.
  11656. - bpo-21418: Fix a crash in the builtin function super() when called without
  11657. argument and without current frame (ex: embedded Python).
  11658. - bpo-21425: Fix flushing of standard streams in the interactive
  11659. interpreter.
  11660. - bpo-21435: In rare cases, when running finalizers on objects in cyclic
  11661. trash a bad pointer dereference could occur due to a subtle flaw in
  11662. internal iteration logic.
  11663. - bpo-21377: PyBytes_Concat() now tries to concatenate in-place when the
  11664. first argument has a reference count of 1. Patch by Nikolaus Rath.
  11665. - bpo-20355: -W command line options now have higher priority than the
  11666. PYTHONWARNINGS environment variable. Patch by Arfrever.
  11667. - bpo-21274: Define PATH_MAX for GNU/Hurd in Python/pythonrun.c.
  11668. - bpo-20904: Support setting FPU precision on m68k.
  11669. - bpo-21209: Fix sending tuples to custom generator objects with the yield
  11670. from syntax.
  11671. - bpo-21193: pow(a, b, c) now raises ValueError rather than TypeError when b
  11672. is negative. Patch by Josh Rosenberg.
  11673. - bpo-21176: PEP 465: Add the '@' operator for matrix multiplication.
  11674. - bpo-21134: Fix segfault when str is called on an uninitialized
  11675. UnicodeEncodeError, UnicodeDecodeError, or UnicodeTranslateError object.
  11676. - bpo-19537: Fix PyUnicode_DATA() alignment under m68k. Patch by Andreas
  11677. Schwab.
  11678. - bpo-20929: Add a type cast to avoid shifting a negative number.
  11679. - bpo-20731: Properly position in source code files even if they are opened
  11680. in text mode. Patch by Serhiy Storchaka.
  11681. - bpo-20637: Key-sharing now also works for instance dictionaries of
  11682. subclasses. Patch by Peter Ingebretson.
  11683. - bpo-8297: Attributes missing from modules now include the module name in
  11684. the error text. Original patch by ysj.ray.
  11685. - bpo-19995: %c, %o, %x, and %X now raise TypeError on non-integer input.
  11686. - bpo-19655: The ASDL parser - used by the build process to generate code
  11687. for managing the Python AST in C - was rewritten. The new parser is self
  11688. contained and does not require to carry long the spark.py parser-generator
  11689. library; spark.py was removed from the source base.
  11690. - bpo-12546: Allow ``\x00`` to be used as a fill character when using str,
  11691. int, float, and complex __format__ methods.
  11692. - bpo-20480: Add ipaddress.reverse_pointer. Patch by Leon Weber.
  11693. - bpo-13598: Modify string.Formatter to support auto-numbering of
  11694. replacement fields. It now matches the behavior of str.format() in this
  11695. regard. Patches by Phil Elson and Ramchandra Apte.
  11696. - bpo-8931: Make alternate formatting ('#') for type 'c' raise an exception.
  11697. In versions prior to 3.5, '#' with 'c' had no effect. Now specifying it is
  11698. an error. Patch by Torsten Landschoff.
  11699. - bpo-23165: Perform overflow checks before allocating memory in the
  11700. _Py_char2wchar function.
  11701. Library
  11702. -------
  11703. - bpo-23399: pyvenv creates relative symlinks where possible.
  11704. - bpo-20289: cgi.FieldStorage() now supports the context management
  11705. protocol.
  11706. - bpo-13128: Print response headers for CONNECT requests when debuglevel >
  11707. 0. Patch by Demian Brecht.
  11708. - bpo-15381: Optimized io.BytesIO to make less allocations and copyings.
  11709. - bpo-22818: Splitting on a pattern that could match an empty string now
  11710. raises a warning. Patterns that can only match empty strings are now
  11711. rejected.
  11712. - bpo-23099: Closing io.BytesIO with exported buffer is rejected now to
  11713. prevent corrupting exported buffer.
  11714. - bpo-23326: Removed __ne__ implementations. Since fixing default __ne__
  11715. implementation in issue #21408 they are redundant.
  11716. - bpo-23363: Fix possible overflow in itertools.permutations.
  11717. - bpo-23364: Fix possible overflow in itertools.product.
  11718. - bpo-23366: Fixed possible integer overflow in itertools.combinations.
  11719. - bpo-23369: Fixed possible integer overflow in
  11720. _json.encode_basestring_ascii.
  11721. - bpo-23353: Fix the exception handling of generators in
  11722. PyEval_EvalFrameEx(). At entry, save or swap the exception state even if
  11723. PyEval_EvalFrameEx() is called with throwflag=0. At exit, the exception
  11724. state is now always restored or swapped, not only if why is WHY_YIELD or
  11725. WHY_RETURN. Patch co-written with Antoine Pitrou.
  11726. - bpo-14099: Restored support of writing ZIP files to tellable but
  11727. non-seekable streams.
  11728. - bpo-14099: Writing to ZipFile and reading multiple ZipExtFiles is
  11729. threadsafe now.
  11730. - bpo-19361: JSON decoder now raises JSONDecodeError instead of ValueError.
  11731. - bpo-18518: timeit now rejects statements which can't be compiled outside a
  11732. function or a loop (e.g. "return" or "break").
  11733. - bpo-23094: Fixed readline with frames in Python implementation of pickle.
  11734. - bpo-23268: Fixed bugs in the comparison of ipaddress classes.
  11735. - bpo-21408: Removed incorrect implementations of __ne__() which didn't
  11736. returned NotImplemented if __eq__() returned NotImplemented. The default
  11737. __ne__() now works correctly.
  11738. - bpo-19996: :class:`email.feedparser.FeedParser` now handles (malformed)
  11739. headers with no key rather than assuming the body has started.
  11740. - bpo-20188: Support Application-Layer Protocol Negotiation (ALPN) in the
  11741. ssl module.
  11742. - bpo-23133: Pickling of ipaddress objects now produces more compact and
  11743. portable representation.
  11744. - bpo-23248: Update ssl error codes from latest OpenSSL git master.
  11745. - bpo-23266: Much faster implementation of ipaddress.collapse_addresses()
  11746. when there are many non-consecutive addresses.
  11747. - bpo-23098: 64-bit dev_t is now supported in the os module.
  11748. - bpo-21817: When an exception is raised in a task submitted to a
  11749. ProcessPoolExecutor, the remote traceback is now displayed in the parent
  11750. process. Patch by Claudiu Popa.
  11751. - bpo-15955: Add an option to limit output size when decompressing LZMA
  11752. data. Patch by Nikolaus Rath and Martin Panter.
  11753. - bpo-23250: In the http.cookies module, capitalize "HttpOnly" and "Secure"
  11754. as they are written in the standard.
  11755. - bpo-23063: In the distutils' check command, fix parsing of reST with code
  11756. or code-block directives.
  11757. - bpo-23209: selectors.BaseSelector.get_key() now raises a RuntimeError if
  11758. the selector is closed. And selectors.BaseSelector.close() now clears its
  11759. internal reference to the selector mapping to break a reference cycle.
  11760. Initial patch written by Martin Richard. (See also: bpo-23225)
  11761. - bpo-17911: Provide a way to seed the linecache for a PEP-302 module
  11762. without actually loading the code.
  11763. - bpo-17911: Provide a new object API for traceback, including the ability
  11764. to not lookup lines at all until the traceback is actually rendered,
  11765. without any trace of the original objects being kept alive.
  11766. - bpo-19777: Provide a home() classmethod on Path objects. Contributed by
  11767. Victor Salgado and Mayank Tripathi.
  11768. - bpo-23206: Make ``json.dumps(..., ensure_ascii=False)`` as fast as the
  11769. default case of ``ensure_ascii=True``. Patch by Naoki Inada.
  11770. - bpo-23185: Add math.inf and math.nan constants.
  11771. - bpo-23186: Add ssl.SSLObject.shared_ciphers() and
  11772. ssl.SSLSocket.shared_ciphers() to fetch the client's list ciphers sent at
  11773. handshake.
  11774. - bpo-23143: Remove compatibility with OpenSSLs older than 0.9.8.
  11775. - bpo-23132: Improve performance and introspection support of comparison
  11776. methods created by functool.total_ordering.
  11777. - bpo-19776: Add an expanduser() method on Path objects.
  11778. - bpo-23112: Fix SimpleHTTPServer to correctly carry the query string and
  11779. fragment when it redirects to add a trailing slash.
  11780. - bpo-21793: Added http.HTTPStatus enums (i.e. HTTPStatus.OK,
  11781. HTTPStatus.NOT_FOUND). Patch by Demian Brecht.
  11782. - bpo-23093: In the io, module allow more operations to work on detached
  11783. streams.
  11784. - bpo-23111: In the ftplib, make ssl.PROTOCOL_SSLv23 the default protocol
  11785. version.
  11786. - bpo-22585: On OpenBSD 5.6 and newer, os.urandom() now calls getentropy(),
  11787. instead of reading /dev/urandom, to get pseudo-random bytes.
  11788. - bpo-19104: pprint now produces evaluable output for wrapped strings.
  11789. - bpo-23071: Added missing names to codecs.__all__. Patch by Martin Panter.
  11790. - bpo-22783: Pickling now uses the NEWOBJ opcode instead of the NEWOBJ_EX
  11791. opcode if possible.
  11792. - bpo-15513: Added a __sizeof__ implementation for pickle classes.
  11793. - bpo-19858: pickletools.optimize() now aware of the MEMOIZE opcode, can
  11794. produce more compact result and no longer produces invalid output if input
  11795. data contains MEMOIZE opcodes together with PUT or BINPUT opcodes.
  11796. - bpo-22095: Fixed HTTPConnection.set_tunnel with default port. The port
  11797. value in the host header was set to "None". Patch by Demian Brecht.
  11798. - bpo-23016: A warning no longer produces an AttributeError when the program
  11799. is run with pythonw.exe.
  11800. - bpo-21775: shutil.copytree(): fix crash when copying to VFAT. An exception
  11801. handler assumed that OSError objects always have a 'winerror' attribute.
  11802. That is not the case, so the exception handler itself raised
  11803. AttributeError when run on Linux (and, presumably, any other non-Windows
  11804. OS). Patch by Greg Ward.
  11805. - bpo-1218234: Fix inspect.getsource() to load updated source of reloaded
  11806. module. Initial patch by Berker Peksag.
  11807. - bpo-21740: Support wrapped callables in doctest. Patch by Claudiu Popa.
  11808. - bpo-23009: Make sure selectors.EpollSelecrtor.select() works when no FD is
  11809. registered.
  11810. - bpo-22959: In the constructor of http.client.HTTPSConnection, prefer the
  11811. context's check_hostname attribute over the *check_hostname* parameter.
  11812. - bpo-22696: Add function :func:`sys.is_finalizing` to know about
  11813. interpreter shutdown.
  11814. - bpo-16043: Add a default limit for the amount of data
  11815. xmlrpclib.gzip_decode will return. This resolves CVE-2013-1753.
  11816. - bpo-14099: ZipFile.open() no longer reopen the underlying file. Objects
  11817. returned by ZipFile.open() can now operate independently of the ZipFile
  11818. even if the ZipFile was created by passing in a file-like object as the
  11819. first argument to the constructor.
  11820. - bpo-22966: Fix __pycache__ pyc file name clobber when pyc_compile is asked
  11821. to compile a source file containing multiple dots in the source file name.
  11822. - bpo-21971: Update turtledemo doc and add module to the index.
  11823. - bpo-21032: Fixed socket leak if HTTPConnection.getresponse() fails.
  11824. Original patch by Martin Panter.
  11825. - bpo-22407: Deprecated the use of re.LOCALE flag with str patterns or
  11826. re.ASCII. It was newer worked.
  11827. - bpo-22902: The "ip" command is now used on Linux to determine MAC address
  11828. in uuid.getnode(). Pach by Bruno Cauet.
  11829. - bpo-22960: Add a context argument to xmlrpclib.ServerProxy constructor.
  11830. - bpo-22389: Add contextlib.redirect_stderr().
  11831. - bpo-21356: Make ssl.RAND_egd() optional to support LibreSSL. The
  11832. availability of the function is checked during the compilation. Patch
  11833. written by Bernard Spil.
  11834. - bpo-22915: SAX parser now supports files opened with file descriptor or
  11835. bytes path.
  11836. - bpo-22609: Constructors and update methods of mapping classes in the
  11837. collections module now accept the self keyword argument.
  11838. - bpo-22940: Add readline.append_history_file.
  11839. - bpo-19676: Added the "namereplace" error handler.
  11840. - bpo-22788: Add *context* parameter to logging.handlers.HTTPHandler.
  11841. - bpo-22921: Allow SSLContext to take the *hostname* parameter even if
  11842. OpenSSL doesn't support SNI.
  11843. - bpo-22894: TestCase.subTest() would cause the test suite to be stopped
  11844. when in failfast mode, even in the absence of failures.
  11845. - bpo-22796: HTTP cookie parsing is now stricter, in order to protect
  11846. against potential injection attacks.
  11847. - bpo-22370: Windows detection in pathlib is now more robust.
  11848. - bpo-22841: Reject coroutines in asyncio add_signal_handler(). Patch by
  11849. Ludovic.Gasc.
  11850. - bpo-19494: Added urllib.request.HTTPBasicPriorAuthHandler. Patch by Matej
  11851. Cepl.
  11852. - bpo-22578: Added attributes to the re.error class.
  11853. - bpo-22849: Fix possible double free in the io.TextIOWrapper constructor.
  11854. - bpo-12728: Different Unicode characters having the same uppercase but
  11855. different lowercase are now matched in case-insensitive regular
  11856. expressions.
  11857. - bpo-22821: Fixed fcntl() with integer argument on 64-bit big-endian
  11858. platforms.
  11859. - bpo-21650: Add an `--sort-keys` option to json.tool CLI.
  11860. - bpo-22824: Updated reprlib output format for sets to use set literals.
  11861. Patch contributed by Berker Peksag.
  11862. - bpo-22824: Updated reprlib output format for arrays to display empty
  11863. arrays without an unnecessary empty list. Suggested by Serhiy Storchaka.
  11864. - bpo-22406: Fixed the uu_codec codec incorrectly ported to 3.x. Based on
  11865. patch by Martin Panter.
  11866. - bpo-17293: uuid.getnode() now determines MAC address on AIX using netstat.
  11867. Based on patch by Aivars Kalvāns.
  11868. - bpo-22769: Fixed ttk.Treeview.tag_has() when called without arguments.
  11869. - bpo-22417: Verify certificates by default in httplib (PEP 476).
  11870. - bpo-22775: Fixed unpickling of http.cookies.SimpleCookie with protocol 2
  11871. and above. Patch by Tim Graham.
  11872. - bpo-22776: Brought excluded code into the scope of a try block in
  11873. SysLogHandler.emit().
  11874. - bpo-22665: Add missing get_terminal_size and SameFileError to
  11875. shutil.__all__.
  11876. - bpo-6623: Remove deprecated Netrc class in the ftplib module. Patch by
  11877. Matt Chaput.
  11878. - bpo-17381: Fixed handling of case-insensitive ranges in regular
  11879. expressions.
  11880. - bpo-22410: Module level functions in the re module now cache compiled
  11881. locale-dependent regular expressions taking into account the locale.
  11882. - bpo-22759: Query methods on pathlib.Path() (exists(), is_dir(), etc.) now
  11883. return False when the underlying stat call raises NotADirectoryError.
  11884. - bpo-8876: distutils now falls back to copying files when hard linking
  11885. doesn't work. This allows use with special filesystems such as VirtualBox
  11886. shared folders.
  11887. - bpo-22217: Implemented reprs of classes in the zipfile module.
  11888. - bpo-22457: Honour load_tests in the start_dir of discovery.
  11889. - bpo-18216: gettext now raises an error when a .mo file has an unsupported
  11890. major version number. Patch by Aaron Hill.
  11891. - bpo-13918: Provide a locale.delocalize() function which can remove
  11892. locale-specific number formatting from a string representing a number,
  11893. without then converting it to a specific type. Patch by Cédric Krier.
  11894. - bpo-22676: Make the pickling of global objects which don't have a
  11895. __module__ attribute less slow.
  11896. - bpo-18853: Fixed ResourceWarning in shlex.__nain__.
  11897. - bpo-9351: Defaults set with set_defaults on an argparse subparser are no
  11898. longer ignored when also set on the parent parser.
  11899. - bpo-7559: unittest test loading ImportErrors are reported as import errors
  11900. with their import exception rather than as attribute errors after the
  11901. import has already failed.
  11902. - bpo-19746: Make it possible to examine the errors from unittest discovery
  11903. without executing the test suite. The new `errors` attribute on TestLoader
  11904. exposes these non-fatal errors encountered during discovery.
  11905. - bpo-21991: Make email.headerregistry's header 'params' attributes be
  11906. read-only (MappingProxyType). Previously the dictionary was modifiable
  11907. but a new one was created on each access of the attribute.
  11908. - bpo-22638: SSLv3 is now disabled throughout the standard library. It can
  11909. still be enabled by instantiating a SSLContext manually.
  11910. - bpo-22641: In asyncio, the default SSL context for client connections is
  11911. now created using ssl.create_default_context(), for stronger security.
  11912. - bpo-17401: Include closefd in io.FileIO repr.
  11913. - bpo-21338: Add silent mode for compileall. quiet parameters of
  11914. compile_{dir, file, path} functions now have a multilevel value. Also, -q
  11915. option of the CLI now have a multilevel value. Patch by Thomas Kluyver.
  11916. - bpo-20152: Convert the array and cmath modules to Argument Clinic.
  11917. - bpo-18643: Add socket.socketpair() on Windows.
  11918. - bpo-22435: Fix a file descriptor leak when socketserver bind fails.
  11919. - bpo-13096: Fixed segfault in CTypes POINTER handling of large values.
  11920. - bpo-11694: Raise ConversionError in xdrlib as documented. Patch by Filip
  11921. Gruszczyński and Claudiu Popa.
  11922. - bpo-19380: Optimized parsing of regular expressions.
  11923. - bpo-1519638: Now unmatched groups are replaced with empty strings in
  11924. re.sub() and re.subn().
  11925. - bpo-18615: sndhdr.what/whathdr now return a namedtuple.
  11926. - bpo-22462: Fix pyexpat's creation of a dummy frame to make it appear in
  11927. exception tracebacks.
  11928. - bpo-21965: Add support for in-memory SSL to the ssl module. Patch by
  11929. Geert Jansen.
  11930. - bpo-21173: Fix len() on a WeakKeyDictionary when .clear() was called with
  11931. an iterator alive.
  11932. - bpo-11866: Eliminated race condition in the computation of names for new
  11933. threads.
  11934. - bpo-21905: Avoid RuntimeError in pickle.whichmodule() when sys.modules is
  11935. mutated while iterating. Patch by Olivier Grisel.
  11936. - bpo-11271: concurrent.futures.Executor.map() now takes a *chunksize*
  11937. argument to allow batching of tasks in child processes and improve
  11938. performance of ProcessPoolExecutor. Patch by Dan O'Reilly.
  11939. - bpo-21883: os.path.join() and os.path.relpath() now raise a TypeError with
  11940. more helpful error message for unsupported or mismatched types of
  11941. arguments.
  11942. - bpo-22219: The zipfile module CLI now adds entries for directories
  11943. (including empty directories) in ZIP file.
  11944. - bpo-22449: In the ssl.SSLContext.load_default_certs, consult the
  11945. environmental variables SSL_CERT_DIR and SSL_CERT_FILE on Windows.
  11946. - bpo-22508: The email.__version__ variable has been removed; the email code
  11947. is no longer shipped separately from the stdlib, and __version__ hasn't
  11948. been updated in several releases.
  11949. - bpo-20076: Added non derived UTF-8 aliases to locale aliases table.
  11950. - bpo-20079: Added locales supported in glibc 2.18 to locale alias table.
  11951. - bpo-20218: Added convenience methods read_text/write_text and read_bytes/
  11952. write_bytes to pathlib.Path objects.
  11953. - bpo-22396: On 32-bit AIX platform, don't expose os.posix_fadvise() nor
  11954. os.posix_fallocate() because their prototypes in system headers are wrong.
  11955. - bpo-22517: When an io.BufferedRWPair object is deallocated, clear its
  11956. weakrefs.
  11957. - bpo-22437: Number of capturing groups in regular expression is no longer
  11958. limited by 100.
  11959. - bpo-17442: InteractiveInterpreter now displays the full chained traceback
  11960. in its showtraceback method, to match the built in interactive
  11961. interpreter.
  11962. - bpo-23392: Added tests for marshal C API that works with FILE*.
  11963. - bpo-10510: distutils register and upload methods now use HTML standards
  11964. compliant CRLF line endings.
  11965. - bpo-9850: Fixed macpath.join() for empty first component. Patch by Oleg
  11966. Oshmyan.
  11967. - bpo-5309: distutils' build and build_ext commands now accept a ``-j``
  11968. option to enable parallel building of extension modules.
  11969. - bpo-22448: Improve canceled timer handles cleanup to prevent unbound
  11970. memory usage. Patch by Joshua Moore-Oliva.
  11971. - bpo-22427: TemporaryDirectory no longer attempts to clean up twice when
  11972. used in the with statement in generator.
  11973. - bpo-22362: Forbidden ambiguous octal escapes out of range 0-0o377 in
  11974. regular expressions.
  11975. - bpo-20912: Now directories added to ZIP file have correct Unix and MS-DOS
  11976. directory attributes.
  11977. - bpo-21866: ZipFile.close() no longer writes ZIP64 central directory
  11978. records if allowZip64 is false.
  11979. - bpo-22278: Fix urljoin problem with relative urls, a regression observed
  11980. after changes to issue22118 were submitted.
  11981. - bpo-22415: Fixed debugging output of the GROUPREF_EXISTS opcode in the re
  11982. module. Removed trailing spaces in debugging output.
  11983. - bpo-22423: Unhandled exception in thread no longer causes unhandled
  11984. AttributeError when sys.stderr is None.
  11985. - bpo-21332: Ensure that ``bufsize=1`` in subprocess.Popen() selects line
  11986. buffering, rather than block buffering. Patch by Akira Li.
  11987. - bpo-21091: Fix API bug: email.message.EmailMessage.is_attachment is now a
  11988. method.
  11989. - bpo-21079: Fix email.message.EmailMessage.is_attachment to return the
  11990. correct result when the header has parameters as well as a value.
  11991. - bpo-22247: Add NNTPError to nntplib.__all__.
  11992. - bpo-22366: urllib.request.urlopen will accept a context object
  11993. (SSLContext) as an argument which will then be used for HTTPS connection.
  11994. Patch by Alex Gaynor.
  11995. - bpo-4180: The warnings registries are now reset when the filters are
  11996. modified.
  11997. - bpo-22419: Limit the length of incoming HTTP request in wsgiref server to
  11998. 65536 bytes and send a 414 error code for higher lengths. Patch
  11999. contributed by Devin Cook.
  12000. - Lax cookie parsing in http.cookies could be a security issue when combined
  12001. with non-standard cookie handling in some Web browsers. Reported by
  12002. Sergey Bobrov.
  12003. - bpo-20537: logging methods now accept an exception instance as well as a
  12004. Boolean value or exception tuple. Thanks to Yury Selivanov for the patch.
  12005. - bpo-22384: An exception in Tkinter callback no longer crashes the program
  12006. when it is run with pythonw.exe.
  12007. - bpo-22168: Prevent turtle AttributeError with non-default Canvas on OS X.
  12008. - bpo-21147: sqlite3 now raises an exception if the request contains a null
  12009. character instead of truncating it. Based on patch by Victor Stinner.
  12010. - bpo-13968: The glob module now supports recursive search in subdirectories
  12011. using the ``**`` pattern.
  12012. - bpo-21951: Fixed a crash in Tkinter on AIX when called Tcl command with
  12013. empty string or tuple argument.
  12014. - bpo-21951: Tkinter now most likely raises MemoryError instead of crash if
  12015. the memory allocation fails.
  12016. - bpo-22338: Fix a crash in the json module on memory allocation failure.
  12017. - bpo-12410: imaplib.IMAP4 now supports the context management protocol.
  12018. Original patch by Tarek Ziadé.
  12019. - bpo-21270: We now override tuple methods in mock.call objects so that they
  12020. can be used as normal call attributes.
  12021. - bpo-16662: load_tests() is now unconditionally run when it is present in a
  12022. package's __init__.py. TestLoader.loadTestsFromModule() still accepts
  12023. use_load_tests, but it is deprecated and ignored. A new keyword-only
  12024. attribute `pattern` is added and documented. Patch given by Robert
  12025. Collins, tweaked by Barry Warsaw.
  12026. - bpo-22226: First letter no longer is stripped from the "status" key in the
  12027. result of Treeview.heading().
  12028. - bpo-19524: Fixed resource leak in the HTTP connection when an invalid
  12029. response is received. Patch by Martin Panter.
  12030. - bpo-20421: Add a .version() method to SSL sockets exposing the actual
  12031. protocol version in use.
  12032. - bpo-19546: configparser exceptions no longer expose implementation
  12033. details. Chained KeyErrors are removed, which leads to cleaner tracebacks.
  12034. Patch by Claudiu Popa.
  12035. - bpo-22051: turtledemo no longer reloads examples to re-run them.
  12036. Initialization of variables and gui setup should be done in main(), which
  12037. is called each time a demo is run, but not on import.
  12038. - bpo-21933: Turtledemo users can change the code font size with a menu
  12039. selection or control(command) '-' or '+' or control-mousewheel. Original
  12040. patch by Lita Cho.
  12041. - bpo-21597: The separator between the turtledemo text pane and the drawing
  12042. canvas can now be grabbed and dragged with a mouse. The code text pane
  12043. can be widened to easily view or copy the full width of the text. The
  12044. canvas can be widened on small screens. Original patches by Jan Kanis and
  12045. Lita Cho.
  12046. - bpo-18132: Turtledemo buttons no longer disappear when the window is
  12047. shrunk. Original patches by Jan Kanis and Lita Cho.
  12048. - bpo-22043: time.monotonic() is now always available.
  12049. ``threading.Lock.acquire()``, ``threading.RLock.acquire()`` and socket
  12050. operations now use a monotonic clock, instead of the system clock, when a
  12051. timeout is used.
  12052. - bpo-21527: Add a default number of workers to ThreadPoolExecutor equal to
  12053. 5 times the number of CPUs. Patch by Claudiu Popa.
  12054. - bpo-22216: smtplib now resets its state more completely after a quit. The
  12055. most obvious consequence of the previous behavior was a STARTTLS failure
  12056. during a connect/starttls/quit/connect/starttls sequence.
  12057. - bpo-22098: ctypes' BigEndianStructure and LittleEndianStructure now define
  12058. an empty __slots__ so that subclasses don't always get an instance dict.
  12059. Patch by Claudiu Popa.
  12060. - bpo-22185: Fix an occasional RuntimeError in threading.Condition.wait()
  12061. caused by mutation of the waiters queue without holding the lock. Patch
  12062. by Doug Zongker.
  12063. - bpo-22287: On UNIX, _PyTime_gettimeofday() now uses
  12064. clock_gettime(CLOCK_REALTIME) if available. As a side effect, Python now
  12065. depends on the librt library on Solaris and on Linux (only with glibc
  12066. older than 2.17).
  12067. - bpo-22182: Use e.args to unpack exceptions correctly in
  12068. distutils.file_util.move_file. Patch by Claudiu Popa.
  12069. - The webbrowser module now uses subprocess's start_new_session=True rather
  12070. than a potentially risky preexec_fn=os.setsid call.
  12071. - bpo-22042: signal.set_wakeup_fd(fd) now raises an exception if the file
  12072. descriptor is in blocking mode.
  12073. - bpo-16808: inspect.stack() now returns a named tuple instead of a tuple.
  12074. Patch by Daniel Shahaf.
  12075. - bpo-22236: Fixed Tkinter images copying operations in NoDefaultRoot mode.
  12076. - bpo-2527: Add a *globals* argument to timeit functions, in order to
  12077. override the globals namespace in which the timed code is executed. Patch
  12078. by Ben Roberts.
  12079. - bpo-22118: Switch urllib.parse to use RFC 3986 semantics for the
  12080. resolution of relative URLs, rather than RFCs 1808 and 2396. Patch by
  12081. Demian Brecht.
  12082. - bpo-21549: Added the "members" parameter to TarFile.list().
  12083. - bpo-19628: Allow compileall recursion depth to be specified with a -r
  12084. option.
  12085. - bpo-15696: Add a __sizeof__ implementation for mmap objects on Windows.
  12086. - bpo-22068: Avoided reference loops with Variables and Fonts in Tkinter.
  12087. - bpo-22165: SimpleHTTPRequestHandler now supports undecodable file names.
  12088. - bpo-15381: Optimized line reading in io.BytesIO.
  12089. - bpo-8797: Raise HTTPError on failed Basic Authentication immediately.
  12090. Initial patch by Sam Bull.
  12091. - bpo-20729: Restored the use of lazy iterkeys()/itervalues()/iteritems() in
  12092. the mailbox module.
  12093. - bpo-21448: Changed FeedParser feed() to avoid O(N**2) behavior when
  12094. parsing long line. Original patch by Raymond Hettinger.
  12095. - bpo-22184: The functools LRU Cache decorator factory now gives an earlier
  12096. and clearer error message when the user forgets the required parameters.
  12097. - bpo-17923: glob() patterns ending with a slash no longer match non-dirs on
  12098. AIX. Based on patch by Delhallt.
  12099. - bpo-21725: Added support for RFC 6531 (SMTPUTF8) in smtpd.
  12100. - bpo-22176: Update the ctypes module's libffi to v3.1. This release adds
  12101. support for the Linux AArch64 and POWERPC ELF ABIv2 little endian
  12102. architectures.
  12103. - bpo-5411: Added support for the "xztar" format in the shutil module.
  12104. - bpo-21121: Don't force 3rd party C extensions to be built with
  12105. -Werror=declaration-after-statement.
  12106. - bpo-21975: Fixed crash when using uninitialized sqlite3.Row (in particular
  12107. when unpickling pickled sqlite3.Row). sqlite3.Row is now initialized in
  12108. the __new__() method.
  12109. - bpo-20170: Convert posixmodule to use Argument Clinic.
  12110. - bpo-21539: Add an *exists_ok* argument to `Pathlib.mkdir()` to mimic
  12111. `mkdir -p` and `os.makedirs()` functionality. When true, ignore
  12112. FileExistsErrors. Patch by Berker Peksag.
  12113. - bpo-22127: Bypass IDNA for pure-ASCII host names in the socket module (in
  12114. particular for numeric IPs).
  12115. - bpo-21047: set the default value for the *convert_charrefs* argument of
  12116. HTMLParser to True. Patch by Berker Peksag.
  12117. - Add an __all__ to html.entities.
  12118. - bpo-15114: the strict mode and argument of HTMLParser, HTMLParser.error,
  12119. and the HTMLParserError exception have been removed.
  12120. - bpo-22085: Dropped support of Tk 8.3 in Tkinter.
  12121. - bpo-21580: Now Tkinter correctly handles bytes arguments passed to Tk. In
  12122. particular this allows initializing images from binary data.
  12123. - bpo-22003: When initialized from a bytes object, io.BytesIO() now defers
  12124. making a copy until it is mutated, improving performance and memory use on
  12125. some use cases. Patch by David Wilson.
  12126. - bpo-22018: On Windows, signal.set_wakeup_fd() now also supports sockets. A
  12127. side effect is that Python depends to the WinSock library.
  12128. - bpo-22054: Add os.get_blocking() and os.set_blocking() functions to get
  12129. and set the blocking mode of a file descriptor (False if the O_NONBLOCK
  12130. flag is set, True otherwise). These functions are not available on
  12131. Windows.
  12132. - bpo-17172: Make turtledemo start as active on OS X even when run with
  12133. subprocess. Patch by Lita Cho.
  12134. - bpo-21704: Fix build error for _multiprocessing when semaphores are not
  12135. available. Patch by Arfrever Frehtes Taifersar Arahesis.
  12136. - bpo-20173: Convert sha1, sha256, sha512 and md5 to ArgumentClinic. Patch
  12137. by Vajrasky Kok.
  12138. - Fix repr(_socket.socket) on Windows 64-bit: don't fail with OverflowError
  12139. on closed socket. repr(socket.socket) already works fine.
  12140. - bpo-22033: Reprs of most Python implemented classes now contain actual
  12141. class name instead of hardcoded one.
  12142. - bpo-21947: The dis module can now disassemble generator-iterator objects
  12143. based on their gi_code attribute. Patch by Clement Rouault.
  12144. - bpo-16133: The asynchat.async_chat.handle_read() method now ignores
  12145. BlockingIOError exceptions.
  12146. - bpo-22044: Fixed premature DECREF in call_tzinfo_method. Patch by Tom
  12147. Flanagan.
  12148. - bpo-19884: readline: Disable the meta modifier key if stdout is not a
  12149. terminal to not write the ANSI sequence ``"\033[1034h"`` into stdout. This
  12150. sequence is used on some terminal (ex: TERM=xterm-256color") to enable
  12151. support of 8 bit characters.
  12152. - bpo-4350: Removed a number of out-of-dated and non-working for a long time
  12153. Tkinter methods.
  12154. - bpo-6167: Scrollbar.activate() now returns the name of active element if
  12155. the argument is not specified. Scrollbar.set() now always accepts only 2
  12156. arguments.
  12157. - bpo-15275: Clean up and speed up the ntpath module.
  12158. - bpo-21888: plistlib's load() and loads() now work if the fmt parameter is
  12159. specified.
  12160. - bpo-22032: __qualname__ instead of __name__ is now always used to format
  12161. fully qualified class names of Python implemented classes.
  12162. - bpo-22031: Reprs now always use hexadecimal format with the "0x" prefix
  12163. when contain an id in form " at 0x...".
  12164. - bpo-22018: signal.set_wakeup_fd() now raises an OSError instead of a
  12165. ValueError on ``fstat()`` failure.
  12166. - bpo-21044: tarfile.open() now handles fileobj with an integer 'name'
  12167. attribute. Based on patch by Antoine Pietri.
  12168. - bpo-21966: Respect -q command-line option when code module is ran.
  12169. - bpo-19076: Don't pass the redundant 'file' argument to self.error().
  12170. - bpo-16382: Improve exception message of warnings.warn() for bad category.
  12171. Initial patch by Phil Elson.
  12172. - bpo-21932: os.read() now uses a :c:func:`Py_ssize_t` type instead of
  12173. :c:type:`int` for the size to support reading more than 2 GB at once. On
  12174. Windows, the size is truncated to INT_MAX. As any call to os.read(), the
  12175. OS may read less bytes than the number of requested bytes.
  12176. - bpo-21942: Fixed source file viewing in pydoc's server mode on Windows.
  12177. - bpo-11259: asynchat.async_chat().set_terminator() now raises a ValueError
  12178. if the number of received bytes is negative.
  12179. - bpo-12523: asynchat.async_chat.push() now raises a TypeError if it doesn't
  12180. get a bytes string
  12181. - bpo-21707: Add missing kwonlyargcount argument to
  12182. ModuleFinder.replace_paths_in_code().
  12183. - bpo-20639: calling Path.with_suffix('') allows removing the suffix again.
  12184. Patch by July Tikhonov.
  12185. - bpo-21714: Disallow the construction of invalid paths using
  12186. Path.with_name(). Original patch by Antony Lee.
  12187. - bpo-15014: Added 'auth' method to smtplib to make implementing auth
  12188. mechanisms simpler, and used it internally in the login method.
  12189. - bpo-21151: Fixed a segfault in the winreg module when ``None`` is passed
  12190. as a ``REG_BINARY`` value to SetValueEx. Patch by John Ehresman.
  12191. - bpo-21090: io.FileIO.readall() does not ignore I/O errors anymore. Before,
  12192. it ignored I/O errors if at least the first C call read() succeed.
  12193. - bpo-5800: headers parameter of wsgiref.headers.Headers is now optional.
  12194. Initial patch by Pablo Torres Navarrete and SilentGhost.
  12195. - bpo-21781: ssl.RAND_add() now supports strings longer than 2 GB.
  12196. - bpo-21679: Prevent extraneous fstat() calls during open(). Patch by
  12197. Bohuslav Kabrda.
  12198. - bpo-21863: cProfile now displays the module name of C extension functions,
  12199. in addition to their own name.
  12200. - bpo-11453: asyncore: emit a ResourceWarning when an unclosed file_wrapper
  12201. object is destroyed. The destructor now closes the file if needed. The
  12202. close() method can now be called twice: the second call does nothing.
  12203. - bpo-21858: Better handling of Python exceptions in the sqlite3 module.
  12204. - bpo-21476: Make sure the email.parser.BytesParser TextIOWrapper is
  12205. discarded after parsing, so the input file isn't unexpectedly closed.
  12206. - bpo-20295: imghdr now recognizes OpenEXR format images.
  12207. - bpo-21729: Used the "with" statement in the dbm.dumb module to ensure
  12208. files closing. Patch by Claudiu Popa.
  12209. - bpo-21491: socketserver: Fix a race condition in child processes reaping.
  12210. - bpo-21719: Added the ``st_file_attributes`` field to os.stat_result on
  12211. Windows.
  12212. - bpo-21832: Require named tuple inputs to be exact strings.
  12213. - bpo-21722: The distutils "upload" command now exits with a non-zero return
  12214. code when uploading fails. Patch by Martin Dengler.
  12215. - bpo-21723: asyncio.Queue: support any type of number (ex: float) for the
  12216. maximum size. Patch written by Vajrasky Kok.
  12217. - bpo-21711: support for "site-python" directories has now been removed from
  12218. the site module (it was deprecated in 3.4).
  12219. - bpo-17552: new socket.sendfile() method allowing a file to be sent over a
  12220. socket by using high-performance os.sendfile() on UNIX. Patch by Giampaolo
  12221. Rodola'.
  12222. - bpo-18039: dbm.dump.open() now always creates a new database when the flag
  12223. has the value 'n'. Patch by Claudiu Popa.
  12224. - bpo-21326: Add a new is_closed() method to asyncio.BaseEventLoop.
  12225. run_forever() and run_until_complete() methods of asyncio.BaseEventLoop
  12226. now raise an exception if the event loop was closed.
  12227. - bpo-21766: Prevent a security hole in CGIHTTPServer by URL unquoting paths
  12228. before checking for a CGI script at that path.
  12229. - bpo-21310: Fixed possible resource leak in failed open().
  12230. - bpo-21256: Printout of keyword args should be in deterministic order in a
  12231. mock function call. This will help to write better doctests.
  12232. - bpo-21677: Fixed chaining nonnormalized exceptions in io close() methods.
  12233. - bpo-11709: Fix the pydoc.help function to not fail when sys.stdin is not a
  12234. valid file.
  12235. - bpo-21515: tempfile.TemporaryFile now uses os.O_TMPFILE flag is available.
  12236. - bpo-13223: Fix pydoc.writedoc so that the HTML documentation for methods
  12237. that use 'self' in the example code is generated correctly.
  12238. - bpo-21463: In urllib.request, fix pruning of the FTP cache.
  12239. - bpo-21618: The subprocess module could fail to close open fds that were
  12240. inherited by the calling process and already higher than POSIX resource
  12241. limits would otherwise allow. On systems with a functioning /proc/self/fd
  12242. or /dev/fd interface the max is now ignored and all fds are closed.
  12243. - bpo-20383: Introduce importlib.util.module_from_spec() as the preferred
  12244. way to create a new module.
  12245. - bpo-21552: Fixed possible integer overflow of too long string lengths in
  12246. the tkinter module on 64-bit platforms.
  12247. - bpo-14315: The zipfile module now ignores extra fields in the central
  12248. directory that are too short to be parsed instead of letting a
  12249. struct.unpack error bubble up as this "bad data" appears in many real
  12250. world zip files in the wild and is ignored by other zip tools.
  12251. - bpo-13742: Added "key" and "reverse" parameters to heapq.merge(). (First
  12252. draft of patch contributed by Simon Sapin.)
  12253. - bpo-21402: tkinter.ttk now works when default root window is not set.
  12254. - bpo-3015: _tkinter.create() now creates tkapp object with wantobject=1 by
  12255. default.
  12256. - bpo-10203: sqlite3.Row now truly supports sequence protocol. In
  12257. particular it supports reverse() and negative indices. Original patch by
  12258. Claudiu Popa.
  12259. - bpo-18807: If copying (no symlinks) specified for a venv, then the python
  12260. interpreter aliases (python, python3) are now created by copying rather
  12261. than symlinking.
  12262. - bpo-20197: Added support for the WebP image type in the imghdr module.
  12263. Patch by Fabrice Aneche and Claudiu Popa.
  12264. - bpo-21513: Speedup some properties of IP addresses (IPv4Address,
  12265. IPv6Address) such as .is_private or .is_multicast.
  12266. - bpo-21137: Improve the repr for threading.Lock() and its variants by
  12267. showing the "locked" or "unlocked" status. Patch by Berker Peksag.
  12268. - bpo-21538: The plistlib module now supports loading of binary plist files
  12269. when reference or offset size is not a power of two.
  12270. - bpo-21455: Add a default backlog to socket.listen().
  12271. - bpo-21525: Most Tkinter methods which accepted tuples now accept lists
  12272. too.
  12273. - bpo-22166: With the assistance of a new internal _codecs._forget_codec
  12274. helping function, test_codecs now clears the encoding caches to avoid the
  12275. appearance of a reference leak
  12276. - bpo-22236: Tkinter tests now don't reuse default root window. New root
  12277. window is created for every test class.
  12278. - bpo-10744: Fix PEP 3118 format strings on ctypes objects with a nontrivial
  12279. shape.
  12280. - bpo-20826: Optimize ipaddress.collapse_addresses().
  12281. - bpo-21487: Optimize ipaddress.summarize_address_range() and
  12282. ipaddress.{IPv4Network,IPv6Network}.subnets().
  12283. - bpo-21486: Optimize parsing of netmasks in ipaddress.IPv4Network and
  12284. ipaddress.IPv6Network.
  12285. - bpo-13916: Disallowed the surrogatepass error handler for non UTF-\*
  12286. encodings.
  12287. - bpo-20998: Fixed re.fullmatch() of repeated single character pattern with
  12288. ignore case. Original patch by Matthew Barnett.
  12289. - bpo-21075: fileinput.FileInput now reads bytes from standard stream if
  12290. binary mode is specified. Patch by Sam Kimbrel.
  12291. - bpo-19775: Add a samefile() method to pathlib Path objects. Initial patch
  12292. by Vajrasky Kok.
  12293. - bpo-21226: Set up modules properly in PyImport_ExecCodeModuleObject (and
  12294. friends).
  12295. - bpo-21398: Fix a unicode error in the pydoc pager when the documentation
  12296. contains characters not encodable to the stdout encoding.
  12297. - bpo-16531: ipaddress.IPv4Network and ipaddress.IPv6Network now accept an
  12298. (address, netmask) tuple argument, so as to easily construct network
  12299. objects from existing addresses.
  12300. - bpo-21156: importlib.abc.InspectLoader.source_to_code() is now a
  12301. staticmethod.
  12302. - bpo-21424: Simplified and optimized heaqp.nlargest() and nmsmallest() to
  12303. make fewer tuple comparisons.
  12304. - bpo-21396: Fix TextIOWrapper(..., write_through=True) to not force a
  12305. flush() on the underlying binary stream. Patch by akira.
  12306. - bpo-18314: Unlink now removes junctions on Windows. Patch by Kim Gräsman
  12307. - bpo-21088: Bugfix for curses.window.addch() regression in 3.4.0. In
  12308. porting to Argument Clinic, the first two arguments were reversed.
  12309. - bpo-21407: _decimal: The module now supports function signatures.
  12310. - bpo-10650: Remove the non-standard 'watchexp' parameter from the
  12311. Decimal.quantize() method in the Python version. It had never been
  12312. present in the C version.
  12313. - bpo-21469: Reduced the risk of false positives in robotparser by checking
  12314. to make sure that robots.txt has been read or does not exist prior to
  12315. returning True in can_fetch().
  12316. - bpo-19414: Have the OrderedDict mark deleted links as unusable. This gives
  12317. an early failure if the link is deleted during iteration.
  12318. - bpo-21421: Add __slots__ to the MappingViews ABC. Patch by Josh Rosenberg.
  12319. - bpo-21101: Eliminate double hashing in the C speed-up code for
  12320. collections.Counter().
  12321. - bpo-21321: itertools.islice() now releases the reference to the source
  12322. iterator when the slice is exhausted. Patch by Anton Afanasyev.
  12323. - bpo-21057: TextIOWrapper now allows the underlying binary stream's read()
  12324. or read1() method to return an arbitrary bytes-like object (such as a
  12325. memoryview). Patch by Nikolaus Rath.
  12326. - bpo-20951: SSLSocket.send() now raises either SSLWantReadError or
  12327. SSLWantWriteError on a non-blocking socket if the operation would block.
  12328. Previously, it would return 0. Patch by Nikolaus Rath.
  12329. - bpo-13248: removed previously deprecated asyncore.dispatcher __getattr__
  12330. cheap inheritance hack.
  12331. - bpo-9815: assertRaises now tries to clear references to local variables in
  12332. the exception's traceback.
  12333. - bpo-19940: ssl.cert_time_to_seconds() now interprets the given time string
  12334. in the UTC timezone (as specified in RFC 5280), not the local timezone.
  12335. - bpo-13204: Calling sys.flags.__new__ would crash the interpreter, now it
  12336. raises a TypeError.
  12337. - bpo-19385: Make operations on a closed dbm.dumb database always raise the
  12338. same exception.
  12339. - bpo-21207: Detect when the os.urandom cached fd has been closed or
  12340. replaced, and open it anew.
  12341. - bpo-21291: subprocess's Popen.wait() is now thread safe so that multiple
  12342. threads may be calling wait() or poll() on a Popen instance at the same
  12343. time without losing the Popen.returncode value.
  12344. - bpo-21127: Path objects can now be instantiated from str subclass
  12345. instances (such as ``numpy.str_``).
  12346. - bpo-15002: urllib.response object to use _TemporaryFileWrapper (and
  12347. _TemporaryFileCloser) facility. Provides a better way to handle file
  12348. descriptor close. Patch contributed by Christian Theune.
  12349. - bpo-12220: mindom now raises a custom ValueError indicating it doesn't
  12350. support spaces in URIs instead of letting a 'split' ValueError bubble up.
  12351. - bpo-21068: The ssl.PROTOCOL* constants are now enum members.
  12352. - bpo-21276: posixmodule: Don't define USE_XATTRS on KFreeBSD and the Hurd.
  12353. - bpo-21262: New method assert_not_called for Mock. It raises AssertionError
  12354. if the mock has been called.
  12355. - bpo-21238: New keyword argument `unsafe` to Mock. It raises
  12356. `AttributeError` incase of an attribute startswith assert or assret.
  12357. - bpo-20896: ssl.get_server_certificate() now uses PROTOCOL_SSLv23, not
  12358. PROTOCOL_SSLv3, for maximum compatibility.
  12359. - bpo-21239: patch.stopall() didn't work deterministically when the same
  12360. name was patched more than once.
  12361. - bpo-21203: Updated fileConfig and dictConfig to remove inconsistencies.
  12362. Thanks to Jure Koren for the patch.
  12363. - bpo-21222: Passing name keyword argument to mock.create_autospec now
  12364. works.
  12365. - bpo-21197: Add lib64 -> lib symlink in venvs on 64-bit non-OS X POSIX.
  12366. - bpo-17498: Some SMTP servers disconnect after certain errors, violating
  12367. strict RFC conformance. Instead of losing the error code when we issue
  12368. the subsequent RSET, smtplib now returns the error code and defers raising
  12369. the SMTPServerDisconnected error until the next command is issued.
  12370. - bpo-17826: setting an iterable side_effect on a mock function created by
  12371. create_autospec now works. Patch by Kushal Das.
  12372. - bpo-7776: Fix ``Host:`` header and reconnection when using
  12373. http.client.HTTPConnection.set_tunnel(). Patch by Nikolaus Rath.
  12374. - bpo-20968: unittest.mock.MagicMock now supports division. Patch by
  12375. Johannes Baiter.
  12376. - bpo-21529: Fix arbitrary memory access in JSONDecoder.raw_decode with a
  12377. negative second parameter. Bug reported by Guido Vranken. (See also:
  12378. CVE-2014-4616)
  12379. - bpo-21169: getpass now handles non-ascii characters that the input stream
  12380. encoding cannot encode by re-encoding using the replace error handler.
  12381. - bpo-21171: Fixed undocumented filter API of the rot13 codec. Patch by
  12382. Berker Peksag.
  12383. - bpo-20539: Improved math.factorial error message for large positive inputs
  12384. and changed exception type (OverflowError -> ValueError) for large
  12385. negative inputs.
  12386. - bpo-21172: isinstance check relaxed from dict to collections.Mapping.
  12387. - bpo-21155: asyncio.EventLoop.create_unix_server() now raises a ValueError
  12388. if path and sock are specified at the same time.
  12389. - bpo-21136: Avoid unnecessary normalization of Fractions resulting from
  12390. power and other operations. Patch by Raymond Hettinger.
  12391. - bpo-17621: Introduce importlib.util.LazyLoader.
  12392. - bpo-21076: signal module constants were turned into enums. Patch by
  12393. Giampaolo Rodola'.
  12394. - bpo-20636: Improved the repr of Tkinter widgets.
  12395. - bpo-19505: The items, keys, and values views of OrderedDict now support
  12396. reverse iteration using reversed().
  12397. - bpo-21149: Improved thread-safety in logging cleanup during interpreter
  12398. shutdown. Thanks to Devin Jeanpierre for the patch.
  12399. - bpo-21058: Fix a leak of file descriptor in
  12400. :func:`tempfile.NamedTemporaryFile`, close the file descriptor if
  12401. :func:`io.open` fails
  12402. - bpo-21200: Return None from pkgutil.get_loader() when __spec__ is missing.
  12403. - bpo-21013: Enhance ssl.create_default_context() when used for server side
  12404. sockets to provide better security by default.
  12405. - bpo-20145: `assertRaisesRegex` and `assertWarnsRegex` now raise a
  12406. TypeError if the second argument is not a string or compiled regex.
  12407. - bpo-20633: Replace relative import by absolute import.
  12408. - bpo-20980: Stop wrapping exception when using ThreadPool.
  12409. - bpo-21082: In os.makedirs, do not set the process-wide umask. Note this
  12410. changes behavior of makedirs when exist_ok=True.
  12411. - bpo-20990: Fix issues found by pyflakes for multiprocessing.
  12412. - bpo-21015: SSL contexts will now automatically select an elliptic curve
  12413. for ECDH key exchange on OpenSSL 1.0.2 and later, and otherwise default to
  12414. "prime256v1".
  12415. - bpo-21000: Improve the command-line interface of json.tool.
  12416. - bpo-20995: Enhance default ciphers used by the ssl module to enable better
  12417. security and prioritize perfect forward secrecy.
  12418. - bpo-20884: Don't assume that __file__ is defined on importlib.__init__.
  12419. - bpo-21499: Ignore __builtins__ in several test_importlib.test_api tests.
  12420. - bpo-20627: xmlrpc.client.ServerProxy is now a context manager.
  12421. - bpo-19165: The formatter module now raises DeprecationWarning instead of
  12422. PendingDeprecationWarning.
  12423. - bpo-13936: Remove the ability of datetime.time instances to be considered
  12424. false in boolean contexts.
  12425. - bpo-18931: selectors module now supports /dev/poll on Solaris. Patch by
  12426. Giampaolo Rodola'.
  12427. - bpo-19977: When the ``LC_TYPE`` locale is the POSIX locale (``C`` locale),
  12428. :py:data:`sys.stdin` and :py:data:`sys.stdout` are now using the
  12429. ``surrogateescape`` error handler, instead of the ``strict`` error
  12430. handler.
  12431. - bpo-20574: Implement incremental decoder for cp65001 code (Windows code
  12432. page 65001, Microsoft UTF-8).
  12433. - bpo-20879: Delay the initialization of encoding and decoding tables for
  12434. base32, ascii85 and base85 codecs in the base64 module, and delay the
  12435. initialization of the unquote_to_bytes() table of the urllib.parse module,
  12436. to not waste memory if these modules are not used.
  12437. - bpo-19157: Include the broadcast address in the usuable hosts for IPv6 in
  12438. ipaddress.
  12439. - bpo-11599: When an external command (e.g. compiler) fails, distutils now
  12440. prints out the whole command line (instead of just the command name) if
  12441. the environment variable DISTUTILS_DEBUG is set.
  12442. - bpo-4931: distutils should not produce unhelpful "error: None" messages
  12443. anymore. distutils.util.grok_environment_error is kept but doc-deprecated.
  12444. - bpo-20875: Prevent possible gzip "'read' is not defined" NameError. Patch
  12445. by Claudiu Popa.
  12446. - bpo-11558: ``email.message.Message.attach`` now returns a more useful
  12447. error message if ``attach`` is called on a message for which
  12448. ``is_multipart`` is False.
  12449. - bpo-20283: RE pattern methods now accept the string keyword parameters as
  12450. documented. The pattern and source keyword parameters are left as
  12451. deprecated aliases.
  12452. - bpo-20778: Fix modulefinder to work with bytecode-only modules.
  12453. - bpo-20791: copy.copy() now doesn't make a copy when the input is a bytes
  12454. object. Initial patch by Peter Otten.
  12455. - bpo-19748: On AIX, time.mktime() now raises an OverflowError for year
  12456. outsize range [1902; 2037].
  12457. - bpo-19573: inspect.signature: Use enum for parameter kind constants.
  12458. - bpo-20726: inspect.signature: Make Signature and Parameter picklable.
  12459. - bpo-17373: Add inspect.Signature.from_callable method.
  12460. - bpo-20378: Improve repr of inspect.Signature and inspect.Parameter.
  12461. - bpo-20816: Fix inspect.getcallargs() to raise correct TypeError for
  12462. missing keyword-only arguments. Patch by Jeremiah Lowin.
  12463. - bpo-20817: Fix inspect.getcallargs() to fail correctly if more than 3
  12464. arguments are missing. Patch by Jeremiah Lowin.
  12465. - bpo-6676: Ensure a meaningful exception is raised when attempting to parse
  12466. more than one XML document per pyexpat xmlparser instance. (Original
  12467. patches by Hirokazu Yamamoto and Amaury Forgeot d'Arc, with suggested
  12468. wording by David Gutteridge)
  12469. - bpo-21117: Fix inspect.signature to better support functools.partial. Due
  12470. to the specifics of functools.partial implementation,
  12471. positional-or-keyword arguments passed as keyword arguments become
  12472. keyword-only.
  12473. - bpo-20334: inspect.Signature and inspect.Parameter are now hashable.
  12474. Thanks to Antony Lee for bug reports and suggestions.
  12475. - bpo-15916: doctest.DocTestSuite returns an empty unittest.TestSuite
  12476. instead of raising ValueError if it finds no tests
  12477. - bpo-21209: Fix asyncio.tasks.CoroWrapper to workaround a bug in yield-from
  12478. implementation in CPythons prior to 3.4.1.
  12479. - asyncio: Add gi_{frame,running,code} properties to CoroWrapper (upstream
  12480. issue #163).
  12481. - bpo-21311: Avoid exception in _osx_support with non-standard compiler
  12482. configurations. Patch by John Szakmeister.
  12483. - bpo-11571: Ensure that the turtle window becomes the topmost window when
  12484. launched on OS X.
  12485. - bpo-21801: Validate that __signature__ is None or an instance of
  12486. Signature.
  12487. - bpo-21923: Prevent AttributeError in
  12488. distutils.sysconfig.customize_compiler due to possible uninitialized
  12489. _config_vars.
  12490. - bpo-21323: Fix http.server to again handle scripts in CGI subdirectories,
  12491. broken by the fix for security issue #19435. Patch by Zach Byrne.
  12492. - bpo-22733: Fix ffi_prep_args not zero-extending argument values correctly
  12493. on 64-bit Windows.
  12494. - bpo-23302: Default to TCP_NODELAY=1 upon establishing an HTTPConnection.
  12495. Removed use of hard-coded MSS as it's an optimization that's no longer
  12496. needed with Nagle disabled.
  12497. IDLE
  12498. ----
  12499. - bpo-20577: Configuration of the max line length for the FormatParagraph
  12500. extension has been moved from the General tab of the Idle preferences
  12501. dialog to the FormatParagraph tab of the Config Extensions dialog. Patch
  12502. by Tal Einat.
  12503. - bpo-16893: Update Idle doc chapter to match current Idle and add new
  12504. information.
  12505. - bpo-3068: Add Idle extension configuration dialog to Options menu. Changes
  12506. are written to HOME/.idlerc/config-extensions.cfg. Original patch by Tal
  12507. Einat.
  12508. - bpo-16233: A module browser (File : Class Browser, Alt+C) requires an
  12509. editor window with a filename. When Class Browser is requested otherwise,
  12510. from a shell, output window, or 'Untitled' editor, Idle no longer displays
  12511. an error box. It now pops up an Open Module box (Alt+M). If a valid name
  12512. is entered and a module is opened, a corresponding browser is also opened.
  12513. - bpo-4832: Save As to type Python files automatically adds .py to the name
  12514. you enter (even if your system does not display it). Some systems
  12515. automatically add .txt when type is Text files.
  12516. - bpo-21986: Code objects are not normally pickled by the pickle module. To
  12517. match this, they are no longer pickled when running under Idle.
  12518. - bpo-17390: Adjust Editor window title; remove 'Python', move version to
  12519. end.
  12520. - bpo-14105: Idle debugger breakpoints no longer disappear when inserting or
  12521. deleting lines.
  12522. - bpo-17172: Turtledemo can now be run from Idle. Currently, the entry is on
  12523. the Help menu, but it may move to Run. Patch by Ramchandra Apt and Lita
  12524. Cho.
  12525. - bpo-21765: Add support for non-ascii identifiers to HyperParser.
  12526. - bpo-21940: Add unittest for WidgetRedirector. Initial patch by Saimadhav
  12527. Heblikar.
  12528. - bpo-18592: Add unittest for SearchDialogBase. Patch by Phil Webster.
  12529. - bpo-21694: Add unittest for ParenMatch. Patch by Saimadhav Heblikar.
  12530. - bpo-21686: add unittest for HyperParser. Original patch by Saimadhav
  12531. Heblikar.
  12532. - bpo-12387: Add missing upper(lower)case versions of default Windows key
  12533. bindings for Idle so Caps Lock does not disable them. Patch by Roger
  12534. Serwy.
  12535. - bpo-21695: Closing a Find-in-files output window while the search is still
  12536. in progress no longer closes Idle.
  12537. - bpo-18910: Add unittest for textView. Patch by Phil Webster.
  12538. - bpo-18292: Add unittest for AutoExpand. Patch by Saihadhav Heblikar.
  12539. - bpo-18409: Add unittest for AutoComplete. Patch by Phil Webster.
  12540. - bpo-21477: htest.py - Improve framework, complete set of tests. Patches by
  12541. Saimadhav Heblikar
  12542. - bpo-18104: Add idlelib/idle_test/htest.py with a few sample tests to begin
  12543. consolidating and improving human-validated tests of Idle. Change other
  12544. files as needed to work with htest. Running the module as __main__ runs
  12545. all tests.
  12546. - bpo-21139: Change default paragraph width to 72, the PEP 8 recommendation.
  12547. - bpo-21284: Paragraph reformat test passes after user changes reformat
  12548. width.
  12549. - bpo-17654: Ensure IDLE menus are customized properly on OS X for
  12550. non-framework builds and for all variants of Tk.
  12551. - bpo-23180: Rename IDLE "Windows" menu item to "Window". Patch by Al
  12552. Sweigart.
  12553. Build
  12554. -----
  12555. - bpo-15506: Use standard PKG_PROG_PKG_CONFIG autoconf macro in the
  12556. configure script.
  12557. - bpo-22935: Allow the ssl module to be compiled if openssl doesn't support
  12558. SSL 3.
  12559. - bpo-22592: Drop support of the Borland C compiler to build Python. The
  12560. distutils module still supports it to build extensions.
  12561. - bpo-22591: Drop support of MS-DOS, especially of the DJGPP compiler
  12562. (MS-DOS port of GCC).
  12563. - bpo-16537: Check whether self.extensions is empty in setup.py. Patch by
  12564. Jonathan Hosmer.
  12565. - bpo-22359: Remove incorrect uses of recursive make. Patch by Jonas
  12566. Wagner.
  12567. - bpo-21958: Define HAVE_ROUND when building with Visual Studio 2013 and
  12568. above. Patch by Zachary Turner.
  12569. - bpo-18093: the programs that embed the CPython runtime are now in a
  12570. separate "Programs" directory, rather than being kept in the Modules
  12571. directory.
  12572. - bpo-15759: "make suspicious", "make linkcheck" and "make doctest" in Doc/
  12573. now display special message when and only when there are failures.
  12574. - bpo-21141: The Windows build process no longer attempts to find Perl,
  12575. instead relying on OpenSSL source being configured and ready to build.
  12576. The ``PCbuild\build_ssl.py`` script has been re-written and re-named to
  12577. ``PCbuild\prepare_ssl.py``, and takes care of configuring OpenSSL source
  12578. for both 32 and 64 bit platforms. OpenSSL sources obtained from
  12579. svn.python.org will always be pre-configured and ready to build.
  12580. - bpo-21037: Add a build option to enable AddressSanitizer support.
  12581. - bpo-19962: The Windows build process now creates "python.bat" in the root
  12582. of the source tree, which passes all arguments through to the most
  12583. recently built interpreter.
  12584. - bpo-21285: Refactor and fix curses configure check to always search in a
  12585. ncursesw directory.
  12586. - bpo-15234: For BerkelyDB and Sqlite, only add the found library and
  12587. include directories if they aren't already being searched. This avoids an
  12588. explicit runtime library dependency.
  12589. - bpo-17861: Tools/scripts/generate_opcode_h.py automatically regenerates
  12590. Include/opcode.h from Lib/opcode.py if the latter gets any change.
  12591. - bpo-20644: OS X installer build support for documentation build changes in
  12592. 3.4.1: assume externally supplied sphinx-build is available in /usr/bin.
  12593. - bpo-20022: Eliminate use of deprecated bundlebuilder in OS X builds.
  12594. - bpo-15968: Incorporated Tcl, Tk, and Tix builds into the Windows build
  12595. solution.
  12596. - bpo-17095: Fix Modules/Setup *shared* support.
  12597. - bpo-21811: Anticipated fixes to support OS X versions > 10.9.
  12598. - bpo-21166: Prevent possible segfaults and other random failures of python
  12599. --generate-posix-vars in pybuilddir.txt build target.
  12600. - bpo-18096: Fix library order returned by python-config.
  12601. - bpo-17219: Add library build dir for Python extension cross-builds.
  12602. - bpo-22919: Windows build updated to support VC 14.0 (Visual Studio 2015),
  12603. which will be used for the official release.
  12604. - bpo-21236: Build _msi.pyd with cabinet.lib instead of fci.lib
  12605. - bpo-17128: Use private version of OpenSSL for OS X 10.5+ installer.
  12606. C API
  12607. -----
  12608. - bpo-14203: Remove obsolete support for view==NULL in PyBuffer_FillInfo(),
  12609. bytearray_getbuffer(), bytesiobuf_getbuffer() and array_buffer_getbuf().
  12610. All functions now raise BufferError in that case.
  12611. - bpo-22445: PyBuffer_IsContiguous() now implements precise contiguity
  12612. tests, compatible with NumPy's NPY_RELAXED_STRIDES_CHECKING compilation
  12613. flag. Previously the function reported false negatives for corner cases.
  12614. - bpo-22079: PyType_Ready() now checks that statically allocated type has no
  12615. dynamically allocated bases.
  12616. - bpo-22453: Removed non-documented macro PyObject_REPR().
  12617. - bpo-18395: Rename ``_Py_char2wchar()`` to :c:func:`Py_DecodeLocale`,
  12618. rename ``_Py_wchar2char()`` to :c:func:`Py_EncodeLocale`, and document
  12619. these functions.
  12620. - bpo-21233: Add new C functions: PyMem_RawCalloc(), PyMem_Calloc(),
  12621. PyObject_Calloc(), _PyObject_GC_Calloc(). bytes(int) is now using
  12622. ``calloc()`` instead of ``malloc()`` for large objects which is faster and
  12623. use less memory.
  12624. - bpo-20942: PyImport_ImportFrozenModuleObject() no longer sets __file__ to
  12625. match what importlib does; this affects _frozen_importlib as well as any
  12626. module loaded using imp.init_frozen().
  12627. Documentation
  12628. -------------
  12629. - bpo-19548: Update the codecs module documentation to better cover the
  12630. distinction between text encodings and other codecs, together with other
  12631. clarifications. Patch by Martin Panter.
  12632. - bpo-22394: Doc/Makefile now supports ``make venv PYTHON=../python`` to
  12633. create a venv for generating the documentation, e.g., ``make html
  12634. PYTHON=venv/bin/python3``.
  12635. - bpo-21514: The documentation of the json module now refers to new JSON RFC
  12636. 7159 instead of obsoleted RFC 4627.
  12637. - bpo-21777: The binary sequence methods on bytes and bytearray are now
  12638. documented explicitly, rather than assuming users will be able to derive
  12639. the expected behaviour from the behaviour of the corresponding str
  12640. methods.
  12641. - bpo-6916: undocument deprecated asynchat.fifo class.
  12642. - bpo-17386: Expanded functionality of the ``Doc/make.bat`` script to make
  12643. it much more comparable to ``Doc/Makefile``.
  12644. - bpo-21312: Update the thread_foobar.h template file to include newer
  12645. threading APIs. Patch by Jack McCracken.
  12646. - bpo-21043: Remove the recommendation for specific CA organizations and to
  12647. mention the ability to load the OS certificates.
  12648. - bpo-20765: Add missing documentation for PurePath.with_name() and
  12649. PurePath.with_suffix().
  12650. - bpo-19407: New package installation and distribution guides based on the
  12651. Python Packaging Authority tools. Existing guides have been retained as
  12652. legacy links from the distutils docs, as they still contain some required
  12653. reference material for tool developers that isn't recorded anywhere else.
  12654. - bpo-19697: Document cases where __main__.__spec__ is None.
  12655. Tests
  12656. -----
  12657. - bpo-18982: Add tests for CLI of the calendar module.
  12658. - bpo-19548: Added some additional checks to test_codecs to ensure that
  12659. statements in the updated documentation remain accurate. Patch by Martin
  12660. Panter.
  12661. - bpo-22838: All test_re tests now work with unittest test discovery.
  12662. - bpo-22173: Update lib2to3 tests to use unittest test discovery.
  12663. - bpo-16000: Convert test_curses to use unittest.
  12664. - bpo-21456: Skip two tests in test_urllib2net.py if _ssl module not
  12665. present. Patch by Remi Pointel.
  12666. - bpo-20746: Fix test_pdb to run in refleak mode (-R). Patch by Xavier de
  12667. Gaye.
  12668. - bpo-22060: test_ctypes has been somewhat cleaned up and simplified; it now
  12669. uses unittest test discovery to find its tests.
  12670. - bpo-22104: regrtest.py no longer holds a reference to the suite of tests
  12671. loaded from test modules that don't define test_main().
  12672. - bpo-22111: Assorted cleanups in test_imaplib. Patch by Milan Oberkirch.
  12673. - bpo-22002: Added ``load_package_tests`` function to test.support and used
  12674. it to implement/augment test discovery in test_asyncio, test_email,
  12675. test_importlib, test_json, and test_tools.
  12676. - bpo-21976: Fix test_ssl to accept LibreSSL version strings. Thanks to
  12677. William Orr.
  12678. - bpo-21918: Converted test_tools from a module to a package containing
  12679. separate test files for each tested script.
  12680. - bpo-9554: Use modern unittest features in test_argparse. Initial patch by
  12681. Denver Coneybeare and Radu Voicilas.
  12682. - bpo-20155: Changed HTTP method names in failing tests in test_httpservers
  12683. so that packet filtering software (specifically Windows Base Filtering
  12684. Engine) does not interfere with the transaction semantics expected by the
  12685. tests.
  12686. - bpo-19493: Refactored the ctypes test package to skip tests explicitly
  12687. rather than silently.
  12688. - bpo-18492: All resources are now allowed when tests are not run by
  12689. regrtest.py.
  12690. - bpo-21634: Fix pystone micro-benchmark: use floor division instead of true
  12691. division to benchmark integers instead of floating point numbers. Set
  12692. pystone version to 1.2. Patch written by Lennart Regebro.
  12693. - bpo-21605: Added tests for Tkinter images.
  12694. - bpo-21493: Added test for ntpath.expanduser(). Original patch by Claudiu
  12695. Popa.
  12696. - bpo-19925: Added tests for the spwd module. Original patch by Vajrasky
  12697. Kok.
  12698. - bpo-21522: Added Tkinter tests for Listbox.itemconfigure(),
  12699. PanedWindow.paneconfigure(), and Menu.entryconfigure().
  12700. - bpo-17756: Fix test_code test when run from the installed location.
  12701. - bpo-17752: Fix distutils tests when run from the installed location.
  12702. - bpo-18604: Consolidated checks for GUI availability. All platforms now at
  12703. least check whether Tk can be instantiated when the GUI resource is
  12704. requested.
  12705. - bpo-21275: Fix a socket test on KFreeBSD.
  12706. - bpo-21223: Pass test_site/test_startup_imports when some of the extensions
  12707. are built as builtins.
  12708. - bpo-20635: Added tests for Tk geometry managers.
  12709. - Add test case for freeze.
  12710. - bpo-20743: Fix a reference leak in test_tcl.
  12711. - bpo-21097: Move test_namespace_pkgs into test_importlib.
  12712. - bpo-21503: Use test_both() consistently in test_importlib.
  12713. - bpo-20939: Avoid various network test failures due to new redirect of
  12714. http://www.python.org/ to https://www.python.org: use
  12715. http://www.example.com instead.
  12716. - bpo-20668: asyncio tests no longer rely on tests.txt file. (Patch by
  12717. Vajrasky Kok)
  12718. - bpo-21093: Prevent failures of ctypes test_macholib on OS X if a copy of
  12719. libz exists in $HOME/lib or /usr/local/lib.
  12720. - bpo-22770: Prevent some Tk segfaults on OS X when running gui tests.
  12721. - bpo-23211: Workaround test_logging failure on some OS X 10.6 systems.
  12722. - bpo-23345: Prevent test_ssl failures with large OpenSSL patch level values
  12723. (like 0.9.8zc).
  12724. Tools/Demos
  12725. -----------
  12726. - bpo-22314: pydoc now works when the LINES environment variable is set.
  12727. - bpo-22615: Argument Clinic now supports the "type" argument for the int
  12728. converter. This permits using the int converter with enums and typedefs.
  12729. - bpo-20076: The makelocalealias.py script no longer ignores UTF-8 mapping.
  12730. - bpo-20079: The makelocalealias.py script now can parse the SUPPORTED file
  12731. from glibc sources and supports command line options for source paths.
  12732. - bpo-22201: Command-line interface of the zipfile module now correctly
  12733. extracts ZIP files with directory entries. Patch by Ryan Wilson.
  12734. - bpo-22120: For functions using an unsigned integer return converter,
  12735. Argument Clinic now generates a cast to that type for the comparison to -1
  12736. in the generated code. (This suppresses a compilation warning.)
  12737. - bpo-18974: Tools/scripts/diff.py now uses argparse instead of optparse.
  12738. - bpo-21906: Make Tools/scripts/md5sum.py work in Python 3. Patch by Zachary
  12739. Ware.
  12740. - bpo-21629: Fix Argument Clinic's "--converters" feature.
  12741. - Add support for ``yield from`` to 2to3.
  12742. - Add support for the PEP 465 matrix multiplication operator to 2to3.
  12743. - bpo-16047: Fix module exception list and __file__ handling in freeze.
  12744. Patch by Meador Inge.
  12745. - bpo-11824: Consider ABI tags in freeze. Patch by Meador Inge.
  12746. - bpo-20535: PYTHONWARNING no longer affects the run_tests.py script. Patch
  12747. by Arfrever Frehtes Taifersar Arahesis.
  12748. Windows
  12749. -------
  12750. - bpo-23260: Update Windows installer
  12751. - The bundled version of Tcl/Tk has been updated to 8.6.3. The most visible
  12752. result of this change is the addition of new native file dialogs when
  12753. running on Windows Vista or newer. See Tcl/Tk's TIP 432 for more
  12754. information. Also, this version of Tcl/Tk includes support for Windows
  12755. 10.
  12756. - bpo-17896: The Windows build scripts now expect external library sources
  12757. to be in ``PCbuild\..\externals`` rather than ``PCbuild\..\..``.
  12758. - bpo-17717: The Windows build scripts now use a copy of NASM pulled from
  12759. svn.python.org to build OpenSSL.
  12760. - bpo-21907: Improved the batch scripts provided for building Python.
  12761. - bpo-22644: The bundled version of OpenSSL has been updated to 1.0.1j.
  12762. - bpo-10747: Use versioned labels in the Windows start menu. Patch by Olive
  12763. Kilburn.
  12764. - bpo-22980: .pyd files with a version and platform tag (for example,
  12765. ".cp35-win32.pyd") will now be loaded in preference to those without tags.
  12766. **(For information about older versions, consult the HISTORY file.)**