[issue35099] Improve the IDLE - console differences doc

2018-10-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35099] Improve the IDLE - console differences doc

2018-10-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: I thought of 'IDLE versus standard Python', or 'default Python', but the contrast is not correct, as IDLE uses the same Python. The intended contrast is between the result of different methods of running Python code with a particular Python binary. 'How

[issue35099] Improve the IDLE - console differences doc

2018-10-28 Thread Ned Deily
Ned Deily added the comment: Thanks for the explanation. That's what I thought you meant but it's good to make sure. I'm not sure what the best solution is and others might have a different opinion. It might be good to solicit some feedback from a wider audience of users who do not have

[issue35099] Improve the IDLE - console differences doc

2018-10-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: By 'console' I mean the text-interface window that Python normally runs in, whether in batch or interactive mode, whether started directly from an icon or menu or file listing or indirectly by entering 'python' in a shell program running in the console.

[issue35101] inspect.findsource breaks on class frame objects

2018-10-28 Thread orlnub123
Change by orlnub123 : -- keywords: +patch pull_requests: +9527 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue35101] inspect.findsource breaks on class frame objects

2018-10-28 Thread orlnub123
New submission from orlnub123 : If you pass a frame object belonging to a class into findsource, it'll incorrectly give you the starting line number of the first function above it or 0 if no functions are defined. Here's some code to reproduce the issue: import inspect def test_func():

[issue35099] IDLE: say more about IDLE - console differences

2018-10-28 Thread Ned Deily
Ned Deily added the comment: Just a comment on usage, for what it's worth: I don't know how common the term "console" is on modern Windows systems, but I think the term has a very different meaning on Unix and macOS. In those environments, if used at all, a "console" *might* refer to a

[issue35100] urllib.parse.unquote_to_bytes: needs "escape plus" option

2018-10-28 Thread Henry Zhu
New submission from Henry Zhu : `urllib.parse.unquote_to_bytes` should have an "escape plus" option, just like `urllib.parse.unquote_plus` does. It's very necessary in some cases: ``` # Say I have a url string: 'a+%2b%c0'. # In Python2, I can parse it into b'a +\xc0' with

[issue35099] IDLE: say more about IDLE - console differences

2018-10-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: IDLE: say more about Shell - console differences -> IDLE: say more about IDLE - console differences ___ Python tracker ___

[issue35099] IDLE: say more about Shell - console differences

2018-10-28 Thread Terry J. Reedy
New submission from Terry J. Reedy : Differences added in initial PR: * threading.activeCount()`` returns 2 instead of 1; * run user code in separate process; * user-created subprocesses do not inherit sys.stdxxx objects; must run IDLE from console for such to have i/o connection; * Shell

Re: zenity substitution

2018-10-28 Thread Bob Gailer
On Oct 28, 2018 10:17 PM, "listo factor via Python-list" < python-list@python.org> wrote: > > Hi all, > I'm new to Python, but not to programming. > > As a teaching exercise, I am converting a bunch of bash shell > scripts to Python, so that they can be run on all three OS-es > (Linux, Windows,

Re: Accessing clipboard through software built on Python

2018-10-28 Thread Thomas Jollans
On 27/10/2018 20:50, Musatov wrote: > On Saturday, October 27, 2018 at 11:12:35 AM UTC-5, Marko Rauhamaa wrote: >> Michael Torrie : >>> As far as I know it's not possible for an application to directly yank >>> highlighted text from another application. >> >> That's an age-old pattern in X11. I

zenity substitution

2018-10-28 Thread listo factor via Python-list
Hi all, I'm new to Python, but not to programming. As a teaching exercise, I am converting a bunch of bash shell scripts to Python, so that they can be run on all three OS-es (Linux, Windows, MacOS). The scripts in questions make extensive use of Linux "zenity" dialogs. Is there an equivalent

[issue34198] Additional encoding options to tkinter.filedialog

2018-10-28 Thread Narito Takizawa
Change by Narito Takizawa : -- pull_requests: -7955 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34198] Additional encoding options to tkinter.filedialog

