[issue24984] document AF_BLUETOOTH socket address formats

2015-09-10 Thread Tim Tisdall
Tim Tisdall added the comment: oops. yeah, I got my terminology wrong. It accepts only a byte-string. -- ___ Python tracker <http://bugs.python.org/issue24

[issue25044] bring BTPROTO_SCO inline with other Bluetooth protocols

2015-09-10 Thread Tim Tisdall
Tim Tisdall added the comment: Yes, then any existing implementations will continue to work. One sticky issue with all of this... there's no existing tests as per #7687 . -- ___ Python tracker <http://bugs.python.org/is

[issue7687] Bluetooth support untested

2015-09-10 Thread Tim Tisdall
Changes by Tim Tisdall : -- versions: +Python 3.6 ___ Python tracker <http://bugs.python.org/issue7687> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25056] no support for Bluetooth LE in socket

2015-09-10 Thread Tim Tisdall
New submission from Tim Tisdall: When Bluetooth LE support was added to Bluez they expanded sockaddr_l2 (the struct for making L2CAP connections) to include a l2_bdaddr_type. Since the existing code initializes the struct with 0's the type is set to regular Bluetooth (BDADDR_BREDR)

[issue25043] document socket constants for Bluetooth

2015-09-11 Thread Tim Tisdall
Tim Tisdall added the comment: Okay, since there's currently no existing tests for the Bluetooth components of socket and the only example for BDADDR_ALL seems to be for something I'm not sure you can do in socket, I'm just going to not bother including it. I've attached

[issue25043] document socket constants for Bluetooth

2015-09-11 Thread Tim Tisdall
Tim Tisdall added the comment: okay, I talked to one of the Bluez developers and he recommended leaving out BDADDR_ALL since it doesn't seem to correspond to anything in the kernel. -- ___ Python tracker <http://bugs.python.org/is

[issue25129] suboptimal floating-point floor division

2015-09-15 Thread Tim Peters
Tim Peters added the comment: Stare at footnote 2 for the Reference Manual's "Binary arithmetic operations" section: """ [2] If x is very close to an exact integer multiple of y, it’s possible for x//y to be one larger than (x-x%y)//y due to rounding. In such cas

[issue25129] suboptimal floating-point floor division

2015-09-15 Thread Tim Peters
Tim Peters added the comment: > What is the rounding mode used by true division, For binary floats? It inherits whatever the platform C's x/y double division uses. Should be nearest/even on "almost all" platforms now, unless the user fiddles with their FP

[issue25136] Python doesn't find Xcode 7 stub libraries

2015-09-15 Thread Tim Smith
New submission from Tim Smith: In Xcode 7, Apple is replacing many of the .dylibs in SDKROOT with textual stubs. [1] These files exist on disk with filenames like: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libz.tbd They are

[issue25137] Behavioral change / regression? with nested functools.partial

2015-09-15 Thread Tim Graham
Changes by Tim Graham : -- nosy: +Tim.Graham ___ Python tracker <http://bugs.python.org/issue25137> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25129] suboptimal floating-point floor division

2015-09-15 Thread Tim Peters
Tim Peters added the comment: BTW, I find this very hard to understand: "it’s possible for x//y to be one larger than" ... This footnote was written long before "//" was defined for floats. IIRC, the original version must have said something like: "it's pos

[issue25136] Python doesn't find Xcode 7 stub libraries

2015-09-15 Thread Tim Smith
Changes by Tim Smith : Added file: http://bugs.python.org/file40479/xcode-stubs-2.7.patch ___ Python tracker <http://bugs.python.org/issue25136> ___ ___ Python-bugs-list m

[issue25137] Behavioral change / regression? with nested functools.partial

2015-09-16 Thread Tim Graham
Tim Graham added the comment: We can use an alternate approach in Django, if appropriate: https://github.com/django/django/pull/5294 -- ___ Python tracker <http://bugs.python.org/issue25

[issue25137] Behavioral change / regression? with nested functools.partial

