[issue27164] zlib can't decompress DEFLATE using shared dictionary

2016-06-01 Thread Xiang Zhang
Xiang Zhang added the comment: Thanks for your review, Martin. :) I have replied with after thinking and try. Yes, this is more like a feature request. But for the end user, this behaviour is quite like a bug. > If we were to add full support of inflateSetDictionary() for raw deflate > mode,

Re: What's going on here?

2016-06-01 Thread Lawrence D’Oliveiro
On Monday, May 23, 2016 at 9:47:15 AM UTC+12, DFS wrote: > def splitrange(b,e,g): > sr=[] > for i in range(b,e,g): > bg=i;eg=min(e,bg+g-1) > sr.append((bg,eg)) > return sr To be more in keeping with the Python ethos, I would take out the “-1”. --

Re: Recommendation for Object-Oriented systems to study

2016-06-01 Thread Lawrence D’Oliveiro
On Monday, May 30, 2016 at 7:17:47 AM UTC+12, Alan Evangelista wrote: > - Java forces everything to be implemented in OO model (classes) After you have spend a few months battering your head against the rigidity and verbosity of Java, you will run back to Python with a sense of relief. What a

Re: Beginner Question

2016-06-01 Thread Steven D'Aprano
On Thursday 02 June 2016 14:21, Igor Korot wrote: > Hi, guys, > > On Wed, Jun 1, 2016 at 9:42 PM, boB Stepp wrote: >> On Wed, Jun 1, 2016 at 7:55 PM, Marcin Rak >> wrote: >>> Hi to all >>> >>> I have a beginner question to which I have not

[issue27179] subprocess uses wrong encoding on Windows

2016-06-01 Thread Martin Panter
Martin Panter added the comment: I think Issue 6135 has a bit of discussion on adding encoding and error parameters to subprocess.Popen etc. -- ___ Python tracker

[issue27025] More human readable generated widget names

2016-06-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 I think would be a nice improvement. -- nosy: +rhettinger ___ Python tracker ___

Re: Beginner Question

2016-06-01 Thread Igor Korot
Hi, guys, On Wed, Jun 1, 2016 at 9:42 PM, boB Stepp wrote: > On Wed, Jun 1, 2016 at 7:55 PM, Marcin Rak > wrote: >> Hi to all >> >> I have a beginner question to which I have not found an answer I was able to >> understand. Could someone

[issue27179] subprocess uses wrong encoding on Windows

2016-06-01 Thread Eryk Sun
Eryk Sun added the comment: There is no right encoding as far as I can see. If it's attached to a console (i.e. conhost.exe), then cmd.exe uses the console's output codepage when writing to a pipe or file, which is the scenario that your patch attempts to address. But if you pass

[issue27179] subprocess uses wrong encoding on Windows

2016-06-01 Thread Steve Dower
Steve Dower added the comment: Even sys.__stdout__ can be missing. In this context, falling back on the default encoding is probably fine, but for 3.6 I'd like to make everything default to UTF-8 on Windows, and force the console mode on startup (restore on finalize) - apart from the input()

[issue27164] zlib can't decompress DEFLATE using shared dictionary

2016-06-01 Thread Martin Panter
Martin Panter added the comment: Thanks for the patches. Maybe Gregory knows more about this than I do (I never used zdict). But I think I have figured it out today, so I left some review comments :) I’m not sure whether this really is a bug fix, although it would have little if any impact

Re: Beginner Question

2016-06-01 Thread Steven D'Aprano
On Thursday 02 June 2016 10:55, Marcin Rak wrote: > Hi to all > > I have a beginner question to which I have not found an answer I was able to > understand. Could someone explain why the following program: > > def f(a, L=[]): > L.append(a) > return L The default value is set once,

Re: for / while else doesn't make sense

2016-06-01 Thread Steven D'Aprano
On Thursday 02 June 2016 09:39, Lawrence D’Oliveiro wrote: > Also, they let me declare a variable that is scoped to the loop Why do you want variables scoped to the loop? -- Steve -- https://mail.python.org/mailman/listinfo/python-list

