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

2018-01-23 Thread Chris Jerdonek
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

[issue28914] selectmodule build fails

2018-01-12 Thread Chris Rose
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

[issue28914] selectmodule build fails

2018-01-12 Thread Chris Rose
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

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

2017-12-30 Thread Chris Jerdonek
Change by Chris Jerdonek <chris.jerdo...@gmail.com>: -- versions: +Python 3.6 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

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

2017-12-30 Thread Chris Jerdonek
Change by Chris Jerdonek <chris.jerdo...@gmail.com>: -- nosy: +chris.jerdonek ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

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

2017-11-30 Thread Chris Jerdonek
Change by Chris Jerdonek <chris.jerdo...@gmail.com>: -- nosy: +chris.jerdonek ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue25683] __context__ for yields inside except clause

2017-11-30 Thread Chris Jerdonek
Change by Chris Jerdonek <chris.jerdo...@gmail.com>: -- nosy: +chris.jerdonek ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue10761] tarfile.extractall fails to overwrite symlinks

2017-11-19 Thread Chris Albright
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

[issue18861] Problems with recursive automatic exception chaining

2017-11-11 Thread Chris Jerdonek
Change by Chris Jerdonek <chris.jerdo...@gmail.com>: -- nosy: +chris.jerdonek ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

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

2017-11-11 Thread Chris Jerdonek
Change by Chris Jerdonek <chris.jerdo...@gmail.com>: -- nosy: +chris.jerdonek ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

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

2017-10-17 Thread Chris Angelico
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

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

2017-10-11 Thread Chris Caron
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

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

2017-10-11 Thread Chris Caron
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

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

2017-10-10 Thread Chris Caron
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

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

2017-10-10 Thread Chris Caron
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

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

2017-10-10 Thread Chris Caron
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

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

2017-10-10 Thread Chris Caron
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

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

2017-10-10 Thread Chris Caron
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

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

2017-10-10 Thread Chris Caron
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

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

2017-10-10 Thread Chris Caron
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

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

2017-10-09 Thread Chris Caron
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

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

2017-10-09 Thread Chris Caron
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

[issue31298] Error when calling numpy.astype

2017-09-06 Thread Chris Wilcox
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

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

2017-09-01 Thread Chris Wilcox
Changes by Chris Wilcox <pyt...@crwilcox.com>: -- pull_requests: +3312 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30581> ___ _

[issue31214] os.walk has a bug on Windows

2017-08-15 Thread Chris Lovett
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

[issue31214] os.walk has a bug on Windows

2017-08-15 Thread Chris Lovett
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

[issue30491] Add a lightweight mechanism for detecting un-awaited coroutine objects

2017-08-09 Thread Chris Jerdonek
Changes by Chris Jerdonek <chris.jerdo...@gmail.com>: -- nosy: +chris.jerdonek ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue31140] Insufficient error message with incorrect formated string literal

2017-08-08 Thread chris.259263
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

[issue31140] Insufficient error message with incorrect formated string literal

2017-08-08 Thread chris.259263
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}&

[issue31033] Add argument to .cancel() of Task and Future

2017-08-07 Thread Chris Jerdonek
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

[issue31033] Add argument to .cancel() of Task and Future

2017-08-07 Thread Chris Jerdonek
Changes by Chris Jerdonek <chris.jerdo...@gmail.com>: -- nosy: +chris.jerdonek ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue29432] wait_for(gather(...)) logs weird error message

2017-08-07 Thread Chris Jerdonek
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>

[issue29432] wait_for(gather(...)) logs weird error message

2017-08-07 Thread Chris Jerdonek
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

[issue31131] asyncio.wait_for() TimeoutError doesn't provide full traceback

2017-08-07 Thread Chris Jerdonek
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

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

2017-07-29 Thread Chris Wilcox
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

[issue28600] asyncio: Optimize loop.call_soon

2017-07-27 Thread Chris Jerdonek
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

[issue28600] shutdown_asyncgens

2017-07-27 Thread Chris Jerdonek
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

[issue28777] Add asyncio.Queue __aiter__, __anext__ methods

2017-07-25 Thread Chris Jerdonek
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

[issue28777] Add asyncio.Queue __aiter__, __anext__ methods

2017-07-25 Thread Chris Jerdonek
Changes by Chris Jerdonek <chris.jerdo...@gmail.com>: -- nosy: +chris.jerdonek ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue30992] Invalid PGP Key Prevents Archive Validation

