Re: Signals and Slots - Summerfield - what exactly is a signal?

2017-08-05 Thread Steve D'Aprano
On Sun, 6 Aug 2017 03:18 am, Michael Torrie wrote: > Forgive Steven for his off-topic reply. I assume he's trying to goad you > into having a more specific subject line. He knows darn well what PyQt, > even if he has no experience with it. Pardon me, I said: "I don't know what Qt signals are."

Re: Question About When Objects Are Destroyed (continued)

2017-08-05 Thread Tim Daneliuk
On 08/05/2017 05:36 PM, Ned Batchelder wrote: > On 8/5/17 5:41 PM, Tim Daneliuk wrote: >> On 08/05/2017 11:16 AM, Ned Batchelder wrote: >>> It uses >>> reference counting, so most objects are reclaimed immediately when their >>> reference count goes to zero, such as at the end of local scopes. >>

Re: Question About When Objects Are Destroyed (continued)

2017-08-05 Thread Tim Daneliuk
On 08/05/2017 05:36 PM, Ned Batchelder wrote: > On 8/5/17 5:41 PM, Tim Daneliuk wrote: >> On 08/05/2017 11:16 AM, Ned Batchelder wrote: >>> It uses >>> reference counting, so most objects are reclaimed immediately when their >>> reference count goes to zero, such as at the end of local scopes. >>

Re: Question About When Objects Are Destroyed (continued)

