[issue34969] Add --fast, --best to the gzip CLI

2018-10-12 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- keywords: +patch pull_requests: +9207 stage: -> patch review ___ Python tracker ___ ___

[issue34969] Add --fast, --best to the gzip CLI

2018-10-12 Thread Stéphane Wirtel
New submission from Stéphane Wirtel : the gzip module has a CLI but this one does not allow to specify the compression method (slow, fast) -- assignee: matrixise messages: 327626 nosy: matrixise priority: normal severity: normal status: open title: Add --fast, --best to the gzip CLI

[issue34095] [2.7] test_idle fails with: /usr/bin/xvfb-run: line 181: 3617 Segmentation fault

2018-10-12 Thread Chih-Hsuan Yen
Chih-Hsuan Yen added the comment: Sorry, after reading the original issue carefully, I realize that my issue is slightly different. In my case running test_idle only crashes, and it crashes before the first test in test_idle, not in test_writelines. I copied the Arch Linux packaging script

[issue34576] [EASY doc] http.server, SimpleHTTPServer: warn users on security

2018-10-12 Thread Ned Deily
Change by Ned Deily : -- priority: normal -> deferred blocker ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34909] StrEnum subclasses cannot be created

2018-10-12 Thread Ned Deily
Ned Deily added the comment: Can you please merge a NEWS item for this issue using blurb since it is a user-visible problem? I'll cherry-pick it into the 3.7.1 final. -- priority: release blocker -> deferred blocker stage: resolved -> commit review status: closed -> open

Re: ESR "Waning of Python" post

2018-10-12 Thread Gregory Ewing
Paul Rubin wrote: I even wonder what happens if you turn Py_INCREF etc. into no-ops, install the Boehm garbage collector in a stop-the-world mode, and disable the GIL. I suspect you would run into problems with things that need mutual exclusion but don't do any locking of their own, because

[issue34521] Multiple tests (test_socket, test_multiprocessing_*) fail due to incorrect recvmsg(2) buffer lengths, causing failures on FreeBSD CURRENT

2018-10-12 Thread Ned Deily
Ned Deily added the comment: Shouldn't there be a NEWS entry for this change since the change seems to be to Lib/multiprocessing and not just its tests? -- nosy: +ned.deily ___ Python tracker

[issue34783] [3.7] segmentation-fault/core dump when try to run non-existing file specified on commandline

2018-10-12 Thread Ned Deily
Ned Deily added the comment: New changeset 5d8ef8bc3f7307cd15f9d82ad4846e82b498ae88 by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-34783: Disable test_nonexisting_script for macOS framework builds (GH-9831) (GH-9832)

[issue34783] [3.7] segmentation-fault/core dump when try to run non-existing file specified on commandline

2018-10-12 Thread Ned Deily
Ned Deily added the comment: Re-opening. The new test_cmd_line_script fails on macOS framework builds because the test case assumes that the file name in sys.executable will appear in the error message. For macOS framework builds, sys.executable is the file name of the stub launcher and

[issue34783] [3.7] segmentation-fault/core dump when try to run non-existing file specified on commandline

2018-10-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +9206 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34783] [3.7] segmentation-fault/core dump when try to run non-existing file specified on commandline

2018-10-12 Thread Ned Deily
Ned Deily added the comment: New changeset f6c29a65e2a6da5c0014c868cf963c975b74e72b by Ned Deily in branch 'master': bpo-34783: Disable test_nonexisting_script for macOS framework builds (GH-9831) https://github.com/python/cpython/commit/f6c29a65e2a6da5c0014c868cf963c975b74e72b --

[issue34922] hashlib segmentation fault

2018-10-12 Thread shuoz
shuoz added the comment: oh brother, maybe this worth open a cve. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34783] [3.7] segmentation-fault/core dump when try to run non-existing file specified on commandline

2018-10-12 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +9205 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34920] PYTHONWARNINGS entries are escaped

2018-10-12 Thread Martin Panter
Change by Martin Panter : -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue34968] loop.call_soon_threadsafe should be documented to be re-entrant-safe too

2018-10-12 Thread Nathaniel Smith
New submission from Nathaniel Smith : Asyncio needs a way to schedule work from other threads; and it also needs a way to scheduler work from code that can run at arbitrary times in the same thread, such as signal handlers or object finalizers ("reentrant contexts"). Currently

