Re: How/where to store calibration values - written by program A, read by program B

2023-12-30 Thread Chris Green via Python-list
; >> There are a few other questions. Let's say config.py contains a variable > > >> like 'font' that is a user set preference or a calibration value > > >> calculated by A to keep with the thread title. Assuming both scripts are > > >> running, how does

Re: How/where to store calibration values - written by program A, read by program B

2023-12-30 Thread Peter J. Holzer via Python-list
ue > >> calculated by A to keep with the thread title. Assuming both scripts are > >> running, how does the change get propagated to B after it is set in A > > > > It isn't. The variable is set purely in memory. This is a mechanism to > > share a value between

Re: How/where to store calibration values - written by program A, read by program B

2023-12-29 Thread Grant Edwards via Python-list
ned or used (not surprising). >> >> There are a few other questions. Let's say config.py contains a variable >> like 'font' that is a user set preference or a calibration value >> calculated by A to keep with the thread title. Assuming both scripts are >> running

Re: How/where to store calibration values - written by program A, read by program B

2023-12-28 Thread Greg Walters via Python-list
First, one of the posters got it right. Nothing is REALLY ever "written" to the file. Consider it a global variable that isn't a global variable. Assume you have two modules, A and B. Both modules import config. Furthermore, let's assume that Module B 'writes' a variable ca

Re: How/where to store calibration values - written by program A, read by program B

2023-12-28 Thread Richard Damon via Python-list
rising). There are a few other questions. Let's say config.py contains a variable like 'font' that is a user set preference or a calibration value calculated by A to keep with the thread title. Assuming both scripts are running, how does the change get propagated to B after it

Re: How/where to store calibration values - written by program A, read by program B

2023-12-28 Thread Peter J. Holzer via Python-list
. Let's say config.py contains a variable > like 'font' that is a user set preference or a calibration value > calculated by A to keep with the thread title. Assuming both scripts are > running, how does the change get propagated to B after it is set in A It isn't. The va

Re: How/where to store calibration values - written by program A, read by program B

2023-12-28 Thread rbowman via Python-list
erence or a calibration value calculated by A to keep with the thread title. Assuming both scripts are running, how does the change get propagated to B after it is set in A and written to the shared file? Is there a mechanism to allow both scripts to make updates? The easy way out is to assume the c

How/where to store calibration values - written by program A, read by program B

2023-12-27 Thread Greg Walters via Python-list
Many years ago, Fredrik Lundh provided an answer for this question on his website effbot.org. Unfortunately that site has gone, but luckily, it has been preserved in the "wayback machine"...

Re: How/where to store calibration values - written by program A, read by program B

2023-12-09 Thread Peter J. Holzer via Python-list
On 2023-12-06 07:23:51 -0500, Thomas Passin via Python-list wrote: > On 12/6/2023 6:35 AM, Barry Scott via Python-list wrote: > > Personally I would not use .ini style these days as the format does not > > include type of the data. > > Neither does JSON. Well, it distinguishes between some

Re: How/where to store calibration values - written by program A, read by program B

