Re: error of opening Python

2021-02-25 Thread Mladen Gogala via Python-list
t;>> The problem string is "win32". You should be able to open a terminal Window and execute "uname -r". Mladen Gogala Database Consultant https://dbwhisperer.wordpress.com -- https://mail.python.org/mailman/listinfo/python-list

Re: name for a mutually inclusive relationship

2021-02-26 Thread Alan Gauld via Python-list
p://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: error of opening Python

2021-02-26 Thread Mladen Gogala via Python-list
he right place. -- Mladen Gogala Database Consultant https://dbwhisperer.wordpress.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Tkinter needed as a legacy version 2.7 imports the module...

2021-02-27 Thread Alan Gauld via Python-list
On 26/02/2021 22:23, Kevin M. Wilson via Python-list wrote: > Hey Community,    Is there a site where I might/can download a version of > Tkinter for Python 2.7? Which OS? If it's Linux you may need to fetch the tkinter package for your distro. In Windoze it should come as s

yield from () Was: Re: weirdness with list()

2021-03-01 Thread Alan Gauld via Python-list
https://mail.python.org/mailman/listinfo/python-list

Re: yield from () Was: Re: weirdness with list()

2021-03-02 Thread Alan Gauld via Python-list
On 28/02/2021 23:47, Alan Gauld via Python-list wrote: > On 28/02/2021 00:17, Cameron Simpson wrote: > >> BUT... It also has a __iter__ value, which like any Box iterates over >> the subboxes. For MDAT that is implemented like this: >> >> def __iter_

Re: is not recognized as an internal or external command, operable program or batch file.

2021-03-02 Thread Roland Mueller via Python-list
he-windows-path ma 1. maalisk. 2021 klo 20.54 singh.veer99999--- via Python-list ( python-list@python.org) kirjoitti: >Dear Sir/Madam > >Sir I am facing the issue from 10 days. And I tried all the ways to > remove >this or to come out of this problem >but as i t

a + not b

2021-03-03 Thread Rob Cliffe via Python-list
I can't work out why     1 + - 1     1 + (not 1) are legal syntax, but     1 + not 1 isn't. Is there a good reason for this? Thanks Rob Cliffe -- https://mail.python.org/mailman/listinfo/python-list

RE: a + not b

2021-03-03 Thread Avi Gross via Python-list
" and just before "and" and "or" so you need parentheses to force the interpretation you may intend. Similarly, some used of "and" require parentheses as do other operators. -----Original Message- From: Python-list On Behalf Of Rob Cliffe via Python-list

RE: neonumeric - C++ arbitrary precision arithmetic library

2021-03-06 Thread Avi Gross via Python-list
how languages like Python and R grow and how they keep adding features including many borrowed or imitated from elsewhere and I conclude you can just put everything imaginable into Python and the rest become superfluous! Problem solved. -Original Message- From: Python-list On Behalf Of

RE: Apriori Algorithm

2021-03-06 Thread Avi Gross via Python-list
etail that maybe someone understanding it will give you a hint in advance. -Original Message----- From: Python-list On Behalf Of sarang shah Sent: Saturday, March 6, 2021 9:47 PM To: python-list@python.org Subject: Apriori Algorithm I want to make apriori algorithm from start. Anybody have any

How to implement logging for an imported module?

2021-03-07 Thread Robert Latest via Python-list
ning('warning from <%s>', __name__) l.error('error from <%s>', __name__) ### baz.py '''This only works if the importing module is named 'foo', which precludes its use as a library module''' import logging l = logging.getLogger('foo.baz') def func(): l.debug('debug from <%s>', __name__) l.info('info from <%s>', __name__) l.warning('warning from <%s>', __name__) l.error('error from <%s>', __name__) -- https://mail.python.org/mailman/listinfo/python-list

RE: Apriori Algorithm

2021-03-07 Thread Avi Gross via Python-list
s but needs to become some kind of data structure such as a list of tuples or whatever the algorithm wants. -Original Message- From: Python-list On Behalf Of dn via Python-list Sent: Sunday, March 7, 2021 3:09 AM To: python-list@python.org Subject: Re: Apriori Algorithm On 07/03/2021 20.56, s

RE: neonumeric - C++ arbitrary precision arithmetic library

2021-03-07 Thread Avi Gross via Python-list
king anything, but I think a universal translator may not be imminent. -Original Message- From: Python-list On Behalf Of Peter J. Holzer Sent: Sunday, March 7, 2021 2:43 PM To: python-list@python.org Subject: Re: neonumeric - C++ arbitrary precision arithmetic library On 2021-03-06 23:4

RE: Apriori Algorithm

2021-03-07 Thread Avi Gross via Python-list
before. Any voluntary role here is generally to help with questions about fairly specific python code as compared to big projects. Good luck! -Original Message- From: Python-list On Behalf Of sarang shah Sent: Sunday, March 7, 2021 5:23 PM To: python-list@python.org Subject: Re: Apriori

Re: python curses constant names for mouse wheel movements?

