New submission from Chris Jerdonek <chris.jerdo...@gmail.com>:
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
Chris Rose <off...@offby1.net> 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 relevant epoll
Chris Rose <off...@offby1.net> 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) 201
Change by Chris Jerdonek <chris.jerdo...@gmail.com>:
--
versions: +Python 3.6
___
Python tracker <rep...@bugs.python.org>
<https://bugs.python
Change by Chris Jerdonek <chris.jerdo...@gmail.com>:
--
nosy: +chris.jerdonek
___
Python tracker <rep...@bugs.python.org>
<https://bugs.python
Change by Chris Jerdonek <chris.jerdo...@gmail.com>:
--
nosy: +chris.jerdonek
___
Python tracker <rep...@bugs.python.org>
<https://bugs.python
Change by Chris Jerdonek <chris.jerdo...@gmail.com>:
--
nosy: +chris.jerdonek
___
Python tracker <rep...@bugs.python.org>
<https://bugs.python
Change by Chris Albright <olliesc...@gmail.com>:
--
components: +Unicode
nosy: +ezio.melotti, vstinner
type: behavior -> performance
versions: +Python 3.8
___
Python tracker <rep...@bugs.python.org>
<https://bugs.pyt
Change by Chris Jerdonek <chris.jerdo...@gmail.com>:
--
nosy: +chris.jerdonek
___
Python tracker <rep...@bugs.python.org>
<https://bugs.python
Change by Chris Jerdonek <chris.jerdo...@gmail.com>:
--
nosy: +chris.jerdonek
___
Python tracker <rep...@bugs.python.org>
<https://bugs.python
Chris Angelico <ros...@gmail.com> 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 in the in
Chris Caron <lead2g...@gmail.com> 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 >>>
&g
Chris Caron <lead2g...@gmail.com> 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
Chris Caron <lead2g...@gmail.com> 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
Change by Chris Caron <lead2g...@gmail.com>:
Added file: https://bugs.python.org/file47210/Python.Test.zip
___
Python tracker <rep...@bugs.python.org>
<https://bugs.python
Change by Chris Caron <lead2g...@gmail.com>:
Added file: https://bugs.python.org/file47209/Test.Script.Output.png
___
Python tracker <rep...@bugs.python.org>
<https://bugs.python
Change by Chris Caron <lead2g...@gmail.com>:
Added file: https://bugs.python.org/file47208/Test.Script.Backports.Dir.png
___
Python tracker <rep...@bugs.python.org>
<https://bugs.python
Change by Chris Caron <lead2g...@gmail.com>:
Added file: https://bugs.python.org/file47207/Test.Directory.png
___
Python tracker <rep...@bugs.python.org>
<https://bugs.python
Change by Chris Caron <lead2g...@gmail.com>:
Added file: https://bugs.python.org/file47206/site-packages-Directory.png
___
Python tracker <rep...@bugs.python.org>
<https://bugs.python
Change by Chris Caron <lead2g...@gmail.com>:
Added file: https://bugs.python.org/file47205/Test.py
___
Python tracker <rep...@bugs.python.org>
<https://bugs.python
Chris Caron <lead2g...@gmail.com> 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:\Py
New submission from Chris Caron <lead2g...@gmail.com>:
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
Chris Wilcox added the comment:
I may be wrong, but this seems like it could be an issue with NumPy. There are
similar issues on their GitHub around crashes on astype. It probably wouldn't
hurt to file this over there as well.
https://github.com/numpy/numpy/issues
--
nosy: +crwilcox
Changes by Chris Wilcox <pyt...@crwilcox.com>:
--
pull_requests: +3312
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30581>
___
_
Chris Lovett added the comment:
Oh, my bad then. Apologies for the noise in your system.
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
New submission from Chris Lovett:
When I walk a directory recursively, it is tacking on an additional
non-existant file from one of the subdirectories. Here's the code:
def copy_dir(self, src, dest):
result = sftp.mkdir(dest)
for dirname, dirnames, filenames in os.walk(src
Changes by Chris Jerdonek <chris.jerdo...@gmail.com>:
--
nosy: +chris.jerdonek
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python
chris.259263 added the comment:
Hi Eric,
running the script from the terminal on my system (macOS, Python 3.6.2) gives
the same ErrorMessage as you stated.
The problem is the output "line 1".
Running the script from IDLE (3.6.2), the error points to the first line. And
in I
New submission from chris.259263:
Trying to run a script with a bug in a formated string literal (in the example
the ":" is missing) throws an "invalid syntax" error at the first expression of
the script.
Example:
import math
a = "a"
b = f"{a>2s}&
Chris Jerdonek added the comment:
A couple thoughts on this issue:
First, I think the OP's original issue could perhaps largely be addressed
without having to change cancel()'s signature. Namely, simply passing a
hard-coded string to CancelledError in the couple spots that CancelledError
Changes by Chris Jerdonek <chris.jerdo...@gmail.com>:
--
nosy: +chris.jerdonek
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python
Chris Jerdonek added the comment:
By the way, I see this exact issue was also raised and discussed here, with a
couple responses by Guido, too:
https://github.com/python/asyncio/issues/253
--
___
Python tracker <rep...@bugs.python.org>
Chris Jerdonek added the comment:
I noticed that the future defined by asyncio.gather(sleep) is in a "pending"
state immediately after the asyncio.TimeoutError.
One workaround is to wait for the cancellation to finish:
@asyncio.coroutine
def main():
sleep = asyncio
New submission from Chris Jerdonek:
In Python 3.6.1, if asyncio.wait_for() times out with a TimeoutError, the
traceback doesn't show what line the code was waiting on when the timeout
occurred. This makes it more difficult to diagnose the cause of a timeout.
To reproduce, you can use
Chris Wilcox added the comment:
I was reviewing the docs for the os module and cpu_count should always return
the number of cpus on the system, not the usable CPUs. GetMaximumProcessorCount
returns a simulated count in WoW64. I have reached back out to the Windows API
dev and will see
Changes by Chris Jerdonek <chris.jerdo...@gmail.com>:
--
title: shutdown_asyncgens -> asyncio: Optimize loop.call_soon
___
Python tracker <rep...@bugs.python.org>
<http://bugs.pyt
Changes by Chris Jerdonek <chris.jerdo...@gmail.com>:
--
title: asyncio: Optimize loop.call_soon -> shutdown_asyncgens
___
Python tracker <rep...@bugs.python.org>
<http://bugs.pyt
Chris Jerdonek added the comment:
> there's no way to end the loop on the producing side.
I might be missing something, but can't something similar be said of
queue.get()?
--
___
Python tracker <rep...@bugs.python.org>
<http://bug
Changes by Chris Jerdonek <chris.jerdo...@gmail.com>:
--
nosy: +chris.jerdonek
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python
New submission from Chris White:
When trying to validate the Python 3.6.1 tgz using the ASC file, I can't import
all the keys due to the following error:
```
gpg: Note: signatures using the MD5 algorithm are rejected
gpg: key ED9D77D5: no valid user IDs
gpg: this may be caused by a missing
Changes by Chris Jerdonek <chris.jerdo...@gmail.com>:
--
components: +asyncio
nosy: +yselivanov
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python
Changes by Chris Jerdonek <chris.jerdo...@gmail.com>:
--
title: document the new behavior of get_event_loop() Python 3.6 -> document the
new behavior of get_event_loop() in Python 3.6
___
Python tracker <rep...@bugs.pytho
New submission from Chris Jerdonek:
Currently, the Python asyncio.get_event_loop() docs don't say that
get_event_loop() returns the currently running event loop when it is called
from a coroutine:
https://docs.python.org/3/library/asyncio-eventloops.html#asyncio.get_event_loop
https
Changes by Chris Jerdonek <chris.jerdo...@gmail.com>:
--
nosy: +chris.jerdonek
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python
Chris Jerdonek added the comment:
Note that the example can be further simplified by replacing user() with:
async def send_hello(g):
print("sending: hello")
await g.asend("hello")
Then the output is:
sending: hello
received hello
sending: hello
sending:
Changes by Chris Fiege <c...@pengutronix.de>:
--
nosy: +cfi
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30665>
___
__
Chris Barth added the comment:
There are now several patches for this problem, which also affects me. What are
the next steps to get this resolved?
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
Changes by Chris Barth <chrisjba...@gmail.com>:
--
nosy: +Chris Barth
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28603>
___
_
Chris Wilcox added the comment:
I am going to work on this if no one else has started.
--
nosy: +crwilcox
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
Changes by Chris Angelico <ros...@gmail.com>:
--
nosy: +Rosuav
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29929>
___
__
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
Chris Seto added the comment:
Thank you for pointing that out to me!
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30187>
___
__
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
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 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 b
Changes by Chris Warrick <kwpol...@gmail.com>:
--
nosy: +Kwpolska
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29134>
___
__
Chris Barker added the comment:
Agreed:
the custom dict type would be nice for a recipe or blog post or...
but not for the docs.
I'll note that the other trick to this recipe is that you need to know to use
lambda to make a "None factory" for defaultdict -- though maybe tha
New submission from Chris:
argparse does not handle Store actions correctly when "nargs = 1" is provided.
The documentation indicates the value should be assigned to the dest, but
instead a list with the value as the only item is assigned to dest.
--
files: test_argparse.p
Changes by Chris Rebert <pyb...@chrisrebert.com>:
--
nosy: +cvrebert
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28537>
___
_
New submission from Chris Byers:
The configure.ac file adds the "-g" debug compiler option to both debug and
non-debug builds, so debug information is built for production builds. This
seems likely a bug, unless there was a specific reason to do this.
Around line 1480 of co
New submission from Chris Meyer:
BaseEventLoop.close shuts down the executor associated with the event loop.
It should do that BEFORE it sets self._closed = True, otherwise any pending
executor futures will attempt to 'call_soon' on the event loop when they
finish, resulting in a confusing
Chris Angelico added the comment:
Also working for me. Thanks!
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27322>
___
___
Pyth
Chris Angelico added the comment:
I'm not sure. The patch got backed out with little explanation, so presumably
it broke something somewhere, but I don't know what.
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
New submission from Chris Rao:
In the second code block in the section on autospeccing in
https://docs.python.org/3/library/unittest.mock.html#auto-speccing, assert is
spelled as "assret"
>>> mock = Mock(name='Thing', return_value=None)
>>> mock(1, 2, 3)
>>&
New submission from Chris Angelico:
Discussion on python-ideas led to a firm ruling by Guido that enum members are
functionally equivalent to constants, and should thus be named in upper-case.
This is contrary to the current documentation. Solution? Change the docs.
--
assignee: docs
Chris Jerdonek added the comment:
An idea occurred to me on this recently. Instead of changing TextTestResult to
call test.id() everywhere instead of str(test), what about making
TextTestResult DRY by having it call a new method called something like
self.getName(test)?
With this approach
Chris Angelico added the comment:
Huh. Yeah, that would work really nicely. Thanks Christian!
Does this count as a bugfix? I think we've missed 3.6 feature freeze.
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
New submission from Chris Nyland:
I have recently developed a action for the argparse module that allows
arguments to be read in from configuration files. It is different in
functionality than the convert_arg_line_to_args in that the file path(s) is
passed to the action and then opened
Chris Angelico added the comment:
Thanks Brett! Sounds like a plan.
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27080>
___
___
Chris Angelico added the comment:
Just ran into the same issue, but in a slightly different way, and with
slightly different consequences. You can actually eliminate this failure by
manually running compileall on the affected directory:
sudo python3 -m compileall /usr/local/lib/python3.6/site
Chris Angelico added the comment:
Another couple of tests, per comments.
--
Added file: http://bugs.python.org/file44425/moar-tests.patch
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
Chris Wood added the comment:
Ah, in that case:
- I guess the issue would have been that the python 3.5 installation I tried
(which was 3.5.0a1) had the vcruntime140.dll issue
- I've realised that the 3.5* installation puts Python on the beginning of the
PATH - whereas I was putting
Chris Wood added the comment:
Apologies, there are typos in my final paragraph - 3.5.11 should just be 3.5,
and 3.5.12 should be 3.5.2
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
Chris Wood added the comment:
https://www.python.org/downloads/
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27836>
___
___
New submission from Chris Wood:
Windows 7 / 64-bit / 4 Gb Ram / Intel i5 processor.
This seems to have been discussed intermittently in the past, but none of the
previous answers fixed my problem.
I installed 3.5, and when I tried running it (both from the Windows cmd line
and from
Chris Jerdonek added the comment:
> We can't solve that problem; only Apple can;
> So, if we don't change _scproxy or urllib*'s use of it, only Apple can fix
> the problem.
In the Django ticket I mentioned in my comment above, one of the commenters
said, "Just ran the tests at
New submission from Chris Angelico:
Having matplotlib installed globally causes test_site to fail, due to the .pth
file importing types. The point of the test is to monitor startup dependencies
(and thus time) for the core interpreter and standard library, not third-party
libraries, so having
Changes by Chris Angelico <ros...@gmail.com>:
--
keywords: +patch
Added file: http://bugs.python.org/file44158/no-site-packages-in-test.patch
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python
Chris Jerdonek added the comment:
FWIW, I just came across an issue in Django's test suite that I believe is
caused by the issue reported here. Some of Django's unit tests were hanging for
me when run in "parallel" mode (which uses multiprocessing). Here is the ticket
I filed th
Changes by Chris Jerdonek <chris.jerdo...@gmail.com>:
--
nosy: +chris.jerdonek
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python
Chris Angelico added the comment:
Hmm, strange. Comma formatting never seems to have had tests added. So I've
added a couple of simple tests of comma formatting at the same time as adding
underscore formatting tests. Also, test_long.py currently has a comment "#
octal" precedi
Chris Angelico added the comment:
Hmm, adding bin/oct/hex support didn't turn out that hard. Although it feels
like this code is getting hackish. Definitely needs code review!
--
Added file: http://bugs.python.org/file44153/underscores_all_bases.patch
Changes by Chris Angelico <ros...@gmail.com>:
--
nosy: +Rosuav
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27080>
___
__
Chris Angelico added the comment:
Here's a first-cut patch. No docs, no tests, and applies only to decimal
formatting. It involves redefining the thousands_separators flag from being a
boolean to being a three-state flag (none, comma, or underscore), and (ab)uses
LT_*_LOCALE to carry
New submission from Chris Jerdonek:
When installing Python 3.5.2 from source on Ubuntu 14.04 and running
make, I get the below "Could not find platform dependent libraries"
warnings (which I prefixed with "***" for better visibility).
>From this message which has more bac
Changes by Chris Mayo <aklh...@gmail.com>:
--
nosy: +cjmayo
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27226>
___
__
Changes by Chris Mayo <aklh...@gmail.com>:
--
nosy: +cjmayo
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25170>
___
__
Changes by Chris Angelico <ros...@gmail.com>:
--
nosy: +Rosuav
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27587>
___
__
Changes by Chris Rebert <pyb...@chrisrebert.com>:
--
nosy: +cvrebert
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27587>
___
_
Changes by Chris Rebert <pyb...@chrisrebert.com>:
--
nosy: +cvrebert
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27561>
___
_
Chris Angelico added the comment:
Cool cool! Then someone will need to notify the PVS-Studio people that we've
fixed the two bugs that are actually our bugs :)
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
Chris Angelico added the comment:
Berker, I don't push code to CPython (I have the commitbit for PEP editing), so
do you want to push that?
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
New submission from Chris Angelico:
Originally reported (if you can call it "reported") here:
http://www.viva64.com/en/b/0414/
AFAICT, this is an easy and inconsequential fix.
--
files: uninitialized-pointer.patch
keywords: patch
messages: 270991
nosy: Rosuav
priority: norma
Chris Angelico added the comment:
Attached is a combined patch that has the new private function for
IsIdentifier, method 4's error handling change, and a bit of glue in the middle
to make use of it. The result is a passing test suite (bar test_site which was
already failing on my system
Chris Angelico added the comment:
Hmm, that'd be curious. The code to do that is actually pretty simple - see
attached patch - but actually using that to affect error messages is a bit
harder. Is it safe to mess with tok->start?
--
Added file:
http://bugs.python.org/file43818/wh
Chris Angelico added the comment:
BTW, here's how a session looks using method 4's change:
>>> varname = asdf“d“a”t”apoint
File "", line 1
varname = asdf“d“a”t”apoint
^
SyntaxError: invalid character in identifier
>>> varname = asdf“d“a”t”apoin
Changes by Chris Angelico <ros...@gmail.com>:
Added file: http://bugs.python.org/file43813/method3-change-all-errors.patch
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python
Changes by Chris Angelico <ros...@gmail.com>:
Added file: http://bugs.python.org/file43812/method2-change-cur-and-inp.patch
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python
Changes by Chris Angelico <ros...@gmail.com>:
Added file:
http://bugs.python.org/file43814/method4-change-all-errors-if-possible.patch
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python
Chris Angelico added the comment:
Actually pinpointing the invalid character may be impractical, as there are two
boolean situations: either a UnicodeDecodeError (because you had an invalid
UTF-8 stream), or PyUnicode_IsIdentifier returns false. Either way, it applies
to the whole identifier
501 - 600 of 2739 matches
Mail list logo