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
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
Change by Michael J. Sullivan :
--
pull_requests: +13419
___
Python tracker
<https://bugs.python.org/issue36878>
___
___
Python-bugs-list mailing list
Unsub
Michael J. Sullivan added the comment:
I think this is done!
--
___
Python tracker
<https://bugs.python.org/issue36878>
___
___
Python-bugs-list mailin
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
Change by Michael J. Sullivan :
--
keywords: +patch
pull_requests: +13433
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue37017>
___
_
Change by Michael J. Sullivan :
--
nosy: +brett.cannon, serhiy.storchaka, vstinner, yselivanov
___
Python tracker
<https://bugs.python.org/issue37017>
___
___
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
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
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
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
Changes by Michael Welsh Duggan :
--
nosy: +md5i
___
Python tracker
<http://bugs.python.org/issue15657>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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.
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
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
Changes by Michael J. Fromberger :
Added file: http://bugs.python.org/file15155/crash-report.txt
___
Python tracker
<http://bugs.python.org/issue7160>
___
___
Python-bug
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Changes by Seth Michael Larson :
--
components: +asyncio
nosy: +gvanrossum
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue29704>
___
___
Py
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
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
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
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
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
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
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
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
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
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
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
3001 - 3045 of 3045 matches
Mail list logo