[issue41376] site.getusersitepackages() incorrectly claims that PYTHONNOUSERSITE is respected

2020-07-23 Thread Phil Elson
New submission from Phil Elson : The documentation for site.getusersitepackages() states at https://docs.python.org/3.10/library/site.html#site.getusersitepackages: Return the path of the user-specific site-packages directory, USER_SITE. If it is not initialized yet, this function will also

[issue41376] site.getusersitepackages() incorrectly claims that PYTHONNOUSERSITE is respected

2020-07-23 Thread Phil Elson
Change by Phil Elson : -- keywords: +patch pull_requests: +20740 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21602 ___ Python tracker <https://bugs.python.org/issu

[issue13598] string.Formatter doesn't support empty curly braces "{}"

2012-10-31 Thread Phil Elson
Changes by Phil Elson : -- nosy: +pelson ___ Python tracker <http://bugs.python.org/issue13598> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13598] string.Formatter doesn't support empty curly braces "{}"

2012-10-31 Thread Phil Elson
Phil Elson added the comment: The current patch fails to catch the fact that auto vs manual numbering has been used in following corner case: from string import Formatter print(Formatter().format("{0:{}}", 'foo', 5)) To fix this, without adding state to the formatter

[issue13598] string.Formatter doesn't support empty curly braces "{}"

2012-10-31 Thread Phil Elson
Phil Elson added the comment: Ramchandra's fix looks fairly good, although there is at least one remaining issue (see my last comment). I have attached a patch which addresses (and tests) this. I'd be happy to pick this up if there are any remaining issues that need to be

[issue16382] Better warnings exception for bad category

2012-11-01 Thread Phil Elson
New submission from Phil Elson: When passing an invalid Warning subclasses to the warnings.warn function, a bare issubclass exception is raised: >>> import warnings >>> warnings.warn('hello world', 'not a valid warning type') Traceback (most recent call l

[issue16382] Better warnings exception for bad category

2012-11-20 Thread Phil Elson
Changes by Phil Elson : Added file: http://bugs.python.org/file28053/pelson_warnings_fix_2.diff ___ Python tracker <http://bugs.python.org/issue16382> ___ ___ Python-bug

[issue16382] Better warnings exception for bad category

2012-11-22 Thread Phil Elson
Changes by Phil Elson : Added file: http://bugs.python.org/file28072/pelson_warnings_fix_3.diff ___ Python tracker <http://bugs.python.org/issue16382> ___ ___ Python-bug

[issue13598] string.Formatter doesn't support empty curly braces "{}"

2013-03-04 Thread Phil Elson
Phil Elson added the comment: > I didn't see a test case relating to the example in his comment, namely > > f.format("{0:{}}", 'foo', 5) > > Did I miss it? The example should fail, which it wouldn't have done with the patch previously propose

[issue16382] Better warnings exception for bad category

2013-03-04 Thread Phil Elson
Phil Elson added the comment: Ok. I think I've done all of the actions from the reviews. I'm not sure if I should remove the old patches or not? Thanks, -- Added file: http://bugs.python.org/file29304/pelson_warnings_fix_4.diff ___ Pyth

[issue17351] Fixed python3 descriptor documentation example + removal of explicit "object" inheritance in docs

2013-03-04 Thread Phil Elson
New submission from Phil Elson: The example at http://docs.python.org/3.4/howto/descriptor.html#properties does not run due to the old style "raise AttributeError, message" form. This patch fixes the problem, and also goes through the docs to remove explicit sub-classing from &qu

[issue21917] Python 2.7.7 Tests fail, and math is faulty

2014-10-29 Thread Phil Elson
Phil Elson added the comment: I just wanted to say that I am seeing the same issue with similar build flags for the xlc compiler. Finding the correct compile flags may well be the problem here. For the record, since I think this is related to the flags which are being passed to os.open, I&#x

[issue18235] _sysconfigdata.py wrong on AIX installations

2014-10-30 Thread Phil Elson
Phil Elson added the comment: FWIW - this doesn't appear to have been backported to v2.7.x. As a result, the ./Modules/ld_so_aix reference still exists in _sysconfigdata.py in v2.7.8 (and therefore I was unable to build numpy). The workaround is easy enough, it is just something that is