[issue13121] collections.Counter's += copies the entire object

2011-10-07 Thread Mark Dickinson
Changes by Mark Dickinson : -- assignee: -> rhettinger ___ Python tracker <http://bugs.python.org/issue13121> ___ ___ Python-bugs-list mailing list Unsubscri

[issue13121] collections.Counter's += copies the entire object

2011-10-07 Thread Mark Dickinson
Changes by Mark Dickinson : -- type: behavior -> feature request ___ Python tracker <http://bugs.python.org/issue13121> ___ ___ Python-bugs-list mailing list Un

[issue7833] bdist_wininst installers fail to load extensions built with Issue4120 patch

2011-10-07 Thread Mark Hammond
Mark Hammond added the comment: My apologies Eric - I had completely overlooked those tests. Attaching a new patch with a test. Note the existing test doesn't actually perform a build so the new test also doesn't, but it does check the core logic (ie, that a manifest with only

[issue13060] allow other rounding modes in round()

2011-10-08 Thread Mark Dickinson
Mark Dickinson added the comment: I'm warming to this idea. We already have several round-to-integer functions (but not round-to-an-arbitrary-number-of-decimal-places) available in the math module (under the names floor, ceil and trunc). This *does* seem to be a common need, and it&#

[issue7833] bdist_wininst installers fail to load extensions built with Issue4120 patch

2011-10-08 Thread Mark Hammond
Mark Hammond added the comment: Thanks for the review. One note: | +def manifest_setup_ldargs | I’d make all new methods private ones (i.e. leading underscore). They aren't strictly private and are designed to be overridden by subclasses (although in practice, subclassing the com

[issue13145] Documentation of PyNumber_ToBase() wrong

2011-10-11 Thread Mark Dickinson
Mark Dickinson added the comment: Fixed. Thanks for the report! -- nosy: +mark.dickinson resolution: -> fixed status: open -> closed versions: +Python 3.2, Python 3.3 ___ Python tracker <http://bugs.python.org/i

[issue13145] Documentation of PyNumber_ToBase() wrong

2011-10-11 Thread Mark Dickinson
Changes by Mark Dickinson : -- assignee: docs@python -> mark.dickinson ___ Python tracker <http://bugs.python.org/issue13145> ___ ___ Python-bugs-list mai

[issue7833] bdist_wininst installers fail to load extensions built with Issue4120 patch

2011-10-13 Thread Mark Hammond
Mark Hammond added the comment: New version of the patch with the small tweaks requested plus a NEWS entry. -- Added file: http://bugs.python.org/file23400/bug-7833-tweaks-plus-news.patch ___ Python tracker <http://bugs.python.org/issue7

[issue4431] Distutils MSVC doesn't create manifest file

2011-10-14 Thread Mark Hammond
Mark Hammond added the comment: My experience is that for VS2008 at least, the /MANIFESTFILE: option seems to be ignored if there is nothing to put in the manifest, and this tends to be true if you use a static CRT instead of the DLL based one (ie, if you use /MT) Issue 7833 has a patch

[issue12997] sqlite3: PRAGMA foreign_keys = ON doesn't work

2011-10-15 Thread Mark Bucciarelli
Mark Bucciarelli added the comment: Something strange is going on. I just built pysql 2.6.3 from source, and now my unit test gives the expected "IntegrityError: foreign key constraint failed" message. poq, what do you get when you run this script: import sqlite3 print "sqlit

[issue12997] sqlite3: PRAGMA foreign_keys = ON doesn't work

2011-10-16 Thread Mark Bucciarelli
Mark Bucciarelli added the comment: BAD : sqlite3.sqlite_version_info = (3, 6, 12) GOOD: sqlite3.sqlite_version_info = (3, 7, 4) GOOD: sqlite3.sqlite_version_info = (3, 7, 8) I guess this is the cause of the different behavior. sqlite_version_info is the version of the underlying sqlite3

[issue7833] bdist_wininst installers fail to load extensions built with Issue4120 patch

2011-10-16 Thread Mark Hammond
Mark Hammond added the comment: I pushed the changes to 2.7, 3.2 and 3.3. I'm happy to help with distutils2/packaging but I'll need to do that later once I work out where to start :) Therefore I'm not yet closing this issue. -- ___

[issue13200] Add start, stop and step attributes to range objects

2011-10-17 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker <http://bugs.python.org/issue13200> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13201] Implement comparison operators for range objects

