Zachary Ware added the comment:
Odd.. I download decimal.py from
http://hg.python.org/cpython/file/fa959dc5c61d/Lib/decimal.py but it uses
1L (isn't py3k compliant)
Try http://hg.python.org/cpython/file/default/Lib/decimal.py
Clicking 'browse' from http://hg.python.org/cpython/ shows the
Andrew Svetlov added the comment:
I have updated patch.
--
Added file: http://bugs.python.org/file27812/winreg_3.3+v3.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16197
___
Ramchandra Apte added the comment:
On 31 October 2012 22:04, Mark Dickinson rep...@bugs.python.org wrote:
Mark Dickinson added the comment:
Revision fa959dc5c61d comes from the 2.7 maintenance branch. Try:
http://hg.python.org/cpython/file/e5f39546989f/Lib/decimal.py
instead.
Wojciech Danilo added the comment:
Wow, I was using Python so long and I didn't know about it. Is there any paper
discussing why this feature is better than storing cache as global variable /
as class private parameter?
--
___
Python tracker
Ramchandra Apte added the comment:
Attached is a patch.
I haven't tested it.
--
keywords: +patch
Added file: http://bugs.python.org/file27813/decimal.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13701
Ramchandra Apte added the comment:
I'm not sure whether the patch fixes everything.
Gone to sleep.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13701
___
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8743
___
___
Python-bugs-list mailing list
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16373
___
___
Python-bugs-list mailing list
Mark Dickinson added the comment:
There's plenty of discussion of this feature of Python around the web, but this
isn't the place to rehash it. :-) Google for python mutable default argument.
--
___
Python tracker rep...@bugs.python.org
Wojciech Danilo added the comment:
Thank you!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16372
___
___
Python-bugs-list mailing list
Serhiy Storchaka added the comment:
Here is a patch which fixes this particular issue. Now recursion avoided. The
specified operations raises TypeError. Fixing this error (if it should be
fixed) is the problem of issue8743.
--
stage: - patch review
Benjamin Peterson added the comment:
It doesn't need to be initialized.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16369
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
keywords: +patch
title: Recursion error comparing set() and MutableMapping.keys() - Recursion
error comparing set() and collections.Set instances
Added file: http://bugs.python.org/file27814/abc_set_issuperset_recursion.patch
New submission from anatoly techtonik:
Windows BYTE type is unsigned char, but ctypes defines it as signed.
{{{
BYTE
A byte (8 bits).
This type is declared in WinDef.h as follows:
typedef unsigned char BYTE;
typedef unsigned char BYTE;
}}}
Jesús Cea Avión added the comment:
Serhiy Storchaka, I was wondering if you could provide a test for the testsuite
too.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16373
___
Jesús Cea Avión added the comment:
Heads up, Issue #16373.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8743
___
___
Python-bugs-list mailing
Jesús Cea Avión added the comment:
Even if not needed to be initialize, we might do it for regularity (no
special cases are special enough :-). Or, if left alone, at least document it
in the code.
--
___
Python tracker rep...@bugs.python.org
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +barry
versions: +Python 3.4 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12782
___
Zachary Ware added the comment:
v3 looks fine to me!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16197
___
___
Python-bugs-list mailing list
Serhiy Storchaka added the comment:
issue15246 should add a place for such test. I'm not sure that possible wrong
behavior (which can be changed in issue8743) should be perpetuated in the tests.
--
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 2e7da832219d by Andrew Svetlov in branch '3.3':
Issue #16197: Fix several small errors in winreg documentation.
http://hg.python.org/cpython/rev/2e7da832219d
New changeset f1310219c702 by Andrew Svetlov in branch 'default':
Merge issue #16197: Fix
Andrew Svetlov added the comment:
Committed. Thanks, Zachary!
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16197
___
flying sheep added the comment:
there is a module that parses those strings pretty nicely, it’s called
pyiso8601: http://code.google.com/p/pyiso8601/
in the context of writing a better plistlib, i also needed the capability to
parse those strings, and decided not to use the sucky incomplete
Roundup Robot added the comment:
New changeset e87d617cef23 by Benjamin Peterson in branch 'default':
make PyGrammar_LabelRepr return a const char * (closes #16369)
http://hg.python.org/cpython/rev/e87d617cef23
--
___
Python tracker
Benjamin Peterson added the comment:
Oops, that was supposed to go to #16375.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16369
___
___
Benjamin Peterson added the comment:
e87d617cef23
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16375
___
Antoine Pitrou added the comment:
Those that continues working on programming will surely be exposed
sooner or later to formal technical English course at University or
similar.
The sooner they get exposed to English the better it is. The best
way to learn a language is by using it,
Trent Nelson added the comment:
Ah, I forgot about the VOE stuff. That will work a lot better. I'll still
need to acquire VMS media though.
You're not a committer are you? I can sort you out with access to Snakebite
anyway -- email me your ssh key if you're interested (trent at
Ezio Melotti added the comment:
This sounds like wishful thinking to me. Regardless of whether it's
*better* for a fledgling programmer to learn and improve their English,
we can still improve Python right now for those who don't master English.
True, but my point is that while this has some
Serhiy Storchaka added the comment:
Patch updated with test which does not rely on set behaviour.
--
Added file:
http://bugs.python.org/file27815/abc_set_issuperset_recursion_2.patch
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 7ada0faded9b by Mark Dickinson in branch 'default':
Issue #13701: Fix decorator avoidance (due to desire for Python 2.3
compatibility) in decimal module.
http://hg.python.org/cpython/rev/7ada0faded9b
--
nosy: +python-dev
Changes by Serhiy Storchaka storch...@gmail.com:
--
stage: needs patch - committed/rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16375
___
Serhiy Storchaka added the comment:
Thanks.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16375
___
___
Python-bugs-list mailing list
Mark Dickinson added the comment:
Fixed the unuse of decorator syntax. I think the dummy_threading changes
should be considered a separate issue.
With regards to the patch: I assume you mean import dummy_threading as
threading rather than just import dummy_threading. Also, it looks to me
R. David Murray added the comment:
It seems to me that if as Terry suggests both the English and the translation
are output then most of Ezio's concerns would be addressed. Maybe we could
even start a new trend in error message internationalization :)
An important question that needs to be
Georg Brandl added the comment:
How do you propose to output both versions? It will make tracebacks twice as
long.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16344
___
Roundup Robot added the comment:
New changeset a965eac352ec by Benjamin Peterson in branch '3.2':
only fast-path fromkeys() when the constructor returns a empty dict (closes
#16345)
http://hg.python.org/cpython/rev/a965eac352ec
New changeset b68da8f2ed95 by Benjamin Peterson in branch '3.3':
Ezio Melotti added the comment:
If only the error gets translated it might look more or less like:
Traceback (most recent call last):
File form.py, line 78, in module
f = Form(factura.csv)
File form.py, line 12, in __init__
for linea in open(infile).readlines():
IOError: [Errno 2]
R. David Murray added the comment:
I didn't look at the patch...I assumed we were only talking about the message.
There seems little point in translating any other part of the traceback, other
than maybe the boilerplate between traceback sections. My thought was that the
translation text
R. David Murray added the comment:
Ezio: ah. I guess I don't read the Description column of attachments, only the
filename :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16344
___
Aaron Train added the comment:
Thanks for the patch. Is this going to be resolved soon?
--
nosy: +Aaron.Train
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15795
___
Roundup Robot added the comment:
New changeset 1122f5bfc957 by Mark Dickinson in branch '2.7':
Issue #16348: Fix incorrect documentation for Decimal.remainder_near.
http://hg.python.org/cpython/rev/1122f5bfc957
New changeset 8570943ad5a2 by Mark Dickinson in branch '3.2':
Issue #16348: Fix
Mark Dickinson added the comment:
Thanks for reviewing, Andrew.
--
assignee: docs@python - mark.dickinson
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16348
R. David Murray added the comment:
OK, so this is an enhancement to specifically allow preservation of unsafe
permissions?
Adding the nosy list from issue 3394.
--
nosy: +cbrannon, pitrou, swarren
type: behavior - enhancement
versions: -Python 2.7
Antoine Pitrou added the comment:
Looks ok to me. Perhaps we could add a bigmem test for that (in test_fileio)?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16367
___
Terry J. Reedy added the comment:
What Ezio suggested, plus maybe the error name -- but people must learn those
to write exception statements, and a translation of the exceptions section of
the lib manual is really needed to understand them.
The boilerplate lines Traceback (most recent call
Roundup Robot added the comment:
New changeset f263a84871de by Andrew Svetlov in branch '2.7':
Issue #14900: document added sort keys for profile stats.
http://hg.python.org/cpython/rev/f263a84871de
New changeset 52d6974fa05b by Andrew Svetlov in branch '3.2':
Issue #14900: document added sort
Andrew Svetlov added the comment:
Fixed. For future improvements please open new issue.
Thanks.
--
components: +Documentation
resolution: - fixed
stage: - committed/rejected
status: open - closed
type: - enhancement
versions: +Python 3.3, Python 3.4
Terry J. Reedy added the comment:
An additional reason to keep English error messages always is that they are not
just printed. They are part of the args tuple attribute of exception objects.
Code that processes exception messages could break if the English version is
replaced. Doctests are
New submission from Yury Selivanov:
TestInsort.test_vsBuiltinSort is a bit broken, as it doesn't test insorting
`list` objects.
Patch attached.
--
files: test_bisect.patch
keywords: patch
messages: 174365
nosy: christian.heimes, georg.brandl, rhettinger, yselivanov
priority: normal
Mark Dickinson added the comment:
Is this also an issue for Python 3.x?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11566
___
___
Roundup Robot added the comment:
New changeset 838e2b19489e by Andrew Svetlov in branch '3.2':
Issue #16377: Fix bisect unittest.
http://hg.python.org/cpython/rev/838e2b19489e
New changeset f3dd84feeb58 by Andrew Svetlov in branch '3.3':
Merge issue #16377: Fix bisect unittest.
Andrew Svetlov added the comment:
Fixed. Thanks, Yury.
--
components: +Library (Lib)
nosy: +asvetlov
resolution: - fixed
status: open - closed
type: - enhancement
versions: +Python 3.2, Python 3.4
___
Python tracker rep...@bugs.python.org
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
stage: - committed/rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16377
___
___
Roundup Robot added the comment:
New changeset 8296b686c6de by Mark Dickinson in branch '2.7':
Issue #16377: fix missed test due to incorrect indentation in test_bisect.
Thanks Yury Selivanov.
http://hg.python.org/cpython/rev/8296b686c6de
--
___
Mark Dickinson added the comment:
(also in 2.7 :-)
--
nosy: +mark.dickinson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16377
___
___
Andrew Svetlov added the comment:
Thanks, Mark. I've missed it.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16377
___
___
Python-bugs-list
Roger Serwy added the comment:
The attached patch (issue13659.patch) adds a configuration option for
selecting the output of help() as being in the shell or in the pager. It is an
enhancement against 3.4.
Another possibility involves adding a checkable menu item under Options or
Help to
Roundup Robot added the comment:
New changeset 13ebaa36d87d by Victor Stinner in branch 'default':
Issue #15478: Use path_error() in more posix functions, especially in Windows
http://hg.python.org/cpython/rev/13ebaa36d87d
New changeset 9f696742dbda by Victor Stinner in branch 'default':
Issue
Mark Dickinson added the comment:
Looking back at the discussion, I think I got this bit wrong:
the round function is needed, and used, in Objects/floatobject.c (that is, if
PY_NO_SHORT_FLOAT_REPR is *not* defined;
In fact, the round function is used if PY_NO_SHORT_FLOAT_REPR *is* defined,
Roundup Robot added the comment:
New changeset 6903f5214e99 by Victor Stinner in branch 'default':
Issue #15478: Use source filename in OSError, not destination filename
http://hg.python.org/cpython/rev/6903f5214e99
--
___
Python tracker
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8743
___
___
Python-bugs-list
Dwayne Litzenberger added the comment:
As far as a real-world example is concerned, if you're using git-describe to
generate your version numbers, you can pretty easily end up with something like
ab25c6fe95ee92fac3187dcd90e0560ccacb084a.
--
nosy: +DLitz
STINNER Victor added the comment:
All issues should now be fixed.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15478
___
Roundup Robot added the comment:
New changeset b3434c1ae503 by Victor Stinner in branch 'default':
Issue #15441, #15478: Reenable test_nonascii_abspath() on Windows
http://hg.python.org/cpython/rev/b3434c1ae503
--
___
Python tracker
Roundup Robot added the comment:
New changeset b3434c1ae503 by Victor Stinner in branch 'default':
Issue #15441, #15478: Reenable test_nonascii_abspath() on Windows
http://hg.python.org/cpython/rev/b3434c1ae503
--
___
Python tracker
STINNER Victor added the comment:
If a file name was invalid byte character,
os.chdir() raises UnicodeDecodeError() instead of WindowsError.
I believe this case is not handled correctly in Python 3.4 (version under
development) thanks to my work on issue #15478.
Thanks for the report Atsuo
STINNER Victor added the comment:
I have 12 GB of RAM. Let's test.
$ ./python
Python 3.4.0a0 (default:8573a86c11b5+, Oct 31 2012, 22:17:00)
[GCC 4.6.3 20120306 (Red Hat 4.6.3-2)] on linux
x=(b'\\N{WHITE SMILING FACE' + b'x' * 2**32 + b'}')
len(x)
4294967318
y=x.decode('unicode-escape')
Mark Dickinson added the comment:
Reopening because I think I may have an easy solution. Is there anyone who can
reproduce the problem who could test the attached patch (against 2.7) to see if
it solves the issue?
--
assignee: - mark.dickinson
resolution: out of date -
status:
Serhiy Storchaka added the comment:
MemoryError
It's because you need 4GB for source bytes + at least 8GB (12GB on Windows)
for temporary UCS2 string.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16335
Michael Grünewald added the comment:
Cannot reproduce that with Ubuntu 12.04. Python 2.7 returned ; under both
Windows 7 and Ubuntu 12.04.
Can you verify that there was no space before the semicolon? Otherwise the
semicolon gets treated as the beginning of an inline comment.
--
nosy:
Berker Peksag added the comment:
Cannot reproduce that with Ubuntu 12.04.
+1.
Attached a reproducer.
--
nosy: +berker.peksag
Added file: http://bugs.python.org/file27819/reproducer.py
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset d7b868cdd9bb by Vinay Sajip in branch 'default':
Closes #16366: Improve diagnostics from handleError(). Thanks to Antoine Pitrou
for the suggestion.
http://hg.python.org/cpython/rev/d7b868cdd9bb
--
nosy: +python-dev
resolution: - fixed
Roundup Robot added the comment:
New changeset fbfaef0a9c00 by Benjamin Peterson in branch 'default':
point errors related to nonlocals and globals to the statement declaring them
(closes #10189)
http://hg.python.org/cpython/rev/fbfaef0a9c00
--
nosy: +python-dev
resolution: - fixed
New submission from Bradley Froehle:
Consider the docstring for venv.EnvBuilder::
By default, the builder makes the system (global) site-packages dir
available to the created environment.
By default, the creation process uses symlinks wherever possible.
It seems to suggest that
Changes by Bradley Froehle brad.froe...@gmail.com:
--
nosy: +bfroehle
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14803
___
___
Python-bugs-list
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
assignee: - rhettinger
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16373
___
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
assignee: stutzbach - rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8743
___
Raymond Hettinger added the comment:
I'm going to close this one. It *really* would need a PEP before going
forward. There are many issues to consider: being able to google for an
exception message, doctest issues, maintainability issues, etc.
--
nosy: +rhettinger
resolution: -
Raymond Hettinger added the comment:
The text is now correct and matches the spec:
http://speleotrove.com/decimal/daops.html#refremnear
The doctests should be expanded to show all of the examples listed in that
document:
remainder-near(’2.1’, ’3’)== ’-0.9’
remainder-near(’10’, ’6’)
Terry J. Reedy added the comment:
Raymond, did you mean to send that to another issue?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16344
___
101 - 181 of 181 matches
Mail list logo