[issue31741] backports import path can not be overridden in Windows (Linux works fine)

2017-10-11 Thread Chris Caron
Chris Caron added the comment: -- Download Instructions * 64 Bit ver of Python v2.7 for Windows https://www.python.org/ftp/python/2.7/python-2.7.amd64.msi * Microsoft Visual C++ Compiler for Python 2.7: https://www.microsoft.com/en-ca/download/details.aspx?id=44266. -- Installation Instructi

[issue31757] Tutorial: Fibonacci numbers start with 1, 1

2017-10-11 Thread Steven D'Aprano
Change by Steven D'Aprano : -- nosy: +steven.daprano ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue31767] Windows Installer fails with error 0x80091007 when trying to install debugging symbols

2017-10-11 Thread Ned Deily
Change by Ned Deily : -- components: +Windows -Installation nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

[issue31558] gc.freeze() - an API to mark objects as uncollectable

2017-10-11 Thread INADA Naoki
INADA Naoki added the comment: As Instagram's report, disabling cycler GC really helps even if there is refcont. All application have some cold data: imported but never used modules, functions. -- ___ Python tracker

[issue31558] gc.freeze() - an API to mark objects as uncollectable

2017-10-11 Thread INADA Naoki
INADA Naoki added the comment: >> This is only useful if the parent process has a lot of memory that's never >> used by the child processes right? Otherwise, you would lose via refcounting >> COWs. > > What we saw in prod is that memory fragmentation caused by gc is the main > reason of share

[issue31741] backports import path can not be overridden in Windows (Linux works fine)

2017-10-11 Thread Chris Caron
Chris Caron added the comment: Just to point out, i forgot the instructions of installing pip (right before) the following entry in my last post: >> ** Heads up >> So at this point, the C:\Python27\Lib\site-packages will contain the >>> >> following: pip, setuptools, and wheel. To be thoroug

[issue31558] gc.freeze() - an API to mark objects as uncollectable

2017-10-11 Thread INADA Naoki
INADA Naoki added the comment: Should gc.freeze() do gc.collect() right before freezing? Or should we document `gc.collect(); gc.freeze();` idiom? I don't like `gc.freeze(collect=False)`. So if there is at least one use case of `gc.freeze()` without `gc.collect()`, I'm +1 on former (current pu

[issue2506] Add mechanism to disable optimizations

2017-10-11 Thread Alex Gaynor
Alex Gaynor added the comment: If anyone has needed a workaround in the past 9 years and hasn't yet found one: https://github.com/pyca/cryptography/pull/3968/commits/3b585f803891e750d0ca5861b5a29e16b779bc16 -- nosy: +alex ___ Python tracker

[issue31567] Inconsistent documentation around decorators

2017-10-11 Thread Daisuke Miyakawa
Change by Daisuke Miyakawa : -- keywords: +patch pull_requests: +3935 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue31558] gc.freeze() - an API to mark objects as uncollectable

2017-10-11 Thread Zekun Li
Zekun Li added the comment: So what we did is: We keep gc **disabled** on parent process and freeze after warmup, enable gc on child process. The reason not to do a full collection is mentioned in previous comments/original ticket - (I called it) memory fragmentation. The observation is - W

[issue31759] re wont recover nor fail on runaway regular expression

