[issue13044] pdb throws AttributeError at end of debugging session

2018-05-08 Thread Xavier de Gaye
Xavier de Gaye added the comment: Nosying Serhiy as this post attempts to answer one of the questions raised in msg315588 in issue 33328: > Is it good that the debugger is enabled at the shutdown stage? This post has four different sections showing that the successive and

Re: Suggestion for a "data" object syntax

2018-05-08 Thread Mikhail V
On Tue, May 8, 2018 at 5:25 PM, Chris Angelico wrote: > On Tue, May 8, 2018 at 10:52 PM, Mikhail V wrote: >> Right? Your issues with tabs aside, I think it is impossible to ignore the >> the readability improvement. Not even speaking of how >> many commas

[issue30167] site.main() does not work on Python 3.6 and superior if PYTHONSTARTUP is set

2018-05-08 Thread steverweber
steverweber added the comment: ref to other projects that hit this issue. https://gitlab.idiap.ch/bob/bob.buildout/issues/15 https://github.com/saltstack/salt/issues/45080 https://groups.google.com/forum/#!msg/comp.lang.python/tpfiHAJhl9Y/hZj1f50vBQAJ -- nosy:

Re: Suggestion for a "data" object syntax

2018-05-08 Thread Mikhail V
On Tue, May 8, 2018 at 6:20 PM, Steven D'Aprano wrote: > On Tue, 08 May 2018 15:52:12 +0300, Mikhail V wrote: > >>> Last time you brought up this idea, you were told that it is ambiguous. >>> Using whitespace alone, it is impossible to distinguish between >>>

[issue32717] Document PEP 560

2018-05-08 Thread miss-islington
miss-islington added the comment: New changeset 101d0d585f99a3b8c8d070b9d4dea15fa3daff62 by Miss Islington (bot) in branch '3.7': bpo-32717: Document PEP 560 (GH-6726) https://github.com/python/cpython/commit/101d0d585f99a3b8c8d070b9d4dea15fa3daff62

[issue27465] IDLE:Make help source menu entries unique and sorted.

2018-05-08 Thread Cheryl Sabella
Cheryl Sabella added the comment: > Currently, names are displayed in the order added. I believe sorting would > be better, especially when one adds more than 2 entries. That should also be > easy. I'm wondering if it would be worthwhile to add Drag and Drop

[issue13044] pdb throws AttributeError at end of debugging session

2018-05-08 Thread Xavier de Gaye
Change by Xavier de Gaye : Added file: https://bugs.python.org/file47579/gdb_backtrace.txt ___ Python tracker ___

[issue32717] Document PEP 560

2018-05-08 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

Re: Suggestion for a "data" object syntax

2018-05-08 Thread Mikhail V
On Wed, May 9, 2018 at 12:33 AM, Chris Angelico wrote: > On Wed, May 9, 2018 at 7:15 AM, Mikhail V wrote: >> On Tue, May 8, 2018 at 5:25 PM, Chris Angelico wrote: >>> On Tue, May 8, 2018 at 10:52 PM, Mikhail V

Re: Suggestion for a "data" object syntax

2018-05-08 Thread Chris Angelico
On Wed, May 9, 2018 at 7:15 AM, Mikhail V wrote: > On Tue, May 8, 2018 at 5:25 PM, Chris Angelico wrote: >> On Tue, May 8, 2018 at 10:52 PM, Mikhail V wrote: >>> Right? Your issues with tabs aside, I think it is impossible to ignore

Re: Suggestion for a "data" object syntax

2018-05-08 Thread Mark Lawrence
On 08/05/18 22:33, Chris Angelico wrote: On Wed, May 9, 2018 at 7:15 AM, Mikhail V wrote: On Tue, May 8, 2018 at 5:25 PM, Chris Angelico wrote: On Tue, May 8, 2018 at 10:52 PM, Mikhail V wrote: Right? Your issues with tabs

[issue33446] destructors of local variables are not traced

2018-05-08 Thread Xavier de Gaye
Change by Xavier de Gaye : -- keywords: +patch pull_requests: +6422 stage: -> patch review ___ Python tracker ___

[issue33446] destructors of local variables are not traced

