[issue15502] Meta path finders and path entry finders are different, but share an ABC

2012-07-31 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue15502> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15295] Import machinery documentation

2012-07-31 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Jul 30, 2012, at 09:41 PM, Brett Cannon wrote: >As for the diagram(s), I have attached the overall PDF that I still have from >my original Omnifgraffle file (which I don't have a license to anymore) that >I built my PyCon 2008 presentat

[issue15295] Import machinery documentation

2012-07-31 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Jul 31, 2012, at 12:28 AM, Eric Snow wrote: >> You ask in [2] whether "path importer" refers specifically to the callables >> on sys.path_hooks. Can you site a reference for this? I found one >> reference in PEP 302 to &quo

[issue15295] Import machinery documentation

2012-07-31 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I think I was unclear in my previous follow up. Here are the objects involved, taken from the glossary. import path A list of locations (or :term:`path entries `) that are searched by the :term:`path importer` for modules to import. During

[issue15295] Import machinery documentation

2012-07-31 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Jul 31, 2012, at 03:21 AM, Eric Snow wrote: >1. default path importer (a.k.a PathFinder), +1, although currently I am refraining from using "default" when describing this thing. >2. path hook (lives on sys.path_hooks), I have called t

[issue15295] Import machinery documentation

2012-07-31 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue15295> ___ ___ Python-bugs-list

[issue15295] Import machinery documentation

2012-07-31 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Jul 31, 2012, at 08:30 PM, Brett Cannon wrote: >The import path definition is a little misleading as sys.path is only >inferred when 'path' has None passed in. Otherwise 'path' is what __path__ in >a package is set to, so te

[issue15295] Import machinery documentation

2012-07-31 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Jul 31, 2012, at 02:56 PM, Eric Snow wrote: >Part of the problem with the import nomenclature is that PEP 302 doesn't >really nail it down and mixes the terms up a bit. This is understandable >considering it broken ground in some regard. Ho

[issue15471] importlib's __import__() argument style nit

2012-07-31 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Jul 30, 2012, at 04:39 AM, Meador Inge wrote: >Meador Inge added the comment: > >How about the attached? What about something like: globals = ({} if globals is None else globals) and similarly f

[issue15502] Meta path finders and path entry finders are different, but share an ABC

2012-08-01 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I've mostly run out of time to work on the docs, but I do want to say that I thought long and hard about all the terminology decisions. Please don't change them lightly, and definitely don't change them until you've tried to go through t

[issue15502] Meta path finders and path entry finders are different, but share an ABC

2012-08-01 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Aug 01, 2012, at 10:03 PM, Nick Coghlan wrote: >1. "path import subsystem" for that whole section of the import machinery; >and >2. "path import finder" specifically for the meta path finder that >importlib calls "PathFi

[issue15502] Meta path finders and path entry finders are different, but share an ABC

2012-08-01 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Aug 01, 2012, at 10:44 PM, Nick Coghlan wrote: >The problem with "path importer" is it's just plain *wrong*. That object is >not an importer and thus calling it one makes it much harder to learn the >finder/loader/importer distincti

[issue15502] Meta path finders and path entry finders are different, but share an ABC

2012-08-02 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: What about "Path Scanner"? Came to me in a dream, so it has to be perfect, right? :) -- ___ Python tracker <http://bugs.python.o

[issue15502] Meta path finders and path entry finders are different, but share an ABC

2012-08-02 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Aug 02, 2012, at 11:33 AM, Nick Coghlan wrote: >Specifically, what I did was to drop "find_module" from the Finder ABC, but >keep the ABC itself as a way to document the common "invalidate_caches" >API. The ABC definitio

[issue15471] importlib's __import__() argument style nit

2012-08-06 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Aug 05, 2012, at 11:50 PM, Brett Cannon wrote: >I went with Barry's approach but made it compatible with PEP 8 (bad, FLUFL; >no unneeded parens!). I actually think I picked that up from the big guy himself, but I could be mis

[issue15591] when building the extensions, stdout is lost when stdout is redirected

2012-08-29 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue15591> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15906] argparse add_argument() confusing behavior when type=str, default=[], action='append'