2018-10-28 Thread Narito Takizawa
Change by Narito Takizawa : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue35097] IDLE add doc subsection for editor windows

2018-10-28 Thread miss-islington
miss-islington added the comment: New changeset 9bdadc163f306ddb4659c6732ea24401957488db by Miss Islington (bot) in branch '3.6': bpo-35097: Add IDLE doc subsection explaining editor windows. (GH-10206) https://github.com/python/cpython/commit/9bdadc163f306ddb4659c6732ea24401957488db

[issue35097] IDLE add doc subsection for editor windows

2018-10-28 Thread miss-islington
miss-islington added the comment: New changeset 1a3f18e2c58367157d904f5c077ccf5a3e076f7d by Miss Islington (bot) in branch '3.7': bpo-35097: Add IDLE doc subsection explaining editor windows. (GH-10206) https://github.com/python/cpython/commit/1a3f18e2c58367157d904f5c077ccf5a3e076f7d

[issue35098] Deleting __new__ does not restore previous behavior

2018-10-28 Thread Joy Diamond
Joy Diamond added the comment: Its quite valid to assign to __new__ to replace the behavior of how an instance is created. (Obviously you would not really assign `0` to it; my example was just to show the `del Color.__new__` fails - so what was assigned was not relevant). Here is a more

[issue35098] Deleting __new__ does not restore previous behavior

2018-10-28 Thread Steven D'Aprano
Steven D'Aprano added the comment: I think the real WTF here is that you can write to arbitrary dunder attributes even if they aren't listed in __slots__. py> Color.__NOBODY_expects_the_Spanish_Inquisition__ = "What?" py> Color.__NOBODY_expects_the_Spanish_Inquisition__ 'What?' I think that

[issue19376] document that strptime() does not support the Feb 29 if the format does not contain the year

2018-10-28 Thread Braden Groom
Braden Groom added the comment: > In other words, the documentation looks sufficient to me as-is, and adding > special wording for this would only make it longer than it should be. I agree with Victor here. It seems like this can be closed. There haven't been any comments from other people

[issue24916] In sysconfig, don't rely on sys.version format

2018-10-28 Thread Ned Deily
Ned Deily added the comment: Noted in passing: while Lib/distutils/sysconfig.py has not implemented "py_version", I see now that Lib/distutils/command/install.py does have something very similar to Lib/sysconfig.py so whatever (if anything) is changed in one should also be changed in the

[issue35084] binascii.Error: Incorrect padding

2018-10-28 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Can you please add your definition of a crash? Crash in bug report context is used in C language context like causing a segfault, buffer overflow etc. Proper Exceptions are not considered as a crash and this is an exception raised since the

[issue35096] Change _PY_VERSION to derive from sys.version_info in sysconfig

2018-10-28 Thread Ned Deily
Ned Deily added the comment: This has come up before, see Issue25985 and Issue24916 (still open). Let's call this a duplicate of the latter and continue any discussion there. -- nosy: +ned.deily resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> In

[issue35097] IDLE add doc subsection for editor windows

2018-10-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +9526 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35097] IDLE add doc subsection for editor windows

2018-10-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset ea9c8bd44365ae8b0accc5286c7b52862528c0ec by Terry Jan Reedy in branch 'master': bpo-35097: Add IDLE doc subsection explaining editor windows. (#10206) https://github.com/python/cpython/commit/ea9c8bd44365ae8b0accc5286c7b52862528c0ec

[issue35097] IDLE add doc subsection for editor windows

2018-10-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +9525 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1154351] add get_current_dir_name() to os module

2018-10-28 Thread Michael Hoffman
Michael Hoffman added the comment: glibc `getcwd()` and `get_current_dir_name()` are not the same. glibc `get_current_dir_name()` does, in fact, check the `PWD` environment variable. https://www.gnu.org/software/libc/manual/html_node/Working-Directory.html The get_current_dir_name function

[issue35097] IDLE add doc subsection for editor windows

2018-10-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +9524 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue17514] Add the license to argparse.py

2018-10-28 Thread Braden Groom
Braden Groom added the comment: It seems like this can be closed unless we want to remove the current header in argparse.py. -- nosy: +bradengroom ___ Python tracker ___

