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('
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
Chris Jerdonek added the comment:
Is this a duplicate of issue24780?
--
nosy: +chris.jerdonek
___
Python tracker
<https://bugs.python.org/issue35955>
___
___
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
Change by Chris Jerdonek :
--
nosy: +chris.jerdonek
___
Python tracker
<https://bugs.python.org/issue34028>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
Chris Jerdonek added the comment:
Correction: that should have been bpo-31033.
--
___
Python tracker
<https://bugs.python.org/issue32363>
___
___
Python-bug
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
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
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
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
Change by Chris Jerdonek :
--
nosy: +chris.jerdonek
___
Python tracker
<https://bugs.python.org/issue32528>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
Chris Seto added the comment:
Thank you for pointing that out to me!
--
___
Python tracker
<http://bugs.python.org/issue30187>
___
___
Python-bugs-list mailin
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
Changes by Chris Angelico :
--
nosy: +Rosuav
___
Python tracker
<http://bugs.python.org/issue29929>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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
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
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
Change by Chris Angelico :
--
pull_requests: +13077
___
Python tracker
<https://bugs.python.org/issue35224>
___
___
Python-bugs-list mailing list
Unsubscribe:
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>
___
___
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
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
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
Change by Chris Angelico :
--
pull_requests: +13196
___
Python tracker
<https://bugs.python.org/issue32893>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
Change by Chris Jerdonek :
--
nosy: +chris.jerdonek
___
Python tracker
<https://bugs.python.org/issue32643>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Change by Chris Angelico :
--
keywords: +patch
pull_requests: +5558
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue32888>
___
___
Py
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
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
&
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
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
Change by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<https://bugs.python.org/issue22674>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Chris Bradbury :
--
keywords: +patch
pull_requests: +6141
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue33251>
___
___
Py
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
Change by Chris Bradbury :
--
keywords: +patch
pull_requests: +6261
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue3>
___
___
Py
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
Change by Chris Bradbury :
--
pull_requests: +6263
___
Python tracker
<https://bugs.python.org/issue3>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Chris Bradbury :
--
pull_requests: +6264
___
Python tracker
<https://bugs.python.org/issue33251>
___
___
Python-bugs-list mailing list
Unsubscribe:
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.
Change by Chris Bradbury :
--
resolution: -> not a bug
___
Python tracker
<https://bugs.python.org/issue3>
___
___
Python-bugs-list mailing list
Unsubscrib
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
Change by Chris Bradbury :
--
pull_requests: +6283
___
Python tracker
<https://bugs.python.org/issue33251>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
Change by Chris Caron :
Added file: https://bugs.python.org/file47205/Test.py
___
Python tracker
<https://bugs.python.org/issue31741>
___
___
Python-bugs-list mailin
Change by Chris Caron :
Added file: https://bugs.python.org/file47206/site-packages-Directory.png
___
Python tracker
<https://bugs.python.org/issue31741>
___
___
Pytho
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
Change by Chris Caron :
Added file: https://bugs.python.org/file47208/Test.Script.Backports.Dir.png
___
Python tracker
<https://bugs.python.org/issue31741>
___
___
Pytho
Change by Chris Caron :
Added file: https://bugs.python.org/file47209/Test.Script.Output.png
___
Python tracker
<https://bugs.python.org/issue31741>
___
___
Python-bug
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
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
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
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
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
Change by Chris Jerdonek :
--
nosy: +chris.jerdonek
___
Python tracker
<https://bugs.python.org/issue29587>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Chris Jerdonek :
--
nosy: +chris.jerdonek
___
Python tracker
<https://bugs.python.org/issue18861>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Chris Albright :
--
components: +Unicode
nosy: +ezio.melotti, vstinner
type: behavior -> performance
versions: +Python 3.8
___
Python tracker
<https://bugs.python.org/issu
Change by Chris Jerdonek :
--
nosy: +chris.jerdonek
___
Python tracker
<https://bugs.python.org/issue25683>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Chris Jerdonek :
--
nosy: +chris.jerdonek
___
Python tracker
<https://bugs.python.org/issue25612>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Chris Jerdonek :
--
nosy: +chris.jerdonek
___
Python tracker
<https://bugs.python.org/issue23859>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Chris Jerdonek :
--
versions: +Python 3.6
___
Python tracker
<https://bugs.python.org/issue23859>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
Change by Chris Eykamp :
--
pull_requests: +7409
___
Python tracker
<https://bugs.python.org/issue2>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Change by Chris Jerdonek :
--
assignee: chris.jerdonek ->
___
Python tracker
<https://bugs.python.org/issue15533>
___
___
Python-bugs-list mailing list
Un
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
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
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
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
Chris Cogdon added the comment:
CLA signed.
--
___
Python tracker
<https://bugs.python.org/issue33961>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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
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
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
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
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
&
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
Change by Chris Fuller :
Removed file: https://bugs.python.org/file47731/splat.py
___
Python tracker
<https://bugs.python.org/issue34346>
___
___
Python-bugs-list mailin
Change by Chris Fuller :
Added file: https://bugs.python.org/file47732/splat.py
___
Python tracker
<https://bugs.python.org/issue34346>
___
___
Python-bugs-list mailin
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
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
>>>
Change by Chris Warrick :
--
nosy: +Kwpolska
___
Python tracker
<https://bugs.python.org/issue23057>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
701 - 800 of 2758 matches
Mail list logo