Retro vinet...@gmail.com added the comment:
Strange thing. I presume you are running Windows XP. There the Python
icons are shown in the Add/Remove Programs list for the Python interpreters.
I must inform you, though, that the Python icons are not shown in the
Add/Remove Programs list under
New submission from Raymond Hettinger rhettin...@users.sourceforge.net:
Here is a working patch implementing PEP372 ordered dictionaries.
--
components: Library (Lib)
files: od.diff
keywords: patch
messages: 82955
nosy: rhettinger
severity: normal
stage: patch review
status: open
title:
John5342 john5...@googlemail.com added the comment:
Thanks.
i had noticed those options since i filed this report but considering
the spec file is generated and then built immediately wouldn't it make
more sense to effectively enable --fix-python by default (perhaps with a
--no-fix-python
New submission from t.steinruecken t.steinruec...@service4every1.de:
import locale
import datetime
locale.setlocale(locale.LC_ALL, ('de_DE', 'UTF8'))
print u+datetime.datetime( 2009, 3, 1 ).strftime(%B)
--
Traceback (most recent call last):
print
Georg Brandl ge...@python.org added the comment:
Doc nits:
* items are returned in the order they were first added: it should be
made clear that it matters when the *key* was first added
* An *OrderedDict* remembers order that entries were inserted: misses
a word somewhere?
* OrderDict should
Ezio Melotti ezio.melo...@gmail.com added the comment:
I don't have the de_DE locale to reproduce that, but the cause is most
likely this:
1) datetime( 2009, 3, 1 ).strftime(%B) should return märz as a UTF-8
encoded string, i.e. 'm\xc3\xa4rz'
2) when you mix Unicode and encoded strings, the
Changes by STINNER Victor victor.stin...@haypocalc.com:
Removed file:
http://bugs.python.org/file13167/unicode_fromwidechar_surrogate-6.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4474
___
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Ezio is correct: in general a string cannot be added to a unicode.
Except for the simplest case (only 7bit ascii characters), you have to
decode the string:
u + datetime.datetime( 2009, 3, 1 ).strftime(%B).decode('utf-8')
--
Antoine Pitrou pit...@free.fr added the comment:
In SubclassMappingTests, MyOrderedDict should subclass OrderedDict
rather than dict, shouldn't it?
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5397
Mads Kiilerich m...@kiilerich.com added the comment:
IIUC, setting
%define __os_install_post %{___build_post}
should prevent invocation of brp-python-bytecompile.
Ok. But preventing invocation of brp-python-bytecompile is IMHO not a
solution. brp-python-bytecompile is needed for the
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment:
Perhaps this should be made more clear in the
documentation for the pickle module. Probably here:
http://docs.python.org/library/pickle.html#the-pickle-
protocol
Could you come with some enhancements?
(Note that it already states
New submission from Daniel Diniz aja...@gmail.com:
234
--
messages: 82965
nosy: ajaksu2
severity: normal
status: open
title: wer
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5399
___
Daniel Diniz aja...@gmail.com added the comment:
Gah, script running amok, sorry!
--
resolution: - invalid
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5399
___
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment:
It is an artificial value, I don't require a recursion
limit so low in any application. I found it when
looking into #5370.
If there is a lower limit to sys.setrecursionlimit,
maybe it should be enforced. But since it fails only
the
Antoine Pitrou pit...@free.fr added the comment:
The fact it fails only the second time is by design, although I'm not
sure the design is useful, and it's probably not documented anywhere.
The error message says it : Cannot *recover* from stack overflow,
which means there was a first stack
Changes by Antoine Pitrou pit...@free.fr:
--
assignee: - pitrou
priority: - normal
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5392
___
___
Antoine Pitrou pit...@free.fr added the comment:
Here is a patch. I've put the tests in test_sys.py, I haven't found a
better place for them.
--
keywords: +patch
Added file: http://bugs.python.org/file13218/issue5392.patch
___
Python tracker
Bob Ippolito b...@redivi.com added the comment:
I don't really want to see looser input requirements, making a JSON
parser that is compatible with a subset of Python repr output isn't a
design goal of mine.
This is absolutely false:
Because single quotes are the only way (AFAIK) in which
Bob Ippolito b...@redivi.com added the comment:
Er, sorry, missed (from JSONable combinations of types). It's early.
Anyway, I can change the error message, but I will not make it special-
case single quotes for its own error message. I will have to think about
what the message could say
Armin Ronacher armin.ronac...@active-4.com added the comment:
@Georg
* eval()ing the repr() will not construct the dict in the same order
The alternative would be a list of dicts inside the constructor call,
but that feels ugly. defaultdict from the same module is not evaluable
at all, so I
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Thanks for the review comments guys. An updated patch is attached.
Added file: http://bugs.python.org/file13219/od2.diff
___
Python tracker rep...@bugs.python.org
Georg Brandl ge...@python.org added the comment:
I still see an OrderDict in the docs, and the TypeError in __init__
still needs to use % instead of ,.
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5397
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Fixed.
Added file: http://bugs.python.org/file13220/od3.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5397
___
Changes by Raymond Hettinger rhettin...@users.sourceforge.net:
Removed file: http://bugs.python.org/file13219/od2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5397
___
Changes by Raymond Hettinger rhettin...@users.sourceforge.net:
Removed file: http://bugs.python.org/file13217/od.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5397
___
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Added a few more tests.
Added file: http://bugs.python.org/file13221/od4.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5397
Changes by Raymond Hettinger rhettin...@users.sourceforge.net:
Removed file: http://bugs.python.org/file13220/od3.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5397
___
Martin v. Löwis mar...@v.loewis.de added the comment:
Ok. But preventing invocation of brp-python-bytecompile is IMHO not a
solution. brp-python-bytecompile is needed for the reasons mentioned in
http://fedoraproject.org/wiki/Packaging/Python#Including_pyos .
What reason specifically are you
Martin v. Löwis mar...@v.loewis.de added the comment:
The fact it fails only the second time is by design, although I'm not
sure the design is useful, and it's probably not documented anywhere.
It helped me debug a number of interpreter crashes in 3.0. When a stack
overflow occurred, in
Bill Janssen bill.jans...@gmail.com added the comment:
I'd recommend running the whole suite of tests here. The issue is
mainly with httplib, as I recall it, which closes the socket before it
finishes reading from it.
___
Python tracker
Bill Janssen bill.jans...@gmail.com added the comment:
No, Tarek, I don't have a MinGW machine right now. But it should be
easy to reproduce; just invoke that call I originally reported. The
distutils code is just making assumptions that it shouldn't be making.
Bill Janssen bill.jans...@gmail.com added the comment:
Tarek writes:
Laurent, right. but we need to figure out how to get the CC name in
MinGW/Cygwin environment.
I am not familiar with them.
Since this bug is specifically about that environment, shouldn't it be
handled by someone who is
Mads Kiilerich m...@kiilerich.com added the comment:
Ok, if you will keep bdist_rpm's new .pyo creation then you are right.
FWIW I think it is a bit of an ugly hack and would prefer another solution.
BTW: The brp-python-bytecompile creates usr/bin/*.pyo issue has been
resolved,
Bill Janssen bill.jans...@gmail.com added the comment:
Why can't we use python.org for tests? Do we need IMAP/POP servers
running? Let's send some mail to pydotorg to get that set up.
___
Python tracker rep...@bugs.python.org
Martin v. Löwis mar...@v.loewis.de added the comment:
BTW: The brp-python-bytecompile creates usr/bin/*.pyo issue has been
resolved, https://bugzilla.redhat.com/show_bug.cgi?id=182498#c8
Ok. Perhaps it isn't needed to exclude it, then.
___
Python tracker
Tarek Ziadé ziade.ta...@gmail.com added the comment:
I agree. I had another complaint about that patch, though, which
is the addition of an option for not including .pyo files.
I still like to see addition of this option reverted.
I'll remove this option then, and make -O1 hardcoded
Jeffrey Yasskin jyass...@gmail.com added the comment:
Backported as r70071. I also fixed a couple things I missed in the py3k
branch in r70076. Thanks all!
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
Retro vinet...@gmail.com added the comment:
Please see the attached screenshot where there are no icons in the
Add/Remove Programs list of the Python intepreters on my Windows Vista
machine.
Added file: http://bugs.python.org/file13223/my_arpvista.jpg
___
Martin v. Löwis mar...@v.loewis.de added the comment:
Using regedit, find out which of the keys
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{9cc89170-000b-457d-91f1-53691f85b224}
Nick Coghlan ncogh...@gmail.com added the comment:
Unassigning - the lack of support for ABC registration still bothers me,
but a) I don't have a good answer for it, and b) I'm going to be busy
for a while working on some proposed changes to the with statement.
--
assignee: ncoghlan -
New submission from Piotr Meyer an...@smutek.pl:
Multiprocessing module needs some patches to succesfully builing
and running on NetBSD. I made this patch and test on NetBSD 5rc2
(upcoming release).
1. we need working socket module (Modules/socketmodule.c)
2. mremap under NetBSD has different
Changes by Akira Kitada akit...@gmail.com:
--
assignee: - tarek
components: +Windows
nosy: +tarek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4480
___
Changes by Akira Kitada akit...@gmail.com:
--
assignee: - tarek
components: +Windows
nosy: +tarek
type: - crash
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4918
___
Changes by Akira Kitada akit...@gmail.com:
--
components: +Windows
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5235
___
___
Python-bugs-list
New submission from Armin Ronacher armin.ronac...@active-4.com:
Sorry for the harsh words, but when I found that code I nearly freaked
out. For all those years I was using from mimetypes import guess_type
until today I found out that this has horrendous performance problems
due to the fact that
Changes by Armin Ronacher armin.ronac...@active-4.com:
--
title: mimetypes.MAGIC_FUNCTION implementation clusterfuck -
mimetypes.MAGIC_FUNCTION performance problems
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5401
Georg Brandl ge...@python.org added the comment:
Wah, that's really a horrible way to implement this caching.
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5401
___
Noam Raphael noamr...@gmail.com added the comment:
I'm sorry, but it seems to me that the conclusion of the discussion in
2008 is that the algorithm should simply use the system's
binary-to-decimal routine, and if the result is like 123.456, round it
to 15 digits after the 0, check if the result
Guido van Rossum gu...@python.org added the comment:
I tried that, and it was more subtle than that in corner cases.
Another argument against it is that on Windows the system input routine
doesn't correctly round unless 17 digits of precision are given. One of
Tim Peters's responses should
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +jnoller
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5400
___
___
Python-bugs-list mailing
Jim Jewett jimjjew...@users.sourceforge.net added the comment:
I would try to make it more explicit that updates do not reset the
order, but deleting a item and re-inserting it *does*. (So it isn't
the first insertion of the key, it is the first that hasn't yet been
followed by a deletion.)
Benjamin Peterson benja...@python.org added the comment:
Well, that was embarrassing! Fixed in r70086.
--
nosy: +benjamin.peterson
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5401
Jim Jewett jimjjew...@users.sourceforge.net added the comment:
I would also recommend strengthening some of the tests with regard to
ordering stability across update vs delete-and-reinsert.
TestOrderedDict.test_update does verify that updated items are not
moved to the end, but the comment
New submission from Jim Jewett jimjjew...@users.sourceforge.net:
Copy of issue 5397
In python 3, UserDict (and DictMixin) are gone; presumably they should
be replaced by either a dict subclass or the ABC MutableMapping.
Unfortunately, there doesn't seem to be a clean way to inherit from
David Christian d...@rpath.com added the comment:
I actually discovered this issue when using httplib over ssl. Closing
the httplib connection was not closing the socket - the socket would
only be closed after garbage collection, due to this bug. That's what
caused me to investigate and find
Tarek Ziadé ziade.ta...@gmail.com added the comment:
done in r70094 and r70096
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1533164
___
___
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp:
I noticed test_md5 and test_multiprocessing crashed on trunk. I hope
attached patch will fix this issue. (Maybe the patch can be simplified
with goto)
--
components: Extension Modules
files: fix_md5_without_goto.patch
Jeffrey Yasskin jyass...@gmail.com added the comment:
I've updated for_iter.patch to the latest trunk, merging in issue 4715.
I also changed tracing a bit so that the first line of a loop doesn't
get traced twice in the first iteration, and added to test_dis to check
that decreasing line numbers
Martin v. Löwis mar...@v.loewis.de added the comment:
done in r70094 and r70096
Thanks!
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1533164
___
___
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Jim, I updated the docs to talk cover delete-reinsert.
Also, added a few more tests as suggested but am leaving test_iterators,
test_popitem, and test_pop unchanged. It is enough to test
delete-reinsertion once or twice and
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
UserDict is not gone. DictMixin is now mutable mapping.
--
assignee: - rhettinger
priority: - low
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5402
61 matches
Mail list logo