2023-12-06 Thread Thomas Passin via Python-list
pairs, it has one level of hierarchy, e.g.:-     KEY1:   a: v1   c: v3   d: v4     KEY2:   a: v7   b: v5   d: v6 Different numbers of value pairs under each KEY. JSON will allow you to nest dictionaries. { 'KEY1': { 'a': v1 'c': v3 'd': v4

Re: How/where to store calibration values - written by program A, read by program B

2023-12-06 Thread MRAB via Python-list
is *slightly* more complex than just key value pairs, it has one level of hierarchy, e.g.:-     KEY1:   a: v1   c: v3   d: v4     KEY2:   a: v7   b: v5   d: v6 Different numbers of value pairs under each KEY. JSON will allow you to nest dictionaries. { 'KEY1

Re: How/where to store calibration values - written by program A, read by program B

2023-12-06 Thread dn via Python-list
, it has one level of hierarchy, e.g.:-     KEY1:   a: v1   c: v3   d: v4     KEY2:   a: v7   b: v5   d: v6 Different numbers of value pairs under each KEY. JSON will allow you to nest dictionaries. { 'KEY1': { 'a': v1 'c': v3 'd': v4

Re: How/where to store calibration values - written by program A, read by program B

2023-12-06 Thread MRAB via Python-list
.:- KEY1: a: v1 c: v3 d: v4 KEY2: a: v7 b: v5 d: v6 Different numbers of value pairs under each KEY. JSON will allow you to nest dictionaries. { 'KEY1': { 'a': v1 'c': v3 'd': v4 } 'KEY2': { 'a': v7

Re: How/where to store calibration values - written by program A, read by program B

2023-12-06 Thread Thomas Passin via Python-list
: a: v7 b: v5 d: v6 Different numbers of value pairs under each KEY. JSON will allow you to nest dictionaries. { 'KEY1': { 'a': v1 'c': v3 'd': v4 } 'KEY2': { 'a': v7 'b': v5 'd': v6 } } Personally I would

Re: How/where to store calibration values - written by program A, read by program B

2023-12-06 Thread Dan Purgert via Python-list
On 2023-12-06, Stefan Ram wrote: > Chris Green writes: >>KEY1: >> a: v1 >> c: v3 >> d: v4 >>KEY2: >> a: v7 >> b: v5 >> d: v6 > > That maps nicely to two directories with three files > (under a

Re: How/where to store calibration values - written by program A, read by program B

2023-12-06 Thread Barry Scott via Python-list
> On 6 Dec 2023, at 09:32, Chris Green via Python-list > wrote: > > My requirement is *slightly* more complex than just key value pairs, > it has one level of hierarchy, e.g.:- > >KEY1: > a: v1 > c: v3 > d: v4 >KEY2: >

Re: How/where to store calibration values - written by program A, read by program B

2023-12-06 Thread Dan Sommers via Python-list
han just key value pairs, > it has one level of hierarchy, e.g.:- > > KEY1: > a: v1 > c: v3 > d: v4 > KEY2: > a: v7 > b: v5 > d: v6 > > Different numbers of value pairs under each KEY. INI files have sections. See

Re: How/where to store calibration values - written by program A, read by program B

2023-12-06 Thread Chris Green via Python-list
Thank you everyone for all the suggestions, I now have several possibilities to follow up. :-) -- Chris Green · -- https://mail.python.org/mailman/listinfo/python-list

Re: How/where to store calibration values - written by program A, read by program B

2023-12-06 Thread Chris Green via Python-list
gt; > >     key1: value1 > >     key2: value2 > > > > Simple to read, simple to write. > > Just go with an .ini file. Simple, well-supported by the standard > library. And it gives you key/value pairs. > My requirement is *slightly* more complex than just

Re: How/where to store calibration values - written by program A, read by program B

2023-12-06 Thread Chris Green via Python-list
Paul Rubin wrote: > Chris Green writes: > > I could simply write the values to a file (or a database) and I > > suspect that this may be the best answer but it does make retrieving > > the values different from getting all other (nearly) constant values. > > I've used configparser for this,

Re: How/where to store calibration values - written by program A, read by program B

2023-12-05 Thread Thomas Passin via Python-list
On 12/5/2023 11:50 AM, MRAB via Python-list wrote: On 2023-12-05 14:37, Chris Green via Python-list wrote: Is there a neat, pythonic way to store values which are 'sometimes' changed? My particular case at the moment is calibration values for ADC inputs which are set by running a calibration

Re: How/where to store calibration values - written by program A, read by program B

2023-12-05 Thread DL Neil via Python-list
Apologies: neglected suggested web.refs: https://datagy.io/python-environment-variables/ https://pypi.org/project/json_environ/ -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: How/where to store calibration values - written by program A, read by program B

2023-12-05 Thread DL Neil via Python-list
hen search - either Duckboards or straight from Pepi. I have systems which use an DBMS for environment variables, but (a) only when there's a significant number, and (b) when the application is already connecting to the DBMS for processing [and maybe (c) because I know my way arou

Re: How/where to store calibration values - written by program A, read by program B

2023-12-05 Thread Barry Scott via Python-list
> On 5 Dec 2023, at 14:37, Chris Green via Python-list > wrote: > > Are there any Python modules aimed specifically at this sort of > requirement? I tend to use JSON for this type of thing. Suggest that you use the options to pretty print the json that is saved so that a human can read it.

Re: How/where to store calibration values - written by program A, read by program B

2023-12-05 Thread Mats Wichmann via Python-list
On 12/5/23 07:37, Chris Green via Python-list wrote: Is there a neat, pythonic way to store values which are 'sometimes' changed? My particular case at the moment is calibration values for ADC inputs which are set by running a calibration program and used by lots of programs which display the

Re: How/where to store calibration values - written by program A, read by program B

2023-12-05 Thread MRAB via Python-list
On 2023-12-05 14:37, Chris Green via Python-list wrote: Is there a neat, pythonic way to store values which are 'sometimes' changed? My particular case at the moment is calibration values for ADC inputs which are set by running a calibration program and used by lots of programs which display

How/where to store calibration values - written by program A, read by program B

2023-12-05 Thread Chris Green via Python-list
Is there a neat, pythonic way to store values which are 'sometimes' changed? My particular case at the moment is calibration values for ADC inputs which are set by running a calibration program and used by lots of programs which display the values or do calculations with them. From the program

Re: one Liner: Lisprint(x) --> (a, b, c) instead of ['a', 'b', 'c']

2023-02-27 Thread Greg Ewing via Python-list
On 28/02/23 4:24 pm, Hen Hanna wrote: is it poss. to peek at the Python-list's messages without joining ? It's mirrored to the comp.lang.python usenet group, or you can read it through gmane with a news client. -- Greg --

RE: one Liner: Lisprint(x) --> (a, b, c) instead of ['a', 'b', 'c']

2023-02-26 Thread avi.e.gross
4, (5, 6, 7), 8), 9) People who speak python well do not necessarily lisp. -Original Message- From: Python-list On Behalf Of Hen Hanna Sent: Sunday, February 26, 2023 4:54 AM To: python-list@python.org Subject: Re: one Liner: Lisprint(x) --> (a, b, c) instead of ['a', 'b', 'c'] On Sa

Re: one Liner: Lisprint(x) --> (a, b, c) instead of ['a', 'b', 'c']

2023-02-26 Thread Hen Hanna
On Saturday, February 25, 2023 at 11:45:12 PM UTC-8, Hen Hanna wrote: > def Lisprint(x): print( ' (' + ', '.join(x) + ')' , '\n') > > a= ' a b c ? def f x if zero? x 0 1 ' > a += ' A B C ! just an example ' > x= a.split() > > print(x) > Lisprint(x) > > ['a',

one Liner: Lisprint(x) --> (a, b, c) instead of ['a', 'b', 'c']

2023-02-26 Thread Hen Hanna
def Lisprint(x): print( ' (' + ', '.join(x) + ')' , '\n') a=' a b c ? def f x if zero? x 0 1 ' a += ' A B C ! just an example ' x= a.split() print(x) Lisprint(x) ['a', 'b', 'c', '?', 'def', 'f', 'x', 'if', 'zero?', 'x', '0', '1', 'A', 'B', 'C', '!', 'just', 'an', 'example'] (a, b

[issue536278] force gzip to open files with 'b'

2022-04-10 Thread admin
Change by admin : -- github: None -> 36347 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue484866] print '\b', '\a', etc.

2022-04-10 Thread admin
Change by admin : -- github: None -> 35569 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue476557] Wrong error message for file.write(a, b)

2022-04-10 Thread admin
Change by admin : -- github: None -> 35429 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue455076] %b format support for string/unicode

2022-04-10 Thread admin
Change by admin : -- github: None -> 35044 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue457066] pow(a,b,c) should accept b<0

2022-04-10 Thread admin
Change by admin : -- github: None -> 35082 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue447478] a = b = c problem with tuples...

2022-04-10 Thread admin
Change by admin : -- github: None -> 34888 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue449989] Make dir() more b/w compatible

2022-04-10 Thread admin
Change by admin : -- github: None -> 34943 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue226665] makepy crashes parsing "Hauppauge WinTV OCX (b.11)

