Proposed Python Computer Program - Feb. 17, 2024

2024-02-18 Thread Science Researcher via Python-list
PROPOSED PYTHON COMPUTER LANGUAGE PROGRAM - Posted on February 17, 2024 TOPICS Some Background Information Test Post Newsgroups Adding Posting Dates To Newsgroup Notes E-mail Address Other Internet Security Steps Personal Opinion Statements SOME BACKGROUND INFORMATION A fair amount of

Re: Unable to completely remove Python 3.10.9 (64 bit) from Computer

2023-10-05 Thread Mats Wichmann via Python-list
On 10/4/23 13:08, Roland Müller via Python-list wrote: On 25.9.2023 19.58, Pau Vilchez via Python-list wrote:     Hello Python Team,     I am somehow unable to completely remove Python 3.10.9 (64 Bit) from my     computer. I have tried deleting the Appdata folder then repairing and then

Re: Unable to completely remove Python 3.10.9 (64 bit) from Computer

2023-10-04 Thread Roland Müller via Python-list
On 25.9.2023 19.58, Pau Vilchez via Python-list wrote: Hello Python Team, I am somehow unable to completely remove Python 3.10.9 (64 Bit) from my computer. I have tried deleting the Appdata folder then repairing and then uninstalling but it still persists in the remove

Unable to completely remove Python 3.10.9 (64 bit) from Computer

2023-10-04 Thread Pau Vilchez via Python-list
Hello Python Team,   I am somehow unable to completely remove Python 3.10.9 (64 Bit) from my computer. I have tried deleting the Appdata folder then repairing and then uninstalling but it still persists in the remove/add program function in windows 10. I am just trying to

Mtg ANN: Using computer vision AI to help protect the worlds rarest dolphin

2023-08-08 Thread dn via Python-list
Wed 16 Aug 2023, 1800~20:30 NZST (0600~0830 UTC, late-Tue in US) Details and RSVP at https://www.meetup.com/nzpug-auckland/events/295091858/ Teaching a computer to see. How computer vision is helping to protect the world’s rarest dolphin and how you can train your own model. Tane van der

Re: New computer, new Python

2022-12-09 Thread Thomas Passin
It sounds like on your old computer, you used some kind of program to write python code and perhaps to run it too. It would help if you could say what that program was. Python itself - the actual program called "python.exe" on Windows - runs a Python interpreter inside a Window

Re: New computer, new Python

2022-12-09 Thread Mats Wichmann
On 12/9/22 14:56, rbowman wrote: On Fri, 9 Dec 2022 12:13:16 -0500 (EST), ker...@polaris.net wrote: How can I write my own Python Functions and subroutines in the new Python? Personally, I would go with VS Code: https://learn.microsoft.com/en-us/training/modules/python-install-vscode/ It su

Re: New computer, new Python

2022-12-09 Thread rbowman
On Fri, 9 Dec 2022 12:13:16 -0500 (EST), ker...@polaris.net wrote: > How can I write my own Python Functions and subroutines in the new > Python? Personally, I would go with VS Code: https://learn.microsoft.com/en-us/training/modules/python-install-vscode/ It supports virtual environments nicel

Re: New computer, new Python

2022-12-09 Thread Weatherby,Gerard
Python in an IDE is much easier in the long run. We use PyCharm – there’s a free version: https://www.jetbrains.com/pycharm/download/#section=windows From: Python-list on behalf of DFS Date: Friday, December 9, 2022 at 4:36 PM To: python-list@python.org Subject: Re: New computer, new Python

Re: New computer, new Python

2022-12-09 Thread DFS
On 12/9/2022 12:13 PM, ker...@polaris.net wrote: Hello. I've downloaded the new Python to my new Computer, and the new Python mystifies me. Instead of an editor, it looks like a Dos executable program. python.exe is a Windows executable. How can I write my own Python Function

Re: New computer, new Python

2022-12-09 Thread dn
On 10/12/2022 06.13, ker...@polaris.net wrote: Hello. I've downloaded the new Python to my new Computer, and the new Python mystifies me. Instead of an editor, it looks like a Dos executable program. How can I write my own Python Functions and subroutines in the new Python?

New computer, new Python

2022-12-09 Thread ker...@polaris.net
Hello. I've downloaded the new Python to my new Computer, and the new Python mystifies me. Instead of an editor, it looks like a Dos executable program. How can I write my own Python Functions and subroutines in the new Python? It is version 3.11 (64 bit). K

OT: Computer vision

2022-07-22 Thread GB
I'm looking for some help getting started with a computer vision project. Can anyone here either help or point me in the direction of a better NG/forum, please? -- https://mail.python.org/mailman/listinfo/python-list

Re: NOT ABLE TO DOWNLOAD speech_recognition ON MY COMPUTER