2012-09-10 Thread Barry A. Warsaw
New submission from Barry A. Warsaw: Run the following code snippet: -snip snip- import argparse parser = argparse.ArgumentParser() parser.add_argument("--test", dest="test", type=str, default=[], action='append') args = parser.parse_args() p

[issue15906] argparse add_argument() confusing behavior when type=str, default=[], action='append'

2012-09-10 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +benjamin.peterson, georg.brandl priority: normal -> release blocker ___ Python tracker <http://bugs.python.org/issu

[issue15906] argparse add_argument() confusing behavior when type=str, default=[], action='append'

2012-09-10 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Marking it as a release blocker and adding 3.3 since 3.3 hg trunk is affected. -- versions: +Python 3.3 ___ Python tracker <http://bugs.python.org/issue15

[issue15906] argparse add_argument() confusing behavior when type=str, default=

2012-09-10 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Sep 10, 2012, at 05:21 PM, Georg Brandl wrote: >I don't see how this affects 3.3: you seem to be saying the behavior is fine >there. No, I thought it was because I tested the Ubuntu rc2 version, but the problem exists in upstream hg 3

[issue15906] argparse add_argument() confusing behavior when type=str, default=

2012-09-10 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- versions: +Python 3.3 ___ Python tracker <http://bugs.python.org/issue15906> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15906] argparse add_argument() confusing behavior when type=str, default=

2012-09-10 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Sep 10, 2012, at 05:59 PM, Georg Brandl wrote: >But it's not a release blocker for 3.3 then. Fair enough! -- ___ Python tracker <http://bugs.python.org

[issue15906] argparse add_argument() confusing behavior when type=str, default=

2012-09-11 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Okay, this bug is clearly caused by the patch applied for issue 12776. Here's the patch set url: http://hg.python.org/cpython/rev/74f6d87cd471 Now, if you look at this, I think this changes the semantics for non-string default with a type converter, bu

[issue15906] argparse add_argument() confusing behavior when type=str, default=

2012-09-11 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Sep 11, 2012, at 04:15 PM, Chris Jerdonek wrote: >I haven't thought about this very long, but what would happen if the "type" >conversion is only called on arguments and default arguments that are >strings, and otherwise left alon

[issue15906] argparse add_argument() confusing behavior when type=str, default=

2012-09-11 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Sep 11, 2012, at 07:00 PM, R. David Murray wrote: >To repeat: there is no change to be made for 3.3. 3.3.0 will go out the door >with the pre-12776 behavior. So any backward compatibility concerns that >apply to 2.7 and 3.2 also apply to 3.3

[issue15923] Building from a fresh clone breaks on Parser/asdl_c.py

