[issue41947] Tests When Building Python

2020-10-05 Thread Michael L. Boom
New submission from Michael L. Boom : When building Python it runs 416 tests in sequence. It would be a "lot" faster if these were run in parallel. -- components: Installation messages: 378062 nosy: boom0192 priority: normal severity: normal status: open title: Tests Whe

[issue41947] Tests When Building Python

2020-10-05 Thread Michael L. Boom
Michael L. Boom added the comment: When I do the ./configure, make -j 32, and make install it runs 416 tests in sequence. Is there a way to make it run 32 unit tests at a time so it is much quicker? Thanks. -- ___ Python tracker <ht

[issue36878] ast.parse with type_comments=True should allow extra text after # type: ignore

2019-05-22 Thread Michael J. Sullivan
Change by Michael J. Sullivan : -- pull_requests: +13419 ___ Python tracker <https://bugs.python.org/issue36878> ___ ___ Python-bugs-list mailing list Unsub

[issue36878] ast.parse with type_comments=True should allow extra text after # type: ignore

2019-05-22 Thread Michael J. Sullivan
Michael J. Sullivan added the comment: I think this is done! -- ___ Python tracker <https://bugs.python.org/issue36878> ___ ___ Python-bugs-list mailin

[issue37017] Use LOAD_METHOD optimization in CallMethod C API functions

2019-05-22 Thread Michael J. Sullivan
New submission from Michael J. Sullivan : The different varieties of PyObject_CallMethod* routines all operate by doing a PyObject_GetAttr to fetch an object to call. It seems likely to be worthwhile to take advantage of the LOAD_METHOD optimization that avoids creating a bound method object

[issue37017] Use LOAD_METHOD optimization in CallMethod C API functions

2019-05-22 Thread Michael J. Sullivan
Change by Michael J. Sullivan : -- keywords: +patch pull_requests: +13433 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue37017> ___ _

[issue37017] Use LOAD_METHOD optimization in CallMethod C API functions

2019-05-22 Thread Michael J. Sullivan
Change by Michael J. Sullivan : -- nosy: +brett.cannon, serhiy.storchaka, vstinner, yselivanov ___ Python tracker <https://bugs.python.org/issue37017> ___ ___

[issue37017] Use LOAD_METHOD optimization in CallMethod C API functions

2019-05-23 Thread Michael J. Sullivan
Michael J. Sullivan added the comment: I believe that this is orthogonal to PEP 590. PyObject_CallMethodObjArgs and friends take varargs which need to be copied into an array one way or another. It is easy (and efficient) to prepend the base while copying the function arguments into the

[issue30443] datetime.datetime.__add__ does not respect fold.

2017-05-23 Thread Michael R. Shannon
New submission from Michael R. Shannon: datetime.datetime.__add__ is currently implemented by converting the date into a datetime.timedelta object (using toordinal) before adding it to the other (timedelta) object and reconstructing with datetime.combine. With this method, fold will always

[issue32737] str.format not producing strings for nan argument in accordance with documentation

2018-01-31 Thread D. Michael Parrish
New submission from D. Michael Parrish : >>> version_info (3, 0, 1, 'final', 0) # I know this is an older version---stuck with it at work. # I did not see this issue in the tracker (380 results for nan). # Perhaps there is better documentation for how to use the issue # t

[issue32737] str.format not producing strings for nan argument in accordance with documentation

2018-01-31 Thread D. Michael Parrish
D. Michael Parrish added the comment: Thank you so much for that reply. Maybe with that I can push for an upgrade. -- ___ Python tracker <https://bugs.python.org/issue32

[issue15657] Error in Python 3 docs for PyMethodDef

2012-08-14 Thread Michael Welsh Duggan
Changes by Michael Welsh Duggan : -- nosy: +md5i ___ Python tracker <http://bugs.python.org/issue15657> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21380] timezone support in strftime methods broken

