[issue31085] Add option for namedtuple to name its result type automatically

2017-08-02 Thread R. David Murray
R. David Murray added the comment: Yeah, different developers have different opinions. We discuss (I'd say argue, which is accurate, but has acquired negative connotations) until we reach a consensus. And if we don't reach a consensus we leave it alone ("status quo w

[issue31117] Intersphinx file objects.inv missing 'list' from py:class

2017-08-03 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Built-in list disappeared from Python 2.7 intersphinx inventory ___ Python tracker <http://bugs.python

[issue31123] fnmatch does not follow Unix fnmatch functionality

2017-08-04 Thread R. David Murray
R. David Murray added the comment: I don't believe there is an equivalent unix command. Are you referring to the fnmatch glibc function? Can you demonstrate the differences? I doubt we will change the functionality, but that would be the minimum starting point for a discu

[issue31123] fnmatch does not follow Unix fnmatch functionality

2017-08-04 Thread R. David Murray
Changes by R. David Murray : -- type: behavior -> enhancement versions: -Python 2.7, Python 3.4, Python 3.5, Python 3.6 ___ Python tracker <http://bugs.python.org/issu

[issue31123] fnmatch does not follow Unix fnmatch functionality

2017-08-04 Thread R. David Murray
R. David Murray added the comment: Looking at the fnmatch man page, it looks like there are option flags that some shells use that our fnmatch doesn't support. I'm not sure if supporting them is a good idea for us or not, but it is probably worth discussing. I suspect our f

[issue31125] shelve.open of temporary file fails with error "anydbm.error: db type could not be determined"

2017-08-06 Thread R. David Murray
R. David Murray added the comment: No, it should not. A DBM is not necessarily a single file. What you should be doing is creating a temporary *directory*, and opening your DB inside that. -- components: +Library (Lib) -IO nosy: +r.david.murray resolution: -> rejected st

[issue31125] shelve.open of temporary file fails with error "anydbm.error: db type could not be determined"

2017-08-06 Thread R. David Murray
R. David Murray added the comment: By the way, if you want to open a doc issue with a suggestion of how to clarify this in the docs, that would be welcome. -- ___ Python tracker <http://bugs.python.org/issue31

[issue31126] dict comprehension shouldn't raise UnboundLocalError

2017-08-06 Thread R. David Murray
R. David Murray added the comment: The behavior is consistent: >>> a = [1, 2] >>> b = [3, 4] >>> [(a, b) for a in a for b in b] Traceback (most recent call last): File "", line 1, in File "", line 1, in UnboundLocalError: local variable 

[issue29427] Option to skip padding for base64 urlsafe encoding/decoding

2017-08-06 Thread R. David Murray
Changes by R. David Murray : -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/issue29427> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31126] dict comprehension shouldn't raise UnboundLocalError

2017-08-06 Thread R. David Murray
R. David Murray added the comment: I wonder if that explanation should be added to the doc section to which I pointed. I thought I'd remembered something like that being in there, but it isn't. -- ___ Python tracker <http://bu

[issue31127] Abstract classes derived from built-in classes don't block instance creation

2017-08-06 Thread R. David Murray
R. David Murray added the comment: This is a duplidate of issue 5996. It is not clear if we are going to treat it as a bug or a doc bug. -- nosy: +r.david.murray resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> abstract class insta

[issue5996] abstract class instantiable when subclassing dict

2017-08-06 Thread R. David Murray
R. David Murray added the comment: Closed issue 31127 as a duplicate of this one. -- nosy: +Kevin Shweh ___ Python tracker <http://bugs.python.org/issue5

[issue31129] RawConfigParser.items() is unusual in taking arguments

2017-08-06 Thread R. David Murray
R. David Murray added the comment: For backward compatibility reasons this will not be changed. I don't know if the idea of adding a method and doing a documentation deprecation is worth it or not. -- nosy: +lukasz.langa, r.david.murray ___ P

[issue31129] RawConfigParser.items() is unusual in taking arguments

2017-08-06 Thread R. David Murray
Changes by R. David Murray : -- type: -> enhancement ___ Python tracker <http://bugs.python.org/issue31129> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue31123] fnmatch does not follow Unix fnmatch functionality

2017-08-08 Thread R. David Murray
R. David Murray added the comment: That seems like a reasonable use case, but is fnmatch what git is using for this? If so, what is the feature set required? In any case, the existing functionality must remain as is for backward compatibility reasons, so this would either be a new function

[issue31136] raw strings cannot end with a backslash character r'\'

2017-08-08 Thread R. David Murray
R. David Murray added the comment: In fact, this ia a FAQ: https://docs.python.org/3/faq/design.html#why-can-t-raw-strings-r-strings-end-with-a-backslash -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/issue31

[issue31143] lib2to3 requires source files for fixes

2017-08-08 Thread R. David Murray
R. David Murray added the comment: What are you reporting as the bug here? 2to3 obviously can't work without the source, so based just on what you have written here this sounds like an Azure bug. -- nosy: +r.david.murray ___ Python tracker

[issue31143] lib2to3 requires source files for fixes

2017-08-08 Thread R. David Murray
R. David Murray added the comment: Ah, I see. We don't really support .pyc-only distribution, though we try not to break it. Do you want to propose a fix? -- ___ Python tracker <http://bugs.python.org/is

[issue31148] Can we get an MSI installer for something past 3.4.4?

2017-08-08 Thread R. David Murray
R. David Murray added the comment: The short answer is no. We no longer use the MSI installer. Perhaps the windows experts will be interested in exploring why you can't use the current installers, since they work for most people. -- components: +Windows nosy: +paul.

[issue31154] Path.replace and Path.rename naming, behavior and documentation

2017-08-09 Thread R. David Murray
R. David Murray added the comment: Both the replace and rename functions will remain in the API, as they mirror the os module, not the os itself. I agree that the naming is unfortunate, but it has the weight of history behind it, so we are stuck with it. Issue 24229 rejected adding a copy

[issue31156] Stopiteration terminates while-loop

2017-08-09 Thread R. David Murray
R. David Murray added the comment: >>> while True: ... raise StopIteration ... Traceback (most recent call last): File "", line 2, in StopIteration -- nosy: +r.david.murray ___ Python tracker <http://bugs

[issue31162] urllib.request.urlopen error

2017-08-09 Thread R. David Murray
R. David Murray added the comment: What makes you think this is a python bug rather than exactly what it says: a cert verification error? -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/issue31

[issue31163] Return destination path in Path.rename and Path.replace

2017-08-09 Thread R. David Murray
R. David Murray added the comment: I agree. The normal python convention is that an immutable object returns the new value when an operation "changes" it, while a mutable object returns None. It seems like replace and rename should follow this convention (and that it wou

[issue31167] timedelta produced by datetime.__sub__ does not take Daylight Savings Time into account

2017-08-09 Thread R. David Murray
R. David Murray added the comment: It is by design. Read the footnote associated with the subtraction opertion on datetimes: after subtraction date2 + timedelta = date1, which implies that the subtraction ignores daylight savings transitions, since the addition does ("Note that no time

[issue4963] mimetypes.guess_extension result changes after mimetypes.init()

2017-08-10 Thread David K. Hess
Changes by David K. Hess : -- pull_requests: +3096 ___ Python tracker <http://bugs.python.org/issue4963> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4963] mimetypes.guess_extension result changes after mimetypes.init()

2017-08-10 Thread David K. Hess
David K. Hess added the comment: FYI, PR opened: https://github.com/python/cpython/pull/3062 -- ___ Python tracker <http://bugs.python.org/issue4963> ___ ___ Pytho

[issue31148] Can we get an MSI installer for something past 3.4.4?

2017-08-10 Thread R. David Murray
R. David Murray added the comment: Steve, when we changed installers was that when we also fixed the security/permissions problems with the install dir? If permissions are the issue the OP's problem may have nothing to do with it not bein

[issue31201] module test that failed doesn't exist

2017-08-14 Thread R. David Murray
R. David Murray added the comment: Replace "test_that_failed" with the name of the test that failed. The README could be improved by saying: If any tests fail, you can re-run the failing test(s) in verbose mode. For example if, 'test_os' and 'test_gdb' failed,

[issue31199] configure checks fail confusingly under --with-address-sanitizer if libasan is missing

2017-08-14 Thread R. David Murray
Changes by R. David Murray : -- title: !HAVE_CLOCK_GETTIME causes problems with _PyTime_FromTimespec -> configure checks fail confusingly under --with-address-sanitizer if libasan is missing ___ Python tracker <http://bugs.python.org/issu

[issue31201] module test that failed doesn't exist

2017-08-14 Thread R. David Murray
R. David Murray added the comment: Yep, I figured that. That's why I suggested the clarification to the README, if someone wants to generate a PR for it. -- ___ Python tracker <http://bugs.python.org/is

[issue30824] Add mimetype for extension .json

2017-08-14 Thread R. David Murray
R. David Murray added the comment: New changeset 8204b903683f9e0f037ccfaa87622716019914d7 by R. David Murray (Nate Tangsurat) in branch 'master': bpo-30824: Add mimetype for .json (#3048) https://github.com/python/cpython/commit/8204b903683f9e0f037ccfaa876227

[issue30824] Add mimetype for extension .json

2017-08-14 Thread R. David Murray
Changes by R. David Murray : -- stage: needs patch -> backport needed ___ Python tracker <http://bugs.python.org/issue30824> ___ ___ Python-bugs-list mai

[issue31210] Can not import site from sys.prefix containing DELIM

2017-08-15 Thread R. David Murray
R. David Murray added the comment: By DELIM, you mean the shell ':'? As far as I've been able to determine there is no way defined in posix to escape that character. If you can find one, please let us know. (I think the same is true for the Windows semicolon bu

[issue31210] Can not import site from sys.prefix containing DELIM

2017-08-15 Thread R. David Murray
R. David Murray added the comment: I'm not sure there is anything we should do here, then, because we are conforming to the posix parsing for PATH in our PYTHONPATH implementation. I think if you want to pursue this further you should take it to the python-ideas mailing list. I'

[issue31194] Inconsistent __repr__s for _collections objects

2017-08-15 Thread R. David Murray
R. David Murray added the comment: This is a duplicate of issue 27541. -- nosy: +r.david.murray resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Repr of collection's subclasses ___ Pyth

[issue31210] Can not import site from sys.prefix containing DELIM

2017-08-15 Thread R. David Murray
R. David Murray added the comment: You mean to create the entries on sys.path that do not come from the PYTHONPATH? -- ___ Python tracker <http://bugs.python.org/issue31

[issue31210] Can not import site from sys.prefix containing DELIM

2017-08-15 Thread R. David Murray
R. David Murray added the comment: OK, that seems reasonable to me. I'll reopen the issue. Assuming other developers agree that this should be changed, I'm not sure if it will qualify as a bug or an enhancement, so I'm leaving versions unselected for now :) -- resolu

[issue31210] Can not import site from sys.prefix containing DELIM

2017-08-15 Thread R. David Murray
Changes by R. David Murray : -- nosy: +brett.cannon, eric.snow, ncoghlan ___ Python tracker <http://bugs.python.org/issue31210> ___ ___ Python-bugs-list mailin

[issue31214] os.walk has a bug on Windows

2017-08-15 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue31216] Add ensure_ascii argument to json.tool

2017-08-16 Thread R. David Murray
R. David Murray added the comment: This is a duplicate of issue 27413. -- nosy: +r.david.murray resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Add an option to json.tool to bypass non-ASCII characters. __

[issue27413] Add an option to json.tool to bypass non-ASCII characters.

2017-08-16 Thread R. David Murray
Changes by R. David Murray : -- nosy: +qingyunha ___ Python tracker <http://bugs.python.org/issue27413> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27413] Add an option to json.tool to bypass non-ASCII characters.

2017-08-16 Thread R. David Murray
Changes by R. David Murray : -- versions: +Python 3.7 -Python 3.6 ___ Python tracker <http://bugs.python.org/issue27413> ___ ___ Python-bugs-list mailin

[issue31218] del expects __delitem__ if __setitem__ is defined

2017-08-16 Thread R. David Murray
R. David Murray added the comment: I'm not sure we would consider this a bug (the message is accurate), but I wouldn't object to fixing it, since that would indeed seem more consistent with how __delitem__ and del are defined in the language reference. -- nosy: +r.da

[issue31210] Can not import site from sys.prefix containing DELIM

2017-08-16 Thread R. David Murray
R. David Murray added the comment: Is this post wrong then?: https://superuser.com/questions/584870/how-can-i-add-a-folder-containing-a-semicolon-to-the-windows-path ("I noticed that the semicolon ; is a valid character for Windows (NTFS) file and directory

[issue31210] Can not import site from sys.prefix containing DELIM

2017-08-16 Thread R. David Murray
R. David Murray added the comment: All right. So the challenge here for windows is: if python is installed on a path that has a semicolon in one of the directory names, is it even possible to populate sys.path such that modules can be imported from the lib directory that is under that path

[issue31210] Can not import modules if sys.prefix contains DELIM

2017-08-16 Thread R. David Murray
Changes by R. David Murray : -- title: Can not import site from sys.prefix containing DELIM -> Can not import modules if sys.prefix contains DELIM ___ Python tracker <http://bugs.python.org/issu

[issue31222] datetime.py implementation of .replace inconsistent with C implementation

2017-08-16 Thread R. David Murray
R. David Murray added the comment: See also issue 20371. -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/issue31222> ___ ___ Python-bugs-list m

[issue31231] Travis CI mac test broken: ./python: is a directory

2017-08-18 Thread R. David Murray
R. David Murray added the comment: The docs you point to are correct (they mention python.exe). The Travis log also shows it using python.exe. So the error message about the directory must be about some other operation than just running the python command. -- components: +macOS nosy

[issue31231] Travis CI mac test broken: ./python: is a directory

2017-08-18 Thread R. David Murray
R. David Murray added the comment: Heh. I saw the PR but didn't realize it was attached to this issue :) -- ___ Python tracker <http://bugs.python.org/is

[issue31231] Travis CI mac test broken: ./python: is a directory

2017-08-18 Thread R. David Murray
R. David Murray added the comment: Ah, this is probably the issue: https://github.com/python/cpython/pull/3134 -- ___ Python tracker <http://bugs.python.org/issue31

[issue31239] namedtuple comparison ignores types

2017-08-19 Thread R. David Murray
R. David Murray added the comment: This is by design: namedtuples are tuples in which you can access the elements by name. If you have a tuple with the same elements, but no name access, they should compare equal, because they are fundamentally tuples. The names are just a convenience

[issue31251] Diameter protocol in Python

2017-08-21 Thread R. David Murray
R. David Murray added the comment: This isn't a help forum, it is a place for reporting bugs in Python. The kind of question you are asking is best asked on the python-list mailing list (see mail.python.org). -- nosy: +r.david.murray resolution: -> not a bug stage: -&g

[issue31253] Python fails to parse triple quoted (commented out) code

2017-08-22 Thread R. David Murray
R. David Murray added the comment: Just FYI, Vedran, almost everyone gets this one wrong :) I too once thought that triple quoted text used as comments was bad style, but in fact I learned they are an accepted way in Python to do multiline comments. Accepted by Guido, at least: https

[issue31253] Python fails to parse triple quoted (commented out) code

2017-08-22 Thread R. David Murray
R. David Murray added the comment: And being "accepted" does not change the fact that one needs to be aware of the fact that syntactically they are string literals and not syntactic comments. Which was your point. -- ___ Python trac

[issue31261] unittest fails to properly destruct objects created during setUp if a test fails

2017-08-22 Thread R. David Murray
R. David Murray added the comment: GC cleanup is not guaranteed to be synchronous. You are observing normal Python behavior here. Cleanup does not happen until the TestCase instance is finalized (thus eliminating the self.dummy reference to your DummyClass). In the case of passing tests

[issue31262] Documentation Error

2017-08-22 Thread R. David Murray
R. David Murray added the comment: No, that sentence is telling you what the *Python*'s behavior is, using C++ terminology. Unlike C++, where class members are private by default, the Python equivalent of class members are public by default. If you can figure out a clearer way to phrase

[issue31263] Assigning to subscript/slice of literal is permitted

2017-08-23 Thread R. David Murray
R. David Murray added the comment: I'm don't have a lot of experience with parsers, but I suspect that we consider the cost of making the grammar more complex to be more significant than the benefit we'd get from catching these at compile time. And as Vedran says, defining wha

[issue31264] Import Package/Module through HTTP/S repository

2017-08-23 Thread R. David Murray
R. David Murray added the comment: This kind of proposal should start with a discussion on the python-ideas mailing list. You can reopen the issue if there is a consensus for moving forward...but I wouldn't be surprised if this was considered to be a PEP level proposal. --

[issue31263] Assigning to subscript/slice of literal is permitted

2017-08-23 Thread R. David Murray
R. David Murray added the comment: If you would disallow "a = [0]; [5, a][1][:] = [3]", then your proposal will not be accepted, for backward compatibility reasons if nothing else. -- versions: +Python 3.7 -Python 3.5, Python 3.6 ___ Pyth

[issue31263] Assigning to subscript/slice of literal is permitted

2017-08-23 Thread R. David Murray
R. David Murray added the comment: Sometimes it does, sometimes we make the change in a feature release, often after a deprecation period. But in this case there is doubt that the behavior is incorrect in the first place. This discussion should move to the python-ideas mailing list. I&#

[issue31264] Import Package/Module through HTTP/S repository

2017-08-23 Thread R. David Murray
R. David Murray added the comment: Indeed, I personally can't imagine a circumstance in which I'd want to use this feature. Even inside an org. It also has security implications, which would also make it a harder sell. -- ___ Pyth

[issue31268] Inconsistent socket timeout exception

2017-08-24 Thread R. David Murray
R. David Murray added the comment: Have you tried the equivalent C program? I'm guessing this is happening at the OS layer and Python is just reporting it. On my system a timeout of 5 will always report the OS error. -- nosy: +r.david.m

[issue31269] bug in islink() and is_symlink()

2017-08-24 Thread R. David Murray
R. David Murray added the comment: The docs say, eg: "Return True if the path points to a symbolic link". The path points to a file system object, and it is the object that is being checked, not each component of the path used to get to that object. -- nosy: +r.da

[issue31269] bug in islink() and is_symlink()

2017-08-24 Thread R. David Murray
R. David Murray added the comment: I would phrase that as "check if any of the components of the path are links", at which point one "obvious"[*] answer is "any(x.is_symlink() for x in [*mypath.parents, mypath])". If the path is absolute, you could use &qu

[issue31270] Simplify documentation of itertools.zip_longest

2017-08-24 Thread R. David Murray
R. David Murray added the comment: Thanks for wanting to improve the documentation. Raymond will address this definitively, but unless I'm mistaken part of the purpose of the examples is to show how the various itertools can be used. If that is true, then in the context of the ov

[issue31268] Inconsistent socket timeout exception

2017-08-24 Thread R. David Murray
R. David Murray added the comment: I'm not a networking expert at this level, but I believe what is happening here is that the network stack does an arp, and has a timeout waiting for the arp response that is longer than your socket timeout. So at some point its arp timeout expires whil

[issue31283] Inconsistent behaviours with explicit and implicit inheritance from object

2017-08-26 Thread R. David Murray
R. David Murray added the comment: shadowadler, the documentation assumes *throughout* that you have not created any variable that shadows any standard Python entities. There is no other rational way to write the documentation. To change that policy would, as has been pointed out, require

[issue31283] Inconsistent behaviours with explicit and implicit inheritance from object

2017-08-26 Thread R. David Murray
R. David Murray added the comment: I see I didn't specifically address your counter argument ("that would obviously be absurd"). Having thought it it some more, your are right, there *is* a difference between the examples you think it would be absurd to disclaim and your ex

[issue31283] Inconsistent behaviours with explicit and implicit inheritance from object

2017-08-26 Thread R. David Murray
R. David Murray added the comment: OK, agreed. The general principle is: if you reference the name, it is looked up in the the builtins namespace at runtime (effectively an indirect reference). If the syntax doesn't explicitly mention the name, then it is going to be (the equivalent

[issue31295] typo in __hash__ docs

2017-08-28 Thread R. David Murray
R. David Murray added the comment: No, it is correct as worded. It is talking about the default methods. With the default methods, x == y implies that x is y. -- nosy: +r.david.murray resolution: -> not a bug stage: -> resolved status: open -&g

[issue31300] Traceback prints different code than the running module

2017-08-29 Thread R. David Murray
R. David Murray added the comment: This is a duplicate of issue 8087, which contains quite a bit of discussion of the subtleties of the issue. -- nosy: +r.david.murray resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Unupdated so

[issue31303] xml.etree.ElementTree fails to parse a document (regression)

2017-08-29 Thread R. David Murray
Changes by R. David Murray : -- nosy: +serhiy.storchaka ___ Python tracker <http://bugs.python.org/issue31303> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31307] ConfigParser.read silently fails if filenames argument is a byte string

2017-08-30 Thread R. David Murray
Changes by R. David Murray : -- nosy: +lukasz.langa ___ Python tracker <http://bugs.python.org/issue31307> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31312] Build differences caused by the time stamps

2017-08-31 Thread R. David Murray
R. David Murray added the comment: Duplicate of issue 29708. -- nosy: +r.david.murray resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> support reproducible Python builds type: security -> behavior ___

[issue31330] argparse.RawTextHelpFormatter does not maintain lines separated by more than one newline

2017-09-02 Thread R. David Murray
R. David Murray added the comment: If that is the intended definition of "whitespace" in this context (I have no opinion on that so far), then the docs need amplification, because in general "whitespace" includes newlines. On the other hand, this might be considered a bug

[issue16988] argparse: PARSER option for nargs not documented

2017-09-04 Thread R. David Murray
R. David Murray added the comment: I don't think this use case is enough to justify documenting it, since this is not an intuitive meaning of the word PARSER. I think if we wanted to expose this for this kind of use case, we'd want to rename the constant (with an alias fo

[issue15427] Describe use of args parameter of argparse.ArgumentParser.parse_args

2017-09-04 Thread R. David Murray
Changes by R. David Murray : -- pull_requests: +3327 ___ Python tracker <http://bugs.python.org/issue15427> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15427] Describe use of args parameter of argparse.ArgumentParser.parse_args

2017-09-04 Thread R. David Murray
R. David Murray added the comment: I've turned this into a PR. The example was already changed in a previous checkin. I reworded the optparse porting addition to match the existing style of the list. -- nosy: +r.david.murray ___ Python tr

[issue15427] Describe use of args parameter of argparse.ArgumentParser.parse_args

2017-09-04 Thread R. David Murray
Changes by R. David Murray : -- versions: +Python 3.6, Python 3.7 -Python 3.2, Python 3.3, Python 3.4 ___ Python tracker <http://bugs.python.org/issue15

[issue14191] argparse doesn't allow optionals within positionals

2017-09-04 Thread R. David Murray
Changes by R. David Murray : -- pull_requests: +3345 ___ Python tracker <http://bugs.python.org/issue14191> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14191] argparse doesn't allow optionals within positionals

2017-09-04 Thread R. David Murray
R. David Murray added the comment: I've turned intermixed.patch into a PR. I tweaked the documentation so that it does not refer to the details of the implementation. I tweaked the implementation to have the 'try' start before the code that modifies the state, and did the l

[issue15427] Describe use of args parameter of argparse.ArgumentParser.parse_args

2017-09-04 Thread R. David Murray
Changes by R. David Murray : -- pull_requests: +3348 ___ Python tracker <http://bugs.python.org/issue15427> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15427] Describe use of args parameter of argparse.ArgumentParser.parse_args

2017-09-04 Thread R. David Murray
Changes by R. David Murray : -- pull_requests: +3350 ___ Python tracker <http://bugs.python.org/issue15427> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14191] argparse doesn't allow optionals within positionals

2017-09-05 Thread R. David Murray
R. David Murray added the comment: I got an offline agreement from Zach Ware, and nobody here at the sprint has objected (though I don't know if anyone else looked), so I'll go ahead and finish the PR. -- ___ Python tracker <http://bu

[issue27240] 'UnstructuredTokenList' object has no attribute '_fold_as_ew'

2017-09-06 Thread R. David Murray
R. David Murray added the comment: I started rewriting the header folder in response to this bug, because the root problem is a bit deeper than just _fold_as_ew being missing. I will probably work on it some more this week, but if I don't think I'm going to get it finished I&

[issue31361] Update feedparser.py to prevent theano compiling fail in python3

2017-09-06 Thread R. David Murray
R. David Murray added the comment: You did not follow the request I made on the PR to explain in this issue you opened what is failing and why. Unless you convince us that this is actually a bug in python, we will close the issue and PR

[issue31369] re.RegexFlag is not included in __all__

2017-09-06 Thread R. David Murray
R. David Murray added the comment: I think RegexFlag is an implementation detail, but it is true that it isn't prefixed with a _ so putting it in __all__ is not obviously wrong. However, if we do that we should also document it (currently it is mentioned only in a versionchanged line,

[issue30824] Add mimetype for extension .json

2017-09-06 Thread R. David Murray
R. David Murray added the comment: New changeset 47e5f791223773dd46273153e9fa5b48f848f0c9 by R. David Murray (Miss Islington (bot)) in branch '2.7': [2.7] bpo-30824: Add mimetype for .json (GH-3048) (#3394) https://github.com/python/cpython/commit/47e5f791223773dd46273153e9fa5b

[issue31369] re.RegexFlag is not included in __all__

2017-09-06 Thread R. David Murray
R. David Murray added the comment: Well, I consider that they really should be named constants and not an enum, which is why I consider it an implementation detail :) -- ___ Python tracker <http://bugs.python.org/issue31

[issue30824] Add mimetype for extension .json

2017-09-06 Thread R. David Murray
R. David Murray added the comment: New changeset e29ab7e75138e198b51c8bd04afa16d9d2c976a5 by R. David Murray (Miss Islington (bot)) in branch '3.6': [3.6] bpo-30824: Add mimetype for .json (GH-3048) (#3401) https://github.com/python/cpython/commit/e29ab7e75138e198b51c8bd04afa16

[issue14191] argparse doesn't allow optionals within positionals

2017-09-06 Thread R. David Murray
R. David Murray added the comment: New changeset 0f6b9d230674da784ca79a0cf1a03d2af5a8b6a8 by R. David Murray in branch 'master': bpo-14191 Add parse_intermixed_args. (#3319) https://github.com/python/cpython/commit/0f6b9d230674da784ca79a0cf1a03d

[issue14191] argparse doesn't allow optionals within positionals

2017-09-06 Thread R. David Murray
R. David Murray added the comment: Thanks Paul. By the way, if you want your "real name" in What's New, just let me know what it is and I'll make the change. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed _

[issue31385] `import as` does not work when module has same same as parent module

2017-09-07 Thread R. David Murray
R. David Murray added the comment: It seems likely that this is related to the problems discussed (and hopefully solved) in issue 30024. -- nosy: +r.david.murray ___ Python tracker <https://bugs.python.org/issue31

[issue31330] argparse.RawTextHelpFormatter does not maintain lines separated by more than one newline

2017-09-07 Thread R. David Murray
R. David Murray added the comment: New changeset 397c467c49385023de36411194d381ac993bae1a by R. David Murray (Elena Oat) in branch 'master': bpo-31330: Clarify that RawTextHelpFormatter collapses repeated newlines. (#3272) https://github.com/python/cpyt

[issue31330] argparse.RawTextHelpFormatter does not maintain lines separated by more than one newline

2017-09-07 Thread R. David Murray
R. David Murray added the comment: Thanks, Elena. -- resolution: -> fixed stage: -> backport needed ___ Python tracker <https://bugs.python.org/i

[issue31330] argparse.RawTextHelpFormatter does not maintain lines separated by more than one newline

2017-09-07 Thread R. David Murray
R. David Murray added the comment: New changeset 82cae7c5be4175e2173e4d342825b5315a9d612a by R. David Murray (Miss Islington (bot)) in branch '2.7': [2.7] bpo-31330: Clarify that RawTextHelpFormatter collapses repeated newlines. (GH-3272) (GH-3428) https://github.com/python/cpyt

[issue31330] argparse.RawTextHelpFormatter does not maintain lines separated by more than one newline

2017-09-07 Thread R. David Murray
R. David Murray added the comment: New changeset e89b35dd2b87e85978b91e3e2dbdea1fc76d6be4 by R. David Murray (Miss Islington (bot)) in branch '3.6': [3.6] bpo-31330: Clarify that RawTextHelpFormatter collapses repeated newlines. (GH-3272) (GH-3429) https://github.com/python/cpyt

[issue31330] argparse.RawTextHelpFormatter does not maintain lines separated by more than one newline

2017-09-07 Thread R. David Murray
Changes by R. David Murray : -- stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue31330> ___ ___ Pyth

[issue31361] Update feedparser.py to prevent theano compiling fail in python3

2017-09-09 Thread R. David Murray
R. David Murray added the comment: Can you figure out what the input to feedparser is in those cases? If pip or whatever is feeding in a None object, then that's not a bug in feedparser. However, if the input is a string (or bytes via the bytes interface) and this is heppening, then th

[issue31397] does not work import in Python 3.6.2

2017-09-09 Thread R. David Murray
R. David Murray added the comment: Presumably the book didn't tell you everything you need to know to make this work, or you missed something in the instructions, since this certainly does work if the module is in a directory on sys.path. (The 'python module1.py' will o

<    47   48   49   50   51   52   53   54   55   56   >