Re: Division-Bug in decimal and mpmath

2024-12-15 Thread Mark Bourne via Python-list
2qdxy4rzwzuui...@potatochowder.com wrote: On 2024-12-14 at 12:08:29 +, Mark Bourne via Python-list wrote: Martin Ruppert wrote: Hi, the division 0.4/7 provides a wrong result. It should give a periodic decimal fraction with at most six digits, but it doesn't. Below is the comparis

Re: Division-Bug in decimal and mpmath

2024-12-14 Thread Mark Bourne via Python-list
Martin Ruppert wrote: Hi, the division 0.4/7 provides a wrong result. It should give a periodic decimal fraction with at most six digits, but it doesn't. Below is the comparison of the result of decimal, mpmath, dc and calc. 0.0571428571428571460292086417861615440675190516880580357142857 decim

Re: Chardet oddity

2024-10-24 Thread Mark Bourne via Python-list
ge': ''} # Terminal $ python -m chardet FILENAME FILENAME: MacRoman with confidence 0.7167379080370483 Thanks! Albert-Jan -- Mark. -- https://mail.python.org/mailman/listinfo/python-list

Re: Trouble with mocking

2024-09-20 Thread Mark Bourne via Python-list
n2_to_mock` won't call `function1_to_mock` (or its mock) regardless of whether `function1_to_mock` has been patched, unless you set the mock of `function2_to_mock` to do so. You don't necessarily need to patch `function1_to_mock`, unless of course there are other calls to it that you need to mock. -- Mark. -- https://mail.python.org/mailman/listinfo/python-list

Re: A technique from a chatbot

2024-04-05 Thread Mark Bourne via Python-list
Stefan Ram wrote: Mark Bourne wrote or quoted: I don't think there's a tuple being created. If you mean: ( word for word in list_ if word[ 0 ]== 'e' ) ...that's not creating a tuple. It's a generator expression, which generates the next value each time it&#

Re: A technique from a chatbot

2024-04-05 Thread Mark Bourne via Python-list
avi.e.gr...@gmail.com wrote: That is an excellent point, Mark. Some of the proposed variants to the requested problem, including mine, do indeed find all instances only to return the first. This can use additional time and space but when done, some of the overhead is also gone. What I mean is

Re: A technique from a chatbot

2024-04-04 Thread Mark Bourne via Python-list
t expression, you'd need to pass the generator to tuple's constructor: tuple(word for word in list_ if word[0] == 'e') (You don't need to include an extra set of brackets when passing a generator a the only argument to a function). -- Mark. -- https://mail.python.org/mailman/listinfo/python-list

Re: A missing iterator on itertools module?

2024-04-01 Thread Mark Bourne via Python-list
may be that it also uses `__all__` to determine a module's public API. In that case, setting `__all__ = ["f"]` in `A` should prevent it from offering `math` as a completion (nor any other name that's not in the `__all__` list). -- Mark. -- https://mail.python.org/mailman/listinfo/python-list

Re: Using a background thread with asyncio/futures with flask

2024-03-22 Thread Mark Bourne via Python-list
;: main() ``` By default, the main process won't exit until there are no non-daemon threads still running. You can either send some sort of signal to the threads signal the threads to exit the loop and return cleanly (you'd also need a timeout on the queue `get()` calls). Or you can create the threads as "daemon" threads (as in the commented-out lines), in which case they'll be killed when all non-daemon threads have exited. Daemon threads don't get a chance to do any cleanup, close resources, etc. when they're killed, though, so aren't always appropriate. -- Mark. -- https://mail.python.org/mailman/listinfo/python-list

Re: Popping key causes dict derived from object to revert to object

2024-03-22 Thread Mark Bourne via Python-list
ce_state'] (There's not really any point popping the value if you're not going to do anything with it - just delete the key from the dictionary) -- Mark. -- https://mail.python.org/mailman/listinfo/python-list

Attaching a mock function to another mock breaks reset_mock()

2023-06-19 Thread Mark Bourne via Python-list
re something I'm doing wrong here? Or does this seem like a bug in unittest.mock that I should report? Perhaps this is something that's not often done, so the issue hasn't been noticed before. Trying to search for information generally leads back to the unittest.mock documenta