2015-09-18 Thread Tim Graham
Tim Graham added the comment: It's fine with me. -- ___ Python tracker <http://bugs.python.org/issue25137> ___ ___ Python-bugs-list mailing list Unsubscr

[issue25143] 3.5 install fails poorly on Windows XP

2015-09-23 Thread Tim Golden
Tim Golden added the comment: I'd just bail as early as poss. from the installer. If it's possible to detect Windows versions, stick something like "The last version to support WinXP is 3.4". If that's too tricky, perhaps something "Your system may be unsu

[issue25164] Windows default installation path is inconsistent between per-user and system-wide installation

2015-09-23 Thread Tim Golden
Tim Golden added the comment: I don't feel that strongly, but my preference would be "python35[-whatever]" rather than the version with the spaces & the dots. Both for ease of use and for some kind of continuity with the c:\pythonxy we&#x

[issue25228] Regression in cookie parsing with brackets and quotes

2015-09-24 Thread Tim Graham
New submission from Tim Graham: Regression in https://hg.python.org/cpython/rev/9e765e65e5cb (affects 2.7 and 3.2+), similar to issue22931 where inserting an invalid cookie value can cause the rest of the cookie to be ignored. A test is attached, and here's a quick demo: Old: >

[issue25135] Deques to adopt the standard clearing procedure for mutable objects

2015-09-25 Thread Tim Peters
Tim Peters added the comment: The only way to be certain you're never going to face re-entrancy issues in the future is to call malloc() directly - and hope nobody redefines that too with some goofy macro ;-) In the meantime, stick to PyMem_Malloc(). That's the intended way for cod

[issue23600] tizinfo.fromutc changed for tzinfo wih StdOffset=0, DstOffset=1

2015-09-26 Thread Tim Peters
Tim Peters added the comment: I expect Peter is correct: the C fromutc() doesn't match the logic of the Python fromutc(), and there are no comments explaining why the C version changed the logic. The last 4 lines of his `time_issues.py` show the difference. The simplified UKSumme

[issue23600] tizinfo.fromutc changed for tzinfo wih StdOffset=0, DstOffset=1

2015-09-27 Thread Tim Peters
Tim Peters added the comment: Patch looks good to me! Thanks :-) -- ___ Python tracker <http://bugs.python.org/issue23600> ___ ___ Python-bugs-list mailin

[issue23600] tizinfo.fromutc changed for tzinfo wih StdOffset=0, DstOffset=1

2015-09-27 Thread Tim Peters
Tim Peters added the comment: Afraid that's a question for python-dev - I lost track of the active branches over year ago :-( -- ___ Python tracker <http://bugs.python.org/is

[issue23600] tizinfo.fromutc changed for tzinfo wih StdOffset=0, DstOffset=1

2015-09-28 Thread Tim Peters
Tim Peters added the comment: Thank you for your persistence and patience, Peter! It shouldn't have been this hard for you :-( -- ___ Python tracker <http://bugs.python.org/is

[issue25259] readline macros can segfault Python