2014-04-28 Thread Michael P. Soulier
New submission from Michael P. Soulier: msoulier@cappuccino:~$ python Python 2.7.3 (default, Mar 13 2014, 11:03:55) [GCC 4.7.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from datetime import datet

[issue7744] Allow site.addsitedir insert to beginning of sys.path

2014-09-09 Thread Michael R. Bernstein
Michael R. Bernstein added the comment: The lack of a left-append option for site.addsitedir(path), or an site.insertsitedir(index, path) (which is what I would consider a better solution), causes quite a few contortions on some hosted platforms, notably Google App Engine, for vendored

[issue7744] Allow site.addsitedir insert to beginning of sys.path

2014-09-10 Thread Michael R. Bernstein
Michael R. Bernstein added the comment: And in case it isn't clear how such a method would help, here is what the earlier code would look like: import os import site dirname = 'lib' dirpath = os.path.join(os.path.dirname(__file__), dirname) site.

[issue6580] No deprecation warning for list comprehension leak conflict

2009-07-26 Thread Michael R Bax
New submission from Michael R Bax : PEP 289 states that "Python 2.4 and beyond should issue a deprecation warning if a list comprehension's loop variable has the same name as a variable used in the immediately surrounding scope". But no warning is shown when running for x

[issue7160] Crash when returning a 64-bit char pointer in Python 2.6.3 ctypes

2009-10-17 Thread Michael J. Fromberger
New submission from Michael J. Fromberger : A segmentation fault is generated in _ctypes.so when calling a function that returns a char pointer on a system with 64-bit pointer types. The attached crash dump is from a Python 2.6.3 built from MacPorts ("port install python26 +no_tk

[issue7160] Crash when returning a 64-bit char pointer in Python 2.6.3 ctypes

2009-10-17 Thread Michael J. Fromberger
Changes by Michael J. Fromberger : Added file: http://bugs.python.org/file15155/crash-report.txt ___ Python tracker <http://bugs.python.org/issue7160> ___ ___ Python-bug

[issue7160] Crash when returning a 64-bit char pointer in Python 2.6.3 ctypes

2009-10-17 Thread Michael J. Fromberger
Michael J. Fromberger added the comment: I believe this error occurs because a pointer value is being truncated to 32 bits. The exception code is KERN_INVALID_ADDRESS at 0x002fe020 If you add a diagnostic printout to the body of get_message(), you will see that its return value is

[issue7160] Crash when returning a 64-bit char pointer in Python 2.6.3 ctypes

2009-10-19 Thread Michael J. Fromberger
Michael J. Fromberger added the comment: Thank you for setting me straight. I see now that I misunderstood the scope of `CFUNCTYPE`, as I was using it as a general wrapper when in fact it's only needed for callbacks. Mistakenly, I inferred from reading section 16.15.2.4 of the c

[issue1160] Medium size regexp crashes python

2009-11-13 Thread Michael K Johnson
Michael K Johnson added the comment: I also ran into this issue, and dealt with it as suggested here by changing to sets. Because I have underlying code that has to deal both with small hand-crafted regular expressions and arbitrarily-large machine-generated sets of paths, I subclassed set and

[issue1160] Medium size regexp crashes python

2009-11-15 Thread Michael K Johnson
Michael K Johnson added the comment: The test case at the top of this issue reproduces just fine; if you are looking for a different test case you'll have to specify what you don't like about it so that it's clear what you are looking for. I don't think there's any mys

[issue5809] "No such file or directory" with framework build under MacOS 10.4.11

2009-04-21 Thread Michael J. Fromberger
New submission from Michael J. Fromberger : Checkout: <http://svn.python.org/projects/python/tags/r262> Configure: env CFLAGS="-I/opt/local/include" LDFLAGS="-L/opt/local/lib" sh ./configure --enable-framework --enable-shared --enable-readline Build: make The co

[issue5809] "No such file or directory" with framework build under MacOS 10.4.11

2009-04-21 Thread Michael J. Fromberger
Michael J. Fromberger added the comment: Sorry, I managed to not copy the error message. It is: i686-apple-darwin8-gcc-4.0.1: Python.framework/Versions/2.6/Python: No such file or directory make: *** [python.exe] Error 1 -- ___ Python tracker

[issue5809] "No such file or directory" with framework build under MacOS 10.4.11

2009-05-08 Thread Michael J. Fromberger
Michael J. Fromberger added the comment: Ned Deily writes: > --enable-framework and --enable-shared are mutually exclusive options. Aha, I did not realize that, though I suppose in retrospect it should have been obvious. Removing "--enable-shared" from my build configuration do

[issue6254] tarfile unnecessarily requires seekable files

2009-06-10 Thread Michael K Johnson
New submission from Michael K Johnson : In python 2.6 (not 2.4, haven't checked 2.5), the __init__() method of the TarFile class calls the tell() method on the tar file, which doesn't work if you are reading from standard input or writing to standard output, two very reasonable things

[issue6254] tarfile unnecessarily requires seekable files

2009-06-10 Thread Michael K Johnson
Michael K Johnson added the comment: We are doing output, and mode='w|' works. We were using tarfile.TarFile, not realizing that the default constructor was an unsupported and deprecated interface (!?!) -- status: open -> closed ___ P

[issue6254] tarfile unnecessarily requires seekable files

2009-06-11 Thread Michael K Johnson
Michael K Johnson added the comment: OK, not intended for "everyday use"; I understand this as meaning that it is considered primarily an internal interface, and thus one that has an explicitly unstable API. It is hard for me to guess that this would be the case, since this int

[issue4395] Document auto __ne__ generation; provide a use case for non-trivial __ne__

2009-06-21 Thread Michael K. Edwards
Michael K. Edwards added the comment: The implementation you are looking for is in object_richcompare, in http://svn.python.org/projects/python/branches/py3k/Objects/typeobject.c . It would be most accurate to say something like: The "object" base class, from which all us

[issue4395] Document auto __ne__ generation; provide a use case for non-trivial __ne__

2009-06-21 Thread Michael K. Edwards
Michael K. Edwards added the comment: It would also be useful to point out that there is a shortcut in the interpreter itself (PyObject_RichCompareBool, in object.c) which checks the equivalent of id(a) == id(b) and bypasses __eq__/__ne__ if so. Since not every call to __eq__ passes through

[issue29091] Python 3.5+ socket.socketpair fallback incorrectly implemented

2016-12-27 Thread Seth Michael Larson
New submission from Seth Michael Larson: The socket.socketpair() fallback for Python 3.5+ is incorrectly implemented from the original source. The fallback doesn't provide a backlog argument to the lsock.listen() function call. When running the function it gives the following

[issue29091] Python 3.5+ socket.socketpair fallback incorrectly implemented

2016-12-28 Thread Seth Michael Larson
Seth Michael Larson added the comment: Sorry for making noise, yes I was using the implementation in Python 2.x. I will do better investigation in the future. -- ___ Python tracker <http://bugs.python.org/issue29

[issue29704] Can't read data from Transport after asyncio.SubprocessStreamProtocol closes

2017-03-02 Thread Seth Michael Larson
New submission from Seth Michael Larson: Copied from https://github.com/python/asyncio/issues/484 """ >From https://bugs.python.org/issue23242#msg284930 The following script is used to reproduce the bug: import asyncio async def execute(): process = await asyncio.crea

[issue29704] Can't read data from Transport after asyncio.SubprocessStreamProtocol closes

2017-03-02 Thread Seth Michael Larson
Changes by Seth Michael Larson : -- components: +asyncio nosy: +gvanrossum type: -> behavior ___ Python tracker <http://bugs.python.org/issue29704> ___ ___ Py

[issue17698] Setting allow_reuse_address in BaseHTTPServer has no effect.

2013-04-11 Thread Michael Bevilacqua-Linn
New submission from Michael Bevilacqua-Linn: Hello, In BaseHTTPServer line 104 is the following: allow_reuse_address = 1# Seems to make sense in testing environment This appears to attempt to set SO_REUSEADDR, but it doesn't actually do anything since the attribute that needs to b

[issue17698] Setting allow_reuse_address in BaseHTTPServer has no effect.

2013-04-11 Thread Michael Bevilacqua-Linn
Michael Bevilacqua-Linn added the comment: Ack yes you're right, there was a bug in my test case... Sorry about that. -- ___ Python tracker <http://bugs.python.org/is

[issue22760] re.sub does only first 16 replacements if re.S is used

2014-10-29 Thread Michael Del Monte
New submission from Michael Del Monte: Easily reproduced: re.sub('x', 'a', "x"*20, re.S) returns '' -- components: Regular Expressions messages: 230216 nosy: ezio.melotti, mgdelmonte, mrabarnett priority: normal severity: nor

[issue24363] httplib fails to handle semivalid HTTP headers

2015-06-02 Thread Michael Del Monte
New submission from Michael Del Monte: Initially reported at https://github.com/kennethreitz/requests/issues/2622 Closely related to http://bugs.python.org/issue19996 An HTTP response with an invalid header line that contains non-blank characters but *no* colon (contrast http

[issue24363] httplib fails to handle semivalid HTTP headers

2015-06-02 Thread Michael Del Monte
Michael Del Monte added the comment: Thanks. Also I meant to have said, "...to terminate only on a *blank* non-header non-comment line, in accordance with RFC 2616 (and 7230)." I note that the RFCs require CRLF to terminate but in my experience you can get all manner of "b

[issue24363] httplib fails to handle semivalid HTTP headers

2015-06-02 Thread Michael Del Monte
Michael Del Monte added the comment: I don't want to speak out of school and you guys certainly know what you're doing, but it seems a shame to go through these gyrations -- lookahead plus "unreading" lines -- only to preserve the ability to parse email headers, when HTTP

[issue24363] httplib fails to handle semivalid HTTP headers

2015-06-03 Thread Michael Del Monte
Michael Del Monte added the comment: Given that obs-fold is technically valid, then can I recommend reading the entire header first (reading to the first blank line) and then tokenizing the individual headers using a regular expression rather than line by line? That would solve the problem

[issue24363] httplib fails to handle semivalid HTTP headers

2015-06-03 Thread Michael Del Monte
Michael Del Monte added the comment: ... or perhaps if ':' in line and line[0] != ':': to avoid the colon-as-first-char bug that plagued this library earlier, though the only ill-effect of leaving it alone would be a header with a blank key; not

[issue25350] Stronger type enforcement (feature request)

2015-10-08 Thread John Michael Lafayette
New submission from John Michael Lafayette: With a lot of languages, I can tell that the type I am getting is an instance of the declared type I'm assigning it to. Example: Cat c = Factory.make("cat" Animal d = Factory.make("dog") Python: val c = Factory.make("ca

[issue25374] Deficiencies in type hint usage in Python standard libraries

2015-10-10 Thread John Michael Lafayette
New submission from John Michael Lafayette: I love the new type hint feature in Jetbrains IDE (PEP 0484). Now when my user defined methods return a value, I can press (Crtl+space) and see the type of that value and all its methods. Also, when I pass the wrong type in, I get a warning. Oddly

[issue23547] Engineering at Google in 2015

2015-02-28 Thread Michael Bevilacqua-Linn
New submission from Michael Bevilacqua-Linn: Hey thanks so much for reaching out! I'm not really interested in leaving Philly or my current job at the moment though... Thanks! MBL On Fri, Feb 27, 2015 at 4:48 AM, Margaret O'Reilly wrote: > Hi Michael, > > I hope you are

<    26   27   28   29   30   31