2017-10-11 Thread Tim Peters
Tim Peters added the comment: Sure! The OP was obviously asking about the engine that ships with Python, so that's what I talked about. Raphaƫl, Matthew develops an excellent replacement ("regex") for Python's re module, which you can install via, e.g., "pip install regex" (or, on Windows,

[issue31756] subprocess.run should alias universal_newlines to text

2017-10-11 Thread Nick Coghlan
Nick Coghlan added the comment: As far as docs phrasing goes, it probably makes sense to frame it as "text" being the preferred argument name in 3.7+, with "universal_newlines" retained indefinitely as a compatibility preserving alias. After all, if that wasn't our intention, we wouldn't be a

[issue14369] make __closure__ writable

2017-10-11 Thread Nick Coghlan
Nick Coghlan added the comment: Thinking about the interaction between this idea and https://bugs.python.org/issue30744 made me realise that there's a subtlety here that would probably need to be spelled out more clearly in the docs for __closure__ than it is for __code__: any changes made to

[issue31769] configure includes user CFLAGS testing detecting pthreads support

2017-10-11 Thread Mike Gilbert
New submission from Mike Gilbert : When testing for ptheads support in the compiler, configure includes the CFLAGS value from the environment. If CFLAGS contains -pthread, or an option which implies -pthread (like -fopenmp), this will cause configure to not include -pthread in the CC variable

[issue31769] configure includes user CFLAGS testing detecting pthreads support

2017-10-11 Thread Mike Gilbert
Change by Mike Gilbert : Added file: https://bugs.python.org/file47215/configure.log ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue31769] configure includes user CFLAGS testing detecting pthreads support

2017-10-11 Thread Mike Gilbert
Change by Mike Gilbert : Added file: https://bugs.python.org/file47216/build.log ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue31769] configure includes user CFLAGS testing detecting pthreads support

2017-10-11 Thread Mike Gilbert
Mike Gilbert added the comment: To resolve this, I suggest clearing CFLAGS/CXXFLAGS before performing the ptheads check, and restoring them afterward. -- ___ Python tracker __

[issue31768] argparse drops '|'s when the arguments are too long

2017-10-11 Thread Louie Lu
Louie Lu added the comment: the format of usage is do at argparse.py:296. So how do we format this kind of situation, to be like this, if the group also too long? usage: test.py [-h] [-v | -q | -x [X] | -y [Y] | Z | Z | Z | Z | Z | Z | Z | Z] Also, anothe

[issue31769] configure includes user CFLAGS testing detecting pthreads support

2017-10-11 Thread Arfrever Frehtes Taifersar Arahesis
Change by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue31769] configure includes user CFLAGS testing detecting pthreads support

2017-10-11 Thread Arfrever Frehtes Taifersar Arahesis
Change by Arfrever Frehtes Taifersar Arahesis : -- assignee: -> twouters nosy: +twouters ___ Python tracker ___ ___ Python-bugs-list

[issue31558] gc.freeze() - an API to mark objects as uncollectable

2017-10-11 Thread INADA Naoki
INADA Naoki added the comment: > So my understand is that gc frees some objects and makes some memory pages > becomes available to allocate in child process. Allocation on the shared > memory pages will cause the copy-on-write even without gc. > > Though this behavior may have better name? OK

[issue31769] configure includes user CFLAGS when detecting pthreads support

2017-10-11 Thread Mike Gilbert
Change by Mike Gilbert : -- title: configure includes user CFLAGS testing detecting pthreads support -> configure includes user CFLAGS when detecting pthreads support ___ Python tracker __

[issue13802] IDLE Prefernces/Fonts: use multiple alphabets in examples

2017-10-11 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +3937 stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mai

[issue31741] backports import path can not be overridden in Windows (Linux works fine)

2017-10-11 Thread Zachary Ware
Zachary Ware added the comment: Note that your instructions start with downloading the installer for 2.7.0, whereas the latest version of 2.7 is 2.7.14, which includes pip. backports is a strange beast of a package, which tries to emulate Python 3's namespace packages in Python 2. To do so,

[issue13802] IDLE font settings: use multiple character sets in examples

2017-10-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: I decided to do the needed rearrangement of frames in this issue, leaving revision of widgets other than the sample to #24776. PR3960 initially puts the following in the sample box. I believe it should cover most Python users. AaBbCcDdEeFfGgHhIiJj 12345678

[issue30767] logging must check exc_info correctly

2017-10-11 Thread Berker Peksag
Change by Berker Peksag : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue30404] Make stdout and stderr truly unbuffered when using -u option

2017-10-11 Thread Berker Peksag
Change by Berker Peksag : -- pull_requests: +3939 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue28647] python --help: -u is misdocumented as binary mode

2017-10-11 Thread Berker Peksag
Change by Berker Peksag : -- pull_requests: +3938 stage: resolved -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing

[issue28647] python --help: -u is misdocumented as binary mode

2017-10-11 Thread Berker Peksag
Berker Peksag added the comment: Good catch, I thought it was already fixed in master after bpo-30404. I've opened PR 3961. -- ___ Python tracker ___ _

[issue28647] python --help: -u is misdocumented as binary mode

2017-10-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Don't forget to update Misc/python.man. -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue30767] logging must check exc_info correctly

2017-10-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 3792 breaks existing tests, and it seems to me, that it solves different issue, than reported here. -- nosy: +serhiy.storchaka ___ Python tracker __

<    1   2