2021-04-01 Thread Igor Korot
Hi, On Thu, Apr 1, 2021 at 12:23 PM ᗷᑌᑎᑎY wrote: > >Hello everyone. I am not able to download speech_recognition . I am not >professional just a beggnier but I decided and started developing a voice >commanding software and I need to download speech_recognition. When I >enter the

NOT ABLE TO DOWNLOAD speech_recognition ON MY COMPUTER

2021-04-01 Thread ᗷᑌᑎᑎY
Hello everyone. I am not able to download speech_recognition . I am not professional just a beggnier but I decided and started developing a voice commanding software and I need to download speech_recognition. When I enter the command pip install speech_recognition it say's we cannot

Re: NOT ABLE TO DOWNLOAD speech_recognition ON MY COMPUTER

2021-04-01 Thread Marco Ippolito
On 2021-04-01, ᗷᑌᑎᑎY wrote: > When I enter the command pip install speech_recognition it say’s we cannot > find a compatible version. Try: ``` pip install SpeechRecognition ``` What's the output? -- https://mail.python.org/mailman/listinfo/python-list

Re: App made with pyinstaller is not running on another computer.

2020-02-02 Thread Abdur-Rahmaan Janhangeer
recompile with the latest dev versio of pyinstaller, fixed my issue. On Sun, 2 Feb 2020, 19:55 Souvik Dutta, wrote: > Hi, > I made an executable file with pyinstaller on my pc which had python 3.7. > It ran well in my pc but when I tried to run it on my friend computer > hav

Re: App made with pyinstaller is not running on another computer.

2020-02-02 Thread Chris Angelico
On Mon, Feb 3, 2020 at 2:57 AM Souvik Dutta wrote: > > Hi, > I made an executable file with pyinstaller on my pc which had python 3.7. > It ran well in my pc but when I tried to run it on my friend computer > having a 32 bit windows 10 os it didn't run it is just saying that &

App made with pyinstaller is not running on another computer.

2020-02-02 Thread Souvik Dutta
Hi, I made an executable file with pyinstaller on my pc which had python 3.7. It ran well in my pc but when I tried to run it on my friend computer having a 32 bit windows 10 os it didn't run it is just saying that "this app cannot be run on your pc". My pc has a 64 bit version of

Re: Unable to remove python from my computer.

2018-11-07 Thread Rhodri James
ignature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> On Tue, Nov 6, 2018 at 5:42 AM Rhodri James wrote: On 06/11/2018 09:25, Thomas Jollans wrote: On 2018-11-06 10:05, Varshit Jain wrote: Hi Python Suppo

Re: Unable to remove python from my computer.

2018-11-06 Thread Rhodri James
On 06/11/2018 09:25, Thomas Jollans wrote: On 2018-11-06 10:05, Varshit Jain wrote: Hi Python Support Team, I just want to remove python 3.6.6 from my computer. I am unable to do it. Please find attached video that describe my problem. Use your words, friend! (this list is text-only

Re: Unable to remove python from my computer.

2018-11-06 Thread Thomas Jollans
On 2018-11-06 10:05, Varshit Jain wrote: > Hi Python Support Team, > > > I just want to remove python 3.6.6 from my computer. I am unable to do > it. Please find attached video that describe my problem. Use your words, friend! (this list is text-only) -- https://mail.pyt

Unable to remove python from my computer.

2018-11-06 Thread Varshit Jain
Hi Python Support Team, I just want to remove python 3.6.6 from my computer. I am unable to do it. Please find attached video that describe my problem. Suggest me solution / Steps to remove python from my PC. Regards, Varshit Jain -- https://mail.python.org/mailman/listinfo/python-list

Re: is there a problem with IDLE, python3.7.0, or my computer?

2018-07-05 Thread Chris Angelico
On Fri, Jul 6, 2018 at 4:20 AM, Bonn Mowae lazaga <2ndmo...@gmail.com> wrote: > hello, I would like to notify you that there may be a problem with IDLE or > Python3.7.0 > I installed python 3.7.0 for my 64 bit windows 10, and it was working fine, I > could also use turtle graphics using the comma

is there a problem with IDLE, python3.7.0, or my computer?

2018-07-05 Thread Bonn Mowae lazaga
hello, I would like to notify you that there may be a problem with IDLE or Python3.7.0 I installed python 3.7.0 for my 64 bit windows 10, and it was working fine, I could also use turtle graphics using the command:    from turtle import *    and:    forward(200)    and other control comman

Computer History Museum Announces 2018 Fellow Award Honorees

2018-02-21 Thread Mark Lawrence
One is the BDFL http://www.computerhistory.org/press/2018-fellow-honorees.html -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Can't load Python program on my HP ENVY computer

2018-02-04 Thread Bernard via Python-list
I have an HP ENVY TouchSmart 17 Notebook PC. Windows 8.1. Intel(R) Core(TM) i7-4700 mQ cpu @ 2.40 ghz 2.40ghz 64-bit operation system x64 based processor Full Windows touch support with 10 touch points Can you send me the link to the correct Python version that will run on this computer

Any advice on getting Pyscripter installed & working with Python on Windows 10 computer ?

2017-08-15 Thread TKS
> > > Hi there, > > I am trying to assist my daughter with a school IT task to install Python > & Pyscripter on a Windows 10 notebook. (64 bit system) > > It seems no version of Pyscripter will work - it fails to complete the > installation & ends with an error ("Python could not be properly > init

Re: The hardest problem in computer science...

2017-01-10 Thread Ethan Furman
On 01/10/2017 08:06 AM, Paul Moore wrote: On Tuesday, 10 January 2017 15:47:20 UTC, Paul Moore wrote: On Saturday, 7 January 2017 19:14:43 UTC, Ethan Furman wrote: Ya know, that looks an /awful/ lot like a collection! Maybe even an Enum? ;) -- 8<

Re: The hardest problem in computer science...

2017-01-10 Thread Paul Moore
On Tuesday, 10 January 2017 15:47:20 UTC, Paul Moore wrote: > On Saturday, 7 January 2017 19:14:43 UTC, Ethan Furman wrote: > > Ya know, that looks an /awful/ lot like a collection! Maybe even an Enum? > > ;) > > > > -- 8< --- > > from aenu