Re: Don't put your software in the public domain

2016-06-01 Thread Steven D'Aprano
On Thursday 02 June 2016 06:45, Lawrence D’Oliveiro wrote: > On Thursday, June 2, 2016 at 3:00:05 AM UTC+12, Steven D'Aprano wrote: >> ... because it is extremely unlikely to work. > > Which is why CC0 https://creativecommons.org/publicdomain/zero/1.0/ was > invented. Very true. The purpose of

Re: Don't put your software in the public domain

2016-06-01 Thread Steven D'Aprano
On Thursday 02 June 2016 07:00, John Wong wrote: > On Wed, Jun 1, 2016 at 4:45 PM, Lawrence D’Oliveiro > wrote: > >> On Thursday, June 2, 2016 at 3:00:05 AM UTC+12, Steven D'Aprano wrote: >> > ... because it is extremely unlikely to work. >> >> Which is why CC0

[issue27130] zlib: OverflowError while trying to compress 2^32 bytes or more

2016-06-01 Thread Xiang Zhang
Xiang Zhang added the comment: Yes. It's compression object not compress. I find more. The overflow checking is introduced to solve problem in issue8650. It seems the explicit overflow checking is introduced to keep compatibility with py2 (py2 raises the overflowerror in pyargparse). I

[issue20825] containment test for "ip_network in ip_network"

2016-06-01 Thread James Schneider
James Schneider added the comment: I'd like to ask for a status on getting this merged? As a network administrator, these changes would have a magical effect on my code dealing with routing tables and ACL's. -- nosy: +James Schneider ___ Python

[issue18085] Verifying refcounts.dat

2016-06-01 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: I don't think this is a duplicate of issue 9755; this relates to verifying the data, and that revolves around possible process improvements. Whether this issue should be closed is tied to whether the file has been verified, as the issue title suggests. I

[issue9755] Fix refcounting details in Py3k C API documentation