2011-10-17 Thread Mark Dickinson
Changes by Mark Dickinson : -- components: +Interpreter Core nosy: +mark.dickinson stage: -> patch review type: -> feature request versions: +Python 3.3 ___ Python tracker <http://bugs.python.org/i

[issue13201] Implement comparison operators for range objects

2011-10-17 Thread Mark Dickinson
Mark Dickinson added the comment: Nice patch! I put some comments on Rietveld. -- ___ Python tracker <http://bugs.python.org/issue13201> ___ ___ Python-bug

[issue13201] Implement comparison operators for range objects

2011-10-17 Thread Mark Dickinson
Changes by Mark Dickinson : -- assignee: -> mark.dickinson ___ Python tracker <http://bugs.python.org/issue13201> ___ ___ Python-bugs-list mailing list Un

[issue13201] Implement comparison operators for range objects

2011-10-17 Thread Mark Dickinson
Mark Dickinson added the comment: The new patch looks fine; I'd still like to have the more explicit reference counting in range_hash (see replies on Rietveld). A few more things: - The patch needs a Misc/NEWS entry before committing; it probably deserves a line in Doc/whatsnew/3.

[issue12997] sqlite3: PRAGMA foreign_keys = ON doesn't work

2011-10-17 Thread Mark Bucciarelli
Changes by Mark Bucciarelli : -- resolution: -> invalid ___ Python tracker <http://bugs.python.org/issue12997> ___ ___ Python-bugs-list mailing list Unsubscri

[issue13206] while loop vs for loop test

2011-10-18 Thread Mark Dickinson
Mark Dickinson added the comment: Your 'i = i + 1' is at the wrong indentation level. -- nosy: +mark.dickinson resolution: -> invalid status: open -> closed ___ Python tracker <http://bugs.py

[issue4431] Distutils MSVC doesn't create manifest file

2011-10-18 Thread Mark Hammond
Mark Hammond added the comment: I don't think a buildbot will be necessary - like the earlier compilers, they may have basic support but they don't all get buildbot support. The "problem" isn't the lack of ability/will to get things working with VS2010 - it is more

[issue12989] Consistently handle path separator in Py_GetPath on Windows

2011-10-19 Thread Mark Hammond
Mark Hammond added the comment: The first chunk of that patch is for when pythonhome==NULL. There is also a similar block just under it when MS_WINDOWS is not defined. While I don't know in which cases this will be built without that define, it looks as though the *buf++ = DELIM; s

[issue13201] Implement comparison operators for range objects

2011-10-20 Thread Mark Dickinson
Mark Dickinson added the comment: I get a test failure in test_hash (which is checking exactly that the hash(range) uses the default object hash, so that test is clearly out of date now). Apart from that, the latest patch looks good to me. I'm going to give this a couple of days in

[issue9574] allow whitespace around central '+' in complex constructor

2011-10-20 Thread Mark Dickinson
Changes by Mark Dickinson : -- stage: needs patch -> patch review ___ Python tracker <http://bugs.python.org/issue9574> ___ ___ Python-bugs-list mailing list Un

[issue5788] datetime.timedelta is inconvenient to use...

2011-10-21 Thread Mark Dickinson
Mark Dickinson added the comment: What about def total_minutes(td): return td / datetime.timedelta(minutes=1) ? -- ___ Python tracker <http://bugs.python.org/issue5

[issue13201] Implement comparison operators for range objects

2011-10-22 Thread Mark Dickinson
Mark Dickinson added the comment: I've taken the liberty of updating the patch, with a few minor changes: range_equality -> range_equals (like range_contains) move identity check into range_equals move comments before the code they describe (PEP7) add whatsnew entry remove check th

[issue13201] Implement comparison operators for range objects

2011-10-22 Thread Mark Dickinson
Mark Dickinson added the comment: Hmm. Why does my patch not get a 'review' button? -- ___ Python tracker <http://bugs.python.org/issue13201> ___ ___

[issue13201] Implement comparison operators for range objects

2011-10-22 Thread Mark Dickinson
Mark Dickinson added the comment: Ah, there it is. Never mind. :-) -- ___ Python tracker <http://bugs.python.org/issue13201> ___ ___ Python-bugs-list mailin

[issue10925] Document pure Python version of integer-to-float correctly-rounded conversion

