Roundup Robot added the comment:
New changeset 0a406b6fe61f by Christian Heimes in branch 'default':
I forgot to add a Misc/NEWS entry for issue #20394
http://hg.python.org/cpython/rev/0a406b6fe61f
--
___
Python tracker rep...@bugs.python.org
Christian Heimes added the comment:
The commit has silenced coverity's warning.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20394
___
___
Roundup Robot added the comment:
New changeset 791b69f9f96d by Victor Stinner in branch '3.3':
Issue #20367: Fix behavior of concurrent.futures.as_completed() for duplicate
http://hg.python.org/cpython/rev/791b69f9f96d
--
___
Python tracker
Changes by STINNER Victor victor.stin...@gmail.com:
--
resolution: remind - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20367
___
Roundup Robot added the comment:
New changeset 323cb02abfc6 by Gregory P. Smith in branch '2.7':
Issue #19081: Remove the zipimporter.files reference as the zip TOC
http://hg.python.org/cpython/rev/323cb02abfc6
--
___
Python tracker
Vajrasky Kok added the comment:
Here is the updated patch for sha512module after changes from Larry to clinic.
--
Added file: http://bugs.python.org/file33742/clinic_sha512module_v3.patch
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka added the comment:
Yeah, I thought about it. Only flag should be false in shutdown mode, because
it will be None when a module will be cleaned.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19077
Vajrasky Kok added the comment:
Here is the updated patch for md5module after changes from Larry to clinic.
--
Added file: http://bugs.python.org/file33743/clinic_md5module_v3.patch
___
Python tracker rep...@bugs.python.org
Eduardo Robles Elvira added the comment:
Do we have any news on this patch?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18321
___
___
Vajrasky Kok added the comment:
Here is the updated patch for resource module based on Zachary's comment.
--
Added file: http://bugs.python.org/file33744/clinic_resource_v2.patch
___
Python tracker rep...@bugs.python.org
Vajrasky Kok added the comment:
Status:
Modules/sha1module.c: done
Modules/sha256module.c: done
Modules/sha512module.c: done
Modules/md5module.c: done
All of them are ready for Python 3.4.
/* AC 3.5: optional positional arguments */
Modules/_codecsmodule
--
Mark Lawrence added the comment:
Some discussion here
https://groups.google.com/forum/#!topic/dev-python/1D_iExlsva8
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20399
Roundup Robot added the comment:
New changeset 50aa9e3ab9a4 by Serhiy Storchaka in branch '3.3':
Issue #19077: tempfile.TemporaryDirectory cleanup is now most likely
http://hg.python.org/cpython/rev/50aa9e3ab9a4
New changeset d792eb3afa58 by Serhiy Storchaka in branch 'default':
Issue #19077:
Roundup Robot added the comment:
New changeset 1aa8ea187560 by Serhiy Storchaka in branch 'default':
Issue #20395: Extract generated clinic code in Modules/_pickle.c to separate
file.
http://hg.python.org/cpython/rev/1aa8ea187560
--
nosy: +python-dev
Wim added the comment:
Ping
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17088
___
___
Python-bugs-list mailing list
Unsubscribe:
Serhiy Storchaka added the comment:
Thank you for your patch Antoine. And thank you for your excellent idea Richard.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20395
Antoine Pitrou added the comment:
That doesn't sound terribly useful indeed. The hex example is a toy example.
Real-world examples would involve compression (zlib...) but then it is probably
much more efficient to have a dedicated implementation (GzipFile) rather than
blindly call
STINNER Victor added the comment:
I agree with Antoine, I dislike the idea of BinaryTransformWrapper, it
remembers me the evil codecs.EncodedFile thing.
What are the usecases?
--
___
Python tracker rep...@bugs.python.org
New submission from Serhiy Storchaka:
Currently IDLE use default Tk icon. The proposed patch sets special application
icon for IDLE.
--
components: IDLE
files: idle_appicon.patch
keywords: patch
messages: 209428
nosy: kbk, roger.serwy, serhiy.storchaka, terry.reedy
priority: normal
Serhiy Storchaka added the comment:
Mark's recipe works pretty well (requires Tk 8.5+). And you can use special
method for this: app.wm_iconphoto(True, icon).
What we can made more? We can set Python-related application icon for IDLE
(issue20406).
But for user applications their authors are
Marc-Andre Lemburg added the comment:
On 27.01.2014 11:00, STINNER Victor wrote:
STINNER Victor added the comment:
I agree with Antoine, I dislike the idea of BinaryTransformWrapper, it
remembers me the evil codecs.EncodedFile thing.
What are the usecases?
Ever used recode ?
The
Serhiy Storchaka added the comment:
Nobody talks to the console using hex_codec.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20405
___
___
Vajrasky Kok added the comment:
Here is the updated patch for type module based on Zachary's comment.
However, I can not convert this method.
{__subclasshook__, object_subclasshook, METH_CLASS | METH_VARARGS,
object_subclasshook_doc},
static PyObject *
object_subclasshook(PyObject *cls,
Nick Coghlan added the comment:
I only used hex as the example because it was trivial to generate test data for.
The stackable streaming IO model is an extremely powerful one - the approach we
already use in the io module has some similarities to the one Texas Instruments
use in DSP/BIOS
Nick Coghlan added the comment:
Note that this is something that could (and should) start life as a module on
PyPI, which would also provide cross version support.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20405
New submission from Larry Hastings:
The documentation for heapq.nsmallest and heapq.nlargest:
http://docs.python.org/3.3/library/heapq.html#heapq.nlargest
claim that they accept three arguments: n, iterable, and key=None. In fact,
the implementations of both these functions only accept two
Changes by Larry Hastings la...@hastings.org:
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20407
___
___
Python-bugs-list
Martin v. Löwis added the comment:
Lars, would you like to take a look?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18321
___
___
New submission from Larry Hastings:
The documentation for the memoryview constructor says it takes memoryview(obj).
Oddly, memoryview accepts keyword arguments (for its one required value), and
the name of the argument is object, not obj.
--
messages: 209436
nosy: georg.brandl, larry
Nick Coghlan added the comment:
Attached patch checks the requested encoding is a valid text encoding in
TextIOWrapper.__init__.
Two additional test changes were needed:
- the one that checks handling of non-text-encodings at runtime now tweaks
quopri to lie about being a text encoding when
Larry Hastings added the comment:
For what it's worth: I figured out how this happened. Maybe it's obvious to
you, but this behavior baffled me until I went back and looked at the revision
history.
In revision e260d6daf784, the argument parsing for itertools.repeat looks like
this:
Glenn Langford added the comment:
Revised patch; I don't think there is a need to sort the keys when waiters are
being removed since only one lock is acquired at a time. Stress tests on both
wait() and as_completed() work with this approach.
--
Added file:
Brett Cannon added the comment:
Technically you should only have one title at the very top of the heading
hierarchy. That's why the patch changed the title to use top+bottom asterisks.
You could have just as easily used equal signs as reST doesn't care, just that
you are consistent.
lothar added the comment:
i have the current cygwin python3 package:
http://mirrors.kernel.org/sourceware/cygwin/x86_64/release/python3/
i have no intention to build python myself.
--
___
Python tracker rep...@bugs.python.org
Georg Brandl added the comment:
Yes. Probably someone wished they would implement it :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20407
___
Brett Cannon added the comment:
Just to answer Nick's question: I read the extension import code just last
month to see if I could update it for PEP 451 fast enough (obviously the answer
was no =). As for zipimport, I read that (and the extension import code yet
again) in the 3.3 timeframe
Antoine Pitrou added the comment:
Can you try with a standard Windows build?
http://python.org/download/releases/3.3.3/
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20398
___
Antoine Pitrou added the comment:
(note that stem.util.system at least uses ctypes)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20398
___
___
Stefan Krah added the comment:
For integer sequences I think non-equality comparisons will be somewhat
confusing. Are the sequences little or big endian?
If we start to view bytes more like latin-1 again (PEP 461), it would
make sense for the 'B' and 'c' formats.
--
Georg Brandl added the comment:
I see, there are two def nsmallest in heapq.py. Tricky!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20407
___
Raymond Hettinger added the comment:
The docs are correct as-is. This is a documented and tested behavior.
from heapq import nsmallest
list(nsmallest(3, ['larry', 'georg', 'raymond', 'guido', 'tim'],
key=len))
['tim', 'larry', 'georg']
The C implementation doesn't have a
Tal Einat added the comment:
Attached is a complete AC conversion of itertools.
This is a large conversion, so I was extra careful. I even went over the entire
diff manually to check for any errors. Compilation runs without warnings and
the entire test suite passes.
Notes:
* I didn't convert
Tal Einat added the comment:
And at that, I've finished the conversion of this entire Derby group! Woohoo!
(except for itertools.repeat which is pending discussion)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20180
New submission from Xiaoqing Rong:
I'm using Windows 8. I created file 'weird1.txt' (attached) from an Excel
worksheet using save as Unicode Text (*.txt). And this happened when I used
Python 3.3.3 (v3.3.3:c3896275c0f6, Nov 18 2013, 21:19:30) [MSC v.1600 64 bit
(AMD64)] on win32:
handle =
R. David Murray added the comment:
The file use different encodings. In the first case, the first two bytes
(which don't appear in the second example) I believe are the BOM. I'm not an
expert, but I believe it is a utf-16 file (thus all the \x00 bytes). The
second file is presumably utf-8,
Glenn Langford added the comment:
Updated patch with change to Doc/library/concurrent.futures.rst.
--
Added file: http://bugs.python.org/file33751/issue20369.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20369
Ram Rachum added the comment:
If you'd like to expand this issue's scope to all the objects related to
Signature, I think that'll be good. All objects need good introspection strings.
--
___
Python tracker rep...@bugs.python.org
Yury Selivanov added the comment:
Ram, yes, I agree. Something like 'Signature f: alpha, beta=3, *args,
**kwargs' should work.
--
assignee: - yselivanov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20378
New submission from Zachary Ware:
It would be nice to have a 'self' return converter for simple functions like
winreg.HKEYType.__enter__ (which is implemented as Py_XINCREF(self); return
self;). With the typedef and type_object specifications now required for the
class directive, 'self' is
Roundup Robot added the comment:
New changeset 50706164c38f by Yury Selivanov in branch 'default':
inspect.getfile: Don't crash on classes without '__module__' attribute #20372
http://hg.python.org/cpython/rev/50706164c38f
--
nosy: +python-dev
___
Changes by Yury Selivanov yselivanov...@gmail.com:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20372
___
___
Yury Selivanov added the comment:
Though perhaps a note in the documentation would be helpful for future
confused people.
I agree. Also, __kwdefaults__ wasn't documented. Please take a look at the
attached patch.
--
keywords: +patch
nosy: +yselivanov
Added file:
Serhiy Storchaka added the comment:
Here is a patch (for 3.3+) which add support for environment variables with
non-ASCII values and names in posixpath and ntpath.
--
nosy: +serhiy.storchaka
stage: test needed - patch review
versions: +Python 3.3, Python 3.4 -Python 3.1
Added file:
Ethan Furman added the comment:
Well, so far I have tried:
:class:`IntEnum`
:class:`.IntEnum`
:class:`~IntEnum`
:class:`enum.IntEnum`
:class:`.enum.IntEnum`
:class:`~enum.IntEnum`
:class:`~.enum.IntEnum`
and probably some others I have forgotten; nothing is giving me a link to
Ram Rachum added the comment:
Looks good. Ideally there would be a more details explanation and an example.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20380
___
Georg Brandl added the comment:
Well, IntEnum is nowhere documented as a class. IOW,
.. class:: IntEnum
is missing if you want these references to work.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20386
Yury Selivanov added the comment:
Ram, those are internal attributes. I.e. it's not recommended to use them
directly, there are better instruments for that, such as 'inspect.signature'.
Hence, I don't think that having an example/detailed explanation here is really
necessary.
--
Ram Rachum added the comment:
I take your point and I agree.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20380
___
___
Python-bugs-list
Roundup Robot added the comment:
New changeset fc32459495fc by Yury Selivanov in branch 'default':
doc/inspect: Clarify docs for __defaults__, add docs for __kwdefaults__ #20380
http://hg.python.org/cpython/rev/fc32459495fc
--
nosy: +python-dev
___
Changes by Serhiy Storchaka storch...@gmail.com:
Removed file: http://bugs.python.org/file33753/expandvars_nonascii.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6815
___
Serhiy Storchaka added the comment:
Ah, posixpath can be used on Windows. Here is corrected patch. Please test it
on Windows.
--
Added file: http://bugs.python.org/file33754/expandvars_nonascii.patch
___
Python tracker rep...@bugs.python.org
Ethan Furman added the comment:
IntEnum is not a class in the socket module.
How do I make a link into another rst document?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20386
___
Yury Selivanov added the comment:
There's a major difference between getfullargspec/getargspec and
inspect.signature: getfullargspec shows you the self parameter for bound
methods, and inspect.signature does not.
Larry, yes, that's correct. The attached patch simulates this behaviour,
Roundup Robot added the comment:
New changeset ffe1d684b41e by Yury Selivanov in branch 'default':
inspect.signature: Use '/' to separate positional-only parameters from
http://hg.python.org/cpython/rev/ffe1d684b41e
--
nosy: +python-dev
___
Python
Changes by Yury Selivanov yselivanov...@gmail.com:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20356
___
___
New submission from Jason R. Coombs:
Following the blame history, this appears to be new issue following issue5845.
I'm using Python 3.4b2 64-bit on Windows. I've installed pyreadline 2.0 using
Setuptools 2.1. Now, when I start the interactive interpreter, I get this
output:
python
Python
Jason R. Coombs added the comment:
Added issue20411, revealed in 3.4b2.
--
nosy: +jason.coombs
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5845
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +brian.curtin, tim.golden
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19456
___
___
Georg Brandl added the comment:
IntEnum is not a class in the enum module either, as far as the docs are
concerned ;)
Otherwise :class:`enum.IntEnum` or :class:`.IntEnum` would work, no matter the
source and target documents.
--
___
Python tracker
R. David Murray added the comment:
I think a python programmer is going to expect that
join(a, b, c) == join(join(a, b), c)
so the answer to Serhiy's example should be 'c:z'.
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
Changes by Yury Selivanov yselivanov...@gmail.com:
--
versions: +Python 3.5 -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15185
___
Changes by Brian Curtin br...@python.org:
--
nosy: +zach.ware -brian.curtin
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19456
___
___
Yury Selivanov added the comment:
Closing this issue. See #17481 for details.
--
resolution: - duplicate
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16490
___
New submission from Ethan Furman:
While trying to update the socket documentation it was brought to my attention
that Enum and IntEnum are not defined as classes as far as the docs are
concerned [1].
[1] http://bugs.python.org/issue20386#msg209473
--
assignee: ethan.furman
messages:
New submission from RalfM:
The standard library documentation lists the standard codec error handlers in
three places:
(a) 2. Build-in Functions, section open()
(b) 7.2 codecs - Codec registry and base classes
(c) 7.2.1 Codec Base Classes
As far as I can judge these lists, (c) looks ok, but
Antoine Pitrou added the comment:
Sounds reasonably easy to fix. Can you write a patch?
--
nosy: +pitrou
priority: normal - high
stage: - needs patch
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20411
Nick Coghlan added the comment:
Heh, OK. I've managed to avoid learning the gory details of the zipimporter
internals so far, and the details of Windows DLL loading is the gap on the
extension module side :)
--
___
Python tracker
Jason R. Coombs added the comment:
Is the proper fix to address the issue in site.py? Does this issue reveal
anything else of concern about the implementation?
Assuming Yes and No, then yes, I can put together a fix.
--
___
Python tracker
Yury Selivanov added the comment:
Larry,
Please take a look at the attached 'signature_plain_cls_04.patch'.
This one supports classes (returns signature of 'object' builtin), and
metaclasses (returns signature of 'type' builtin).
--
Added file:
Roundup Robot added the comment:
New changeset 6b314f5c9404 by Serhiy Storchaka in branch '2.7':
Issue #19456: ntpath.join() now joins relative paths correctly when a drive
http://hg.python.org/cpython/rev/6b314f5c9404
New changeset f4377699fd47 by Serhiy Storchaka in branch '3.3':
Issue
Antoine Pitrou added the comment:
Is the proper fix to address the issue in site.py? Does this issue
reveal anything else of concern about the implementation?
I don't know, but it's a regression, so we'd better add a fix or
workaround in site.py anyway.
--
Serhiy Storchaka added the comment:
Committed first patch (with small change, ntpath.join('c:', 'C:') now returns
'C:').
There is yet one argument for first option: it is almost impossible (with
current design) to implement second option in pathlib.
--
resolution: - fixed
stage:
Changes by Moritz Neeb n...@kpvn.de:
--
nosy: +zormit
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20030
___
___
Python-bugs-list mailing list
Changes by Berker Peksag berker.pek...@gmail.com:
--
versions: +Python 3.5 -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18321
___
___
Roundup Robot added the comment:
New changeset baedc256999a by Yury Selivanov in branch 'default':
inspect.signature: Add support for 'functools.partialmethod' #20223
http://hg.python.org/cpython/rev/baedc256999a
--
nosy: +python-dev
___
Python
Yury Selivanov added the comment:
Thanks for the review, Nick.
Closing the issue now.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20223
___
Changes by Yury Selivanov yselivanov...@gmail.com:
--
resolution: - fixed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20372
___
___
Changes by Yury Selivanov yselivanov...@gmail.com:
--
resolution: - fixed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20356
___
___
Moritz Neeb added the comment:
Tried to summarize the previous discussion and generate a compromise here.
Patch attached.
--
nosy: +zormit
Added file: http://bugs.python.org/file33757/devguide-patch.diff
___
Python tracker rep...@bugs.python.org
Yury Selivanov added the comment:
Patch is attached, please review.
Should we commit this to 3.3 too?
--
assignee: - yselivanov
keywords: +patch
nosy: +ncoghlan
Added file: http://bugs.python.org/file33758/signature_method_first_arg_01.patch
___
Larry Hastings added the comment:
(With a Misc/NEWS entry of course.)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20308
___
___
Larry Hastings added the comment:
Looks perfect! Please check it in.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20308
___
___
Roundup Robot added the comment:
New changeset b9ca2019bcb9 by Yury Selivanov in branch 'default':
inspect.signature: Support classes without user-defined __init__/__new__ #20308
http://hg.python.org/cpython/rev/b9ca2019bcb9
--
nosy: +python-dev
___
Changes by Yury Selivanov yselivanov...@gmail.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20308
___
Terry J. Reedy added the comment:
There are two icon issues. First is the window icon at the left of the title
bar of Idle windows. By the name 'wm_iconphote', I presume this is what this
issue is about. Until recently, it *was* the red 'Tk' that is generally used
for Tk windows. It is
Terry J. Reedy added the comment:
For comparison.
--
Added file: http://bugs.python.org/file33760/py.gif
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20406
___
Nikolaus Rath added the comment:
Hmm. I think I found another problem... please wait for another patch revision.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7776
___
Thomas Kluyver added the comment:
I think there's an issue with this change - ismethoddescriptor() doesn't
guarantee that that the object has an __objclass__ attribute. Unbound PyQt4
signals appear to be a case where this goes wrong.
This came up testing IPython on Python 3.4 - we subclass
New submission from STINNER Victor:
Python 3.3 has _winapi.Overlapped. Python 3.4 _winapi.Overlapped but also
_overlapped.Overlapped. Why do we have two implementations?
Most code looks to be duplicated.
--
components: Windows
messages: 209496
nosy: gvanrossum, haypo, pitrou, sbt
1 - 100 of 111 matches
Mail list logo