[issue2075] Float number comparision problem

2008-02-11 Thread will
will added the comment: The issue is reproduced under WIN32, version info as follows: Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] on win32 __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/

[issue2075] Float number comparision problem

2008-02-11 Thread will
New submission from will: c=22.99*5.0 print c==114.95 """This will produce false""" c=22.99*4.0 print c==91.96 """This will produce true""" """This is not expected behavior for python""" -- comp

[issue23258] Cannot Install Python 3.4.2 on Windows 7 64 bit / screen print attached

2015-02-11 Thread Will
Will added the comment: Had the exact same problem. Windows 7 / 64-bit All I can get from the MSIexec log is: Error 1722. There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or

[issue2234] cygwinccompiler.py fails for latest MinGW releases.

2008-06-10 Thread Will Brown
Will Brown <[EMAIL PROTECTED]> added the comment: Same problem in version.py, line 100 (StrictVersion) -- nosy: +wmbrown ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2234] cygwinccompiler.py fails for latest MinGW releases.

2008-06-10 Thread Will Brown
Will Brown <[EMAIL PROTECTED]> added the comment: Yes, same problem. Multiple files. I should have read the discussion more carefully. My note was redundant. Will -- William Brown -- -- Boeing Networked Systems Technology -- Kent:253.65

[issue2234] cygwinccompiler.py fails for latest MinGW releases.

2008-06-11 Thread Will Brown
Will Brown <[EMAIL PROTECTED]> added the comment: None of the above will work on both '2.18.50.20080523' & '1.2.3a' -- William Brown -- -- Boeing Networked Systems Technology -- Kent:

[issue2234] cygwinccompiler.py fails for latest MinGW releases.

2008-06-12 Thread Will Brown
Will Brown <[EMAIL PROTECTED]> added the comment: Maybe I have a problem with my test code... import re def test_re(out_string): result = re.search('(\d+\.\d+(\.(\d+))?([ab](\d+))?)', out_string) print '--- msg00622 ---' print

[issue3726] Allow ', ' delimiters in logging.config.fileConfig()

2008-08-29 Thread Will Maier
New submission from Will Maier <[EMAIL PROTECTED]>: Currently, logging.config.fileConfig() inconsistently handles lines like: [handlers] keys = spam, eggs [formatters] keys = foo, bar It does, however, correctly handle the ', ' delimiter in the [loggers] section. This is bec

[issue6676] expat parser throws Memory Error when parsing multiple files

2010-02-02 Thread Will Grainger
Will Grainger added the comment: I don't think this is a python specific problem. I have just seen the same error when working with the expat library from C, and the cause is using the same parser to read multiple files. -- nosy: +willgra

[issue2147] int operations no longer overflow

2008-02-19 Thread Will Robinson
Will Robinson added the comment: Just jumping in to say the colleague Neal refers to is me, and I'm interested in the resolution to this bug. Thanks in advance for your help. -- nosy: +willrobinson __ Tracker <[EMAIL PROTECTED]> <http://b

[issue2473] logging.LogRecord should know how to handle dict-like args

2008-03-24 Thread Will Maier
New submission from Will Maier <[EMAIL PROTECTED]>: In (at least) Python 2.5.2, logging.logRecord provides a very useful facility to interpolate formatted strings. This feature expands an *args sequence; if that sequence has only one element and that element is a dictionary, LogRecord us

[issue37839] makesetup Doesn't Handle Defines with Equal Sign

2019-08-13 Thread Will Bond
New submission from Will Bond : Using 3.8.0b3 on macOS. I'm doing a custom compile with (heavy) modifications to Modules/Setup.local. Whenever I add a define rule to a module line that includes an equal sign, e.g.: _sqlite3 -DMODULE_NAME=_sqlite3 _sqlite/module.c _sqlite/cache.c _s

[issue38193] http.client should be "runnable" like http.server

2019-09-16 Thread Will Boyce
New submission from Will Boyce : I think it would be both sensible and useful if the `http.client` library exposed a "runnable" interface (similar to `http.server`). I would suggest keeping it simple, for example: python -m http.client python -m http.client -o --

[issue36702] test_dtrace failed

2019-10-29 Thread will rogers
will rogers added the comment: I also encountered this on Scientific Linux 7.4 (Linux 3.10.0-693.11.6.el7.x86_64) while trying to build Python 3.8.0. I think it is due to differences in versions of 'dtrace' on different platforms. On my MacOS-X v10.14.6 (Mojave) system, the '

[issue14965] super() and property inheritance behavior

2021-05-20 Thread Will Razen
Will Razen added the comment: @simonzack Your superprop.py doesn't work for multiple inheritance, because you're using __thisclass__.__mro__ in each step instead of the initial object mro -- nosy: +willrazen ___ Python track

