Change by Antoine Pitrou :
--
nosy: +vstinner
___
Python tracker
<https://bugs.python.org/issue21536>
___
___
Python-bugs-list mailing list
Unsubscribe:
Antoine Pitrou added the comment:
The current behavior can't be changed for compatibility reasons (imagine user
programs starting to raise on Thread.join()), but we could add an option to the
threading.Thread() constructor in order to store and propagate exceptions.
--
nosy
Change by Antoine Pitrou :
--
nosy: +tim.peters
type: -> enhancement
versions: +Python 3.8 -Python 3.7
___
Python tracker
<https://bugs.python.org/issu
Antoine Pitrou added the comment:
What do you mean, "no consensus could be found"? I don't see anyone objecting
the change.
--
___
Python tracker
<https://bugs.python.o
Antoine Pitrou added the comment:
> The proposed PR adds two compile time options: HAVE_UNICODE_WCHAR_CACHE and
> USE_UNICODE_WCHAR_CACHE
I don't think this is a good approach. Most projects and developers don't
recompile Python. It's especially a chore when you have many depend
Antoine Pitrou added the comment:
Sorry - I meant make a *PR* out of it :-)
--
___
Python tracker
<https://bugs.python.org/issue36368>
___
___
Python-bugs-list m
Antoine Pitrou added the comment:
Your patch sounds good on the principle, but can you make a patch out of it?
--
___
Python tracker
<https://bugs.python.org/issue36
Change by Antoine Pitrou :
--
nosy: +vstinner
___
Python tracker
<https://bugs.python.org/issue35943>
___
___
Python-bugs-list mailing list
Unsubscribe:
Antoine Pitrou added the comment:
This is pushed to 3.7 and master now. Thank you Tim for the report and the fix!
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: -Python 3.6
___
Python tracke
Antoine Pitrou added the comment:
New changeset 3129432845948fdcab1e05042e99a19e9e2c3c71 by Antoine Pitrou (Miss
Islington (bot)) in branch '3.7':
bpo-34572: change _pickle unpickling to use import rather than retrieving from
sys.modules (GH-9047) (GH-11921)
https://github.com/python
Antoine Pitrou added the comment:
New changeset 4371c0a9c0848f7a0947d43f26f234842b41efdf by Antoine Pitrou
(tjb900) in branch 'master':
bpo-34572: change _pickle unpickling to use import rather than retrieving from
sys.modules (GH-9047)
https://github.com/python/cpython/commit
Antoine Pitrou added the comment:
I am not particularly interested in making Python 2 or ancient pickle protocols
easier to use, sorry ;-)
--
___
Python tracker
<https://bugs.python.org/issue31
Antoine Pitrou added the comment:
I'm assuming the calling shell uses waitpid() and then WIFSIGNALED()?
--
___
Python tracker
<https://bugs.python.org/issue1054
Antoine Pitrou added the comment:
By "relatively new thing", you mean less than 20 years old? :-)
--
___
Python tracker
<https://bugs.python.o
Antoine Pitrou added the comment:
Your proposal sounds fine to me. You could fall back on platform.machine()
instead of calling `uname` explicitly.
--
nosy: +pitrou
___
Python tracker
<https://bugs.python.org/issue35
Antoine Pitrou added the comment:
> SharedMemoryManager does not subclass SyncManager but it did previously.
Ah, right. Then it's ok to change the tests IMO.
--
___
Python tracker
<https://bugs.python.org/issu
Antoine Pitrou added the comment:
Davin:
> This is my fault because I altered SharedMemoryManager to no longer support
> functionality from SyncManager that I thought could be confusing to include.
> I am just now discovering this and am not immediately sure if simply
Antoine Pitrou added the comment:
notifying a lot of people
--
___
Python tracker
<https://bugs.python.org/issue2771>
___
___
Python-bugs-list mailing list
Unsub
Antoine Pitrou added the comment:
That sounds fine to me.
--
___
Python tracker
<https://bugs.python.org/issue35918>
___
___
Python-bugs-list mailing list
Unsub
Antoine Pitrou added the comment:
I think the functionality of getting either the system-wide default shell or
the current user's default shell can be useful regardless of whether the
specific subprocess issue was fixed.
--
nosy: +ncoghlan
stage: patch review -> needs patch
versi
Change by Antoine Pitrou :
--
nosy: +pablogsal
___
Python tracker
<https://bugs.python.org/issue35943>
___
___
Python-bugs-list mailing list
Unsubscribe:
Antoine Pitrou added the comment:
Opened issue35943 for PyImport_GetModule().
--
___
Python tracker
<https://bugs.python.org/issue34572>
___
___
Python-bug
New submission from Antoine Pitrou :
PyImport_GetModule() returns whatever is in sys.modules, even if the module is
still importing and therefore only partially initialized.
One possibility is to reuse the optimization already done in
PyImport_ImportModuleLevelObject
Antoine Pitrou added the comment:
I agree that more generally PyImport_GetModule() should be fixed. But it
should be done carefully so as to not to lose the performance benefit of doing
it. I think we should open a separate issue about that.
PS: one possibility is to reuse
Antoine Pitrou added the comment:
You can have both a dict and slots by subclassing:
>>> class A:
...: __slot
Antoine Pitrou added the comment:
New changeset 48769a28ad6ef4183508951fa6a378531ace26a4 by Antoine Pitrou (Miss
Islington (bot)) in branch '3.7':
bpo-35615: Fix crashes when copying a Weak{Key,Value}Dictionary. (GH-11384)
(GH-11785)
https://github.com/python/cpython/commit
Antoine Pitrou added the comment:
New changeset 96d37dbcd23e65a7a57819aeced9034296ef747e by Antoine Pitrou (Fish)
in branch 'master':
bpo-35615: Fix crashes when copying a Weak{Key,Value}Dictionary. (GH-11384)
https://github.com/python/cpython/commit/96d37dbcd23e65a7a57819aeced9034296ef747e
Change by Antoine Pitrou :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Antoine Pitrou added the comment:
New changeset df8d2cde63c865446468351f8f648e1c7bd45109 by Antoine Pitrou
(Pierre Glaser) in branch 'master':
bpo-35911: add cell constructor (GH-11771)
https://github.com/python/cpython/commit/df8d2cde63c865446468351f8f648e1c7bd45109
Antoine Pitrou added the comment:
Does it still work? With both the C and Python pickler?
Can you post an example?
--
___
Python tracker
<https://bugs.python.org/issue35
Antoine Pitrou added the comment:
(also, OSError will automatically convert to more specific subclasses for some
errnos, see PEP 3151:
>>> raise OSError(errno.ENOENT
Change by Antoine Pitrou :
--
nosy: +brett.cannon, eric.snow, ncoghlan
___
Python tracker
<https://bugs.python.org/issue34572>
___
___
Python-bugs-list mailin
Antoine Pitrou added the comment:
Interesting I could not reproduce here, even by throwing Pandas into the mix
and spawning 1024 workers...
--
nosy: +pitrou
___
Python tracker
<https://bugs.python.org/issue34
Antoine Pitrou added the comment:
New changeset 15526f5be72f547288c16d53526fc74f15ee61ed by Antoine Pitrou in
branch '3.7':
[3.7] bpo-35917: Test multiprocessing manager classes and shareable types
(GH-11772) (GH-11780)
https://github.com/python/cpython/commit
Antoine Pitrou added the comment:
Thanks Giampaolo!
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Antoine Pitrou :
--
pull_requests: +11761, 11762, 11763
___
Python tracker
<https://bugs.python.org/issue35917>
___
___
Python-bugs-list mailin
Change by Antoine Pitrou :
--
pull_requests: +11761
___
Python tracker
<https://bugs.python.org/issue35917>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Antoine Pitrou :
--
pull_requests: +11761, 11762
___
Python tracker
<https://bugs.python.org/issue35917>
___
___
Python-bugs-list mailing list
Unsub
Antoine Pitrou added the comment:
New changeset 2848d9d29914948621bce26bf0d9a89f2e19b97b by Antoine Pitrou
(Giampaolo Rodola) in branch 'master':
bpo-35917: Test multiprocessing manager classes and shareable types (GH-11772)
https://github.com/python/cpython/commit
Antoine Pitrou added the comment:
(sorry for the typos; a bit sick today)
--
___
Python tracker
<https://bugs.python.org/issue35921>
___
___
Python-bugs-list m
Antoine Pitrou added the comment:
> Besides not rebuilding .o[bj] files where the sources have not changed, what
> else do these tools do?
That's a different caching scheme.
MSVC, make, ninja and friend will compare timestamps of the .c and .o files are
avoid rebuilding if the .
Antoine Pitrou added the comment:
This is Unix-only, but the same approach may be possible on Windows using
clcache (https://github.com/frerich/clcache).
--
nosy: +steve.dower
___
Python tracker
<https://bugs.python.org/issue35
Change by Antoine Pitrou :
--
keywords: +patch, patch
pull_requests: +11743, 11744
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issu
Change by Antoine Pitrou :
--
keywords: +patch, patch, patch
pull_requests: +11743, 11744, 11745
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issu
Change by Antoine Pitrou :
--
keywords: +patch
pull_requests: +11743
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue35921>
___
___
Py
Antoine Pitrou added the comment:
I've got a proof-of-concept patch, here are the results:
Debug build, uncached
real0m50,260s
user1m52,663s
sys 0m11,305s
Debug build, cached
real0m4,511s
user0m4,009s
sys 0m1,547s
Non-debug build, uncached
real1m18,384s
user
New submission from Antoine Pitrou :
While compiling CPython isn't very slow, enabling ccache if found would produce
faster builds when developing.
--
components: Build
messages: 334973
nosy: pitrou
priority: normal
severity: normal
status: open
title: Use ccache by default
type
Antoine Pitrou added the comment:
Would probably be worthwhile backporting to 3.7 as well.
--
versions: +Python 3.7
___
Python tracker
<https://bugs.python.org/issue35
Antoine Pitrou added the comment:
Interesting. I had never looked too closely and assumed this was already
tested.
--
___
Python tracker
<https://bugs.python.org/issue35
Antoine Pitrou added the comment:
By the way, one likely explanation why this happens only when fork() is called
from a non-main thread is that the non-main thread (which becomes the main
thread in the child process) ends with pthread_exit() while the main thread
would end with exit
Antoine Pitrou added the comment:
It is actually quite an intricate problem. What happens is that child process
*main thread* ends, but not its background sleeping thread (the `lambda:
time.sleep(3600)`).
To diagnose it, you can display the process tree:
```
$ ps fu
USER PID %CPU
Change by Antoine Pitrou :
--
nosy: +pablogsal
___
Python tracker
<https://bugs.python.org/issue35902>
___
___
Python-bugs-list mailing list
Unsubscribe:
Antoine Pitrou added the comment:
Hi Pierre,
You'll want to submit your patch as a GitHub pull request.
Also your PR will have to contain:
- tests for the new Python-facing API
- documentation for the new API
You may want to read more in the developer's guide:
https://devguide.python.org
Change by Antoine Pitrou :
--
nosy: +serhiy.storchaka
___
Python tracker
<https://bugs.python.org/issue35911>
___
___
Python-bugs-list mailing list
Unsubscribe:
Antoine Pitrou added the comment:
FYI, I've removed the duplicate message :-) Also adding Serhiy as cc.
--
nosy: +serhiy.storchaka
___
Python tracker
<https://bugs.python.org/issue35
Change by Antoine Pitrou :
--
Removed message: https://bugs.python.org/msg334871
___
Python tracker
<https://bugs.python.org/issue35900>
___
___
Python-bug
Antoine Pitrou added the comment:
Also, I will want to review this as well. Since Alpha 2 is scheduled for
2019-02-24, and this is a sizable piece of work, I would prefer if a full PR
was available, say, before 2019-02-15.
--
___
Python tracker
Antoine Pitrou added the comment:
And to make things clear, I'm not saying anything about the functionality.
Easier shared memory + multiprocessing is definitely an interesting endeavour
(and a non-trivial one).
--
___
Python tracker
<ht
Antoine Pitrou added the comment:
Yes, I think this was merged too soon. Davin, the convention is that we only
merge completed work, not some work-in-progress.
You already did this once in https://bugs.python.org/issue28053 . You still
haven't completed that piece of work.
I'm going
Antoine Pitrou added the comment:
> So we'd need to restrict to contiguous views anyway, which makes
the method less appealing (IOW, it doesn't offer more than an
augmented memoryview.cast()).
Yes, it would probably be a simpler way of writing `.cast('B', shape=(...),
or
Antoine Pitrou added the comment:
Ok, this is now pushed to 2.7 as well. Thank you Jeroen!
--
___
Python tracker
<https://bugs.python.org/issue25592>
___
___
Antoine Pitrou added the comment:
New changeset 40a101df8c64a1e55cca2780248d7a92bdcccd57 by Antoine Pitrou (Miss
Islington (bot)) in branch '2.7':
bpo-25592: Improve documentation of distutils data_files (GH-9767) (GH-11734)
https://github.com/python/cpython/commit
Change by Antoine Pitrou :
--
stage: patch review -> resolved
status: open -> closed
versions: +Python 2.7
___
Python tracker
<https://bugs.python.org/i
Antoine Pitrou added the comment:
Jeroen you're right. Could you still give it a quick check? Then I'll mark
the PR for a 2.7 backport.
--
___
Python tracker
<https://bugs.python.org/issue25
Change by Antoine Pitrou :
--
status: closed -> open
___
Python tracker
<https://bugs.python.org/issue25592>
___
___
Python-bugs-list mailing list
Unsubscrib
Antoine Pitrou added the comment:
New changeset ebae1ce9c40e62ce52dc968f86ed11578d2fcdfd by Antoine Pitrou (Miss
Islington (bot)) in branch '3.7':
bpo-25592: Improve documentation of distutils data_files (GH-9767) (GH-11701)
https://github.com/python/cpython/commit
Antoine Pitrou added the comment:
Fixing this on 2.7 would require additional investigation (distutils might have
diverged), so I'm closing now.
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: -P
Antoine Pitrou added the comment:
New changeset 598e15d4feaee3849a91d92c9ca51f17baafe19c by Antoine Pitrou
(jdemeyer) in branch 'master':
bpo-25592: Improve documentation of distutils data_files (GH-9767)
https://github.com/python/cpython/commit/598e15d4feaee3849a91d92c9ca51f17baafe19c
Antoine Pitrou added the comment:
I think feature creep is ok if it stems from user needs.
Slighty related, but simpler, is https://bugs.python.org/issue35845
--
___
Python tracker
<https://bugs.python.org/issue34
Antoine Pitrou added the comment:
Sorry, my fingers slipped. Let me try again:
As for tobytes(), if we want to follow NumPy, we can have 'A' mean 'F' if
F-contiguous, 'C' otherwise: [...]
--
___
Python tracker
<https://bugs.python.
Antoine Pitrou added the comment:
Well, raw_memory() would avoid a copy, which is useful.
As for tobytes(), if we want to follow NumPy, we can have 'F' mean if
F-contiguous, 'C' otherwise:
>>> a = np.arange(12, dtype='int8').res
Antoine Pitrou added the comment:
Though it's difficult to say for certain (distutils' option selection logic is
obscure and difficult to follow), it seems that Jeroen's analysis is right.
--
nosy: +pitrou
___
Python tracker
<ht
Change by Antoine Pitrou :
--
versions: +Python 3.7, Python 3.8 -Python 3.5, Python 3.6
___
Python tracker
<https://bugs.python.org/issue25592>
___
___
Python-bug
New submission from Antoine Pitrou :
This request is motivated in detail here:
https://github.com/python/peps/pull/883#issuecomment-458290745
In short: in C, when you have a Py_buffer, you can directly read the memory in
whatever order you want (including physical order). It is not possible
Antoine Pitrou added the comment:
This is basically fixed, except that I'll let the Release Manager choose
whether 3.6 gets the fix as well. Thanks!
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +P
Antoine Pitrou added the comment:
New changeset c2674bf11036af1e06c1be739f0eebcc72dfbf7a by Antoine Pitrou (Miss
Islington (bot)) in branch '3.7':
bpo-34134: Advise to use imap or imap_unordered when handling long iterables.
(gh-8324) (gh-11673)
https://github.com/python/cpython/commit
Antoine Pitrou added the comment:
New changeset 3bab40db96efda2e127ef84e6501fda0cdc4f5b8 by Antoine Pitrou
(Windson yang) in branch 'master':
bpo-34134: Advise to use imap or imap_unordered when handling long iterables.
(gh-8324)
https://github.com/python/cpython/commit
Antoine Pitrou added the comment:
Patch probably doesn't apply anymore.
--
stage: patch review -> needs patch
versions: +Python 3.8 -Python 3.5, Python 3.6
___
Python tracker
<https://bugs.python.org/issu
Antoine Pitrou added the comment:
> Hi there. I get this behavior as well, although only in a venv.
Ah, thanks for the clarification. Then it's a duplicate of issue35797.
--
resolution: -> duplicate
stage: -> resolved
status: open -> close
Antoine Pitrou added the comment:
@bbayles Hopefully a Windows user could test if you give a step-by-step guide
of what to check for.
--
nosy: +paul.moore, steve.dower, tim.golden, zach.ware
___
Python tracker
<https://bugs.python.org/issue32
Antoine Pitrou added the comment:
Fixed in master branch. Thank you, Minmin Gong!
I don't think this is a candidate for a 3.7 backport. If you think otherwise,
though, please say so. You'll also need to check that the backport enables
proper compilation on ARM.
--
nosy: +ned.deily
Antoine Pitrou added the comment:
New changeset 7a2368063f25746d4008a74aca0dc0b82f86ff7b by Antoine Pitrou
(Minmin Gong) in branch 'master':
bpo-35758: Fix building on ARM + MSVC (gh-11531)
https://github.com/python/cpython/commit/7a2368063f25746d4008a74aca0dc0b82f86ff7b
--
nosy
Antoine Pitrou added the comment:
Hmm, if multiprocessing exhibits the problem, I wouldn't be surprised if some
third-party libraries also do. I think `sys.executable` should really point to
the proper executable.
> But changing sys.executable to _not_ be the venv one will break anyone
Antoine Pitrou added the comment:
Hmm... Out of curiosity, why is the venv's python.exe not simply a symlink to
the original python.exe? What is the point of going through py.exe here?
Also, is this a regression? Otherwise I don't think it has to be a release
blocker
Antoine Pitrou added the comment:
Sorry, but it does not make sense to me (not would it make sense to add e.g. a
JPEG decoder to pathlib). Each project or application would want their own
checksumming specification and pathlib does not have to cater to that.
--
resolution
Antoine Pitrou added the comment:
If not wanting to support the whole gamut of PEP 3118 types, one could start by
only providing ordered comparisons when format == 'B'.
--
stage: -> needs patch
versions: +Python 3.8 -Python 3.5
___
Python trac
Antoine Pitrou added the comment:
Josh, could you say what your use case is?
--
___
Python tracker
<https://bugs.python.org/issue20399>
___
___
Python-bug
Change by Antoine Pitrou :
--
nosy: -pitrou
___
Python tracker
<https://bugs.python.org/issue35283>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Antoine Pitrou :
--
nosy: -pitrou
___
Python tracker
<https://bugs.python.org/issue35537>
___
___
Python-bugs-list mailing list
Unsubscribe:
Antoine Pitrou added the comment:
I'm fine with swallowing the error in both exists() and resolve(). We should be
careful not to swallow errors too broadly, though. The code paths should be
audited to check that EINVAL can't mean something else.
--
versions: +Python 3.8 -Python 3.6
Antoine Pitrou added the comment:
I think exists() should simply return False here. There's no reason a
non-existing drive should fail differently than a non-existing parent directory.
--
stage: -> needs patch
versions: +Python 3.8
___
Pyt
Antoine Pitrou added the comment:
> Is that true outside of virtual environments?
Not in my experience. But I'm not sure special-casing virtual environments
will make the situation easier to understand ;-)
--
___
Python tracker
<
Antoine Pitrou added the comment:
As I said: editable installs (`pip install -e`) are an important use case of
.pth files.
I don't see how namespace packages have anything to do with this, sorry.
--
___
Python tracker
<https://bugs.python.
Antoine Pitrou added the comment:
Are there any numbers on higher-level benchmarks?
--
nosy: +pitrou
___
Python tracker
<https://bugs.python.org/issue35
Antoine Pitrou added the comment:
The key here would be to replace function execution with module execution and
command-line arguments.
So instead of:
python -c 'from multiprocessing.forkserver import main; main(ARG1, ARG2...)'
you would do:
python -m multiprocessing.forkserver ARG1
Antoine Pitrou added the comment:
I'm sorry about not seeing your PR before. Would you like to update it against
current git master?
(note I'm not thrilled by the use of the "ast" module; I hope we can change the
command-line args so that this is
Antoine Pitrou added the comment:
Indeed there is no reason to put all useful path informations under the Path
class. Writing method calls instead of function calls is not an ideal.
--
resolution: -> rejected
stage: patch review -> resolved
status: open -&g
Antoine Pitrou added the comment:
If using Process.sentinel looks easy enough, then go for it. Existing users of
multiprocessing.Pool will benefit.
--
___
Python tracker
<https://bugs.python.org/issue35
Antoine Pitrou added the comment:
For the record, I would have to look up the documentation everytime I encounter
"comb" and "perm", while the full names are intuitive to me.
"prod" and "fact" feel somewhat less obscure.
I suppose there are two po
Antoine Pitrou added the comment:
I agree with Mark that correctness, rather than performance, should be the main
attraction of a stdlib implementation.
By the way "prod" is slightly obscure (though it's Numpy's chosen spelling),
how about "product"? After all, w
401 - 500 of 16564 matches
Mail list logo