2015-09-28 Thread Tim Chase
New submission from Tim Chase: Attempting to use a readline macro (use "C-x (" to start recording, "C-x )" to stop recording, and "C-x e" to playback) with more than one newline in it will cause a segfault. The behavior also presents in the [`rlwrap` tool](https

[issue25261] Incorrect Return Values for any() and all() Built-in Functions

2015-09-28 Thread Tim Peters
Tim Peters added the comment: You wholly consume the iterator after the first time you apply `list()` to it. Therefore both `any()` and `all()` see an empty iterator, and return the results appropriate for an empty sequence: >>> multiples_of_6 = (not (i % 6) for i in range(1, 10))

[issue24773] Implement PEP 495 (Local Time Disambiguation)

2015-09-28 Thread Tim Peters
Changes by Tim Peters : -- nosy: +tim.peters ___ Python tracker <http://bugs.python.org/issue24773> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1602378] Incorrect docs for bisect_left

2015-09-30 Thread Tim Peters
Tim Peters added the comment: What's your objection? Here's your original example: >>> from bisect import * >>> L = [1,2,3,3,3,4,5] >>> x = 3 >>> i = bisect_left(L, x) >>> i 2 >>> all(val < x for val in L[:i]) True

[issue25228] Regression in cookie parsing with brackets and quotes

2015-10-03 Thread Tim Graham
Tim Graham added the comment: It might be a case of issue22983. I'll try to look into the details and offer a patch next week. For what it's worth, there are other regressions in Python 3.2 cookie parsing that makes the latest patch release (3.2.6) unusable with Django (issue22758)

[issue25228] Regression in cookie parsing with brackets and quotes

2015-10-05 Thread Tim Graham
Tim Graham added the comment: Sure, feel free to propose a patch. -- ___ Python tracker <http://bugs.python.org/issue25228> ___ ___ Python-bugs-list mailin

[issue25228] Regression in cookie parsing with brackets and quotes

2015-10-06 Thread Tim Graham
Tim Graham added the comment: Could you please integrate my unit test into your patch? You also need to sign the PSF Contributor Agreement: https://www.python.org/psf/contrib/contrib-form/ -- ___ Python tracker <http://bugs.python.org/issue25

[issue25228] Regression in cookie parsing with brackets and quotes

2015-10-06 Thread Tim Graham
Tim Graham added the comment: I had already proposed a test, see cookie-bracket-quotes-test.diff. What I meant was that the fix and the test should be combined into a single patch. -- ___ Python tracker <http://bugs.python.org/issue25

[issue25228] Regression in cookie parsing with brackets and quotes

2015-10-07 Thread Tim Graham
Tim Graham added the comment: Yes, when I have some time. By the way, did you intentionally remove all the "Python 3.X" versions on the issue? -- ___ Python tracker <http://bugs.python.o

[issue25354] test_datetime failing

2015-10-09 Thread Tim Peters
Tim Peters added the comment: This is just hard to believe. The symptom you describe is exactly what's expected if you got the new test suite but did not compile the new C code, both added by the fix for: http://bugs.python.org/issue23600 Since we have numerous buildbots on whic

[issue25354] test_datetime failing

2015-10-09 Thread Tim Peters
Changes by Tim Peters : -- components: +Library (Lib) -Extension Modules, ctypes resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue25391] difflib.SequenceMatcher(...).ratio gives bad/wrong/unexpected low value with repetitious strings

2015-10-13 Thread Tim Peters
Tim Peters added the comment: Do note that this is not an "edit distance" (like Levenshtein) algorithm. It works as documented instead ;-) , searching (in effect recursively) for the leftmost longest contiguous matching blocks. Both "leftmost" and "contiguous"

[issue25391] difflib.SequenceMatcher(...).ratio gives bad/wrong/unexpected low value with repetitious strings

2015-10-13 Thread Tim Peters
Tim Peters added the comment: BTW, the "leftmost longest contiguous" bit is messy to explain, so the main part of the docs don't explain it all (it's of no interest to 99.9% of users). Instead it's formally defined in the .find_longest_match() docs: "&q

[issue25444] Py Launch Icon

2015-10-20 Thread Tim Golden
Changes by Tim Golden : -- nosy: -tim.golden ___ Python tracker <http://bugs.python.org/issue25444> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25572] _ssl doesn't build on OSX 10.11

2015-11-06 Thread Tim Smith
Changes by Tim Smith : -- nosy: +tdsmith ___ Python tracker <http://bugs.python.org/issue25572> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24999] Segfault in test_re.test_sre_character_class_literals() when Python is compiled by ICC

2015-11-07 Thread Tim Peters
Tim Peters added the comment: If it were treating doubles as floats, you'd get a lot more failures than this. Many of these look like clear cases of treating _denormal_ doubles as 0.0, though. I have no experience with ICC, but a quick Google search suggests ICC flushes denormals to 0