[issue23554] EchoServerClientProtocol class should be called EchoServerProtocol

2018-10-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: Cool! Thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Quickest way to concatenate strings

2018-10-12 Thread Alan Bawden
"Frank Millman" writes: > I have often read that the quickest way to concatenate a number of strings > is to place them in a list and 'join' them - > > C:\Users\User>python -m timeit -s "x='a'*500; y='b'*500; z='c'*500" > ''.join([x, y, z]) ... > > I seem to have found a quicker method,

[issue23554] EchoServerClientProtocol class should be called EchoServerProtocol

2018-10-12 Thread Cheryl Sabella
Cheryl Sabella added the comment: Thanks @asvetlov. I'm going to mark this as an Easy Documentation issue, good for a first-time contributor. -- keywords: +easy stage: -> needs patch type: -> enhancement ___ Python tracker

[issue11233] clarifying Availability: Unix

2018-10-12 Thread Cheryl Sabella
Change by Cheryl Sabella : -- pull_requests: +9204 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23554] EchoServerClientProtocol class should be called EchoServerProtocol

2018-10-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: Agree, EchoServer is the better name -- nosy: +asvetlov ___ Python tracker ___ ___

[issue23554] EchoServerClientProtocol class should be called EchoServerProtocol

2018-10-12 Thread Cheryl Sabella
Cheryl Sabella added the comment: Here's a link to the example that the original OP is referring to: https://docs.python.org/3/library/asyncio-protocol.html?highlight=echoserverclientprotocol#tcp-echo-server Since this doc page was recently rewritten, I'm not sure if this should be

[issue32052] Provide access to buffer of asyncio.StreamReader

2018-10-12 Thread Yury Selivanov
Yury Selivanov added the comment: So we have BufferedProtocol in 3.7; now we need to re-implement asyncio streams on top of it. But even after doing that I'm not that sure we want to expose the low-level buffer. -- stage: needs patch -> ___

[issue32052] Provide access to buffer of asyncio.StreamReader

2018-10-12 Thread Cheryl Sabella
Change by Cheryl Sabella : -- dependencies: +Add asyncio.BufferedProtocol stage: -> needs patch versions: +Python 3.8 -Python 3.7 ___ Python tracker ___

Re: ESR "Waning of Python" post

2018-10-12 Thread Neil Cerutti
On 2018-10-12, Peter J. Holzer wrote: > Neil Cerutti said: >> I imagine that if I stuck with Go long enough I'd develop a >> new coding style that didn't inolve creating useful data >> types. > > I haven't used Go for any real project yet (that may change > next year - we'll see whether I love it

[issue34961] Global scoping when shadowing local names in class definitions

2018-10-12 Thread multun
multun added the comment: Closing, this is documented, and as such most likely intended. "A class definition is an executable statement that may use and define names. These references follow the normal rules for name resolution with an exception that unbound local variables are looked up in

Re: ESR "Waning of Python" post

2018-10-12 Thread Chris Angelico
On Sat, Oct 13, 2018 at 7:25 AM Vito De Tullio wrote: > > Chris Angelico wrote: > > >> Reference counting was likely a bad idea to begin with. > > > > Then prove CPython wrong by making a fantastically better > > implementation that uses some other form of garbage collection. > > I'm not talking

Re: ESR "Waning of Python" post

2018-10-12 Thread Vito De Tullio
Chris Angelico wrote: >> Reference counting was likely a bad idea to begin with. > > Then prove CPython wrong by making a fantastically better > implementation that uses some other form of garbage collection. I'm not talking about the "goodness" of the implemetations, but AFAIK jython and

[issue34963] String representation for types created with typing.NewType(…) are opaque and unappealing