Re: The hardest problem in computer science...

2017-01-10 Thread Paul Moore
On Saturday, 7 January 2017 19:14:43 UTC, Ethan Furman wrote: > Ya know, that looks an /awful/ lot like a collection! Maybe even an Enum? ;) > > -- 8< --- > from aenum import Enum # note the 'a' before the 'enum' :) > > class Theme(Enum, i

Re: The hardest problem in computer science...

2017-01-07 Thread Ethan Furman
On 01/06/2017 11:34 PM, Steve D'Aprano wrote: On Sat, 7 Jan 2017 12:03 am, Steve D'Aprano wrote: The second hardest problem in computer science is cache invalidation. The *hardest* problem is naming things. After puzzling over this for three days, it suddenly hit me: Theme =

Re: The hardest problem in computer science...

2017-01-06 Thread Steve D'Aprano
On Sat, 7 Jan 2017 12:03 am, Steve D'Aprano wrote: > The second hardest problem in computer science is cache invalidation. > > The *hardest* problem is naming things. Thanks everyone who answered, but I think some of you misunderstood my question. I know that the individ

Re: The hardest problem in computer science...

2017-01-06 Thread Larry Hudson via Python-list
On 01/06/2017 05:03 AM, Steve D'Aprano wrote: The second hardest problem in computer science is cache invalidation. The *hardest* problem is naming things. In a hierarchical tree view widget that displays items like this: Fiction ├─ Fantasy │ ├─ Terry Prat

Re: The hardest problem in computer science...

2017-01-06 Thread Mario R. Osorio
On Friday, January 6, 2017 at 8:45:41 PM UTC-5, Mario R. Osorio wrote: > On Friday, January 6, 2017 at 10:37:40 AM UTC-5, Ethan Furman wrote: > > On 01/06/2017 05:03 AM, Steve D'Aprano wrote: > > > > > what do we call the vertical and horizontal line elements? I want to make > > > them configurabl

Re: The hardest problem in computer science...

2017-01-06 Thread Mario R. Osorio
On Friday, January 6, 2017 at 10:37:40 AM UTC-5, Ethan Furman wrote: > On 01/06/2017 05:03 AM, Steve D'Aprano wrote: > > > what do we call the vertical and horizontal line elements? I want to make > > them configurable, which means the user has to be able to pass an argument > > that specifies the

Re: The hardest problem in computer science...

2017-01-06 Thread Ethan Furman
On 01/06/2017 05:03 AM, Steve D'Aprano wrote: what do we call the vertical and horizontal line elements? I want to make them configurable, which means the user has to be able to pass an argument that specifies them. I have names for the individual components: XXX = namedtuple("XXX", "vline tee

Re: The hardest problem in computer science...

2017-01-06 Thread Skip Montanaro
"VT52 special graphics characters", anyone? Credit where credit is due. Who hasn't borked their output and wound up with their VT(52|100) in graphics mode? :-) https://en.wikipedia.org/wiki/VT52 Skip -- https://mail.python.org/mailman/listinfo/python-list

Re: The hardest problem in computer science...

2017-01-06 Thread Alain Ketterlin
Steve D'Aprano writes: [...] > Fiction > ├─ Fantasy > │ ├─ Terry Pratchett > │ │ ├─ Discworld > │ │ │ ├─ Wyrd Sisters > │ │ │ └─ Carpe Jugulum > │ │ └─ Dodger > │ └─ JK Rowling [...] > what do we call the vertical and horizontal line elements? Box-draw

