[issue13498] os.makedirs exist_ok documentation is incorrect, as is some of the behavior

2012-07-31 Thread Hynek Schlawack
Hynek Schlawack added the comment: So, IMHO if someone calls os.makedirs with a mode != 0o777, they expect to have the directories having those modes afterward. So raising no error if they exist and have the wrong mode would be a plain bug. Python 3.3 already has a helpful error message

[issue13498] os.makedirs exist_ok documentation is incorrect, as is some of the behavior

2012-08-04 Thread Hynek Schlawack
Hynek Schlawack added the comment: do you want it by default or a new flag? default sounds like a source for obscure bugs to me. -- ___ Python tracker <http://bugs.python.org/issue13

[issue13498] os.makedirs exist_ok documentation is incorrect, as is some of the behavior

2012-08-05 Thread Hynek Schlawack
Hynek Schlawack added the comment: How about something along of: new arg on_wrong_perm= 1. WRONG_PERM_IGNORE 2. WRONG_PERM_FAIL 3. callable that gets called with the directory name and maybe the existing perms to save stat call_ ? -- ___ Python

[issue13498] os.makedirs exist_ok documentation is incorrect, as is some of the behavior

2012-08-13 Thread Hynek Schlawack
Hynek Schlawack added the comment: Silence means consent, so I will supply a patch as soon as 3.4 is open. Meanwhile, I reworded the docs for os.makedirs, the patch is attached. Please have a look at it so we can get it in for 3.3. -- keywords: +patch stage: needs patch -> pa

[issue13498] os.makedirs exist_ok documentation is incorrect, as is some of the behavior

2012-08-13 Thread Hynek Schlawack
Hynek Schlawack added the comment: > Silence doesn't mean consent, but it does mean you can go ahead and see if > anyone complains :) Well that's what I meant. :) > I think your proposal is fine, but I'd prefer making the sentinels just > "IGNORE" and &q

[issue13498] os.makedirs exist_ok documentation is incorrect, as is some of the behavior

2012-08-18 Thread Hynek Schlawack
Hynek Schlawack added the comment: Ok, let’s do it here, that’s easier: .. function:: makedirs(path, mode=0o777, exist_ok=False) .. index:: single: directory; creating single: UNC paths; and os.makedirs() Recursive directory creation function. Like :func:`mkdir`, but makes

[issue15760] make install should generate grammar file

2012-08-22 Thread Hynek Schlawack
Hynek Schlawack added the comment: Seems related to #15645, no? -- nosy: +hynek ___ Python tracker <http://bugs.python.org/issue15760> ___ ___ Python-bugs-list m

[issue14880] csv.reader and .writer use wrong kwargs notation in 2.7 docs

2012-08-27 Thread Hynek Schlawack
Hynek Schlawack added the comment: What does bother you? Both sigs look like in py3 if I'm looking correctly. -- ___ Python tracker <http://bugs.python.org/is

[issue14880] csv.reader and .writer use wrong kwargs notation in 2.7 docs