[issue35098] Deleting __new__ does not restore previous behavior

2018-10-28 Thread Joy Diamond
New submission from Joy Diamond : Related: https://bugs.python.org/issue5322 Consider the following program: class Color(object): __slots__ = (('name',)) def __init__(self, name): self.name = name green = Color('green') # Works assert green.name == 'green' Color.__new__

[issue35091] Objects/listobject.c: gallop functions rely on signed integer overflow

2018-10-28 Thread Tim Peters
Tim Peters added the comment: I left the code in because it was harmless (a 100%-predictable branch), and it was easier to show that overflow was _considered_ than to explain in full why it was impossible. In the context of CPython. For example, the Java port of this code couldn't rely on

[issue35097] IDLE add doc subsection for editor windows

2018-10-28 Thread Terry J. Reedy
New submission from Terry J. Reedy : Briefly explain opening a file, running code, and the title and status bars. -- assignee: terry.reedy components: IDLE messages: 328771 nosy: terry.reedy priority: normal severity: normal stage: needs patch status: open title: IDLE add doc

[issue35096] Change _PY_VERSION to derive from sys.version_info in sysconfig

2018-10-28 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +tarek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13501] Make libedit support more generic; port readline / libedit to FreeBSD

2018-10-28 Thread Mark Harfouche
Mark Harfouche added the comment: Right, but when do you actually use the bare python interpreter? I'm always on ipython or something that uses that as the backend. On Sun, Oct 28, 2018 at 4:12 PM Romain Geissler wrote: > > Romain Geissler added the comment: > > Yes in my case the build

[issue35096] Change _PY_VERSION to derive from sys.version_info in sysconfig

2018-10-28 Thread Lysandros Nikolaou
New submission from Lysandros Nikolaou : In sysconfig.py there is a comment starting with FIXME that states that _PY_VERSION should get its value from sys.version_info instead of sys.version, because it is an implementation detail. Should this be changed? If so, I would like to create a PR.

Re: regular expression problem

2018-10-28 Thread Thomas Jollans
On 28/10/2018 22:04, Karsten Hilbert wrote: > - options needs to be able to contain nearly anything, except '::' Including > and $ ? -- https://mail.python.org/mailman/listinfo/python-list

Re: regular expression problem

2018-10-28 Thread Thomas Jollans
On 28/10/2018 22:04, Karsten Hilbert wrote: > - options needs to be able to contain nearly anything, except '::' > > Is that sufficiently defined and helpful to design the regular expression ? so options isn't '.*', but more like '(:?[^:]+)*' (Figuring out what additional restriction this

[issue16516] argparse types (and actions) must be hashable

2018-10-28 Thread Braden Groom
Change by Braden Groom : -- pull_requests: +9523 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list

Re: regular expression problem

2018-10-28 Thread MRAB
On 2018-10-28 21:04, Karsten Hilbert wrote: On Sun, Oct 28, 2018 at 09:43:27PM +0100, Karsten Hilbert wrote: Let my try to explain the expression I am actually after (assuming .compile with re.VERBOSE): rx_works = ' \$< # start of match is literal '$<'

[issue25219] Update doc for Idle command line options.

2018-10-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: I should have said what mismatch there might be. It appears that further editing of idle.rst depends on checking whether there are errors in pyshell.usage_msg, which should be fixed first. -- versions: +Python 3.7, Python 3.8 -Python 2.7, Python

[issue21263] test_gdb failures on os x 10.9.2

2018-10-28 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: I am trying to create a PR for this and was thinking of somehow updating test.support, in order for someone to be able to find out what compiler was used to build python. Would that make sense? Also, in case this is indeed something we'd like in

Re: regular expression problem

2018-10-28 Thread Brian Oney via Python-list
On Sun, 2018-10-28 at 22:04 +0100, Karsten Hilbert wrote: > [^<:] Would a simple regex work? I mean: ~$ python Python 2.7.13 (default, Sep 26 2018, 18:42:22)  [GCC 6.3.0 20170516] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import re >>> t = '$$' >>>

