Re: Why assert is not a function?

2021-03-15 Thread Robert Latest via Python-list
ather have a keyword ;-) robert -- https://mail.python.org/mailman/listinfo/python-list

Re: How to implement logging for an imported module?

2021-03-15 Thread Robert Latest via Python-list
Richard Damon wrote: > On 3/8/21 4:16 AM, Robert Latest via Python-list wrote: >> Joseph L. Casale wrote: >>>> I couldn't find any information on how to implement logging in a library >>>> that doesn't know the name of the application that uses it. H

Re: A 35mm film camera represented in Python object

2021-03-15 Thread Robert Latest via Python-list
D.M. Procida wrote: > Hi everyone, I've created <https://github.com/evildmp/C-is-for-Camera> - > a representation of a Canonet G-III QL17 in Python. [...] > The Canonet G-III QL17 is one of my favourites. One of my reasons for > writing this code is to appreciate the int

Re: How do I read .csv files

2021-03-16 Thread Alan Gauld via Python-list
the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos -- https://mail.python.org/mailman/listinfo/python-list

[SQLAlchemy] Struggling with association_proxy

2021-03-18 Thread Robert Latest via Python-list
db = Session() egg = Item(name='egg', weight=50, color='white') b = Basket() # fails because in Link.__init__(), SQLAlchemy wants to create a new Item # rather than using the existing one. b.contents['egg'] = 6 db.add(b) db.commit() -- https://mail.python.org/mailman/listinfo/python-list

Re: .title() - annoying mistake

2021-03-19 Thread Karen Shaeffer via Python-list
thon.org/issue12737 > > While that is an issue with string.title(), I don't see how it's > related to what the OP is reporting. Issue 12737 is about Unicode > combining marks. Hi, I’ve been frustrated by my experiences processing unstructured multilingual text with pytho

Re: .title() - annoying mistake

2021-03-19 Thread Alan Gauld via Python-list
mazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos -- https://mail.python.org/mailman/listinfo/python-list

Re: .title() - annoying mistake

2021-03-20 Thread Robert Latest via Python-list
Mats Wichmann wrote: > The problem is that there isn't a standard for title case, The problem is that we owe the very existence of the .title() method to too much weed being smoked during Python development. It makes specific assumptions about a specific use case of one specific lang

Re: .title() - annoying mistake

2021-03-20 Thread Jon Ribbens via Python-list
On 2021-03-20, Cameron Simpson wrote: > On 20Mar2021 12:53, Sibylle Koczian wrote: >>Am 20.03.2021 um 09:34 schrieb Alan Bawden: >>>The real reason Python strings support a .title() method is surely >>>because Unicode supports upper, lower, _and_ title case letters,

Re: .title() - annoying mistake

2021-03-21 Thread Robert Latest via Python-list
Chris Angelico wrote: > On Sun, Mar 21, 2021 at 4:31 AM Robert Latest via Python-list > wrote: >> >> Mats Wichmann wrote: >> > The problem is that there isn't a standard for title case, >> >> The problem is that we owe the very existence of the .tit

Re: .title() - annoying mistake

2021-03-21 Thread Robert Latest via Python-list
me up with a solution. I agree with everything you say. Especially the open source part. But wouldn't you agree that .title() with all its arbitrary specificity to appear in the very core of a general purpose language is quite an oddity? robert -- https://mail.python.org/mailman/listinfo/python-list

Re: .title() - annoying mistake

2021-03-21 Thread Robert Latest via Python-list
Chris Angelico wrote: > On Sun, Mar 21, 2021 at 10:31 PM Robert Latest via Python-list > wrote: >> Yes, I get that. But the purpose it (improperly) serves only makes sense in >> the English language. > > Why? Do titles not exist in other languages? Does no other language &g

Re: .title() - annoying mistake

2021-03-22 Thread Robert Latest via Python-list
docs. > And as I mentioned the sheer amount of work that would be needed would > probably cover a phd dissertation or more… It’s a huge problem set to > respect one language, let alone all languages. And that's why I believe that such a function should be delegated to a natura

Re: .title() - annoying mistake

