Re: I'm not seeing Paul Rubin's posts

2018-03-02 Thread Chris Angelico
On Sat, Mar 3, 2018 at 4:42 PM, Steven D'Aprano wrote: > I see people replying to Paul Rubin, but I'm not seeing his posts. > > I've reading this through gmane. > > Does anyone know what's going on? I'm not seeing them either. Usually that means someone's been banned from the mailing list, or els

I'm not seeing Paul Rubin's posts

2018-03-02 Thread Steven D'Aprano
I see people replying to Paul Rubin, but I'm not seeing his posts. I've reading this through gmane. Does anyone know what's going on? Thanks, Steve -- https://mail.python.org/mailman/listinfo/python-list

Re: RFC: Proposal: Deterministic Object Destruction (Posting On Python-List Prohibited)

2018-03-02 Thread Gregory Ewing
Paul Rubin wrote: So you want the programmer to put more head scratching into figuring out which reference should be strong and which should be weak? Also, sometimes weak references don't really solve the problem, e.g. if you have a graph where you can't identify any particular node as a "root"

Re: RFC: Proposal: Deterministic Object Destruction

2018-03-02 Thread Chris Angelico
On Sat, Mar 3, 2018 at 11:58 AM, Michael Torrie wrote: > On 03/02/2018 08:36 AM, Paul Moore wrote: >> On 2 March 2018 at 15:09, wrote: >>> We must be discussing a different RAII. That is the raison d'etre of RAII: >>> RAII directly addresses this problem in an exception-safe way that does not

Re: Redundant features in python library, PyQt

2018-03-02 Thread Michael Torrie
On 03/02/2018 04:15 PM, jlada...@itu.edu wrote: > Python's standard library has (to take three examples) threads, > processes, and datetime functions. Meanwhile, PyQt has QThread, > QProcess, and QDateTime. > > Does this redundancy exist for C++ programmers who are programming Qt > directly, and

Re: RFC: Proposal: Deterministic Object Destruction

2018-03-02 Thread Michael Torrie
On 03/02/2018 08:36 AM, Paul Moore wrote: > On 2 March 2018 at 15:09, wrote: >> We must be discussing a different RAII. That is the raison d'etre of RAII: >> RAII directly addresses this problem in an exception-safe way that does not >> burden the resource user at all. > > RAII works in C++ (w

Re: How to make Python run as fast (or faster) than Julia

2018-03-02 Thread Steven D'Aprano
On Fri, 02 Mar 2018 14:45:55 -0600, Python wrote: > On Mon, Feb 26, 2018 at 09:57:06AM +, Steven D'Aprano wrote: >> Besides, if you want Python with no GIL so you can run threaded code, >> why aren't you using IronPython or Jython? > > But this is just another oversimplified argument. In the

Redundant features in python library, PyQt

2018-03-02 Thread jladasky
Python's standard library has (to take three examples) threads, processes, and datetime functions. Meanwhile, PyQt has QThread, QProcess, and QDateTime. Does this redundancy exist for C++ programmers who are programming Qt directly, and who may lack a standard C++ library with these features?

Re: RFC: Proposal: Deterministic Object Destruction

2018-03-02 Thread Steven D'Aprano
On Fri, 02 Mar 2018 07:09:19 -0800, ooomzay wrote: [...] >> If you're going to *require* the programmer to explicitly del the >> reference: >> >> f = open("file") >> text = f.read() >> del f > > But I am not! On the contrary RAII frees the programmer from even having > to remember to

Re: How to make Python run as fast (or faster) than Julia

2018-03-02 Thread Chris Angelico
On Sat, Mar 3, 2018 at 7:45 AM, Python wrote: > On Mon, Feb 26, 2018 at 09:57:06AM +, Steven D'Aprano wrote: >> Besides, if you want Python with no GIL so you can run threaded code, why >> aren't you using IronPython or Jython? > > But this is just another oversimplified argument. In the real

Re: Python 3.6 fails to install to non-standard directory under Linux (Posting On Python-List Prohibited)

2018-03-02 Thread bsferrazza
On Friday, March 2, 2018 at 12:27:17 PM UTC-8, Lawrence D’Oliveiro wrote: > On Saturday, March 3, 2018 at 6:42:05 AM UTC+13, bsfer...@avnera.com wrote: > > > ... > > File "/nfs/home/myuser/lfs/sources/Python-3.6.4/Lib/shutil.py", line 476, > > in rmtree > > ... > > NFS trouble? > > I have had

Re: How to make Python run as fast (or faster) than Julia

2018-03-02 Thread Python
On Mon, Feb 26, 2018 at 09:57:06AM +, Steven D'Aprano wrote: > Besides, if you want Python with no GIL so you can run threaded code, why > aren't you using IronPython or Jython? But this is just another oversimplified argument. In the real world there rather often exist constraints which hav

Re: Python 3.6 fails to install to non-standard directory under Linux

2018-03-02 Thread bsferrazza
Here's my configure I need to set ac_cv_fun_utimensat=no and ac_cv_func_futimens=no because presumably the file-system or kernel on my system doesn't support nanosecond timestamps. With these options, and patching the configure/setup.py files to remove references to /usr/lib/ncursesw and replac

Python 3.6 fails to install to non-standard directory under Linux

2018-03-02 Thread bsferrazza
I posted this to Stackoverflow and the original post can be seen here. I'll try and copy and past the contents below. Thank you for your help! https://stackoverflow.com/questions/49074327/python-3-6-fails-to-install-to-non-standard-directory-under-linux I have a completely insulated boostrapped

Re: APPLICATION NOT RUNNING.