2011-10-22 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks for the comments. Here's an updated patch, that actually makes use of the pure Python version to test the built-in int-to-float conversion. -- versions: -Python 2.7, Python 3.2 Added file: http://bugs.python.org/file

[issue13201] Implement comparison operators for range objects

2011-10-23 Thread Mark Dickinson
Mark Dickinson added the comment: > In most cases, global variables Py_Zero and Py_One would be enough to > simplify this kind of code. Agreed. -- ___ Python tracker <http://bugs.python.org/i

[issue13201] Implement comparison operators for range objects

2011-10-23 Thread Mark Dickinson
Changes by Mark Dickinson : -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue10925] Document pure Python version of integer-to-float correctly-rounded conversion

2011-10-23 Thread Mark Dickinson
Changes by Mark Dickinson : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue9980] str(float) failure

2011-10-23 Thread Mark Dickinson
Mark Dickinson added the comment: Closing as "won't fix", for reasons given above. -- resolution: -> wont fix status: open -> closed ___ Python tracker <http://b

[issue12965] longobject: documentation improvements

2011-10-23 Thread Mark Dickinson
Mark Dickinson added the comment: I've fixed some of the inaccurate comments in Objects/longobject.c, for the default branch; I'm still looking at the Doc update. This really is a bit of a mess, especially for cases like PyLong_AsVoidPtr, which can either end up calling PyLong_As

[issue12965] longobject: documentation improvements

2011-10-23 Thread Mark Dickinson
Mark Dickinson added the comment: > It could be fun to remove these conversions and see how much of the > test-suite fails. :-) ... On my machine, just test_ctypes and test_getargs2, as it turns out. -- ___ Python tracker <http://bugs.p

[issue8540] Make Context._clamp public in decimal module

2011-10-24 Thread Mark Dickinson
Mark Dickinson added the comment: New changeset 221638ba5d2a by Mark Dickinson in branch 'default': Issue #13248, issue #8540: Remove deprecated Context._clamp attribute from Decimal module. http://hg.python.org/cpython/rev/22

[issue13320] _remove_visual_c_ref in distutils.msvc9compiler causes DLL load fail with embedded Python and multiple CRT versions

2011-11-02 Thread Mark Hammond
Mark Hammond added the comment: I can't explain why this might be happening given the Python dll is still build against vc9 - I'm guessing this can't be reproduced without vs10 in the mix? Re making the feature optional - distutils doesn't really lend itself to customizi

[issue13343] Lambda keyword-only argument not updating co_freevars

2011-11-04 Thread Mark Dickinson
Changes by Mark Dickinson : -- priority: normal -> critical stage: -> needs patch versions: +Python 3.3 ___ Python tracker <http://bugs.python.org/i

[issue13343] Lambda keyword-only argument not updating co_freevars

2011-11-04 Thread Mark Dickinson
Mark Dickinson added the comment: Patch looks good to me. -- nosy: +mark.dickinson ___ Python tracker <http://bugs.python.org/issue13343> ___ ___ Python-bug

[issue13355] random.triangular error when low = mode

2011-11-06 Thread Mark Dickinson
Mark Dickinson added the comment: I can't reproduce this: Python 2.7.2 |EPD 7.1-2 (32-bit)| (default, Jul 3 2011, 15:40:35) [GCC 4.0.1 (Apple Inc. build 5493)] on darwin Type "packages", "demo" or "enthought" for more information. >>> from random

[issue13340] list.index does not accept None as start or stop

2011-11-06 Thread Mark Dickinson
Mark Dickinson added the comment: > What do you suggest? Doing it in _PyEval_SliceIndex() in 2.7 is > problematic, as we don't want x[None:2], right? :) Eh? Don't we already have this? Python 2.7.2 (default, Aug 22 2011, 13:53:27) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)

[issue13355] random.triangular error when low = mode

2011-11-06 Thread Mark Dickinson
Mark Dickinson added the comment: > it would be convenient if low=high=mode returned low (or mode or high) Yes, I agree that random.triangular should degrade gracefully, in the same way that random.uniform does. -- ___ Python tracker &l

[issue13364] Duplicated Code

2011-11-06 Thread Mark Dickinson
Mark Dickinson added the comment: How would you suggest refactoring this? For that example, I'd prefer not to remove the repetition; as it is, the code is clean and clear. Eliminating the repetition would involve adding an extra layer of indirection, making the code in one of

[issue13364] Duplicated code in decimal module

