Re: Request: inspect: signature & getfullargspec & getcallargs

2023-12-04 Thread Barry Scott via Python-list
> On 4 Dec 2023, at 02:29, Dom Grigonis via Python-list > wrote: > > Hello, > > I have a request. > > Would it be possible to include `follow_wrapper_chains` and `skip_bound_arg` > arguments to higher level functions of `inspect` module? > > Would exposing them, but setting defaults to wh

Re: [Request for Assistance] To uninstall python installed in other user profile (Win 10)

2023-04-10 Thread Thomas Passin
: Re: [Request for Assistance] To uninstall python installed in other user profile (Win 10) [cid:image001.png@01D96BB7.7B62F3D0] If Python was installed by user A in their own profile folder, it is likely that it was installed just for that user. In this case, you may need to log in as user A to

Re: [Request for Assistance] To uninstall python installed in other user profile (Win 10)

2023-04-10 Thread Sravan Kumar Chitikesi
If Python was installed by user A in their own profile folder, it is likely that it was installed just for that user. In this case, you may need to log in as user A to uninstall Python from their profile. Have you tried logging in as user A and uninstalling Python from there? Regards, *Sravan Chit

RE: [Request for Assistance] To uninstall python installed in other user profile (Win 10)

2023-04-09 Thread Yogesh Tirthkar
Kumar Chitikesi Sent: Monday, April 10, 2023 2:17 PM To: Yogesh Tirthkar Cc: python-list@python.org Subject: Re: [Request for Assistance] To uninstall python installed in other user profile (Win 10) [cid:image001.png@01D96BB7.7B62F3D0] If Python was installed by user A in their own profile

Re: [Request for Assistance] To uninstall python installed in other user profile (Win 10)