Re: The hardest problem in computer science...

2017-01-06 Thread Tim Chase
On 2017-01-06 13:44, Dan Sommers wrote: > On Sat, 07 Jan 2017 00:03:37 +1100, Steve D'Aprano wrote: > > what do we call the vertical and horizontal line elements? I want > > to make them configurable, which means the user has to be able to > > pass an argument that specifies them ... > > pstree(1)

Re: The hardest problem in computer science...

2017-01-06 Thread Dan Sommers
On Sat, 07 Jan 2017 00:03:37 +1100, Steve D'Aprano wrote: > The *hardest* problem is naming things. > > Fiction > ├─ Fantasy > │ ├─ Terry Pratchett > │ │ ├─ Discworld > │ │ │ ├─ Wyrd Sisters > │ │ │ └─ Carpe Jugulum [...] > what do we call the vertical and hori

The hardest problem in computer science...

2017-01-06 Thread Steve D'Aprano
The second hardest problem in computer science is cache invalidation. The *hardest* problem is naming things. In a hierarchical tree view widget that displays items like this: Fiction ├─ Fantasy │ ├─ Terry Pratchett │ │ ├─ Discworld │ │ │ ├─ Wyrd Sisters

Re: I can't run python on my computer

2016-10-05 Thread MRAB
On 2016-10-05 15:19, Camille Benoit via Python-list wrote: Hi,it has been about a week since the last time I was able to use Python. Most of the time, the interpreter doesn't show up and when it does and I am trying to run a program it displayed the following message: "IDLE's subprocess didn't

I can't run python on my computer

2016-10-05 Thread Camille Benoit via Python-list
Hi,it has been about a week since the last time I was able to use Python. Most of the time, the interpreter doesn't show up and when it does and I am trying to run a program it displayed the following message: "IDLE's subprocess didn't make connection. Either IDLE can't start a subprocess or per

Almost crashing computer, was Re: how to solve memory

2016-06-10 Thread Peter Otten
Steven D'Aprano wrote: > I just ran your code, and it almost crashed my computer. When you suspect that a script may consume a lot of memory (the subject might have been a hint) ulimit (bash internal) helps you prevent that your linux machine becomes unresponsive. $ ulimit -

Re: How to waste computer memory?

2016-03-20 Thread Random832
On Sun, Mar 20, 2016, at 10:55, Ben Bacarisse wrote: > It's 21. The reason being (or at least part of the reason being) that > 21 bits can be UTF-8 encoded in 4 bytes: 0xxx 10xx 10xx > 10xx (3 + 3*6). The reason is the UTF-16 limit. Prior to that, UTF-8 had no such limit (it could

Re: How to waste computer memory?

2016-03-20 Thread Marko Rauhamaa
Ben Bacarisse : > It's 21. The reason being (or at least part of the reason being) that > 21 bits can be UTF-8 encoded in 4 bytes: 0xxx 10xx 10xx > 10xx (3 + 3*6). I bet the reason is UTF-16. Microsoft and Sun/Oracle would have insisted on a maximum of 4 bytes per character. UTF-1

Re: How to waste computer memory?

2016-03-20 Thread Ben Bacarisse
Rustom Mody writes: > On Sunday, March 20, 2016 at 10:32:07 AM UTC+5:30, Steven D'Aprano wrote: >> Unicode (the character set part of it) is a set of abstract 23-bit numbers, > > 23? Or 21? It's 21. The reason being (or at least part of the reason being) that 21 bits can be UTF-8 encoded in 4

Re: How to waste computer memory?

2016-03-20 Thread Chris Angelico
On Sun, Mar 20, 2016 at 11:14 PM, Steven D'Aprano wrote: >>> On the other hand, I believe that the output of the UTF transformations >>> is explicitly described in terms of 8-bit bytes and 16- or 32-bit words. >>> For instance, the UTF-8 encoding of "A" has to be a single byte with >>> value 0x41

Re: How to waste computer memory?

2016-03-20 Thread Steven D'Aprano
On Sun, 20 Mar 2016 10:22 pm, Chris Angelico wrote: > On Sun, Mar 20, 2016 at 10:06 PM, Steven D'Aprano > wrote: >> The Unicode standard does not, as far as I am aware, care how you >> represent code points in memory, only that there are 0x11 of them, >> numbered from U+ to U+10. That

Re: How to waste computer memory?

2016-03-20 Thread Chris Angelico
On Sun, Mar 20, 2016 at 10:06 PM, Steven D'Aprano wrote: > The Unicode standard does not, as far as I am aware, care how you represent > code points in memory, only that there are 0x11 of them, numbered from > U+ to U+10. That's what I mean by abstract. The obvious > implementation is

Re: How to waste computer memory?