[issue22758] Regression in Python 3.2 cookie parsing

2015-12-07 Thread Tim Graham
Tim Graham added the comment: Given the inactivity here, I guess the patch won't be applied before Python 3.2 is end-of-life so I'm going to close the ticket. -- resolution: -> wont fix status: open -> closed ___ Pytho

[issue24844] Python 3.5rc1 compilation error with Apple clang 4.2 included with Xcode 4

2015-12-26 Thread Tim Smith
Changes by Tim Smith : -- nosy: +tdsmith ___ Python tracker <http://bugs.python.org/issue24844> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25935] OrderedDict prevents garbage collection if a circulary referenced class is used as key

2015-12-28 Thread Tim Graham
Changes by Tim Graham : -- nosy: +Tim.Graham ___ Python tracker <http://bugs.python.org/issue25935> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26150] SequenceMatcher's algorithm is not correct

2016-01-20 Thread Tim Peters
Tim Peters added the comment: Please read the responses to this older report: http://bugs.python.org/issue25391 As they say, it's functioning as designed and documented, so this isn't "a bug". For that reason I'm closing this as "not a bug". As they also

[issue26194] Undefined behavior for deque.insert() when len(d) == maxlen

2016-01-27 Thread Tim Peters
Tim Peters added the comment: I'd raise an exception when trying to insert into a bounded deque that's already full. There's simply no way to guess what was _intended_; it's dead easy for the user to implement what they _do_ intend (first make room by deleting the s

[issue26194] Undefined behavior for deque.insert() when len(d) == maxlen

2016-01-27 Thread Tim Peters
Tim Peters added the comment: My opinion doesn't change: I'd rather see an exception. I see no use case for inserting "into the middle" of a full bounded queue. If I had one, it would remain trivial to force the specific

[issue23601] use small object allocator for dict key storage

2016-01-29 Thread Tim Peters
Tim Peters added the comment: +1 from me. Julian, you have the patience of a saint ;-) -- ___ Python tracker <http://bugs.python.org/issue23601> ___ ___ Pytho

[issue26751] Possible bug in sorting algorithm

2016-04-13 Thread Tim Peters
Tim Peters added the comment: If that's the actual code you're using, it has a bug: the "if k2[1] is None" test is useless, since regardless of whether it's true or false, the next `if` suite overwrites `retval`. You probably meant elif k1[1] ... ^^

[issue26753] Obmalloc lock LOCK_INIT and LOCK_FINI are never used

2016-04-14 Thread Tim Peters
Tim Peters added the comment: Right, these macros were in the original module (by Vladimir Marangozov). They've never done anything - never been tested. Over the years I removed other layers of macro indirection (while other people added more ;-) ), but left these alone because they

[issue26895] regex matching on bytes considers zero byte as end

2016-04-30 Thread Tim Peters
Tim Peters added the comment: Do note that `.match()` is constrained to match starting at the first byte. `.search()` is not (it can start matching at any position), and your example works fine if `.search()` is used instead. This is all expected, and intended, and documented

[issue26903] ProcessPoolExecutor(max_workers=64) crashes on Windows

2016-05-07 Thread Tim Peters
Tim Peters added the comment: Just noting that the `multiprocessing` module can be used instead. In the example, add import multiprocessing as mp and change with concurrent.futures.ProcessPoolExecutor() as executor: to with mp.Pool() as executor: That's all it

[issue27045] Forward slashes in Windows paths

2016-05-17 Thread Tim Golden
Tim Golden added the comment: I haven't tested everywhere but some versions of Windows don't in fact accept forward slashes on the cmd.exe command line. Suggest changing to backslashes as there's no reason to do otherwise. -- no

[issue27045] Forward slashes in Windows paths

2016-05-17 Thread Tim Peters
Tim Peters added the comment: All versions of cmd.exe want backslashes in paths for the commands implemented _by_ cmd.exe - those interpret a forward slash as indicating an option. For example, here on Win10 Pro: C:\WINDOWS\system32>dir c:\Windows\System32\xwreg.dll Volume in drive C is