2021-03-07 Thread Alan Gauld via Python-list
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 implement logging for an imported module?

2021-03-08 Thread Robert Latest via Python-list
le I must import its logger, too, and decide how to deal with its messages. > I hope that helps, Much appreciated, robert -- https://mail.python.org/mailman/listinfo/python-list

Re: python curses constant names for mouse wheel movements?

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

Application problems

2021-03-10 Thread Yoosuf Oluwatosin via Python-list
several times but it is still the same thing. What could be the problem. Sent from Yahoo Mail for iPhone -- https://mail.python.org/mailman/listinfo/python-list

REPL peculiarity

2021-03-11 Thread Rob Cliffe via Python-list
ter the "def" line.  Why? Tested am using Python 3.8.3 and 2.7.18. Rob Cliffe -- https://mail.python.org/mailman/listinfo/python-list

Re: REPL peculiarity

2021-03-11 Thread Alan Gauld via Python-list
On 11/03/2021 11:01, Rob Cliffe via Python-list wrote: > This is a valid Python program: > > def f(): pass > print(f) > > But at the REPL: > > >>> def f(): pass > ... print(f) >   File "", line 2 >     print(f) >     ^ > SyntaxErr

IDLE python

2021-03-11 Thread Yoosuf Oluwatosin via Python-list
all the procedures listed there but there is still no change. I need help on this Sent from Mail for Windows 10 -- https://mail.python.org/mailman/listinfo/python-list

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
wish you best of luck! robert -- https://mail.python.org/mailman/listinfo/python-list

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
ne it. It’s a trivial exercise in Go. I’m not bashing Python here. I will continue to code with python. Its an exceptional language and community. Just commenting on my experience. humbly, Karen -- https://mail.python.org/mailman/listinfo/python-list

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
uage. It doesn't get more idiotic, frankly. robert -- https://mail.python.org/mailman/listinfo/python-list

Re: .title() - annoying mistake

2021-03-20 Thread Jon Ribbens via Python-list
s. Well, it predates Python's use of Unicode in the default string type, but not Python's use of Unicode in strings. https://github.com/python/cpython/commit/4c08d554b9009899780a5e003d6bbeb5413906ee -- 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 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
n(). That said, I doubt that .title() would make it into Python today if it weren't there already. I'm having fun with this. robert -- https://mail.python.org/mailman/listinfo/python-list

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
rong type for socket >> > > Not familiar with socat, but here's some simple Python code to trigger your > server: > >>>> import socket sock = socket.socket(socket.AF_UNIX) >>>> sock.connect("/tmp/test.socket") sock.send(b"Hello, world") > 12 >>>> sock.close() >>>> Works perfectly, thanks! I'm probably not using socat right. robert -- https://mail.python.org/mailman/listinfo/python-list

Re: .title() - annoying mistake

2021-03-22 Thread Robert Latest via Python-list
ut Unicode is [many things] > The documentation sometimes shorthands things with terms like "upper > case" and "lower case", but that's partly because being pedantically > correct in a docstring doesn't actually help anything, and the code > itself IS correct. ...but hard to maintain and useless. I just love to hate .title() ;-) robert -- https://mail.python.org/mailman/listinfo/python-list

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
print('Unpickled: ', data) else: print('Pickled: ', type(obj)) if os.path.exists(SOCKET): os.unlink(SOCKET) with UnixStreamServer(SOCKET, Handler) as server: server.serve_forever() -- https://mail.python.org/mailman/listinfo/python-list

Re: .title() - annoying mistake

2021-03-22 Thread Robert Latest via Python-list
n.org/mailman/listinfo/python-list

Re: .title() - annoying mistake

2021-03-22 Thread Karen Shaeffer via Python-list
tchas, then you are good to go. I have no more time for this. Thanks for your comment. I learned a little reading the long thread dealing with .title(). (chuckles ;) Humbly, Karen -- https://mail.python.org/mailman/listinfo/python-list

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: python-list@python.org 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
ErWzQJ5Spw%3A1616510303610&source=hp&ei=X_1ZYJPDIobI5gKMk4CACA&iflsig=AI NFCbYAYFoLb50VZVAododj5tTkC9AtICpv08Aw&oq=python+awk+module&gs_lcp=Cgdnd 3Mtd2l6EAMyBggAEBYQHjoHCCMQ6gIQJzoHCC4Q6gIQJzoECCMQJzoFCAAQsQM6CwguELEDEMcBE KMCOggIABCxAxCDAToCCAA6BQguELEDUNobWLhGYIFIaAFwAHgAgAF

RE: convert script awk in python