2018-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are disadvantages of using a callable class. First, creating a class is 10-100 times slower than creating a function. Second, calling it is slower than calling a function. sys._getframe() is already used in the typing module (and also in collections

[issue34963] String representation for types created with typing.NewType(…) are opaque and unappealing

2018-10-12 Thread Alexander Böhn
Alexander Böhn added the comment: The proposed solution in the PR replaces the identity-function return value of `NewType(…)` with a callable class instance that adds an explicit `__repr__` function – which that function cobbles together the string representations of the supplied type and

[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2018-10-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +9203 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: ESR "Waning of Python" post

2018-10-12 Thread Tim Daneliuk
On 10/12/2018 11:43 AM, Skip Montanaro wrote: > I sort of skimmed ESR's post, and sort of skimmed this thread, so > obviously I'm totally qualified to offer my observations on the post > and follow ups. :-) Skip - In the 15-ish years I've been reading this group, this has NEVER been an obstacle

Re: ESR "Waning of Python" post

2018-10-12 Thread Tim Daneliuk
On 10/11/2018 12:15 AM, Gregory Ewing wrote: > Paul Rubin wrote [concerning GIL removal]: >> It's weird that Python's designers were willing to mess up the user >> language in the 2-to-3 transition but felt that the C API had to be kept >> sarcosanct.  Huge opportunities were blown at multiple

Re: how to replace line on particular line in file[no need to write it back whole file again]

2018-10-12 Thread Peter J. Holzer
On 2018-10-11 09:01:55 -0400, Dennis Lee Bieber wrote: > On Thu, 11 Oct 2018 15:14:49 +0530, Iranna Mathapati > declaimed the following: > >How to replace particular line text with new text on a file > >i have below code but its writing whole code. > > > For C-style streams (which seem to

Re: how to replace line on particular line in file[no need to write it back whole file again]

2018-10-12 Thread Peter J. Holzer
On 2018-10-11 13:57:57 +0200, Thomas Jollans wrote: > There's no easy way to write to the middle of a file (though I think it > can be done by mmap'ing a file) #!/usr/bin/python3 import os with open("foo.bin", "wb") as f: f.write(b'abcdefghijklmnopqrstuvwxyz') with open("foo.bin", "rb") as

[issue34966] Pydoc: better support of method aliases

2018-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The original function is present too. | tkraise(self, aboveThis=None) | Raise this widget in the stacking order. -- ___ Python tracker

Re: Overwhelmed by the Simplicity of Python. Any Recommendation?

2018-10-12 Thread Terry Reedy
On 10/12/2018 1:06 PM, Chris Angelico wrote: There are many many different ways to write code, and you can approach your coding challenges from all sorts of directions. My recommendation is: Pseudo-code first, then implement in actual Python. https://en.wikipedia.org/wiki/Pseudocode Note how,

Re: ESR "Waning of Python" post

2018-10-12 Thread Peter J. Holzer
On 2018-10-11 17:56:43 +, Neil Cerutti wrote: > On 2018-10-10, Paul Rubin wrote: > > Neil Cerutti writes: > >> > >>> the GIL (15/16th of his CPUs are unused..) > >> Channels are a big selling point of Go, no argument there. > > > > The unused CPUs are not about channels (Python has Queue

RE: Single DB connection during class's lifetime. Metaclass,singleton and __new__() examples and references.

2018-10-12 Thread Ryan Johnson
Thanks for the clarification. If I am creating a class variable, are you suggesting I perform the “if it exists, great, otherwise make it” logic in the __init__ block or in the class definition block? Will that even run in a class definition? I never see examples do anything besides assignment

[issue34966] Pydoc: better support of method aliases

2018-10-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: What do you mean by 'does not work'. Alias of function in same namespace. | itemconfig = itemconfigure(self, index, cnf=None, **kw) | | itemconfigure(self, index, cnf=None, **kw) | Configure resources of an ITEM. Alias of function in inherited

Re: Overwhelmed by the Simplicity of Python. Any Recommendation?

2018-10-12 Thread Neil Cerutti
On 2018-10-12, Kaan Taze wrote: > How do I get used to this? Is this just another "practice, > practice, practice" situation? Anything you can recommend? You will become comfortable with Python with time and practice. Be patient with yourself. I don't care for my early Python code, but it still

[issue34961] Global scoping when shadowing local names in class definitions

2018-10-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Questions about whether basic syntax behavior is correct should be asked elsewhere, such as python-list. A proper answer requires a careful reading of the doc and a non-trivial answer. Someone on python-list should do that. Classes and scoping are known

[issue33381] Incorrect documentation for strftime()/strptime() format code %f

2018-10-12 Thread Fred L. Drake, Jr.
Change by Fred L. Drake, Jr. : -- nosy: +fdrake ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34967] Sphinx is deprecating add_description_unit

2018-10-12 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- keywords: +patch pull_requests: +9202 stage: -> patch review ___ Python tracker ___ ___

[issue34922] hashlib segmentation fault

2018-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Since it is tagged as a release blocker, I think that only Ned can close it. Personally I don't think that this issue is a security issue. digest() and hexdigest() argument usually is a constant. It is unlikely that the crash can be triggered by user

Re: Overwhelmed by the Simplicity of Python. Any Recommendation?

2018-10-12 Thread Spencer Graves
On 2018-10-12 11:44, Rhodri James wrote: On 12/10/18 17:12, Rob Gaddi wrote: On 10/11/2018 11:29 PM, Kaan Taze wrote: Hi everyone, Since this is my first post to mail-list I'm kind of hesitant to ask this question here but as many of you spend years working with Python maybe some of you

[issue34924] inspect.signature isn't aware that types.MethodType can wrap any callable

2018-10-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: What do you consider to be a bug? The empty signature is correct, as your successful call shows, and the IDLE calltip is, correctly, '()'. I also do not see how name completion is affected. -- nosy: +terry.reedy

[issue34922] hashlib segmentation fault

2018-10-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Should this be closed as fixed? -- nosy: +terry.reedy ___ Python tracker ___ ___

[issue34919] Crash caused by certain characters in a string

2018-10-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: The report is based on a crash running the otree plugin (proper term?) for the Django framework. For a bug to be our responsibility, it must be present in the cpython repository, and should be reproducible without installing 3rd party modules. For

[issue17535] IDLE: Add an option to show line numbers along the left side of the editor window, and have it enabled by default.

2018-10-12 Thread Big Stone
Big Stone added the comment: Dear Mike Thompson, I think your most reasonnable option this year is to use the IDLEX fork, that works on Python-3.6/3.7 now: pip install IDLEX python idlex.pyw # or python [directory of python.exe]\scripts\idlex.pyw --

[issue23892] Introduce sys.implementation.opt_levels

2018-10-12 Thread Cheryl Sabella
Cheryl Sabella added the comment: Brett, I know you're away this month, so please ignore this, Eric, I hope the changes I made reflect your original intent in the code review for #23731. This is my first change to the C code, so I hope it's close. The tests passed, so it must be correct.

[issue23892] Introduce sys.implementation.opt_levels

2018-10-12 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +patch pull_requests: +9201 stage: test needed -> patch review ___ Python tracker ___ ___

Re: Overwhelmed by the Simplicity of Python. Any Recommendation?

2018-10-12 Thread Chris Angelico
On Sat, Oct 13, 2018 at 3:07 AM Kaan Taze wrote: > > Hi everyone, > > Since this is my first post to mail-list I'm kind of hesitant to ask this > question here but as many of you spend years working with Python maybe some > of you can guide me. Hey there, welcome! :) > I do what I need to do

[issue34967] Sphinx is deprecating add_description_unit

2018-10-12 Thread Julien Palard
New submission from Julien Palard : When running `make -C Doc/ autobuild-dev-html` with a recent Sphinx, I'm getting: /.../site-packages/sphinx/application.py:927: RemovedInSphinx20Warning: app.add_description_unit() is now deprecated. Use app.add_object_type() instead. Looks easy to

[issue34918] Python 3 tkinter measurement problem

2018-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a Tk issue. Tkinter returns the same result as a plain Tk (unsurprisingly). $ rlwrap wish % winfo screenmmwidth . 1016 % winfo screenwidth . 3840 % puts [expr "25.4*[winfo screenwidth .]/[winfo screenmmwidth .]"] 96.0 -- resolution: ->

[issue34918] Python 3 tkinter measurement problem

2018-10-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: I cannot reproduce 'too large'. My screen in 340 mm high. It is reported as 305 in console Python 3.7.1rc1 and in IDLE run normally and with -n (no subprocess) and in console Python 3.6.7. The point of trying '-n' is to run the test code in the IDLE

Re: Overwhelmed by the Simplicity of Python. Any Recommendation?

2018-10-12 Thread Rhodri James
On 12/10/18 17:12, Rob Gaddi wrote: On 10/11/2018 11:29 PM, Kaan Taze wrote: Hi everyone, Since this is my first post to mail-list I'm kind of hesitant to ask this question here but as many of you spend years working with Python maybe some of you can guide me. What I trouble with is not a

[issue12782] Multiple context expressions do not support parentheses for continuation across lines

2018-10-12 Thread Anthony Sottile
Change by Anthony Sottile : -- nosy: +Anthony Sottile ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23831] tkinter canvas lacks of moveto method.