[issue27045] Forward slashes in Windows paths

2016-05-17 Thread Tim Golden
Tim Golden added the comment: The key point here is that if I run the example as given on my Win 8.1 box, it doesn't work. (The venv I'm using is called nw0). d:\tim\.venvs>dir nw0\Scripts\activate.bat Volume in drive D is New Volume Volume Serial Number is 2639-22DA Direct

[issue27082] IDLE seriously degrades during and after printing large single line strings

2016-05-21 Thread Tim Peters
Tim Peters added the comment: Ya, this annoyance has been there forever. As I recall, the source of the problem is the Tk text widget (which slows horribly when displaying long lines). -- nosy: +tim.peters ___ Python tracker <h

[issue23515] Bad logic in timsort's merge_collapse

2015-02-24 Thread Tim Peters
New submission from Tim Peters: Some researchers found an error in the logic of merge_collapse, explained here, and with corrected code shown in section 3.2: http://envisage-project.eu/proving-android-java-and-python-sorting-algorithm-is-broken-and-how-to-fix-it/ This affects all current

[issue23515] Bad logic in timsort's merge_collapse

2015-02-25 Thread Tim Peters
Tim Peters added the comment: @Benjamin, bless you for changing their "n-1 > 0" to "n > 1", and for adding parentheses to make the intended grouping obvious instead of a puzzle, and for swapping the addends on the RHS of the new

[issue23515] Bad logic in timsort's merge_collapse

2015-02-25 Thread Tim Peters
Tim Peters added the comment: Since it's impossible to trigger the error on any current machine anyway (no machine has enough memory), increasing the size of the stack would be absurd. If you read the paper, they note that this is what the Java folks first did (they changed this pa

[issue23515] Bad logic in timsort's merge_collapse

2015-02-25 Thread Tim Peters
Tim Peters added the comment: Thanks, Terry! Absolutely agreed: a logical error is an error, and will bite us eventually, regardless of whether it does so today. I'm very glad the researchers went to all the trouble to analyze thi

[issue23524] Use _set_thread_local_invalid_parameter_handler in posixmodule

2015-02-27 Thread Tim Golden
Tim Golden added the comment: The problem is that this isn't an area I'm particularly familiar with (either in Python nor in Windows) so I need time to ramp up my awareness of what Steve's proposing plus then assessing the change. I'll try... but I rather hope Z

[issue23592] SIGSEGV on interpreter shutdown, with daemon threads running wild

2015-03-06 Thread Tim Peters
Tim Peters added the comment: Nothing should ever crash the interpreter :-) So this is a thoroughly legitimate bug report. However, there's no way to guess whether _this_ crasher is easy to fix, or next to impossible. Without a test program to provoke the error, there's little

[issue23604] Python 3.4 and 2.7 installation no Script folder and no pip installed

2015-03-09 Thread Tim Golden
Tim Golden added the comment: This is a duplicate of issue22028. Daiyue Weng: to move forward, can you apply the fix referred to in this post: https://mail.python.org/pipermail/python-list/2015-January/696688.html (ie the "removing corrupted keys" section from http://www.swarley.

[issue22028] Python 3.4.1 Installer ended prematurely (Windows msi)

2015-03-09 Thread Tim Golden
Tim Golden added the comment: This has come up again in issue23604. Steve, please apply your patch. I think it should go against 2.7, 3.4 & 3.5 especially since all those versions now ship with ensurepip. -- ___ Python tracker &

[issue22931] cookies with square brackets in value

2015-03-18 Thread Tim Graham
Changes by Tim Graham : -- nosy: +Tim.Graham ___ Python tracker <http://bugs.python.org/issue22931> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22758] Regression in Python 3.2 cookie parsing