Re: f-string syntax deficiency?

2023-06-06 Thread Mark Bourne via Python-list
the `dest` argument to `add_argument()` which can specify a different name for the attribute used in code (it's almost like they thought about this type of problem ;o)). If it's from `optparse`, that has a similar argument, but `optparse` is deprecated so consider updating to `argparse`. (Recently there has been an effort to provide clearer and more useful error messages; this seems to be a case where there is still room for improvement: "SyntaxError: invalid syntax" doesn't immediately remind me of that fact that 'return' is a keyword and therefor can't be used as an attribute.) -- Mark. -- https://mail.python.org/mailman/listinfo/python-list

Fwd: Problems Installing and getting started.

2023-05-31 Thread Mark Bass
-- Forwarded message - From: Mark Bass Date: Wed, 31 May 2023 at 08:09 Subject: Problems Installing and getting started. To: Good morning, I installed python several hours ago (from python.org), I then installed the IDE PyCharm. I'm using AI to help with a project

Re: Question regarding unexpected behavior in using __enter__ method

2023-04-26 Thread Mark Bourne
that it's the first example (with `__enter__ = int`) that should be a bit more surprising. (I'm not sure there's much practical use for the original `__enter__ = int` either, but presumably that's just used as a cut-down demonstration). -- Mark. -- https://mail.python.org/mailman/listinfo/python-list

Re: Pycharm IDE