[issue34945] regression with ./python -m test and pdb

2018-10-28 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +9522 stage: -> patch review ___ Python tracker ___ ___

[issue35084] binascii.Error: Incorrect padding

2018-10-28 Thread TestUser
TestUser added the comment: Thanks. The Python Foundation asked for users to report bugs. I've done so. I'm looking at putting this in an article and Tweets on the bug process: generating bugs, reporting, and resolution. If I go forward I would like a thought or two from you on this bug

[issue30410] Documentation for sys.stdout encoding does not reflect the new Windows behavior in Python 3.6+

2018-10-28 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: Shall I create a PR for this? -- nosy: +lys.nikolaou ___ Python tracker ___ ___

[issue35085] FileNotFoundError: [Errno 2] No such file or directory:

2018-10-28 Thread Steven D'Aprano
Change by Steven D'Aprano : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue35094] Improved algorithms for random.sample

2018-10-28 Thread Paul Crowley
Paul Crowley added the comment: Thank you for a very comprehensive and helpful answer! Yep, reservoir sampling makes n calls not k calls, and so should only be used when k is a large fraction of n; in my patch it's k/n >= 1/2. Because modern CPRNGs are so fast, I had been assuming that

[issue32804] urllib.retrieve documentation doesn't mention context parameter

2018-10-28 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- keywords: +patch pull_requests: +9521 stage: -> patch review ___ Python tracker ___ ___

[issue33234] Improve list() pre-sizing for inputs with known lengths

2018-10-28 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset c61e229d2a4c54ffb4153e1f0f48126ba33c9cbf by Pablo Galindo in branch 'master': bpo-33234: Add exact allocation optimization to lists in What's New (GH-10200)

[issue34160] ElementTree not preserving attribute order

2018-10-28 Thread Diego Rojas
Diego Rojas added the comment: Raymond, sure. I could do the rest, I'll start tomorrow Monday. -- ___ Python tracker ___ ___

[issue35091] Objects/listobject.c: gallop functions rely on signed integer overflow

2018-10-28 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: > This doesn't actually matter - the code can never trigger. Yes, I considered this, and wondered why assert wasn't used in the first place, but the explicit check with a comment suggested that possibility of overflow was deemed real. I've submitted a

[issue35091] Objects/listobject.c: gallop functions rely on signed integer overflow

2018-10-28 Thread Alexey Izbyshev
Change by Alexey Izbyshev : -- pull_requests: +9520 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35059] Convert Py_INCREF() and PyObject_INIT() to inlined functions

2018-10-28 Thread STINNER Victor
STINNER Victor added the comment: If my PR 10079 is merged without Py_STATIC_INLINE(), I will remove the macro. I'm not sure if we need an "always inline" macro or not. Note: I'm in favor of moving closer to the C language and not abusing __attribute__(...) :-) --

[issue35059] Convert Py_INCREF() and PyObject_INIT() to inlined functions

2018-10-28 Thread STINNER Victor
STINNER Victor added the comment: >> Py_STATIC_INLINE() is designed to replace a preprocessor macro with a >> function, when you care that the code is "always inlined". (Maybe the >> name is not perfect ;-)) > > "always inline" is different from "static inline". So, it's not appropriate >

[issue35084] binascii.Error: Incorrect padding

2018-10-28 Thread Braden Groom
Braden Groom added the comment: The file contents that you've provided aren't valid base64. I think the traceback that you've received is a reasonable one. -- nosy: +bradengroom ___ Python tracker

Re: Accessing clipboard through software built on Python

2018-10-28 Thread Peter via Python-list
On 28/10/2018 12:17 AM, Musatov wrote: I am wondering if Python could be used to write a program that allows: 1. Highlight some text 2. Ctl+HOTKEY1 stores the string of text somewhere as COPIEDTEXT1 3. Highlight another string of text 4. Ctl+HOTKEY1 stores another string of text somewhere as

[issue35059] Convert Py_INCREF() and PyObject_INIT() to inlined functions