2018-10-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue23831] tkinter canvas lacks of moveto method.

2018-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset bf034715db9d6e1603ea432d40041e5577ed3332 by Serhiy Storchaka (Juliette Monsel) in branch 'master': bpo-23831: Add moveto method to the tkinter.Canvas widget. (GH-9768)

Re: ESR "Waning of Python" post

2018-10-12 Thread Skip Montanaro
I sort of skimmed ESR's post, and sort of skimmed this thread, so obviously I'm totally qualified to offer my observations on the post and follow ups. :-) Eric makes a mistake, in my opinion, confusing his particular application with the mainstream, when in fact it seems pretty specialized to me.

[issue34963] String representation for types created with typing.NewType(…) are opaque and unappealing

2018-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You can determine the module of the caller by using sys._getframe(). -- ___ Python tracker ___

[issue34963] String representation for types created with typing.NewType(…) are opaque and unappealing

2018-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: For repr you need to set __qualname__, not just __name__. It may be worth to set also __module__ for pickleability and better help. -- nosy: +serhiy.storchaka ___ Python tracker

[issue34948] Document __warningregistry__

2018-10-12 Thread Éric Araujo
Change by Éric Araujo : -- title: Document __warningregister__ -> Document __warningregistry__ ___ Python tracker ___ ___