2012-08-28 Thread Hynek Schlawack
Hynek Schlawack added the comment: It seems correct like that: static PyObject * csv_register_dialect(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *name_obj, *dialect_obj = NULL; PyObject *dialect; if (!PyArg_UnpackTuple(args, "", 1, 2, &name_obj

[issue14880] csv.reader and .writer use wrong kwargs notation in 2.7 docs

2012-08-28 Thread Hynek Schlawack
Hynek Schlawack added the comment: Thank you for your contribution Chris! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue16040] nntplib: unlimited readline() from connection

2012-09-25 Thread Hynek Schlawack
Changes by Hynek Schlawack : -- nosy: +hynek ___ Python tracker <http://bugs.python.org/issue16040> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13498] os.makedirs exist_ok documentation is incorrect, as is some of the behavior

2012-10-07 Thread Hynek Schlawack
Hynek Schlawack added the comment: Let's get this rolling again. First let's fix the docs for 3.2+ first. My current suggestion would be the following: ~~~ .. function:: makedirs(path, mode=0o777, exist_ok=False) .. index:: single: directory; creating single: UNC

[issue16040] nntplib: unlimited readline() from connection

2012-10-07 Thread Hynek Schlawack
Hynek Schlawack added the comment: Any suggestions on the value for _MAXLINE or just steal the 64k from httplib? -- ___ Python tracker <http://bugs.python.org/issue16

[issue13837] test_shutil fails with symlinks enabled under Windows

2012-10-07 Thread Hynek Schlawack
Hynek Schlawack added the comment: Pong? I understand we have to close #15411 & #9949 first? Can't help here out due to lack of Windows. -- dependencies: +os.chmod() does not follow symlinks on Windows, os.path.realpath on Windows does not follow symbo

[issue15411] os.chmod() does not follow symlinks on Windows

2012-10-07 Thread Hynek Schlawack
Changes by Hynek Schlawack : -- nosy: +brian.curtin, tim.golden ___ Python tracker <http://bugs.python.org/issue15411> ___ ___ Python-bugs-list mailing list Unsub

[issue16099] robotparser doesn't support request rate and crawl delay parameters

2012-10-07 Thread Hynek Schlawack
Changes by Hynek Schlawack : -- nosy: +hynek ___ Python tracker <http://bugs.python.org/issue16099> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16179] hashlib.md5 / json inconsistency

2012-10-10 Thread Hynek Schlawack
Hynek Schlawack added the comment: Actually, that’s not the point here, the code has a deeper flaw. You’re computing hashlib.md5() on `data.encode()` and `str(jsonData).encode()`. Did you have a look how they look like? >>> data.encode() b'{"key1":"value1&q

[issue16202] sys.path[0] security issues

2012-10-12 Thread Hynek Schlawack
Changes by Hynek Schlawack : -- nosy: +hynek ___ Python tracker <http://bugs.python.org/issue16202> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16244] TimedRotatingFileHandler forces "write" mode, should use "append"

2012-10-15 Thread Hynek Schlawack
Changes by Hynek Schlawack : -- nosy: +hynek ___ Python tracker <http://bugs.python.org/issue16244> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2012-10-20 Thread Hynek Schlawack
Hynek Schlawack added the comment: > To be honest I don't really understand the point of the ignore_errors flag on > rmtree. If rmtree fails to delete the directory tree (which will happen if > one of the files can't be deleted), why would you want it to return > succes

[issue13498] os.makedirs exist_ok documentation is incorrect, as is some of the behavior

2012-10-23 Thread Hynek Schlawack
Hynek Schlawack added the comment: As announced, I hereby present an idea how to solve this problem for 3.4. Please have a look at it. :) -- assignee: docs@python -> versions: -Python 3.2, Python 3.3 Added file: http://bugs.python.org/file27683/makedirs-on_wrong_mode-1.d

[issue16307] multiprocess.pool.map_async callables not working

2012-10-24 Thread Hynek Schlawack
Hynek Schlawack added the comment: Could you add a test please? Thanks! -- ___ Python tracker <http://bugs.python.org/issue16307> ___ ___ Python-bugs-list mailin

[issue16313] Support xz compression in shutil module

2012-10-26 Thread Hynek Schlawack
Hynek Schlawack added the comment: Isn’t this a dupe of #5411? -- ___ Python tracker <http://bugs.python.org/issue16313> ___ ___ Python-bugs-list mailin

[issue16307] multiprocess.pool.map_async callables not working

2012-10-26 Thread Hynek Schlawack
Hynek Schlawack added the comment: Thanks for taking the time! I remember my frustrations when trying to grok how the mp test suite works. :) A small nit-pick first: you have a lot of extra white space in your patches. Just run 'make patchcheck' first, that should warn you about