2022-04-10 Thread admin
Change by admin : -- github: None -> 33629 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue400841] Add 'parallel for-oop': for x in a; y in b; z in c: <...>

2022-04-10 Thread admin
Change by admin : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue400841] Add 'parallel for-oop': for x in a; y in b; z in c: <...>

2022-04-10 Thread admin
Change by admin : -- github: None -> 32598 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30819] Linking with 'ld -b' fails with 64-bit using Itanium HP compiler

2022-01-17 Thread Irit Katriel
Irit Katriel added the comment: Robert's PR was merged so I'm assuming this is fixed. Reopen or create a new issue if not. -- nosy: +iritkatriel resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue7938] makesetup interprets macros -DA=B as a Make variable definition

2021-10-20 Thread Christian Heimes
Change by Christian Heimes : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.6 ___ Python tracker ___ ___

Re: XLRDError: Unsupported format, or corrupt file: Expected BOF record; found b'\r\n\r\n\r\n\r\n'

2021-09-30 Thread hongy...@gmail.com
following command, but > > > failed: > > > > > > $ in2csv --sheet 'Sheet1' 2021-2022-1.xls > > > XLRDError: Unsupported format, or corrupt file: Expected BOF record; > > > found b'\r\n\r\n\r\n\r\n' > > > > > > The above testing file i