2021-03-22 Thread Robert Latest via Python-list
Grant Edwards wrote: > On 2021-03-20, Robert Latest via Python-list wrote: >> Mats Wichmann wrote: >>> The problem is that there isn't a standard for title case, >> >> The problem is that we owe the very existence of the .title() method to too >> much we

How to set up a 'listening' Unix domain socket

2021-03-22 Thread Robert Latest via Python-list
516298102 +0100 Birth: - Sadly all examples I can find on the web are for TCP sockets, not Unix domain. Any tips? robert -- https://mail.python.org/mailman/listinfo/python-list

Re: .title() - annoying mistake

2021-03-22 Thread Robert Latest via Python-list
ifferently on single characters. robert -- https://mail.python.org/mailman/listinfo/python-list

Re: How to set up a 'listening' Unix domain socket

2021-03-22 Thread Robert Latest via Python-list
er, when I try to send somthing to that socket, I get this error >> message: >> >> $ echo "Hello" | socat - UNIX-SENDTO:/tmp/test.socket 2021/03/22 11:03:22 >> socat[2188] E sendto(5, 0x55a22f414990, 6, 0, AF=1 "/tmp/test.socket", 18): >> Protocol w

Re: .title() - annoying mistake

2021-03-22 Thread Robert Latest via Python-list
', 'ß', 'ss', 'Ss') Now we're getting somewhere. I'm a native German speaker and I can tell you that this doesn't happen in the real world, simply because 'ß' never appears at the beginning of a word and thus is never "title cas

Re: .title() - annoying mistake

2021-03-22 Thread Robert Latest via Python-list
Karsten Hilbert wrote: > and life with that wart. Perfectly willing to as long as everybody agrees it's a wart ;-) robert -- https://mail.python.org/mailman/listinfo/python-list

Re: How to set up a 'listening' Unix domain socket

2021-03-22 Thread Robert Latest via Python-list
> Chris Angelico wrote: [Helpful stuff] I'm actually trying to implement a SocketHandler for a Python logger. However, I can't get my handler on the client side to send anything. Do I need to subclass logging.SocketHandler and fill the various methods with meaning? The documentatio

Re: .title() - annoying mistake

2021-03-22 Thread Robert Latest via Python-list
Chris Angelico wrote: > Cool thing is, nobody in Python needs to maintain anything here. That's great because I'm actually having trouble with sending log messages over the socket conection you helped me with, would you mind having a look? Regards, robert -- https://mail.pytho

Re: .title() - annoying mistake

2021-03-22 Thread Karen Shaeffer via Python-list
Hi Chris, Thanks for your comment. > Python doesn't work with UTF-8 encoded code points; it works with > Unicode code points. Are you looking for something that checks whether > something is a palindrome, or locates palindromes within it? > > def is_palindrome(txt): >

Re: .title() - annoying mistake

2021-03-22 Thread Robert Latest via Python-list
Benjamin Schollnick wrote: > I’m sorry, but it’s as if he’s arguing for the sake of arguing. It’s > starting to feel very unproductive, and unnecessary. That was never five minutes just now! robert -- https://mail.python.org/mailman/listinfo/python-list

RE: .title() - annoying mistake

2021-03-22 Thread Avi Gross via Python-list
? -Original Message- From: Python-list On Behalf Of Christian Gollwitzer Sent: Monday, March 22, 2021 4:21 PM To: [email protected] Subject: Re: .title() - annoying mistake Am 22.03.21 um 16:03 schrieb Robert Latest: > Chris Angelico wrote: >> Cool thing is, nobody in Pyth

RE: convert script awk in python

2021-03-23 Thread Avi Gross via Python-list
Alberto, To convert any algorithm to python (or anything else) you have to understand it. Do you know what AWK is doing? And does the darn thing work already in awk? Why do you need to convert it? My suspicion is that it has errors and if so, it is NOT about converting at all. I will not solve

RE: convert script awk in python

2021-03-24 Thread Avi Gross via Python-list
things and clearly the original programmer used some. Which brings us back to languages like python. When I started using AWK and a slew of other UNIX programs years ago, what I found interesting is how much AWK was patterned a bit on the C language, not a surprise as the K in AWK is Brian Kernighan