2018-10-28 Thread STINNER Victor
STINNER Victor added the comment: > I would like to see Py_LOCAL_INLINE removed, too, fwiw. Oh. Why? Do you want to directly use "static" and "static inline"? I guess that Py_LOCAL and Py_LOCAL_INLINE have been added to use __fastcall with MSVC. ... __fastcall is mostly interesting in x86

[issue35075] Doc: pprint example uses dead URL

2018-10-28 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: Also this throws a TypeError, because http_info.get_content_charset() returns None with the new link. I think, this should be fixed as well. -- nosy: +lys.nikolaou ___ Python tracker

Re: regular expression problem

2018-10-28 Thread Karsten Hilbert
On Sun, Oct 28, 2018 at 10:04:39PM +0100, Karsten Hilbert wrote: > - options needs to be able to contain nearly anything, except '::' This seems to contradict the "nesting" requirement, but the nesting restriction "earlier parsing passes go inside" makes it possible. Karsten -- GPG 40BE 5B0E

[issue1154351] add get_current_dir_name() to os module

2018-10-28 Thread Braden Groom
Braden Groom added the comment: Victor, FWIW I don't need this functionality and your suggestion on the PR seems reasonable to me. I only picked up this issue as a way to become familiar with contributing to the project. I'm okay with closing both the PR and the ticket. -- nosy:

[issue35075] Doc: pprint example uses dead URL

2018-10-28 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +9519 stage: -> patch review ___ Python tracker ___ ___

[issue35091] Objects/listobject.c: gallop functions rely on signed integer overflow

2018-10-28 Thread Tim Peters
Tim Peters added the comment: This doesn't actually matter - the code can never trigger. It would be fine to replace it with an assert to that effect (see below for a specific suggestion). The reason: The indices in this code are into vectors of PyObject*. These vectors can't contain

[issue35094] Improved algorithms for random.sample

2018-10-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: One other thought. We don't guarantee that sample() will always produce the same sequences, so that does give us some freedom; however, we have a strong aversion to doing so unless there is a compelling advantage. It will almost certainly cause some

Re: regular expression problem

2018-10-28 Thread Karsten Hilbert
On Sun, Oct 28, 2018 at 09:43:27PM +0100, Karsten Hilbert wrote: > Let my try to explain the expression I am actually after > (assuming .compile with re.VERBOSE): > > rx_works = ' > \$< # start of match is literal '$<' > anywhere inside string > [^<:]+?::

[issue35045] test_min_max_version (test.test_ssl.ContextTests) fails on Fedora 29+ and openssl 1.1.1

2018-10-28 Thread Christian Heimes
Christian Heimes added the comment: By the way LibreSSL isn't offically supported by Python, either. It just happens to work most of the time. I regard LibreSSL as not supported, because no core developer or regular contributor has shown any interest to work on LibreSSL support. OpenSSL is

[issue35090] Potential division by zero and integer overflow in allocator wrappers

2018-10-28 Thread STINNER Victor
STINNER Victor added the comment: Ok, now we should be good :-) I close again the issue. Note: Serhiy Stochaka considers that no NEWS entry is needed and I concur with him. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue35090] Potential division by zero and integer overflow in allocator wrappers

2018-10-28 Thread miss-islington
miss-islington added the comment: New changeset fd0a3bce6e917b5853c809a309c1513acc176f56 by Miss Islington (bot) in branch '3.6': bpo-35090: Fix potential division by zero in allocator wrappers (GH-10174) https://github.com/python/cpython/commit/fd0a3bce6e917b5853c809a309c1513acc176f56

[issue35094] Improved algorithms for random.sample

2018-10-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: For the common case, where k is small and n is large, reservoir sampling makes n calls rather the current k plus a few reselections -- the only cost is a temporary k-sized set using superfast int hashing. This technique works even for a very large

[issue33234] Improve list() pre-sizing for inputs with known lengths

2018-10-28 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: >Oh. Can you please document the optimization in the following doc as well? Sure! Opened https://github.com/python/cpython/pull/10200 to address that. :) -- ___ Python tracker

[issue33234] Improve list() pre-sizing for inputs with known lengths