[issue34912] Update overflow checks in resize_buffer

2018-10-12 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: -Python 3.4, Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list

Re: Overwhelmed by the Simplicity of Python. Any Recommendation?

2018-10-12 Thread Rob Gaddi
On 10/11/2018 11:29 PM, Kaan Taze wrote: Hi everyone, Since this is my first post to mail-list I'm kind of hesitant to ask this question here but as many of you spend years working with Python maybe some of you can guide me. What I trouble with is not a logical error that exist on a program I

Overwhelmed by the Simplicity of Python. Any Recommendation?

2018-10-12 Thread Kaan Taze
Hi everyone, Since this is my first post to mail-list I'm kind of hesitant to ask this question here but as many of you spend years working with Python maybe some of you can guide me. What I trouble with is not a logical error that exist on a program I wrote. It's the Python itself. Well, I'm 22

[issue34964] Make Tkinter sources more readable by adding blank lines

2018-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset dc0d571b6401527f236b0513f29847e2b9b8a188 by Serhiy Storchaka in branch 'master': bpo-34964: Make Tkinter sources more readable by adding blank lines. (GH-9822) https://github.com/python/cpython/commit/dc0d571b6401527f236b0513f29847e2b9b8a188

[issue34964] Make Tkinter sources more readable by adding blank lines

2018-10-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34966] Pydoc: better support of method aliases

2018-10-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +9200 stage: -> patch review ___ Python tracker ___ ___

[issue34966] Pydoc: better support of method aliases

2018-10-12 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Pydoc supports aliases. If the alias is defined in the same class class A: def foo(self, x=42): pass bar = foo it will render the docstring only for the original function. For the alias it will output just "bar = foo(self, x=42)".

[issue29341] Missing accepting path-like object in docstrings of os module functions

2018-10-12 Thread Mayank Asthana
Change by Mayank Asthana : -- nosy: +masthana ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11233] clarifying Availability: Unix

2018-10-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset 2d6097d027e0dd3debbabc702aa9c98d94ba32a3 by Victor Stinner (Cheryl Sabella) in branch 'master': bpo-11233: Create availability directive for documentation (GH-9692)

[issue34965] Python on Docker container using flask is going down after sometime

2018-10-12 Thread Srikanth
Srikanth added the comment: @Windson Yang The container is neither crashing nor responding for requests. Is there a way I can pull any dumps or tracelog, so I can gather and give it to you -- ___ Python tracker

