Roundup Robot added the comment:
New changeset 2b379c092253 by Ned Deily in branch '2.7':
Issue #1730136: Fix backported exception name.
http://hg.python.org/cpython/rev/2b379c092253
--
___
Python tracker rep...@bugs.python.org
Stefan Behnel added the comment:
(for the record, the context is that we would like to support decimal objects
efficiently in Numba)
Same for Cython, although I guess we wouldn't do more than shipping the
necessary declarations and (likely) also enable auto-coercion between the
libmpdec
Changes by Mark Dickinson dicki...@gmail.com:
--
resolution: - wont fix
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22238
___
Mark Dickinson added the comment:
I agreed with Raymond.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22238
___
___
Python-bugs-list mailing
Serhiy Storchaka added the comment:
Updated patch addresses Berker's comments.
--
Added file: http://bugs.python.org/file36426/zipfile_reprs_2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22217
Roundup Robot added the comment:
New changeset 5875c50e93fe by Serhiy Storchaka in branch 'default':
Issue #21549: Added the members parameter to TarFile.list().
http://hg.python.org/cpython/rev/5875c50e93fe
--
nosy: +python-dev
___
Python tracker
Serhiy Storchaka added the comment:
Thank you Berker for the review.
--
resolution: - fixed
stage: commit review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21549
Serhiy Storchaka added the comment:
See also a discussion at Python-Dev:
http://comments.gmane.org/gmane.comp.python.devel/149048
Looks as there are no need to add bytes path in such high-level API. In any
case you can call os.fsdecode() on path argument.
--
resolution: - rejected
Serhiy Storchaka added the comment:
See also a discussion at Python-Dev:
http://comments.gmane.org/gmane.comp.python.devel/149048
Looks as there are no need to add bytes path support in such high-level API. In
any case you can call os.fsdecode() on path argument.
--
status: open -
New submission from Akira Li:
from datetime import datetime, timezone
dt = datetime.now(timezone.utc)
fmt = '%Y-%m-%d %H:%M:%S.%f %Z%z'
datetime.strptime(dt.strftime(fmt), fmt)
Traceback (most recent call last):
File stdin, line 1, in module
File /cpython/Lib/_strptime.py,
Nick Coghlan added the comment:
Stephen Turnbull suggested on python-dev that this was a bad idea, and after
reconsidering the current behaviour in Python 2, I realised that setting
surrogateescape and letting the terminal deal with the consequences is exactly
what we want.
What confused me
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +lemburg
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22194
___
___
Python-bugs-list mailing
Changes by Brett Cannon br...@python.org:
--
nosy: +belopolsky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22241
___
___
Python-bugs-list
Changes by Brett Cannon br...@python.org:
--
nosy: +ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22240
___
___
Python-bugs-list mailing
Nick Coghlan added the comment:
I suspect resolving this will actually need special casing on the argparse side
- __main__.__spec__ will have the original details for __main__ when executed
via -m of zipfile/directory execution.
Things to check for:
* __main__.__spec__ is not None indicates
Alexander Belopolsky added the comment:
This is a duplicate of #15873.
--
components: +Extension Modules
resolution: - duplicate
status: open - closed
superseder: - datetime: add ability to parse RFC 3339 dates and times
type: behavior - enhancement
versions: -Python 3.4
New submission from Jon Poler:
It looks like there might be a contradiction in the documentation of import in
the language reference. In the loading subsection
https://docs.python.org/dev/reference/import.html#loading, first bulleted list
of the section, it specifies that if a loader fails,
New submission from Michael Williamson:
In the docs for the try statement [1], part of the grammar is:
try1_stmt ::= try : suite
(except [expression [as target]] : suite)+
[else : suite]
[finally : suite]
The `target` rule allows any assignable
Changes by Antoine Pitrou pit...@free.fr:
--
assignee: exarkun -
stage: patch review - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4180
___
Changes by Peter Otten __pete...@web.de:
--
nosy: +peter.otten
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22240
___
___
Python-bugs-list
Changes by Mark Lawrence breamore...@yahoo.co.uk:
--
nosy: +BreamoreBoy, paul.j3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22240
___
___
Serhiy Storchaka added the comment:
In updated patch the root windows is created only once per test class.
--
Added file: http://bugs.python.org/file36428/tkinter_no_default_root_2.patch
___
Python tracker rep...@bugs.python.org
Changes by Serhiy Storchaka storch...@gmail.com:
--
dependencies: +Do not use _default_root in Tkinter tests
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21585
___
Stefan Behnel added the comment:
The current implementation doesn't work with Unicode file paths. Try passing a
Unicode string e.g. as cafile into context.load_verify_locations(). It calls
PyString_AsEncodedObject() on it, which then fails with a PyErr_BadArgument()
on the entry type check.
Alex Gaynor added the comment:
Thanks for the report, I've filed: http://bugs.python.org/issue22244 to track
that issue.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21308
___
New submission from Alex Gaynor:
Details of the issue are here: http://bugs.python.org/msg225613
I'm not sure what the correct API to use is there, perhaps the encoding can be
folded into the PyArg_ParseTupleAndKeywords() call.
--
components: Extension Modules
messages: 225614
nosy:
Jayanth Koushik added the comment:
Yes. Seems to be a documentation error. The full grammar specification [1] uses
'NAME' instead of 'target'.
[1]: https://docs.python.org/3/reference/grammar.html
--
nosy: +jayanthkoushik
type: - enhancement
___
Lita Cho added the comment:
Hi Terry,
I had no idea we were moving away from using test_main.
So instead, of using support.run_unittest, we should import all the unittest
from tkinter/test/ and wrap everything with that exec method, setting
wantobjects=1 and again with wantobjects=0?
Also,
Changes by Ned Deily n...@acm.org:
--
nosy: +eric.snow
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22242
___
___
Python-bugs-list mailing list
Changes by Martin Panter vadmium...@gmail.com:
--
nosy: +vadmium
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22234
___
___
Python-bugs-list
Changes by Martin Panter vadmium...@gmail.com:
--
nosy: +vadmium
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22239
___
___
Python-bugs-list
Antoine Pitrou added the comment:
Here is a patch implementing an alternate approach, with a version number added
in the registry dicts. It also reuses Tres' test cases.
Removing 2.7 because at this point we probably don't want to add non-minimal
changes there (outside of the ssl module, that
Changes by Antoine Pitrou pit...@free.fr:
--
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4180
___
___
Roundup Robot added the comment:
New changeset b116489d31ff by Antoine Pitrou in branch 'default':
Issue #22118: Switch urllib.parse to use RFC 3986 semantics for the resolution
of relative URLs, rather than RFCs 1808 and 2396.
http://hg.python.org/cpython/rev/b116489d31ff
--
nosy:
Antoine Pitrou added the comment:
The patch is now committed to the future Python 3.5. Thank you very much for
this contribution!
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
Antoine Pitrou added the comment:
Ben, thanks for the patch. Have you signed a contributor's agreement? You can
find it at https://www.python.org/psf/contrib/contrib-form/
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2527
New submission from Antoine Pitrou:
I get the following error messages in the test suite:
[1/1] test_urllib2_localnet
test_basic_auth_httperror (test.test_urllib2_localnet.BasicAuthTests) ...
Exception happened during processing of request from
Akira Li added the comment:
I don't see, how it is a duplicate. Everything works if pytz.utc (.tzname() ==
'UTC')
is used instead of timezone.utc (.tzname() == 'UTC+00:00').
Everything works if UTC class from the example [1]
in the tzinfo docs is used.
It only breaks due to the weird
New submission from Akira Li:
issue12750 makes strftime('%s') portable. For symmetry,
datetime.strptime(s, '%s') could be enabled to return local time as an
aware (to avoid loosing info) datetime object for a given integer
(seconds since the Epoch) timestamp string.
I've uploaded a prototype
Changes by Akira Li 4kir4...@gmail.com:
Removed file: http://bugs.python.org/file36430/draft-strptime-%s.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22246
___
Changes by Akira Li 4kir4...@gmail.com:
Added file: http://bugs.python.org/file36431/draft-strptime-%s.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22246
___
Alexander Belopolsky added the comment:
I see. I thought you were complaining about %z format not supporting 00:00
as in
from datetime import *
datetime.strptime(00:00,%z)
Traceback (most recent call last):
..
ValueError: time data '00:00' does not match format '%z'
but your issue is
Alexander Belopolsky added the comment:
See also http://bugs.python.org/issue5094#msg106476.
It looks like providing 'UTC' as the name of utc singleton was part of my
original proposal. I have no recollection on why it was not implemented that
way.
--
nosy: +brett.cannon,
Ben Roberts added the comment:
I did sign one right after I submitted the patch. Takes a few days for the
asterisks to propagate I guess :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2527
paul j3 added the comment:
It still needs a documentation patch.
And if the documentation was clearer, would sfllaw's patch still be needed?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15125
Nick Coghlan added the comment:
Thanks for getting this in, folks!
As Alex suggests, we can file any identified regressions as new issues.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21308
Alexander Belopolsky added the comment:
Akira,
I see that you participated in the original discussion (msg107608). We settled
on str(timezone.utc) == 'UTC+00:00' and this was clearly a deliberate choice.
I don't think we can revisit this now, but we can probably make strptime smart
enough
paul j3 added the comment:
The formatting of the descriptor line for this class is not consistent with the
classes for this module.
It lacks 'class'.
It is all bold
In contrast
class argparse.ArgumentParser(prog=None, ...
uses bold for only the name.
--
Martin Panter added the comment:
It looks like a fork of that how-to is actually part of the documentation:
https://docs.python.org/release/3.4.0/howto/sorting.html. Perhaps the two
should be linked better.
If “sorted” is indeed meant to be stable, that makes the docstring for the
“heapsort”
Antoine Pitrou added the comment:
Ah, good. The patch looks fine to me, except that you should add
versionchanged tags in the documentation for the added parameter.
--
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
Martin Panter added the comment:
NNTPConnectError does still seem a slightly awkward name. I would go for
NNTPConnectionError instead, but I’m also happy to put my bikeshed paint away
let this patch be applied as is :)
Handling of NNTPTemporaryError with a code of 400 is similar to handling
Terry J. Reedy added the comment:
The current test/test_*.py example file in the docs intentionally does not
contain test_main.
https://docs.python.org/3/library/test.html#writing-unit-tests-for-the-test-package
The next section explaining that test.regrtest runs
Claudiu Popa added the comment:
Right, I've read the thread you posted and I agree. My use cases aren't strong
enough and it's enough for me to call os.fsdecode.
--
resolution: - wont fix
stage: patch review - resolved
status: pending - closed
___
New submission from Martin Panter:
The nntplib.NNTPError exception is documented, but missing from __all__. I ran
across another one the other day, but I can’t remember what it was now.
Is there a practical way to automatically test for some of these, perhaps by
scanning the documentation for
Martin Panter added the comment:
Some more points:
* I suggest adding something like this to the documentation:
exception nntplib.NNTPConnect[ion]Error
Exception raised when the server unexpectedly shuts down the connection.
* The tests should use BytesIO rather than StringIO. Other than
Ben Roberts added the comment:
Ah yes.
New patch improves the docs.
--
Added file: http://bugs.python.org/file36432/timeit_global_arg_v2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2527
Martin Panter added the comment:
PPS: Documentation should probably have the “New in version 3.5” tag as well
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1186900
___
Lita Cho added the comment:
Thank yo so much, Martin! I will incorporate these changes and add them soon!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1186900
___
Zachary Ware added the comment:
I've been thinking on this for a while, and haven't come up with a solution
that I like. I haven't had a chance to look at #22236 yet, but I suspect it
will help immensely.
Also, I have a work-in-progress patch for rearranging the tkinter tests into a
Akira Li added the comment:
issue22246 discusses the reverse: strptime('12345', '%s')
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12750
___
Akira Li added the comment:
I see that you participated in the original discussion (msg107608).
We settled on str(timezone.utc) == 'UTC+00:00' and this was clearly a
deliberate choice. I don't think we can revisit this now, but we can
probably make strptime smart enough to parse UTC±hh:mm
Sean McCully added the comment:
Is this closer to what Zachary.Ware suggested, patch implements a
wait_until_deleted method in C Api using inotify for Linux/FreeBSD.
--
nosy: +seanmccully
Added file: http://bugs.python.org/file36433/issue22024.patch
Shlomi Fish added the comment:
Here is the new output of the make test with Python-3.4.1 :
shlomif@telaviv1:~$ uname -a
Linux telaviv1.shlomifish.org 3.15.6-desktop-1.mga5 #1 SMP Wed Jul 23 22:28:50
UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
You may wish to install a Mageia Linux x86-64 Cauldron
63 matches
Mail list logo