2018-03-02 Thread Jason Friedman
> > I try to run an application with the latest version of python that is > python 3.6.4 (32-bit) ., instead of running the application it only shows > feel free to mail python-list@python.org if you continue to encounter > issues,Please help me out thanks. > Hello, you might have more success if

Re: Problem: Need galileo running on debian wheezy

2018-03-02 Thread Gene Heskett
On Friday 02 March 2018 10:27:57 Cousin Stanley wrote: > Gene Heskett wrote: > > > > And the rock64 doesn't have wifi hardware > > that I know of. > > > > I did manage to get wifi working on my rock64 > using a usb wifi dongle ordered from their store fitbit says its BTLE, clai

Re: RFC: Proposal: Deterministic Object Destruction

2018-03-02 Thread ooomzay
On Friday, March 2, 2018 at 2:43:09 PM UTC, Chris Angelico wrote: > On Sat, Mar 3, 2018 at 1:18 AM, ooomzay wrote: > > On Friday, March 2, 2018 at 8:16:22 AM UTC, Paul Rubin wrote:[snip] > >> controlling stuff like file handles > >> with scopes (like with "with") is fine. > > > > How does with wor

Re: RFC: Proposal: Deterministic Object Destruction

2018-03-02 Thread Paul Moore
On 2 March 2018 at 15:09, wrote: > We must be discussing a different RAII. That is the raison d'etre of RAII: > RAII directly addresses this problem in an exception-safe way that does not > burden the resource user at all. RAII works in C++ (where it was initially invented) because it's used w

Re: Problem: Need galileo running on debian wheezy

2018-03-02 Thread Cousin Stanley
Gene Heskett wrote: > > And the rock64 doesn't have wifi hardware > that I know of. > I did manage to get wifi working on my rock64 using a usb wifi dongle ordered from their store It was a bit fiddly to set up, somewhat shaky connection-wise, and slower than I was com

Re: RFC: Proposal: Deterministic Object Destruction

2018-03-02 Thread ooomzay
On Friday, March 2, 2018 at 4:35:41 AM UTC, Steven D'Aprano wrote: > On Thu, 01 Mar 2018 16:26:47 -0800, ooomzay wrote: > > >> >> When does the destination file get closed? > >> > > >> > When you execute:- > >> > > >> >del dst > >> > > >> > or:- > >> > > >> >dst = something_else > >> > >>

Re: RFC: Proposal: Deterministic Object Destruction

2018-03-02 Thread Chris Angelico
On Sat, Mar 3, 2018 at 1:18 AM, wrote: > On Friday, March 2, 2018 at 8:16:22 AM UTC, Paul Rubin wrote:[snip] >> controlling stuff like file handles >> with scopes (like with "with") is fine. > > How does with work for non-trivial/composite objects that represent/reference > multiple resources or

Re: RFC: Proposal: Deterministic Object Destruction (Posting On Python-List Prohibited)

2018-03-02 Thread ooomzay
On Friday, March 2, 2018 at 1:59:02 AM UTC, Lawrence D’Oliveiro wrote: > On Friday, March 2, 2018 at 1:03:08 PM UTC+13, ooo...@gmail.com wrote: > > On Thursday, March 1, 2018 at 11:51:50 PM UTC, Lawrence D’Oliveiro wrote: > >> On Friday, March 2, 2018 at 12:39:01 PM UTC+13, ooo...@gmail.com wrote:

Re: RFC: Proposal: Deterministic Object Destruction

2018-03-02 Thread ooomzay
On Friday, March 2, 2018 at 8:16:22 AM UTC, Paul Rubin wrote:[snip] > controlling stuff like file handles > with scopes (like with "with") is fine. How does with work for non-trivial/composite objects that represent/reference multiple resources or even a hierarchy of such objects where all the re

Re: RFC: Proposal: Deterministic Object Destruction

2018-03-02 Thread ooomzay
On Friday, March 2, 2018 at 12:22:13 AM UTC, MRAB wrote: > On 2018-03-01 23:38, ooomzay wrote: [Snip] > > PEP343 requires two new methods: __enter__ & __exit__. > > RIAA requires no new methods. > > > > RIAA resources are invariant: If you have a reference to it you can use it. > > PEP343 resources

APPLICATION NOT RUNNING.

2018-03-02 Thread Faruq Bashir via Python-list
I try to run an application with the latest version of python that is python 3.6.4 (32-bit) ., instead of running the application it only shows feel free to mail python-list@python.org if you continue to encounter issues,Please help me out thanks. -- https://mail.python.org/mailman/listinfo/pyt

Re: RFC: Proposal: Deterministic Object Destruction

2018-03-02 Thread Rick Johnson
On Thursday, March 1, 2018 at 10:13:51 PM UTC-6, Steven D'Aprano wrote: [...] > And for the record, consider a tree of nodes, where each > node points back at the root of the tree, which is also a > node. So what does the root node point back at? Finally! A practical solution is offered that answe

Help me with the Python! ODE system.

2018-03-02 Thread alenkabor129769
I can not find an example with this function: https://docs.scipy.org/doc/scipy/reference/generated/scipy.integrate.RK45.html#scipy.integrate.RK45. -- https://mail.python.org/mailman/listinfo/python-list

Re: RFC: Proposal: Deterministic Object Destruction

2018-03-02 Thread bartc
On 02/03/2018 08:15, Paul Rubin wrote: If someone says "but limited memory", consider that MicroPython runs on the BBC Micro:bit board which has 16k of ram, and it uses gc. The specs say it also has 256KB of flash memory (ie. 'ROM'), so I suspect much of the program code resides there. --