2017-07-22 Thread Chris White
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

[issue30935] document the new behavior of get_event_loop() in Python 3.6

2017-07-14 Thread Chris Jerdonek
Changes by Chris Jerdonek <chris.jerdo...@gmail.com>: -- components: +asyncio nosy: +yselivanov ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue30935] document the new behavior of get_event_loop() in Python 3.6

2017-07-14 Thread Chris Jerdonek
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

[issue30935] document the new behavior of get_event_loop() Python 3.6

2017-07-14 Thread Chris Jerdonek
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

[issue29930] Waiting for asyncio.StreamWriter.drain() twice in parallel raises an AssertionError when the transport stopped writing

2017-07-10 Thread Chris Jerdonek
Changes by Chris Jerdonek <chris.jerdo...@gmail.com>: -- nosy: +chris.jerdonek ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue30773] async generator receives wrong value when shared between coroutines

2017-06-27 Thread Chris Jerdonek
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:

[issue30665] pass big values for arg to fcntl.ioctl

2017-06-17 Thread Chris Fiege
Changes by Chris Fiege <c...@pengutronix.de>: -- nosy: +cfi ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30665> ___ __

[issue28603] traceback module can't format/print unhashable exceptions

2017-06-14 Thread Chris Barth
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

[issue28603] traceback module can't format/print unhashable exceptions

2017-06-14 Thread Chris Barth
Changes by Chris Barth <chrisjba...@gmail.com>: -- nosy: +Chris Barth ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28603> ___ _