[issue14965] super() and property inheritance behavior

2021-05-20 Thread Will Razen
Will Razen added the comment: Fixed superprop.py workaround, now works with multiple inheritance and follows mro adequately. Renamed to duper.py as inspired by Torsten. Uploading here and also to https://gist.github.com/willrazen/bef3fcb26a83dffb6692e5e10d3e67ac -- Added file: https

[issue44468] Shouldn't `typing.get_type_hints()` default `globalns` to `{}` instead of skipping base classes?

2021-06-20 Thread Will Chen
New submission from Will Chen : An issue was recently closed that caused synthetic classes and base classes with invalid `__module__` attributes to raise `KeyError()` in `typing.get_type_hints()`: https://bugs.python.org/issue41515 However, the implemented solution appears to be to skip

[issue44468] Shouldn't `typing.get_type_hints()` default `globalns` to `{}` instead of skipping base classes?

2021-06-22 Thread Will Chen
Change by Will Chen : -- keywords: +patch pull_requests: +25437 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26862 ___ Python tracker <https://bugs.python.org/issu

[issue44468] Shouldn't `typing.get_type_hints()` default `globalns` to `{}` instead of skipping base classes?

2021-06-22 Thread Will Chen
Will Chen added the comment: I opened a PR with a fix and a couple comments on its method: https://github.com/python/cpython/pull/26862 I also *think* I signed the CLA correctly. Not sure. I used my login name here, rather than my Github login, but my account is linked. Didn't ad

[issue41515] typing.get_type_hints generates KeyError

2021-06-23 Thread Will Chen
Change by Will Chen : -- nosy: +WCA nosy_count: 6.0 -> 7.0 pull_requests: +25458 pull_request: https://github.com/python/cpython/pull/26862 ___ Python tracker <https://bugs.python.org/issu

[issue39547] hmac.new() default parameter change not mentioned in changelog

2020-02-03 Thread Will Bond
New submission from Will Bond : When running code on Python 3.8 that previous was running 3.3, I ran into the issue that the default value for the digestmod parameter of hmac.new() has been changed to backwards-incompatible value. I generally would have expected such a break to show up in

[issue40603] slice does not slice

2020-05-11 Thread Will Bradshaw
New submission from Will Bradshaw : slice cannot be hashed which make some operations significantly more annoying. see https://groups.google.com/forum/#!topic/comp.lang.python/SvhkWwSDeIw -- components: ctypes files: patches.zip messages: 368693 nosy: Will Bradshaw priority: normal

[issue42980] argparse: GNU-style help formatter

2021-01-20 Thread Will Noble
New submission from Will Noble : argparse allows GNU-style long options (with '=' in between the option and the value as opposed to a space): https://docs.python.org/3/library/argparse.html#option-value-syntax Call it pickiness, but I'd like to be able to print the help

[issue42980] argparse: GNU-style help formatter

2021-01-20 Thread Will Noble
Change by Will Noble : -- keywords: +patch pull_requests: +23098 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24275 ___ Python tracker <https://bugs.python.org/issu

[issue42980] argparse: GNU-style help formatter

2021-01-21 Thread Will Noble
Will Noble added the comment: The main contribution of my PR is simply factoring out _format_option_with_args as an overridable method. Note that this actually enables subclassing HelpFormatter to produce all the examples you presented above with 1-3 trivial lines of code, as opposed to

[issue42980] argparse: GNU-style help formatter

2021-01-22 Thread Will Noble
Will Noble added the comment: Ya I was following the precedent of non-documentation figuring that formal documentation should be done for the entire class and that would be a much larger undertaking and maybe involve further refactoring. I could potentially undertake that task in the future

[issue30197] Enhance swap_attr() and swap_item() in test.support

2020-10-06 Thread Will Chill
Will Chill added the comment: Thought I'd send -- nosy: +wburchill7 Added file: https://bugs.python.org/file49498/March 23rd 2017.htm ___ Python tracker <https://bugs.python.org/is

[issue30197] Enhance swap_attr() and swap_item() in test.support

2020-10-06 Thread Will Chill
Change by Will Chill : Removed file: https://bugs.python.org/file49498/March 23rd 2017.htm ___ Python tracker <https://bugs.python.org/issue30197> ___ ___ Python-bug

[issue29708] support reproducible Python builds

2020-10-22 Thread Will Thompson
Change by Will Thompson : -- nosy: -Will Thompson ___ Python tracker <https://bugs.python.org/issue29708> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28053] parameterize what serialization is used in multiprocessing