2011-11-08 Thread Mark Dickinson
Mark Dickinson added the comment: Sorry, I'm closing this as rejected. It might possibly have been better to write the code this way to begin with, but the code is already there, it's working, and there's little to be gained by 'fixing' it at this po

[issue11937] Interix support

2011-11-10 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker <http://bugs.python.org/issue11937> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13433] String format documentation contains error regarding %g

2011-11-19 Thread Mark Dickinson
Mark Dickinson added the comment: Yep, there's an oddity here that's directly inherited from C's sprintf family of functions, namely that in %e-style formatting you give the number of digits after the point (= one less than the total number of significant digits), and in %g-s

[issue13433] String format documentation contains error regarding %g

2011-11-19 Thread Mark Dickinson
Mark Dickinson added the comment: > Maybe a note describing that %g is different from the others in this regard? -1 from me; I don't really see that that would improve the documentation. Maybe that's just me, but I expect reference documentation to be clean, and uncluttered

[issue12245] Document the meaning of FLT_ROUNDS constants for sys.float_info

2011-11-19 Thread Mark Dickinson
Changes by Mark Dickinson : -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue12245> ___ ___ Python-bugs-list

[issue7433] MemoryView memory_getbuf causes segfaults, double call to tp_releasebuffer

2011-11-19 Thread Mark Dickinson
Changes by Mark Dickinson : -- assignee: mark.dickinson -> ___ Python tracker <http://bugs.python.org/issue7433> ___ ___ Python-bugs-list mailing list Un

[issue7049] decimal.py: Three argument power issues

2011-11-19 Thread Mark Dickinson
Mark Dickinson added the comment: Closing as won't fix. Even deprecation doesn't seem worth the effort here. -- resolution: -> wont fix status: open -> closed ___ Python tracker <http://bugs.p

[issue2813] No float formatting in PyString_FromFormat

2011-11-19 Thread Mark Dickinson
Changes by Mark Dickinson : -- versions: +Python 3.3 -Python 2.7, Python 3.2 ___ Python tracker <http://bugs.python.org/issue2813> ___ ___ Python-bugs-list mailin

[issue9530] integer undefined behaviors