2023-04-19 Thread Mark Bourne
at 11:17:52 PM MDT, Kevin M. Wilson via Python-list wrote:   print (f'"I am thinking of a number between 1 to {LIMIT}\n")I had the impression that the format specifier 'f' was necessary for the print function, but the double quotes are for the string printed to the

Re: Windows installer from python source code without access to source code

2023-04-07 Thread Mark Bourne
r list administrators! Ignore the admin address and password boxes, just fill in your email address in the box below those and click "Unsubscribe or edit options". -- Mark. -- https://mail.python.org/mailman/listinfo/python-list

Re: Line continuation and comments

2023-02-24 Thread Mark Bourne
ontinuation anyway. You could almost think of "\ (newline)" in a multiline string as being like an escape sequence meaning "don't actually put a newline character in the string here", in a similar way to "\n" meaning "put a newline character here" and

Re: Add angle brackets for required args in argparse

2023-02-20 Thread Mark Bourne
` for every positional argument. However, it is overriding a non-public method of the `HelpFormatter` class, so might not work across all Python versions if the name or signature of that method changes (even if it does work with all current versions, it might break in future). -- Mark. -- https://mail.python.org/mailman/listinfo/python-list

Re: ChatGPT Generated news poster code

2023-02-13 Thread Mark Bourne
d have been, because the block size was reported differently.) -- Mark. -- https://mail.python.org/mailman/listinfo/python-list

Re: A Function's name during its definition

2023-02-07 Thread Mark Bourne
Stefan Ram wrote: Mark Bourne writes: In the second case, eval() only gets the globals and immediate locals, Yes, I think you are right. Curiously, the following program would mislead one to thing that eval /does/ see the intermediate names: main.py def f(): x = 22 def g

Re: A Function's name during its definition

2023-02-07 Thread Mark Bourne
y eval() can't see it. The following does work: def g(): def f(): print(eval('g')) f() g() ...because in this case "g" is defined in the global scope, so the code in the eval call can see it. The following also works: def g(): def f(): pas

Re: evaluation question

2023-02-02 Thread Mark Bourne
ioned. That's about an 11 year transition period, which is hardly sudden! Python 3 *was* the point at which the features deprecated in Python 2 were removed. The problem is, a lot seemed to ignore Python 3 for the first 12 years and then suddenly panic because Python 2 support had ended.

Re: evaluation question

2023-01-31 Thread Mark Bourne
ose is to have an effect just return None. -- Mark. -- https://mail.python.org/mailman/listinfo/python-list

Re: How to make argparse accept "-4^2+5.3*abs(-2-1)/2" string argument?

2023-01-29 Thread Mark Bourne
applications might not use that convention even if called from the same shell, so it seems *more* in scope for your application to document than using quotes around spaces. -- Mark. -- https://mail.python.org/mailman/listinfo/python-list

Re: How to make argparse accept "-4^2+5.3*abs(-2-1)/2" string argument?

2023-01-29 Thread Mark Bourne
gain, this is a feature of the shell, not your application, and other shells might behave differently. You probably don't want to go down the line of trying to document this kind of thing in your applications usage information, because it won't work like that for someone using e.g. the bash shell (which can be run on Windows). -- Mark. -- https://mail.python.org/mailman/listinfo/python-list

Re: evaluation question

2023-01-28 Thread Mark Bourne
al("print(123)"), which prints 123 and returns None. The P step doesn't print anything if the result is None. You'd still see that output if this was in a script. Using eval in those examples is pretty pointless, since: >>> 1+1 >>> print(123) would produce

Re: How to make argparse accept "-4^2+5.3*abs(-2-1)/2" string argument?

2023-01-28 Thread Mark Bourne
st shells I've used pass the pattern unchanged if it doesn't match any files). In bash, if a "$" is used I'd need to enclose that in 'single quotes' (can't even use "double quotes" for that one). You can't really expect to document all that sort of thing, because it depends on which shell the user happens to run your application from - you just have to trust the user to know or learn how to use their shell. -- Mark. -- https://mail.python.org/mailman/listinfo/python-list

Re: bool and int

2023-01-27 Thread Mark Bourne
gh to be made to deal with insane situations where False is 2! -- Mark. -- https://mail.python.org/mailman/listinfo/python-list

Re: How to make argparse accept "-4^2+5.3*abs(-2-1)/2" string argument?

2023-01-22 Thread Mark Bourne
ling your script. e.g. you'd call (from a Windows command prompt / Linux shell / etc.): > ./convert_infix.py -- '-4^2+5.3*abs(-2-1)/2' (it's probably a good idea to quote the expression, in case it includes any characters which would be interpreted specially by the shell - e.g. "*" without quotes usually expands to all matching files in the current directory) -- Mark. -- https://mail.python.org/mailman/listinfo/python-list

Re: To clarify how Python handles two equal objects

2023-01-15 Thread Mark Bourne
ule me. I haven't done much with C extensions, but I don't think you'd need to do anything with "x" in that case. If something else is assigned to "y", "x" would still be a reference to the original object - why would it need to be "restored" to anything? Unless I've misunderstood what's going on here... -- Mark. -- https://mail.python.org/mailman/listinfo/python-list

Re: How make your module substitute a python stdlib module.

2022-12-27 Thread Mark Bourne
g `%(myThread)d` and `%(myThreadName)s` in the log format string would use those attributes, without needing a custom formatter. That would allow both thread IDs to be logged, in case a mix of standard threads and your threads is used. -- Mark. -- https://mail.python.org/mailman/listinfo/python-list

Re: How to enter escape character in a positional string argument from the command line?

2022-12-19 Thread Mark Bourne
cript $'step\x0a' (dollar sign before a single-quoted string which contains escape sequences) -- Mark. -- https://mail.python.org/mailman/listinfo/python-list

Re: How to make a variable's late binding crosses the module boundary?

2022-08-31 Thread Mark Bourne
Jach Feng wrote: Mark Bourne 在 2022年8月29日 星期一下午6:40:59 [UTC+8] 的信中寫道: Jach Feng wrote: Chris Angelico 在 2022年8月29日 星期一下午1:58:58 [UTC+8] 的信中寫道: On Mon, 29 Aug 2022 at 15:54, Jach Feng wrote: Richard Damon 在 2022年8月29日 星期一上午10:47:08 [UTC+8] 的信中寫道: On 8/27/22 7:42 AM, Mark Bourne wrote

Re: What can I do about this?

2022-08-29 Thread Mark Bourne
gene heskett wrote: On 8/29/22 12:50, Mark Bourne wrote: Roel Schroeven wrote: Op 29/08/2022 om 2:55 schreef gene heskett: On 8/28/22 19:39, Peter J. Holzer wrote: On 2022-08-28 18:40:17 -0400, gene heskett wrote: Persuant to my claim the py3.10 is busted, here is a sample. This is me

Re: What can I do about this?

2022-08-29 Thread Mark Bourne
Roel Schroeven wrote: Op 29/08/2022 om 2:55 schreef gene heskett: On 8/28/22 19:39, Peter J. Holzer wrote: On 2022-08-28 18:40:17 -0400, gene heskett wrote: Persuant to my claim the py3.10 is busted, here is a sample. This is me, trying to make pronterface, inside a venv: When the package man

Re: How to make a variable's late binding crosses the module boundary?

2022-08-29 Thread Mark Bourne
Jach Feng wrote: Chris Angelico 在 2022年8月29日 星期一下午1:58:58 [UTC+8] 的信中寫道: On Mon, 29 Aug 2022 at 15:54, Jach Feng wrote: Richard Damon 在 2022年8月29日 星期一上午10:47:08 [UTC+8] 的信中寫道: On 8/27/22 7:42 AM, Mark Bourne wrote: Jach Feng wrote: I have two files: test.py and test2.py --test.py-- x = 2

Re: How to make a variable's late binding crosses the module boundary?

2022-08-28 Thread Mark Bourne
to `test.x`, for example: import test test.x = 4 test.foo() -- Mark. -- https://mail.python.org/mailman/listinfo/python-list

Re: Python installation

2022-07-04 Thread Mark Pawelek
I also have a windows installation issue on Windows 10: ISSUE: I cannot select a folder to install Python in. I want to put it under Program Files. The 'installer' only wants to put it in C:\users\Lenovo\AppData\local\Programs\Python\Python310 What do I do to alter the path to something like: C:

bCNC

2020-12-30 Thread Mark Bachman
: https://tinyurl.com/y3dm3h86 C:\Users\--> Any help would be greatly appreciated. -- Thanks Mark Bachman People love chopping wood. In this activity one immediately sees results. <http://www.brainyquote.com/quotes/quotes/a/alberteins108301.html> Albert Einstein <http:/

Re: dict.get(key, default) evaluates default even if key exists

2020-12-15 Thread Mark Polesky via Python-list
I see. Perhaps counterintuitive, but implemented consistently. Add it to the list of gotchas, I guess. By the way... four helpful responses in under an hour, very impressive. Nice community here. Thanks to all who answered. Mark On Tuesday, December 15, 2020, 11:05:10 AM PST, Serhiy

dict.get(key, default) evaluates default even if key exists

2020-12-15 Thread Mark Polesky via Python-list
else default.  Nothing in that docstring suggests that the default value is evaluated even if the key exists, and I can't think of any good reason to do so. Am I missing something? Thanks, Mark -- https://mail.python.org/mailman/listinfo/python-list

Pyserial and some half-duplex woes.

2020-09-03 Thread Mark Barton
ere nothing in Pyserial's documentation that you can do that. I have tried to do some flushing of the receive buffer, but I haven't been too successful. Perhaps that is due to timing. I thought I would reach out to see if anyone may have had a similar experience. Thanks for any help.

Re: Friday finking: TDD and EAFP

2019-11-18 Thread Mark Turner
it’s the environment. Later on, after this module of code is finished, if a lot of tests start failing for some reason and this simple test is one of them, then a good place to start debugging is the environment. - Mark -- https://mail.python.org/mailman/listinfo/python-list

Error

2019-09-12 Thread Courtney Mark
Hi I am a brand new user. I cannot type onto a shell window or a code window. Kind Regards Courtney Sent from Mail for Windows 10 -- https://mail.python.org/mailman/listinfo/python-list

Undefined symbols for Mac OS 10.14.4 build

2019-05-26 Thread Mark Turner
#define HAVE_LIBINTL_H 1 to #undef HAVE_LIBINTL_H the build completes. This is my first time trying this so I’m not very familiar with the build process. It seems like I must be missing something since I don't think modifying pyconfig.h is a normal part of the process. Any suggestions? Thanks,

Re: Read the table data from PDF files in Python

2019-04-24 Thread Mark Kettner
I've heard about camelot a while ago: https://camelot-py.readthedocs.io/ but I never really used it and cannot provide any support or comparison to other data-extraction tools or the like. -- Mit freundlichen Gruessen / Best Regards Mark Kettner -- https://mail.python.org/mailman/lis

Re:

2019-04-20 Thread Mark Kettner
other error"), (cond3, "even another error"), ] all_ok = True for cond, err_str in payment_ok: if not cond: print(err_str): all_ok = False break -- Mit freundlichen Gruessen / Best Regards Mark Kettner -- https://mail.python.org/mailman/listinfo/python-list

Re: pyz and concurrent.futures

2019-03-04 Thread Mark
I've now just tried with Python 3.7.1 and the same problem persists, so I'll now try to use a second thread for the console app. PS For these CPU-intensive apps which use multiprocessing to use all the CPUs, compared with Python 3.4, 3.6 is 13% faster, and 3.7 is 33% faster! -- https://mail.pyt

pyz and concurrent.futures

2019-03-04 Thread Mark
I have two apps, one GUI one console, both using PySide2 bindings to Qt 5. Both use concurrent.futures and a processing pool to spread their work over multiple CPUs. I've written my own deployment script (since I can't get a successfull deploy with cx-freeze, py2exe, or pyinstaller) which create

Re: So apparently I've been banned from this list

2018-10-02 Thread Mark Lawrence
ellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: So apparently I've been banned from this list

2018-10-01 Thread Mark Lawrence
On 01/10/18 19:05, Chris Angelico wrote: On Tue, Oct 2, 2018 at 3:49 AM Mark Lawrence wrote: Personally I think Ethan Furman should be removed from his position as a moderator as he's less than useless at the job. If you mean how he sent an email to the mods instead of to the list, tha

Re: So apparently I've been banned from this list

2018-10-01 Thread Mark Lawrence
on.org/pipermail/python-list/2018-July/735735.html [2] https://mail.python.org/pipermail/python-list/2018-September/737020.html Personally I think Ethan Furman should be removed from his position as a moderator as he's less than useless at the job. -- My fellow Pythonistas, ask not what our lan

Re: clever exit of nested loops

2018-09-26 Thread Mark Lawrence
break with the semantics of break a loop if an inner loop "broke"? To me the Ned Batchelder presentation https://www.youtube.com/watch?v=EnSu9hHGq5o "Loop like a Native" is the definitive way on how to deal with loops in Python. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: missing- api-ms-win-crt-runtime-|1-1-0.dll

2018-09-18 Thread Mark Lawrence
can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: don't quite understand mailing list

2018-09-07 Thread Mark Lawrence
00 -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

PEP 8001 -- Python Governance Voting Process

2018-09-05 Thread Mark Lawrence
I believe that this https://www.python.org/dev/peps/pep-8001/ may be of interest. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Why list.reverse() modifies the list, but name.replace() does not

2018-09-05 Thread Mark Lawrence
s you see fit. > > Why the two examples produce different results? As a beginner, I find this > confusing. How do you do it? > > Thank you! > -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Why list.reverse() modifies the list, but name.replace() does not modify the string?

2018-09-03 Thread Mark Lawrence
confusing. How do you do it? Thank you! -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

PEP 8001 -- Python Governance Voting Process

2018-09-03 Thread Mark Lawrence
I believe that this https://www.python.org/dev/peps/pep-8001/ may be of interest. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Shall I worry about python2/3 compatibility when using library?

2018-08-31 Thread Mark Lawrence
, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Program to output a subset of the composite numbers

2018-08-17 Thread Mark Lawrence
t what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Guilty as charged

2018-07-27 Thread Mark Lawrence
ranteed), but that that is the Pythonic thing to do. ... Maybe I missed it, but I'll remember it now. --- Joseph S. Your apology is accepted. Thank you. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Format list of list sub elements keeping structure.

2018-07-24 Thread Mark Lawrence
'GlossEntry', 'GlossDef', 'GlossSeeAlso', 1], when it hits these lines I get TypeError: sequence item 6: expected str instance, int found Do I need to do an explicit check for these 2 cases or is there a simpler way? Cheers Sayth out = '[{0}]'.

Re: Error installing scripts in python 37-32

2018-07-22 Thread Mark Lawrence
of any mind readers :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: coding style - where to declare variables

2018-07-22 Thread Mark Lawrence
ion times before. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: import in code

2018-07-22 Thread Mark Lawrence
o import itself, but then perhaps you meant module B should be importing module A? :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: CASESOLUTIONSCENTRE (AT) GMAIL (DOT) COM

2018-07-19 Thread Mark Lawrence
gmane. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: PyDocs Arabic Translation Started and Call to Interested Parties viz en-ar Speakers

2018-07-19 Thread Mark Lawrence
not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Glyphs and graphemes [was Re: Cult-like behaviour]

2018-07-17 Thread Mark Lawrence
this offline, as you've all ready been asked to do by a moderator, Tim Golden. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Unicode [was Re: Cult-like behaviour]

2018-07-16 Thread Mark Lawrence
tas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Unicode [was Re: Cult-like behaviour]

2018-07-16 Thread Mark Lawrence
so why should anybody need to bypass it? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Unicode [was Re: Cult-like behaviour]

2018-07-16 Thread Mark Lawrence
table, he's just the latest in a long line of trolls. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Unicode [was Re: Cult-like behaviour]

2018-07-16 Thread Mark Lawrence
On 16/07/18 17:22, Chris Angelico wrote: On Tue, Jul 17, 2018 at 2:05 AM, Mark Lawrence wrote: On 16/07/18 15:17, Dan Sommers wrote: On Mon, 16 Jul 2018 10:39:49 +, Steven D'Aprano wrote: ... people who think that if ISO-8859-7 was good enough for Jesus ... It may have been

Re: Unicode [was Re: Cult-like behaviour]

2018-07-16 Thread Mark Lawrence
On 16/07/18 17:26, Larry Martell wrote: On Mon, Jul 16, 2018 at 12:05 PM, Mark Lawrence wrote: On 16/07/18 15:17, Dan Sommers wrote: On Mon, 16 Jul 2018 10:39:49 +, Steven D'Aprano wrote: ... people who think that if ISO-8859-7 was good enough for Jesus ... It may have been

Re: Unicode [was Re: Cult-like behaviour]

2018-07-16 Thread Mark Lawrence
sk not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Can anyone tell me where the old MacPython "16 ton" logo came from?

2018-07-15 Thread Mark
On Sunday, July 15, 2018 at 1:49:22 PM UTC+1, Christian Heimes wrote: > On 2018-07-15 14:05, Mark wrote: > > I'm curious to understand how come the original MacPython logo is of a 16 > > ton weight (rather than, say the word 'python' or a picture of a snake)? > &

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Mark Lawrence
do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Can anyone tell me where the old MacPython "16 ton" logo came from?

2018-07-15 Thread Mark
I'm curious to understand how come the original MacPython logo is of a 16 ton weight (rather than, say the word 'python' or a picture of a snake)? You can see the logo here: https://homepages.cwi.nl/~jack/macpython/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Guido van Rossum resigns as Python leader

2018-07-13 Thread Mark Lawrence
27;t resist having a personal dig. You are a troll and should have been banned from this list years ago. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Guido van Rossum resigns as Python leader

2018-07-13 Thread Mark Lawrence
;s obvious that he's clueless. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Hey Ranting Rick, this is your moment to shine!

2018-07-13 Thread Mark Lawrence
"Thou shalt not extract the urine"? :) *runs and hides* Sorry-sometimes-I-can't-help-myself-I-would-have-deleted-this-post-but-I- already-hit-send-ly y'rs, -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark L

Re: 转发: No pip for my Python 3.6.5!

2018-07-09 Thread Mark Lawrence
stas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Is there a nice way to switch between 2 different packages providing the same APIs?

2018-07-06 Thread Mark via Python-list
On Friday, July 6, 2018 at 1:22:46 PM UTC+1, Bev in TX wrote: > > On Jul 6, 2018, at 3:14 AM, Mark via Python-list > > wrote: > > > > In the end I changed to a completely different approach. > > > > I now have two parallel directories, one with PySide-bas

Re: about main()

2018-07-06 Thread Mark Lawrence
can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: about main()

2018-07-06 Thread Mark Lawrence
. The rest was TL;DR. -Jim Welcome to an exclusive club, my dream team. Congratulations :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Is there a nice way to switch between 2 different packages providing the same APIs?

2018-07-06 Thread Mark via Python-list
In the end I changed to a completely different approach. I now have two parallel directories, one with PySide-based code and the other with auto-generated PyQt-based code. And I created a tiny script to copy the PySide code to the PyQt directory & do the necessary changes. (I can post the scrip

Re: Is there a nice way to switch between 2 different packages providing the same APIs?

2018-07-05 Thread Mark via Python-list
On Thursday, July 5, 2018 at 6:24:09 PM UTC+1, Tim Williams wrote: > On Thu, Jul 5, 2018 at 9:02 AM Mark Summerfield via Python-list < > python-list@python.org> wrote: > > > For GUI programming I often use Python bindings for Qt. > > > > There are two co

Is there a nice way to switch between 2 different packages providing the same APIs?

2018-07-05 Thread Mark Summerfield via Python-list
For GUI programming I often use Python bindings for Qt. There are two competing bindings, PySide and PyQt. Ideally I like to have applications that can use either. This way, if I get a problem I can try with the other bindings: if I still get the problem, then it is probably me; but if I don't

Re: PEP 526 - var annotations and the spirit of python

2018-07-05 Thread Mark Lawrence
$356,000,000 payout. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: about main()

2018-07-05 Thread Mark Lawrence
ack to the good old days when people on this list could write in English and didn't top post. So much for progress :( -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: File names with slashes [was Re: error in os.chdir]

2018-07-04 Thread Mark Lawrence
os.altsep which if I'd heard about I'd forgotten about :) And others. Failing that there's always pathlib https://docs.python.org/3/library/pathlib.html -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: PEP 526 - var annotations and the spirit of python

2018-07-04 Thread Mark Lawrence
out THREE numbers! -Jim Please take this offline as it's completely irrelevant to this list. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Where's the junk coming from?

2018-06-29 Thread Mark Lawrence
) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Error Launching python 3.7.0

2018-06-28 Thread Mark Lawrence
re, so see e.g. https://answers.microsoft.com/en-us/windows/forum/windows_7-windows_programs/python-360-cant-start-because-api-ms-win-crt/a58999ec-a94e-44ad-8f92-8136ce98871b -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Law

Re: syntax difference

2018-06-26 Thread Mark Lawrence
dious. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Python for beginners or not? [was Re: syntax difference]

2018-06-26 Thread Mark Lawrence
From: Mark Lawrence On 25/06/18 17:15, jkn wrote: > On Monday, June 25, 2018 at 4:23:57 PM UTC+1, Chris Angelico wrote: >> On Mon, Jun 25, 2018 at 11:15 PM, jkn wrote: >>> (as well as pedanticism ;-o). >> >> Pedantry. >> >> ChrisA >> (You know I

Re: Python for beginners or not? [was Re: syntax difference]

2018-06-26 Thread Mark Lawrence
From: Mark Lawrence On 25/06/18 10:10, Alister via Python-list wrote: > On Mon, 25 Jun 2018 11:36:25 +0400, Abdur-Rahmaan Janhangeer wrote: > >> i think he means like for a loop to iterate over a list you might do >> >> list = [1,2,3] >> for i in range(le

Where's the junk coming from?

2018-06-26 Thread Mark Lawrence
From: Mark Lawrence Hi folks, In the last hour or so I've seen via thunderbird and gmane around 15 emails from various people where the from field is name@1261/38.remove-r7u-this. The part after the @ symbol never changes. I've seen the contents previously, apart from one from the R

Re: Anyone here on Python-Dev mailing list?

2018-06-26 Thread Mark Lawrence
From: Mark Lawrence On 24/06/18 17:07, Steven D'Aprano wrote: > Anyone on the Python-Dev mailing list, are you getting private emails > containing nothing but stream of consciousness word-salad from somebody > (some bot?) calling himself "Chanel Marvin" with a gmail addr

Re: syntax difference

2018-06-26 Thread Mark Lawrence
From: Mark Lawrence On 24/06/18 00:44, boB Stepp wrote: > I imagine that the > transition from version 2 to 3 was not undertaken halfheartedly, but > only after much thought and discussion since it did break backwards > compatibility. > So much so that a specific mailing list was

  1   2   3   4   5   6   7   8   9   10   >