2017-07-14 Thread Will S
Will S added the comment: Documentation would be appreciated. I have a project that uses BaseManager, Client, and Listener to create some servers and clients. I would like to update the project to work with Python 3 and would prefer to update the clients and the servers separately (i.e

[issue28053] parameterize what serialization is used in multiprocessing

2017-07-28 Thread Will S
Will S added the comment: Just to follow up in case anyone comes across my last message later: I just had to change the last line from multiprocessing.reducer = pickle2reducer.Pickle2Reducer() to multiprocessing.context._default_context.reducer = pickle2reducer.Pickle2Reducer

[issue35540] dataclasses.asdict breaks with defaultdict fields

2018-12-19 Thread Will T
New submission from Will T : _asdict_inner attempts to manually recursively deepcopy dicts by calling type(obj) with a generator of transformed keyvalue tuples @ https://github.com/python/cpython/blob/b2f642ccd2f65d2f3bf77bbaa103dd2bc2733734/Lib/dataclasses.py#L1080 . defaultdicts are dicts

[issue30537] Using PyNumber_AsSsize_t in itertools.islice

2017-06-02 Thread Will Roberts
Will Roberts added the comment: Note that this issue also seems to affect other methods in the itertools package, such as permutations. -- nosy: +Will Roberts ___ Python tracker <http://bugs.python.org/issue30

[issue30537] Using PyNumber_AsSsize_t in itertools.islice

2017-06-05 Thread Will Roberts
Will Roberts added the comment: Thanks for feedback, Serhiy and Raymond! Github PR now has reverted changes except to the calls in islice_new; I am happy to squash if you would like. Serhiy, this is my first time poking around in CPython code. What are the potential consequences of making

[issue30537] Using PyNumber_AsSsize_t in itertools.islice

2017-06-07 Thread Will Roberts
Will Roberts added the comment: Github PR adds simple test, as well as an entry in Misc/NEWS. -- ___ Python tracker <http://bugs.python.org/issue30537> ___ ___

[issue29708] support reproducible Python builds

2018-03-06 Thread Will Thompson
Will Thompson added the comment: For what it's worth, in Endless OS we still saw slight variations between builds in the .pyc files, even with all the source files' mtimes set to the epoch (ie. equivalent to setting & supporting SOURCE_DATE_EPOCH, I believe). Looking at the c

[issue32162] typing.Generic breaks __init_subclass__

2018-04-02 Thread Will T
Will T added the comment: I believe I'm experiencing a related bug in the new (3.7) version unfortunately. The current version of typing.Generic.__init_subclass__ isn't chaining to super(Generic, cls).__init_subclass__, meaning Generic's position in class bases can prevent s

[issue33207] typing.Generic does not correctly call super().__init_subclass__

2018-04-02 Thread Will T
New submission from Will T : Per the docs ( https://docs.python.org/3/reference/datamodel.html#object.__init_subclass__ ) this should be chain-calling super but currently doesn't, and thus breaks base classes listed after it which depend on this functionality. Attached a test for a

[issue32162] typing.Generic breaks __init_subclass__

2018-04-02 Thread Will T
Will T added the comment: Done: https://bugs.python.org/issue33207 - thanks for the quick response! -- ___ Python tracker <https://bugs.python.org/issue32

[issue32873] Pickling of typing types

2018-04-04 Thread Will T
Will T added the comment: I believe I hit a bug with this fix (just pulled the code a few min ago): In [10]: pickle.loads(pickle.dumps(typing.List)) Out[10]: typing.List In [11]: pickle.loads(pickle.dumps(typing.FrozenSet

[issue31782] Add a timeout to multiprocessing's Pool.join

2017-10-13 Thread Will Starms
New submission from Will Starms : Pool's join function currently (3.6.3) lacks a timeout, which can cause the managing thread to sleep indefinitely when a pool worker hangs or starts misbehaving. Adding a timeout allows the owning thread to attempt a join and, after the timeout, retu

[issue31782] Add a timeout to multiprocessing's Pool.join

2017-10-13 Thread Will Starms
Will Starms added the comment: A timeout alternative that raises TimeoutError -- Added file: https://bugs.python.org/file47220/cpython_raise_timeout.patch ___ Python tracker <https://bugs.python.org/issue31

[issue31782] Add a timeout to multiprocessing's Pool.join

2017-10-17 Thread Will Starms
Will Starms added the comment: I've realized that my patch may not be ideal for general-purpose use, but it's a good start for a discussion on the proper way to implement a timeout. My patch (which is based on a more involved modification to Pool) assumes that the joins after the

[issue19684] IDLE on OS X 10.6.8 crashes when opening a file

2013-11-21 Thread Will Adams
Will Adams added the comment: For some reason I got the impression that this only applied to some graphics library routines so I ignored the warnings. Thanks for the reply and sorry to take your time. On Nov 21, 2013, at 11:58 AM, Ned Deily wrote: > > Ned Deily added the c

[issue19684] OS X 10.6.8 Crash when opening a file

2013-11-21 Thread Will Adams
New submission from Will Adams: Apologies in advance if I am posting incorrectly. This is my first post here. IDLE crashes when I open a *.py file on my old mac pro from IDLE. I haven't seen this on version 3.3.2, but I need to do some work in version 2.7 today so I downloaded 2.7.

[issue17523] Additional tests for the os module.

2013-11-26 Thread Will Weaver
Will Weaver added the comment: It seems that I probably missed some tests as I only ran then on Mac OS. Such a minor addition so no need to do anything about it. If I go about it in a better way I'll make a new issue. -- resolution: -> wont fix status: open -

[issue29625] colorsys.rgb_to_hsv always returns saturation as 0 (python2.7.13 only)

2017-02-22 Thread Will Pittman
New submission from Will Pittman: colorsys.rgb_to_hsv appears to be broken on python2.7.13 (on archlinux). Saturation is always reported as 0. ex: import colorsys rgb_to_hsv( 127, 116, 18 ) >>> (0.1, 0, 127) -- messages: 288380 nosy: Will Pittman priorit

[issue29625] colorsys.rgb_to_hsv always returns saturation as 0 (python2.7.13 only)

2017-02-22 Thread Will Pittman
Will Pittman added the comment: The bug appears to be caused by the difference in division symbols between python3 vs python2. The issue appears to be resolved if you add the following line to the `/usr/lib/python2.7.13/colorsys.py` module (or if all arguments are converted to floats). from

[issue29625] colorsys.rgb_to_hsv always returns saturation as 0 (python2.7 only)

2017-02-22 Thread Will Pittman
Changes by Will Pittman : -- title: colorsys.rgb_to_hsv always returns saturation as 0 (python2.7.13 only) -> colorsys.rgb_to_hsv always returns saturation as 0 (python2.7 only) ___ Python tracker <http://bugs.python.org/issu

[issue29625] colorsys.rgb_to_hsv always returns saturation as 0 (python2.7 only)

2017-02-22 Thread Will Pittman
Will Pittman added the comment: oh, thank you very much and sorry for my negligence! -- stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue27144] concurrent.futures.as_completed() memory inefficiency

2017-02-28 Thread Will Vousden
Will Vousden added the comment: Is there a reason this hasn't been merged yet? Fixing this bug locally (albeit just by setting Future._result = None when I've extracted the result) reduced the memory footprint of my program from 50 GB to 7 GB, so it seem

[issue17523] Additional tests for the os module.

2013-03-22 Thread Will Weaver
New submission from Will Weaver: I've reorganized and added some os module tests. I split the makedirs tests into additional test methods that test one thing instead of a lot of different things. I added additional test coverage for a trailing '/'. I've also add

[issue24809] Add getprotobynumber to socket module

2015-08-06 Thread Will Booth
New submission from Will Booth: Add an old method from netdb to python for a best-effort, centerized look up. For the function to work, /etc/protocols would also need to be present. If the protocol doesn't exist OSError is raised. Patch attached. -- components: Extension Mo

[issue24809] Add getprotobynumber to socket module

2015-08-06 Thread Will Booth
Changes by Will Booth : -- versions: +Python 3.5 -Python 3.6 ___ Python tracker <http://bugs.python.org/issue24809> ___ ___ Python-bugs-list mailing list Unsub

[issue24809] Add getprotobynumber to socket module

2015-08-06 Thread Will Booth
Will Booth added the comment: Allow users to translate protocol numbers from IPv4/IPv6 headers to a friendly human readable string. Just filling a gap in the API. There might be a PyPI package out there similar to socket. However, it's complementary function,'getprotobyname'

[issue25228] Regression in cookie parsing with brackets and quotes

2016-02-05 Thread Will Harris
Changes by Will Harris : -- nosy: +harris ___ Python tracker <http://bugs.python.org/issue25228> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16098] Bisect optimization in heapq.nsmallest is never used

2012-10-01 Thread Will Haldean Brown
New submission from Will Haldean Brown: The implementation of nsmallest in heapq contains an optimization for when n is an order of magnitude less than the size of the data, which uses bisect to find the n-smallest elements. This optimization is guarded by a check to ensure that the data

[issue16098] Bisect optimization in heapq.nsmallest is never used

2012-10-04 Thread Will Haldean Brown
Will Haldean Brown added the comment: Thanks for the clarification Raymond! -- resolution: -> invalid status: open -> closed ___ Python tracker <http://bugs.python.org/i