2012-09-11 Thread Barry A. Warsaw
New submission from Barry A. Warsaw: After a fresh clone, configure && make fails due to a fairly obvious bug in the code. Note that if you `hg revert --all`, configure && make will succeed, probably because the timestamps get updated enough to fool make. @resist[~/projects/

[issue15906] argparse add_argument() confusing behavior when type=str, default=

2012-09-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Sep 12, 2012, at 10:57 AM, Steven Bethard wrote: >(1) Yes, the error is that the isinstance(action.default, str) check was lost Except that it won't work any more in the original location. I tried it and it broke other tests. Maybe I did it w

[issue15906] argparse add_argument() confusing behavior when type=str, default=

2012-09-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Sep 12, 2012, at 10:39 AM, R. David Murray wrote: >diff --git a/Lib/argparse.py b/Lib/argparse.py >--- a/Lib/argparse.py >+++ b/Lib/argparse.py >@@ -1962,7 +1962,8 @@ > # only if it was defined already i

[issue15906] argparse add_argument() confusing behavior when type=str, default=

2012-09-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Sep 12, 2012, at 04:22 AM, Chris Jerdonek wrote: >The argparse documentation makes it pretty clear that 'type' is meant to be >applied only to strings. Then test_type_function_call_with_non_string_default() which was added to fix #12776

[issue15906] argparse add_argument() confusing behavior when type=str, default=

2012-09-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Sep 12, 2012, at 03:03 PM, R. David Murray wrote: >Actually, no, the test should not be removed, it should be reversed so as to >test the documented behavior. Good point. -- ___ Python tracker

[issue15906] argparse add_argument() confusing behavior when type=str, default=

2012-09-12 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : Added file: http://bugs.python.org/file27180/15906-3.diff ___ Python tracker <http://bugs.python.org/issue15906> ___ ___ Python-bugs-list m

[issue15906] argparse add_argument() confusing behavior when type=str, default=

2012-09-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Sep 12, 2012, at 02:48 PM, Steven Bethard wrote: >We should not be converting non-string defaults, or the documentation's >description of the type= argument doesn't make sense. Agreed. If we also take RDM's suggestion of r

[issue15906] argparse add_argument() confusing behavior when type=str, default=

2012-09-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Sep 12, 2012, at 03:40 PM, Steven Bethard wrote: >Ok, sounds good. Let's make the test check the documented behavior, and then >add back the isinstance(action.default, str) check. See patch 15906-3.diff for Python 2.7. If acceptable, I wil

[issue15906] argparse add_argument() confusing behavior when type=str, default=

2012-09-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Oops, one small correction for 15906-3.diff: In Python 2.7, s/str/basestring/ Obviously isinstance should just check for str-y-ness in Python 3.{2,3} -- ___ Python tracker <http://bugs.python.org/issue15

[issue15906] argparse add_argument() confusing behavior when type=str, default=

2012-09-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Sep 12, 2012, at 05:19 PM, R. David Murray wrote: >All three of those sound like good ideas (testing string conversion, >clarifying docs, adding the no-double conversion test). Do you want to >prepare the patch, Chris? Barry can apply his any

[issue15906] argparse add_argument() confusing behavior when type=str, default=

2012-09-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Chris, it's all yours. I am however going to close the bug as fixed. -- ___ Python tracker <http://bugs.python.org/is

[issue15906] argparse add_argument() confusing behavior when type=str, default=

2012-09-12 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue15906> ___ ___ Python-bugs-list

[issue15935] clarify argparse docs re: add_argument() type and default arguments

2012-09-25 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Looks good to me too! Thanks; I'll apply the patch. -- assignee: docs@python -> barry ___ Python tracker <http://bugs.python.org

[issue15935] clarify argparse docs re: add_argument() type and default arguments

2012-09-25 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue15935> ___ ___ Python-bugs-list

[issue12014] str.format parses replacement field incorrectly

2012-09-29 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue12014> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16189] ld_so_aix not found

2012-10-10 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Oct 10, 2012, at 04:13 PM, Éric Araujo wrote: >This probably happens in 3.2 too, where the ABI suffixes were added. I think >Barry edited the sysconfig module to let it find config-$suffixes but not >distutils.sysconfig. This sure smells famil

[issue13572] import _curses fails because of UnicodeDecodeError('utf8' codec can't decode byte 0xb5 ...') on ARM Ubuntu 3.x

2012-10-16 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I cannot reproduce it with Python 3.3 hg head on my ARM buildbot. _curses builds and imports just fine now. -- ___ Python tracker <http://bugs.python.org/issue13

[issue15872] shutil.rmtree(..., ignore_errors=True) doesn't ignore all errors

2012-10-19 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue15872> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18217] Deprecate and remove gettext.install

2014-03-13 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Mar 13, 2014, at 05:15 AM, Éric Araujo wrote: >The source contains :meth:`self.gettext`, and Sphinx adds the parentheses >when creating markup for a function, probably because it’s common to say >things like “the len() function”. There is a Sphi

[issue20976] pyflakes: remove unused imports

2014-03-20 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Mar 20, 2014, at 08:29 AM, STINNER Victor wrote: >from quopri import decodestring as _qdecode >from email.encoders import _bencode, _qencode AFAICT, _qdecode is only used in email/messages.py, so perhaps it's better to import it there and rem

[issue20976] pyflakes: remove unused imports

2014-03-20 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Mar 20, 2014, at 01:32 PM, R. David Murray wrote: >Well, one reason is I was afraid mailman might be using them. So if you are >cool with it, that removes that objection. Nope, neither the 2.1 or 3.0 code uses those methods AFAICT. >The other r

[issue20895] Add bytes.empty_buffer and deprecate bytes(17) for the same purpose