2015-03-20 Thread Tim Graham
Tim Graham added the comment: Patch updated to fix conflict in NEWS. Could we have it committed to ensure it gets fixed in the next 3.2 released? -- Added file: http://bugs.python.org/file38609/secure-httponly-3.2-backport.diff ___ Python tracker

[issue23571] Raise SystemError if a function returns a result with an exception set

2015-03-21 Thread Tim Graham
Tim Graham added the comment: Here's an exception in Django after the latest patch. The Django code block in the last exception catches ValueError, but this doesn't seem to work any longer since it's "wrapped" in SystemError. As Berker mentioned, some upgrade tips

[issue23571] Raise SystemError if a function returns a result with an exception set

2015-03-24 Thread Tim Graham
Tim Graham added the comment: That last commit fixed compatibility with Django. -- ___ Python tracker <http://bugs.python.org/issue23571> ___ ___ Python-bug

[issue23765] Remove IsBadStringPtr calls in ctypes

2015-03-24 Thread Tim Golden
Tim Golden added the comment: Unless someone comes back who remembers what the ulterior motive was: I agree; remove the check and just the crash happen. -- ___ Python tracker <http://bugs.python.org/issue23

[issue21319] WindowsRegistryFinder never added to sys.meta_path

2015-03-25 Thread Tim Golden
Tim Golden added the comment: I think they stopped using them a while back in favour of a pywin32.pth file. I don't think I even knew you could use the registry for sys.path. If no-one's shouted since the changes to importlib (which was 3.3?) I think we can quietly drop this and h

[issue21319] WindowsRegistryFinder never added to sys.meta_path

2015-03-25 Thread Tim Golden
Tim Golden added the comment: Adding Mark Hammond in case I'm wrong about the (lack of) impact on pywin32 -- nosy: +mhammond ___ Python tracker <http://bugs.python.org/is

[issue22931] cookies with square brackets in value

2015-03-25 Thread Tim Graham
Tim Graham added the comment: Will this regression be fixed in Python 2.7, 3.2, and 3.3? If not, Django may need to vendor Python's cookie class to workaround this bug to prevent users from losing sessions and/or being unable to login to Django powered sites as reported in

[issue21319] WindowsRegistryFinder never added to sys.meta_path

2015-04-02 Thread Tim Golden
Tim Golden added the comment: Turns out to be non-issue after all! I was working through the import code for other reasons and noticed that the WindowsRegistryFinder was there. I'll spare you the complications of debugging the _bootstrap part of import, but basically the code in _bootstr

[issue23856] build.bat -e shouldn't also build

2015-04-03 Thread Tim Golden
New submission from Tim Golden: PCBuild\build.bat takes an argument of -e to pull in external libraries. Either by accident or by design the main build will run in addition. However if you'd run pcbuild -e simply to pull in externals, you might not have specified extra build params, su

[issue23856] build.bat -e shouldn't also build

2015-04-03 Thread Tim Golden
Tim Golden added the comment: Fair enough -- resolution: -> not a bug stage: patch review -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue23861] Make stdprinter use DebugOutputString when no stdout/stderr available

2015-04-04 Thread Tim Golden
Tim Golden added the comment: Are we talking about re-implementing StdPrinter in terms of OutputDebugString? (Either always, on Windows, or as a fallback?) -- ___ Python tracker <http://bugs.python.org/issue23

[issue21411] Enable Treat Warning as Error on 32-bit Windows

2015-04-09 Thread Tim Golden
Tim Golden added the comment: Sounds good to me. It's really a question as to the point where practicality beats purity... -- ___ Python tracker <http://bugs.python.org/is

[issue23452] Build errors using VS Express 2013 in win32 mode

2015-04-12 Thread Tim Golden
Tim Golden added the comment: Well, in the interests of due diligence, I checked out & built each of the four flavours (32/64 Release/Debug) independently and without any errors. I then rebuilt each with the "wrong" Platform (ie for Win32 in the x64 directory and vice versa) wi

[issue23970] Update distutils.msvccompiler for VC14