2018-05-08 Thread Xavier de Gaye
Xavier de Gaye added the comment: In both cases the destructor cannot be traced because it is invoked from functions called from [1] call_trace() where tracing is disabled: Case local variable 'a': On line 12, just before executing this line with a pdb step command,

[issue16653] reference kept in f_locals prevents the tracing/profiling of a destructor

2018-05-08 Thread Xavier de Gaye
Xavier de Gaye added the comment: Closing as a duplicate of issue 33446 which has a wider scope and a PR. -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker

[issue13044] pdb throws AttributeError at end of debugging session

2018-05-08 Thread Xavier de Gaye
Change by Xavier de Gaye : Added file: https://bugs.python.org/file47578/lazy_import.diff ___ Python tracker ___

Re: Suggestion for a "data" object syntax

2018-05-08 Thread Chris Angelico
On Wed, May 9, 2018 at 6:16 AM, Mikhail V wrote: > Also I don't know what kind of human thinks that this: > a + b > is two elements "a" and "+ b" > What is "+ b"? Unary plus applied to whatever value 'b' is. > And who writes "- b" with a space in unary minus? > I don't.

[issue33446] destructors of local variables are not traced

2018-05-08 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue28556] typing.py upgrades

2018-05-08 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- pull_requests: +6423 ___ Python tracker ___ ___

[issue33414] Make shutil.copytree use os.scandir to take advantage of cached is_(dir|file|symlink)

2018-05-08 Thread Andrés Delfino
Andrés Delfino added the comment: I believe you are right about being conservative with changing working code, specially when there's no proof about performance being improved. I think its best to close this ticket. I'd do it myself, but I know what resolution applies

[issue16733] Solaris ctypes_test failures

2018-05-08 Thread Greg Onufer
Greg Onufer added the comment: The bitfields failures are due to Python not implementing bitfields the same as the compiler. https://docs.oracle.com/cd/E77782_01/html/E77792/gqexw.html "Signed and Unsigned int Bit-fields Bit-fields which are declared as int (not signed

[issue33420] [typing] __origin__ invariant broken

2018-05-08 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: This is now fixed on master by https://github.com/python/cpython/commit/43d12a6bd82bd09ac189069fe1eb40cdbc10a58c (the comment is updated). -- resolution: -> fixed stage: -> resolved status: open -> closed

[issue28556] typing.py upgrades

2018-05-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +6424 ___ Python tracker ___

Re: seeking deeper (language theory) reason behind Python design choice

2018-05-08 Thread Python
On Tue, May 08, 2018 at 12:45:29AM +, Steven D'Aprano wrote: > Currently, the real reason is that lambda expressions are limited to a > single expression as the body of the function, and binding operations in > Python are statements. ...which begs the question, why shouldn't assignments be

Re: Problem/bug with class definition inside function definition