2016-03-20 Thread Marko Rauhamaa
Chris Angelico : > Like every language *including* English. You can pretend that ASCII is > enough, but you do lose some information. Hold it, I'll quickly update my résumé before we resume the conversation. What does this exposé expose? At least it gives a coup de grâce to ASCII with grace. Ma

Re: How to waste computer memory?

2016-03-20 Thread Steven D'Aprano
On Sun, 20 Mar 2016 05:20 pm, Rustom Mody wrote: > On Sunday, March 20, 2016 at 10:32:07 AM UTC+5:30, Steven D'Aprano wrote: >> On Sun, 20 Mar 2016 03:12 am, Marko Rauhamaa wrote: >> >> > Steven D'Aprano : >> > >> >> On Sun, 20 Mar 2016 02:02 am, Marko Rauhamaa wrote: >> >>> Yes, but UTF-16 prod

Re: How to waste computer memory?

2016-03-20 Thread Mark Lawrence
On 17/03/2016 21:26, BartC wrote: On 17/03/2016 21:11, Marko Rauhamaa wrote: Chris Angelico : Like every language *including* English. You can pretend that ASCII is enough, but you do lose some information. Hold it, I'll quickly update my résumé before we resume the conversation. What does t

Re: How to waste computer memory?

2016-03-20 Thread Paul Rubin
Chris Angelico writes: > You can pretend that only 1 and 0 are enough. Good luck making THAT work. YOU had ONES??? Back in the day, my folks had to do everything with just zeros. -- https://mail.python.org/mailman/listinfo/python-list

Re: How to waste computer memory?

2016-03-20 Thread Steven D'Aprano
On Fri, 18 Mar 2016 10:46 pm, Steven D'Aprano wrote: > I think it is typical of JMF that his idea of a language where Unicode > "just works" is one where it *does work at all* (at least not as strings). Er, does NOT work at all. > Python 1.5 strings supported Unicode just as well as Go's string

Re: How to waste computer memory?

2016-03-20 Thread Marko Rauhamaa
Steven D'Aprano : > On Sun, 20 Mar 2016 03:12 am, Marko Rauhamaa wrote: >> Steven D'Aprano : >>> On Sun, 20 Mar 2016 02:02 am, Marko Rauhamaa wrote: Yes, but UTF-16 produces 16-bit values that are outside Unicode. >>> >>> Show me. >>> >>> Before you answer, if your answer is "surrogate pairs"

Re: How to waste computer memory?

2016-03-19 Thread Rustom Mody
On Sunday, March 20, 2016 at 10:32:07 AM UTC+5:30, Steven D'Aprano wrote: > On Sun, 20 Mar 2016 03:12 am, Marko Rauhamaa wrote: > > > Steven D'Aprano : > > > >> On Sun, 20 Mar 2016 02:02 am, Marko Rauhamaa wrote: > >>> Yes, but UTF-16 produces 16-bit values that are outside Unicode. > >> > >> Sho

Re: How to waste computer memory?

2016-03-19 Thread Steven D'Aprano
On Sun, 20 Mar 2016 03:12 am, Marko Rauhamaa wrote: > Steven D'Aprano : > >> On Sun, 20 Mar 2016 02:02 am, Marko Rauhamaa wrote: >>> Yes, but UTF-16 produces 16-bit values that are outside Unicode. >> >> Show me. >> >> Before you answer, if your answer is "surrogate pairs", that is >> incorrect.

Re: How to waste computer memory?

2016-03-19 Thread sohcahtoa82
On Thursday, March 17, 2016 at 7:34:46 AM UTC-7, wxjm...@gmail.com wrote: > Very simple. Use Python and its (buggy) character encoding > model. > > How to save memory? > It's also very simple. Use a programming language, which > handles Unicode correctly. *looks at the other messages in this thre

Re: How to waste computer memory?

2016-03-19 Thread Random832
On Fri, Mar 18, 2016, at 11:17, Ian Kelly wrote: > > Just to play devil's advocate, here, why is it so bad for indexing to be > > O(n)? Some simple caching is all that's needed to prevent it from making > > iteration O(n^2), if that's what you're worried about. > > What kind of caching do you ha

Re: How to waste computer memory?

2016-03-19 Thread Chris Angelico
On Fri, Mar 18, 2016 at 8:08 AM, Grant Edwards wrote: > On 2016-03-17, Chris Angelico wrote: >> On Fri, Mar 18, 2016 at 7:31 AM, wrote: >>> Rick Johnson wrote: In the event that i change my mind about Unicode, and/or for the sake of others, who may want to know, please provide a

Re: How to waste computer memory?

2016-03-19 Thread Steven D'Aprano
On Sat, 19 Mar 2016 02:31 am, Random832 wrote: > On Fri, Mar 18, 2016, at 11:17, Ian Kelly wrote: >> > Just to play devil's advocate, here, why is it so bad for indexing to >> > be O(n)? Some simple caching is all that's needed to prevent it from >> > making iteration O(n^2), if that's what you're