2017-08-05 Thread Tim Daneliuk
On 08/05/2017 05:58 PM, Chris Angelico wrote: > On Sun, Aug 6, 2017 at 7:32 AM, Tim Daneliuk wrote: >> On 08/05/2017 03:21 PM, Chris Angelico wrote: >>> After a 'with' block, >>> the object *still exists*, but it has been "exited" in some way >>> (usually by closing/releasing

Re: Question About When Objects Are Destroyed (continued)

2017-08-05 Thread Tim Daneliuk
On 08/05/2017 05:58 PM, Chris Angelico wrote: > On Sun, Aug 6, 2017 at 7:32 AM, Tim Daneliuk wrote: >> On 08/05/2017 03:21 PM, Chris Angelico wrote: >>> After a 'with' block, >>> the object *still exists*, but it has been "exited" in some way >>> (usually by closing/releasing

Re: Question About When Objects Are Destroyed (continued)

2017-08-05 Thread Chris Angelico
On Sun, Aug 6, 2017 at 7:32 AM, Tim Daneliuk wrote: > On 08/05/2017 03:21 PM, Chris Angelico wrote: >> After a 'with' block, >> the object *still exists*, but it has been "exited" in some way >> (usually by closing/releasing an underlying resource). > > The containing object

Re: SQLObject 3.4.0

2017-08-05 Thread leam hall
#I'm pleased to announce version 3.4.0, the first stable release of branch #3.4 of SQLObject. # # #What's new in SQLObject #=== # #* Python 2.6 is no longer supported. The minimal supported version is # Python 2.7. Is there a particular reason to eliminate RHEL 6 (Python 2.6)

Re: Question About When Objects Are Destroyed (continued)

2017-08-05 Thread Ned Batchelder
On 8/5/17 5:41 PM, Tim Daneliuk wrote: > On 08/05/2017 11:16 AM, Ned Batchelder wrote: >> It uses >> reference counting, so most objects are reclaimed immediately when their >> reference count goes to zero, such as at the end of local scopes. > Given this code: > > class SomeObject: > . >

Re: Question About When Objects Are Destroyed (continued)

2017-08-05 Thread MRAB
On 2017-08-05 22:41, Tim Daneliuk wrote: On 08/05/2017 11:16 AM, Ned Batchelder wrote: It uses reference counting, so most objects are reclaimed immediately when their reference count goes to zero, such as at the end of local scopes. Given this code: class SomeObject: . for foo

Re: Question About When Objects Are Destroyed (continued)

2017-08-05 Thread Marko Rauhamaa
Tim Daneliuk : > Are you saying that each time a,b,c are reassigned to new instances of > SomeObject the old instance counts go to 0 and are immediately - as in > synchronously, right now, on the spot - removed from memory? That depends on the implementation of Python.

Re: Question About When Objects Are Destroyed (continued)

2017-08-05 Thread Tim Daneliuk
On 08/05/2017 11:16 AM, Ned Batchelder wrote: > It uses > reference counting, so most objects are reclaimed immediately when their > reference count goes to zero, such as at the end of local scopes. Given this code: class SomeObject: . for foo in somelist: a = SomeObject(foo) b

Re: Question About When Objects Are Destroyed (continued)

2017-08-05 Thread Tim Daneliuk
On 08/05/2017 03:21 PM, Chris Angelico wrote: > After a 'with' block, > the object *still exists*, but it has been "exited" in some way > (usually by closing/releasing an underlying resource). The containing object exists, but the things that the closing logic explicitly released do not. In some

Package not visible/available on pypi

2017-08-05 Thread Kryptxy via Python-list
I had recently uploaded a package on pypi. For some reason, I removed the package, and committed a BIG mistake along the way. I clicked the DELETE PACKAGE [Warning about NEVER TO CLICK THAT BUTTON] (silly me!) Now, after re-uploading the package, its not visible on pypi. How can I fix this? I

[issue31121] Unable to exit pdb when script becomes invalid

2017-08-05 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- nosy: +xdegaye ___ Python tracker ___ ___ Python-bugs-list

[issue1612262] Class Browser doesn't show internal classes

2017-08-05 Thread Cheryl Sabella
Cheryl Sabella added the comment: I added a more complete set of unit tests to the PR. -- ___ Python tracker ___

Re: Question About When Objects Are Destroyed (continued)

2017-08-05 Thread Chris Angelico
On Sun, Aug 6, 2017 at 1:23 AM, Tim Daneliuk wrote: > On 08/04/2017 07:00 PM, Chris Angelico wrote: >> Again, don't stress about exactly when objects get >> disposed of; it doesn't matter. > > > Respectfully, I disagree strongly. Objects get build on the heap and > persist

[issue31122] SSLContext.wrap_socket() throws OSError with errno == 0

2017-08-05 Thread Nikolaus Rath
Nikolaus Rath added the comment: Regarding "atrocious connection": I wish I knew, but I have no control of the connection. All I can tell is that there are frequent disconnects, occasional latency spikes, my remote ip address seems to change frequently (while the apparent local one stays

Re: Signals and Slots - Summerfield - what exactly is a signal?

2017-08-05 Thread Michael Torrie
On 08/05/2017 08:28 AM, veek wrote: > At a certain point beyond the general stuff, questions about PyQt might be better suited to the PyQt mailing list, hosted by the company that maintains PyQt: https://www.riverbankcomputing.com/mailman/listinfo/pyqt --

Re: Signals and Slots - Summerfield - what exactly is a signal?

2017-08-05 Thread Michael Torrie
On 08/05/2017 12:19 PM, Marko Rauhamaa wrote: > I would express it as just saying that the Qt developers appropriated > the word "signal" for what is simply a callback. I'd say a slot is a callback. A signal is the designation of something that will trigger callbacks. > Years back I took a

[issue31061] asyncio segfault when using threadpool and "_asyncio" native module

2017-08-05 Thread Alexander Mohr
Alexander Mohr added the comment: bad news, I just got a crash in the same place (updating defaultdict) after running for a week with the fixes from this and inada naoki's patches. I think the threadpool may be leaking threads too as I had > 40 threads after running for a week when I use no

Re: Signals and Slots - Summerfield - what exactly is a signal?

2017-08-05 Thread Vincent Vande Vyvre
Le 05/08/17 à 16:28, veek a écrit : 1. What exactly is a signal. In hardware, an interrupt can be viewed as a signal and the voltage on a pin will suddenly jump to +5V as an indicator that an interrupt has occurred. With Qt signals - if a widget-c++ code has to 'signal' an event - what does it

Re: Question About When Objects Are Destroyed (continued)

2017-08-05 Thread Ned Batchelder
On 8/5/17 11:23 AM, Tim Daneliuk wrote: > On 08/04/2017 07:00 PM, Chris Angelico wrote: >> Again, don't stress about exactly when objects get >> disposed of; it doesn't matter. > > Respectfully, I disagree strongly. Objects get build on the heap and > persist even when they go out of scope until

Re: pip requirements file

2017-08-05 Thread Ndagi Stanley
Yes. There is. I have been in need of this for a while until I found out. 2 steps: - pip install pip-chill - pip-chill The list will only have what you directly installed and will not list itself, which is pretty neat. The only thing you'll notice is that it's not alphabetically arranged. Cheers.

Re: Question About When Objects Are Destroyed

2017-08-05 Thread Ned Batchelder
On 8/4/17 7:42 PM, Jon Forrest wrote: > On 8/4/2017 4:34 PM, gst wrote: >> 'two' is a so called constant or literal value .. (of that >> function). >> >> Why not attach it, as a const value/object, to the function itself ? >> So that a new string object has not to be created each time the >>

Re: Question About When Objects Are Destroyed (continued)

2017-08-05 Thread Marko Rauhamaa
Tim Daneliuk : > On 08/04/2017 07:00 PM, Chris Angelico wrote: >> Again, don't stress about exactly when objects get disposed of; it >> doesn't matter. > > Respectfully, I disagree strongly. Objects get build on the heap and > persist even when they go out of scope until such

[issue31029] test_tokenize fails when run directly

2017-08-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: backport needed -> resolved status: open -> closed ___ Python tracker

[issue31029] test_tokenize fails when run directly

2017-08-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 9cd0ef8f3b93818f0ee5318cb1fc9a1ea32e95b6 by Serhiy Storchaka (Rajath Agasthya) in branch '3.6': bpo-31029: test_tokenize Add missing import unittest (#2998) https://github.com/python/cpython/commit/9cd0ef8f3b93818f0ee5318cb1fc9a1ea32e95b6

Re: Signals and Slots - Summerfield - what exactly is a signal?

2017-08-05 Thread Marko Rauhamaa
Michael Torrie : > Basically a signal emission is a call to the main loop that indicates > that an event has occurred, and then the main loop sees if there are > any registered callbacks that want to be notified of this event, and > if so it calls them, letting them execute.

SQLObject 3.4.0

2017-08-05 Thread Oleg Broytman
Hello! I'm pleased to announce version 3.4.0, the first stable release of branch 3.4 of SQLObject. What's new in SQLObject === Contributor for this release is Dr. Neil Muller. Features * Python 2.6 is no longer supported. The minimal supported version is Python

Re: Signals and Slots - Summerfield - what exactly is a signal?

2017-08-05 Thread Michael Torrie
Forgive Steven for his off-topic reply. I assume he's trying to goad you into having a more specific subject line. He knows darn well what PyQt, even if he has no experience with it. And of course, as always you will want to post a complete, working example that we can see and comment on, rather

[issue31125] shelve.open of temporary file fails with error "anydbm.error: db type could not be determined"

2017-08-05 Thread Stephen Larroque
New submission from Stephen Larroque: This is a followup of issue 23174. When using `shelve.open(tempfile.mkstemp()[1])`, the shelve (or anydbm or dumbdbm) fail with "anydbm.error: db type could not be determined". Instead, the module could detect the file is empty and use it as if it were

Re: Signals and Slots - Summerfield - what exactly is a signal?

2017-08-05 Thread veek
Steve D'Aprano wrote: > On Sun, 6 Aug 2017 12:28 am, veek wrote: > >> 1. What exactly is a signal. In hardware, an interrupt can be viewed as a >> signal and the voltage on a pin will suddenly jump to +5V as an indicator >> that an interrupt has occurred. With Qt signals - if a widget-c++ code

Re: Question About When Objects Are Destroyed (continued)

2017-08-05 Thread Tim Daneliuk
On 08/04/2017 07:00 PM, Chris Angelico wrote: > Again, don't stress about exactly when objects get > disposed of; it doesn't matter. Respectfully, I disagree strongly. Objects get build on the heap and persist even when they go out of scope until such time garbage collection takes place. This

[issue31124] ImportError: cannot import name HAS_ALPN

2017-08-05 Thread José Leite
José Leite added the comment: Thank You very much!!! Thumbs up! -- ___ Python tracker ___ ___

[issue31107] copyreg does not properly mangle __slots__ names

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

Re: Signals and Slots - Summerfield - what exactly is a signal?

2017-08-05 Thread Steve D'Aprano
On Sun, 6 Aug 2017 12:28 am, veek wrote: > 1. What exactly is a signal. In hardware, an interrupt can be viewed as a > signal and the voltage on a pin will suddenly jump to +5V as an indicator > that an interrupt has occurred. With Qt signals - if a widget-c++ code has > to 'signal' an event -

[issue31107] copyreg does not properly mangle __slots__ names

2017-08-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 885ddbb8692ecb2c661aa29000dbde9eff8c by Serhiy Storchaka (Shane Harvey) in branch '2.7': [2.7] bpo-31107: Fix copyreg mangled slot names calculation. (GH-2989). (#3004)

[issue31107] copyreg does not properly mangle __slots__ names

2017-08-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 4795ba857ef2a89e6b477285df961672106a1792 by Serhiy Storchaka (Shane Harvey) in branch '3.6': [3.6] bpo-31107: Fix copyreg mangled slot names calculation. (GH-2989) (#3003)

[issue31124] ImportError: cannot import name HAS_ALPN

2017-08-05 Thread Christian Heimes
Christian Heimes added the comment: Thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue31124] ImportError: cannot import name HAS_ALPN

2017-08-05 Thread Christian Heimes
Changes by Christian Heimes : -- resolution: -> third party stage: -> resolved status: open -> closed type: -> behavior ___ Python tracker

[issue31124] ImportError: cannot import name HAS_ALPN

2017-08-05 Thread José Leite
José Leite added the comment: Yes, there is such a file. I will report to web2py developers for windows version. Thanks, renamed the file and everything seems fine. -- ___ Python tracker

Signals and Slots - Summerfield - what exactly is a signal?

2017-08-05 Thread veek
1. What exactly is a signal. In hardware, an interrupt can be viewed as a signal and the voltage on a pin will suddenly jump to +5V as an indicator that an interrupt has occurred. With Qt signals - if a widget-c++ code has to 'signal' an event - what does it do? As a consequence of not

Re: Linux/Windows GUI programming: tk or wx?

2017-08-05 Thread Michael Torrie
On 08/05/2017 04:52 AM, Chris Green wrote: > I went through a similar process of deciding the easiest (for me) GUI > to go with. I've actually ended up with PyGtk as it feels for me the > 'least foreign' compared with doing things the CLI way. Yes PyGtk is fairly Pythonic and natural feeling.

[issue31103] Windows Installer Product does not include micro version in display name

2017-08-05 Thread Steve Dower
Changes by Steve Dower : -- title: Windows Installer Product Version 3.6.2150.0 Offset By 0.0.150.0 -> Windows Installer Product does not include micro version in display name ___ Python tracker

[issue31103] Windows Installer Product Version 3.6.2150.0 Offset By 0.0.150.0

2017-08-05 Thread Steve Dower
Steve Dower added the comment: This issue is about A. B has a separate issue. C will not be changed. Please don't bother bringing them up again here, it's just a distraction. -- components: +Installation priority: normal -> low type: behavior -> enhancement versions: +Python 3.7

[issue31100] unable to open python on Windows

2017-08-05 Thread Steve Dower
Steve Dower added the comment: This probably means that your system failed to install the C Runtime, but not badly enough that it actually reported an error. First try rebooting, and if that doesn't work then search for the VisualC++ 2015 Redistributable installer and run that. --

[issue31124] ImportError: cannot import name HAS_ALPN

2017-08-05 Thread Christian Heimes
Christian Heimes added the comment: There is no _ssl.py. The internal _ssl module is a C extension module. Under Windows it is called _ssl.pyd. Do you have a _ssl.py or _ssl package in your project that may confict with _ssl.pyd? -- ___ Python

[issue31124] ImportError: cannot import name HAS_ALPN

2017-08-05 Thread José Leite
New submission from José Leite: When Running Web2py with Python 2.7.11 or 2.7.13 in windows 10 I get the following error: Traceback (most recent call last): File "C:\web2py\web2py.py", line 21, in import gluon.widget File "C:\web2py\gluon\widget.py", line 26, in from gluon import main,

[issue9674] make install DESTDIR=/home/blah fails when the prefix specified is /

2017-08-05 Thread Xavier de Gaye
Xavier de Gaye added the comment: Issue 31114 is the same issue and proposes a workaround and another fix. -- nosy: +xdegaye ___ Python tracker ___

[issue31114] 'make install' fails when exec_prefix is '/' and DESTDIR not empty

2017-08-05 Thread Xavier de Gaye
Xavier de Gaye added the comment: In the subprocess test named test_executable_without_cwd and when the test is run on the installed Python, argv[0] is not the python executable and calculate_path() in Modules/getpath.c, as a last resort, searches the directories pointed to by the

[issue31115] Py3.6 threading/reference counting issues with `numexpr`

2017-08-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: If, judging by https://github.com/pydata/numexpr/commit/07d9245d88759f0c3dcabd88e6edefadc3061ee3, you are really calling a bunch of C API functions without holding the GIL, then it's not surprising you may get crashes all over the place. -- nosy:

[issue16865] ctypes arrays >=2GB in length causes exception

2017-08-05 Thread Segev Finer
Changes by Segev Finer : -- pull_requests: +3040 ___ Python tracker ___ ___

Re: Linux/Windows GUI programming: tk or wx?

2017-08-05 Thread Dietmar Schwertberger
On 8/5/2017 1:45 AM, Ulli Horlacher wrote: Any kind of installer is not acceptable. Is the requirement "no installer" or "single file" or both? You can satisfy the "no installer" requirement also by just distributing the .py file, the interpreter and a .bat file that e.g. contains

[issue29304] dict: simplify lookup functions

2017-08-05 Thread INADA Naoki
INADA Naoki added the comment: On i386 docker image, pyperformance: ./python -m perf compare_to before.json after.json -G --min-speed=2 Slower (4): - regex_dna: 279 ms +- 1 ms -> 288 ms +- 3 ms: 1.03x slower (+3%) - deltablue: 17.9 ms +- 0.3 ms -> 18.3 ms +- 1.0 ms: 1.03x slower (+3%) -

[issue31113] Stack overflow with large program

2017-08-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: By the way, since you're using Python 3, you can probably workaround this issue by delegating some of the work to helper functions using `yield from`. -- ___ Python tracker

Re: Linux/Windows GUI programming: tk or wx?

2017-08-05 Thread Chris Green
Michael Torrie wrote: > On 08/04/2017 05:45 PM, Ulli Horlacher wrote: > > I have to transfer a python 2.7 CLI programm into one with a (simple) GUI. > > The program must run on Linux and Windows and must be compilable with > > pyinstall, because I have to ship a standalone

Re: Linux/Windows GUI programming: tk or wx?

2017-08-05 Thread Pertti Kosunen
On 8/5/2017 2:45 AM, Ulli Horlacher wrote: I do not like GTK and Qt, because they are too complex. I'm not a programmer, but at least simple cross platform GUI notification message was easiest to do with PyQt (IMO). -- https://mail.python.org/mailman/listinfo/python-list

Re: Challenge: find the first value where two functions differ

2017-08-05 Thread Paul Rubin
Chris Angelico writes: > 4503599761588224 I get the same result from searching a wider interval (+/- 50) around each perfect square in the relevant range. -- https://mail.python.org/mailman/listinfo/python-list

Re: Challenge: find the first value where two functions differ

2017-08-05 Thread Steve D'Aprano
On Sat, 5 Aug 2017 06:17 am, Terry Reedy wrote: [...] > With 53 binary digits, all counts from 0 to 2**53 - 1 are exactly > represented with a exponent of 0, 2**53 = 2**52 * 2, so it is exactly > represented with an exponent of 1. Many other higher counts can be > exactly represented with

Re: Linux/Windows GUI programming: tk or wx?

2017-08-05 Thread Christian Gollwitzer
Am 05.08.17 um 01:45 schrieb Ulli Horlacher: I have to transfer a python 2.7 CLI programm into one with a (simple) GUI. The program must run on Linux and Windows and must be compilable with pyinstall, because I have to ship a standalone windows.exe Any kind of installer is not acceptable.