Re: XLRDError: Unsupported format, or corrupt file: Expected BOF record; found b'\r\n\r\n\r\n\r\n'

2021-09-29 Thread hongy...@gmail.com
1-2022-1.xls > > XLRDError: Unsupported format, or corrupt file: Expected BOF record; found > > b'\r\n\r\n\r\n\r\n' > > > > The above testing file is located at here [1]. > > > > [1] https://github.com/hongyi-zhao/temp/blob/master/2021-2022-1.xls > Why is that fi

Re: XLRDError: Unsupported format, or corrupt file: Expected BOF record; found b'\r\n\r\n\r\n\r\n'

2021-09-29 Thread Peter J. Holzer
On 2021-09-29 01:22:03 -0700, hongy...@gmail.com wrote: > I tried to convert a xls file into csv with the following command, but failed: > > $ in2csv --sheet 'Sheet1' 2021-2022-1.xls > XLRDError: Unsupported format, or corrupt file: Expected BOF record; found > b'\

Re: XLRDError: Unsupported format, or corrupt file: Expected BOF record; found b'\r\n\r\n\r\n\r\n'

2021-09-29 Thread J.O. Aho
XLRDError: Unsupported format, or corrupt file: Expected BOF record; found b'\r\n\r\n\r\n\r\n' The above testing file is located at here [1]. [1] https://github.com/hongyi-zhao/temp/blob/master/2021-2022-1.xls Any hints for fixing this problem? You need to delete the 13 first lines in the file Yes

Re: XLRDError: Unsupported format, or corrupt file: Expected BOF record; found b'\r\n\r\n\r\n\r\n'

2021-09-29 Thread hongy...@gmail.com
to convert a xls file into csv with the following command, but > >>> failed: > >>> > >>> $ in2csv --sheet 'Sheet1' 2021-2022-1.xls > >>> XLRDError: Unsupported format, or corrupt file: Expected BOF record; > >>> found b'\r\n\r\n\r\n

Re: XLRDError: Unsupported format, or corrupt file: Expected BOF record; found b'\r\n\r\n\r\n\r\n'

2021-09-29 Thread hongy...@gmail.com
gt; XLRDError: Unsupported format, or corrupt file: Expected BOF record; found > > b'\r\n\r\n\r\n\r\n' > > > > The above testing file is located at here [1]. > > > > [1] https://github.com/hongyi-zhao/temp/blob/master/2021-2022-1.xls > > > > Any hints f

Re: XLRDError: Unsupported format, or corrupt file: Expected BOF record; found b'\r\n\r\n\r\n\r\n'

2021-09-29 Thread J.O. Aho
On 29/09/2021 10.22, hongy...@gmail.com wrote: I tried to convert a xls file into csv with the following command, but failed: $ in2csv --sheet 'Sheet1' 2021-2022-1.xls XLRDError: Unsupported format, or corrupt file: Expected BOF record; found b'\r\n\r\n\r\n\r\n' The above testing file

XLRDError: Unsupported format, or corrupt file: Expected BOF record; found b'\r\n\r\n\r\n\r\n'

2021-09-29 Thread hongy...@gmail.com
I tried to convert a xls file into csv with the following command, but failed: $ in2csv --sheet 'Sheet1' 2021-2022-1.xls XLRDError: Unsupported format, or corrupt file: Expected BOF record; found b'\r\n\r\n\r\n\r\n' The above testing file is located at here [1]. [1] https://github.com/hongyi

[issue44398] IDLE: On macOS, cntl-space/backslash display as ^S/^B

2021-06-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: ^B would work as an alternate binding for <> as it is not used otherwise, but I prefer not to have to do this. These are the only named keys other than the 'F#'s. -- ___ Python tracker <https://bugs.p

[issue44398] IDLE: On macOS, cntl-space/backslash display as ^S/^B