2014-03-28 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue20895> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21215] build-deps instructions for Ubuntu

2014-04-14 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: The `python3` binary package is a sort of meta package that brings in the interpreter (and some ancillary stuff) for all supported Python 3 versions. For Ubuntu 14.04 that will be just python3.4. But if you want to build the interpreter from source (e.g

[issue21215] build-deps instructions for Ubuntu

2014-04-14 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Apr 14, 2014, at 05:47 PM, R. David Murray wrote: >OK, so the devguide currently has > > sudo apt-get build-dep python3 > >which did something on Glenn's machine, but did not enable him to build the >optional packages. So the ques

[issue21272] use _sysconfigdata.py in distutils.sysconfig to initialize distutils.sysconfig

2014-04-16 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Apr 16, 2014, at 10:12 PM, Matthias Klose wrote: > >distutils/sysconfig still parses the Makefile and config header; it should >use the same approach now as the toplevel sysconfig module. Why do we still have two sysconfig modules? -- nos

[issue7776] http.client.HTTPConnection tunneling is broken

2014-05-12 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue7776> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21540] PEP 8 should recommend "is not" and "not in"

2014-05-20 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Agreed! I'll update the PEP. Thanks. -- assignee: -> barry ___ Python tracker <http://bugs.python.org/issue21540> ___

[issue21540] PEP 8 should recommend "is not" and "not in"

2014-05-20 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue21540> ___ ___ Python-bugs-list

Re: [issue21570] String being confused with datetime.datetime object.

2014-05-24 Thread M.-A. Lemburg
On 24.05.2014 15:55, Brandon wrote: > > Observe the following code: > > import MySQLdb, MySQLdb.cursors, datetime > """ ... mysqlCursor is a cursor object from a connection to database from the > MySQLdb module ... """ > mysqlCursor.execu

[issue21539] pathlib's Path.mkdir() should allow for "mkdir -p" functionality

2014-05-27 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue21539> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21539] pathlib's Path.mkdir() should allow for "mkdir -p" functionality

2014-05-27 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I've just been writing some new code to use pathlib and ran into this one myself. An exist_ok=False is fine, although it's a slight shame that for backward compatibility we can't adopt os.makedirs() si

[issue21539] pathlib's Path.mkdir() should allow for "mkdir -p" functionality

2014-05-27 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On May 27, 2014, at 08:48 PM, Antoine Pitrou wrote: >What do you mean by that? The os.makedirs() signature is >os.makedirs(name, mode=0o777, exist_ok=False) Right, but this is Path.mkdir's signature: Path.mkdir(mode=0o777, parents=False) so it

[issue21643] "File exists" error during venv --upgrade

2014-06-02 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue21643> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18807] Allow venv to create copies, even when symlinks are supported

2014-06-04 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: The os.chmod() will fail if path is a symlink. At the very least it must be guarded by a `not os.path.islink()` call like above it. I'll add this check to 3.4 and 3.5. -- nosy: +barry ___ Python tracker

[issue21736] Add __file__ attribute to frozen modules

2014-06-12 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue21736> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21736] Add __file__ attribute to frozen modules

2014-06-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I'm -0 on this patch. I can understand that in some sense, frozen modules do semantically have an associated file, but OTOH, once they're frozen the connection to their file is broken. Also, I think anything that assumes __file__ exists is sim

[issue21736] Add __file__ attribute to frozen modules

2014-06-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: PBP might be reasonably used to justify it for the frozen case. I just don't want to use that as a wedge to define __file__ in *all* cases, even when no reasonable file name exists. -- ___ Python tracker

Re: [issue11322] encoding package's normalize_encoding() function is too slow

2014-06-15 Thread M.-A. Lemburg
On 15.06.2014 15:02, Mark Lawrence wrote: > > What's the status of this issue, as we've lived with this really slow > implementation for well over three years? I guess it just needs someone to write a patch. Note that encoding lookups are cached, so the slowness only beco

[issue16389] re._compiled_typed's lru_cache causes significant degradation of the mako_v2 bench

2012-11-02 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue16389> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16499] CLI option for isolated mode