2018-05-08 Thread Gregory Ewing
Python 3.5.1 (default, Jun 1 2016, 13:15:26) [GCC 4.2.1 (Apple Inc. build 5664)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> def f(a): ... class D: ... pass ... D.a = a ... return D ... >>> c = f(42) >>> c .D'> >>> c.a 42 -- Greg --

Re: Suggestion for a "data" object syntax

2018-05-08 Thread Ben Finney
Mikhail V writes: > On Wed, May 9, 2018 at 12:33 AM, Chris Angelico wrote: > > On Wed, May 9, 2018 at 7:15 AM, Mikhail V wrote: > >> Just admit it, you try to troll me (or just pretend, I don't know). > > > > No, I am not trolling

[issue28556] typing.py upgrades

2018-05-08 Thread miss-islington
miss-islington added the comment: New changeset 3c28a6387b48bad3fcae47906bc166d02a2f8ed2 by Miss Islington (bot) in branch '3.7': bpo-28556: Minor fixes for typing module (GH-6732)

[issue33445] test_cprofile should fail instead of displaying a message

2018-05-08 Thread miss-islington
miss-islington added the comment: New changeset c925108b991b9c5f0402feb0e7f725ee3ac7da11 by Miss Islington (bot) in branch '3.6': closes bpo-33445: fail properly in test_cprofile() (GH-6727)

Re: Problem/bug with class definition inside function definition

2018-05-08 Thread Gregory Ewing
Alexey Muranov wrote: x = 42 class C: x = x # Works I'd say it kind of works by accident, and is not really an intended feature. if Python does not allow to refer "simultaneously" to variables from different scopes if they have the same name. It seems perfectly reasonable to

[issue23607] Inconsistency in datetime.utcfromtimestamp(Decimal)

2018-05-08 Thread Shlomo Anglister
Change by Shlomo Anglister : -- nosy: +anglister ___ Python tracker ___ ___

Re: Suggestion for a "data" object syntax

2018-05-08 Thread Mikhail V
On Wed, May 9, 2018 at 3:14 AM, Ben Finney wrote: > Mikhail V writes: > >> On Wed, May 9, 2018 at 12:33 AM, Chris Angelico wrote: >> > On Wed, May 9, 2018 at 7:15 AM, Mikhail V wrote: >> >> Just admit it,

[issue33447] Asynchronous lambda syntax

2018-05-08 Thread Noah Simon
Noah Simon added the comment: Actually, you wouldn't even need to import asyncio. -- ___ Python tracker ___

[issue33445] test_cprofile should fail instead of displaying a message

2018-05-08 Thread miss-islington
miss-islington added the comment: New changeset 263523ae217e1af580628b4fe0609194823a51aa by Miss Islington (bot) in branch '3.7': closes bpo-33445: fail properly in test_cprofile() (GH-6727)

[issue33296] datetime.datetime.utcfromtimestamp call decimal causes precision loss

2018-05-08 Thread Shlomo Anglister
Shlomo Anglister added the comment: This issue is in review stage for a long time. What's holding it? On Wed, May 9, 2018 at 8:24 AM, Shlomo Anglister wrote: > > Shlomo Anglister added the comment: > > Thanks

[issue27675] IDLE file completion has 2 bugs depending on open quote used

2018-05-08 Thread Cheryl Sabella
Cheryl Sabella added the comment: I can't seem to recreate this. I tried on Ubuntu with master and Windows with 3.6.3. I'm not sure if it's been fixed by another change or if I'm not doing the steps correctly to recreate it. -- nosy: +csabella

[issue28556] typing.py upgrades

2018-05-08 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: New changeset 43d12a6bd82bd09ac189069fe1eb40cdbc10a58c by Ivan Levkivskyi in branch 'master': bpo-28556: Minor fixes for typing module (GH-6732) https://github.com/python/cpython/commit/43d12a6bd82bd09ac189069fe1eb40cdbc10a58c

[issue33445] test_cprofile should fail instead of displaying a message

2018-05-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +6426 ___ Python tracker ___

[issue33445] test_cprofile should fail instead of displaying a message

2018-05-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +6425 ___ Python tracker ___

[issue33445] test_cprofile should fail instead of displaying a message

2018-05-08 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset ac9240b9be31d073d1b2e50ce53481ff0fc9ed23 by Benjamin Peterson (jdemeyer) in branch 'master': closes bpo-33445: fail properly in test_cprofile() (GH-6727)

[issue33296] datetime.datetime.utcfromtimestamp call decimal causes precision loss

2018-05-08 Thread Shlomo Anglister
Shlomo Anglister added the comment: Thanks @serhiy.storchaka and @corona10 ! I read it, documented the relation and failed to see the duplication. -- ___ Python tracker

Re: seeking deeper (language theory) reason behind Python design choice

2018-05-08 Thread Steven D'Aprano
On Tue, 08 May 2018 22:48:52 -0500, Python wrote: > On Tue, May 08, 2018 at 12:45:29AM +, Steven D'Aprano wrote: >> Currently, the real reason is that lambda expressions are limited to a >> single expression as the body of the function, and binding operations >> in Python are statements. > >

[issue33447] Asynchronous lambda syntax

2018-05-08 Thread Noah Simon
New submission from Noah Simon : It would be very useful to add an asynchronous lambda syntax, as a shortcut for coroutines. I'm not experienced enough to write a PEP or edit the C source, but I have some ideas for syntax: import asyncio foo = async lambda a,b: 5 + await

Re: Suggestion for a "data" object syntax

2018-05-08 Thread Steven D'Aprano
On Tue, 08 May 2018 23:16:23 +0300, Mikhail V wrote: > I don't propose to remove spaces, And that is why the syntax will be ambiguous. So long as whitespace is *allowed* but not *required* around operators, there will be ambiguity between a - b and a - b with no way to tell whether they are

Re: seeking deeper (language theory) reason behind Python design choice

2018-05-08 Thread Chris Angelico
On Wed, May 9, 2018 at 1:48 PM, Python wrote: >> since = in a statement on its own is not dangerous. People *almost never* >> intend to write == for the side-effects only: > > Seriously? I do this--not every day, but more than occasionally, not > just in Python. > >

Re: seeking deeper (language theory) reason behind Python design choice

2018-05-08 Thread Ian Kelly
On Tue, May 8, 2018 at 9:48 PM, Python wrote: > On Tue, May 08, 2018 at 12:45:29AM +, Steven D'Aprano wrote: >> since = in a statement on its own is not dangerous. People *almost never* >> intend to write == for the side-effects only: > > Seriously? I do this--not

Re: seeking deeper (language theory) reason behind Python design choice

2018-05-08 Thread Chris Angelico
On Wed, May 9, 2018 at 3:36 PM, Ian Kelly wrote: > > while True: > if we_are_done(): > break > # do some stuff > ... > if error_occurred(): > break > notify_user() > > > Fixed, using idiomatic Python and without needing to use assignment in >

Re: itemgetter with default arguments

2018-05-08 Thread Antoon Pardon
On 07-05-18 17:45, Peter Otten wrote: > Antoon Pardon wrote: > >> On 05-05-18 09:33, Peter Otten wrote: >>> I think you have established that there is no straight-forward way to >>> write this as a lambda. But is adding a default to itemgetter the right >>> conclusion? >>> >>> If there were an

[issue20104] expose posix_spawn(p)

2018-05-08 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +6418 ___ Python tracker ___ ___

Re: Problem/bug with class definition inside function definition

2018-05-08 Thread Alexey Muranov
Sorry, i was confused. I would say that this mostly works as expected, though the difference between x = 42 class C: x = x # Works and def f2(a): class D: a = a # Does not work < return D is still surprising to me. Otherwise, probably the

Re: Module, Package

2018-05-08 Thread Steven D'Aprano
On Mon, 07 May 2018 09:53:45 -0700, Sharan Basappa wrote: > I am a bit confused between module and package in Python. Does a module > contain package or vice versa? When we import something in Python, do we > import a module or a package? The term "module" in Python has multiple meanings: - a

[issue33413] asyncio.gather should not use special Future

2018-05-08 Thread twisteroid ambassador
twisteroid ambassador added the comment: I would like to comment on the last observation about current_task().cancel(). I also ran into this corner case recently. When a task is cancelled from outside, by virtue of there *being something outside doing the

[issue33096] ttk.Treeview.insert() does not allow to insert item with "False" iid

2018-05-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 903f189b6e528cbe9500014c6f990c6511b38918 by Serhiy Storchaka in branch '2.7': bpo-33096: Removed unintentionally backported from Python 3 Tkinter files. (GH-6724)

[issue20104] expose posix_spawn(p)

2018-05-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I propose the following changes to the file_actions parameter in PR 6725. Currently it is the fourth positional-only parameter with the default value None. 1. Change its default value to an empty tuple. None will no longer be

[issue33437] Defining __init__ in enums

2018-05-08 Thread Andres Ayala
Andres Ayala added the comment: I see, with mixed types you need to use __new__ to construct the elements (I imagine is specially important for non mutable types) I have modified the example of the coordinates to try to use a mixed type. Is not the most useful thing, but

Re: Suggestion for a "data" object syntax

2018-05-08 Thread Steven D'Aprano
On Tue, 08 May 2018 06:45:05 +0300, Mikhail V wrote: > *Example 3. Two-dimensional tuple.* > > data === T/T : > 123"hello" > ab c + de f > > is a synonym for: > > data = ( > (1, 2, 3, "hello") , > (a, b, c + d, e, f ) ) Last time you brought up this

Re: Suggestion for a "data" object syntax

2018-05-08 Thread Mikhail V
On Tue, May 8, 2018 at 10:15 AM, Steven D'Aprano wrote: > On Tue, 08 May 2018 06:45:05 +0300, Mikhail V wrote: > >> *Example 3. Two-dimensional tuple.* >> >> data === T/T : >> 123"hello" >> ab c + de f >> >> is a synonym

[issue32717] Document PEP 560

2018-05-08 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- keywords: +patch pull_requests: +6419 stage: needs patch -> patch review ___ Python tracker ___

EuroPython 2018: Call for Proposals (CFP) is open

2018-05-08 Thread M.-A. Lemburg
We’re looking for proposals on every aspect of Python: programming from novice to advanced levels, applications and frameworks, or how you have been involved in introducing Python into your organization. EuroPython is a community conference and we are eager to hear about your experience.

[issue33444] Memory leak/high usage on copy in different thread

2018-05-08 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +bquinlan, pitrou ___ Python tracker ___

[issue33399] site.abs_paths should handle None __cached__ type

2018-05-08 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +brett.cannon, eric.snow, ncoghlan type: -> behavior versions: +Python 3.7, Python 3.8 ___ Python tracker

ANN: pyftpdlib 1.5.4 released

2018-05-08 Thread Giampaolo Rodola'
Hello all, I'm glad to announce the release of pyftpdlib 1.5.4: https://github.com/giampaolo/pyftpdlib About = Python FTP server library provides a high-level portable interface to easily write very efficient, scalable and asynchronous FTP servers with Python. What's new ==

ANN: gcc-python-plugin 0.16

2018-05-08 Thread David Malcolm
gcc-python-plugin is a plugin for GCC 4.6 onwards which embeds the CPython interpreter within GCC, allowing you to write new compiler warnings in Python, generate code visualizations, etc. This releases adds support for gcc 7 and gcc 8 (along with continued support for gcc 4.6, 4.7, 4.8, 4.9, 5

[issue33365] http/client.py does not print correct headers in debug

2018-05-08 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +barry, r.david.murray versions: -Python 3.4, Python 3.5 ___ Python tracker ___

[issue33144] random._randbelow optimization

2018-05-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset ec1622d56c80d15740f7f8459c9a79fd55f5d3c7 by Serhiy Storchaka in branch 'master': bpo-33144: Fix choosing random.Random._randbelow implementation. (GH-6563)

[issue33144] random._randbelow optimization

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

Re: Problem/bug with class definition inside function definition

2018-05-08 Thread Ned Batchelder
On 5/8/18 3:55 AM, Alexey Muranov wrote: Sorry, i was confused.  I would say that this mostly works as expected, though the difference between    x = 42    class C:    x = x  # Works and    def f2(a):    class D:    a = a  # Does not work <    return D is still

[issue33419] Add functools.partialclass

2018-05-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'm -1 on this change. It looks as an uncommon case, and the correct general implementation is hard (it may be even more hard that it looked to me now). The stdlib should't provide an incomplete implementation which can be

[issue33444] Memory leak/high usage on copy in different thread

2018-05-08 Thread MultiSosnooley
New submission from MultiSosnooley : On linux (ubuntu 16.04, 18.04 tested) with python 3.6.5, 3.5.5 and 3.7-dev (windows is not affected) there is ~850Mb of memory used by python process at sleep point. Replacing `submit` `result` with plain function call causes

Nikola v7.8.15 and v8.0.0b1 are out!

2018-05-08 Thread Chris Warrick
On behalf of the Nikola team, I am pleased to announce the immediate availability of Nikola v7.8.15 and v8.0.0b1. Nikola v7.8.15 is the last v7 maintenance release with a few more bug fixes. Nikola v8.0.0b1 (Beta 1) is the first test release of the v8 series. The v8 series adds a ton of new

2019: Call for Papers & Call for Workshop Proposals

2018-05-08 Thread Fabio Niephaus
2019 : The Art, Science, and Engineering of Programming April 1-4, 2019, Genova, Italy http://2019.programming-conference.org The International Conference on the Art, Science, and Engineering of Programming is a new conference focused on programming topics including the experience of

Re: Suggestion for a "data" object syntax

2018-05-08 Thread Chris Angelico
On Tue, May 8, 2018 at 10:52 PM, Mikhail V wrote: > Right? Your issues with tabs aside, I think it is impossible to ignore the > the readability improvement. Not even speaking of how > many commas and bracket you need to type in the first case. That's incredibly subjective.

[issue33445] test_cprofile should fail instead of displaying a message

2018-05-08 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- keywords: +patch pull_requests: +6420 stage: -> patch review ___ Python tracker ___

[issue33437] Defining __init__ in enums

2018-05-08 Thread Ethan Furman
Ethan Furman added the comment: That new example looks great! Note that you don't need the parenthesis, though. FYI: The same thing using the aenum library* would look like: from aenum import Enum class Coord(bytes, Enum): _init_ = 'value label unit' PX

Re: Suggestion for a "data" object syntax

2018-05-08 Thread Liste guru
Il 08/05/2018 14:52, Mikhail V ha scritto: ... What editor do you use? My editor can toggle tabs highlighting as arrows, and I suppose almost any editor has good support for highlighting of characters by search, etc. For NPP there are even plugins like Regex helper.     I like to 'type

Re: Suggestion for a "data" object syntax

2018-05-08 Thread Steven D'Aprano
On Tue, 08 May 2018 15:52:12 +0300, Mikhail V wrote: >> Last time you brought up this idea, you were told that it is ambiguous. >> Using whitespace alone, it is impossible to distinguish between >> >> a + b >> >> and >> >> a + b >> >> >> Can you see the difference? Of course not. That's

ANN: SciPy 1.1.0 released

2018-05-08 Thread Pauli Virtanen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi all, On behalf of the SciPy development team I'm pleased to announce the SciPy 1.1.0 release. Sources and binary wheels can be found at https://pypi.python.org/pypi/scipy and at https://github.com/scipy/scipy/releases/tag/v1.1.0. To install

ANN: PyScripter 3.4 released

2018-05-08 Thread pyscripter
PyScripter is a free and open-source Python Integrated Development Environment (IDE) created with the ambition to become competitive in functionality with commercial Windows-based IDEs available for other languages. It is feature-rich, but also light-weight. The major new feature is the

[issue33445] test_cprofile should fail instead of displaying a message

2018-05-08 Thread Jeroen Demeyer
New submission from Jeroen Demeyer : When this test from Lib/test/test_profile.py fail, it just prints a message and doesn't fail the testsuite: def test_cprofile(self): results = self.do_profiling() expected = self.get_expected_output()

Re: problem in compiling C API in mingw

2018-05-08 Thread m.overmeyer--- via Python-list
On Tuesday, 26 July 2011 23:53:36 UTC, llw...@gmail.com wrote: > Hi all again, > I wonder if so far only Python 2.5.x support c extension. I try the > MSVC 2010 and 2008, also try mingw (gcc 4.x.x) and swig. But even I try > the simplest example, it said > >

[issue33446] destructors of local variables are not traced

2018-05-08 Thread Xavier de Gaye
New submission from Xavier de Gaye : In the following code, the destructors of objects referenced by the 'a' and 'b' local variables are not traced by the 'step' command of pdb. 1 class C: 2 def __init__(self, name): 3 self.name = name 4 5 def

Re: Module, Package

2018-05-08 Thread Sharan Basappa
On Tuesday, 8 May 2018 13:05:58 UTC+5:30, Steven D'Aprano wrote: > On Mon, 07 May 2018 09:53:45 -0700, Sharan Basappa wrote: > > > I am a bit confused between module and package in Python. Does a module > > contain package or vice versa? When we import something in Python, do we > > import a

[issue33444] Memory leak/high usage on copy in different thread

2018-05-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: Yes, this looks surprising, but there is no memory leak here, just memory fragmentation in the glibc allocator. This is the program I used to diagnose it: https://gist.github.com/pitrou/6c5310d4c721436165666044e3c31158 At the end the program

[issue33444] Memory leak/high usage on copy in different thread

2018-05-08 Thread Antoine Pitrou
Change by Antoine Pitrou : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue32717] Document PEP 560

2018-05-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +6421 ___ Python tracker ___

[issue32717] Document PEP 560

2018-05-08 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: New changeset bd5f96581bf23f6d05fc106996428a8043b6b084 by Ivan Levkivskyi in branch 'master': bpo-32717: Document PEP 560 (GH-6726) https://github.com/python/cpython/commit/bd5f96581bf23f6d05fc106996428a8043b6b084 --