2018-10-28 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +9518 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35093] IDLE: document the help document viewer

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

[issue35090] Potential division by zero and integer overflow in allocator wrappers

2018-10-28 Thread miss-islington
miss-islington added the comment: New changeset 1d7d165e3c3f07518e6b5bfb57f1fd460cd4bbf2 by Miss Islington (bot) in branch '3.7': bpo-35090: Fix potential division by zero in allocator wrappers (GH-10174) https://github.com/python/cpython/commit/1d7d165e3c3f07518e6b5bfb57f1fd460cd4bbf2

[issue35059] Convert Py_INCREF() and PyObject_INIT() to inlined functions

2018-10-28 Thread Benjamin Peterson
Benjamin Peterson added the comment: On Fri, Oct 26, 2018, at 03:18, STINNER Victor wrote: > > STINNER Victor added the comment: > > Benjamin: > > Why do we need this Py_STATIC_INLINE macro? If you want to have one for > > enabling always inline, that's fine with me, since it's

Re: regular expression problem

2018-10-28 Thread Karsten Hilbert
Now that MRAB has shown me the follies of my ways I would like to learn how to properly write the regular expression I need. This part: > rx_works = '\$<[^<:]+?::.*?::\d*?>\$|\$<[^<:]+?::.*?::\d+-\d+>\$' > # it fails if switched around: > rx_fails =

[issue35047] Better error messages in unittest.mock

2018-10-28 Thread STINNER Victor
STINNER Victor added the comment: Thanks Petter Strandmark! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35045] test_min_max_version (test.test_ssl.ContextTests) fails on Fedora 29+ and openssl 1.1.1

2018-10-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: The OP for #35076 emailed me that the distribution is obarun, based on ArchLinux. with LibreSSL not officialy supported, but for the moment a personal work. -- ___ Python tracker

[issue35047] Better error messages in unittest.mock

2018-10-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset 47d94241a383e2b8a2c40e81d12d40d5947fb170 by Victor Stinner (Petter Strandmark) in branch 'master': bpo-35047, unittest.mock: Better error messages on assert_called_xxx failures (GH-10090)

[issue33396] IDLE: Improve and document help doc viewer

2018-10-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- dependencies: +IDLE: document the help document viewer -Checking for abstractmethod implementation fails to consider MRO for builtins ___ Python tracker

[issue33396] IDLE: Improve and document help doc viewer

2018-10-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: #35093 implements item 6, (initially) doc the help viewer. When we improve the help viewer, we should revise the doc at the same time. (I unlinked comment with wrong issue number.) -- ___ Python tracker

[issue33396] IDLE: Improve and document help doc viewer

2018-10-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- Removed message: https://bugs.python.org/msg328739 ___ Python tracker ___ ___ Python-bugs-list

[issue33234] Improve list() pre-sizing for inputs with known lengths

2018-10-28 Thread STINNER Victor
STINNER Victor added the comment: > bpo-33234 Improve list() pre-sizing for inputs with known lengths (GH-9846) Oh. Can you please document the optimization in the following doc as well? https://docs.python.org/dev/whatsnew/3.8.html#optimizations --

[issue35093] IDLE: document the help document viewer

2018-10-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +9517 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35090] Potential division by zero and integer overflow in allocator wrappers

2018-10-28 Thread STINNER Victor
STINNER Victor added the comment: Serhiy: "I think it is worth to backport." Ok. I asked the bot to create 3.6 and 3.7 backports, and I just approved them. I checked: Python 2.7 is not affected. -- versions: +Python 3.6, Python 3.7 ___ Python

[issue35093] IDLE: document the help document viewer

2018-10-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +9516 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35090] Potential division by zero and integer overflow in allocator wrappers

2018-10-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +9514 stage: resolved -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue35090] Potential division by zero and integer overflow in allocator wrappers

2018-10-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +9515 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33396] IDLE: Improve and document help doc viewer

2018-10-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: #35063 implements item 6, (initially) doc the help viewer. When we improve the help viewer, we should revise the doc at the same time. -- dependencies: +Checking for abstractmethod implementation fails to consider MRO for builtins