Re: convert script awk in python

2021-03-24 Thread Alan Gauld via Python-list
On 23/03/2021 14:40, Avi Gross via Python-list wrote: > $1 == 113 { > if (x || y || z) > print "More than one type $8 atom."; > else { > x = $2; y = $3; z = $4; > istep++; > } > } > > I am a tod concerned as to where

RE: convert script awk in python

2021-03-24 Thread Avi Gross via Python-list
complaints and showed him how his entire mess could be replaced mostly by a single AWK script and complete in minutes. Of course, now, with a fast internet and modern languages that can run threads in parallel, it probably would complete in seconds. Maybe I would have translated that AWK to python after

Re: convert script awk in python

2021-03-24 Thread Alan Gauld via Python-list
On 24/03/2021 16:00, Avi Gross via Python-list wrote: > But I wonder how much languages like AWK are still used to make new programs > as compared to a time they were really useful. True. I first discovered awk from a Byte article around 1988/9 and it became my goto tool for text munching

RE: convert script awk in python

2021-03-24 Thread Avi Gross via Python-list
following that line of reasoning, fairly simple python scripts can be written with python -c "..." or by pointing to a script Anyone have a collection of shell scripts that can be used in pipelines where each piece is just a call to python to do something simple? -Original Message

RE: convert script awk in python

2021-03-26 Thread Avi Gross via Python-list
Michael, A generator that opens one file at a time (or STDIN) in a consistent manner, would be a reasonable thing to have as part of emulating AWK. As I see it, you may want a bit more that includes having it know how to parse each line it reads into some version of names that in Python might

RE: convert script awk in python

2021-03-26 Thread Avi Gross via Python-list
plit! ∀vi ∃. Grθß -Original Message----- From: Python-list On Behalf Of [email protected] Sent: Friday, March 26, 2021 9:43 PM To: [email protected] Subject: Re: convert script awk in python On 2021-03-26 at 21:06:19 -0400, Avi Gross via Python-list wrote: > A generat

RE: python documentation

2021-03-27 Thread Avi Gross via Python-list
What are the odds, Chris, that rewriting an existing project written in an older version of a language like python FROM SCRATCH into any other existing language, would be easier than updating it to the same language which made fairly specific changes and has some guidelines how to update? True

Re: Canonical conversion of dict of dicts to list of dicts

