[issue34006] Windows HTML Help (chm) has fixed line length

2018-07-02 Thread gladman
gladman added the comment: I cannot build the Windows chm file but I am happy to test any versions that others can produce. -- ___ Python tracker <https://bugs.python.org/issue34

[issue34006] Windows HTML Help (chm) has fixed line length

2018-06-30 Thread gladman
gladman added the comment: You are exactly right Steve - that is very close to what I am seeing and it is often quite hard to read. For example, where function prototypes are displayed on two lines, it takes me a lot longer to parse and understand them when compared with a situation where

[issue34006] Windows HTML Help (chm) has fixed line length

2018-06-30 Thread gladman
gladman added the comment: Comparing the basic.css files for the 3.6.5 chm file and the 3.6.6 chm file shows that the latter has the following body style definition that the earlier versions don't have: /* -- general body styles - */ div.body { min-width

[issue34006] Windows HTML Help (chm) has fixed line length

2018-06-30 Thread gladman
gladman added the comment: I too much prefer the old behaviour since the fixed width is too narrow on my high resolution display -- nosy: +gladman ___ Python tracker <https://bugs.python.org/issue34

[issue26525] Documentation of ord(c) easy to misread

2016-03-10 Thread gladman
New submission from gladman: It is very easy to misread the greek 'nu' used in the ord(c) documentation as ord('v') (i.e. an alphabetic 'v'). This can lead the reader to draw a wrong conclusion about the behaviour of the function. Would it not be better if this example used a greek letter

[issue24843] 2to3 not working

2015-08-11 Thread gladman
gladman added the comment: I have now got it working using the command line: C:\Program Files\Python35\Tools\scriptsC:\Program Files\Python34\python 2to3.py --help I am not sure why the default Windows invocation of Python doesn't work with 2to3 as this works fine with other python scripts

[issue24843] 2to3 not working

2015-08-11 Thread gladman
New submission from gladman: when I try to use the 2to3 script on the command line on Windows x64, I get the response: C:\Program Files\Python34\Tools\scripts2to3 C:\Users\brian\Downloads\puzzles.py At least one file or directory argument required. Use --help to show usage. When I ask

[issue24843] 2to3 not working

2015-08-11 Thread gladman
gladman added the comment: Thanks for the explanation. My apologies for this posting, which I will now close -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24843

[issue24843] 2to3 not working

2015-08-11 Thread gladman
gladman added the comment: Hi Steve, The behaviour I reported was the same on Python 3.4 and 3.5rc1. But eryksun was correct in suggesting that this was a problem in the way my file association for Python was set up. My py_auto_file association was set to: C:\Program Files\Python34

[issue24798] Issue in the MSVC compiler class in distutils on Python 3.5

2015-08-05 Thread gladman
New submission from gladman: I have been using _msvcompiler.py from Python 3.5 to build some executables but I have been unable to get it to generate and embed a manifest. When I looked into this I found that the subroutine that sets up the parameters for generating a manifest

[issue22477] GCD in Fractions

2014-12-12 Thread gladman
gladman added the comment: I notice on the documentation for Python 3.5 that this proposed addition is not mentioned. Is it still the intention to add this proposed change to Python 3.5? -- ___ Python tracker rep...@bugs.python.org http

[issue22477] GCD in Fractions

2014-10-08 Thread gladman
gladman added the comment: You might be right that it is not worth adding the ability to handle a variable number of parameters in the new gcd. But this depends on whether you are right that this would add a significant burden to the implementation. I am not sure that it would

[issue22486] Add math.gcd()

2014-09-25 Thread gladman
gladman added the comment: I am inclined to think that a maths.gcd() makes sense as this would be where I would go first to find this function. And the prospect of better performance is attractive since the gcd is an important operation in work with number theory algorithms. Would it co

[issue22477] GCD in Fractions

2014-09-25 Thread gladman
gladman added the comment: On 25/09/2014 15:55, Matthew Barnett wrote: Matthew Barnett added the comment: After some thought, I've come to the conclusion that the GCD of two integers should be negative only if both of those integers are negative. The basic algorithm is that you find