[issue35090] Potential division by zero and integer overflow in allocator wrappers

2018-10-28 Thread STINNER Victor
Change by STINNER Victor : -- resolution: fixed -> status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue33234] Improve list() pre-sizing for inputs with known lengths

2018-10-28 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 372d705d958964289d762953d0a61622755f5386 by Pablo Galindo in branch 'master': bpo-33234 Improve list() pre-sizing for inputs with known lengths (GH-9846) https://github.com/python/cpython/commit/372d705d958964289d762953d0a61622755f5386

[issue13501] Make libedit support more generic; port readline / libedit to FreeBSD

2018-10-28 Thread Romain Geissler
Romain Geissler added the comment: Yes in my case the build works, but then I have a resulting python interpreter with limited readline functionality. That's why I have some interest in having this patch rebased and included into trunk. -- ___

Re: Accessing clipboard through software built on Python

2018-10-28 Thread Tim Daneliuk
On 10/28/2018 02:08 PM, Akkana Peck wrote: > Tim Daneliuk writes: >> However, the highlighted text must be copied explicitly: >> >> Highlight >> Ctl-C > [ ... ] >> X actually has several clipboard buffers and it can be tricky to get this >> going. I don't recall, >> but either clipboard or

[issue35094] Improved algorithms for random.sample

2018-10-28 Thread Paul Crowley
Paul Crowley added the comment: I would be very grateful for your help finding those dicussions! I've tried this search: https://www.google.com/search?q=python+%22Reservoir+sampling%22+rhettinger and found this discussion:

[issue35084] binascii.Error: Incorrect padding

2018-10-28 Thread TestUser
TestUser added the comment: FYI: This error generates an Ubuntu Crash Report. Every time I use it on the CLI. I wonder how many of these are generated? On Sun, Oct 28, 2018 at 3:49 PM TestUser wrote: > > TestUser added the comment: > > The file contained the following code: > >

Re: regular expression problem

2018-10-28 Thread MRAB
On 2018-10-28 18:51, Karsten Hilbert wrote: Dear list members, I cannot figure out why my regular expression does not work as I expect it to: #--- #!/usr/bin/python from __future__ import print_function import re as regex rx_works =

Re: Accessing clipboard through software built on Python

2018-10-28 Thread Tim Daneliuk
On 10/28/2018 02:08 PM, Akkana Peck wrote: > Tim Daneliuk writes: >> However, the highlighted text must be copied explicitly: >> >> Highlight >> Ctl-C > [ ... ] >> X actually has several clipboard buffers and it can be tricky to get this >> going. I don't recall, >> but either clipboard or

[issue35085] FileNotFoundError: [Errno 2] No such file or directory:

2018-10-28 Thread TestUser
TestUser added the comment: How can that be CLI useful. Lucky I guess as this does not generate a Crash Report. OK. Bad/Missing File would have been my preferred. Then again? Thanks On Sun, Oct 28, 2018 at 1:48 AM Karthikeyan Singaravelan < rep...@bugs.python.org> wrote: > > Karthikeyan

[issue35093] IDLE: document the help document viewer

2018-10-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +9513 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue35091] Objects/listobject.c: gallop functions rely on signed integer overflow

2018-10-28 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> tim.peters nosy: +tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing

[issue35094] Improved algorithms for random.sample

2018-10-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: Sorry, this has been discussed and rejected multiple times. Reservoir sampling makes far too many calls to the underlying random number generator. -- assignee: -> rhettinger resolution: -> rejected stage: patch review -> resolved status: open

[issue35084] binascii.Error: Incorrect padding

2018-10-28 Thread TestUser
TestUser added the comment: The file contained the following code: 0x11a3ff119c\xe3\x50\x89\xe2\x53\x89\xe1\xb0\x0b\xcd\x80#%^ciuqrfiqrYWJjMTIzIT8kKiYoKSctPUB- abc123! On Sun, Oct 28, 2018 at 1:35 AM Karthikeyan Singaravelan < rep...@bugs.python.org> wrote: > > Karthikeyan Singaravelan

  1   2   >