2015-04-15 Thread Tim Golden
Tim Golden added the comment: Adding Paul Moore as he's essentially the intersection between distutils & Windows -- nosy: +paul.moore ___ Python tracker <http://bugs.python.or

[issue24005] Documentation Error: Extra line Break

2015-04-19 Thread Tim Golden
Tim Golden added the comment: One small thing to bear in mind is that the existing code (ie with the extra linefeed) raises an IndentationError if cut-and-pasted into the interactive interpreter; with the OP's change, it succeeds. Might not have been their intention, but certainly is the

[issue24005] Documentation Error: Extra line Break

2015-04-19 Thread Tim Golden
Tim Golden added the comment: (Laughs). I admit, I was so close to the trees, I missed the fact that the doc is, as you say, a What's New, and for Python 2.4. Agree that to change this now would be somewhat ludicrous. If some similar patch were proposed to some more current, rel

[issue12712] weave build_tools library identification

2015-04-20 Thread Tim Golden
Tim Golden added the comment: I can't see anything here which is clearly a Python bug. If the OP or anyone else cares to come back (after more than 4 years!) with a clearly-reproducible problem I'm happy to revisit. I apologise for "waking up" this issue after so long; w

[issue24035] When Caps Locked, + alpha-character still displayed as uppercase

2015-04-23 Thread Tim Golden
Tim Golden added the comment: Perhaps unsurprisingly, I can't reproduce this on Python 2.7.9 32-bit running on Win7 Home Premium. Python doesn't handle CapsLock/Shift interaction directly: it just gets what it gets from the underlying OS or framework. So I'm at a loss to

[issue22931] cookies with square brackets in value