[issue22477] GCD in Fractions

2014-09-25 Thread gladman
gladman added the comment: On 25/09/2014 17:02, Matthew Barnett wrote: Matthew Barnett added the comment: As it appears that there isn't general agreement on how to calculate the GCD when negative numbers are involved, I needed to look for another way of thinking about it. Splitting

[issue22477] GCD in Fractions

2014-09-25 Thread gladman
gladman added the comment: On 25/09/2014 17:44, Mark Dickinson wrote: Mark Dickinson added the comment: IMHO, the most straight forward way for a new gcd() function to work would be to always, predictably return a non-negative value. Yes. Any new gcd implementation (in the math module

[issue22477] GCD in Fractions

2014-09-25 Thread gladman
gladman added the comment: On 25/09/2014 17:44, Mark Dickinson wrote: Mark Dickinson added the comment: IMHO, the most straight forward way for a new gcd() function to work would be to always, predictably return a non-negative value. Yes. Any new gcd implementation (in the math module

[issue22477] GCD in Fractions

2014-09-24 Thread Brian Gladman
New submission from Brian Gladman: There is a discussion of this issue on comp.lang.python The function known as 'the greatest common divisor' has a number of well defined mathematical properties for both positive and negative integers (see, for example, Elementary Number Theory by Kenneth

[issue22477] GCD in Fractions

2014-09-24 Thread gladman
gladman added the comment: On 24/09/2014 08:58, Mark Dickinson wrote: Mark Dickinson added the comment: The current `gcd` definition is almost accidental, in that it just happens to be what's convenient for use in normalisation in the Fraction type. If people are using

[issue22477] GCD in Fractions

2014-09-24 Thread gladman
gladman added the comment: On 24/09/2014 10:13, Mark Dickinson wrote: Mark Dickinson added the comment: I will willingly supply more references if you need them. I don't. :-) I've taught more elementary number classes and reviewed more elementary number theory texts (including Rosen's

[issue22477] GCD in Fractions

2014-09-24 Thread gladman
gladman added the comment: On 24/09/2014 11:54, Mark Dickinson wrote: Mark Dickinson added the comment: Well we will just have to agree to disagree on this :-) Sure. In the mean time, would you be interested in writing a patch targeting Python 3.5? (Irrespective of the arguments

[issue22477] GCD in Fractions

2014-09-24 Thread gladman
gladman added the comment: On 24/09/2014 19:01, Mark Dickinson wrote: Mark Dickinson added the comment: The negative of the greatest common divisor is the least common divisor in an integer range. That depends on your choice of definitions: it's perfectly reasonable to see

[issue22477] GCD in Fractions

2014-09-24 Thread gladman
gladman added the comment: On 24/09/2014 17:24, Wolfgang Maier wrote: Wolfgang Maier added the comment: [snip] An aspect that hasn't really been discussed so far on the mailing list is that this is *not* only about whether the gcd of negative integers should be negative or positive

[issue13674] crash in datetime.strftime

2013-09-30 Thread gladman
gladman added the comment: On IDLE this: Python 3.3.2 (v3.3.2:d047928ae3f6, May 16 2013, 00:06:53) [MSC v.1600 64 bit (AMD64)] on win32 Type copyright, credits or license() for more information. from datetime import datetime datetime(1878, 12, 31).strftime('%d %b %y') causes a crash

[issue13674] crash in datetime.strftime

2013-09-30 Thread gladman
gladman added the comment: On 30/09/2013 12:39, STINNER Victor wrote: STINNER Victor added the comment: I am surprised that this bug still exists as it is not far off two years old now. You should report the bug to Microsoft who distributes a buggy C runtime library

[issue13674] crash in datetime.strftime

2013-09-30 Thread gladman
gladman added the comment: On 30/09/2013 13:14, Tim Golden wrote: Tim Golden added the comment: In reality (as I'm sure you can guess) it's just that no-one's got to the point of fixing it. I did start off, but it's not a trivial fix and clearly it got sidelined (with no-one shouting