Re: How to waste computer memory?

2016-03-19 Thread Terry Reedy
On 3/18/2016 7:58 AM, Steven D'Aprano wrote: On Fri, 18 Mar 2016 10:46 pm, Steven D'Aprano wrote: I think it is typical of JMF that his idea of a language where Unicode "just works" is one where it *does work at all* (at least not as strings). Er, does NOT work at all. Python 1.5 strings su

Re: How to waste computer memory?

2016-03-19 Thread Mark Lawrence
On 17/03/2016 21:13, Chris Angelico wrote: You can pretend that only 1 and 0 are enough. Good luck making THAT work. ChrisA The sales and marketing "thing", for lack of a better expression, that was used in the UK by Racal Telecommunications during the 1990s. Well I'm telling a fib, IIRC

Re: How to waste computer memory?

2016-03-19 Thread Mark Lawrence
On 18/03/2016 21:02, Marko Rauhamaa wrote: Chris Angelico : On Sat, Mar 19, 2016 at 2:26 AM, Marko Rauhamaa wrote: It may be that Python's Unicode abstraction is an untenable illusion because the underlying reality is 8-bit and there's no way to hide it completely. The underlying reality is

Re: How to waste computer memory?

2016-03-19 Thread cl
> >> How about a list of languages that Unicode handles better than > > >> ASCII? Like almost every language *except* English. > > > > > > Like every language *including* English. You can pretend that ASCII > > > is enough, but you do lose some information.

Re: How to waste computer memory?

2016-03-19 Thread Marko Rauhamaa
Chris Angelico : > On Sat, Mar 19, 2016 at 2:26 AM, Marko Rauhamaa wrote: >> It may be that Python's Unicode abstraction is an untenable illusion >> because the underlying reality is 8-bit and there's no way to hide it >> completely. > > The underlying reality is 1-bit. Or maybe the underlying rea

Re: How to waste computer memory?

2016-03-19 Thread cl
Grant Edwards wrote: > On 2016-03-17, Chris Angelico wrote: > > On Fri, Mar 18, 2016 at 7:31 AM, wrote: > >> Rick Johnson wrote: > >>> > >>> In the event that i change my mind about Unicode, and/or for > >>> the sake of others, who may want to know, please provide a > >>> list of languages tha

Usenet Message-ID (was Re: How to waste computer memory?)

2016-03-19 Thread Random832
On Fri, Mar 18, 2016, at 15:46, Tim Golden wrote: > Speaking for a moment as the list owner. Posts by this OP are usually > blatant provocation and I usually filter them out before they hit the > list. (They'll still appear if you're reading via Usenet). In this case > I approved a post thinking

Re: How to waste computer memory?

2016-03-19 Thread Grant Edwards
On 2016-03-17, Chris Angelico wrote: > On Fri, Mar 18, 2016 at 7:31 AM, wrote: >> Rick Johnson wrote: >>> >>> In the event that i change my mind about Unicode, and/or for >>> the sake of others, who may want to know, please provide a >>> list of languages that *YOU* think handle Unicode better

Re: How to waste computer memory?

