[issue35951] os.renames() creates directories if original name doesn't exist

2019-02-09 Thread Chris Jerdonek
New submission from Chris Jerdonek : os.renames() creates and leaves behind the intermediate directories if the original (source) path doesn't exist. >>> import os >>> os.mkdir('temp') >>> os.mkdir('temp/test') >>> os.renames('

[issue35951] os.renames() creates directories if original name doesn't exist

2019-02-10 Thread Chris Jerdonek
Chris Jerdonek added the comment: Lacking permissions seems very different to me from the source directory or file not existing. For example, in the example I provided, I did have the needed permissions. Incidentally (and this is a separate documentation issue), the note seems unclear as

[issue35955] difflib reports incorrect location of mismatch

2019-02-11 Thread Chris Jerdonek
Chris Jerdonek added the comment: Is this a duplicate of issue24780? -- nosy: +chris.jerdonek ___ Python tracker <https://bugs.python.org/issue35955> ___ ___

[issue35951] os.renames() creates directories if original name doesn't exist

2019-02-12 Thread Chris Jerdonek
Chris Jerdonek added the comment: > As such the cleanup in case of failure should not be expected, Given that the documentation specifically calls out permissions errors as a cause of leaving the new directory in place, it wouldn't be unreasonable for someone to think the functio

[issue34028] Python 3.7.0 wont compile with SSL Support 1.1.0 > alledged missing X509_VERIFY_PARAM_set1_host() support

2019-02-16 Thread Chris Jerdonek
Change by Chris Jerdonek : -- nosy: +chris.jerdonek ___ Python tracker <https://bugs.python.org/issue34028> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35951] os.renames() creates directories if original name doesn't exist

2019-02-17 Thread Chris Jerdonek
Chris Jerdonek added the comment: > And since it seems that it can not be solved completely, You may be right only to document, but you didn't note any problems with the possibility I suggested. A cleanup pruning step could be done on failure that is similar to the cleanup pruning

[issue32363] Deprecate task.set_result() and task.set_exception()

2019-02-19 Thread Chris Jerdonek
Chris Jerdonek added the comment: > Use Task.cancel() or use a Queue to communicate with the task. One reason why Task.cancel() is an incomplete replacement for Task.set_exception() is that you don't have an easy way to communicate why the task was ended. With set_excepti

[issue32363] Deprecate task.set_result() and task.set_exception()

2019-02-19 Thread Chris Jerdonek
Chris Jerdonek added the comment: Correction: that should have been bpo-31033. -- ___ Python tracker <https://bugs.python.org/issue32363> ___ ___ Python-bug

[issue32363] Deprecate task.set_result() and task.set_exception()

2019-02-19 Thread Chris Jerdonek
Chris Jerdonek added the comment: A second reason why Task.cancel() seems to be an incomplete replacement: Task.set_exception() and Task.set_result() both give you a way to unconditionally end a task. With cancel() though, the docs say, "Task.cancel() does not guarantee that the Task

[issue32363] Deprecate task.set_result() and task.set_exception()

2019-02-19 Thread Chris Jerdonek
Chris Jerdonek added the comment: > There's no clear reason to complicate the Task<->coroutine relationship by > allowing to inject arbitrary exceptions into running coroutines. My comment was more about CancelledError rather than arbitrary exceptions. You didn't r

[issue32363] Deprecate task.set_result() and task.set_exception()

2019-02-19 Thread Chris Jerdonek
Chris Jerdonek added the comment: > Well, if you want to unconditionally end tasks you shouldn't write coroutines > that ignore CancelledErrors. Well, of course. But code can have bugs, and maybe you didn't write the coroutine because it's from a library that you don&#x

[issue32363] Deprecate task.set_result() and task.set_exception()

2019-02-19 Thread Chris Jerdonek
Chris Jerdonek added the comment: To stop the discussion from happening in two places (sorry, Yury), I started a broader discussion on Async-sig with thread starting here: https://mail.python.org/pipermail/async-sig/2019-February/000548.html

