[issue32819] match_hostname() error reporting bug

2018-02-24 Thread Christian Heimes
Christian Heimes added the comment: Don't worry, it happens automatically when somebody replies to a pending ticket w/o closing it explicitly. I need to backport the patch manually. -- resolution: fixed -> stage: resolved -> needs patch status: pending -> open

[issue32939] IDLE: self.use_context_ps1 defined in editor, but always False

2018-02-24 Thread Cheryl Sabella
New submission from Cheryl Sabella : In the EditorWindow in editor.py, there is an attribute called `self.context_use_ps1` that is only set to False. Changed to an instance variable in: https://github.com/python/cpython/commit/6af44986029c84c4c5df62a64c60a6ed978a3693

[issue32929] Change dataclasses hashing to use unsafe_hash boolean (default to False)

2018-02-24 Thread Guido van Rossum
Guido van Rossum added the comment: It is important to convey the idea that if you are thinking of using this you are probably doing something fishy. An alternative could be `_hash`, which at least indicates it is not for general use, like `sys._getframe()`. --

[issue32819] match_hostname() error reporting bug

2018-02-24 Thread Christian Heimes
Christian Heimes added the comment: master and 3.7 are fixed. Should I backport the issue to 2.7 and 3.6, too? It changes behavior slightly because it drops support for partial wildcards. RFC 6125 consider it an optional feature. AFAIK browsers don't match them either.

[issue32819] match_hostname() error reporting bug