2016-03-19 Thread Marko Rauhamaa
Chris Angelico : > The problem is not Python's Unicode strings, then. The problem is the > notion that path names are text. If they're text, they should be > exclusively text (although, for low-level efficiency, they're more > likely to be defined as "valid UTF-8 sequences" rather than "sequences

Re: How to waste computer memory?

2016-03-19 Thread Rick Johnson
On Thursday, March 17, 2016 at 9:34:46 AM UTC-5, wxjm...@gmail.com wrote: > Very simple. Use Python and its (buggy) character encoding > model. How to save memory? It's also very simple. Use a > programming language, which handles Unicode correctly. I personally don't have much use for Unicode, so

Re: How to waste computer memory?

2016-03-19 Thread BartC
On 17/03/2016 21:11, Marko Rauhamaa wrote: Chris Angelico : Like every language *including* English. You can pretend that ASCII is enough, but you do lose some information. Hold it, I'll quickly update my résumé before we resume the conversation. What does this exposé expose? At least it give

Re: How to waste computer memory?

2016-03-19 Thread Marko Rauhamaa
Chris Angelico : > On Sat, Mar 19, 2016 at 6:49 PM, Marko Rauhamaa wrote: >> Speaking of the low level, the classic UNIX file system doesn't make >> use of pathnames. Rather, the files are nameless. They are identified >> by the device (= file system) number plus the inode number. > > Not entirel

Re: How to waste computer memory?

2016-03-19 Thread Marko Rauhamaa
Michael Torrie : > On 03/18/2016 02:26 AM, Jussi Piitulainen wrote: >> I think Julia's way of dealing with its strings-as-UTF-8 [2] is more >> promising. Indexing is by bytes (1-based in Julia) but the value at a >> valid index is the whole UTF-8 character at that point, and an >> invalid index ra

Re: How to waste computer memory?

2016-03-19 Thread Gene Heskett
e every language *including* English. You can pretend that > > > > ASCII is enough, but you do lose some information. > > > > > > > > ChrisA > > > > > > as we all seam to have bitten the troll's thread > > > "how to waste computer

Re: How to waste computer memory?

2016-03-19 Thread Chris Angelico
On Fri, Mar 18, 2016 at 8:26 AM, BartC wrote: > On 17/03/2016 21:11, Marko Rauhamaa wrote: >> >> Chris Angelico : >> >>> Like every language *including* English. You can pretend that ASCII is >>> enough, but you do lose some information. >> >> >> Hold it, I'll quickly update my résumé before we re

Re: How to waste computer memory?

2016-03-19 Thread Chris Angelico
On Sun, Mar 20, 2016 at 3:12 AM, Marko Rauhamaa wrote: > Steven D'Aprano : > >> On Sun, 20 Mar 2016 02:02 am, Marko Rauhamaa wrote: >>> Yes, but UTF-16 produces 16-bit values that are outside Unicode. >> >> Show me. >> >> Before you answer, if your answer is "surrogate pairs", that is >> incorrect

Re: How to waste computer memory?

2016-03-19 Thread Marko Rauhamaa
Steven D'Aprano : > On Sun, 20 Mar 2016 02:02 am, Marko Rauhamaa wrote: >> Yes, but UTF-16 produces 16-bit values that are outside Unicode. > > Show me. > > Before you answer, if your answer is "surrogate pairs", that is > incorrect. Surrogate pairs is how UTF-16 encodes astral characters. UTF-1

Re: How to waste computer memory?

2016-03-19 Thread Chris Angelico
On Sun, Mar 20, 2016 at 2:05 AM, Michael Torrie wrote: > Of course not. Shells already associate specific meaning with certain > characters that can be used in file names. For example the various > quoting characters, such as ' or ". These can be used in file names but > when referred to in the

Re: How to waste computer memory?

2016-03-19 Thread Steven D'Aprano
On Sun, 20 Mar 2016 02:02 am, Marko Rauhamaa wrote: > Steven D'Aprano : > >> On Sat, 19 Mar 2016 08:31 pm, Marko Rauhamaa wrote: >> >> >>>Using the surrogate mechanism, UTF-16 can support all 1,114,112 >>>potential Unicode characters. >>> >>> But Unicode doesn't contain 1,114,112 charact

Re: How to waste computer memory?

2016-03-19 Thread BartC
On 19/03/2016 15:14, BartC wrote: Which is about 3000 decimal digits, slightly more than 1KB in packed binary. In BCD it would be 1.5KB. At one-byte per digit (eg. ASCII) it's 3KB. At 4 bytes per (eg. UCS4), it's 12KB. The comment refers to this which inexplicably got snipped (not my fault at

Re: How to waste computer memory?

2016-03-19 Thread Chris Angelico
On Sun, Mar 20, 2016 at 1:56 AM, Marko Rauhamaa wrote: > Steven D'Aprano : > >> On Sat, 19 Mar 2016 11:42 pm, Marko Rauhamaa wrote: >>> When glorifying Python's advanced Unicode capabilities, are we >>> careful to emphasize the necessity of unicodedata.normalize() >>> everywhere? Should Python nor

Re: How to waste computer memory?

2016-03-19 Thread BartC
At 4 bytes per (eg. UCS4), it's 12KB. What would you say to someone advocating 12 times as much storage for long integers as is used now? After all memory is cheap! and my computer calculates and prints the result faster than I can enter the calculation in the first place. Worrying about

Re: How to waste computer memory?

2016-03-19 Thread Michael Torrie
On 03/19/2016 02:38 AM, Steven D'Aprano wrote: > On Sat, 19 Mar 2016 01:30 pm, Random832 wrote: > >> On Fri, Mar 18, 2016, at 20:55, Chris Angelico wrote: >>> On Sat, Mar 19, 2016 at 9:03 AM, Marko Rauhamaa wrote: Also, special-casing '\0' and '/' is lame. Why can't I have "Results 1/20

Re: How to waste computer memory?

2016-03-19 Thread Marko Rauhamaa
Steven D'Aprano : > On Sat, 19 Mar 2016 08:31 pm, Marko Rauhamaa wrote: > > >>Using the surrogate mechanism, UTF-16 can support all 1,114,112 >>potential Unicode characters. >> >> But Unicode doesn't contain 1,114,112 characters—the surrogates are >> excluded from Unicode, and definitely

Re: How to waste computer memory?

2016-03-19 Thread Steven D'Aprano
On Sat, 19 Mar 2016 08:31 pm, Marko Rauhamaa wrote: >Using the surrogate mechanism, UTF-16 can support all 1,114,112 >potential Unicode characters. > > But Unicode doesn't contain 1,114,112 characters—the surrogates are > excluded from Unicode, and definitely cannot be encoded using > UT

Re: How to waste computer memory?

2016-03-19 Thread Marko Rauhamaa
Steven D'Aprano : > On Sat, 19 Mar 2016 11:42 pm, Marko Rauhamaa wrote: >> When glorifying Python's advanced Unicode capabilities, are we >> careful to emphasize the necessity of unicodedata.normalize() >> everywhere? Should Python normalize strings unconditionally and >> transparently? What does

Re: How to waste computer memory?

2016-03-19 Thread Tim Chase
On 2016-03-19 12:24, BartC wrote: > So a string that looks like: > > "ññ" > > can have 2**50 different representations? And occupy somewhere > between 50 and 200 bytes? Or is that 400? And moreover, they're all distinct if you don't normalize them.

Re: How to waste computer memory?

2016-03-19 Thread Steven D'Aprano
On Sat, 19 Mar 2016 11:42 pm, Marko Rauhamaa wrote: > The problem is not theoretical. If I implement a web form and someone > enters "Aña" as their name, how do I make sure queries find the name > regardless of the unicode code point sequence? I have to normalize using > unicodedata.normalize().

Re: How to waste computer memory?

2016-03-19 Thread Steven D'Aprano
esent in a calculation was 32767. My four-function calculator had an 8 digit display and could calculate up to , while Pascal choked on 32767. (Or 65536 if you used unsigned numbers.) Now, I routinely and without hesitation generate thousand-plus bit numbers like 2**1, and my computer calculate

Re: How to waste computer memory?

2016-03-19 Thread Jussi Piitulainen
Steven D'Aprano writes: > And I don't understand this meme that indexing strings is not > important. Have people never (say) taken a slice of a string, or a > look-ahead, or something similar? > > i = mystring.find(":") > next_char = mystring[i+1] The point is that O(1) indexing and slicing *can

Re: How to waste computer memory?

2016-03-19 Thread Chris Angelico
On Sat, Mar 19, 2016 at 11:42 PM, Marko Rauhamaa wrote: >> The problem is not so much the existence of combining characters, but that >> *some* but not all accented characters are available in two forms: a >> composed single code point, and a decomposed pair of code points. > > Also, is an a with

Re: How to waste computer memory?

2016-03-19 Thread Grant Edwards
On 2016-03-18, c...@isbd.net wrote: > However I doubt it's still being used, a year or two after I wrote it > we migrated to a Tektronix development system that ran Unix (wow!). The PDP-11 one that ran TNIX (a thinly disguised port of v7)? Back in the early 80's we used a copule of those doing m

Re: How to waste computer memory?

2016-03-19 Thread Marko Rauhamaa
BartC : > So a string that looks like: > > "ññ" > > can have 2**50 different representations? And occupy somewhere between > 50 and 200 bytes? Or is that 400? > > OK... You are on the right track! Marko -- https://mail.python.org/mailman/listinfo

Re: How to waste computer memory?

2016-03-19 Thread Marko Rauhamaa
Steven D'Aprano : > As usual, Unicode problems are generally due to backwards > compatibility. Blame the old legacy encodings, which invented the > "dead keys" a.k.a. "combining character" technique. Of course, they > had a reasonable excuse at the time, but Unicode's requirement of > being able t

Re: How to waste computer memory?

2016-03-19 Thread BartC
On 19/03/2016 11:07, Marko Rauhamaa wrote: Chris Angelico : On Sat, Mar 19, 2016 at 8:31 PM, Marko Rauhamaa wrote: Unicode made several (understandable but grave) mistakes along the way: * normalization Elaborate please? What's such a big mistake here? Unicode shouldn't have allowed

Re: How to waste computer memory?

2016-03-19 Thread Random832
On Fri, Mar 18, 2016, at 12:44, Steven D'Aprano wrote: > And I don't understand this meme that indexing strings is not important. > Have people never (say) taken a slice of a string, or a look-ahead, or > something similar? > > i = mystring.find(":") find is already O(N). > next_char = mystring[

Re: How to waste computer memory?

2016-03-19 Thread Steven D'Aprano
On Fri, 18 Mar 2016 06:00 pm, Ian Kelly wrote: > On Thu, Mar 17, 2016 at 1:21 PM, Rick Johnson > wrote: >> In the event that i change my mind about Unicode, and/or for >> the sake of others, who may want to know, please provide a >> list of languages that *YOU* think handle Unicode better than >>

  1   2   3   4   5   6   7   8   9   10   >