2021-06-11 Thread Terry J. Reedy
he result on macOS would be the correct '^\'. -- assignee: terry.reedy components: IDLE, macOS messages: 395656 nosy: ned.deily, ronaldoussoren, taleinat, terry.reedy priority: normal severity: normal stage: needs patch status: open title: IDLE: On macOS, cntl-space/backslash display as ^S

[issue31711] ssl.SSLSocket.send(b"") fails

2021-04-18 Thread Christian Heimes
Christian Heimes added the comment: Thanks to PEP 644 the issue will be fixed in 3.10 by using SSL_read_ex and SSL_write_ex() functions. I couldn't use the functions earlier because Python had to support older OpenSSL versions and LibreSSL. See https://github.com/python/cpython/pull/25468

Re: a + not b

2021-03-03 Thread MRAB
l Message- From: Python-list On Behalf Of Rob Cliffe via Python-list Sent: Wednesday, March 3, 2021 10:19 PM To: Python Subject: a + not b 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

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

[issue33289] tkinter askcolor returning floats for r, g, b values instead of ints

2021-01-25 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue33289] tkinter askcolor returning floats for r, g, b values instead of ints

2021-01-25 Thread miss-islington
miss-islington added the comment: New changeset 96bcf6f4d4bed1cdf97883eb43e872ff1a92013d by Miss Islington (bot) in branch '3.8': [3.9] bpo-33289: Return RGB triplet of ints instead of floats from tkinter.colorchooser (GH-6578). (GH-24318)

[issue33289] tkinter askcolor returning floats for r, g, b values instead of ints

2021-01-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 3d5434d5cbc945c58be663e3dbd5ef4875677b7a by Serhiy Storchaka in branch '3.9': [3.9] bpo-33289: Return RGB triplet of ints instead of floats from tkinter.colorchooser (GH-6578). (GH-24318)

[issue33289] tkinter askcolor returning floats for r, g, b values instead of ints

2021-01-25 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +23144 pull_request: https://github.com/python/cpython/pull/24325 ___ Python tracker

[issue33289] tkinter askcolor returning floats for r, g, b values instead of ints

2021-01-24 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +23137 pull_request: https://github.com/python/cpython/pull/24318 ___ Python tracker ___

[issue33289] tkinter askcolor returning floats for r, g, b values instead of ints

2021-01-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 6713e869c4989c04318158b406c30a147ea52904 by Cheryl Sabella in branch 'master': bpo-33289: Return RGB triplet of ints instead of floats from tkinter.colorchooser (GH-6578)

[issue33289] tkinter askcolor returning floats for r, g, b values instead of ints

2021-01-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: Your Linux result is the same as on Windows. Given strings 'abc' or 'abcd', ignore 'c' or 'cd' and expand 'ab' to 'abab', making value 0xabab. Is your computer Ubuntu (implying that personal Ubuntu != CI Ubuntu) or a different Linux? Are there tk/tcl

[issue33289] tkinter askcolor returning floats for r, g, b values instead of ints

2021-01-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I do not understand why #abc00 and #abcd give 0xabab on my computer (Linux) and even weirder result on Ubuntu on CI. Reading the code I expected the same behavior as on macOS. -- ___ Python tracker

[issue33289] tkinter askcolor returning floats for r, g, b values instead of ints