[issue16307] multiprocess.pool.map_async callables not working

2012-10-26 Thread Hynek Schlawack
Hynek Schlawack added the comment: True, it makes sense to push this assert to the end. -- ___ Python tracker <http://bugs.python.org/issue16307> ___ ___ Pytho

[issue16307] multiprocess.pool.map_async callables not working

2012-10-27 Thread Hynek Schlawack
Hynek Schlawack added the comment: LGTM. Presuming you want to submit more patches in future, please take the time to sign a Python contributor agreement: http://www.python.org/psf/contrib/ . You'll get a pretty star next to your name in the bug tracker in r

[issue16307] multiprocess.pool.map_async callables not working

2012-10-27 Thread Hynek Schlawack
Hynek Schlawack added the comment: Applied. Thank you for your contribution! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue1492704] distinct error type if shutil.copyfile() fails because of src and dst are the same file

2012-10-28 Thread Hynek Schlawack
Hynek Schlawack added the comment: You're welcome. :) -- ___ Python tracker <http://bugs.python.org/issue1492704> ___ ___ Python-bugs-list mailing list

[issue5411] Add xz support to shutil

2012-11-01 Thread Hynek Schlawack
Hynek Schlawack added the comment: Éric, what’s your take on this approach (not code)? We have time enough till 3.4 but it seems this doesn't really move forward. Any thoughts how to get this moving? Unfortunately I'm not invested enough in this to make a educated

[issue16381] Introduce option to force the interpreter to exit upon MemoryErrors

2012-11-01 Thread Hynek Schlawack
Changes by Hynek Schlawack : -- nosy: +hynek ___ Python tracker <http://bugs.python.org/issue16381> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14794] slice.indices raises OverflowError

2012-11-02 Thread Hynek Schlawack
Changes by Hynek Schlawack : -- versions: +Python 3.4 ___ Python tracker <http://bugs.python.org/issue14794> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15001] segmentation fault with del sys.module['__main__']

2012-11-02 Thread Hynek Schlawack
Hynek Schlawack added the comment: Fun fact, on 2.7 & 3.2 I get infinite loops @ 100% CPU. 3.3 & default crash. Unless someone yells, I'll polish this up and commit next week. -- stage: -> commit review versions: +Python 3.4 -Python 3.1 __

[issue15148] shutil.which() docstring could be clearer

2012-11-02 Thread Hynek Schlawack
Hynek Schlawack added the comment: Any reason why this is still open? -- ___ Python tracker <http://bugs.python.org/issue15148> ___ ___ Python-bugs-list mailin

[issue15104] Unclear language in __main__ description

2012-11-02 Thread Hynek Schlawack
Changes by Hynek Schlawack : -- nosy: -hynek ___ Python tracker <http://bugs.python.org/issue15104> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15490] Correct __sizeof__ support for StringIO

2012-11-02 Thread Hynek Schlawack
Changes by Hynek Schlawack : -- nosy: -hynek ___ Python tracker <http://bugs.python.org/issue15490> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16099] robotparser doesn't support request rate and crawl delay parameters

2012-11-02 Thread Hynek Schlawack
Changes by Hynek Schlawack : -- nosy: +orsenthil ___ Python tracker <http://bugs.python.org/issue16099> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15001] segmentation fault with del sys.modules['__main__']

2012-11-07 Thread Hynek Schlawack
Hynek Schlawack added the comment: This should be fixed now, thanks to all who helped! -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

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

2012-12-10 Thread Hynek Schlawack
Hynek Schlawack added the comment: “I wish I were wrangling inconsistent Windows buildbots.” Nobody. Ever. *sigh* It appears they are appeased now, so finally closing. Thanks for the patches everyone! -- resolution: -> fixed stage: patch review -> committed/rejected status

[issue16695] Clarify fnmatch & glob docs about the handling of leading "."s