2021-03-30 Thread Jon Ribbens via Python-list
On 2021-03-30, Loris Bennett wrote: > If I have dict of dicts, say > > dod = { > "alice": > { > "lang": "python", > "level": "expert" > }, > "bob": >

Re: Canonical conversion of dict of dicts to list of dicts

2021-03-30 Thread Jon Ribbens via Python-list
ow up first in the dictionary. It's probably worth noting this method requires Python 3.9. -- https://mail.python.org/mailman/listinfo/python-list

Re: Canonical conversion of dict of dicts to list of dicts

2021-03-30 Thread Jon Ribbens via Python-list
On 2021-03-30, Chris Angelico wrote: > On Tue, Mar 30, 2021 at 11:01 PM Jon Ribbens via Python-list > wrote: >> >> On 2021-03-30, Chris Angelico wrote: >> > I dunno about "canonical", but here's how I'd do it: >> > >> > lod = [i

Re: memory consumption

2021-03-30 Thread Alan Gauld via Python-list
wever, most do it effectively, so you as a programmer shouldn't have to worry too much provided you aren't leaking, which you don't think you are. > and after second run it weighs 1Gb. If I will continue > to run this class, memory wont increase, so I think > it'

Ann: New Python curses book

2021-03-30 Thread Alan Gauld via Python-list
I've just published, in Kindle and paperback formats, my book on "Programming curses with Python". https://www.amazon.co.uk/dp/B091B85B77/ (It should be available in most other Amazon stores too) It is a complete rewrite of the Linux Documentation Project's HowTo for the C

RE: New Python curses book

2021-03-30 Thread Avi Gross via Python-list
preview of the beginning parts and see it is about programming, hold the curses. -Original Message- From: Python-list On Behalf Of Alan Gauld via Python-list Sent: Tuesday, March 30, 2021 7:12 AM To: [email protected] Subject: Ann: New Python curses book I've just published, in K

Re: Ann: New Python curses book

2021-03-30 Thread Alan Gauld via Python-list
Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos -- https://mail.python.org/mailman/listinfo/python-list

RE: Ann: New Python curses book

2021-03-30 Thread Avi Gross via Python-list
/Programming-curses-Python-Alan-Gauld-ebook/dp/B091B85B77/ref=sr_1_2?dchild=1&keywords=alan+gauld&qid=1617129871&sr=8-2 The paperback has a different "cover" that says "Welcome to curses!" which sounds ominous. I might have chosen to call it a "Course on curses

Re: New Python curses book

2021-03-30 Thread Brian Oney via Python-list
Congratulations! Indeed, I was wondering for a moment if this was a guide to al dente spaghetti code. With each curse being a funny way to mess with the colleagues performing the code review ;) Or a list of funny Monty Python curses? Or a set of programming problems that are cursed? On

Re: memory consumption

2021-03-30 Thread Alan Gauld via Python-list
-- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos -- https://mail.python.org/mailman/listinfo/python-list

Re: Ann: New Python curses book

2021-03-30 Thread Alan Gauld via Python-list
ile url here once I've put it up. Thanks for that reminder. As for cut n paste, the requirement to write in MS Word and convert to PDF/Kindle means that quotes etc get all messed up. And as for Python indentation I shudder to think. That's why I intended to put the source code up. Watch t

Re: New Python curses book

2021-03-30 Thread Alan Gauld via Python-list
On 30/03/2021 20:05, Brian Oney via Python-list wrote: > Congratulations! > > Indeed, I was wondering for a moment if this was a guide to al dente > spaghetti code. With each curse being a funny way to mess with the colleagues > performing the code review ;) You may jest b

Source code link was: Re: Ann: New Python curses book

2021-03-31 Thread Alan Gauld via Python-list
On 31/03/2021 00:09, Alan Gauld via Python-list wrote: > Watch this space. Hopefully tomorrow. The source code is now available in a zip file at: http://www.alan-g.me.uk/hills/PythonCursesCode.zip Or via a link on the programming section of my home page http://www.alan-g.me.uk/ It

Re: memory consumption

2021-03-31 Thread Rob Cliffe via Python-list
ost. In my opinion it may significantly reduce their performance. Probably still worth trying.  Always better to measure than to guess. Rob Cliffe -- https://mail.python.org/mailman/listinfo/python-list

XanaNews Statistic for comp.lang.python. 4/1/2021 5:52:47 AM

2021-04-01 Thread The Doctor via Python-list
of unanswered posts .. 326 Number of posts from XanaNews users .. 0 Top Threads Ranking Articles Subject --- -- 185 .title() - annoying mistake 240 Why assert is not a function? 333 python documentat

Re: Horrible abuse of __init_subclass__, or elegant hack?

2021-04-01 Thread Alan Gauld via Python-list
log on Flickr at: http://www.flickr.com/photos/alangauldphotos -- https://mail.python.org/mailman/listinfo/python-list

Re: Horrible abuse of __init_subclass__, or elegant hack?