2021-01-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: 65535 = 35536 - 1 = 256 * 256 - 1 == 255 * 257 On Windows, each r, g, b value is n * 257 for n in range(256) (see attached file). The precision loss happens when colors are stored, before the division in winfo_rgb. Perhaps 8 bits/channel (including alpha

[issue33289] tkinter askcolor returning floats for r, g, b values instead of ints

2021-01-21 Thread Terry J. Reedy
uld depend on the window. The mapping *does* differ between systems (see below). https://www.tcl.tk/man/tcl8.6/TkLib/GetColor.htm Lists possible return values, hence acceptible forms, as name or '#' followed by 1 to 4 hex digits. It continues with "Each R, G, or B represents a single he

[issue41910] Document that object.__eq__ implements `a is b`

2020-12-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset a3a4bf3b8dc79e4ec4f24f59bd1e9e2a75229112 by Terry Jan Reedy in branch '3.9': [3.9] bpo-41910: move news entry (GH-23697) https://github.com/python/cpython/commit/a3a4bf3b8dc79e4ec4f24f59bd1e9e2a75229112 --

[issue41910] Document that object.__eq__ implements `a is b`

2020-12-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset b947b305a6833cc059214d5bdd2065edd65024c4 by Terry Jan Reedy in branch '3.8': [3.8] bpo-41910: move news entry (GH-23698) https://github.com/python/cpython/commit/b947b305a6833cc059214d5bdd2065edd65024c4 --

[issue41910] Document that object.__eq__ implements `a is b`

2020-12-08 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +22565 pull_request: https://github.com/python/cpython/pull/23698 ___ Python tracker ___

[issue41910] Document that object.__eq__ implements `a is b`

2020-12-08 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +22564 pull_request: https://github.com/python/cpython/pull/23697 ___ Python tracker ___

[issue41910] Document that object.__eq__ implements `a is b`

2020-12-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 4aa67853cc7d6ed4f9ebb726ceaa2c89f9feabda by Terry Jan Reedy in branch 'master': bpo-41910: move news entry (GH-23695) https://github.com/python/cpython/commit/4aa67853cc7d6ed4f9ebb726ceaa2c89f9feabda --

[issue41910] Document that object.__eq__ implements `a is b`

2020-12-08 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +22562 pull_request: https://github.com/python/cpython/pull/23695 ___ Python tracker ___

[issue42537] Implement built-in shorthand b() for breakpoint()

2020-12-03 Thread Qingyao Sun
Qingyao Sun added the comment: See https://mail.python.org/archives/list/python-id...@python.org/thread/6UAJRDKVJNZ7EACXUTUCKSGAEYPJHME5/ -- stage: -> resolved status: open -> closed ___ Python tracker

[issue42537] Implement built-in shorthand b() for breakpoint()

2020-12-02 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42537] Implement built-in shorthand b() for breakpoint()

2020-12-02 Thread Qingyao Sun
New submission from Qingyao Sun : Placeholder issue for discussion of the proposal of a built-in shorthand b() for breakpoint(). -- components: Interpreter Core messages: 382306 nosy: nalzok priority: normal severity: normal status: open title: Implement built-in shorthand b

[issue11604] Have type(n,b,d) check for type(b[i]) is module

2020-11-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: I cannot anymore remember seeing this. So closing. -- resolution: -> out of date stage: test needed -> resolved status: pending -> closed ___ Python tracker

[issue11604] Have type(n,b,d) check for type(b[i]) is module

2020-11-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Special cases aren't special enough to break the rules. I think this issue should be closed. This is not common user error, especially in Python 3. I can even imagine that you can subclass module, if it is an instance of special ModuleType subclass. It is

[issue11604] Have type(n,b,d) check for type(b[i]) is module

2020-11-16 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +newcomer friendly versions: +Python 3.10, Python 3.9 -Python 3.3 ___ Python tracker ___ ___

[issue41910] Document that object.__eq__ implements `a is b`

2020-10-21 Thread Brett Cannon
Brett Cannon added the comment: Thanks, Terry! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41910] Document that object.__eq__ implements `a is b`

2020-10-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: Brett, I presume you want this closed. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue41910] Document that object.__eq__ implements `a is b`