2012-12-16 Thread Hynek Schlawack
New submission from Hynek Schlawack: See issue16664. -- assignee: docs@python components: Documentation keywords: easy messages: 177584 nosy: Sebastian.Kreft, docs@python, hynek, pitrou priority: normal severity: normal stage: needs patch status: open title: Clarify fnmatch & glob

[issue16664] Test Glob: files starting with .

2012-12-16 Thread Hynek Schlawack
Hynek Schlawack added the comment: Patch LGTM and will be applied, I have opened issue16695 for the related update of the docs. BTW how did you create the patch? The bugtracker/Rietveld didn't recognize it for review and applying it took some effort too. -- title: [PATCH] Test

[issue16618] Different glob() results for strings and bytes

2012-12-16 Thread Hynek Schlawack
Changes by Hynek Schlawack : -- nosy: +hynek ___ Python tracker <http://bugs.python.org/issue16618> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16664] Test Glob: files starting with .

2012-12-16 Thread Hynek Schlawack
Hynek Schlawack added the comment: Thank you for your patch and welcome to CPython core development! Presuming you want to submit more patches in future, please take the time to sign a Python contributor agreement: http://www.python.org/psf/contrib/ . You'll get a pretty star next to

[issue16706] Get rid of os.error. Use OSError instead

2012-12-17 Thread Hynek Schlawack
New submission from Hynek Schlawack: Ah yeah I support this endeavor, I fixed a few instances in rmtree while working on it. It’s just confusing. JFTR, is there any rationale/reason to do it? Last time I checked it wasn’t deprecated. -- nosy: +hynek

[issue16706] Get rid of os.error. Use OSError instead

2012-12-18 Thread Hynek Schlawack
Hynek Schlawack added the comment: > I think deprecation makes not big value. > We should continue aliases support and there are no place to raise warning. > What we can do — mention deprecation in the doc. That’s what I meant. I saw it in shutil code, were confused, looked it up, won

[issue16618] Different glob() results for strings and bytes

2012-12-22 Thread Hynek Schlawack
Hynek Schlawack added the comment: Serhiy, are you going to update your patches? I can implement the feedback of our Q4 Community Service Award awardee too in case you’re busy. -- ___ Python tracker <http://bugs.python.org/issue16

[issue16618] Different glob() results for strings and bytes

2012-12-27 Thread Hynek Schlawack
Hynek Schlawack added the comment: Thanks Serhiy! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue15840] Ambiguity with regard to the effect of accessing a closed IOBase instance

2012-12-27 Thread Hynek Schlawack
Hynek Schlawack added the comment: I agree that standardize behavior here would be useful. But it sounds like a candidate for 3.4. Unifying/changing it for existing releases appears rather hairy to me? -- assignee: docs@python -> type: -> behavior versions: +Pyth

[issue15594] test_copyfile_named_pipe() fails on Mac OS X Snow Leopard: OSError: [Errno 22] Invalid argument

2012-12-27 Thread Hynek Schlawack
Hynek Schlawack added the comment: Any news? Wouldn’t Apple give us a license for our buildbots like MSFT does? -- ___ Python tracker <http://bugs.python.org/issue15

[issue14870] Descriptions of os.utime() and os.utimensat() use wrong notation

2012-12-27 Thread Hynek Schlawack
Hynek Schlawack added the comment: Turns out, Larry fixed these two while working on #14626. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue7325] tempfile.mkdtemp() does not return absolute pathname when relative dir is specified

2012-12-27 Thread Hynek Schlawack
Hynek Schlawack added the comment: I think we should resolve this one line change. Jessica’s patch looks just fine, so I tend to apply it. However, I’d like to document the current behavior in 2.7, 3.2, 3.3 and 3.4. Am I missing anything? -- nosy: +hynek versions: +Python 2.7

[issue1610654] cgi.py multipart/form-data