2021-04-02 Thread Alan Gauld via Python-list
On 02/04/2021 00:42, dn via Python-list wrote: > Contrarily "tuck" in (old) English slang represented "sweets" (or Not that old. We still use it occasionally today. And we certainly had a "tuck shop" at school. It was where you bought lunch if not eating in the

RE: Horrible abuse of __init_subclass__, or elegant hack?

2021-04-02 Thread Avi Gross via Python-list
be equally relevant. I will agree that some kinds of pie-thon have chocolate as a middle ingredient but what good is any kind of pie without coffee? Oops, I should have sent this yesterday! Avi -Original Message- From: Python-list On Behalf Of Chris Angelico Sent: Thursday, April 1

Re: Friday Finking: initialising values and implied tuples

2021-04-02 Thread Rob Cliffe via Python-list
On 02/04/2021 23:10, dn via Python-list wrote: (f) the space-saver: resource = "Oil"; time = 1; crude = 2; residue = 3; my_list = "long" IMO This can be OK when the number of items is VERY small (like 2) and not expected to increase (or decrease).  Especially if

Re: Horrible abuse of __init_subclass__, or elegant hack?

2021-04-02 Thread Alan Gauld via Python-list
On 02/04/2021 21:33, dn via Python-list wrote: > Bournville was the only Cadbury chocolate I would > consider. Today, even that seems to lack Cadbury has always been a budget chocolate brand(*) here; its a mass market option loaded with sugar and little else. Certainly doesn't

Re: Friday Finking: initialising values and implied tuples

2021-04-02 Thread Alan Gauld via Python-list
On 02/04/2021 23:10, dn via Python-list wrote: > When there are several items to be defined and initialised, how do you > prefer to format the code, and why? > (a) basic linear presentation: > > resource = "Oil" > time = 1 > crude = 2 > residue = 3 > my_

Re: Friday Finking: initialising values and implied tuples

2021-04-03 Thread Rob Cliffe via Python-list
On 03/04/2021 04:09, [email protected] wrote: On 2021-04-03 at 02:41:59 +0100, Rob Cliffe via Python-list wrote:     x1 = 42; y1 =  3;  z1 = 10     x2 = 41; y2 = 12; z2 = 9     x3 =  8;  y3 =  8;  z3 = 10 (please imagine it's in a fixed font with everything n

Re: Friday Finking: initialising values and implied tuples

2021-04-05 Thread Rob Cliffe via Python-list
On 05/04/2021 00:47, dn via Python-list wrote: On 04/04/2021 01.00, Rob Cliffe via Python-list wrote: On 03/04/2021 04:09, [email protected] wrote: On 2021-04-03 at 02:41:59 +0100, Rob Cliffe via Python-list wrote: x1 = 42; y1 =  3;  z1 = 10 x2 = 41; y2 = 12

Re: Friday Finking: initialising values and implied tuples

2021-04-05 Thread Rob Cliffe via Python-list
On 05/04/2021 17:52, Chris Angelico wrote: On Tue, Apr 6, 2021 at 2:32 AM Rob Cliffe via Python-list wrote: It doesn't appear to, at least not always. In Python 3.8.3: from dis import dis def f(): x = 1 ; y = 2 def g(): (x,y) = (1,2) dis(f) dis(g) Output: 2 0 LOAD_

Re: Friday Finking: initialising values and implied tuples

2021-04-05 Thread Rob Cliffe via Python-list
t" from my "safe" list because I now realise that "set" could be reassigned. Correction: set literals like {7,8} should still be OK as far as I can see. Rob Cliffe -- https://mail.python.org/mailman/listinfo/python-list

Re: Friday Finking: initialising values and implied tuples

2021-04-05 Thread Rob Cliffe via Python-list
p trigger arbitrary code? Then I saw your post in the "Yield after the return in Python function" thread.  (Took me a while to understand it.)  So I ask: Can you make a variable lookup trigger arbitrary code, other than in code passed to eval/exec/compile? TIA Rob Cliffe -- https://mai

RE: Yield after the return in Python function.

2021-04-05 Thread Avi Gross via Python-list
Terry: ... '__missing__' is new since I learned Python ... With so many new dunder variables added, I am wondering when some dunderhead comes up with: __mifflin__ The documented use paper is: https://theoffice.fandom.com/wiki/Dunder_Mifflin_Paper_Company ---

Re: How to access a variable from one tab in another tab of a notebook?

2021-04-07 Thread Alan Gauld via Python-list
Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos -- https://mail.python.org/mailman/listinfo/python-list

Re: How to access a variable from one tab in another tab of a notebook?

2021-04-08 Thread Alan Gauld via Python-list
wind up >> with way too many globals to be comfortable. > Because I'm a newbie in Python and write programs since > a couple of months, and I'm not so familiar with classes, OK, In that case you should probably read up on classes and play around with them to get used to

Re: Ann: New Python curses book

2021-04-12 Thread Alan Gauld via Python-list
7;ll announce it here. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos -- https://mail.python.org/mailman/listinfo/python-list

Re: Style qeustion: Multiple return values

2021-04-12 Thread Rob Cliffe via Python-list
ession1, long-expression2)                                    # It might be hard to spot the comma at first glance so the parentheses might help to recognise a tuple. Best wishes Rob Cliffe -- https://mail.python.org/mailman/listinfo/python-list

RE: translating external files type thing

2021-04-13 Thread Avi Gross via Python-list
https://translate.google.com/?sl=is&tl=en&op=translate Or, you could do it the hard way. Kidding aside, there may be a python module you can hand a file name or contents to and have it do much of the job using some API that may tap into the above Google resource. Dan specifically s

Re: UI design: combobox or radiobuttons?

2021-04-13 Thread Alan Gauld via Python-list
a corner somewhere. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos -- https://mail.python.org/mailman/listinfo/python-list

Re: Ann: New Python curses book

2021-04-14 Thread Alan Gauld via Python-list
On 30/03/2021 12:12, Alan Gauld via Python-list wrote: > I've just published, in Kindle and paperback formats, I've just noticed that the kindle version has several indentation problems in the code listings. I can't do anything to fix it because it is all perfectly aligned

Re: port to PDOS (especially mainframe)

2021-04-14 Thread Alan Gauld via Python-list
On 14/04/2021 11:35, Paul Edwards wrote: > I have succeeded in producing a Python 3.3 executable ... > However, the executable doesn't work yet. Late to this party but how big is the assembler? It might be easier to translate the Python to C! I've done that in the past and with

Re: Website

2021-04-14 Thread Mladen Gogala via Python-list
On Wed, 14 Apr 2021 15:41:37 +0200, Rainyis wrote: > Hello, > I am Sergio Llorente, and I want to create a web about python. I will > publish apps, scripts.. made by python. I will like to put python in the > domain. The domain will be like all-about-python.com bu

Re: Ann: New Python curses book

2021-04-15 Thread Alan Gauld via Python-list
On 14/04/2021 19:55, Rich Shepard wrote: > On Wed, 14 Apr 2021, Alan Gauld via Python-list wrote: > >> The paper version should be fine (apart from one error on p44 which has >> now been fixed!). > > Alan, > > What's the error and correction so I can change it

Re: Current thinking on required options

2021-04-19 Thread Jon Ribbens via Python-list
ffee having a temperature is optional. -- https://mail.python.org/mailman/listinfo/python-list

RE: Current thinking on required options

2021-04-19 Thread Avi Gross via Python-list
us ... And this "-h" notation is very common in programs and can cause the description of how a program should be used more complex than it needs to be if you insist on just one line showing how to use it rather than giving several valid usages. -Original Message- From: Pyth

Re: do ya still use python?

2021-04-19 Thread Jon Ribbens via Python-list
the mailing list. Anyway the state of affairs for us Usenet die-hards > isn't so great. Why do you say that? The group seems quite lively to me (and no I'm not counting spam etc). -- https://mail.python.org/mailman/listinfo/python-list