2020-10-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset b2b3803081f07600710273b4f902b5be6e5596e7 by Miss Skeleton (bot) in branch '3.8': bpo-41910: specify the default implementations of object.__eq__ and object.__ne__ (GH-22874) (#22877)

[issue41910] Document that object.__eq__ implements `a is b`

2020-10-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset c3538b83816663d7b767391a375179a0ce923990 by Miss Skeleton (bot) in branch '3.9': bpo-41910: specify the default implementations of object.__eq__ and object.__ne__ (GH-22874) (#22876)

[issue41910] Document that object.__eq__ implements `a is b`

2020-10-21 Thread miss-islington
miss-islington added the comment: New changeset 3c69f0c933d4790855929f1fcd74e4a0fefb5d52 by Brett Cannon in branch 'master': bpo-41910: specify the default implementations of object.__eq__ and object.__ne__ (GH-22874)

[issue41910] Document that object.__eq__ implements `a is b`

2020-10-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +21818 pull_request: https://github.com/python/cpython/pull/22876 ___ Python tracker ___

[issue41910] Document that object.__eq__ implements `a is b`

2020-10-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +21819 pull_request: https://github.com/python/cpython/pull/22877 ___ Python tracker ___

[issue41910] Document that object.__eq__ implements `a is b`

2020-10-21 Thread Brett Cannon
Change by Brett Cannon : -- keywords: +patch pull_requests: +21816 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22874 ___ Python tracker ___

[issue41910] Document that object.__eq__ implements `a is b`

2020-10-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: The word 'object' in this section is a bit confusing because it refers to any Python object, not to base class 'object' or an instance thereof. I suspect that this usage predates the introduction of the latter in 2.2. This interpretation is required for

[issue41910] Document that object.__eq__ implements `a is b`

2020-10-02 Thread Brett Cannon
Change by Brett Cannon : -- assignee: docs@python -> brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41910] Document that object.__eq__ implements `a is b`

2020-10-02 Thread Brett Cannon
/Objects/typeobject.c#L3834-L3880 shows that object.__eq__ actually does have an implementation of `a is b`/`id(a) == id(b)`. -- assignee: docs@python components: Documentation messages: 377816 nosy: brett.cannon, docs@python priority: low severity: normal status: open title: Document

[issue37827] IDLE: Have the shell mimic terminal handling of \r and \b control characters in outputs

2020-09-19 Thread Tal Einat
Tal Einat added the comment: I will highlight the fact that IDLE's shell currently allows no way of showing a progress indicator, beyond extremely simple bar that only fill up from left to right, without any indication of the rightmost limit, a percentage indicator, or a rotating progress

[issue37827] IDLE: Have the shell mimic terminal handling of \r and \b control characters in outputs

2020-09-19 Thread Tal Einat
t;. If in the future there is interest in this again, it may be reopened. -- resolution: -> rejected stage: patch review -> resolved status: open -> closed title: IDLE Shell: add a terminal mode that responds to \a, \b, and \r -> IDLE: Have the shell mimic terminal handling

Re: importlib: import X as Y; from A import B

2020-08-10 Thread Jason Friedman
> > import pandas; pd = pandas > > >df = pd.from_csv (...) > >from selenium import webdriver > > import selenium.webdriver; webdriver = selenium.webdriver > Thank you, this works. -- https://mail.python.org/mailman/listinfo/python-list

Re: importlib: import X as Y; from A import B

2020-08-09 Thread Dieter Maurer
Jason Friedman wrote at 2020-8-8 21:23 -0600: > ... >The cherry-on-top would be to import with the "aliasing" and "from" they >will most likely see on the web, so that my code matches what they see >there. In other words, instead of: > >import pandas >df = pandas.from_csv (...) >import selenium

Re: importlib: import X as Y; from A import B

2020-08-08 Thread Chris Angelico
On Sun, Aug 9, 2020 at 1:25 PM Jason Friedman wrote: > > I have some code I'm going to share with my team, many of whom are not yet > familiar with Python. They may not have 3rd-party libraries such as pandas > or selenium installed. Yes I can instruct them how to install, but the path > of least

Re: importlib: import X as Y; from A import B

2020-08-08 Thread dn via Python-list
On 09/08/2020 15:23, Jason Friedman wrote: I have some code I'm going to share with my team, many of whom are not yet familiar with Python. They may not have 3rd-party libraries such as pandas or selenium installed. Yes I can instruct them how to install, but the path of least resistance is to

importlib: import X as Y; from A import B

2020-08-08 Thread Jason Friedman
I have some code I'm going to share with my team, many of whom are not yet familiar with Python. They may not have 3rd-party libraries such as pandas or selenium installed. Yes I can instruct them how to install, but the path of least resistance is to have my code to check for missing dependencies

[issue41467] asyncio: recv_into() must not return b'' if the socket/pipe is closed

2020-08-05 Thread David Bolen
David Bolen added the comment: Just for the record, this fix also appears to have resolved the issue with the Win10 buildbot from bpo-41273, which was related to the same unraisable exceptions mentioned in bpo-38912. -- nosy: +db3l ___ Python

[issue41467] asyncio: recv_into() must not return b'' if the socket/pipe is closed

2020-08-04 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue41467] asyncio: recv_into() must not return b'' if the socket/pipe is closed

2020-08-03 Thread miss-islington
miss-islington added the comment: New changeset 1d16229f3f5b91f2389c7c5c6425c5524c413651 by Miss Islington (bot) in branch '3.9': bpo-41467: Fix asyncio recv_into() on Windows (GH-21720) https://github.com/python/cpython/commit/1d16229f3f5b91f2389c7c5c6425c5524c413651 --

  1   2   3   4   5   6   7   8   9   10   >