[issue34965] Python on Docker container using flask is going down after sometime

2018-10-12 Thread Windson Yang
Windson Yang added the comment: Hello, Srikanth, We can't fix/find the bug by the info you give, Would you mind provide the traceback log after crashing? -- nosy: +Windson Yang ___ Python tracker

[issue23794] http package should support HTTP/2

2018-10-12 Thread Mayank Asthana
Change by Mayank Asthana : -- nosy: +masthana ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34965] Python on Docker container using flask is going down after sometime

2018-10-12 Thread Srikanth
Srikanth added the comment: @anton.barkovsky Thank you so much for quick response. I am not pretty sure, but below are the findings so far. The same docker container is used by 30+ applications. All applications are working fine until last week and all of a sudden all apps are going down

[issue34961] Global scoping when shadowing local names in class definitions

2018-10-12 Thread Antoine Pietri
Antoine Pietri added the comment: Tracking down the issue a bit further: a = 10 def main(): a = 42 class wtf(): print(a) class wtf2(): print(a) a = 2 main() prints: 42 10 It seems that when there is an

[issue34965] Python on Docker container using flask is going down after sometime

2018-10-12 Thread Anton Barkovsky
Anton Barkovsky added the comment: Do you have any evidence to believe that this is caused by a bug in CPython itself or its stdlib? If not, it's probably an issue with your code, libraries, or environment, and so out of scope in this tracker. -- nosy: +anton.barkovsky

[issue34965] Python on Docker container using flask is going down after sometime

2018-10-12 Thread Srikanth
New submission from Srikanth : We are have created Python 3.5 image on docker container. All applications which are running on non-flask are working fine, but applications which are running on flask 0.12.2 are failing after prolonged usage of the application (Approx after 12 hours). Note: We

[issue34964] Make Tkinter sources more readable by adding blank lines

2018-10-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +9199 stage: -> patch review ___ Python tracker ___ ___

[issue34964] Make Tkinter sources more readable by adding blank lines

2018-10-12 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Tkinter sources are old and don't conform PEP 8. Usually we don't reformat existing sources for avoiding problems with backporting and breaking the history of lines. But I think that we can make some refinements in Tkinter sources. The tkinter module

[issue20304] Argument Clinic: char convertor should use default values of type bytes

2018-10-12 Thread Tal Einat
Tal Einat added the comment: This was fixed in PR GH-8039. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34203] documentation: recommend Python 3 over 2 in faq

2018-10-12 Thread Tal Einat
Change by Tal Einat : -- pull_requests: +9198 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34203] documentation: recommend Python 3 over 2 in faq

2018-10-12 Thread miss-islington
miss-islington added the comment: New changeset 6198976ec807cf3b658e902fd63db88a3ac99b8c by Miss Islington (bot) in branch '2.7': bpo-34203: FAQ now recommends python 3.x over 2.x (GH-9796) https://github.com/python/cpython/commit/6198976ec807cf3b658e902fd63db88a3ac99b8c --

[issue34203] documentation: recommend Python 3 over 2 in faq

2018-10-12 Thread miss-islington
miss-islington added the comment: New changeset 86cfac47cf736fae90a617959288ccade18fd07e by Miss Islington (bot) in branch '3.6': bpo-34203: FAQ now recommends python 3.x over 2.x (GH-9796) https://github.com/python/cpython/commit/86cfac47cf736fae90a617959288ccade18fd07e --

Re: How to run/debug a script file its name has characters such as space, (, etc.

2018-10-12 Thread Chris Angelico
On Fri, Oct 12, 2018 at 9:16 PM wrote: > > Chris Angelico於 2018年10月12日星期五 UTC+8下午4時39分37秒寫道: > > On Fri, Oct 12, 2018 at 6:26 PM wrote: > > > > > > I saw a directory where all its filenames are something like this: > > > ... > > > 1a PSG (Entry and PopUp).py > > > 1b PSG (Format).py > > > 1c PSG

[issue34203] documentation: recommend Python 3 over 2 in faq

2018-10-12 Thread miss-islington
miss-islington added the comment: New changeset d4ed8809ddfaa23fe5edf2987c03afc32f5576c0 by Miss Islington (bot) in branch '3.7': bpo-34203: FAQ now recommends python 3.x over 2.x (GH-9796) https://github.com/python/cpython/commit/d4ed8809ddfaa23fe5edf2987c03afc32f5576c0 -- nosy:

[issue34961] Global scoping when shadowing local names in class definitions

2018-10-12 Thread Anton Barkovsky
Change by Anton Barkovsky : -- nosy: +anton.barkovsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34900] unittest subTests() fails when called from debug()