Re: do ya still use python?

2021-04-20 Thread Alan Gauld via Python-list
On 20/04/2021 04:47, Dan Stromberg wrote: > Actually, this list is less busy than it was a decade or two ago, but > that's probably because of things like stackoverflow, python-dev, pypy-dev, > cython-devel, python-ideas, distutils-sig, issue trackers, code-quality, > an

RE: do ya still use python?

2021-04-21 Thread Avi Gross via Python-list
Yes, Python is a moving target, as are quite a few such things these days. The changes when release 3 came along mean that what you find by a search may not apply to your situation. And as new features get added, some advice might shift. The presence of so many add-on modules also means that the

Re: Ad-hoc SQL query builder for Python3?

2021-04-25 Thread Alan Gauld via Python-list
-- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos -- https://mail.python.org/mailman/listinfo/python-list

Re: "py.ini" question

2021-04-25 Thread Alan Gauld via Python-list
On 24/04/2021 15:23, Gisle Vanem wrote: > I have a question about the Python launcher; >c:\Windows\py.exe and the py.ini file. > > I have both Python 3.6 (32-bit) and Python 3.8 (64-bit) > installed. And I have a 'c:\Users\Gisle\AppData\Local\py.ini' > wi

Re: Ad-hoc SQL query builder for Python3?