2021-03-24 Thread Avi Gross via Python-list
anslator by just saving some JSON descriptions? -Original Message- From: Python-list On Behalf Of Cameron Simpson Sent: Tuesday, March 23, 2021 6:38 PM To: Tomasz Rola Cc: Avi Gross via Python-list Subject: Re: convert script awk in python On 23Mar2021 16:37, Tomasz Rola wrote: >On Tue, M

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
w programs as compared to a time they were really useful. So many people sort of live within one application in a GUI rather than work at a textual level in a shell where many problems can rapidly be done with a few smaller tools, often in a pipeline. Avi -Original Message----- From: Pytho

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
- From: Cameron Simpson Sent: Wednesday, March 24, 2021 6:34 PM To: Avi Gross Cc: python-list@python.org Subject: Re: convert script awk in python On 24Mar2021 12:00, Avi Gross wrote: >But I wonder how much languages like AWK are still used to make new >programs as compared to a time

RE: convert script awk in python

2021-03-26 Thread Avi Gross via Python-list
be more wordy. Disclaimer: I am not suggesting people use AWK or PERL or anything else. The focus is if people come from other programming environments and are looking at how to do common tasks in python. -Original Message- From: Python-list On Behalf Of Michael Torrie Sent: Friday, March

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 2qdxy4rzwzuui...@potatochowder.com Sent: Friday, March 26, 2021 9:43 PM To: python-list@python.org 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
wishes but not free to force others to help him when it is not in their interest. -Original Message- From: Python-list On Behalf Of Chris Angelico Sent: Saturday, March 27, 2021 1:37 AM To: Python Subject: Re: python documentation On Sat, Mar 27, 2021 at 4:20 PM wrote: > > Chris, &

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

2021-03-30 Thread Jon Ribbens via Python-list
"noob" > } > ] > > than just > > lod = [] > for name in dod: > d = dod[name] > d["name"] = name > lod.append(d) > > ? There can't be a "canonical" way to perform the arbitrary data conversion you want, because it's arbitrary. Personally I would do this: [dict(data, name=name) for name, data in dod.items()] but it's of course arguable whether this is "more Pythonic" or indeed "better". -- 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
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
/ 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

Ann: New Python curses book

2021-03-30 Thread Alan Gauld via Python-list
ck with it right to the end. Thanks guys. -- 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: 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: python-list@python.org 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
and cures" ... So depending on what country you are interested in, it may well be there but you need to not use the supplied URL and go there directly. -----Original Message- From: Python-list On Behalf Of William Ray Wing via Python-list Sent: Tuesday, March 30, 2021 2:06 PM To: Python

Re: New Python curses book

2021-03-30 Thread Brian Oney via Python-list
March 30, 2021 6:35:20 PM GMT+02:00, Chris Angelico wrote: >On Wed, Mar 31, 2021 at 3:21 AM Avi Gross via Python-list > wrote: >> >> Congratulations, Alan, on the book. >> >> I continue to wonder if people will buy the book for the wrong reason or ban >> it t

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
his space. Hopefully tomorrow. -- 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: 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
-- The lie of USenet is dying is rebuff by these statistics Usenet lives or the internet dies -- https://mail.python.org/mailman/listinfo/python-list

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, 2qdxy4rzwzuui...@potatochowder.com 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, 2qdxy4rzwzuui...@potatochowder.com 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
l.python.org/mailman/listinfo/python-list

RE: Yield after the return in Python function.

2021-04-05 Thread Avi Gross via Python-list
--Original Message----- From: Python-list On Behalf Of Terry Reedy Sent: Monday, April 5, 2021 3:01 PM To: python-list@python.org Subject: Re: Yield after the return in Python function. On 4/5/2021 1:53 PM, Chris Angelico wrote: > On Tue, Apr 6, 2021 at 3:46 AM Terry Reedy wrote: >> *While &#x

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
r/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-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
uggested importing googletrans ... -Original Message- From: Python-list On Behalf Of Quentin Bock Sent: Tuesday, April 13, 2021 3:16 PM To: python-list@python.org Subject: translating external files type thing okay, so I'm making a translating program, and I have files set to be translate

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
uld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos -- https://mail.python.org/mailman/listinfo/python-list

Re: Website

2021-04-14 Thread Mladen Gogala via Python-list
t in Spanish( > todosobrepython.com). Can I use it? > > Thanks in advance, > Sergio I give you my permission. May the Force be with you and your website. -- Mladen Gogala Database Consultant https://dbwhisperer.wordpress.com -- https://mail.python.org/mailman/listinfo/python-list

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
d probably others. > > There was a time when most python-related discussion happened here on > python-list/comp.lang.python. > It's also a reflection of Python's maturity in the market. It is no longer a cute language that folks stumble across and need lots of support to get up and

RE: do ya still use python?

2021-04-21 Thread Avi Gross via Python-list
. -Original Message- From: Python-list On Behalf Of o1bigtenor Sent: Wednesday, April 21, 2021 6:07 AM To: Terry Reedy Cc: Python Subject: Re: do ya still use python? On Tue, Apr 20, 2021 at 6:26 PM Terry Reedy wrote: > > On 4/20/2021 4:32 AM, Alan Gauld via Python-list wrote: &g

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
t: http://www.flickr.com/photos/alangauldphotos -- https://mail.python.org/mailman/listinfo/python-list

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

<    22   23   24   25   26   27   28   29   30   31   >