[issue32528] Change base class for futures.CancelledError

2019-02-19 Thread Chris Jerdonek
Change by Chris Jerdonek : -- nosy: +chris.jerdonek ___ Python tracker <https://bugs.python.org/issue32528> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29724] Itertools docs propose a harmful “speedup” without any explanation

2017-03-05 Thread Chris Warrick
New submission from Chris Warrick: The itertools recipes list [0] ends with the following dubious advice: > Note, many of the above recipes can be optimized by replacing global lookups > with local variables defined as default values. For example, the dotproduct > recipe can be w

[issue29985] make install doesn't seem to support --quiet

2017-04-04 Thread Chris Jerdonek
New submission from Chris Jerdonek: When installing from source, the --quiet option works with "configure" and a bare "make": $ ./configure --quiet $ make --quiet However, it doesn't seem to work when passed to "make install" (and "make

[issue30187] Regex becomes invalid in python 3.6

2017-04-27 Thread Chris Seto
New submission from Chris Seto: Expected behavior: ~ ❯❯❯ pyenv shell 3.5.2 ~ ❯❯❯ python --version Python 3.5.2 ~ ❯❯❯ python Python 3.5.2 (default, Oct 24 2016, 00:12:20) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.38)] on darwin Type "help", "copyright", "credi

[issue30187] Regex becomes invalid in python 3.6

2017-04-27 Thread Chris Seto
Chris Seto added the comment: Thank you for pointing that out to me! -- ___ Python tracker <http://bugs.python.org/issue30187> ___ ___ Python-bugs-list mailin

[issue30532] email.policy.SMTP.fold() mangles long headers

2017-05-31 Thread Chris Bradley
New submission from Chris Bradley: When email.policy.SMTP.fold() attempts to wrap a line in which a chunk that does not contain a space is longer than the maximum line length, two things go wrong: - The second line does not begin with a space, creating an invalid header. - The space before

[issue29929] Eliminate implicit __main__ relative imports

2017-06-03 Thread Chris Angelico
Changes by Chris Angelico : -- nosy: +Rosuav ___ Python tracker <http://bugs.python.org/issue29929> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30581] os.cpu_count() returns wrong number of processors on system with > 64 logical processors

2017-06-07 Thread Chris Wilcox
Chris Wilcox added the comment: I am going to work on this if no one else has started. -- nosy: +crwilcox ___ Python tracker <http://bugs.python.org/issue30

[issue35512] patch.dict resolves in_dict eagerly (should be late resolved)

2019-02-24 Thread Chris Withers
Chris Withers added the comment: New changeset a875ea58b29fbf510f9790ae1653eeaa47dc0de8 by Chris Withers (Xtreak) in branch 'master': bpo-35512: Resolve string target to patch.dict decorator during function call GH#12000 https://github.com/python/cpyt

[issue35512] patch.dict resolves in_dict eagerly (should be late resolved)