[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 <rep...@bugs.python.org> <http://bugs.python.org/i

[issue29929] Eliminate implicit __main__ relative imports

2017-06-03 Thread Chris Angelico
Changes by Chris Angelico <ros...@gmail.com>: -- nosy: +Rosuav ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29929> ___ __

[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

[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 <rep...@bugs.python.org> <http://bugs.python.org/issue30187> ___ __

[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

[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

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

[issue29134] contextlib doc bug

2017-01-02 Thread Chris Warrick
Changes by Chris Warrick <kwpol...@gmail.com>: -- nosy: +Kwpolska ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29134> ___ __

[issue28612] str.translate needs a mapping example

2016-11-04 Thread Chris Barker
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

[issue28558] argparse Incorrect Handling of Store Actions

2016-10-29 Thread Chris
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

[issue28537] abc module fails to reject instantiation of some multiply-inheriting classes that fail to implement abstract methods

2016-10-25 Thread Chris Rebert
Changes by Chris Rebert <pyb...@chrisrebert.com>: -- nosy: +cvrebert ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28537> ___ _

[issue28470] configure.ac -g debug compiler option when not Py_DEBUG

2016-10-18 Thread Chris Byers
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

[issue28464] BaseEventLoop.close should shutdown executor before marking itself closed

2016-10-17 Thread Chris Meyer
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

[issue27322] test_compile_path fails when python has been installed

2016-09-28 Thread Chris Angelico
Chris Angelico added the comment: Also working for me. Thanks! -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27322> ___ ___ Pyth

[issue27322] test_compile_path fails when python has been installed

2016-09-27 Thread Chris Angelico
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

[issue28173] Misspelled Assert

2016-09-15 Thread Chris Rao
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) >>&

[issue28172] Upper-case all example enum members

2016-09-15 Thread Chris Angelico
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

[issue16288] TextTestResult uses TestCase.__str__() which isn't customisable (vs id() or shortDescription())

2016-09-13 Thread Chris Jerdonek
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

[issue27322] test_compile_path fails when python has been installed

2016-09-12 Thread Chris Angelico
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

[issue28074] Add Configuration file parser action

2016-09-10 Thread Chris Nyland
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

[issue27080] Implement the formatting part of PEP 515, '_' in numeric literals.

2016-09-08 Thread Chris Angelico
Chris Angelico added the comment: Thanks Brett! Sounds like a plan. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27080> ___ ___

[issue27322] test_compile_path fails when python has been installed

2016-09-07 Thread Chris Angelico
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

[issue27080] Implement the formatting part of PEP 515, '_' in numeric literals.

2016-09-07 Thread Chris Angelico
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

[issue27836] VCRUNTIME140.DLL not found

2016-08-23 Thread Chris Wood
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

[issue27836] VCRUNTIME140.DLL not found

2016-08-23 Thread Chris Wood
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

[issue27836] VCRUNTIME140.DLL not found

2016-08-23 Thread Chris Wood
Chris Wood added the comment: https://www.python.org/downloads/ -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27836> ___ ___

[issue27836] VCRUNTIME140.DLL not found

2016-08-23 Thread Chris Wood
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

[issue27126] Apple-supplied libsqlite3 on OS X is not fork safe; can cause crashes

2016-08-23 Thread Chris Jerdonek
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

[issue27807] Prevent site-packages .pth files from causing test_site failure

2016-08-19 Thread Chris Angelico
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

[issue27807] Prevent site-packages .pth files from causing test_site failure

2016-08-19 Thread Chris Angelico
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

[issue27126] Apple-supplied libsqlite3 on OS X is not fork safe; can cause crashes

2016-08-19 Thread Chris Jerdonek
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

[issue27126] Apple-supplied libsqlite3 on OS X is not fork safe; can cause crashes

2016-08-19 Thread Chris Jerdonek
Changes by Chris Jerdonek <chris.jerdo...@gmail.com>: -- nosy: +chris.jerdonek ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue27080] Implement the formatting part of PEP 515, '_' in numeric literals.

2016-08-19 Thread Chris Angelico
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

[issue27080] Implement the formatting part of PEP 515, '_' in numeric literals.

2016-08-19 Thread Chris Angelico
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

[issue27080] Implement the formatting part of PEP 515, '_' in numeric literals.

2016-08-19 Thread Chris Angelico
Changes by Chris Angelico <ros...@gmail.com>: -- nosy: +Rosuav ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27080> ___ __

[issue27080] Implement the formatting part of PEP 515, '_' in numeric literals.

2016-08-19 Thread Chris Angelico
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

[issue27713] Spurious "platform dependent libraries" warnings when running make

2016-08-08 Thread Chris Jerdonek
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

[issue27226] distutils: unable to compile both .opt-1.pyc and .opt2.pyc simultaneously

2016-07-24 Thread Chris Mayo
Changes by Chris Mayo <aklh...@gmail.com>: -- nosy: +cjmayo ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27226> ___ __

[issue25170] 3.4.4, 3.4.5, 3.5.0, 3.5.1, 3.5.2 documentation archives missing

2016-07-24 Thread Chris Mayo
Changes by Chris Mayo <aklh...@gmail.com>: -- nosy: +cjmayo ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25170> ___ __

[issue27587] Issues, reported by PVS-Studio static analyzer

2016-07-23 Thread Chris Angelico
Changes by Chris Angelico <ros...@gmail.com>: -- nosy: +Rosuav ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27587> ___ __

[issue27587] Issues, reported by PVS-Studio static analyzer

2016-07-22 Thread Chris Rebert
Changes by Chris Rebert <pyb...@chrisrebert.com>: -- nosy: +cvrebert ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27587> ___ _

[issue27561] Warn against subclassing builtins, and overriding their methods

2016-07-22 Thread Chris Rebert
Changes by Chris Rebert <pyb...@chrisrebert.com>: -- nosy: +cvrebert ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27561> ___ _

[issue27591] multiprocessing: Possible uninitialized pointer use in Windows builds

2016-07-22 Thread Chris Angelico
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

[issue27591] multiprocessing: Possible uninitialized pointer use in Windows builds

2016-07-22 Thread Chris Angelico
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

[issue27591] multiprocessing: Possible uninitialized pointer use in Windows builds

2016-07-22 Thread Chris Angelico
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

[issue27582] Mispositioned SyntaxError caret for unknown code points

2016-07-21 Thread Chris Angelico
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

[issue27582] Mispositioned SyntaxError caret for unknown code points

2016-07-21 Thread Chris Angelico
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

[issue27582] Mispositioned SyntaxError caret for unknown code points

2016-07-21 Thread Chris Angelico
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

[issue27582] Mispositioned SyntaxError caret for unknown code points

2016-07-21 Thread Chris Angelico
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

[issue27582] Mispositioned SyntaxError caret for unknown code points

2016-07-21 Thread Chris Angelico
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

[issue27582] Mispositioned SyntaxError caret for unknown code points

2016-07-21 Thread Chris Angelico
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

[issue27582] Mispositioned SyntaxError caret for unknown code points

2016-07-21 Thread Chris Angelico
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

<    1   2   3   4   5   6   7   8   9   10   >