2023-04-09 Thread Thomas Passin
ower, Singapore 068912 -Original Message- From: Python-list On Behalf Of Thomas Passin Sent: Wednesday, March 29, 2023 12:19 AM To: python-list@python.org Subject: Re: [Request for Assistance] To uninstall python installed in other user profile (Win 10) [[External Mail] Do not cl

RE: [Request for Assistance] To uninstall python installed in other user profile (Win 10)

2023-04-09 Thread Yogesh Tirthkar
| 168 Robinson Road, #37-01, Capital Tower, Singapore 068912 -Original Message- From: Python-list On Behalf Of Thomas Passin Sent: Wednesday, March 29, 2023 12:19 AM To: python-list@python.org Subject: Re: [Request for Assistance] To uninstall python installed in other user profile (W

Re: [Request for Assistance] To uninstall python installed in other user profile (Win 10)

2023-03-28 Thread Thomas Passin
On 3/28/2023 12:56 AM, Yogesh Tirthkar wrote: Hi Team, Could you please advise on the scenario in windows 10 machine : Where we need to uninstall/remove python from user profile A (installed by user A in its own profile folder) - via an admin user or system account. Currently when we try to u

Re: Request for assistance (hopefully not OT)

2022-05-21 Thread Michael Torrie
On 5/21/22 06:19, o1bigtenor wrote: > more useful - - - - well - - - - I don't have to wonder why 'linux' is > used as much > by the general populace as it is. The community likes to destroy > itself - - - it > is a pity - - - - the community has so much to offer. As far as community goes, the Lin

Re: Request for assistance (hopefully not OT)

2022-05-21 Thread o1bigtenor
On Tue, May 17, 2022 at 6:20 AM o1bigtenor wrote: > > Greetings > > I was having space issues in my /usr directory so I deleted some > programs thinking that the space taken was more an issue than having > older versions of the program. > Found the responses to my request quite interesting - - -

Re: Request for assistance (hopefully not OT)

2022-05-18 Thread Loris Bennett
Chris Angelico writes: > On Wed, 18 May 2022 at 04:05, Loris Bennett > wrote: >> >> [snip (26 lines)] >> >> > I think you had a problem before that. Debian testing is not an >> > operating system you should be using if you have a fairly good >> > understanding of how Debian (or Linux in genera

Re: Request for assistance (hopefully not OT)

2022-05-17 Thread Michael Torrie
On 5/17/22 05:20, o1bigtenor wrote: > What can I do to correct this self-inflicted problem? Those are always the fun ones. Reminds me of when I was first learning Linux using Red Hat Linux 5.0 or 5.1. This was long before nice dependency-solving tools like apt. I wanted to install and run StarO

Re: Request for assistance (hopefully not OT)

2022-05-17 Thread Chris Angelico
On Wed, 18 May 2022 at 04:05, Loris Bennett wrote: > > [snip (26 lines)] > > > I think you had a problem before that. Debian testing is not an > > operating system you should be using if you have a fairly good > > understanding of how Debian (or Linux in general) works. > > Should be > > I thin

Re: Request for assistance (hopefully not OT)

2022-05-17 Thread Chris Angelico
On Wed, 18 May 2022 at 04:05, Loris Bennett wrote: > > So now I have problems. > > I think you had a problem before that. Debian testing is not an > operating system you should be using if you have a fairly good > understanding of how Debian (or Linux in general) works. I take issue with that! D

Re: Request for assistance (hopefully not OT)

2022-05-17 Thread Grant Edwards
On 2022-05-17, Loris Bennett wrote: > It might be possible to fix the system. If will probably be fairly > difficult, but you would probably learn a lot doing it. However, if I > were you, I would just install Debian stable over your borked system and > then learn a bit more about package manag

Re: Request for assistance (hopefully not OT)

2022-05-17 Thread Loris Bennett
o1bigtenor writes: > Greetings > > I was having space issues in my /usr directory so I deleted some > programs thinking that the space taken was more an issue than having > older versions of the program. > > So one of the programs I deleted (using rm -r) was python3.9. Deleting anything from /us

Re: Request for assistance (hopefully not OT)

2022-05-17 Thread Loris Bennett
[snip (26 lines)] > I think you had a problem before that. Debian testing is not an > operating system you should be using if you have a fairly good > understanding of how Debian (or Linux in general) works. Should be I think you had a problem before that. Debian testing is not an operatin

Re: Request for assistance (hopefully not OT)

2022-05-17 Thread Chris Angelico
On Tue, 17 May 2022 at 21:22, o1bigtenor wrote: > > Greetings > > I was having space issues in my /usr directory so I deleted some > programs thinking that the space taken was more an issue than having > older versions of the program. > > So one of the programs I deleted (using rm -r) was python3.

Re: Request for assistance (hopefully not OT)

2022-05-17 Thread Martin Di Paola
Try to reinstall python and only python and if you succeeds, then try to reinstall the other tools. For this, use "apt-get" instead of "apt" $ sudo apt-get reinstall python3 When a system is heavily broken, be extra careful and read the output of the programs. If "apt-get" says than in order to

Re: Request to advise error for python.

2021-10-23 Thread tommy yama
Thank you MRAB. As somebody mentioned before, the easiest solution is you can do pip install before typing python. That would work. On Sun, Oct 24, 2021 at 12:00 AM MRAB wrote: > On 2021-10-23 14:53, tommy yama wrote: > > It seems you use windows to install. > > > > > > Then, you need conda. Pi

Re: Request to advise error for python.

2021-10-23 Thread MRAB
On 2021-10-23 14:53, tommy yama wrote: It seems you use windows to install. Then, you need conda. Pip works for Linux. On Windows, 'conda' is for the Anaconda version of Python. If you're using the standard version of Python from python.org you use pip or, preferably, py -m pip. Check thi

Re: Request to advise error for python.

2021-10-23 Thread tommy yama
It seems you use windows to install. Then, you need conda. Pip works for Linux. Check this out. https://numpy.org/install/ On Thu, Oct 21, 2021, 11:35 PM Grant Edwards wrote: > On 2021-10-21, Mats Wichmann wrote: > > > There are some nuances. If you are on a Linux system, Python is a > > s

Re: Request to advise error for python.

2021-10-21 Thread Grant Edwards
On 2021-10-21, Mats Wichmann wrote: > There are some nuances. If you are on a Linux system, Python is a > system program and you don't want to try to install into system > locations (you'll run into permission problems anyway), so trying a user > install is useful. So: > > pip install --user

Re: Request to advise error for python.

2021-10-21 Thread Mats Wichmann
On 10/20/21 23:10, 정성학(대학원생-자동차IT융합전공) via Python-list wrote: Hi There are some errors in order to install numpy as follows. pip install numpy File "", line 1 pip install numpy ^ SyntaxError: invalid syntax. Perhaps you forgot a comma? Would you advise me to co

Re: Request to advise error for python.

2021-10-21 Thread 황병희
황병희 writes: > Dear 정성학, > [image: image.png] > > If you would like to show us your image, then write down the github/gitlab > link. ... This is example: https://gitlab.com/soyeomul/test/-/commit/80d2b4f5e8eda0238301e9bca5bc33f0127572fd Sincerely, Gopher Byung-Hee -- https://mail.python.or

Re: Request to advise error for python.

2021-10-21 Thread 대학원생-자동차IT융합전공
Hi There are some errors in order to install numpy as follows. >>> pip install numpy File "", line 1 pip install numpy ^ SyntaxError: invalid syntax. Perhaps you forgot a comma? Would you advise me to correct error and install numpy or pandas? [image: image.png]

Re: Request to advise error for python.

2021-10-19 Thread 황병희
Dear 정성학, >>> [image: image.png] If you would like to show us your image, then write down the github/gitlab link. Of course i assume you have github/gitlab account. Because Mailing server does filter for dangerous things such as image file, video clip, action scripts (computer virus), i think...

Re: Request to advise error for python.

2021-10-15 Thread Michael Torrie
On 10/15/21 5:37 PM, 정성학(대학원생-자동차IT융합전공) via Python-list wrote: > Dear Sir, > > resend request Unfortunately your message is still blank. Attachments such as screenshots are not visible to this list. Whenever you ask questions on the list it is helpful to: - state the operating system you are us

Re: Request to advise error for python.

2021-10-15 Thread 대학원생-자동차IT융합전공
Dear Sir, resend request === Seonghark Jeong KUL(Kookmin Unmanned vehicle research Laboratory) GSAEK, Kookmin Univ. E-Mail: seongh...@kookmin.ac.kr HP: 82-10-3600-7143 === 2021년 10월 16일 (토) 오전 8:08, ‍정성학(대학원생-자동차IT융

Re: Request for argmax(list) and argmin(list)

2021-09-02 Thread Dan Stromberg
How about this?: python3 -c 'list_ = [1, 3, 5, 4, 2]; am = max((value, index) for index, value in enumerate(list_)); print(am)' On Wed, Sep 1, 2021 at 6:51 AM ABCCDE921 wrote: > Because that does 2 passes over the entire array when you only need one > and there is no option to specify if you w

Re: Request for argmax(list) and argmin(list)

2021-09-01 Thread Calvin Spealman
If only there were a library that already provides exactly the functions you're asking for... 🤔 On Wed, Sep 1, 2021 at 9:54 AM ABCCDE921 wrote: > Because that does 2 passes over the entire array when you only need one > and there is no option to specify if you want the leftmost or rightmost > el

Re: Request for argmax(list) and argmin(list)

2021-09-01 Thread ABCCDE921
Because that does 2 passes over the entire array when you only need one and there is no option to specify if you want the leftmost or rightmost element On Wednesday, September 1, 2021 at 12:02:29 PM UTC+5:30, Paul Bryan wrote: > Why not: > > >>> l = [1, 3, 5, 9, 2, 7] > >>> l.index(max(l))

Re: Request for argmax(list) and argmin(list)

2021-09-01 Thread Peter Otten
On 01/09/2021 06:25, ABCCDE921 wrote: I dont want to import numpy argmax(list) returns index of (left most) max element >>> import operator >>> second = operator.itemgetter(1) >>> def argmax(values): return max(enumerate(values), key=second)[0] >>> argmax([1, 2, 3, 0]) 2 argm

Re: Request for argmax(list) and argmin(list)

2021-08-31 Thread Paul Bryan
Why not: >>> l = [1, 3, 5, 9, 2, 7] >>> l.index(max(l)) 3 >>> l.index(min(l)) 0 On Tue, 2021-08-31 at 21:25 -0700, ABCCDE921 wrote: > I dont want to import numpy > > argmax(list) >    returns index of (left most) max element > >  argmin(list) >    returns index of (left most) min element --

Re: Request help w/pip install jq

2020-07-19 Thread Mats Wichmann
On 7/19/20 11:42 AM, Dennis Lee Bieber wrote: > On Sun, 19 Jul 2020 10:39:09 -0600, Mats Wichmann > declaimed the following: > >> there is no mention of Windows at all, so the guess would be it's not >> supported. >> > There is a whole open "issue" for that... > > https://github.com/mwilli

Re: Request help w/pip install jq

2020-07-19 Thread MRAB
On 2020-07-19 17:39, Mats Wichmann wrote: On 7/19/20 8:46 AM, Ed Walser wrote: Hi all, I've tried installing jq several times in my local environment, but it fails, saying it can't find a file that pip downloads. Here is the entire pip output: (base) C:\Users\edwal>pip install jq Don't inst

Re: Request help w/pip install jq

2020-07-19 Thread Mats Wichmann
On 7/19/20 8:46 AM, Ed Walser wrote: > Hi all, > > I've tried installing jq several times in my local environment, but it > fails, saying it can't find a file that pip downloads. Here is the entire > pip output: > > (base) C:\Users\edwal>pip install jq Don't install that way, do: python -m pip

Re: Request help w/pip install jq

2020-07-19 Thread MRAB
On 2020-07-19 15:46, Ed Walser wrote: Hi all, I've tried installing jq several times in my local environment, but it fails, saying it can't find a file that pip downloads. Here is the entire pip output: (base) C:\Users\edwal>pip install jq Collecting jq Downloading jq-1.0.2.tar.gz (57 kB)

Re: Request for comments: use-cases for delayed evaluation

2018-05-17 Thread dieter
Steven D'Aprano writes: > Suppose Python had a mechanism to delay the evaluation of expressions > until needed. What would you use it for? Delayed evaluation is some form of "lazy evaluation": evaluate an expression (only) at the time, it is needed (maybe for the first time). The avocates of "

RE: Request for comments: use-cases for delayed evaluation

2018-05-17 Thread Dan Strohl via Python-list
I could easily see using all of the examples; I run into this pretty regularly. What about something like the following (which, honestly is really a combination of other examples). If I have a function that has multiple parameters, each of which might be expensive, but it might break out ear

Re: request fails on wikipedia (https) - certificate verify failed (Posting On Python-List Prohibited)

2017-12-13 Thread Jon Ribbens
On 2017-12-13, Chris Angelico wrote: > On Wed, Dec 13, 2017 at 10:38 PM, Jon Ribbens > wrote: >> On 2017-12-13, Lawrence D’Oliveiro wrote: >>> On Wednesday, December 13, 2017 at 10:17:15 AM UTC+13, Jon Ribbens wrote: Try `pip install certifi` >>> >>> It really is preferable to install stan

Re: request fails on wikipedia (https) - certificate verify failed (Posting On Python-List Prohibited)

2017-12-13 Thread Chris Angelico
On Wed, Dec 13, 2017 at 11:26 PM, Antoon Pardon wrote: > Op 13-12-17 om 13:01 schreef Chris Angelico: >> On Wed, Dec 13, 2017 at 10:38 PM, Jon Ribbens >> wrote: >>> On 2017-12-13, Lawrence D’Oliveiro wrote: On Wednesday, December 13, 2017 at 10:17:15 AM UTC+13, Jon Ribbens wrote: > Try

Re: request fails on wikipedia (https) - certificate verify failed (Posting On Python-List Prohibited)

2017-12-13 Thread Antoon Pardon
Op 13-12-17 om 13:01 schreef Chris Angelico: > On Wed, Dec 13, 2017 at 10:38 PM, Jon Ribbens > wrote: >> On 2017-12-13, Lawrence D’Oliveiro wrote: >>> On Wednesday, December 13, 2017 at 10:17:15 AM UTC+13, Jon Ribbens wrote: Try `pip install certifi` >>> It really is preferable to install s

Re: request fails on wikipedia (https) - certificate verify failed (Posting On Python-List Prohibited)

2017-12-13 Thread Chris Angelico
On Wed, Dec 13, 2017 at 10:38 PM, Jon Ribbens wrote: > On 2017-12-13, Lawrence D’Oliveiro wrote: >> On Wednesday, December 13, 2017 at 10:17:15 AM UTC+13, Jon Ribbens wrote: >>> Try `pip install certifi` >> >> It really is preferable to install standard distro packages where available, >> rather

Re: request fails on wikipedia (https) - certificate verify failed (_ss

2017-12-13 Thread Jon Ribbens
On 2017-12-11, F Massion wrote: > Am Dienstag, 12. Dezember 2017 14:33:42 UTC+1 schrieb Jon Ribbens: >> On 2017-12-11, F Massion wrote: >> > ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed > (_ssl.c:748) >> >> Try `pip install certifi` > > certifi was installed. > If I ma

Re: request fails on wikipedia (https) - certificate verify failed (Posting On Python-List Prohibited)

2017-12-13 Thread Jon Ribbens
On 2017-12-13, Lawrence D’Oliveiro wrote: > On Wednesday, December 13, 2017 at 10:17:15 AM UTC+13, Jon Ribbens wrote: >> Try `pip install certifi` > > It really is preferable to install standard distro packages where available, > rather than resort to pip: > > sudo apt-get install python3-cer

Re: request fails on wikipedia (https) - certificate verify failed (_ssl.c:748)

2017-12-12 Thread F Massion
Am Dienstag, 12. Dezember 2017 14:33:42 UTC+1 schrieb Jon Ribbens: > On 2017-12-11, F Massion wrote: > > ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed > > (_ssl.c:748) > > Try `pip install certifi` certifi was installed. If I make the following changes I do not have t

Re: request fails on wikipedia (https) - certificate verify failed (_ssl.c:748)

2017-12-12 Thread Jon Ribbens
On 2017-12-11, F Massion wrote: > ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed > (_ssl.c:748) Try `pip install certifi` -- https://mail.python.org/mailman/listinfo/python-list

Re: request fails on wikipedia (https) - certificate verify failed (_ssl.c:748)

2017-12-11 Thread dieter
F Massion writes: > ... > I would like to get information from Wikipedia articles and I am testing the > connection to Wikipedia. > > I am running Python 3.6.2 on Windows 10. > > I get certificate errors for all pages with https. > Any suggestions are welcome! > ... > self._sslobj.do_handsh

Re: request fails on wikipedia (https) - certificate verify failed (_ssl.c:748)

2017-12-11 Thread Kryptxy via Python-list
Install pyopenssl package and try again? Original Message On 11 Dec 2017, 16:44, F Massion wrote: > Hi, > > I would like to get information from Wikipedia articles and I am testing the > connection to Wikipedia. > > I am running Python 3.6.2 on Windows 10. > > I get certificate

Re: Request Help With Gdk.Display

2017-08-16 Thread Wildman via Python-list
On Wed, 16 Aug 2017 14:33:27 -0500, Wildman wrote: > On Wed, 16 Aug 2017 19:11:16 +0100, MRAB wrote: > >> On 2017-08-16 18:57, Wildman via Python-list wrote: >>> I am working on a program for the Linux platform that >>> reports system information. The program reports screen >>> information, numb

Re: Request Help With Gdk.Display

2017-08-16 Thread Wildman via Python-list
On Wed, 16 Aug 2017 19:11:16 +0100, MRAB wrote: > On 2017-08-16 18:57, Wildman via Python-list wrote: >> I am working on a program for the Linux platform that >> reports system information. The program reports screen >> information, number of monitors, resolution of each one >> and the total reso

Re: Request Help With Gdk.Display

2017-08-16 Thread MRAB
On 2017-08-16 18:57, Wildman via Python-list wrote: I am working on a program for the Linux platform that reports system information. The program reports screen information, number of monitors, resolution of each one and the total resolution. It does it using a couple of external utils, Xrandr

Re: Request Help With pkexec

2017-04-05 Thread Wildman via Python-list
On Mon, 03 Apr 2017 14:29:56 -0500, Wildman wrote: > Python 3.4.2 > Tkinter 8.6 > GCC 4.9.1 on Linux > > I am working on a gui program using Tkinter. The program will > have a feature to restart as root. I am testing different gui > front-ends from a terminal to raise privileges and I want to >

Re: Request Help With ttk.Notebook Tabs

2017-02-21 Thread Terry Reedy
On 2/21/2017 1:02 PM, Wildman via Python-list wrote: Python 3.4.2 Linux platform I am working on a program that has tabs created with ttk.Notebook. The code for creating the tabs is working but there is one thing I have not been able to figure out. As is, the tabs are located up against the lo

Re: Request Help With ttk.Notebook Tabs

2017-02-21 Thread Wildman via Python-list
On Tue, 21 Feb 2017 18:22:31 +, MRAB wrote: > On 2017-02-21 18:02, Wildman via Python-list wrote: >> Python 3.4.2 >> Linux platform >> >> >> I am working on a program that has tabs created with ttk.Notebook. >> The code for creating the tabs is working but there is one thing I >> have not been

Re: Request Help With ttk.Notebook Tabs

2017-02-21 Thread Wildman via Python-list
On Tue, 21 Feb 2017 12:02:50 -0600, Wildman wrote: > Python 3.4.2 > Linux platform > > > I am working on a program that has tabs created with ttk.Notebook. > The code for creating the tabs is working but there is one thing I > have not been able to figure out. As is, the tabs are located up > a

Re: Request Help With ttk.Notebook Tabs

2017-02-21 Thread MRAB
On 2017-02-21 18:02, Wildman via Python-list wrote: Python 3.4.2 Linux platform I am working on a program that has tabs created with ttk.Notebook. The code for creating the tabs is working but there is one thing I have not been able to figure out. As is, the tabs are located up against the low

Re: Request Help With Byte/String Problem

2016-12-03 Thread Wildman via Python-list
On Fri, 02 Dec 2016 19:39:39 +, Grant Edwards wrote: > On 2016-12-02, Wildman via Python-list wrote: >> On Fri, 02 Dec 2016 15:11:18 +, Grant Edwards wrote: >> >>> I don't know what the "addr" array contains, but if addr is a byte >>> string, then the "int()" call is not needed, in Python

Re: Request Help With Byte/String Problem

2016-12-02 Thread Grant Edwards
On 2016-12-02, Wildman via Python-list wrote: > On Fri, 02 Dec 2016 15:11:18 +, Grant Edwards wrote: > >> I don't know what the "addr" array contains, but if addr is a byte >> string, then the "int()" call is not needed, in Pythong 3, a byte is >> already an integer: >> >> def format_ip(a

Re: Request Help With Byte/String Problem

2016-12-02 Thread Wildman via Python-list
On Fri, 02 Dec 2016 15:11:18 +, Grant Edwards wrote: > I don't know what the "addr" array contains, but if addr is a byte > string, then the "int()" call is not needed, in Pythong 3, a byte is > already an integer: > > def format_ip(a): >return '.'.join(str(b) for b in a) > > add

Re: Request Help With Byte/String Problem

2016-12-02 Thread Grant Edwards
On 2016-12-02, Wildman via Python-list wrote: > On Wed, 30 Nov 2016 14:39:02 +0200, Anssi Saari wrote: > >> There'll be a couple more issues with the printing but they should be >> easy enough. > > I finally figured it out, I think. I'm not sure if my changes are > what you had in mind but it is

Re: Request Help With Byte/String Problem

2016-12-01 Thread Wildman via Python-list
On Wed, 30 Nov 2016 14:39:02 +0200, Anssi Saari wrote: > There'll be a couple more issues with the printing but they should be > easy enough. I finally figured it out, I think. I'm not sure if my changes are what you had in mind but it is working. Below is the updated code. Thank you for not gi

Re: Request Help With Byte/String Problem

2016-12-01 Thread Wildman via Python-list
On Wed, 30 Nov 2016 07:54:45 -0500, Dennis Lee Bieber wrote: > On Tue, 29 Nov 2016 22:01:51 -0600, Wildman via Python-list > declaimed the following: > >>I really appreciate your reply. Your suggestion fixed that >>problem, however, a new error appeared. I am doing some >>research to try to fi

Re: Request Help With Byte/String Problem

2016-11-30 Thread Anssi Saari
Wildman via Python-list writes: > On Tue, 29 Nov 2016 18:29:51 -0800, Paul Rubin wrote: > >> Wildman writes: >>> names = array.array("B", '\0' * bytes) >>> TypeError: cannot use a str to initialize an array with typecode 'B' >> >> In Python 2, str is a byte string and you can do that. In P

Re: Request Help With Byte/String Problem

2016-11-29 Thread Wildman via Python-list
On Tue, 29 Nov 2016 18:29:51 -0800, Paul Rubin wrote: > Wildman writes: >> names = array.array("B", '\0' * bytes) >> TypeError: cannot use a str to initialize an array with typecode 'B' > > In Python 2, str is a byte string and you can do that. In Python 3, > str is a unicode string, and if

Re: Request Help With Byte/String Problem

2016-11-29 Thread Paul Rubin
Wildman writes: > names = array.array("B", '\0' * bytes) > TypeError: cannot use a str to initialize an array with typecode 'B' In Python 2, str is a byte string and you can do that. In Python 3, str is a unicode string, and if you want a byte string you have to specify that explicitly, like

Re: Request for help

2016-07-19 Thread MRAB
On 2016-07-19 22:21, alister wrote: On Tue, 19 Jul 2016 13:06:39 +1000, Steven D'Aprano wrote: On Tue, 19 Jul 2016 06:20 am, alister wrote: I suggest next time you stay awake during lessons. That's an uncalled for nasty comment. You don't know the O.P's issues or why he is having difficulty

Re: Request for help

2016-07-19 Thread alister
On Tue, 19 Jul 2016 13:06:39 +1000, Steven D'Aprano wrote: > On Tue, 19 Jul 2016 06:20 am, alister wrote: > >> I suggest next time you stay awake during lessons. > > That's an uncalled for nasty comment. You don't know the O.P's issues or > why he is having difficulty. because he has failed to

Re: Request for help

2016-07-19 Thread Steven D'Aprano
On Mon, 18 Jul 2016 07:50 pm, Eric kago wrote: > Hi Pythoners > > I need help in understanding hoe to put up the code to the following > command Hi Eric, You might find that the "Tutor" mailing list is better for simple questions like this: https://mail.python.org/mailman/listinfo/tutor Reme

Re: Request for help

2016-07-18 Thread Steven D'Aprano
On Tue, 19 Jul 2016 06:20 am, alister wrote: > I suggest next time you stay awake during lessons. That's an uncalled for nasty comment. You don't know the O.P's issues or why he is having difficulty. -- Steven “Cheer up,” they said, “things could be worse.” So I cheered up, and sure enough, t

Re: Request for help

2016-07-18 Thread alister
On Mon, 18 Jul 2016 12:50:04 +0300, Eric kago wrote: > Hi Pythoners > > I need help in understanding hoe to put up the code to the following > command > > >- Create a constructor that takes in an integer and assigns this to a >`balance` property > > > > > Regards, > > Eric Kago +25

Re: Request for help

2016-07-18 Thread Eric kago
Hi Pythoners I need help in understanding hoe to put up the code to the following command - Create a constructor that takes in an integer and assigns this to a `balance` property Regards, Eric Kago +254(0)714249373 Nairobi Kenya -- https://mail.python.org/mailman/listinfo/python-list

Re: Request for opinions: A cross language development tool

2016-06-23 Thread Marko Rauhamaa
Laurent Pointal : > Tal Zion wrote: >> Bridge compiles Python modules into native code, > > What is "native", really microprocessor executable binary ? How do you > adapt to diversity? They don't need to adapt to different CPU types. They can list supported targets. Also, they could generate, sa

Re: Request for opinions: A cross language development tool

2016-06-23 Thread Laurent Pointal
Tal Zion wrote: > Bridge compiles Python modules into native code, What is "native", really microprocessor executable binary ? How do you adapt to diversity? > which requires us to > support Python *language* features (for, while, class, generators, etc) > but it reuses CPython's libraries (li

Re: Request for opinions: A cross language development tool

2016-06-21 Thread Chris Angelico
On Wed, Jun 22, 2016 at 4:30 AM, Tal Zion wrote: > We use CPython's implementation of exec and eval. > (Please don't keep top-posting.) Okay. So as I understand it, this requires the full CPython interpreter to be included at run-time; how does this help you work seamlessly with other languages?

Re: Request for opinions: A cross language development tool

2016-06-21 Thread Tal Zion
We use CPython's implementation of exec and eval. Tal On 06/21/2016 09:26 PM, Chris Angelico wrote: On Wed, Jun 22, 2016 at 4:01 AM, Tal Zion wrote: Bridge compiles Python modules into native code, which requires us to support Python *language* features (for, while, class, generators, etc) bu

Re: Request for opinions: A cross language development tool

2016-06-21 Thread Chris Angelico
On Wed, Jun 22, 2016 at 4:01 AM, Tal Zion wrote: > Bridge compiles Python modules into native code, which requires us to > support Python *language* features (for, while, class, generators, etc) but > it reuses CPython's libraries (list, dict, str, etc) so we don't implement > those, and it also u

Re: Request for opinions: A cross language development tool

2016-06-21 Thread Tal Zion
Bridge compiles Python modules into native code, which requires us to support Python *language* features (for, while, class, generators, etc) but it reuses CPython's libraries (list, dict, str, etc) so we don't implement those, and it also uses CPython's ast module in order to parse Python code

Re: Request for opinions: A cross language development tool

2016-06-21 Thread BartC
On 21/06/2016 15:06, Tal Zion wrote: * Bridge makes Python faster: Python code compiled through Bridge is compiled to native code. Because we are leveraging LLVM's many optimizations, Python code will run faster than ever. In that case forget any of your other claims. Making any Python code f

Re: Request for opinions: A cross language development tool

2016-06-21 Thread Chris Angelico
On Wed, Jun 22, 2016 at 12:06 AM, Tal Zion wrote: > * Bridge makes Python faster: Python code compiled through Bridge is > compiled to native code. Because we are leveraging LLVM's many > optimizations, Python code will run faster than ever. Can you run *any* Python program through Bridge? Absolu

Re: Request for opinions: A cross language development tool

2016-06-21 Thread Michael Torrie
On 06/21/2016 06:10 AM, Tal Zion wrote: > So how does this magic work? We developed a new compiler platform called > Bridge. At the heart of Bridge is the Bridge Extensible Code > Representation (BECR). Code in any language is parsed into an AST and is > then translated to the BECR. The BECR sup

Re: Request for opinions: A cross language development tool

2016-06-21 Thread Steven D'Aprano
On Tue, 21 Jun 2016 10:10 pm, Tal Zion wrote: > * > > Hey! > > I would like to know your opinions about a project a friend and I have > been developing for about a year now, which we really think could > empower Python. Today Python is mostly used on servers. Really? > Many people who > want

Re: Request for opinions: A cross language development tool

2016-06-21 Thread Tal Zion
On 06/21/2016 03:39 PM, Christian Gollwitzer wrote: Am 21.06.16 um 14:10 schrieb Tal Zion: develop frontends in Java, Swift, Javascript, etc. > So how does this magic work? We developed a new compiler platform called Bridge. At the heart of Bridge is the Bridge Extensible Code Representation (

Re: Request for opinions: A cross language development tool

2016-06-21 Thread Christian Gollwitzer
Am 21.06.16 um 14:10 schrieb Tal Zion: develop frontends in Java, Swift, Javascript, etc. > So how does this magic work? We developed a new compiler platform called Bridge. At the heart of Bridge is the Bridge Extensible Code Representation (BECR). Code in any language is parsed into an AST and

Re: Request to mailing list Python-list rejected

2016-04-05 Thread Thud Foo
On Tue, Apr 5, 2016 at 12:59 PM, Ethan Furman wrote: > If it's not a PEP, or obviously non-quoted anywhere-close-to-on-topic > content, I bounce. > ​++good​ -- I have seen the future and I'm not in it! -- https://mail.python.org/mailman/listinfo/python-list

Re: Request to mailing list Python-list rejected

2016-04-05 Thread Ethan Furman
On 04/05/2016 12:12 PM, Tim Golden wrote: On 05/04/2016 08:34, Oscar Benjamin wrote: When did this start happening? The message in question includes a big block of code posted by someone else as context. My comment was that the code was incomplete so I felt it reasonable to include it as cont

Re: Request to mailing list Python-list rejected

2016-04-05 Thread Tim Golden
On 05/04/2016 08:34, Oscar Benjamin wrote: On 5 Apr 2016 03:50, wrote: Your request to the Python-list mailing list Posting of your message titled "Re: Plot/Graph" has been rejected by the list moderator. The moderator gave the following reason for rejecting your request: "Your messag

Re: Request to mailing list Python-list rejected

2016-04-05 Thread Oscar Benjamin
On 5 Apr 2016 03:50, wrote: > > Your request to the Python-list mailing list > > Posting of your message titled "Re: Plot/Graph" > > has been rejected by the list moderator. The moderator gave the > following reason for rejecting your request: > > "Your message was too big; please trim unnece

Re: Request Help With Function

2016-04-04 Thread Wildman via Python-list
On Mon, 04 Apr 2016 21:02:53 +0100, MRAB wrote: > On 2016-04-04 20:42, Wildman via Python-list wrote: >> launch_help() >> > .Popen will accept either a string or a list of strings. > > You're giving it a list that contains a string and a list. Yep, that was my foolish mistake. Thanks. > BTW

Re: Request Help With Function

2016-04-04 Thread Wildman via Python-list
On Mon, 04 Apr 2016 13:54:56 -0600, Ian Kelly wrote: > On Mon, Apr 4, 2016 at 1:42 PM, Wildman via Python-list > wrote: >> commandlist = commandlist.split(",") > > commandlist is a list. > >> command = [target, commandlist] >> subprocess.Popen(command) > > T

Re: Request Help With Function

2016-04-04 Thread MRAB
On 2016-04-04 20:42, Wildman via Python-list wrote: I am working on a Linux gui program where I want to be able to click a Help button and open a man page using a viewer. I wrote a search function that can be called several times, if needed, with different arguments. I wrote a test program that

Re: Request Help With Function

2016-04-04 Thread Ian Kelly
On Mon, Apr 4, 2016 at 1:42 PM, Wildman via Python-list wrote: > commandlist = commandlist.split(",") commandlist is a list. > command = [target, commandlist] > subprocess.Popen(command) This is passing a list containing two elements: the first is a string, a

Re: Request More Help With XBM Image

2016-03-01 Thread Wildman via Python-list
On Tue, 01 Mar 2016 12:56:03 -0600, Wildman wrote: > On Tue, 01 Mar 2016 19:26:55 +0100, Peter Otten wrote: > >> An exception is raised because you pass the command as a single argument > > > > I did not realize that how the command was passed would > make such a difference. I guess I am stu

Re: Request More Help With XBM Image

2016-03-01 Thread Wildman via Python-list
On Tue, 01 Mar 2016 20:30:59 +0100, Christian Gollwitzer wrote: > Am 29.02.16 um 22:51 schrieb Wildman: >> I want to take an image file, convert it to XBM format and >> display it. Thanks to Mr. Otten I can open and display the >> XBM image without any problems. The script first calls an >> exte

Re: Request More Help With XBM Image

2016-03-01 Thread Christian Gollwitzer
Am 29.02.16 um 22:51 schrieb Wildman: I want to take an image file, convert it to XBM format and display it. Thanks to Mr. Otten I can open and display the XBM image without any problems. The script first calls an external program for the image conversion then I can open and display it. Of cou

Re: Request More Help With XBM Image

2016-03-01 Thread Wildman via Python-list
On Tue, 01 Mar 2016 19:26:55 +0100, Peter Otten wrote: > An exception is raised because you pass the command as a single argument I did not realize that how the command was passed would make such a difference. I guess I am stuck in my old VB habits for creating variables. You don't have to s

Re: Request More Help With XBM Image

2016-03-01 Thread Peter Otten
Wildman via Python-list wrote: > On Tue, 01 Mar 2016 09:56:56 +0100, Peter Otten wrote: >> Wildman via Python-list wrote: >>> convert = "convert " + fileName + " -resize 48x48! -threshold 55% xbm:-" >>> p = subprocess.Popen([convert], stdout=subprocess.PIPE, shell=True) >>> xbmFile, err = p.comm

Re: Request More Help With XBM Image

2016-03-01 Thread Wildman via Python-list
On Tue, 01 Mar 2016 09:56:56 +0100, Peter Otten wrote: > Wildman via Python-list wrote: > >> I want to take an image file, convert it to XBM format and >> display it. Thanks to Mr. Otten I can open and display the >> XBM image without any problems. The script first calls an >> external program

Re: Request More Help With XBM Image

2016-03-01 Thread Peter Otten
Wildman via Python-list wrote: > I want to take an image file, convert it to XBM format and > display it. Thanks to Mr. Otten I can open and display the > XBM image without any problems. The script first calls an > external program for the image conversion then I can open > and display it. Of c

Re: Request Help With Displaying XBM Image

2016-02-26 Thread Wildman via Python-list
On Fri, 26 Feb 2016 22:49:58 +0100, Peter Otten wrote: > Wildman via Python-list wrote: > It's not you, the program as you wrote it should and would show the image, > were it not for an odd quirk in how images are handled in tkinter: > > You have to keep an explicit reference of the Image to pr

  1   2   3   >