Robin Becker writes:
> A user reported an infinite loop in reportlab. I determined a possible
> cause and fix and would like to test for absence of the loop. Is there
> any way to check for presence/absence of an infinite loop in python? I
> imagine we could do something like call an external proc
What do you use, Gene?
It seems most business program run on Windows.
On Tue, Jul 17, 2018 at 5:14 PM, Gene Heskett wrote:
> On Tuesday 17 July 2018 18:48:22 S Lea wrote:
>
> > nd that leads to a
> > question, where did you get it?, and how long ago? Maybe its an old
> > version? Head scratch
On Tuesday 17 July 2018 18:48:22 S Lea wrote:
> nd that leads to a
> question, where did you get it?, and how long ago? Maybe its an old
> version? Head scratcher for sure.
>
> I have 3.7, downloaded a week ago
> https://www.python.org/downloads/
>
> Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018
On 17Jul2018 12:39, Robin Becker wrote:
On 17/07/2018 12:16, Cameron Simpson wrote:
On 17Jul2018 10:10, Robin Becker wrote:
A user reported an infinite loop in reportlab. I determined a
possible cause and fix and would like to test for absence of the
loop. Is there any way to check for prese
Also, how does one get a 64 bit version?
On Tue, Jul 17, 2018 at 4:04 PM, S Lea wrote:
> Terry,
>
> BLESS YOU!!!
>
> The second option worked I installed python 3.7 and
> then pycharm-community-2018.1.4. I'm following a video course by TTC How
> To Program: Computer Science Concepts And Python E
Terry,
BLESS YOU!!!
The second option worked I installed python 3.7 and
then pycharm-community-2018.1.4. I'm following a video course by TTC How To
Program: Computer Science Concepts And Python Exercises. The instructor
suggested to install pycharm community. I'm also following a few youtube
vide
nd that leads to a
question, where did you get it?, and how long ago? Maybe its an old
version? Head scratcher for sure.
I have 3.7, downloaded a week ago
https://www.python.org/downloads/
Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:06:47) [MSC v.1914 32 bit
(Intel)] on win32
Type "help",
Chris Angelico schreef op 17/07/2018 0:48:
On Tue, Jul 17, 2018 at 8:41 AM, Roel Schroeven wrote:
In any case, even though Python 3's byte strings are not quite unlike Python
2's strings, they're not exactly like them either. And I feel there are
cases where that makes things somewhat harder, e
On 18/07/18 00:10, Jon Ribbens wrote:
> On 2018-07-17, Thomas Jollans wrote:
>> On 2018-07-16 01:29, Jon Ribbens wrote:
>>> Do you have any reason to believe the message at the top of the
>>> thread purporting to ban users was genuinely from the moderators?
>>> Because there are obvious reasons to
On 2018-07-17, Thomas Jollans wrote:
> On 2018-07-16 01:29, Jon Ribbens wrote:
>> Do you have any reason to believe the message at the top of the
>> thread purporting to ban users was genuinely from the moderators?
>> Because there are obvious reasons to believe otherwise.
>
> Care to elaborate?
On 7/17/2018 7:39 AM, Robin Becker wrote:
well I understand the problem about not halting. However as you point
out in a fixed case I know that the test should take fractions of a
second to complete.
If nothing else, you can easily add
def test_xyz_completes(self):
xyz(args) # Forme
ObXkcd:
https://xkcd.com/1357/
--
https://mail.python.org/mailman/listinfo/python-list
On 17/07/18 19:16, Marko Rauhamaa wrote:
MRAB :
"ch" usually represents 2 phonemes, basically the sounds of "t"
followed by "sh";
Traditionally, that sound is considered a single phoneme:
https://en.wikipedia.org/wiki/Affricate_consonant>
Can you hear the difference in these expressions:
On 17/07/18 19:16, Marko Rauhamaa wrote:
MRAB :
"ch" usually represents 2 phonemes, basically the sounds of "t"
followed by "sh";
Traditionally, that sound is considered a single phoneme:
https://en.wikipedia.org/wiki/Affricate_consonant>
To quote the introduction of that article, "It i
MRAB :
> "ch" usually represents 2 phonemes, basically the sounds of "t"
> followed by "sh";
Traditionally, that sound is considered a single phoneme:
https://en.wikipedia.org/wiki/Affricate_consonant>
Can you hear the difference in these expressions:
high chairs
height shares
hei
On 2018-07-17 03:25, Tim Chase wrote:
On 2018-07-17 01:08, Steven D'Aprano wrote:
In English, I think most people would prefer to use a different
term for whatever "sh" and "ch" represent than "character".
The term you may be reaching for is "consonant cluster"?
https://en.wikipedia.org/wiki/
Chris Angelico :
> On Tue, Jul 17, 2018 at 6:41 PM, Marko Rauhamaa wrote:
>> I can see that the bullying behavior comes from exasperation instead of
>> an outright meanness. They sincerely believe they understand the issues
>> better than their opponents and are at a loss to get the message acros
On Tue, Jul 17, 2018 at 6:41 PM, Marko Rauhamaa wrote:
> I can see that the bullying behavior comes from exasperation instead of
> an outright meanness. They sincerely believe they understand the issues
> better than their opponents and are at a loss to get the message across
> without resorting t
On 2018-07-16 01:29, Jon Ribbens wrote:
> On 2018-07-15, Chris Angelico wrote:
>> On Mon, Jul 16, 2018 at 7:35 AM, Marko Rauhamaa wrote:
>>> Christian Gollwitzer :
Am 15.07.18 um 19:25 schrieb Ethan Furman:
> The following users are now banned from Python List:
> ...
> BartC
On 17/07/18 14:14, Marko Rauhamaa wrote:
Rhodri James :
On 17/07/18 02:17, Steven D'Aprano wrote:
Ah yes, the unfortunate design error that iterating over byte-strings
returns ints rather than single-byte strings.
That decision seemed to make sense at the time it was made, but turned
out to be
On 2018-07-17 08:37, Marko Rauhamaa wrote:
> Tim Chase :
> > Wait, but now you're talking about vendors. Much of the crux of
> > this discussion has been about personal scripts that don't need to
> > marshal Unicode strings in and out of various functions/objects.
>
> In both personal and profes
On 2018-07-16, Larry Martell wrote:
> I had some code that did this:
>
> meas_regex = '_M\d+_'
> meas_re = re.compile(meas_regex)
>
> if meas_re.search(filename):
> stuff1()
> else:
> stuff2()
>
> I then had to change it to this:
>
> if meas_re.search(filename):
> if 'MeasDisplay' in f
On 2018-07-17 10:22 AM, Peter Otten wrote:
> D'Arcy Cain wrote:
>
>> I just realized that my subject was backwards. It's 2.7 that can find
>> the libs and 3.6 than cannot. Just in case that makes a difference.
>
> Not for me, I believed the pasted shell session rather then the subject
> line.
On Tue, 17 Jul 2018 10:10:49 +0100, Robin Becker wrote:
> A user reported an infinite loop in reportlab. I determined a possible
> cause and fix and would like to test for absence of the loop. Is there
> any way to check for presence/absence of an infinite loop in python? I
> imagine we could do s
D'Arcy Cain wrote:
> I just realized that my subject was backwards. It's 2.7 that can find
> the libs and 3.6 than cannot. Just in case that makes a difference.
Not for me, I believed the pasted shell session rather then the subject
line.
--
https://mail.python.org/mailman/listinfo/python-
Marko Rauhamaa wrote:
> The practical issue is how you refer to ASCII bytes. What I've resorted
> to is:
>
> if nxt == b":"[0]:
> ...
You seem to have the compiler's blessing:
>>> def f(c):
... return c == b":"[0]
...
>>> import dis
>>> dis.dis(f)
2 0 LOAD_FAST
Rhodri James :
> On 17/07/18 02:17, Steven D'Aprano wrote:
>> Ah yes, the unfortunate design error that iterating over byte-strings
>> returns ints rather than single-byte strings.
>>
>> That decision seemed to make sense at the time it was made, but turned
>> out to be an annoyance. It's a wart on
On 17/07/18 02:17, Steven D'Aprano wrote:
On Mon, 16 Jul 2018 23:50:12 +0200, Roel Schroeven wrote:
There are times (encoding/decoding network protocols and other data
formats) when I have a byte string and I want/need to process it like
Python 2 does, and that is the one area where I feel Pyth
Python Training in Chennai with expert guidance and fully hands-on classes.
Python is a high-level programming language sometimes it also denoted as the
scripting language as it provides rapid & fast development and easy of use.
url :
https://www.besanttechnologies.com/training-courses/python-t
On 17/07/18 13:41, Rhodri James wrote:
On 17/07/18 02:52, Python wrote:
On Mon, Jul 16, 2018 at 08:56:11PM +0100, Rhodri James wrote:
The problem everyone is having with you, Marko, is that you are
using the terminology incorrectly. [...] When you call UTF-32 a
variable-width encoding, you are
On 17/07/18 02:52, Python wrote:
On Mon, Jul 16, 2018 at 08:56:11PM +0100, Rhodri James wrote:
The problem everyone is having with you, Marko, is that you are
using the terminology incorrectly. [...] When you call UTF-32 a
variable-width encoding, you are incorrect.
But please don't overlook th
On Tue, 17 Jul 2018 10:10:49 +0100, Robin Becker wrote:
> A user reported an infinite loop in reportlab. I determined a possible
> cause and fix and would like to test for absence of the loop. Is there
> any way to check for presence/absence of an infinite loop in python? I
> imagine we could do s
Antoon Pardon :
> On 17-07-18 10:27, Marko Rauhamaa wrote:
>> Also, Python2's strings do as good a job at delivering codepoints as
>> Python3.
>
> No they don't. The programs that I work on, need to be able to treat
> at least german, french, dutch and english text. My experience is that
> in pyth
On 17-07-18 10:27, Marko Rauhamaa wrote:
> Steven D'Aprano :
>> On Mon, 16 Jul 2018 21:48:42 -0400, Richard Damon wrote:
>>> Who says there needs to be one. A good engineer will use the
>>> definition that is most appropriate to the task at hand. Some things
>>> need very solid definitions, and som
On 17/07/2018 12:16, Cameron Simpson wrote:
On 17Jul2018 10:10, Robin Becker wrote:
A user reported an infinite loop in reportlab. I determined a possible cause and fix and would like to test for absence of the
loop. Is there any way to check for presence/absence of an infinite loop in python?
> On Jul 17, 2018, at 3:44 AM, Steven D'Aprano
> wrote:
>
> On Mon, 16 Jul 2018 21:48:42 -0400, Richard Damon wrote:
>
>>> On Jul 16, 2018, at 9:21 PM, Steven D'Aprano
>>> wrote:
>>>
On Mon, 16 Jul 2018 19:02:36 -0400, Richard Damon wrote:
You are defining a variable/fixed wid
On 17Jul2018 10:10, Robin Becker wrote:
A user reported an infinite loop in reportlab. I determined a possible
cause and fix and would like to test for absence of the loop. Is there
any way to check for presence/absence of an infinite loop in python? I
imagine we could do something like call a
On 2018-07-17, Steven D'Aprano wrote:
> But neither of these are prohibited by the CoC, neither of these should
> be banning offense, and even if they were, he should have had a formal
> warning first.
>
> Preferably TWO formal warnings: the first privately, the second publicly,
> and only on t
On 17/07/2018 10:32, Chris Angelico wrote:
..
All you gotta do is solve the halting problem...
https://en.wikipedia.org/wiki/Halting_problem
ChrisA
ah so it's easy :)
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
Chris Angelico :
> On Tue, Jul 17, 2018 at 6:27 PM, Marko Rauhamaa wrote:
>> Of course, UTF-8 doesn't relieve you from Unicode problems. But it has
>> one big advantage: it can usually deal with non-Unicode data without any
>> extra considerations while Python3's strings make you have to take
>>
Chris Angelico :
> On Tue, Jul 17, 2018 at 7:03 PM, Marko Rauhamaa wrote:
>> What I'd need is for the tty to tell me what column the cursor is
>> visually. Or better yet, the tty would have to tell me where the column
>> would be *after* I emit the next grapheme cluster.
>
> Are you prepared for
On Tue, Jul 17, 2018 at 7:10 PM, Robin Becker wrote:
> A user reported an infinite loop in reportlab. I determined a possible cause
> and fix and would like to test for absence of the loop. Is there any way to
> check for presence/absence of an infinite loop in python? I imagine we could
> do some
On Tue, Jul 17, 2018 at 7:03 PM, Marko Rauhamaa wrote:
> Chris Angelico :
>
>> On Tue, Jul 17, 2018 at 6:27 PM, Marko Rauhamaa wrote:
>>> For me, the issue is where do I produce a line break in my text output?
>>> Currently, I'm just counting codepoints to estimate the width of the
>>> output.
>>
[Moderator hat on]
Please. Step back.
We've gone over and over this (and not for the first time). This has
ceased to be a enlightening discussion into possibly interesting issues
of Unicode implementation. It has effectively become a restatement of
entrenched positions.
If the key participa
A user reported an infinite loop in reportlab. I determined a possible cause and fix and would like to test for absence of the
loop. Is there any way to check for presence/absence of an infinite loop in python? I imagine we could do something like call an
external process and see if it takes too
Chris Angelico :
> On Tue, Jul 17, 2018 at 6:27 PM, Marko Rauhamaa wrote:
>> For me, the issue is where do I produce a line break in my text output?
>> Currently, I'm just counting codepoints to estimate the width of the
>> output.
>
> Well, that's just flat out wrong, then. Counting graphemes is
On Tue, Jul 17, 2018 at 6:27 PM, Marko Rauhamaa wrote:
> It is essential for people to understand that the very same issues that
> plague UTF-8 plague UTF-32 as well. Using UTF in both highlights that
> fact.
What a wonderful nonsense. I suppose that the same issues plague Elon
Musk as plague the
On Tue, Jul 17, 2018 at 6:27 PM, Marko Rauhamaa wrote:
>> But of course other people's experience may vary. I'm interested in
>> learning about the library you use to process graphemes in your software.
>
> For me, the issue is where do I produce a line break in my text output?
> Currently, I'm ju
INADA Naoki :
> On Tue, Jul 17, 2018 at 4:57 PM Marko Rauhamaa wrote:
>>
>> Python3 is not a cult. It's a programming language. What is cult-like is
>> the manner in which Python3's honor is defended in a good many of the
>> discussions in this newsgroup: anger, condescension, ridicule,
>> name-c
Steven D'Aprano :
> On Tue, 17 Jul 2018 09:52:13 +0300, Marko Rauhamaa wrote:
>
>> Both Python2 and Python3 provide two forms of string, one containing
>> 8-bit integers and another one containing 21-bit integers.
>
> Why do you insist on making counter-factual statements as facts? Don't
> you ha
Steven D'Aprano :
> On Mon, 16 Jul 2018 21:48:42 -0400, Richard Damon wrote:
>> Who says there needs to be one. A good engineer will use the
>> definition that is most appropriate to the task at hand. Some things
>> need very solid definitions, and some things don’t.
>
> The the problem is solved:
On Tue, 17 Jul 2018 10:51:38 +0300, Marko Rauhamaa wrote:
> in which Python3's honor is defended in a good many of the discussions
> in this newsgroup: anger, condescension, ridicule, name-calling.
You call it defending Python 3's honour. I call it responding to people
who insist on spreading mi
On Tue, Jul 17, 2018 at 4:57 PM Marko Rauhamaa wrote:
>
> Python3 is not a cult. It's a programming language. What is cult-like is
> the manner in which Python3's honor is defended in a good many of the
> discussions in this newsgroup: anger, condescension, ridicule,
> name-calling.
OK, I underst
On Tue, 17 Jul 2018 15:20:16 +0900, INADA Naoki wrote (replying to Marko):
> I still don't understand what's your original point. I think UTF-8 vs
> UTF-32 is totally different from Python 2 vs 3.
>
> For example, string in Rust and Swift (2010s languages!) are *valid*
> UTF-8. There are strong s
On Tue, 17 Jul 2018 09:52:13 +0300, Marko Rauhamaa wrote:
> Both Python2 and Python3 provide two forms of string, one containing
> 8-bit integers and another one containing 21-bit integers.
Why do you insist on making counter-factual statements as facts? Don't
you have a Python REPL you can try
On Tue, 17 Jul 2018 08:26:45 +0300, Marko Rauhamaa wrote:
> Steven D'Aprano :
>> On Mon, 16 Jul 2018 22:51:32 +0300, Marko Rauhamaa wrote:
>>> UTF-8 bytes can only represent the first 128 code points of Unicode.
>>
>> This is DailyWTF material. Perhaps you want to rethink your wording and
>> maybe
INADA Naoki :
>> I won't comment on Rust and Swift because I don't know them.
> ...
>> I won't comment on Go, either.
>
> Hmm, do you say Python 3 is "cult-like" without survey other popular,
> programming languages?
You can talk about Python3 independently of other programming languages.
Python
On Mon, 16 Jul 2018 21:25:20 -0500, Tim Chase wrote:
> On 2018-07-17 01:08, Steven D'Aprano wrote:
>> In English, I think most people would prefer to use a different term
>> for whatever "sh" and "ch" represent than "character".
>
> The term you may be reaching for is "consonant cluster"?
>
> ht
On Mon, 16 Jul 2018 21:48:42 -0400, Richard Damon wrote:
>> On Jul 16, 2018, at 9:21 PM, Steven D'Aprano
>> wrote:
>>
>>> On Mon, 16 Jul 2018 19:02:36 -0400, Richard Damon wrote:
>>>
>>> You are defining a variable/fixed width codepoint set. Many others
>>> want to deal with CHARACTER sets.
>>
> I won't comment on Rust and Swift because I don't know them.
...
> I won't comment on Go, either.
Hmm, do you say Python 3 is "cult-like" without survey other popular,
programming languages?
There are many popular languages which separate bytes and unicode
string explicitly and string is not by
On 7/16/2018 11:03 PM, S Lea wrote:
Some additional info, which allows me to say the following:
1) Don't know what do you mean by the traceback.
>>> 1/o
Traceback (most recent call last):
File "", line 1, in
1/o
NameError: name 'o' is not defined
The last four lines
2) In DOS, pip i
On 7/16/2018 10:25 PM, Tim Chase wrote:
On 2018-07-17 01:08, Steven D'Aprano wrote:
In English, I think most people would prefer to use a different
term for whatever "sh" and "ch" represent than "character".
The term you may be reaching for is "consonant cluster"?
https://en.wikipedia.org/wik
Larry Martell wrote:
> I had some code that did this:
>
> meas_regex = '_M\d+_'
> meas_re = re.compile(meas_regex)
>
> if meas_re.search(filename):
> stuff1()
> else:
> stuff2()
>
> I then had to change it to this:
>
> if meas_re.search(filename):
> if 'MeasDisplay' in filename:
>
INADA Naoki :
> On Tue, Jul 17, 2018 at 2:31 PM Marko Rauhamaa wrote:
>> So I hope that by now you have understood my point and been able to
>> decide if you agree with it or not.
>
> I still don't understand what's your original point.
> I think UTF-8 vs UTF-32 is totally different from Python 2
64 matches
Mail list logo