2012-11-18 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Nov 18, 2012, at 05:16 PM, Antoine Pitrou wrote: >Antoine Pitrou added the comment: > >+1 from me. "-I" and "isolated" sound fine to me. I haven't reviewed the patch yet, but based on the email discussions, I'm al

[issue16514] Cryptic traceback when sys.path[0] is None

2012-11-20 Thread Barry A. Warsaw
New submission from Barry A. Warsaw: When sys.path[0] is None, attempting to import a module produces a cryptic chained traceback. This is a regression from 3.2 where the import would succeed. The basic issue is that in 3.2's import.c, non-string/bytes items on sys.path are essent

[issue16514] Cryptic traceback when sys.path[0] is None

2012-11-20 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Patch for 3.3, omitting the requisite importlib.h change. -- keywords: +patch Added file: http://bugs.python.org/file28051/16514.diff ___ Python tracker <http://bugs.python.org/issue16

[issue16514] Cryptic traceback when sys.path[0] is None

2012-11-20 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Oh, the patch includes the removal of some unused imports from test_path.py, thanks to pyflakes. -- ___ Python tracker <http://bugs.python.org/issue16

[issue16514] Cryptic traceback when sys.path[0] is None

2012-11-20 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +brett.cannon, eric.smith, eric.snow, jason.coombs ___ Python tracker <http://bugs.python.org/issue16514> ___ ___ Python-bug

[issue16514] Cryptic traceback when sys.path[0] is None

2012-11-20 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Oh, btw, I intend to add documentation that makes explicit: * sys.path entries must be strings or bytes, everything else is ignored * path importers should expect strings or bytes * the encoding of bytes is left to the individual path hooks to define, however

[issue16514] Cryptic traceback when sys.path

2012-11-20 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Nov 20, 2012, at 04:51 PM, Eric V. Smith wrote: >I agree it's a bug. And the fix looks good to me. Thanks. >Having said that: I haven't looked at the import.c version to verify what is >happening. Does the test pass under 3.2? Yep. S

[issue16514] Cryptic traceback when sys.path[0] is None

2012-11-20 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- title: Cryptic traceback when sys.path -> Cryptic traceback when sys.path[0] is None ___ Python tracker <http://bugs.python.org/issu

[issue16514] Cryptic traceback when sys.path[0] is None

2012-11-20 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue16514> ___ ___ Python-bugs-list

[issue16574] clarify policy on updates to final peps

2012-11-28 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Nov 29, 2012, at 12:56 AM, Chris Jerdonek wrote: > >Currently, PEP 1 says, "In general, Standards track PEPs are no longer >modified after they have reached the Final state." I agree w/mvl. This is still true, and it doesn't mea

[issue16574] clarify policy on updates to final peps

2012-11-29 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Nov 29, 2012, at 12:16 PM, Martin v. Löwis wrote: >1. I think that the PEP author has the final say as to what specific text >goes into the PEP. Contributors shouldn't modify other people's PEP without >consent from the author(s). >

[issue14803] Add feature to allow code execution prior to __main__ invocation

2012-11-29 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue14803> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16581] define "PEP editor" in PEP 1

2012-11-30 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +anthony_baxter ___ Python tracker <http://bugs.python.org/issue16581> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16581] define "PEP editor" in PEP 1

2012-11-30 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Nov 30, 2012, at 02:00 AM, Chris Jerdonek wrote: >In particular, PEP 1 should say whether editorship is an invitation-only >status and/or how one becomes a PEP editor. It would also be good if it said >(for transparency) how to go about seeing th

[issue16581] define "PEP editor" in PEP 1

2012-11-30 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Nov 30, 2012, at 07:55 PM, Chris Jerdonek wrote: >Thanks for providing the info. To clarify, is membership in peps@ restricted >to editors? Yes. It may not be a perfect overlap, but that's the best we have, and should be the i

[issue16612] Integrate "Argument Clinic" specialized preprocessor into CPython trunk

2012-12-04 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue16612> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16480] pyvenv 3.3 fails to create symlinks for /local/{bin, lib} to /{bin, lib}

2012-12-20 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue16480> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16047] Tools/freeze no longer works in Python 3