2021-04-26 Thread Robert Latest via Python-list
r (ORM) creates a 1:1 mapping of Python objects to SQL table rows. -- robert -- https://mail.python.org/mailman/listinfo/python-list

Re: Start Python programming

2021-04-28 Thread Alan Gauld via Python-list
On 27/04/2021 18:32, Gazoo wrote: > I'd like to start learning Python programming. What sites/tutorials > could you recommend for beginner, please. There is a getting started page on the python web site with links to guide you to many listed suggestions - books, web tutorials, video

RE: Proposal: Disconnect comp.lang.python from python-list

2021-05-05 Thread Avi Gross via Python-list
if one wishes. The difference would include less spoofing but also the ability to remove and that are causing annoyance here. Avi -Original Message- From: Python-list On Behalf Of Chris Angelico Sent: Wednesday, May 5, 2021 8:37 PM To: Python Subject: Re: Proposal: Disconnect

Re: Proposal: Disconnect comp.lang.python from python-list

2021-05-05 Thread Jon Ribbens via Python-list
On 2021-05-06, Chris Angelico wrote: > On Thu, May 6, 2021 at 10:32 AM Paul Bryan wrote: >> >> Given the ease of spoofing sender addresses, and its propensity for use >> in anonymous spamming and trolling (thanks python-list-owner for >> staying on top of that

Re: Proposal: Disconnect comp.lang.python from python-list

2021-05-05 Thread Jon Ribbens via Python-list
ist is done now. They wouldn't need to do any work they don't already do. -- https://mail.python.org/mailman/listinfo/python-list

RE: neoPython : Fastest Python Implementation: Coming Soon

2021-05-05 Thread Avi Gross via Python-list
Chris, I got the fastest python yesterday as it was so fast that it beat the one coming tomorrow. The trick is adding back the legs that evolution allowed to lapse. Without bated breath, Regardless, Avi -Original Message- From: Python-list On Behalf Of Chris Angelico Sent: Wednesday

Re: Proposal: Disconnect comp.lang.python from python-list

2021-05-05 Thread Jon Ribbens via Python-list
On 2021-05-06, Richard Damon wrote: > On 5/5/21 9:40 PM, Jon Ribbens via Python-list wrote: >> On 2021-05-06, Paul Bryan wrote: >>> What's involved in moderating c.l.p? Would there be volunteers willing >>> to do so? >> Nothing at all is involved, apart

Programmed energy use

2021-05-05 Thread Avi Gross via Python-list
instead, including using resources in the cloud and especially programs running as PYTHON, would it be a net good thing for the environment? The reality is the success of Python as an environment that is used in many servers, often alongside others, simply means it is used MORE. If no other language

Re: Proposal: Disconnect comp.lang.python from python-list

2021-05-06 Thread Jon Ribbens via Python-list
On 2021-05-06, Richard Damon wrote: > On 5/5/21 10:44 PM, Jon Ribbens via Python-list wrote: >> On 2021-05-06, Richard Damon wrote: >>> As someone with a long usenet background, converting the existing group >>> to moderated would be practically impossible. It just is

Re: Proposal: Disconnect comp.lang.python from python-list

2021-05-06 Thread Jon Ribbens via Python-list
On 2021-05-06, Skip Montanaro wrote: >> Are you unaware that the group is already gatewayed to a moderated >> mailing list for which all of that work is already done? > > What is this moderation of which you speak? I'm one of the Python > postmasters (I maintain the Spa

Re: Proposal: Disconnect comp.lang.python from python-list

2021-05-06 Thread Jon Ribbens via Python-list
On 2021-05-06, Richard Damon wrote: > On 5/6/21 6:12 AM, Jon Ribbens via Python-list wrote: >> I think you're fundamentally missing the point that the newsgroup is >> *already gatewayed to the mailing list*. Marking the group moderated >> will not result in any more w

Re: Proposal: Disconnect comp.lang.python from python-list

2021-05-06 Thread Jon Ribbens via Python-list
ret he presumably would not have made formal announcements describing himself as a moderator in public on the list. -- https://mail.python.org/mailman/listinfo/python-list

Re: Proposal: Disconnect comp.lang.python from python-list

2021-05-06 Thread Jon Ribbens via Python-list
On 2021-05-06, Richard Damon wrote: > On 5/6/21 9:12 AM, Jon Ribbens via Python-list wrote: >> Are you saying that the messages that appear occasionally from people >> such as Ethan Furman claiming to be moderators and alleging that >> particular people have been banned or su

Re: Proposal: Disconnect comp.lang.python from python-list

2021-05-06 Thread Jon Ribbens via Python-list
On 2021-05-06, Richard Damon wrote: > On 5/6/21 9:44 AM, Jon Ribbens via Python-list wrote: >> Sounds like nearly all moderated lists/forums then. > > Then perhaps you have never been on a real Moderated mailing list or > Forum. Ah, the "no true scotsforum" argum

Re: Proposal: Disconnect comp.lang.python from python-list

2021-05-06 Thread Jon Ribbens via Python-list
s raised so far have any basis whatsoever in reality. And it appears even the suggestion that Mailman 3 cannot be used while a gateway is involved is untrue: https://mailman.readthedocs.io/en/latest/src/mailman/handlers/docs/nntp.html -- https://mail.python.org/mailman/listinfo/python-list

RE: Bloody rubbish

2021-05-06 Thread Avi Gross via Python-list
or feed in programs from paper tape or from punch cards. Most of us have moved on stage by stage and now tools like Python or libraries and modules often at higher levels are more the norm. Can you imagine taking any modern program in digital form as zeroes and ones and entering it by hand? Some

Re: STARTUP FAILURE

2021-05-13 Thread Alan Gauld via Python-list
ble. > Usual questions: Which OS? Which python version? How exactly are you trying to open IDLE? And what happens? Any errors? How are you opening it "from the programs that I have saved" What exactly does that meaN? Right click in a File explorer program maybe? Have you tried othe

Re: Standarize TOML?

2021-05-16 Thread Jon Ribbens via Python-list
JSON and instead selects a file format that doesn't even have a built-in Python parser. -- https://mail.python.org/mailman/listinfo/python-list

Re: Writers [Was: Re: Standarize TOML?]

2021-05-18 Thread Jon Ribbens via Python-list
ere are multiple packages.  There is no consensus on which to pick, >> *if any*. Existing modules apparently include writers, which are >> necessarily opinionated (as is formatting of C, Python, html, ...).  As >> I just noted in the discussion, the stdlib does not have an html

Re: learning python ...

2021-05-24 Thread Rob Cliffe via Python-list
On 24/05/2021 14:34, hw wrote: Your claim that I'm insulting python or anoyone is ridiculous. According to your logic, C is insulting python.  I suggest you stop making assumptions. Calling a mature, widely used language "unfinished" because of what *you* see as a defect

Re: learning python ...

2021-05-24 Thread Rob Cliffe via Python-list
Please don't be put off by your experience so far.  Everyone stumbles along the way and runs into "gotchas" when learning a new language.  Python is a fantastic language for development.  One of my early "epiphany" moments was experimenting with different algorithms

Re: learning python ...

2021-05-24 Thread Alan Gauld via Python-list
On 24/05/2021 07:21, hw wrote: >> Inside the function f() the name 'x" shadows the global "x"; references >> to "x" are to the function's local vairable. Which is very desireable. > > If it works that way, I would consider it an entir

Re: learning python ...

2021-05-24 Thread Alan Gauld via Python-list
On 24/05/2021 16:54, Michael F. Stemper wrote: > In my early days of writing python, I created lists named "list", > dictionaries named "dict", and strings named "str". I mostly know better > now, but sometimes still need to restrain my fingers. I think mo

<    31   32   33   34   35   36   37   38   39   40   >