2012-12-27 Thread Hynek Schlawack
Hynek Schlawack added the comment: It would be great if someone could port this patch to Python 3.4 and verify its effectiveness. -- keywords: +easy -patch stage: test needed -> needs patch versions: +Python 3.4 -Python 3.2, Python 3.3 ___ Pyt

[issue11063] uuid.py module import has heavy side effects

2012-12-27 Thread Hynek Schlawack
Hynek Schlawack added the comment: The patch hasn’t incorporated Antoine’s comments AFAICT. Also I don’t see this fit for back porting to bug fix releases. Correct me if I’m wrong. -- nosy: +hynek stage: patch review -> needs patch versions: +Python 3.4 -Python 2.7, Python 3.2, Pyt

[issue15450] Allow dircmp.subdirs to behave well under subclassing

2012-12-27 Thread Hynek Schlawack
Changes by Hynek Schlawack : -- nosy: +hynek ___ Python tracker <http://bugs.python.org/issue15450> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16815] Is all OK!!

2012-12-29 Thread Hynek Schlawack
New submission from Hynek Schlawack: Glad to hear. -- nosy: +hynek resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue16591] RUNSHARED wrong for OSX no framework

2012-12-31 Thread Hynek Schlawack
Hynek Schlawack added the comment: $(pwd) -- stage: -> patch review versions: +Python 3.4 ___ Python tracker <http://bugs.python.org/issue16591> ___ ___ Py

[issue16591] RUNSHARED wrong for OSX no framework

2012-12-31 Thread Hynek Schlawack
Hynek Schlawack added the comment: I’m fine with that. My focus was fixing the ticket metadata. :) -- ___ Python tracker <http://bugs.python.org/issue16

[issue6975] symlinks incorrectly resolved on Linux

2013-01-09 Thread Hynek Schlawack
Hynek Schlawack added the comment: I will review this first thing tomorrow. -- ___ Python tracker <http://bugs.python.org/issue6975> ___ ___ Python-bugs-list m

[issue6975] symlinks incorrectly resolved on POSIX platforms

2013-01-10 Thread Hynek Schlawack
Changes by Hynek Schlawack : -- title: symlinks incorrectly resolved on Linux -> symlinks incorrectly resolved on POSIX platforms ___ Python tracker <http://bugs.python.org/iss

[issue15881] multiprocessing 'NoneType' object is not callable

2013-01-20 Thread Hynek Schlawack
Changes by Hynek Schlawack : -- nosy: +hynek ___ Python tracker <http://bugs.python.org/issue15881> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17006] Warn users about hashing secrets?

2013-01-21 Thread Hynek Schlawack
Hynek Schlawack added the comment: I think since we ship cryptographic functions, we should take responsibility and warn against the most common mistakes people do. -- nosy: +hynek ___ Python tracker <http://bugs.python.org/issue17

[issue17076] shutil.copytree failing on xattr-less filesystems (like NFS)

2013-01-29 Thread Hynek Schlawack
Hynek Schlawack added the comment: Could you add regression tests to your patch please? -- assignee: -> hynek priority: high -> normal type: crash -> behavior ___ Python tracker <http://bugs.python.or

[issue17121] SSH upload for distutils

2013-02-04 Thread Hynek Schlawack
Hynek Schlawack added the comment: I would strongly prefer to back port certificate validation instead. Is there anything *practical* that makes it hard/impossible? If we want to keep features stable, we can add it privately so it’s only usable by distutils. The susceptibility to (easy!) MITM

[issue17076] shutil.copytree failing on xattr-less filesystems (like NFS)

2013-02-04 Thread Hynek Schlawack
Changes by Hynek Schlawack : -- versions: +Python 3.4 ___ Python tracker <http://bugs.python.org/issue17076> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17076] shutil.copytree failing on xattr-less filesystems (like NFS)

2013-02-05 Thread Hynek Schlawack
Hynek Schlawack added the comment: The buildbots look happy, thank you for spotting & the patch Thomas! -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.o

