[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

[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

[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:

[issue16821] bundlebuilder broken in 2.7

2012-12-30 Thread Barry Alan Scott
New submission from Barry Alan Scott: bundlebuild in pytthon 2.7 fails to create usable applications. After examining the code there are a number of coding errors: 1. optimize will puts the -O in the wrong place in the argv 2. Modules.zip is never added to the path The bunderbuilder in 2.6

[issue16821] bundlebuilder broken in 2.7

2012-12-30 Thread Barry Alan Scott
Barry Alan Scott added the comment: I'm using the pysvn workbench sources to find the problem. Test cases for Mac Apps are not that simple. You need a GUI framework for starters. But I'm happy to test any candidate fix using workbench. As I said a code inspection of the changes sinc

[issue16821] bundlebuilder broken in 2.7

2012-12-31 Thread Barry Alan Scott
Barry Alan Scott added the comment: Why not use IDLE? Workbench is a lot of code and dependencies. I expect that it works because idle.app was created using the --no-zipimport option that is new in 2.7. However with zip import the code is badly broken. Build IDLE.app with zip import and you

[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

[issue14984] netrc module allows read of non-secured .netrc file

2013-09-15 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Sep 15, 2013, at 06:05 PM, R. David Murray wrote: >For the security fix, the check should only be done if the file is the the >default .netrc. (Which would also make your error message >correct...otherwise it is not :) Also, it would make more

[issue14984] netrc module allows read of non-secured .netrc file

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

[issue16042] smtplib: unlimited readline() from connection

2013-09-15 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Sep 15, 2013, at 05:34 PM, Serhiy Storchaka wrote: >Oh, right. The correct code should be as I proposed in msg173413 or... as >Andrew has committed. Good. Excellent. So we're good for this in 2

[issue14984] netrc module allows read of non-secured .netrc file

2013-09-15 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Sep 15, 2013, at 06:51 PM, R. David Murray wrote: >I could write a 2.6 test for the permissions part, but not for the incorrect >owner part. Do you want one without the other? Yeah, I guess you can't mock os or stat in 2.6. ;) Let's tes

[issue18747] Re-seed OpenSSL's PRNG after fork

2013-09-15 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: After further contemplation and without objection from __ap__ and Crys on IRC, I am de-targeting this for 2.6. I won't apply it for 2.6.9. -- versions: -Python 2.6 ___ Python tracker <http://bugs.py

[issue14984] netrc module allows read of non-secured .netrc file

2013-09-15 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: FWIW, the Ubuntu manpage netrc(5) says: password string Supply a password. If this token is present, the auto-login process will supply the specified string if the remote server requires a password as part of

[issue16038] ftplib: unlimited readline() from connection

2013-09-15 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: == FAIL: test_retrlines_too_long (__main__.TestFTPClass) -- Traceback (most recent call last): File "Lib

[issue14984] netrc module allows read of non-secured .netrc file

2013-09-15 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: @RDM: In netrc.rst, s/posix/POSIX/ It also looks like you're keeping the ownership test. Did I misunderstand msg197815? I thought you were only going to keep the permission test? -- ___ Python tracker

[issue14984] netrc module allows read of non-secured .netrc file

2013-09-16 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: @RDM: Please commit to 2.6 and null merge to 2.7. Thanks! -- ___ Python tracker <http://bugs.python.org/issue14984> ___ ___

[issue14984] netrc module allows read of non-secured .netrc file

2013-09-16 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Sep 16, 2013, at 03:12 PM, R. David Murray wrote: >Well, I was planning to merge it, since 2.7 needs the fix as well. Oh yeah, that's fine of course. And thanks! -- ___ Python tracker <http://bugs

[issue16038] ftplib: unlimited readline() from connection

2013-09-16 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Yep, confirmed that ftplib.patch causes test_ftplib to fail, at least on Ubuntu 10.04 chroot. -- ___ Python tracker <http://bugs.python.org/issue16

[issue16038] ftplib: unlimited readline() from connection

2013-09-16 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Succeeds on OS X 10.8 (although there are other failures) -- ___ Python tracker <http://bugs.python.org/issue16038> ___ ___

[issue19043] Remove detailed listing of all versions from LICENSE, Doc/license.rst

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

[issue16038] ftplib: unlimited readline() from connection

2013-09-22 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Okay, this one is quite odd. It's definitely a timing issue. If I put a `import time; time.sleep(1)` at the beginning of test_retrlines_too_line() -- i.e. first line of the method -- then the test reliably passes. If I put a `print(len(line))` just b

[issue16039] imaplib: unlimited readline() from connection

2013-09-22 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Looks good for 2.6. The NEWS file hunk doesn't apply, but I'll fix that when I commit this to 2.6. -- ___ Python tracker <http://bugs.python.o

[issue16039] imaplib: unlimited readline() from connection

2013-09-22 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Since the merge 2.6 -> 2.7 did not apply cleanly, and had other problems. I null merged the 2.6 changes. I'll leave it to Benjamin to work out whatever patches 2.7 needs. -- versions: -Python 2.6 __

[issue16042] smtplib: unlimited readline() from connection

2013-09-22 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Please don't add 2.6 back to the Versions, unless there's actually something to do for 2.6. AFAIK, this issue is resolved for 2.6. -- versions: -Python 2.6 ___ Python tracker <http://bugs.python.o

[issue16038] ftplib: unlimited readline() from connection

2013-09-23 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Sep 23, 2013, at 03:36 PM, Serhiy Storchaka wrote: >What about time.sleep(0.1)? I usually don't like introducing sleeps to fix race conditions, but if that's the only option for landing this patch, maybe we'll have to hold o

[issue16038] ftplib: unlimited readline() from connection

2013-09-23 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Sep 23, 2013, at 06:33 PM, Giampaolo Rodola' wrote: >Barry can you paste the traceback caused by the race condition? What's not >clear to me is when (what line) it occurs. One solution might be to send a >"NOOP" command (se

[issue16038] ftplib: unlimited readline() from connection

2013-09-24 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Sep 24, 2013, at 01:12 PM, Giampaolo Rodola' wrote: >Giampaolo Rodola' added the comment: > >I believe the problem is the set of next_retr_data attribute here: > >def test_retrlines_too_long(self): >self.server

[issue19084] No way to use TLS-PSK from python ssl

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

[issue16038] ftplib: unlimited readline() from connection

2013-09-24 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Sep 24, 2013, at 09:59 PM, Serhiy Storchaka wrote: >Added file: http://bugs.python.org/file31862/ftplib_maxline.patch This looks great and fixes the test failure problem. Thanks! Serhiy, please feel free to apply this to the 2.6 branch, or let me know

[issue16038] ftplib: unlimited readline() from connection

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

[issue19092] ExitStack.__exit__ incorrectly suppresses exceptions in __exit__ callbacks of inner context managers

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

[issue16037] httplib: header parsing is not unlimited

2013-09-29 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: As we discussed in other issues regarding the similar problem, I don't really want to introduce a new exception in a point release of 2.6. Is there any reason not to just raise HTTPException with the error message text? Code that has to work a

[issue16037] httplib: header parsing is not unlimited

2013-09-29 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I'm just going to go ahead and commit this patch to 2.6 with the change I mentioned. Does anything else need to be done for 2.6? -- ___ Python tracker <http://bugs.python.org/is

[issue16037] httplib: header parsing is not unlimited

2013-09-29 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Thanks! -- versions: -Python 2.6 ___ Python tracker <http://bugs.python.org/issue16037> ___ ___ Python-bugs-list mailin

[issue16041] poplib: unlimited readline() from connection

2013-09-29 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Looks good, although only the POP3 exception is actually tested. The POP3_SSL exception isn't tested. Any chance you could add a test for that (obviously, only if `import ssl` succeeds)? -- ___ Python tr

[issue16041] poplib: unlimited readline() from connection

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

[issue16041] poplib: unlimited readline() from connection

2013-09-30 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Sep 30, 2013, at 08:41 PM, Arfrever Frehtes Taifersar Arahesis wrote: > >Arfrever Frehtes Taifersar Arahesis added the comment: > >> New changeset 7214e3324a45 by Barry Warsaw in branch '2.6': >> - Issue #16041: CVE-2013-1

[issue16040] nntplib: unlimited readline() from connection

2013-09-30 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Looks great, thanks! I'll apply this to 2.6.9 but let others forward port it to 2.7. -- ___ Python tracker <http://bugs.python.org/is

[issue16040] nntplib: unlimited readline() from connection

2013-09-30 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Sep 30, 2013, at 09:43 PM, Jyrki Pulliainen wrote: >I also wonder if there should be data error risen instead? Current docstrings >of the errors are not that well fit. I guess a data error makes the least nonsense here, so I'll change it over to

[issue16040] nntplib: unlimited readline() from connection

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

[issue16040] nntplib: unlimited readline() from connection

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

[issue16040] nntplib: unlimited readline() from connection

2013-10-01 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Oct 01, 2013, at 01:44 PM, Arfrever Frehtes Taifersar Arahesis wrote: >s/lenght/length/ in new comment in Lib/nntplib.py Fixed, thanks. -- ___ Python tracker <http://bugs.python.org/issu

[issue19205] Don't import re and sysconfig in site.py

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

[issue19209] Remove import copyreg from os module

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

[issue9548] locale can be imported at startup but relies on too many library modules

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

[issue19216] stat cache for import bootstrap

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

<    16   17   18   19   20   21   22   23   24   25   >