2019-02-25 Thread Chris Withers
Chris Withers added the comment: New changeset ea199b90bb61866cd3c2f154341d1eb0d5c4a710 by Chris Withers (Miss Islington (bot)) in branch '3.7': bpo-35512: Resolve string target to patch.dict decorator during function call GHGH-12000 (#12021) https://github.com/python/cpyt

[issue21269] Provide args and kwargs attributes on mock call objects

2019-03-22 Thread Chris Withers
Chris Withers added the comment: New changeset b0df45e55dc8304bac0e3cad0225472b84190964 by Chris Withers (Kumar Akshay) in branch 'master': bpo-21269: Provide args and kwargs attributes on mock call objects GH11807 https://github.com/python/cpyt

[issue36596] tarfile module considers anything starting with 512 bytes of zero bytes to be a valid tar file

2019-04-10 Thread Chris Siebenmann
New submission from Chris Siebenmann : The easiest reproduction of this is: import tarfile tarfile.open("/dev/zero", "r:") (If you use plain "r" you get a hang in attempted lzma decoding.) I believe this is probably due to a missing 'elif

[issue31855] mock_open is not compatible with read(n) (and pickle.load)

2019-05-07 Thread Chris Withers
Chris Withers added the comment: New changeset 11a8832c98b3db78727312154dd1d3ba76d639ec by Chris Withers (Rémi Lapeyre) in branch 'master': bpo-31855: unittest.mock.mock_open() results now respects the argument of read([size]) (GH-11521) https://github.com/python/cpyt

[issue31855] mock_open is not compatible with read(n) (and pickle.load)

2019-05-07 Thread Chris Withers
Chris Withers added the comment: New changeset a6516f89aa0f416c7514ac364bb48ac7d1455487 by Chris Withers (Miss Islington (bot)) in branch '3.7': bpo-31855: unittest.mock.mock_open() results now respects the argument of read([size]) (GH-11521) (#13152) https://github.com/pyth

[issue35224] PEP 572: Assignment Expressions

2019-05-07 Thread Chris Angelico
Change by Chris Angelico : -- pull_requests: +13077 ___ Python tracker <https://bugs.python.org/issue35224> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36848] autospec fails with AttributeError when mocked class has __signature__ non-writeable

2019-05-08 Thread Chris Withers
Chris Withers added the comment: Wow, is this just an issue that the pyside guys need to fix? -- ___ Python tracker <https://bugs.python.org/issue36848> ___ ___

[issue36848] autospec fails with AttributeError when mocked class has __signature__ non-writeable

2019-05-08 Thread Chris Withers
Chris Withers added the comment: I'm not sure we should try and work around this; hijacking __signature__ python-wide is going to cause a bunch of other problems. My vote would be to just open a bug on the pyside tracker (wherever that is) and close the issue and and on the backpo

[issue36848] autospec fails with AttributeError when mocked class has __signature__ non-writeable

2019-05-08 Thread Chris Withers
Chris Withers added the comment: We only attempt to set __signature__ on Mocks, so I don't think extensions will be a problem. I do think there's a bit of code smell on that method: it's called _check_* and then changes some attributes, that might

[issue21820] unittest: unhelpful truncating of long strings.

2019-05-08 Thread Chris Withers
Change by Chris Withers : -- versions: +Python 3.7, Python 3.8, Python 3.9 -Python 3.4 ___ Python tracker <https://bugs.python.org/issue21820> ___ ___ Python-bug

[issue32893] ast.literal_eval() shouldn't accept booleans as numbers in AST

2019-05-13 Thread Chris Angelico
Change by Chris Angelico : -- pull_requests: +13196 ___ Python tracker <https://bugs.python.org/issue32893> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28914] selectmodule build fails

2018-01-12 Thread Chris Rose
Chris Rose added the comment: Is this patch mergeable? I'm trialing the 3.7.0a4 build on some systems here and am unable to build due to this issue, on libc 2.12: ± /lib/libc.so.6 GNU C Library stable release version 2.12, by Roland McGrath et al. Copyright (C) 2010 Free Software Found

[issue28914] selectmodule build fails

2018-01-12 Thread Chris Rose
Chris Rose added the comment: Ach; ignore the libc version below; that's a PEBKAC error on my part. The libc version on the system that's failing is older (and hard to get; just trust me, it's older) and doesn't have the

[issue32642] add support for path-like objects in sys.path

2018-01-23 Thread Chris Jerdonek
New submission from Chris Jerdonek : This issue is to suggest enhancing sys.path to recognize path-like objects, per PEP 519. I recently ran into an issue where a path was getting added to sys.path, but the corresponding imports weren't working as they should, even though sys.path showe

[issue32643] Make Task._step, Task._wakeup and Future._schedule_callback methods private

2018-01-24 Thread Chris Jerdonek
Change by Chris Jerdonek : -- nosy: +chris.jerdonek ___ Python tracker <https://bugs.python.org/issue32643> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32888] Improve exception message in ast.literal_eval

2018-02-20 Thread Chris Angelico
New submission from Chris Angelico : When a non-literal is given to literal_eval, attempt to be more helpful with the message, rather than calling it 'malformed'. -- components: Library (Lib) messages: 312423 nosy: Rosuav priority: normal pull_requests: severity: nor

[issue32888] Improve exception message in ast.literal_eval

2018-02-20 Thread Chris Angelico
Change by Chris Angelico : -- keywords: +patch pull_requests: +5558 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue32888> ___ ___ Py

[issue32888] Improve exception message in ast.literal_eval

2018-02-20 Thread Chris Angelico
Chris Angelico added the comment: Hmm, I think I see what I broke there. It was part of the merge conflict resolution - I moved the check into the function, which is actually incorrect. It wasn't misleading like that in the original patch. Will fix

[issue32888] Improve exception message in ast.literal_eval

2018-02-20 Thread Chris Angelico
Chris Angelico added the comment: Actually, it's a bit more complicated than I thought. Current proposed solution: Track the context of each conversion, thus allowing different errors to be distinguished. -- ___ Python tracker &

[issue32888] Improve exception message in ast.literal_eval

2018-02-20 Thread Chris Angelico
Chris Angelico added the comment: (BTW, by "proposed" I mean that the change that I describe is in the PR.) -- ___ Python tracker <https://bugs.python.o

[issue15767] add ModuleNotFoundError

2018-02-27 Thread Chris Jerdonek
Chris Jerdonek added the comment: Eric touched on the use when he said the following above: > It's nice to be able to distinguish between the failure to *find* the module > during import from other uses of ImportError. To make up one example, you might want to use a fallback

[issue22674] RFE: Add signal.strsignal(): string describing a signal

2018-03-06 Thread Chris Rebert
Change by Chris Rebert : -- nosy: +cvrebert ___ Python tracker <https://bugs.python.org/issue22674> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33251] ConfigParser.items returns items present in vars

2018-04-10 Thread Chris Bradbury
Change by Chris Bradbury : -- keywords: +patch pull_requests: +6141 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue33251> ___ ___ Py

[issue33333] ConfigParser.items returns items present in `DEFAULTSECT` when section argument given.

2018-04-22 Thread Chris Bradbury
New submission from Chris Bradbury : According to `ConfigParser.items` docs: > When section is not given, return a list of section_name, section_proxy > pairs, including DEFAULTSECT. > Otherwise, return a list of name, value pairs for the options in the given > section. Option

[issue33333] ConfigParser.items returns items present in `DEFAULTSECT` when section argument given.

2018-04-22 Thread Chris Bradbury
Change by Chris Bradbury : -- keywords: +patch pull_requests: +6261 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue3> ___ ___ Py

[issue33333] ConfigParser.items returns items present in `DEFAULTSECT` when section argument given.

2018-04-22 Thread Chris Bradbury
Chris Bradbury added the comment: The fix for the actual issue is quite trivial (and should fix bpo-33251 at the same time). However `ExtendedInterpolation::_interpolate_some` relies on the options from the default section always being returned. Not only does this make the fix more

[issue33333] ConfigParser.items returns items present in `DEFAULTSECT` when section argument given.

2018-04-22 Thread Chris Bradbury
Change by Chris Bradbury : -- pull_requests: +6263 ___ Python tracker <https://bugs.python.org/issue3> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33251] ConfigParser.items returns items present in vars

2018-04-22 Thread Chris Bradbury
Change by Chris Bradbury : -- pull_requests: +6264 ___ Python tracker <https://bugs.python.org/issue33251> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33333] ConfigParser.items returns items present in `DEFAULTSECT` when section argument given.

2018-04-22 Thread Chris Bradbury
Chris Bradbury added the comment: I'll make the documentation changes instead, not overly surprised to hear this is intentional. -- stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.

[issue33333] ConfigParser.items returns items present in `DEFAULTSECT` when section argument given.

2018-04-22 Thread Chris Bradbury
Change by Chris Bradbury : -- resolution: -> not a bug ___ Python tracker <https://bugs.python.org/issue3> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue33333] ConfigParser.items returns items present in `DEFAULTSECT` when section argument given.

2018-04-22 Thread Chris Bradbury
Change by Chris Bradbury : -- assignee: -> docs@python components: +Documentation -Library (Lib) nosy: +docs@python resolution: not a bug -> status: closed -> open ___ Python tracker <https://bugs.python.or

[issue33251] ConfigParser.items returns items present in vars

2018-04-23 Thread Chris Bradbury
Change by Chris Bradbury : -- pull_requests: +6283 ___ Python tracker <https://bugs.python.org/issue33251> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31741] backports import path can not be overridden in Windows (Linux works fine)

2017-10-09 Thread Chris Caron
New submission from Chris Caron : The Windows install of Python 2.7.13 defaults it's install into **C:\Python27**. It creates several subdirectories within this; one of which is **C:\Python27\lib\site-packages\backports**. So just out of the box (without this script installed): ```p

[issue31741] backports import path can not be overridden in Windows (Linux works fine)

2017-10-09 Thread Chris Caron
Chris Caron added the comment: Thank you for replying so quickly; the issue stems from a bug created here which explains it a bit better: https://github.com/caronc/nzb-notify/issues/27 (scroll to the bottom). In my case, I had a lib\site-packages\backports in C:\Python27 that keeps over

[issue31741] backports import path can not be overridden in Windows (Linux works fine)

2017-10-10 Thread Chris Caron
Change by Chris Caron : Added file: https://bugs.python.org/file47205/Test.py ___ Python tracker <https://bugs.python.org/issue31741> ___ ___ Python-bugs-list mailin

[issue31741] backports import path can not be overridden in Windows (Linux works fine)

2017-10-10 Thread Chris Caron
Change by Chris Caron : Added file: https://bugs.python.org/file47206/site-packages-Directory.png ___ Python tracker <https://bugs.python.org/issue31741> ___ ___ Pytho

[issue31741] backports import path can not be overridden in Windows (Linux works fine)

2017-10-10 Thread Chris Caron
Change by Chris Caron : Added file: https://bugs.python.org/file47207/Test.Directory.png ___ Python tracker <https://bugs.python.org/issue31741> ___ ___ Python-bugs-list m

[issue31741] backports import path can not be overridden in Windows (Linux works fine)

2017-10-10 Thread Chris Caron
Change by Chris Caron : Added file: https://bugs.python.org/file47208/Test.Script.Backports.Dir.png ___ Python tracker <https://bugs.python.org/issue31741> ___ ___ Pytho

[issue31741] backports import path can not be overridden in Windows (Linux works fine)

2017-10-10 Thread Chris Caron
Change by Chris Caron : Added file: https://bugs.python.org/file47209/Test.Script.Output.png ___ Python tracker <https://bugs.python.org/issue31741> ___ ___ Python-bug

[issue31741] backports import path can not be overridden in Windows (Linux works fine)

2017-10-10 Thread Chris Caron
Change by Chris Caron : Added file: https://bugs.python.org/file47210/Python.Test.zip ___ Python tracker <https://bugs.python.org/issue31741> ___ ___ Python-bugs-list m

[issue31741] backports import path can not be overridden in Windows (Linux works fine)

2017-10-10 Thread Chris Caron
Chris Caron added the comment: I'm not doing anything unusual. Just to recap, I installed Python27 (in Windows 7 in my case- but this problem happens in Windows 10 too). I did use `pip` to install packages as you'll see in the screenshot. But even if i rename the `C:\Python2

[issue31741] backports import path can not be overridden in Windows (Linux works fine)

2017-10-11 Thread Chris Caron
Chris Caron added the comment: -- Download Instructions * 64 Bit ver of Python v2.7 for Windows https://www.python.org/ftp/python/2.7/python-2.7.amd64.msi * Microsoft Visual C++ Compiler for Python 2.7: https://www.microsoft.com/en-ca/download/details.aspx?id=44266. -- Installation

[issue31741] backports import path can not be overridden in Windows (Linux works fine)

2017-10-11 Thread Chris Caron
Chris Caron added the comment: Just to point out, i forgot the instructions of installing pip (right before) the following entry in my last post: >> ** Heads up >> So at this point, the C:\Python27\Lib\site-packages will contain the >>> >> following: pip, set

[issue31780] Using format spec ',x' displays incorrect error message

2017-10-17 Thread Chris Angelico
Chris Angelico added the comment: Thanks for handling that Terry. I take it the PR isn't needed now? I would have done it, but I'm on the way to the US (literally posting this from the airport), and hadn't gotten to looking at this

[issue29587] Generator/coroutine 'throw' discards exc_info state, which is bad

2017-11-11 Thread Chris Jerdonek
Change by Chris Jerdonek : -- nosy: +chris.jerdonek ___ Python tracker <https://bugs.python.org/issue29587> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18861] Problems with recursive automatic exception chaining

2017-11-11 Thread Chris Jerdonek
Change by Chris Jerdonek : -- nosy: +chris.jerdonek ___ Python tracker <https://bugs.python.org/issue18861> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10761] tarfile.extractall fails to overwrite symlinks

2017-11-19 Thread Chris Albright
Change by Chris Albright : -- components: +Unicode nosy: +ezio.melotti, vstinner type: behavior -> performance versions: +Python 3.8 ___ Python tracker <https://bugs.python.org/issu

[issue25683] __context__ for yields inside except clause

2017-11-30 Thread Chris Jerdonek
Change by Chris Jerdonek : -- nosy: +chris.jerdonek ___ Python tracker <https://bugs.python.org/issue25683> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25612] nested try..excepts don't work correctly for generators

2017-11-30 Thread Chris Jerdonek
Change by Chris Jerdonek : -- nosy: +chris.jerdonek ___ Python tracker <https://bugs.python.org/issue25612> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23859] asyncio: document behaviour of wait() cancellation

2017-12-30 Thread Chris Jerdonek
Change by Chris Jerdonek : -- nosy: +chris.jerdonek ___ Python tracker <https://bugs.python.org/issue23859> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23859] asyncio: document behaviour of wait() cancellation

2017-12-30 Thread Chris Jerdonek
Change by Chris Jerdonek : -- versions: +Python 3.6 ___ Python tracker <https://bugs.python.org/issue23859> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition

2018-06-09 Thread Chris Eykamp
Chris Eykamp added the comment: I've been experiencing the same issue, which is triggered in the exception handling of web.py. Bert's proposed fix, adding the zero byte check (if self._binary_file or self.length >= 0:) addresses the issue I'm seeing (tested on 3.5, it&#

[issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition

2018-06-13 Thread Chris Eykamp
Chris Eykamp added the comment: This also manifests itself when using web.py: if the underlying code throws an exception, this is emitted: File "/usr/local/lib/python3.5/dist-packages/web/webapi.py", line 364, in input out = rawinput(_method) File "/usr/local/lib

[issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition

2018-06-13 Thread Chris Eykamp
Chris Eykamp added the comment: I've already got a PR based on the patch listed under the Files section (it's prepared, not yet submitted), but if you want to do something more, I'll step back and let you do it. -- ___ Python

[issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition

2018-06-14 Thread Chris Eykamp
Chris Eykamp added the comment: I'll get a PR submitted this weekend, and post back here. It will not explicitly address that other case, as I don't have the capacity or wherewithal for that. Alas. -- ___ Python track

[issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition

2018-06-19 Thread Chris Eykamp
Change by Chris Eykamp : -- pull_requests: +7409 ___ Python tracker <https://bugs.python.org/issue2> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition

2018-06-19 Thread Chris Eykamp
Chris Eykamp added the comment: Packaged patch offered below into PR 7804 https://github.com/python/cpython/pull/7804 -- versions: +Python 3.5 ___ Python tracker <https://bugs.python.org/issue27

[issue15533] subprocess.Popen(cwd) documentation: Posix vs Windows

2018-06-20 Thread Chris Jerdonek
Change by Chris Jerdonek : -- assignee: chris.jerdonek -> ___ Python tracker <https://bugs.python.org/issue15533> ___ ___ Python-bugs-list mailing list Un

[issue33941] datetime.strptime not able to recognize invalid date formats

2018-06-22 Thread Chris Wilcox
Chris Wilcox added the comment: As %m and %d denote zero padded forms of month and day it seems to me this shouldn't match. Executing a small c program `char* ret = strptime("181223", "%Y%m%d", &tm);` confirms that this is considered invalid to c. The dat

[issue33941] datetime.strptime not able to recognize invalid date formats

2018-06-22 Thread Chris Wilcox
Chris Wilcox added the comment: I looked a bit at _strptime.py and the corresponding tests and thought I would share my notes. The regular expressions clearly allow non-zero padded values for both %d and %m matches. There is one test where the following is run: time.strptime("Mar 1&q

[issue33961] Inconsistency in exceptions for dataclasses.dataclass documentation

2018-06-25 Thread Chris Cogdon
New submission from Chris Cogdon : The documentation for dataclasses.dataclass includes this text: "If any of the added methods already exist on the class, a TypeError will be raised." However, the documentation for various options has ONE case of TypeError, some cases of Valu

[issue33961] Inconsistency in exceptions for dataclasses.dataclass documentation

2018-06-25 Thread Chris Cogdon
Chris Cogdon added the comment: Also, one occurrence of s/:/;/ This is my First PR! I've read the contribution docs, but am very open to correction. -- ___ Python tracker <https://bugs.python.org/is

[issue33961] Inconsistency in exceptions for dataclasses.dataclass documentation

2018-06-25 Thread Chris Cogdon
Chris Cogdon added the comment: CLA signed. -- ___ Python tracker <https://bugs.python.org/issue33961> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition

2018-06-26 Thread Chris Eykamp
Chris Eykamp added the comment: I don't know if you've read the dialog on the PR (there was also some offline between Ned and myself), but the patch breaks a test when running under a fresh build of Python. I can't reproduce it here without setting up a build system, whic

[issue34174] argparse formatter_class issue for RawDescriptionHelpFormatter

2018-07-20 Thread Chris Kessler
New submission from Chris Kessler : In document https://docs.python.org/2/library/argparse.html#argparse.RawDescriptionHelpFormatter this will fail with NameError: global name 'textwrap' is not defiend >>> parser = argparse.ArgumentParser( ... prog='PROG&#

[issue34174] argparse formatter_class issue for RawDescriptionHelpFormatter

2018-07-20 Thread Chris Kessler
Chris Kessler added the comment: Thanks for the quick response! I didnt see it anywhere in the documentation on that page so I assumed it was built in with argparse. Thanks! -- ___ Python tracker <https://bugs.python.org/issue34

[issue34237] faq/design: PEP 572 adds assignment expressions

2018-07-27 Thread Chris Angelico
Chris Angelico added the comment: Yes, the PEP says version 3.8. Why is this a problem? Sit tight, let the implementation land. I don't understand why this needed me to get emailed saying that the PEP has the wrong version number in it. -- nosy: +R

[issue34276] urllib.parse doesn't round-trip file URI's with multiple leading slashes

2018-07-29 Thread Chris Jerdonek
New submission from Chris Jerdonek : urllib.parse doesn't seem to round-trip file URI's containing multiple leading slashes. For example, this-- import urllib.parse def round_trip(url): parsed = urllib.parse.urlsplit(url) new_url = urllib.parse.urlunsp

[issue34276] urllib.parse doesn't round-trip file URI's with multiple leading slashes

2018-07-30 Thread Chris Jerdonek
Chris Jerdonek added the comment: Thanks for all the extra info. A couple more comments: 1. I came across this issue when diagnosing the following pip issue ("pip install git+file://" not working for Windows UNC paths): https://github.com/pypa/pip/issues/3783 2. URLs of the

[issue34276] urllib.parse doesn't round-trip file URI's with multiple leading slashes

2018-07-31 Thread Chris Jerdonek
Chris Jerdonek added the comment: > The RFC treats empty authority and no authority as different cases. I'm not well-versed on this. But I guess this means urllib.parse doesn't support this distinction. For example: >>> urllib.parse.urlsplit('file:/foo&#

[issue22852] urllib.parse wrongly strips empty #fragment, ?query, //netloc

2018-07-31 Thread Chris Jerdonek
Chris Jerdonek added the comment: I just learned of this issue. Rather than adding has_netloc, etc. attributes, why not use None to distinguish missing values as is preferred above, but add a new boolean keyword argument to urlparse(), etc. to get the new behavior (e.g. "allow_non

[issue34237] faq/design: PEP 572 adds assignment expressions

2018-07-31 Thread Chris Angelico
Chris Angelico added the comment: BTW, sorry for sounding a bit snippy in my comment. Jonathan, in future, rather than dropping someone an email, it'd be more normal to just ping the person on the issue itself. -- ___ Python tracker &

[issue34346] dir() hangs interpreter

2018-08-06 Thread Chris Fuller
New submission from Chris Fuller : It's a little obscure. Nothing to get alarmed about, probably. It involves recursion and __getattr__() during object creation. Only present with 2.7 new-style classes. Old-style 2.7 did not exhibit this behavior nor did 3.x. Checked on Linux/Cygwin/Wi

[issue34346] dir() hangs interpreter

2018-08-06 Thread Chris Fuller
Change by Chris Fuller : Removed file: https://bugs.python.org/file47731/splat.py ___ Python tracker <https://bugs.python.org/issue34346> ___ ___ Python-bugs-list mailin

[issue34346] dir() hangs interpreter

2018-08-06 Thread Chris Fuller
Change by Chris Fuller : Added file: https://bugs.python.org/file47732/splat.py ___ Python tracker <https://bugs.python.org/issue34346> ___ ___ Python-bugs-list mailin

[issue34346] dir() hangs interpreter

2018-08-06 Thread Chris Fuller
Chris Fuller added the comment: It hangs, and on Cygwin it dumped core when I hit ctrl-break. I uploaded a revised script. It';s a heisenbug, all I did was removed the unused splat method. -- ___ Python tracker <https://bugs.py

[issue34475] functools.partial objects have no __qualname__ attribute

2018-08-23 Thread Chris Jerdonek
New submission from Chris Jerdonek : functools.partial objects have no __qualname__ attribute. This means, for example, that code expecting a callable that logs the __qualname__ attribute can break when passed a functools.partial object. Example: >>> import functools >>>

[issue23057] [Windows] asyncio: support signal handlers on Windows (feature request)

2018-09-07 Thread Chris Warrick
Change by Chris Warrick : -- nosy: +Kwpolska ___ Python tracker <https://bugs.python.org/issue23057> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34475] functools.partial objects have no __qualname__ attribute

2018-09-09 Thread Chris Jerdonek
Chris Jerdonek added the comment: Using p.func would name the function passed to functools.partial() rather than the partial object itself. -- ___ Python tracker <https://bugs.python.org/issue34

<    3   4   5   6   7   8   9   10   11   12   >