[issue17153] tarfile extract fails when Unicode in pathname

2013-02-08 Thread Hynek Schlawack
Changes by Hynek Schlawack : -- nosy: +hynek ___ Python tracker <http://bugs.python.org/issue17153> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1610654] cgi.py multipart/form-data

2014-07-08 Thread Hynek Schlawack
Hynek Schlawack added the comment: I would have long ago if I had any domain knowlege on this topic, but alas…. -- ___ Python tracker <http://bugs.python.org/issue1610

[issue20207] Disable SSLv2 in Python 2.x

2014-01-09 Thread Hynek Schlawack
Hynek Schlawack added the comment: I’m +1 too since supporting it serves no other purpose then enabling downgrade attacks. Shipping a client with SSL 2 on is nothing short a security bug. -- nosy: +hynek ___ Python tracker <http://bugs.python.

[issue27589] asyncio doc: issue in as_completed() doc

2016-08-01 Thread Hynek Schlawack
Hynek Schlawack added the comment: More explicitly: The doc sells the function short. If you have a bunch of futures and want to know as soon as one of them is ready: this is the function for you. The only hint that this is the actual behavior comes from the *name* of the function; not the

[issue27850] Remove 3DES from cipher list (sweet32 CVE-2016-2183)

2016-08-24 Thread Hynek Schlawack
Hynek Schlawack added the comment: JFTR the main compatibility impact on the browser side is the loss of IE8 on WinXP whose last stable release is qua Wikipedia from “February 22, 2011; 5 years ago”. -- nosy: +hynek ___ Python tracker <h

[issue17180] shutil copy* unsafe on POSIX - they preserve setuid/setgit bits

2013-02-13 Thread Hynek Schlawack
Hynek Schlawack added the comment: While I agree that it’s a problem, I’m a bit uneasy about changing that back to 2.7. I’m pretty sure this would break numerous programs. -- ___ Python tracker <http://bugs.python.org/issue17

[issue17180] shutil copy* unsafe on POSIX - they preserve setuid/setgit bits

2013-02-13 Thread Hynek Schlawack
Hynek Schlawack added the comment: Yeah, I’m thinking about backup scripts etc. -- ___ Python tracker <http://bugs.python.org/issue17180> ___ ___ Python-bug

[issue17180] shutil copy* unsafe on POSIX - they preserve setuid/setgit bits

2013-02-13 Thread Hynek Schlawack
Hynek Schlawack added the comment: SGTM. I’d like an explicit warning on the security implications in the docs though. -- ___ Python tracker <http://bugs.python.org/issue17

[issue11063] uuid.py module import has heavy side effects

2013-02-24 Thread Hynek Schlawack
Hynek Schlawack added the comment: Jyrki, roundup doesn’t seem to recognize you patch so we can’t review it in Rietveld. Could you re-try, maybe using hg? -- ___ Python tracker <http://bugs.python.org/issue11

[issue17538] Document XML Vulnerabilties

2013-03-25 Thread Hynek Schlawack
Hynek Schlawack added the comment: I feel like there should be a warning in Doc/library/xml.rst too. Is there any actual reason why we don’t ship defusedxml with Python and add an easy way to monkeypatch so there’s as little passive barriers as possible to use XML “safely”? I’m sorry I

[issue21859] Add Python implementation of FileIO

2015-03-23 Thread Hynek Schlawack
Changes by Hynek Schlawack : -- nosy: -hynek ___ Python tracker <http://bugs.python.org/issue21859> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27589] asyncio doc: issue in as_completed() doc

2016-11-08 Thread Hynek Schlawack
Hynek Schlawack added the comment: Such an idiom is IMHO not the main usefulness of this function tho. As an (untested) example, something like async def f(n): await asyncio.sleep(n) return n for f in asyncio.as_completed([f(3), f(2), f(1)]): print(await f) will print: 1 2 3

<    1   2   3   4