Re: upgrading python on raspbian

2019-10-14 Thread Gene Heskett
On Monday 14 October 2019 12:56:22 Gene Heskett wrote: Continueing this thread, I now have a missing function by name, "units", that is preventing LinuxCNC from running. Where in the python 3 world do I find that function?, which in this case controls what it is fed on to a pyvcp display accord

Re: [RELEASE] Python 3.8.0 is now available

2019-10-14 Thread Wesley Peng
awesome news. thanks for all the hard work. on 2019/10/15 4:23, Łukasz Langa wrote: We hope you enjoy Python 3.8! Thanks to all of the many volunteers who help make Python Development and these releases possible! Please consider supporting our efforts by volunteering yourself or through organ

Re: Instantiating sub-class from super

2019-10-14 Thread DL Neil via Python-list
Hi Greg, On 15/10/19 11:37 AM, Gregory Ewing wrote: DL Neil wrote: Is there a technique or pattern for taking a (partially-) populated instance of a class, and re-creating it as an instance of one of its sub-classes? Often you can assign to the __class__ attribute of an instance to change i

Re: Instantiating sub-class from super

2019-10-14 Thread Gregory Ewing
DL Neil wrote: Is there a technique or pattern for taking a (partially-) populated instance of a class, and re-creating it as an instance of one of its sub-classes? Often you can assign to the __class__ attribute of an instance to change its class. Python 3.7.3 (default, Apr 8 2019, 22:20:19

Re: Jupyter Notebook -> PDF with A4 pages?

2019-10-14 Thread David Lowry-Duda
> Is there a way to do "Download as PDF" and get A4 pages instead > of Letter? Yes, I know I can do "Download as LaTeX" and edit the > result to get A4 but if there is a setting I have missed I save > work and time. I typically use the "nbconvert" tool (that one typically installs at the same tim

Re: Odd delays when cwd is on a network mount

2019-10-14 Thread Cameron Simpson
On 14Oct2019 10:06, Tobiah wrote: On 10/11/19 6:04 PM, Gregory Ewing wrote: Cameron Simpson wrote: Python's default sys.path includes the current working directory. Only in an interactive session, where it usually makes sense. I was only using the REPL for demonstration. The same delay ha

Instantiating sub-class from super

2019-10-14 Thread DL Neil via Python-list
Is there a technique or pattern for taking a (partially-) populated instance of a class, and re-creating it as an instance of one of its sub-classes? In a medically-oriented situation, we have a Person() class, and start collecting information within an instance (person = Person(), etc). Du

[RELEASE] Python 3.8.0 is now available

2019-10-14 Thread Łukasz Langa
On behalf of the Python development community and the Python 3.8 release team, I’m pleased to announce the availability of Python 3.8.0. Python 3.8.0 is the newest feature release of the Python language, and it contains many new features and optimizations. You can find Python 3.8.0 here: https:

Re: Jupyter Notebook -> PDF with A4 pages?

2019-10-14 Thread Martin Schöön
Den 2019-10-13 skrev Piet van Oostrum : > Martin Schöön writes: > >> Is there a way to do "Download as PDF" and get A4 pages instead >> of Letter? Yes, I know I can do "Download as LaTeX" and edit the > < snip > > Make a directory ~/.jupyter/templates and put a file A4article.tplx inside it: > >

Re: Odd delays when cwd is on a network mount

2019-10-14 Thread Skip Montanaro
> > The module file > is on the local drive. I only have to have a CWD on the mounted > drive to experience the 25 second delay. > Coming late to the party, but it sounds like the directory is further down sys.path than your current working directory (and possibly other network-mounted directorie

Re: Odd delays when cwd is on a network mount

2019-10-14 Thread Tobiah
On 10/11/19 6:04 PM, Gregory Ewing wrote: Cameron Simpson wrote: Python's default sys.path includes the current working directory. Only in an interactive session, where it usually makes sense. I was only using the REPL for demonstration. The same delay happens when I import a module in a s

Re: upgrading python on raspbian

2019-10-14 Thread Gene Heskett
On Monday 14 October 2019 12:00:42 Michael Torrie wrote: > On 10/14/19 8:52 AM, Gene Heskett wrote: > > I think thats the obvious path forward. Once ported, we don't have > > to worry about that legacy stuff for two or 3 generations of linux. > > A worthy goal and I'm sure the LinuxCNC folk would

Re: upgrading python on raspbian

2019-10-14 Thread Michael Torrie
On 10/14/19 10:00 AM, Michael Torrie wrote: > https://github.com/LinuxCNC/linuxcnc/issues/403 > > Whatever you do, you probably will want to discuss it on the github > issue tracker to make sure efforts aren't duplicated. Reading further, it appears that the binding and embedding python 3 has bee

Re: my python is not working

2019-10-14 Thread Yasin Suluhan
Thank god for that. -- Thank You. Best Regards. Yasin SULUHAN Contact Information Mobile: +31 6 86107491 On Mon, Oct 14, 2019 at 12:41 PM KAMALDEEP GUPTA wrote: > > -- > https://mail.python.org/mailman/listinfo/python-list > -- https://mail.python.org/mailman/listinfo/python-list

Re: upgrading python on raspbian

2019-10-14 Thread Michael Torrie
On 10/14/19 8:52 AM, Gene Heskett wrote: > I think thats the obvious path forward. Once ported, we don't have to > worry about that legacy stuff for two or 3 generations of linux. A worthy goal and I'm sure the LinuxCNC folk would be grateful for contributions. Be aware that porting the python

Re: upgrading python on raspbian

2019-10-14 Thread Chris Angelico
On Tue, Oct 15, 2019 at 1:53 AM Gene Heskett wrote: > > On Sunday 13 October 2019 16:22:33 Chris Angelico wrote: > > My recommendation would be to start with "sudo apt build-dep > > linuxcnc-uspace" and see if it can get any, but otherwise, just > > replace "python-" with "python3-" and see if tha

Re: upgrading python on raspbian

2019-10-14 Thread Gene Heskett
On Sunday 13 October 2019 16:22:33 Chris Angelico wrote: > On Mon, Oct 14, 2019 at 6:38 AM Gene Heskett wrote: > > I'm not a python expert by a long ways. > > > > I have built the linuxcnc-master, which is the development branch of > > linuxcnc, a machine control program to run most metal carvin

Re: my python is not working

2019-10-14 Thread Tony van der Hoff
On 14/10/2019 09:52, KAMALDEEP GUPTA wrote: > Mine is! -- Tony van der Hoff| mailto:t...@vanderhoff.org Buckinghamshire, England | -- https://mail.python.org/mailman/listinfo/python-list

Re: my python is not working

2019-10-14 Thread Igor Korot
Hi, On Mon, Oct 14, 2019 at 5:41 AM KAMALDEEP GUPTA wrote: > > What did yu do differently than all other people Thank you. > -- > https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list

Re: python3, regular expression and bytes text

2019-10-14 Thread Eko palypse
Am Montag, 14. Oktober 2019 13:56:09 UTC+2 schrieb Chris Angelico: > > (My apologies for saying this in reply to an unrelated post, but I > also don't see those posts, so it's not easy to reply to them.) > > ChrisA Nothing to apologize and thank you for clarification, I was already checking my s

Re: python3, regular expression and bytes text

2019-10-14 Thread Chris Angelico
On Mon, Oct 14, 2019 at 10:41 PM Eko palypse wrote: > > Am Sonntag, 13. Oktober 2019 21:20:26 UTC+2 schrieb moi: > > [Do not know why I spent hours with this...] > > > > To answer you question. > > Yes, I confirm. > > It seems that as soon as one works with bytes and when > > a char is encoded in

Re: python3, regular expression and bytes text

2019-10-14 Thread Eko palypse
Am Sonntag, 13. Oktober 2019 21:20:26 UTC+2 schrieb moi: > [Do not know why I spent hours with this...] > > To answer you question. > Yes, I confirm. > It seems that as soon as one works with bytes and when > a char is encoded in more than 1 byte, "re" goes into > troubles. > First, sorry for a

my python is not working

2019-10-14 Thread KAMALDEEP GUPTA
-- https://mail.python.org/mailman/listinfo/python-list