2011-11-19 Thread Mark Dickinson
Mark Dickinson added the comment: Status update: all the reported errors from the Objects/ directory have been fixed in the default branch (many of these were fixed recently as part of making sure that the test-suite runs under Clang's -ftrapv option), or are out of date. I haven'

[issue9530] integer undefined behaviors

2011-11-19 Thread Mark Dickinson
Mark Dickinson added the comment: See also issue #1621. -- ___ Python tracker <http://bugs.python.org/issue9530> ___ ___ Python-bugs-list mailing list Unsub

[issue9530] integer undefined behaviors

2011-11-19 Thread Mark Dickinson
Mark Dickinson added the comment: The issues reported for the datetime, array, itertools and math modules are also already fixed. That just leaves the following two of the reported issues outstanding: : Op: <<=, Reason : Signed Left Shift Error: Right operand is negative or is g

[issue1621] Do not assume signed integer overflow behavior

2011-11-19 Thread Mark Dickinson
Mark Dickinson added the comment: See also issue #9530. -- ___ Python tracker <http://bugs.python.org/issue1621> ___ ___ Python-bugs-list mailing list Unsub

[issue13433] String format documentation contains error regarding %g

2011-11-19 Thread Mark Dickinson
Changes by Mark Dickinson : -- versions: +Python 3.2, Python 3.3 -Python 2.6 ___ Python tracker <http://bugs.python.org/issue13433> ___ ___ Python-bugs-list mailin

[issue9530] integer undefined behaviors

2011-11-21 Thread Mark Dickinson
Mark Dickinson added the comment: > I'd be happy to re-run the tests sometime. Yes, please! Alternatively, if there are easy instructions for us to re-run these tests, that would be valuable, too. Do I understand correctly that you have a publicly available extension to LLVM

[issue13245] sched.py kwargs addition and default time functions

2011-11-22 Thread Mark Dickinson
Mark Dickinson added the comment: +1 to kwargs support in sched. I've also ended up modifying sched.py to support this in the past. -- nosy: +mark.dickinson ___ Python tracker <http://bugs.python.org/is

[issue13494] 'cast' any value to a Boolean?

2011-11-28 Thread Mark Dickinson
New submission from Mark Dickinson : Docs nit: at http://docs.python.org/dev/library/stdtypes.html#boolean-values we have """ The built-in function bool() can be used to cast any value to a Boolean ... """ It's a little unusual to talk about casting in Py

[issue13486] msvc9compiler.py doesn't properly generate manifest files.

2011-11-28 Thread Mark Hammond
Mark Hammond added the comment: A manifest seems to be currently created fine - can you provide steps to reproduce the problem you see? -- ___ Python tracker <http://bugs.python.org/issue13

[issue13496] bisect module: Overflow at index computation

2011-11-29 Thread Mark Dickinson
Mark Dickinson added the comment: Given that we typically need at least 4 bytes just for the PyObject * pointer for each item in a list, I guess real lists are safe. But how about list-like objects, implementing __len__ and __getitem__? The following appears to run forever on my machine

[issue7652] Merge C version of decimal into py3k.

2011-11-30 Thread Mark Dickinson
Mark Dickinson added the comment: > Does Python really need yet another multiprecision library? It's not really another library: it's a reimplementation of the existing decimal library in C. The decimal library is *hugely* valuable to the financial world, but its slowne

[issue9530] integer undefined behaviors

2011-12-02 Thread Mark Dickinson
Mark Dickinson added the comment: See also issue #13496. -- ___ Python tracker <http://bugs.python.org/issue9530> ___ ___ Python-bugs-list mailing list Unsub

[issue13522] Document error return values for PyFloat_* and PyComplex_*

2011-12-03 Thread Mark Dickinson
Mark Dickinson added the comment: Well, it's sort of documented implicitly: from http://docs.python.org/c-api/intro.html#exceptions "In general, when a function encounters an error, it sets an exception, discards any object references that it owns, and returns an error indicator

[issue13535] Improved two's complement arithmetic support: to_signed() and to_unsigned()

2011-12-06 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker <http://bugs.python.org/issue13535> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13535] Improved two's complement arithmetic support: to_signed() and to_unsigned()

2011-12-06 Thread Mark Dickinson
Mark Dickinson added the comment: The 'self.bit_length() >= bits' condition for to_unsigned doesn't look right to me. E.g., if bits == 32, I'd expect the acceptable range of values to be range(-2**31, 2**31)---i.e., including -2**31, but excluding 2**31.

[issue13535] Improved two's complement arithmetic support: to_signed() and to_unsigned()

2011-12-06 Thread Mark Dickinson
Mark Dickinson added the comment: On the feature request itself, I have to say that I'm unconvinced. Doing x % (2**32) seems good enough to me, in situations where you don't need the bounds checking. (And it's not clear to me that needing the bounds checks is the more c

[issue13534] test_cmath fails on ppc with glibc-2.14.90 due to optimized architecture-specific "hypot"

2011-12-06 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker <http://bugs.python.org/issue13534> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13534] test_cmath fails on ppc with glibc-2.14.90 due to optimized architecture-specific "hypot"

2011-12-06 Thread Mark Dickinson
Changes by Mark Dickinson : -- versions: -Python 3.4 ___ Python tracker <http://bugs.python.org/issue13534> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13534] test_cmath fails on ppc with glibc-2.14.90 due to buggy architecture-specific "hypot"

2011-12-06 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks for the report, and all the sleuthing. It's always good to see Python's test suite expose C library (or C compiler) bugs. :-) I propose closing this as 'won't fix': I certainly wouldn't want to add workarounds in the

[issue13534] test_cmath fails on ppc with glibc-2.14.90 due to buggy architecture-specific "hypot"

2011-12-06 Thread Mark Dickinson
Changes by Mark Dickinson : -- assignee: -> mark.dickinson ___ Python tracker <http://bugs.python.org/issue13534> ___ ___ Python-bugs-list mailing list Un

[issue13546] sys.setrecursionlimit() crashes IDLE

2011-12-08 Thread Mark Dickinson
Mark Dickinson added the comment: Style nit: how about 'except ValueError as e' instead of 'except ValueError, e' (Actually, why do we need e?) -- nosy: +mark.dickinson ___ Python tracker <http://bug

[issue13549] Incorrect nested list comprehension documentation

2011-12-08 Thread Mark Dickinson
Mark Dickinson added the comment: Isn't the documentation that you refer to about *nested* list comprehensions, rather than list comprehensions with multiple 'for' clauses? E.g.,: [number for row in matrix for number in row] is not a nested list comprehension: it&

[issue13549] Incorrect nested list comprehension documentation

2011-12-08 Thread Mark Dickinson
Mark Dickinson added the comment: Mind you, I'm not at all sure about that use of 'apprehension'... -- ___ Python tracker <http://bugs.pyt

[issue13573] csv.writer uses str() for floats instead of repr()

2011-12-11 Thread Mark Dickinson
Mark Dickinson added the comment: +1 for fixing this. -- nosy: +mark.dickinson ___ Python tracker <http://bugs.python.org/issue13573> ___ ___ Python-bugs-list m

[issue12149] Segfault in _PyObject_GenericGetAttrWithDict

2011-12-14 Thread Mark Shannon
Mark Shannon added the comment: Please reopen this bug as the fix is wrong. This fix merely hides the symptoms of _PyType_Lookup returning a dead object, by calling PyType_Modified() frequently, thus ensuring the type method cache is almost always invalidated. This results in a significant

[issue13603] Add prime-related and number theory functions to Python

2011-12-15 Thread Mark Dickinson
Mark Dickinson added the comment: Agree with the -1s. -- ___ Python tracker <http://bugs.python.org/issue13603> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12149] Segfault in _PyObject_GenericGetAttrWithDict

2011-12-15 Thread Mark Shannon
Mark Shannon added the comment: Absolutely. subtype_dealloc deals with deallocation of subtype *instances*, not the types themselves. > Maybe we can try and explore the reference graph again? This sort of thing is one of the reasons that the cycle GC does not call any finalisers. Attempt

[issue12149] Segfault in _PyObject_GenericGetAttrWithDict

2011-12-15 Thread Mark Shannon
Mark Shannon added the comment: What's happening is that the cycle GC calls type_clear to clear the type, but the method-cache is not invalidated. I have added a call to PyType_Modified in type_clear (as well as type_set_name and type_set_qualname, which also modify the type). Pat

[issue12149] Segfault in _PyObject_GenericGetAttrWithDict

2011-12-15 Thread Mark Shannon
Mark Shannon added the comment: Beat me to it, Antoine! Don't forget type_set_name and type_set_qualname. -- ___ Python tracker <http://bugs.python.org/is

[issue12149] Segfault in _PyObject_GenericGetAttrWithDict

2011-12-15 Thread Mark Shannon
Mark Shannon added the comment: Antoine Pitrou wrote: > Antoine Pitrou added the comment: > >> I have added a call to PyType_Modified in type_clear (as well as >> type_set_name and type_set_qualname, which also modify the type). > > Can __name__ and __qualname__

[issue13606] test_clear_dict_in_ref_cycle in test_module only works by coincidence

2011-12-15 Thread Mark Shannon
New submission from Mark Shannon : test_clear_dict_in_ref_cycle in test_module only works by coincidence, if the name of the variable on line 77 is changed from 'a' to 'x', then the test fails. This is a result of the arbitrary ordering of removals of values from a modules

[issue13610] On Python parsing numbers.

2011-12-16 Thread Mark Dickinson
Mark Dickinson added the comment: > Can this be fixed? Not without breaking backwards compatibility, I would think. -- nosy: +mark.dickinson ___ Python tracker <http://bugs.python.org/issu

[issue13701] Remove Decimal Python 2.3 Compatibility

2012-01-03 Thread Mark Dickinson
Mark Dickinson added the comment: Did you have specific changes in mind? While we're still maintaining 2.x and 3.x code in parallel, there's a benefit to not having the versions of decimal.py diverge too much. Given that the 2.3-compatible code isn't actually broken, I&

[issue13703] Hash collision security issue

2012-01-04 Thread Mark Shannon
Changes by Mark Shannon : -- nosy: +Mark.Shannon ___ Python tracker <http://bugs.python.org/issue13703> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13703] Hash collision security issue

2012-01-05 Thread Mark Shannon
Mark Shannon added the comment: What is the mechanism by which the attacker can determine the seeds? The actual hash value is not directly observable externally. The attacker can only determine the timing effects of multiple insertions into a dict, or have I missed something? > - h

[issue13703] Hash collision security issue

2012-01-05 Thread Mark Shannon
Mark Shannon added the comment: But that's not the issue we are supposed to be dealing with. A single (genuinely random) seed will deal with the attack described in the talk and it is (almost) as fast as using 0 as a seed. Why make things complicated dealing with a hypothetical pr

[issue13703] Hash collision security issue

2012-01-06 Thread Mark Shannon
Mark Shannon added the comment: I agree. +1 for strings. -0 for numbers. This might cause problems with dict subclasses and the like, so I'm -1 on this. -- ___ Python tracker <http://bugs.python.org/is

[issue13703] Hash collision security issue

2012-01-06 Thread Mark Shannon
Mark Shannon added the comment: Without the context, that last message didn't make much sense. I agree with Terry that we should copy Perl and Ruby (for strings). I'm -1 on hash() returning a different value than dict uses internally. --

[issue13755] str.endswith and str.startswith do not take lists of strings

2012-01-10 Thread Mark Dickinson
Mark Dickinson added the comment: No, but they take tuples: >>> 'abcd'.endswith(('a', 'b')) False >>> 'abcd'.endswith(('c', 'd')) True Suggest closing as out of date. -- nosy: +

[issue13703] Hash collision security issue

2012-01-11 Thread Mark Shannon
Mark Shannon added the comment: >>> * the method would need to be implemented for all hashable Python types >> It was already discussed, and it was said that only hash(str) need to >> be modified. > > Really ? What about the much simpler attack on integer hash val

[issue13703] Hash collision security issue

2012-01-11 Thread Mark Dickinson
Mark Dickinson added the comment: [Antoine] > Also, how about false positives? Having legitimate programs break > because of legitimate data would be a disaster. This worries me, too. [MAL] > Yes, which is why the patch should be disabled by default (using > an env var) in dot-re

[issue12080] decimal.py: performance in _power_exact

2011-05-22 Thread Mark Dickinson
Mark Dickinson added the comment: Here's a patch. Stefan, could you please review? -- keywords: +patch Added file: http://bugs.python.org/file22068/issue12080.patch ___ Python tracker <http://bugs.python.org/is

[issue12080] decimal.py: performance in _power_exact

2011-05-22 Thread Mark Dickinson
Changes by Mark Dickinson : -- stage: -> commit review ___ Python tracker <http://bugs.python.org/issue12080> ___ ___ Python-bugs-list mailing list Unsubscri

[issue12080] decimal.py: performance in _power_exact

2011-05-22 Thread Mark Dickinson
Mark Dickinson added the comment: Here's a slightly improved version that adds guards against computing 10**ye for large ye in the case y < 0, ye > 0. -- Added file: http://bugs.python.org/file22069/issue12080_v2.patch ___ Python tra

[issue7827] recv_into() argument 1 must be pinned buffer, not bytearray

2011-05-22 Thread Mark Nottingham
Changes by Mark Nottingham : -- nosy: +mnot ___ Python tracker <http://bugs.python.org/issue7827> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12164] str.translate docstring doesn't mention that 'table' can be None

2011-05-23 Thread Mark Dickinson
New submission from Mark Dickinson : In Python 2.6 and 2.7, str.translate accepts None as a first argument. That's documented in the docs, but not in the str.translate docstring. -- assignee: docs@python components: Documentation messages: 136720 nosy: docs@python, mark.dick

[issue12200] bdist_wininst install_script not run on uninstall

2011-05-27 Thread Mark Hammond
New submission from Mark Hammond : Probably in all versions, but certainly in 2.7. If you create an installer with bdist_wininst and specify an install_script, that script is not run on uninstallation. See attached test case: setup.py specifies an install_script which just appends argv to

[issue12200] bdist_wininst install_script not run on uninstall

2011-05-27 Thread Mark Hammond
Changes by Mark Hammond : Added file: http://bugs.python.org/file22161/hello.py ___ Python tracker <http://bugs.python.org/issue12200> ___ ___ Python-bugs-list mailin

[issue12200] bdist_wininst install_script not run on uninstall

2011-05-27 Thread Mark Hammond
Changes by Mark Hammond : Added file: http://bugs.python.org/file22162/hello-install.py ___ Python tracker <http://bugs.python.org/issue12200> ___ ___ Python-bugs-list m

[issue12200] bdist_wininst install_script not run on uninstall

2011-05-30 Thread Mark Hammond
Changes by Mark Hammond : -- assignee: tarek -> mhammond keywords: +patch stage: -> patch review versions: +Python 2.7, Python 3.2, Python 3.3, Python 3.4 Added file: http://bugs.python.org/file22205/issue12200.patch ___ Python tracker

<    1   2   3   4   5   6   7   8   9   10   >