2018-10-12 Thread Berker Peksag
Change by Berker Peksag : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue23794] http package should support HTTP/2

2018-10-12 Thread Anton Barkovsky
Change by Anton Barkovsky : -- nosy: +anton.barkovsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34900] unittest subTests() fails when called from debug()

2018-10-12 Thread Berker Peksag
Berker Peksag added the comment: New changeset c1fe49c01f3850aaa32a7d75e47f90eb5c5f7efe by Berker Peksag (Miss Islington (bot)) in branch '3.6': bpo-34900: Make TestCase.debug() work with subtests (GH-9707) https://github.com/python/cpython/commit/c1fe49c01f3850aaa32a7d75e47f90eb5c5f7efe

[issue34900] unittest subTests() fails when called from debug()

2018-10-12 Thread Berker Peksag
Berker Peksag added the comment: New changeset 7a98e302c37781f9c6448a28bc70bff18b7e2862 by Berker Peksag (Miss Islington (bot)) in branch '3.7': bpo-34900: Make TestCase.debug() work with subtests (GH-9707) https://github.com/python/cpython/commit/7a98e302c37781f9c6448a28bc70bff18b7e2862

[issue27261] io.BytesIO.truncate does not work as advertised

2018-10-12 Thread Anton Barkovsky
Anton Barkovsky added the comment: I'm willing to try to fix this behavior. I just want to check that this would not be considered breaking backwards compatibility. I can imagine in theory some code relying on it, but I would say that it would be relying on a bug. If some code is passed

[issue34900] unittest subTests() fails when called from debug()

2018-10-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +9197 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34900] unittest subTests() fails when called from debug()

2018-10-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +9196 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34900] unittest subTests() fails when called from debug()

2018-10-12 Thread Berker Peksag
Berker Peksag added the comment: New changeset da2bf9f66d0c95b988c5d87646d168f65499b316 by Berker Peksag (Bruno Oliveira) in branch 'master': bpo-34900: Make TestCase.debug() work with subtests (GH-9707) https://github.com/python/cpython/commit/da2bf9f66d0c95b988c5d87646d168f65499b316

Re: Quickest way to concatenate strings

2018-10-12 Thread Frank Millman
"Dennis Lee Bieber" wrote in message news:cnk0sdl5a7p17framc5er811p1230mp...@4ax.com... On Fri, 12 Oct 2018 07:55:58 +0200, "Frank Millman" declaimed the following: >I have often read that the quickest way to concatenate a number of >strings >is to place them in a list and 'join' them - >

[issue34963] String representation for types created with typing.NewType(…) are opaque and unappealing

2018-10-12 Thread Alexander Böhn
Change by Alexander Böhn : -- nosy: +levkivskyi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Observations on the List - "Be More Kind"

2018-10-12 Thread Dan Purgert
Chris Angelico wrote: > On Fri, Oct 12, 2018 at 5:07 AM Ian Kelly wrote: >> >> On Thu, Oct 11, 2018 at 9:28 AM Dan Purgert wrote: >> > >> > Larry Martell wrote: >> > > On Fri, Oct 5, 2018 at 6:54 AM Bruce Coram >> > > wrote: >> > > [...] >> > > We don't like you. We don't want you here. We

Re: How to run/debug a script file its name has characters such as space, (, etc.

2018-10-12 Thread jfong
Chris Angelico於 2018年10月12日星期五 UTC+8下午4時39分37秒寫道: > On Fri, Oct 12, 2018 at 6:26 PM wrote: > > > > I saw a directory where all its filenames are something like this: > > ... > > 1a PSG (Entry and PopUp).py > > 1b PSG (Format).py > > 1c PSG (persistent form and bind key).py > > ... > > > > Just

  1   2   >