2016-06-01 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: As mentioned in issue 18085, the original file was not generated, but crafted by hand (though I don't think that really matters). -- ___ Python tracker

[issue18384] Add devhelp build instructions to the documentation makefile

2016-06-01 Thread Berker Peksag
Berker Peksag added the comment: I think we should avoid adding distro specific tools into CPython repository (and the another reason to reject this is that the other distros will probably want to add their tools). -- nosy: +berker.peksag resolution: -> rejected stage: patch review

[issue18085] Verifying refcounts.dat

2016-06-01 Thread Berker Peksag
Berker Peksag added the comment: Can we now close this as a duplicate of issue 9755? -- nosy: +berker.peksag ___ Python tracker ___

[issue27179] subprocess uses wrong encoding on Windows

2016-06-01 Thread Martin Panter
Martin Panter added the comment: I don’t know much about the conventions for stdout etc encoding on Windows. But in general, the patch does not seem robust. Does it work if sys.stdout is a pipe or file (not a console)? I doubt it will work when sys.stdout has been replaced by e.g. StringIO,

Re: reduction

2016-06-01 Thread Fillmore
Thank you, guys. Your suggestions are avaluable. I think I'll go with the tree On 05/31/2016 10:22 AM, Fillmore wrote: My problem. I have lists of substrings associated to values: ['a','b','c','g'] => 1 ['a','b','c','h'] => 1 ['a','b','c','i'] => 1 ['a','b','c','j'] => 1 ['a','b','c','k'] =>

[issue20693] Sidebar scrolls down 2x as fast as page content

2016-06-01 Thread Berker Peksag
Changes by Berker Peksag : -- status: pending -> closed ___ Python tracker ___ ___

[issue8519] doc: termios and ioctl reference links

2016-06-01 Thread Berker Peksag
Berker Peksag added the comment: +1 for using the manpage directives. -- keywords: +easy nosy: +berker.peksag stage: -> needs patch type: -> enhancement versions: +Python 3.5, Python 3.6 ___ Python tracker

[issue22374] Replace contextmanager example and improve explanation

2016-06-01 Thread Berker Peksag
Berker Peksag added the comment: We also have swap_attr() and swap_item() helpers in Lib/test/support/__init__.py. I've used a simplified version of swap_attr() in my patch. Since this is basically a document improvement I removed Python 2.7 from the versions field. -- keywords:

[issue6443] _winreg.QueryValueEx confused on double null terminated strings

2016-06-01 Thread Tony Grue
Tony Grue added the comment: I see this was closed,though it sounds like it's because a work around is found, not because the code now handles multiple null values in a row. Looking at code from the github mirror (pasted below); it looks like the issue is that the countStrings function breaks

Re: Beginner Question

2016-06-01 Thread boB Stepp
On Wed, Jun 1, 2016 at 7:55 PM, Marcin Rak wrote: > Hi to all > > I have a beginner question to which I have not found an answer I was able to > understand. Could someone explain why the following program: > > def f(a, L=[]): > L.append(a) > return L > >

[issue27179] subprocess uses wrong encoding on Windows

2016-06-01 Thread Dāvis
Dāvis added the comment: I looked at #27048 and indeed it's affected by this bug, it happens to me too (I've non-ASCII symbols in %PATH%) and this my patch fixes that. on my system without patch > python -c "from distutils import _msvccompiler; _msvccompiler._get_vc_env('')" Traceback (most

[issue27025] More human readable generated widget names

2016-06-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: Try this instead. import tkinter as tk from idlelib.configdialog import ConfigDialog from idlelib import macosx _realsetup = tk.BaseWidget._setup def _wrapsetup(self, master, cnf): _realsetup(self, master, cnf) print(self.widgetName, self._w)

[issue12243] getpass.getuser works on OSX

2016-06-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 98870f27d2ed by Berker Peksag in branch '2.7': Issue #12243: Remove redundant availability notes from getpass docs https://hg.python.org/cpython/rev/98870f27d2ed -- ___ Python tracker

[issue22558] Missing doc links to source code for Python-coded modules.

2016-06-01 Thread Yoni Lavi
Yoni Lavi added the comment: Ah, thanks for the explanation. I think in this case we're ok too. I linked io.rst to Lib/io.py, which relies on the C version. And in the case of decimal.rst, it was already linked to Lib/decimal.py which very explicitly attempts to load the C version and falls

[issue12243] getpass.getuser works on OSX

2016-06-01 Thread Berker Peksag
Berker Peksag added the comment: See issue 11233 for the availability directive patch. Thanks for the patch, Bryce. -- nosy: +berker.peksag resolution: -> fixed stage: -> resolved status: open -> closed type: -> behavior versions: +Python 3.6 -Python 3.4

[issue12243] getpass.getuser works on OSX

2016-06-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset c13198a2007e by Berker Peksag in branch '3.5': Issue #12243: Remove redundant availability notes from getpass docs https://hg.python.org/cpython/rev/c13198a2007e New changeset 1bd3daae351d by Berker Peksag in branch 'default': Issue #12243: Merge

[issue27179] subprocess uses wrong encoding on Windows

2016-06-01 Thread Dāvis
Dāvis added the comment: there's no such "ā" command, it's just used to get non-ASCII output cmd will return: 'ā' is not recognized as an internal or external command, operable program or batch file. and this will be encoded in consoles encoding (UTF8 in my example or whatever chcp is set

Beginner Question

2016-06-01 Thread Marcin Rak
Hi to all I have a beginner question to which I have not found an answer I was able to understand. Could someone explain why the following program: def f(a, L=[]): L.append(a) return L print(f(1)) print(f(2)) print(f(3)) gives us the following result: [1] [1,2] [1,2,3] How can this

[issue27179] subprocess uses wrong encoding on Windows

2016-06-01 Thread STINNER Victor
STINNER Victor added the comment: What is the ā command? Where does it come from? What is its output? Do you know the encoding of its output? It remembers me the "set" issue in distutils: issue #27048. -- ___ Python tracker

[issue27025] More human readable generated widget names

2016-06-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: To make the experiment easy to repeat, say after the patch, I wrote this. (Perhaps inspired by Ned Batchelder's 'machete debugging' PyCon talk.) import tkinter as tk from idlelib.configdialog import ConfigDialog _realsetup = tk.BaseWidget._setup def

[issue27179] subprocess uses wrong encoding on Windows

2016-06-01 Thread Dāvis
New submission from Dāvis: subprocess uses wrong encoding on Windows. On Windows 10 with Python 3.5.1 from Command Prompt (cmd.exe) > chcp 65001 > python -c "import subprocess; subprocess.getstatusoutput('ā')" Traceback (most recent call last): File "", line 1, in File

Re: Manipulate GIL to have Python thread work with pthread native ones

2016-06-01 Thread Lawrence D’Oliveiro
On Tuesday, May 31, 2016 at 10:14:31 PM UTC+12, qsh...@alumni.sjtu.edu.cn wrote: > PyGILState_Ensure/PyGILState_Release. Without a running sample, it is a > little bit hard to understand how Python thread and the native pthread > interact. Python threads *are* native threads (at least on Linux).

[issue22558] Missing doc links to source code for Python-coded modules.

2016-06-01 Thread R. David Murray
R. David Murray added the comment: Yes, those should be OK. I was thinking of _pyio and _pydecimal, but I don't know if you are linking to those. -- ___ Python tracker

Re: How to create development Python environment on Linux.

2016-06-01 Thread Lawrence D’Oliveiro
On Tuesday, May 17, 2016 at 4:26:23 AM UTC+12, Zachary Ware wrote: > Not what you asked for, but I would encourage you to look into whether > it's possible for you to use Python 3 instead of Python 2 for what > you're doing. If it's possible, starting with Python 3 will save you > several

[issue27130] zlib: OverflowError while trying to compress 2^32 bytes or more

2016-06-01 Thread Martin Panter
Martin Panter added the comment: You should be able to use a compression (or decompression) object as a workaround. But calling zlib.compress() multiple times would generate multiple separate deflated streams, which is different. I think it is reasonable for Python to handle larger data sizes

[issue16964] Add 'm' format specifier for mon_grouping etc.

2016-06-01 Thread R. David Murray
Changes by R. David Murray : -- stage: needs patch -> patch review versions: +Python 3.6 -Python 3.4 ___ Python tracker ___

[issue19012] urllib2: bad proxy configuration throws "getaddrinfo" error

2016-06-01 Thread R. David Murray
R. David Murray added the comment: Closing because no reproducer provided. -- resolution: -> works for me stage: -> resolved status: open -> closed ___ Python tracker

[issue22558] Missing doc links to source code for Python-coded modules.

2016-06-01 Thread Yoni Lavi
Yoni Lavi added the comment: Thank you for looking at this. David, concerning modules that have multiple sources, are you referring to modules such as `stat` and `heapq`? In these, it's the Python source that tries to import the C module if it's available, so I'd consider it ok to leave just

[issue22558] Missing doc links to source code for Python-coded modules.

2016-06-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: If someone does a full review (looks at each diff in Rietveld to see if it matches the intended format -- see Yoni's 4-19 message, with :source:`Lib/mod.py` (lib2to3 is an exception) following **Source code:** -- and then downloads patch, applies, builds new

[issue25931] os.fork() command distributed in windows Python27 (in SocketServer module)

2016-06-01 Thread R. David Murray
R. David Murray added the comment: They aren't currently defined conditionally, though, and haven't ever been, so I'm not sure it is worth chaning that. However, we should probably add an 'availability' line, since they aren't (effectively) available on Windows. -- assignee: ->

Re: for / while else doesn't make sense

2016-06-01 Thread Lawrence D’Oliveiro
On Friday, May 20, 2016 at 4:43:56 AM UTC+12, Herkermer Sherwood wrote: > Most keywords in Python make linguistic sense, but using "else" in for and > while structures is kludgy and misleading. My objection is not to the choice of keyword, it’s to the whole design of the loop construct. It

Re: reduction

2016-06-01 Thread Lawrence D’Oliveiro
On Thursday, June 2, 2016 at 10:07:21 AM UTC+12, MRAB wrote: > What is "this_list"? The main 'for' loop has "entry". Sorry. :) for entry in \ ( ['a','b','c','l'], ['a','b','c'], ) \ : flag = int(not any(m == "l" for m in entry)) ...

[issue26582] asyncio documentation links to wrong CancelledError

2016-06-01 Thread R. David Murray
R. David Murray added the comment: ping: Victor or Yuri, do agree that asyncio.CancelledError should be documented? I know that this duality has confused me in the past as well. I don't know if having it documented would have helped me ahead of time, but at least it could have cleared up my

Re: reduction

2016-06-01 Thread MRAB
On 2016-06-01 22:44, Lawrence D’Oliveiro wrote: On Wednesday, June 1, 2016 at 2:22:42 AM UTC+12, Fillmore wrote: ['a','b','c','l'] => 0 # If "l" is in my data I have a zero ['a','b','c'] => 1 # or a more generic match will do the job for entry in \ (

Re: reduction

2016-06-01 Thread Lawrence D’Oliveiro
On Wednesday, June 1, 2016 at 2:22:42 AM UTC+12, Fillmore wrote: > ['a','b','c','l'] => 0 # If "l" is in my data I have a zero > ['a','b','c'] => 1 # or a more generic match will do the job for entry in \ ( ['a','b','c','l'], ['a','b','c'], ) \

[issue27164] zlib can't decompress DEFLATE using shared dictionary

2016-06-01 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- assignee: -> gregory.p.smith nosy: +gregory.p.smith ___ Python tracker ___

[issue27178] Unconverted RST marking in interpreter tutorial

2016-06-01 Thread Berker Peksag
Berker Peksag added the comment: Good catch! Thanks for patch, Nathan. -- nosy: +berker.peksag resolution: -> fixed stage: -> resolved status: open -> closed type: enhancement -> behavior ___ Python tracker

[issue27178] Unconverted RST marking in interpreter tutorial

2016-06-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset a2ffc966363e by Berker Peksag in branch 'default': Issue #27178: Fix markup in tutorial https://hg.python.org/cpython/rev/a2ffc966363e -- nosy: +python-dev ___ Python tracker

Yet Another Cairo API Binding

2016-06-01 Thread Lawrence D’Oliveiro
Thought I would mention Qahirah , which is yet another binding for the Cairo graphics library. People using Cairo with Python are probably familiar with Pycairo. Qahirah is similar to Pycairo in some ways, but differs importantly in

[issue27178] Unconverted RST marking in interpreter tutorial

2016-06-01 Thread Nathan Harold
New submission from Nathan Harold: There's a bit of uninterpreted RST markup: 3.6.. _tut-using: at the top of the second section of the tutorial (https://docs.python.org/3.6/tutorial/interpreter.html) in the documentation for 3.6 only. (I can see this in the offline copy I received with

[issue27025] More human readable generated widget names

2016-06-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You can apply show_widget_names.diff to see all widget names. Run IDLE and open the configuration dialog for example. -- Added file: http://bugs.python.org/file43092/show_widget_names.diff ___ Python tracker

Re: Don't put your software in the public domain

2016-06-01 Thread John Wong
On Wed, Jun 1, 2016 at 4:45 PM, Lawrence D’Oliveiro wrote: > On Thursday, June 2, 2016 at 3:00:05 AM UTC+12, Steven D'Aprano wrote: > > ... because it is extremely unlikely to work. > > Which is why CC0 https://creativecommons.org/publicdomain/zero/1.0/ was > invented. >

Re: Don't put your software in the public domain

2016-06-01 Thread Lawrence D’Oliveiro
On Thursday, June 2, 2016 at 3:00:05 AM UTC+12, Steven D'Aprano wrote: > ... because it is extremely unlikely to work. Which is why CC0 https://creativecommons.org/publicdomain/zero/1.0/ was invented. -- https://mail.python.org/mailman/listinfo/python-list

[issue22558] Missing doc links to source code for Python-coded modules.

2016-06-01 Thread R. David Murray
R. David Murray added the comment: I meant full review, not file review. -- ___ Python tracker ___ ___

[issue22558] Missing doc links to source code for Python-coded modules.

2016-06-01 Thread R. David Murray
R. David Murray added the comment: You mean someone doing a file review at the sprints? I can add it to the list. No guarantees about it getting committed at the sprints, though. If we are linking to the python version of modules that have both python and C versions, IMO the existence of

[issue27173] Modern Unix key bindings for IDLE

2016-06-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New patch makes IDLE silently fall back to default key set and adds a note about new key set on Keys configuration tab. -- Added file: http://bugs.python.org/file43091/idle_modern_unix_key_set3.patch ___ Python

[issue27172] Add skip_bound_arg argument to inspect.Signature.from_callable()

2016-06-01 Thread Ryan Petrello
Changes by Ryan Petrello : Added file: http://bugs.python.org/file43090/signature-from-callable-skip-bound-arg.patch ___ Python tracker

Re: Self Learning Fortran Programming

2016-06-01 Thread Muhammad Ali
I don't know how to change the title now, but I am looking for python. -- https://mail.python.org/mailman/listinfo/python-list

[issue22558] Missing doc links to source code for Python-coded modules.

2016-06-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: [David, could this be a sprint issue?] Here is the difference between python and C coded modules. The x.y docs are for all implementations of x.y. The python-coded modules are intended for use by all implementations, perhaps with minor modifications. In

[issue27172] Add skip_bound_arg argument to inspect.Signature.from_callable()

2016-06-01 Thread Ryan Petrello
Changes by Ryan Petrello : Added file: http://bugs.python.org/file43089/signature-from-callable-skip-bound-arg.patch ___ Python tracker

[issue23116] Python Tutorial 4.7.1: Improve ask_ok() to cover more input values

2016-06-01 Thread Berker Peksag
Berker Peksag added the comment: Here is a patch. -- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file43088/issue23116.diff ___ Python tracker

[issue27172] Add skip_bound_arg argument to inspect.Signature.from_callable()

2016-06-01 Thread SilentGhost
Changes by SilentGhost : -- assignee: -> yselivanov stage: patch review -> commit review ___ Python tracker ___

[issue23116] Python Tutorial 4.7.1: Improve ask_ok() to cover more input values

2016-06-01 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: +1 for ValueError instead of OSError. -- nosy: +fdrake ___ Python tracker ___

[issue27172] Add skip_bound_arg argument to inspect.Signature.from_callable()

2016-06-01 Thread Yury Selivanov
Yury Selivanov added the comment: Please don't commit this without my review. -- ___ Python tracker ___ ___

[issue23116] Python Tutorial 4.7.1: Improve ask_ok() to cover more input values

2016-06-01 Thread Berker Peksag
Berker Peksag added the comment: I agree with all of Carol's suggestions. Also, OSError could be replaced with a more appropriate exception such as ValueError. -- nosy: +berker.peksag stage: -> needs patch versions: +Python 3.5, Python 3.6 -Python 3.4

[issue27173] Modern Unix key bindings for IDLE

2016-06-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: Original IDLE Dark patch: #24820. Follow-up for cross-version issues (initially for themes, but with a eye to keys, etc): #25313. I intended that 'name2' be future proof (msg252372). I believe my idea was that if it were to point to a future 4th default

Re: Efficient handling of fast, real-time hex data

2016-06-01 Thread jladasky
On Tuesday, May 31, 2016 at 9:37:18 PM UTC-7, Gregory Ewing wrote: > > So, how can I take the byte sequence <0x01 0x02 0x03 0x04 0x05 0x06 \n> that > > Serial.readline() returns to me, > > Using readline() to read binary data doesn't sound like > a good idea -- what happens if one of the data

[issue27172] Add skip_bound_arg argument to inspect.Signature.from_callable()

2016-06-01 Thread Berker Peksag
Changes by Berker Peksag : -- stage: test needed -> patch review ___ Python tracker ___

[issue27172] Add skip_bound_arg argument to inspect.Signature.from_callable()

2016-06-01 Thread Ryan Petrello
Changes by Ryan Petrello : Added file: http://bugs.python.org/file43087/signature-from-callable-skip-bound-arg.patch ___ Python tracker

[issue26589] Add HTTP Response code 451

2016-06-01 Thread Nathan Harold
Nathan Harold added the comment: Added it to the table at https://docs.python.org/3.6/library/http.html#http-status-codes and put a versionadded notice at the bottom. -- nosy: +nharold Added file: http://bugs.python.org/file43086/doctable.diff ___

[issue27051] Create PIP gui

2016-06-01 Thread Upendra Kumar
Upendra Kumar added the comment: Actually now we don't need "pip list" command to get list of installed distributions. We can directly get it : from pip_tkinter._vendor import pkg_resources installed_packages = [p.project_name for p in pkg_resources.working_set] --

[issue27051] Create PIP gui

2016-06-01 Thread Upendra Kumar
Upendra Kumar added the comment: @Terry, code updates can be followed on https://github.com/upendra-k14/pip_gui/tree/dump_code Please review the code in dump_code branch. For now, only pip_gui_v3.py is relevant. 1. I had doubt about including a private module from pip ( "pip._vendor" ). As

[issue27174] Update URL to IPython in interactive.rst

2016-06-01 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the report, kulla. -- nosy: +berker.peksag resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue27174] Update URL to IPython in interactive.rst

2016-06-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 92fd6935e882 by Berker Peksag in branch '3.5': Issue #27174: Update IPython URL in tutorial https://hg.python.org/cpython/rev/92fd6935e882 New changeset 87d76611470c by Berker Peksag in branch 'default': Issue #27174: Merge from 3.5

[issue27176] Addition of assertNotRaises

2016-06-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: I concur with David snd Steven, so closing this as rejected. -- nosy: +rhettinger resolution: -> rejected status: open -> closed ___ Python tracker

[issue1521950] shlex.split() does not tokenize like the shell

2016-06-01 Thread Andrey Kislyuk
Andrey Kislyuk added the comment: Is there any chance of getting this into 3.6? We are still in a situation where the shlex module misleads developers into believing that it has functionality to parse things the way the shell does. I've had to vendor the copy of shlex with patches from this

[issue27177] re match.group should support __index__

2016-06-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This looks as new feature and can go only in 3.6. -- nosy: +serhiy.storchaka stage: -> needs patch type: -> enhancement versions: +Python 3.6 -Python 2.7 ___ Python tracker

Re: Self Learning Fortran Programming

2016-06-01 Thread Peter Pearson
On Tue, 31 May 2016 21:50:33 -0700 (PDT), Muhammad Ali wrote: > > I am interested in Python programming, [snip] Just out of curiosity, why do you seem to be confused about whether your interest is in FORTRAN or Python? -- To email me, substitute nowhere->runbox, invalid->com. --

[issue27176] Addition of assertNotRaises

2016-06-01 Thread R. David Murray
R. David Murray added the comment: Agreed. I've never used the distinction between errors and failures myself. -- nosy: +r.david.murray ___ Python tracker

SQLObject 3.0.0

2016-06-01 Thread Oleg Broytman
Hello! I'm pleased to announce version 3.0.0, the first stable release of branch 3.0 of SQLObject. What's new in SQLObject === Features * Support for Python 2 and Python 3 with one codebase! (Python version >= 3.4 currently required.) Minor features

Breaking down network range to individual networks

2016-06-01 Thread Aaron Christensen
Hello, Does anyone know about a feature of ipaddress that will take the following network range: "10.224.16.0-10.224.23.0" and convert it to individual networks? I am trying to figure out the best way to take a network range and break it up into the largest possible networks. I started

Re: Don't put your software in the public domain

2016-06-01 Thread Marko Rauhamaa
Steven D'Aprano : > ... because it is extremely unlikely to work. If you actually want > your users to be legally able to use your software without a > commercial licence, use a recognised open licence like the MIT > licence. Public domain dedications are on extremely shaky

Re: re.search - Pattern matching review

2016-06-01 Thread Ganesh Pal
Thanks works fine : ) -- https://mail.python.org/mailman/listinfo/python-list

[issue27176] Addition of assertNotRaises

2016-06-01 Thread Steven D'Aprano
Steven D'Aprano added the comment: Yes. What does such an assertion actually mean? Why would I write `self.assertNotRaises(ValueError, spam, arg)` rather than just call `spam(arg)`? The only difference is that assertNotRaises will treat one specific exception as a test failure rather than a

Don't put your software in the public domain

2016-06-01 Thread Steven D'Aprano
... because it is extremely unlikely to work. If you actually want your users to be legally able to use your software without a commercial licence, use a recognised open licence like the MIT licence. Public domain dedications are on extremely shaky ground and give your users no protection.

[issue27164] zlib can't decompress DEFLATE using shared dictionary

2016-06-01 Thread Xiang Zhang
Xiang Zhang added the comment: Forget to add test. Upload a new one with test included. -- Added file: http://bugs.python.org/file43085/issue27164_with_test.patch ___ Python tracker

[issue7105] weak dict iterators are fragile because of unpredictable GC runs

2016-06-01 Thread Charles-François Natali
Charles-François Natali added the comment: Shouldn't the documentation be updated? https://docs.python.org/3.6/library/weakref.html#weakref.WeakKeyDictionary Note Caution: Because a WeakKeyDictionary is built on top of a Python dictionary, it must not change size when iterating over it. This

[issue27176] Addition of assertNotRaises

2016-06-01 Thread SilentGhost
Changes by SilentGhost : -- nosy: +ezio.melotti, michael.foord, rbcollins versions: +Python 3.6 ___ Python tracker ___

[issue27177] re match.group should support __index__

2016-06-01 Thread Jeroen Demeyer
New submission from Jeroen Demeyer: ``` >>> class zero(object): ... def __index__(self): ... return 0 ... >>> z = zero() >>> import re >>> p = re.compile('(a)b') >>> m = p.match('ab') >>> m.group(0) 'ab' >>> m.group(z) Traceback (most recent call last): File "", line 1, in

Re: [issue23459] Linux: expose the new execveat() syscall

2016-06-01 Thread Dennis Clarke
On 05/30/2016 06:12 PM, Марк Коренберг wrote: Марк Коренберг added the comment: It is actual to me due to it's AT_EMPTY_PATH feature (I download script, verify signature, and want to run it) See also `man 3 fexecve` Why not to add `dir_fd=None` ? (as in `os.rmdir()` for example). It

[issue27176] Addition of assertNotRaises

2016-06-01 Thread Bar Harel
New submission from Bar Harel: I thought of implementing an assertNotRaises to solve the issue of using try...except...fail in order to prevent showing the tests as an error and instead show them as a failure. Is there anything I should consider while implementing it? -- components:

[issue27172] Add skip_bound_arg argument to inspect.Signature.from_callable()

2016-06-01 Thread ryan.petrello
Changes by ryan.petrello : -- nosy: +eric.snow ___ Python tracker ___ ___

[issue27173] Modern Unix key bindings for IDLE

2016-06-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > 3 or more years ago, there was an issue about needing to define pairs like > Control-Key-c and Control-Key-C in order to have crtl + c/C-key work the same > regardless of the caps lock setting. I also remember that the effect of Caps > lock was system

  1   2   >