2018-02-24 Thread Alex Gaynor
Alex Gaynor added the comment: (Didn't mean to update status) -- status: open -> pending ___ Python tracker ___

[issue32819] match_hostname() error reporting bug

2018-02-24 Thread Alex Gaynor
Alex Gaynor added the comment: Can confirm, no browsers do partial (or multiple) wildcards and the CABF rules don't allow public CAs to issue them. -- status: pending -> open ___ Python tracker

[issue32819] match_hostname() error reporting bug

2018-02-24 Thread Christian Heimes
Christian Heimes added the comment: I also fixed an issue for Brandon's backport, https://bitbucket.org/brandon/backports.ssl_match_hostname/issues/12/update-to-implementation-from-37 -- ___ Python tracker

[issue32880] IDLE: Fix and update and cleanup pyparse

2018-02-24 Thread Cheryl Sabella
Cheryl Sabella added the comment: New issue: find_good_parse_start() call in editor.py has the wrong signature. There's actually a few things going on here. Here's the section in editor: ``` if not self.context_use_ps1: for context in

[issue32928] _findvs failing on Windows 10 (Release build only)

2018-02-24 Thread William Pickard
William Pickard added the comment: Looks like something wierd about my computer as the powershell module that interacts with the API also has the issue with Windows reporting "File not found" for a 2nd instance (maybe Community edition of VS) -- resolution: ->

[issue32928] _findvs failing on Windows 10 (Release build only)

2018-02-24 Thread Steve Dower
Steve Dower added the comment: If you think it should be working, go ahead and use the Report a Problem tool in VS to let the team know about the PowerShell module. There might be a case that isn't handled properly in their code that they can fix (obviously they don't

[issue31966] [EASY C][Windows] print('hello\n', end='', flush=True) raises OSError when ran with py -u

2018-02-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 42c35d9c0c8175332f50fbe034a001fe52f057b9 by Serhiy Storchaka in branch 'master': bpo-31966: Fixed WindowsConsoleIO.write() for writing empty data. (GH-5754)

[issue31966] [EASY C][Windows] print('hello\n', end='', flush=True) raises OSError when ran with py -u

2018-02-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +5627 ___ Python tracker ___

[issue31966] [EASY C][Windows] print('hello\n', end='', flush=True) raises OSError when ran with py -u

2018-02-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +5628 ___ Python tracker ___

[issue32928] _findvs failing on Windows 10 (Release build only)

2018-02-24 Thread William Pickard
William Pickard added the comment: The powershell module that interacts with the API works if I don't supply "-All", supplying said option produces the same issue that is plagues me when _findvs.findall() is used. -- ___

[issue32880] IDLE: Fix and update and cleanup pyparse

2018-02-24 Thread Cheryl Sabella
Cheryl Sabella added the comment: For msg312444 on StringTranslatePseudoMapping: I ran a comparison of the current class vs defaultdict. This was my test: ``` with open('/home/cheryl/cpython/Lib/idlelib/pyparse.py') as fd: code = fd.read() copies = 2 code *= copies

[issue32940] IDLE: pyparse - replace StringTranslatePseudoMappingTest with defaultdict

2018-02-24 Thread Cheryl Sabella
New submission from Cheryl Sabella : Based on timing test on msg312733, StringTranslatePseudoMappingTest and a defaultdict have about the same performance, so this replaces the custom class with the stdlib functionality. -- assignee: terry.reedy components: IDLE

[issue31966] [EASY C][Windows] print('hello\n', end='', flush=True) raises OSError when ran with py -u

2018-02-24 Thread miss-islington
miss-islington added the comment: New changeset e49bf0f353a968cddc4d8e6ea668b9d2d116e2ac by Miss Islington (bot) in branch '3.7': bpo-31966: Fixed WindowsConsoleIO.write() for writing empty data. (GH-5754)

[issue32880] IDLE: Fix and update and cleanup pyparse

2018-02-24 Thread Cheryl Sabella
Cheryl Sabella added the comment: For msg312444 on StringTranslatePseudoMapping: I ran a comparison of the current class vs defaultdict. This was my test: ``` with open('/home/cheryl/cpython/Lib/idlelib/pyparse.py') as fd: code = fd.read() copies = 2 code *= copies

[issue31966] [EASY C][Windows] print('hello\n', end='', flush=True) raises OSError when ran with py -u

2018-02-24 Thread miss-islington
miss-islington added the comment: New changeset 980790eee0c804061a49b8ad7373e4669b48f2ec by Miss Islington (bot) in branch '3.6': bpo-31966: Fixed WindowsConsoleIO.write() for writing empty data. (GH-5754)

[issue32940] IDLE: pyparse - replace StringTranslatePseudoMappingTest with defaultdict

2018-02-24 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +patch pull_requests: +5629 stage: -> patch review ___ Python tracker ___

[issue32929] Change dataclasses hashing to use unsafe_hash boolean (default to False)

2018-02-24 Thread Eric V. Smith
Eric V. Smith added the comment: Note that this class (from the test suite) will now raise an exception: @dataclass(unsafe_hash=True) class C: i: int def __eq__(self, other): return self.i == other.i That's because it

[issue32880] IDLE: Fix and update and cleanup pyparse

2018-02-24 Thread Cheryl Sabella
Cheryl Sabella added the comment: I also timed this for a `_tran` optimization (instead of looping and doing the `ord`), but it didn't really make a difference. ``` _tran = defaultdict(lambda: 'x') _tran.update({40: 40,# ord('(') 91: 40,# ord('[')

[issue32930] [help][webbrowser always opens new tab. I want to open in the same tab]

2018-02-24 Thread Cheryl Sabella
Cheryl Sabella added the comment: I'm going to close this as third party since it's browser and not Python related. -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker

[issue32940] IDLE: pyparse - replace StringTranslatePseudoMapping with defaultdict

2018-02-24 Thread Cheryl Sabella
Change by Cheryl Sabella : -- title: IDLE: pyparse - replace StringTranslatePseudoMappingTest with defaultdict -> IDLE: pyparse - replace StringTranslatePseudoMapping with defaultdict ___ Python tracker

[issue32880] IDLE: Fix and update and cleanup pyparse

2018-02-24 Thread Cheryl Sabella
Cheryl Sabella added the comment: I wish I could delete my last message (and duplicate posting of the one before. On the last one, I didn't move my timings. I feel like an idiot. Anyway, there is a difference. ``` start = time.time() for i in range(100): _tran =

[issue32924] Python 3.7 docs in docs.p.o points to GitHub's master branch

2018-02-24 Thread Ned Deily
Ned Deily added the comment: It would be great if the URL in the template were constructed from the value of SOURCE_URI in Doc/tools/extensions/pyspecific.py. I was unaware that there was this additional URL reference in the template. -- nosy: +ned.deily resolution:

[issue32937] Multiprocessing worker functions not terminating with a large number of processes and a manager

2018-02-24 Thread Ned Deily
Change by Ned Deily : -- nosy: +davin, pitrou -ned.deily, ronaldoussoren ___ Python tracker ___

[issue32880] IDLE: Fix and update and cleanup pyparse

2018-02-24 Thread Cheryl Sabella
Cheryl Sabella added the comment: For msg312474 regarding replace vs re. Running the 20,000 copy version of the translated text (only translating once gives the following timings: copies: 2 translate time: 5.591020822525024 copies: 2 translate time:

[issue32932] better error message when __all__ contains non-str objects

2018-02-24 Thread Brett Cannon
Brett Cannon added the comment: Fixing the message makes sense. I assume this is happening in ceval.c or import.c since https://github.com/python/cpython/blob/42c35d9c0c8175332f50fbe034a001fe52f057b9/Lib/importlib/_bootstrap.py#L1021 has the appropriate message? --

[issue32884] Adding the ability for getpass to print asterisks when passowrd is typed

2018-02-24 Thread R. David Murray
R. David Murray added the comment: getpass is emulating the unix password prompt behavior. I'm not sure if the complication is worth it, especially since not echoing asterisks is, as you observe, fractionally more secure. So I guess I'm about -.5 on this feature.

[issue32886] new Boolean ABC in numbers module

2018-02-24 Thread R. David Murray
Change by R. David Murray : -- nosy: +r.david.murray ___ Python tracker ___ ___

[issue32931] Python 3.70b1 specifies non-existent compiler gcc++

2018-02-24 Thread Ned Deily
Change by Ned Deily : -- keywords: +patch pull_requests: +5630 stage: -> patch review ___ Python tracker ___

[issue32925] AST optimizer: Change a list into tuple in iterations and containment tests

2018-02-24 Thread Stefan Behnel
Stefan Behnel added the comment: An obvious optimisation, if you ask me. PR looks good to me superficially, but I don't know the AST code well. -- nosy: +scoder ___ Python tracker

[issue32932] better error message when __all__ contains non-str objects

2018-02-24 Thread Xiang Zhang
New submission from Xiang Zhang : I see people wrongly write non-str objects in __all__ and the error message for this case is simply a AttributeError which doesn't reveal the cause directly. >>> from test import * Traceback (most recent call last): File "", line 1, in

[issue32934] logging.handlers.BufferingHandler capacity is unclearly specified

2018-02-24 Thread Enrico Zini
New submission from Enrico Zini : BufferingHandler's documentatio says "Initializes the handler with a buffer of the specified capacity." but it does not specify what capacity means. One would assume the intention is to give a bound to memory usage, and that capacity is

[issue32935] Documentation falsely leads to believe that MemoryHandler can be used to wrap SMTPHandler to send multiple messages per email

2018-02-24 Thread Enrico Zini
New submission from Enrico Zini : In the handlers documentation, MemoryHandler directly follows SMTPHandler. SMTPHandler does not document that it is sending an email per every logging invocation, but one can sort of guess it. Right afterwards, there is the

[issue12345] Add math.tau

2018-02-24 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: -5622 ___ Python tracker ___

[issue32932] better error message when __all__ contains non-str objects

2018-02-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Agreed. Seems this was an oversight. Do you want to write a patch yourself or left it on to me? -- nosy: +serhiy.storchaka stage: -> needs patch ___ Python tracker

[issue32932] better error message when __all__ contains non-str objects

2018-02-24 Thread Xiang Zhang
Xiang Zhang added the comment: s/AttributeError/TypeError -- ___ Python tracker ___ ___

[issue32933] mock_open does not support iteration around text files.

2018-02-24 Thread Anthony Flury
New submission from Anthony Flury : Using the unittest.mock helper mock_open with multi-line read data, although readlines method will work on the mocked open data, the commonly used iterator idiom on an open file returns the equivalent of an empty file. from

[issue28134] socket.socket(fileno=fd) does not work as documented

2018-02-24 Thread Christian Heimes
Christian Heimes added the comment: File descriptors are a advanced features and expose low level operating system resources. You really have to understand how the OS works. They cannot be reference counted. In fact they *are* the reference to entries in the Kernel's global

[issue32936] RobotFileParser.parse() should raise an exception when the robots.txt file is invalid

2018-02-24 Thread Oudin
New submission from Oudin : When processing an ill-formed robots.txt file (like https://tiny.tobast.fr/robots-file ), the RobotFileParser.parse method does not instantiate the entries or the default_entry attributes. In my opinion, the method should raise an exception when no

[issue32819] match_hostname() error reporting bug

2018-02-24 Thread Christian Heimes
Christian Heimes added the comment: New changeset 46632f4d3c1f3aef875d2ada750a298ab0510992 by Christian Heimes (Miss Islington (bot)) in branch '3.7': [3.7] bpo-32819: Simplify and improve ssl.match_hostname (GH-5620) (#5847)

[issue32930] [help][webbrowser always opens new tab. I want to open in the same tab]

2018-02-24 Thread TitanSnow
TitanSnow added the comment: Hi Cheryl, I think you may misunderstand. What it means is to open URL in the *same tab*, not *same window*, which is not described in documentation. Hi Tommy, It’s hard to say what is “the same tab”. Is it the current tab or the tab opened

[issue32938] webbrowser: Add options for private mode

2018-02-24 Thread Cheryl Sabella
New submission from Cheryl Sabella : When looking at the command line option page for Mozilla (https://developer.mozilla.org/en-US/docs/Mozilla/Command_Line_Options), I noticed options for opening a private mode window (-private-window or -private-window URL). Chrome

[issue32146] multiprocessing freeze_support needed outside win32

2018-02-24 Thread bbayles
Change by bbayles : -- pull_requests: +5626 ___ Python tracker ___ ___ Python-bugs-list

[issue28124] Rework SSL module documentation

2018-02-24 Thread Christian Heimes
Change by Christian Heimes : -- versions: +Python 3.8 ___ Python tracker ___ ___

[issue32819] match_hostname() error reporting bug

2018-02-24 Thread Christian Heimes
Christian Heimes added the comment: New changeset aef1283ba428e33397d87cee3c54a5110861552d by Christian Heimes in branch 'master': bpo-32819: Simplify and improve ssl.match_hostname (#5620) https://github.com/python/cpython/commit/aef1283ba428e33397d87cee3c54a5110861552d

[issue32819] match_hostname() error reporting bug

2018-02-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +5623 ___ Python tracker ___

[issue32930] [help][webbrowser always opens new tab. I want to open in the same tab]

2018-02-24 Thread Cheryl Sabella
Cheryl Sabella added the comment: Hi Tommy, The documentation states "If new is 0, the url is opened in the same browser window if possible." It seems to be browser dependent, hence the 'if possible' caveat. What operating system and browser are you using? --

[issue32932] better error message when __all__ contains non-str objects

2018-02-24 Thread Xiang Zhang
Change by Xiang Zhang : -- keywords: +patch pull_requests: +5624 stage: needs patch -> patch review ___ Python tracker ___

[issue32888] Improve exception message in ast.literal_eval

2018-02-24 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: - ___ Python tracker ___

[issue32930] [help][webbrowser always opens new tab. I want to open in the same tab]

2018-02-24 Thread Cheryl Sabella
Cheryl Sabella added the comment: TitanSnow, You're right, sorry about the confusion. But, nevertheless, this does seem to be something that the browsers don't have available as an option. Here's the Mozilla command line option page:

[issue32930] [help][webbrowser always opens new tab. I want to open in the same tab]

2018-02-24 Thread TitanSnow
TitanSnow added the comment: Yes, I think so. Maybe, in a web application, to achieve this, the way is to use a GUI library then use its web view widget. -- ___ Python tracker

[issue32912] Raise non-silent warning for invalid escape sequences

2018-02-24 Thread Emanuel Barry
Change by Emanuel Barry : -- keywords: +patch pull_requests: +5625 stage: needs patch -> patch review ___ Python tracker ___

[issue32932] better error message when __all__ contains non-str objects

2018-02-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Added import experts since this issue can be not so trivial as looked at first glance. -- nosy: +brett.cannon, eric.snow, ncoghlan ___ Python tracker

[issue32937] Multiprocessing worker functions not terminating with a large number of processes and a manager

2018-02-24 Thread Eric Gorr
New submission from Eric Gorr : I have the following code: import multiprocessing from multiprocessing import Pool, Manager import time import random def worker_function( index, messages ): print( "%d: Entered" % index ) time.sleep(

[issue32937] Multiprocessing worker functions not terminating with a large number of processes and a manager

2018-02-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: What happens if you add another process that calls get() on the queue? You should not try to put data on a queue if you don't ever plan to consume it, as the queue's background thread will eventually block until something gets consumed. For

[issue32937] Multiprocessing worker functions not terminating with a large number of processes and a manager

2018-02-24 Thread EricG
EricG added the comment: I do plan to consume the messages on the queue, but only after all worker functions are complete...after pool.join() returns. Is this not ok? I can certainly spawn a thread on the main process which will consume the queue entries and insert them

[issue32931] Python 3.70b1 specifies non-existent compiler gcc++

2018-02-24 Thread Ned Deily
Ned Deily added the comment: New changeset d24c5a068c1831a8579a5915f44ae3b4344aba43 by Ned Deily (Miss Islington (bot)) in branch '3.7': [3.7] bpo-32931: fix macOS 10.9+ installer c++ compiler name (GH-5856)

[issue32931] Python 3.70b1 specifies non-existent compiler gcc++

2018-02-24 Thread Ned Deily
Ned Deily added the comment: Thanks for noticing! Fixed for 3.7.0b2. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8 ___ Python tracker

[issue32940] IDLE: pyparse - replace StringTranslatePseudoMapping with defaultdict

2018-02-24 Thread Cheryl Sabella
Cheryl Sabella added the comment: Tal had written this on the original issue21765: Finally, since the defaultdict is kept around as long as IDLE is running, I decided to avoid having it grow continually and consume memory unnecessarily. So I wrote a simple Mapping

[issue24334] SSLSocket extra level of indirection

2018-02-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +5632 ___ Python tracker ___

[issue24334] SSLSocket extra level of indirection

2018-02-24 Thread Christian Heimes
Christian Heimes added the comment: New changeset 141c5e8c2437a9fed95a04c81e400ef725592a17 by Christian Heimes in branch 'master': bpo-24334: Cleanup SSLSocket (#5252) https://github.com/python/cpython/commit/141c5e8c2437a9fed95a04c81e400ef725592a17 --

[issue24334] SSLSocket extra level of indirection

2018-02-24 Thread Christian Heimes
Christian Heimes added the comment: New changeset 8fa8478ddeba0870da1152f0a2985c8a7eeb9fd1 by Christian Heimes (Miss Islington (bot)) in branch '3.7': [3.7] bpo-24334: Cleanup SSLSocket (GH-5252) (#5857)

[issue32941] mmap should expose madvise()

2018-02-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: For information: - macOS manpage for madvise(): http://www.manpages.info/macosx/madvise.2.html - FreeBSD manpage for madvise(): https://www.freebsd.org/cgi/man.cgi?query=madvise=2 -- ___ Python

[issue32941] mmap should expose madvise()

2018-02-24 Thread Antoine Pitrou
New submission from Antoine Pitrou : On POSIX, mmap objects could expose a method wrapping the madvise() library call. I suggest the following API mmap_object.madvise(option[, start[, length]]) If omitted, *start* and *length* would span the whole memory area described by

[issue32880] IDLE: Fix and update and cleanup pyparse

2018-02-24 Thread Terry J. Reedy
Change by Terry J. Reedy : -- Removed message: https://bugs.python.org/msg312739 ___ Python tracker ___

[issue32880] IDLE: Fix and update and cleanup pyparse

2018-02-24 Thread Terry J. Reedy
Change by Terry J. Reedy : -- Removed message: https://bugs.python.org/msg312733 ___ Python tracker ___

[issue30622] Fix NPN guard for OpenSSL 1.1

2018-02-24 Thread Christian Heimes
Christian Heimes added the comment: New changeset 01d9c23e470d708b922a1085347404000e985c0f by Christian Heimes (Miss Islington (bot)) in branch '3.7': [3.7] bpo-30622: Improve NPN support detection (GH-5859) (#5860)

[issue32931] Python 3.70b1 specifies non-existent compiler gcc++

2018-02-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +5631 ___ Python tracker ___

[issue32931] Python 3.70b1 specifies non-existent compiler gcc++

2018-02-24 Thread Ned Deily
Ned Deily added the comment: New changeset acd7163c0a0674b2fb6cc0178d52cf90c953fbae by Ned Deily in branch 'master': bpo-32931: fix macOS 10.9+ installer c++ compiler name (#5855) https://github.com/python/cpython/commit/acd7163c0a0674b2fb6cc0178d52cf90c953fbae --

[issue32937] Multiprocessing worker functions not terminating with a large number of processes and a manager

2018-02-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm not sure... I cannot reproduce your problem on Linux, even with 50 processes and 1 iterations, on Python 3.6.4. Which exact version are you using? What happens if you replace the manager Queue with a non-manager Queue? --

[issue31355] Remove Travis CI macOS job: rely on buildbots

2018-02-24 Thread Antoine Pitrou
Change by Antoine Pitrou : -- keywords: +patch pull_requests: +5633 stage: resolved -> patch review ___ Python tracker ___

[issue30622] Fix NPN guard for OpenSSL 1.1

2018-02-24 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +5634 ___ Python tracker ___ ___

[issue24334] SSLSocket extra level of indirection

2018-02-24 Thread Christian Heimes
Christian Heimes added the comment: Thanks for your review, Antoine! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8 -Python 3.6 ___ Python tracker

[issue32932] better error message when __all__ contains non-str objects

2018-02-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I was wondering why the error is not raised by the IMPORT_NAME opcode which predates IMPORT_FROM. It calls _handle_fromlist() from _bootstrap. But in this case the module doesn't have the __path__ attribute and the sanity check

[issue30622] Fix NPN guard for OpenSSL 1.1

2018-02-24 Thread Christian Heimes
Christian Heimes added the comment: New changeset 6cdb7954b0a578d899e4b78b868ea59eef08480a by Christian Heimes in branch 'master': bpo-30622: Improve NPN support detection (#5859) https://github.com/python/cpython/commit/6cdb7954b0a578d899e4b78b868ea59eef08480a --

[issue30622] Fix NPN guard for OpenSSL 1.1

2018-02-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +5635 ___ Python tracker ___

[issue32912] Raise non-silent warning for invalid escape sequences

2018-02-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 5849 changes not only the Python parser, but codecs. It shouldn't. The Python parser and codecs will go different ways. The warning in the Python parser will finally be upgraded to SyntaxError (it is already replaced with

[issue31355] Remove Travis CI macOS job: rely on buildbots

2018-02-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: Last macOS job took 13 minutes and there was almost no wait. That looks ok. I'm not sure it's required to backport to 3.6 and 2.7 since those branches typically have less churn. -- ___ Python

[issue32929] Change dataclasses hashing to use unsafe_hash boolean (default to False)

2018-02-24 Thread Guido van Rossum
Guido van Rossum added the comment: Sorry, I used imprecise language. What you propose is fine. On Feb 24, 2018 09:54, "Eric V. Smith" wrote: > > Eric V. Smith added the comment: > > Note that this class (from the test suite)

[issue32940] IDLE: pyparse - simplify StringTranslatePseudoMapping

2018-02-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: I forget about this defaultdict behavior: "this value is inserted in the dictionary for the key, and returned." Reason: when default_factory returns a mutable, d[key] must return the same possibly mutated object with each call. I agree

[issue32942] Regression: test_script_helper fails

2018-02-24 Thread Andrew Brezovsky
New submission from Andrew Brezovsky : Test test_script_helper fails, details: Running Debug|Win32 interpreter... == CPython 3.8.0a0 (heads/master:6cdb7954b0, Feb 24 2018, 17:25:46) [MSC v.1912 32 bit (Intel)] == Windows-10-10.0.16299-SP0 little-endian == cwd:

[issue30622] Fix NPN guard for OpenSSL 1.1

2018-02-24 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +5636 ___ Python tracker ___ ___

[issue32940] IDLE: pyparse - simplify StringTranslatePseudoMapping

2018-02-24 Thread Cheryl Sabella
Change by Cheryl Sabella : -- pull_requests: +5637 stage: needs patch -> patch review ___ Python tracker ___

[issue30622] Fix NPN guard for OpenSSL 1.1

2018-02-24 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +5638 ___ Python tracker ___ ___

[issue31518] ftplib, urllib2, poplib, httplib, urllib2_localnet use ssl.PROTOCOL_TLSv1 unconditionally

2018-02-24 Thread Christian Heimes
Christian Heimes added the comment: New changeset 8d4d17399fb82801eaaca5beeb97a19908b40222 by Christian Heimes in branch '2.7': bpo-31518: Change TLS protocol for Debian (#3661) https://github.com/python/cpython/commit/8d4d17399fb82801eaaca5beeb97a19908b40222 --

[issue31518] ftplib, urllib2, poplib, httplib, urllib2_localnet use ssl.PROTOCOL_TLSv1 unconditionally

2018-02-24 Thread Christian Heimes
Christian Heimes added the comment: New changeset aab225840360719516eca55a7a69cfee45aee2af by Christian Heimes in branch '3.6': bpo-31518: Change TLS protocol for Debian (#3660) https://github.com/python/cpython/commit/aab225840360719516eca55a7a69cfee45aee2af --

[issue31518] ftplib, urllib2, poplib, httplib, urllib2_localnet use ssl.PROTOCOL_TLSv1 unconditionally

2018-02-24 Thread Christian Heimes
Change by Christian Heimes : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> behavior ___ Python tracker

[issue32185] SSLContext.wrap_socket sends SNI Extension when server_hostname is IP

2018-02-24 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +5639 ___ Python tracker ___ ___

[issue4260] Document that ctypes.xFUNCTYPE are decorators.

2018-02-24 Thread Cheryl Sabella
Change by Cheryl Sabella : -- versions: +Python 3.7, Python 3.8 -Python 3.5, Python 3.6 ___ Python tracker ___

[issue32940] IDLE: pyparse - simplify StringTranslatePseudoMapping

2018-02-24 Thread Cheryl Sabella
Cheryl Sabella added the comment: New PR submitted. Really glad I worked on this today. I learned a lot of things that were new to me. :-) -- ___ Python tracker

[issue12345] Add math.tau

2018-02-24 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +5640 ___ Python tracker ___

[issue32940] IDLE: pyparse - simplify StringTranslatePseudoMapping

2018-02-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: I simplified ParseMap to a dict subclass with one override -- __getitem__ and then the tests. They run faster. I suspect translate is faster. -- stage: patch review -> needs patch ___ Python

[issue17232] Improve -O docs

2018-02-24 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue32943] confusing error message for rot13 codec

2018-02-24 Thread Xiang Zhang
New submission from Xiang Zhang : rot13 codec does a str translate operation. But it doesn't check the input type and then the error message would be quite confusing, especially for bytes: >>> codecs.encode(b'abc', 'rot13') Traceback (most recent call last): File

[issue17232] Improve -O docs

2018-02-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 186b606d8a2ea4fd51b7286813302c8e8c7006cc by Terry Jan Reedy (Cheryl Sabella) in branch 'master': bpo-17232: Clarify docs for -O and -OO command line options (#5839)

[issue17232] Improve -O docs

2018-02-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +5641 ___ Python tracker ___

[issue17232] Improve -O docs

2018-02-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +5642 ___ Python tracker ___

  1   2   >