2013-01-02 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Jan 02, 2013, at 04:06 PM, Meador Inge wrote: >I am a little unsure about (3) since I am not sure why the __file__ attribute >is being removed to begin with. eric.smith? This is related to PEP 420, which relaxes the requirement that all modules

[issue16047] Tools/freeze no longer works in Python 3

2013-01-02 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Jan 02, 2013, at 04:29 PM, Eric V. Smith wrote: >I haven't had time to check yet: but why does site.py need the __file__ >attribute? Maybe that's the actual problem. It uses it to find the license text when you type license() at the intera

[issue10182] match_start truncates large values

2013-01-10 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Note that this change is causing problems with genshi due to API backward incompatibility. This is reported here: https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/1097783 The reason the user found it in Ubuntu first is that we track hg tip, but I&#x

[issue10182] match_start truncates large values

2013-01-10 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Nosied Benjamin since this is a release issue. Re-opened, assigned to him, and release blocked for 2.7.4. -- assignee: -> benjamin.peterson nosy: +georg.brandl, larry priority: normal -> release blocker status: closed -

[issue10182] match_start truncates large values

2013-01-10 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +benjamin.peterson ___ Python tracker <http://bugs.python.org/issue10182> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16965] 2to3 should rewrite execfile() to open in 'rb' mode

2013-01-14 Thread Barry A. Warsaw
New submission from Barry A. Warsaw: In this distribute bug I describe a problem when pip installing mimeparse, which has a setup.py with a BOM. distribute uses execfile() which gets fixed in Python 3 to use a combination of compile(open()) as the fixer. https://bitbucket.org/tarek

[issue3585] pkg-config support

2013-01-16 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue3585> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17078] string.Template.safe_substitute hard-wires "braces" as {}

2013-01-29 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: See PEP 292 and the section titled "Why `$' and Braces?" http://www.python.org/dev/peps/pep-0292/ -- ___ Python tracker <http://bugs.pyt

[issue17098] Set __loader__ on modules imported by the C level

2013-02-01 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue17098> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17099] Raise ValueError when __loader__ not defined for importlib.find_loader()

2013-02-01 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue17099> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15767] add ModuleNotFoundError

2013-02-11 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue15767> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15767] add ModuleNotFoundError

2013-02-11 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: For me, it mostly comes down to whether end-users are expected to see such errors generally or not. We see ImportErrors all the time, and they are clearly errors. If we're expected to see and deal with MNF, and if in such cases it's generally con

[issue15767] add ModuleNotFoundError

2013-02-11 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Feb 11, 2013, at 05:31 PM, Brett Cannon wrote: >Right, so what's typical? =) I mean do most people see ImportError for >optional modules (e.g. not on support platforms), or do most people see >ImportError because they messed up and tried to im

[issue16043] xmlrpc: gzip_decode has unlimited read()

2013-09-15 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- versions: -Python 2.6 ___ Python tracker <http://bugs.python.org/issue16043> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16040] nntplib: unlimited readline() from connection

2013-09-15 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Any more thoughts on this bug w.r.t. 2.6.9? It seems that without a patch for any version of Python, and with 2.6.9 coming soon, a fix for this just won't make it into 2.6.9. That doesn't bother me too much, and I'm willing to just kno

[issue19025] Deleting attribute of Enum gives misleading error message

2013-09-15 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue19025> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16042] smtplib: unlimited readline() from connection

2013-09-15 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Patch looks great, thanks Andrew. All tests pass. Feel free to commit to the 2.6 branch along with a NEWS file entry. -- ___ Python tracker <http://bugs.python.org/issue16

[issue16042] smtplib: unlimited readline() from connection

2013-09-15 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Sep 15, 2013, at 04:47 PM, Serhiy Storchaka wrote: >It is not important in the context of this issue, but readline(0) is blocked >and returns 1-character string. Move the length check above >self.sslobj.read(1). For readability you can also mov

[issue18709] SSL module fails to handle NULL bytes inside subjectAltNames general names (CVE-2013-4238)

2013-09-15 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I'm removing 2.6 from the Versions field since AFAIK we've resolved this issue for 2.6. This way it'll be easier to scan the blockers for 2.6.9. If anyone things we still have things to address for this issue in 2.6.9, please reassign

<    13   14   15   16   17   18   19   20   21   22   >