2015-04-24 Thread Tim Pierce
Tim Pierce added the comment: Adding Python 2.7 to the affected versions (from #23341 which was closed as a duplicate of this bug). We are very interested to know whether this will be fixed in a Python 2.7 patch as well. -- nosy: +twpierce versions: +Python 2.7

[issue24059] Minor speed and readability improvement to the random module

2015-04-25 Thread Tim Peters
Tim Peters added the comment: FYI, my results match Serhiy's, on Windows, under Pythons 3.4.2 and 2.7.8. It's not surprising to me. Since IEEE 754 standardized sqrt, most vendors complied, delivering a square root "as if infinitely precise" with one anally correct round

[issue24059] Minor speed and readability improvement to the random module

2015-04-25 Thread Tim Peters
Tim Peters added the comment: I don't care about the ULP. I don't care about exactly reproducing floating-point results across releases either, but I'd bet someone else does ;-) -- ___ Python tracker <http://bugs.pyt

[issue24059] Minor speed and readability improvement to the random module

2015-04-26 Thread Tim Peters
Tim Peters added the comment: Good catch, Mark! -- ___ Python tracker <http://bugs.python.org/issue24059> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24005] Documentation Error: Extra line Break

2015-04-30 Thread Tim Golden
Tim Golden added the comment: Jaivish Kothari, Thanks for making the effort to contribute. Can I suggest you have a look at the Core Mentorship site: http://pythonmentors.com/ and perhaps join the Core Mentorship list: http://mail.python.org/mailman/listinfo/core-mentorship TJG

[issue24127] Fatal error in launcher: Job information querying failed

2015-05-05 Thread Tim Golden
Tim Golden added the comment: To eliminate pip from the equation, can you just try running: "py" on its own command line? Also: what platform are you on? Win7? Win8.1? 32-bit or 64-bit? Are you running in an unusually restrictive user e

[issue24134] assertRaises can behave differently

2015-05-09 Thread Tim Graham
Tim Graham added the comment: I noticed this is backwards incompatible for a small feature in Django. If you want to leave this feature in Python 2.7 and 3.4, it'll break things unless we push out a patch for Django; see https://github.com/django/django/pull/4637. -- nosy: +Tim.G

[issue24134] assertRaises can behave differently

2015-05-12 Thread Tim Graham
Tim Graham added the comment: I didn't find any problems while testing your proposed new patch for cpython and your proposed patch for Django together. -- ___ Python tracker <http://bugs.python.org/is

[issue21916] Create unit tests for turtle textonly

2015-05-21 Thread Tim Golden
Tim Golden added the comment: Tests failed on Windows probably because of NamedTemporaryFile -- nosy: +tim.golden ___ Python tracker <http://bugs.python.org/issue21

[issue21916] Create unit tests for turtle textonly

2015-05-21 Thread Tim Golden
Tim Golden added the comment: @RDM I'm sitting with Greg at a London Python session and we've run through these tests on 3.4/3.5. I know you were reviewing this code at PyCon. Are you happy for me to commit from here? -- ___ Python trac

[issue21916] Create unit tests for turtle textonly

2015-05-21 Thread Tim Golden
Tim Golden added the comment: Serhiy's offered a review and we can take it from here. :) -- ___ Python tracker <http://bugs.python.org/issue21916> ___ ___

[issue22107] tempfile module misinterprets access denied error on Windows

2015-05-21 Thread Tim Golden
Tim Golden added the comment: My reluctance to commit the os.access patch is because it will cause such a behaviour change in a function which has been pretty stable for a long while. It'll certainly be more correct, but at the undoubted expense of breaking someone's long-wo

[issue22107] tempfile module misinterprets access denied error on Windows

2015-05-22 Thread Tim Golden
Tim Golden added the comment: That is a possibility which hadn't occurred to me. @eryksun, would you mind eyeballing the patch over on issue2582? It almost certainly won't apply cleanly as it's been almost two years since I last refreshed it, but you can hopefully g

[issue2528] Change os.access to check ACLs under Windows

2015-05-23 Thread Tim Golden
Tim Golden added the comment: Thanks for the very thorough review. This isn't going to make it into 3.5, but I'll rework it in the light of your comments and see if people are happy with it in the optional argument variation. -- ___ Pyth

[issue27761] Private _nth_root function loses accuracy

2016-09-01 Thread Tim Peters
Tim Peters added the comment: Attched file "roots.py" you can run to get a guess as to how bad pow(x, 1/n) typically is on your box. Note that it's usually "pretty darned good" the larger `n` is. There's a reason for that. For example, when n=1000, all x satis

[issue27761] Private _nth_root function loses accuracy

2016-09-01 Thread Tim Peters
Tim Peters added the comment: BTW, add this other way of writing a native-precision Newton step to see that it's much worse (numerically) than writing it in the "guess + small_correction" form used in roots.py. Mathematically they're identical, but numerically they behav

[issue27947] Trailing backslash in raw string format causes EOL

2016-09-02 Thread Tim Peters
Changes by Tim Peters : -- resolution: -> not a bug stage: -> resolved status: open -> closed versions: +Python 3.2 -Python 3.4 ___ Python tracker <http://bugs.python.or

[issue27964] Add random.shuffled

2016-09-05 Thread Tim Peters
Tim Peters added the comment: I'm at best -0 on the idea: very easy to get the effect without it, and hard to imagine it's needed frequently. `sorted()` is also very easy to mimic, but is used often by all sorts of code. For example, to display output in a `for key in sorted(di

[issue27975] math.isnan(int) and math.isinf(int) should not raise OverflowError

2016-09-06 Thread Tim Peters
Tim Peters added the comment: The only sane way to do things "like this" is to allow types to define their own special methods (like `__isnan__()`), in which case the math module defers to such methods when they exist. For example, this is how `math.ceil(Fraction)` works, by de

[issue28065] Update Windows build to xz-5.2.2

2016-09-11 Thread Tim Golden
Tim Golden added the comment: Applies, builds & tests ok for me for Win32 Release build (ie build.bat -e) on Win 8.1 x64. -- ___ Python tracker <http://bugs.python.org/iss

<    18   19   20   21   22   23   24   >