Changes by Bob Chen 175818...@qq.com:
--
keywords: +patch
Added file: http://bugs.python.org/file36492/httplib.py.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22231
___
Bob Chen added the comment:
This patch ensures the url not to be unicode, so the 'join' would not cause
error when there is utf-8 string behind.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22231
Changes by Drekin dre...@gmail.com:
--
nosy: +Drekin
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22257
___
___
Python-bugs-list mailing list
Rolf Krahl added the comment:
I'd like to support the request. I have a use case where I definitely need
this feature: I maintain a Python client for a scientific metadata catalogue,
see [1] for details. The client also features the upload of the data files.
The files may come in as a data
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22231
___
___
Python-bugs-list
Changes by Claudiu Popa pcmantic...@gmail.com:
Added file: http://bugs.python.org/file36494/issue21527.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21527
___
Attilio Di Nisio added the comment:
A simple patch to freeze the list of sys.modules.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22292
___
STINNER Victor added the comment:
A simple patch to freeze the list of sys.modules.
Which patch?
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22292
___
Attilio Di Nisio added the comment:
diff -r fb3aee1cff59 Lib/pickle.py
--- a/Lib/pickle.py Wed Aug 27 09:41:05 2014 -0700
+++ b/Lib/pickle.py Thu Aug 28 10:59:37 2014 +0200
@@ -280,7 +280,7 @@
module_name = getattr(obj, '__module__', None)
if module_name is not None:
Martijn Pieters added the comment:
Fixed by revision 3ae399c6ecf6
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22288
___
New submission from James Westby:
Hi,
I'm looking in to the memory usage of our testsuite, which does a fair amount of
def setUp():
patcher = patch.multiple(...)
self.mock_whatever = patcher.start()
self.addCleanup(patcher.stop)
or other ways of creating a mock and
Piotr Dobrogost added the comment:
@Rotkraut
The truth is http in stdlib is dead.
Your best option is to use 3rd party libs like requests or urllib3.
Authors of these libs plan to get rid of httplib entirely; see Moving away
from httplib (https://github.com/shazow/urllib3/issues/58)
New submission from Edward O:
This is a patch for issues similar to #16573
With this patch, the following new tests are now unchanged:
r = dict(zip(s, range(len(s))), **d)
r = len(filter(attrgetter('t'), self.a))
r = min(map(methodcaller('f'), self.a))
max(map(node.id, self.nodes)) + 1 if
Akira Li added the comment:
Josh, on Windows, if at least one standard stream is replaced; all three
hStdInput, hStdOutput, hStdError handles are provided
(all-or-nothing). On POSIX, standard streams stdin (0), stdout (1),
stderr (2) are always inherited from the parent. Each stream can be
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +michael.foord
title: mock could be less memory-intensive - unittest.mock: use slots in
MagicMock to reduce memory footprint
___
Python tracker rep...@bugs.python.org
Changes by Edward O edoubray...@gmail.com:
--
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22294
___
___
Drekin added the comment:
I have found another example of where the current interaction between readline
and Python core lead to confussion. It started with following report on my
package: https://github.com/Drekin/win-unicode-console/issues/2 .
Basically, IPython interactive console on
Roundup Robot added the comment:
New changeset 97081a80f487 by Benjamin Peterson in branch '2.7':
fix load_verify_locations on unicode paths (closes #22244)
http://hg.python.org/cpython/rev/97081a80f487
--
nosy: +python-dev
resolution: - fixed
stage: - resolved
status: open - closed
Roundup Robot added the comment:
New changeset 3f73c44b1fd1 by Benjamin Peterson in branch '2.7':
PEP 466: backport hashlib algorithm constants (closes #21307)
http://hg.python.org/cpython/rev/3f73c44b1fd1
--
nosy: +python-dev
resolution: - fixed
stage: needs patch - resolved
status:
Rolf Krahl added the comment:
Thanks for the notice! As far as I read from the link you cite, getting rid of
the current httplib in urllib3 is planned but far from being done.
Furthermore, I don't like packages with too many 3rd party dependencies. Since
my package is working fine with the
Benjamin Peterson added the comment:
You should probably backport _PyRandom_Fini and cleanup the FD like a good
citizen.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21305
___
Alex Gaynor added the comment:
This patch adds the finalizer to the backport -- not sure how I missed this the
first time.
--
Added file: http://bugs.python.org/file36496/backport-urandom.diff
___
Python tracker rep...@bugs.python.org
STINNER Victor added the comment:
@alex: please disable git format in your hgrc, so the bug tracker can create a
review link to Rietveld for your patches.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21305
Alex Gaynor added the comment:
Victor -- new patch is in `hg` format.
--
Added file: http://bugs.python.org/file36497/backport-urandom.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21305
STINNER Victor added the comment:
The third backport-urandom.diff (the one with the review link) looks good to
me.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21305
___
Akira Li added the comment:
open(url, stdout=DEVNULL) won't work on Windows (os.startfile()) and OS
X (AppleScript) by default.
UnixBrowser already suppresses the output when it is safe, if
self.redirect_stdout=True and self.background=True are set.
Also, open(url, stdout=DEVNULL) would
Roundup Robot added the comment:
New changeset 3e7f88550788 by Benjamin Peterson in branch '2.7':
PEP 466: backport persistent urandom fd (closes #21305)
http://hg.python.org/cpython/rev/3e7f88550788
--
nosy: +python-dev
resolution: - fixed
stage: needs patch - resolved
status: open -
Guido van Rossum added the comment:
Looks good.
--
nosy: +gvanrossum
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21527
___
___
Python-bugs-list
Changes by Natalia B. Bidart nataliabid...@gmail.com:
--
nosy: +nessita
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22293
___
___
Antoine Pitrou added the comment:
What is */ supposed to do? Only select directories?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22276
___
João Guerra added the comment:
Yes.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22276
___
___
Python-bugs-list mailing list
Unsubscribe:
Stefan Behnel added the comment:
Stefan (Behnel), could you comment on the strategy that you had in mind?
Is it similar to module_get_symbol.diff or entirely different?
I agree with Antoine that a Capsule would work better here (and yes, the
performance problem of capsules is only with cases
R. David Murray added the comment:
Heh. I never noticed that about shell globs, but it is logical. Learn
something new every day.
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22276
Daniel Arbuckle added the comment:
All right.
However, for anyone who's interested, here is a patch that enables nested event
loops in asyncio, and the accompanying unit tests
--
keywords: +patch
Added file: http://bugs.python.org/file36498/nested.patch
Julian Gindi added the comment:
I'm trying to replicate this issue. I do not get an error when I run
```
__import__('datetime', fromlist=[u'datetime'])
```
any more information you could provide to help move this issue forward?
--
nosy: +Julian.Gindi
Changes by Attilio Di Nisio attilio.dini...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file36499/pickle.py.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22292
___
David Szotten added the comment:
after some trial and error it only appears to break for 3rd party packages (all
20 or so i happened to have installed), whereas everything i tried importing
from the standard library worked fine
```
__import__('requests.', fromlist=[u'get'])
Traceback (most
Julian Gindi added the comment:
Interesting...I'll try to dig in and see what's going on.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21720
___
Julian Gindi added the comment:
Good catch. I'm gonna look into this. Seems like you should be able to access
these from UserString as well.
--
nosy: +Julian.Gindi
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22189
New submission from Nick Coghlan:
https://docs.python.org/3/installing/index.html is too subtle in pointing out
the command in a source build or system Python on POSIX is pip3 or pip3.4
rather than the unadorned pip.
At least one example should show pip3, and it's likely worth having an
Alex Gaynor added the comment:
This is resolved now.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20996
___
Donald Stufft added the comment:
If you want to be completely unambiguous, python -m pip works as well.
--
nosy: +dstufft
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22295
___
Weeble added the comment:
I had a closer look at the cif object in gdb. The ffi_type of the argument in
question has size 16, alignment 1, type FFI_TYPE_STRUCT and elements contains a
single nested ffi_type, of size 8, alignment 8, type FFI_TYPE_POINTER.
I think this pointer type is wrong.
Changes by Ned Deily n...@acm.org:
--
nosy: +amaury.forgeotdarc, belopolsky, meador.inge
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22273
___
David Szotten added the comment:
first ever patch to python, so advice on the patch would be appreciated
found an example in the stdlib that triggers bug (used in test):
`__import__('encodings', fromlist=[u'aliases'])`
--
keywords: +patch
Added file:
Berker Peksag added the comment:
Thanks for the patch, David!
+def test_fromlist_error_messages(self):
+# Test for issue #21720: fromlist unicode error messages
+try:
+__import__('encodings', fromlist=[u'aliases'])
+except TypeError as exc:
+
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: +ncoghlan, pitrou, pmoody
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22282
___
___
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22189
___
___
Python-bugs-list
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22276
___
___
Python-bugs-list
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21611
___
___
Python-bugs-list
Roger Serwy added the comment:
When it comes to the checkmark next to Code Context in the menu, be aware of
issue13179. You can launch IDLE, open two separate editors, enable Code Context
in one, and the other will have its menu entry checked as well when it is not
enabled.
--
Roundup Robot added the comment:
New changeset a3452677a386 by Berker Peksag in branch '3.4':
Issue #22182: Use e.args to unpack exceptions correctly in
distutils.file_util.move_file.
http://hg.python.org/cpython/rev/a3452677a386
New changeset f01413758114 by Berker Peksag in branch 'default':
Berker Peksag added the comment:
Thanks Claudiu.
--
resolution: - fixed
stage: commit review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22182
___
Nick Coghlan added the comment:
Yes, that came up on Twitter as well (where this conversation started).
I think that's the best way to go - it's the only invocation that works
*everywhere*, regardless of how your Python instance got installed.
--
Changes by Claudiu Popa pcmantic...@gmail.com:
--
stage: patch review - commit review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22098
___
___
Zachary Ware added the comment:
Thanks, Xavier!
--
resolution: - fixed
stage: needs patch - resolved
status: open - closed
superseder: - test_asyncio unstable in refleak mode
___
Python tracker rep...@bugs.python.org
Zachary Ware added the comment:
Sorry, I have no familiarity with msilib, _msi, or the internals of MSIs in
general. The patch looks reasonably harmless to me, but I don't have the
confidence to take responsibility for it.
--
___
Python tracker
57 matches
Mail list logo