[issue7889] random produces different output on different architectures

2010-02-09 Thread Terrence Cole
Terrence Cole added the comment: Thank you for all the help! I'm glad to see that the use of hash() on buffer compatible objects is an actual gotcha and not just me being obtuse. Also, for those googling who, like me, won't be able to use 3.2's from_bytes until 3.2 is released in December, h

[issue7896] IDLE.app crashes when attempting to open a .py file

2010-02-09 Thread Ronald Oussoren
Ronald Oussoren added the comment: Do you use your an installer from python.org or your own build? The crashlog seems to indicate the latter (because of the Code Type). Which version of Tk are you using? Which OS release? I know there are issues with the system Tk 8.5 on OSX 10.6, although th

[issue7418] hashlib : the names of the different hash algorithms

2010-02-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'll be taking a look at this patch during the sprints at Pycon. Will get back to you soonish :-) -- ___ Python tracker ___ ___

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-02-09 Thread Brian Curtin
Brian Curtin added the comment: With patch #25, I get 6 test failures: test_glob, test_os, test_platform, test_posixpath, test_shutil, and test_tarfile. This is interesting because the failures are different depending on how I compile Python. Running in WOW64 (32-bit Python on 64-bit Windows

[issue3819] urllib2 sends Basic auth across redirects

2010-02-09 Thread Senthil Kumaran
Senthil Kumaran added the comment: Ok, in order to fix this bug, urllib2 should only send the cookies and not send the auth info across the the redirects. Yup, let me take this up. -- assignee: -> orsenthil resolution: -> accepted ___ Python track

[issue3819] urllib2 sends Basic auth across redirects

2010-02-09 Thread David Fischer
David Fischer added the comment: I believe this bug affects urllib2 when it talks to the corporate single-sign-on solution Siteminder. Siteminder usually is installed as a web server module. When a request is made to the server (origin server), Siteminder issues a 302 redirect to a central au

[issue1160] Medium size regexp crashes python

2010-02-09 Thread Matthew Barnett
Matthew Barnett added the comment: As stated in msg73781, this is being addressed in issue #2636. My regex module handles the test case without complaint: >>> import regex >>> r = regex.compile('|'.join('%d'%x for x in range(7000))) >>> r.match("1000") <_regex.REGEX_Match object at 0x015D2920>

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-02-09 Thread Jason R. Coombs
Changes by Jason R. Coombs : Removed file: http://bugs.python.org/file16197/smime.p7s ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-02-09 Thread Jason R. Coombs
Changes by Jason R. Coombs : Removed file: http://bugs.python.org/file16194/windows symlink draft 24.patch ___ Python tracker ___ ___ Python

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-02-09 Thread Jason R. Coombs
Changes by Jason R. Coombs : Removed file: http://bugs.python.org/file16193/windows symlink draft 23.patch ___ Python tracker ___ ___ Python

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-02-09 Thread Jason R. Coombs
Changes by Jason R. Coombs : Removed file: http://bugs.python.org/file16180/windows symlink draft 22.patch ___ Python tracker ___ ___ Python

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-02-09 Thread Jason R. Coombs
Changes by Jason R. Coombs : Removed file: http://bugs.python.org/file15932/failures.txt ___ Python tracker ___ ___ Python-bugs-list mailing

[issue7897] Support parametrized tests in unittest

2010-02-09 Thread Fernando Perez
New submission from Fernando Perez : IPython has unittest-based parametric testing (something nose has but which produces effectively undebuggable tests, while this approach gives perfectly debuggable ones). The code lives here for 2.x and 3.x: http://bazaar.launchpad.net/~ipython-dev/ipython/t

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-02-09 Thread Matthew Barnett
Matthew Barnett added the comment: issue2636-20100210.zip is a new version of the regex module. The reported bugs appear to be fixed now. -- Added file: http://bugs.python.org/file16195/issue2636-20100210.zip ___ Python tracker

[issue7418] hashlib : the names of the different hash algorithms

2010-02-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'll be taking a look at this patch during the sprints at Pycon. Will get back to you soonish :-) -- ___ Python tracker ___ ___

[issue4037] doctest.py should include method descriptors when looking inside a class __dict__

2010-02-09 Thread Brian Curtin
Brian Curtin added the comment: Can you add your test(s) in Lib/test/test_doctest.py ? That way it will be run with the Python regression suite. Ideally a documentation update would come with the patch. Also, line length should ideally be capped at 79 characters (re: PEP-8). Might as well mo

[issue7712] Add a context manager to change cwd in test.test_support and run the test suite in a temp dir.

2010-02-09 Thread Brian Curtin
Brian Curtin added the comment: With Ezio's latest patch (sent via IRC), test_bufio still fails and additionally test_mailbox fails. If I apply the patch on #7443 along with Ezio's patch, everything looks fine. I haven't thoroughly looked at that issue, but on the surface it looks similar (s

[issue7896] IDLE.app crashes when attempting to open a .py file

2010-02-09 Thread Brian Curtin
Changes by Brian Curtin : -- assignee: -> ronaldoussoren components: +Macintosh nosy: +ronaldoussoren ___ Python tracker ___ ___ Pytho

[issue3646] MacOS X framework install to non-standard directory fails

2010-02-09 Thread John-Michael Glenn
John-Michael Glenn added the comment: I'm using Python 2.6.4 on OSX 10.6 and I first used the mv command to rename the original python.framework. Then I was able to install 2.6 as the new python.framework. These are the commands: rename it: sudo mv /Library/Frameworks/Python.framework /Libra

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-02-09 Thread Jason R. Coombs
Jason R. Coombs added the comment: This new patch (23) renames support.has_symlink and support.skip_unless_has_symlink to "can_symlink". This more accurately reflects the functionality. -- title: Add os.link() and os.symlink() and os.path.islink() support for Windows -> Add os.l

[issue7896] IDLE.app crashes when attempting to open a .py file

2010-02-09 Thread John-Michael Glenn
New submission from John-Michael Glenn : This happens every time I try to open any .py file from anywhere in my computer. I start IDLE.app and go to the menu and open a file then it pauses and crashes. I get a similar event when I try to use the Run Module option from the menu, except it doesn

[issue6472] Inconsistent use of "iterator" in ElementTree doc & diff between Py and C modules

2010-02-09 Thread Florent Xicluna
Florent Xicluna added the comment: Here it is: * http://codereview.appspot.com/207048/show -- ___ Python tracker ___ ___ Python-bugs-

[issue6472] Inconsistent use of "iterator" in ElementTree doc & diff between Py and C modules

2010-02-09 Thread Florent Xicluna
Florent Xicluna added the comment: Ok, will do the upload to rietveld. In addition to the straight review of the patch itself, you could: - diff against the upstream source code (very few changes) - diff between 2.x and 3.x - review the test_suite (there's only additions, no real change) -

[issue6472] Inconsistent use of "iterator" in ElementTree doc & diff between Py and C modules

2010-02-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Given the size of the patch, it's very difficult to review properly. In any case, could you upload it to http://codereview.appspot.com/ ? -- ___ Python tracker

[issue7895] Mac 10.6 mac_ver() crashes with USING_FORK_WITHOUT_EXEC_IS _NOT_SUPPORTED_BY_FILE_MANAGER

2010-02-09 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list m

[issue6472] Inconsistent use of "iterator" in ElementTree doc & diff between Py and C modules

2010-02-09 Thread Florent Xicluna
Changes by Florent Xicluna : Added file: http://bugs.python.org/file16192/issue6472_etree_upstream_py3k_v2.diff ___ Python tracker ___ ___ Pyt

[issue6472] Inconsistent use of "iterator" in ElementTree doc & diff between Py and C modules

2010-02-09 Thread Florent Xicluna
Florent Xicluna added the comment: Patch updated, with upstream packages: * ElementTree 1.3a3-20070912 * cElementTree 1.0.6-20090110 Now all tests are identical for the ElementTree part: - ElementTree 2.x - cElementTree 2.x - ElementTree 3.x - cElementTree 3.x Waiting for some developer

[issue6472] Inconsistent use of "iterator" in ElementTree doc & diff between Py and C modules

2010-02-09 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file15552/issue6472_upstream_py3k_v2.diff ___ Python tracker ___ ___ Python-b

[issue6472] Inconsistent use of "iterator" in ElementTree doc & diff between Py and C modules

2010-02-09 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file15468/issue6472_upstream.diff ___ Python tracker ___ ___ Python-bugs-list

[issue7892] refactor "test_dict.py" using new assertRaises context manager.

2010-02-09 Thread Florent Xicluna
Changes by Florent Xicluna : -- title: [patch] refactor "test_dict.py" using new assertRaises context manager. -> refactor "test_dict.py" using new assertRaises context manager. ___ Python tracker _

[issue7895] Mac 10.6 mac_ver() crashes with USING_FORK_WITHOUT_EXEC_IS _NOT_SUPPORTED_BY_FILE_MANAGER

2010-02-09 Thread Florent Xicluna
Changes by Florent Xicluna : -- priority: -> normal title: Mac 10.6 mac_ver() crashes with USING_FORK_WITHOUT_EXEC_IS_NOT_SUPPORTED_BY_FILE_MANAGER -> Mac 10.6 mac_ver() crashes with USING_FORK_WITHOUT_EXEC_IS _NOT_SUPPORTED_BY_FILE_MANAGER ___ Pyt

[issue7895] Mac 10.6 mac_ver() crashes with USING_FORK_WITHOUT_EXEC_IS_NOT_SUPPORTED_BY_FILE_MANAGER

2010-02-09 Thread Aahz
New submission from Aahz : On OSX 10.6/Snow Leopard, using platform.mac_ver() in a subprocess created with fork() but not calling exec() will cause a crash with USING_FORK_WITHOUT_EXEC_IS_NOT_SUPPORTED_BY_FILE_MANAGER You may need to be also running in GUI mode. Ronald Oussouren says that you c

[issue7894] too aggressive dependency tracking in distutils

2010-02-09 Thread Ronald Oussoren
New submission from Ronald Oussoren : build_ext calculates which files for an Extension need to be recompiled. This calculation is way to aggrasive: if any source file for an Extension has changed all source files get recompiled. It would be nice if distutils would only recompile the sources t

[issue7505] ctypes not converting None to Null in 64-bit system

2010-02-09 Thread Venkateswaran
Venkateswaran added the comment: The output was a valid pointer which was not null. I did not investigate further on this issue, because I had a work around i.e I used ctypes.POINTER(ctypes.c_cint)() instead of None. -- ___ Python tracker

[issue7892] [patch] refactor "test_dict.py" using new assertRaises context manager.

2010-02-09 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue7892] [patch] refactor "test_dict.py" using new assertRaises context manager.

2010-02-09 Thread Florent Xicluna
Florent Xicluna added the comment: I missed an "assertEqual(hasattr(...), False)". Fixed. -- Added file: http://bugs.python.org/file16190/patch_dict_assertRaises_py3k.diff ___ Python tracker ___

[issue7893] unittest: have to subclass TextTestRunner to use alternative TestResult

2010-02-09 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: +brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue7892] [patch] refactor "test_dict.py" using new assertRaises context manager.

2010-02-09 Thread Florent Xicluna
Changes by Florent Xicluna : Added file: http://bugs.python.org/file16189/patch_dict_assertRaises.diff ___ Python tracker ___ ___ Python-bugs-l

[issue7892] [patch] refactor "test_dict.py" using new assertRaises context manager.

2010-02-09 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file16187/patch_dict_assertRaises.diff ___ Python tracker ___ ___ Python-bugs

[issue7892] [patch] refactor "test_dict.py" using new assertRaises context manager.

2010-02-09 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file16188/patch_dict_assertRaises_py3k.diff ___ Python tracker ___ ___ Python

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-02-09 Thread Vlastimil Brom
Vlastimil Brom added the comment: I'd like to add another issue I encountered with the latest version of regex - issue2636-20100204.zip It seems, that there is an error in handling some quantifiers in python 2.5 on Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)] o

[issue4713] Installing sgmlop causes xmlrpclib error

2010-02-09 Thread Brian Curtin
Brian Curtin added the comment: The patch could use a test (which doesn't require sgmlop). -- keywords: +needs review nosy: +brian.curtin priority: -> normal stage: -> test needed title: Installing sgmlop can crash xmlrpclib -> Installing sgmlop causes xmlrpclib error __

[issue2746] ElementTree ProcessingInstruction uses character entities in content

2010-02-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've committed the patch in r78125 (trunk) and r78126 (py3k). I'm not sure I want to backport it to 2.6/3.1, since it might bite people who relied on the old behaviour. -- resolution: -> accepted stage: patch review -> committed/rejected status: open

[issue7893] unittest: have to subclass TextTestRunner to use alternative TestResult

2010-02-09 Thread Michael Foord
New submission from Michael Foord : A common way to extend unittest is to implement a custom TestResult. Currently you have to subclass TextTestRunner, overriding _makeResult, to get it to use an alternative result class. I suggest adding an additional, optional, argument to TextTestRunner to

[issue7424] segmentation fault in listextend during install

2010-02-09 Thread Brian Curtin
Changes by Brian Curtin : -- priority: -> normal stage: -> test needed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue6895] locale._parse_localename fails when localename does not contain encoding information

2010-02-09 Thread Brian Curtin
Changes by Brian Curtin : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue5223] infinite recursion in PyErr_WriteUnraisable

2010-02-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: As already mentioned, the backport patch isn't up to date. -- ___ Python tracker ___ ___ Python-bugs

[issue7505] ctypes not converting None to Null in 64-bit system

2010-02-09 Thread Brian Curtin
Brian Curtin added the comment: What is the output of your example? I'm not on Linux at the moment, but I'm trying to see if this is actually a crash. -- nosy: +brian.curtin priority: -> normal stage: -> test needed versions: -Python 2.5 ___ Pyth

[issue7892] [patch] refactor "test_dict.py" using new assertRaises context manager.

2010-02-09 Thread Florent Xicluna
Florent Xicluna added the comment: The 3.x merge. -- Added file: http://bugs.python.org/file16188/patch_dict_assertRaises_py3k.diff ___ Python tracker ___ ___

[issue5504] ctypes should work with systems where mmap can't be PROT_WRITE and PROT_EXEC

2010-02-09 Thread Brian Curtin
Changes by Brian Curtin : -- keywords: +needs review priority: -> normal stage: -> patch review type: crash -> behavior ___ Python tracker ___ __

[issue6233] ElementTree (py3k) doesn't properly encode characters that can't be represented in the specified encoding

2010-02-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r78123 (py3k) and r78124 (3.1). I've also removed _escape_cdata() since it wasn't used anymore. Thanks Jerry for the patch. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed

[issue6863] Wrong linker command if CXX set to "ccache g++"

2010-02-09 Thread Brian Curtin
Changes by Brian Curtin : -- priority: -> normal type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue6668] locale.py: can't parse sr...@latin locale

2010-02-09 Thread Brian Curtin
Changes by Brian Curtin : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue6476] MSVCRT's spawnve/spawnvpe are not thread safe

2010-02-09 Thread Brian Curtin
Changes by Brian Curtin : -- priority: -> normal type: crash -> behavior versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.4, Python 2.5 ___ Python tracker ___

[issue7892] [patch] refactor "test_dict.py" using new assertRaises context manager.

2010-02-09 Thread Florent Xicluna
New submission from Florent Xicluna : Patch to refactor "test_dict" using new unittest methods. -- components: Tests files: patch_dict_assertRaises.diff keywords: patch messages: 99124 nosy: flox priority: normal severity: normal stage: patch review status: open title: [patch] refactor "

[issue6470] Tkinter import fails when running Python.exe from a network share

2010-02-09 Thread Brian Curtin
Changes by Brian Curtin : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue6270] Menu deletecommand fails if command is already deleted

2010-02-09 Thread Brian Curtin
Changes by Brian Curtin : -- priority: -> normal stage: -> patch review type: crash -> behavior versions: +Python 3.2 -Python 2.5, Python 3.0 ___ Python tracker ___

[issue4918] Windows installer created with Python 2.5 does not work with Python 2.6.1

2010-02-09 Thread Brian Curtin
Changes by Brian Curtin : -- priority: -> normal type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue5527] multiprocessing won't work with Tkinter (under Linux)

2010-02-09 Thread Brian Curtin
Changes by Brian Curtin : -- priority: -> normal stage: -> needs patch type: crash -> behavior ___ Python tracker ___ ___ Python-bugs

[issue5223] infinite recursion in PyErr_WriteUnraisable

2010-02-09 Thread Brian Curtin
Changes by Brian Curtin : -- priority: -> normal stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue6815] UnicodeDecodeError in os.path.expandvars

2010-02-09 Thread Brian Curtin
Changes by Brian Curtin : -- priority: -> normal stage: -> test needed type: crash -> behavior ___ Python tracker ___ ___ Python-bugs

[issue4891] formatwarning function signature change breaks code

2010-02-09 Thread Brian Curtin
Changes by Brian Curtin : -- priority: -> normal stage: -> test needed type: crash -> behavior ___ Python tracker ___ ___ Python-bugs

[issue7889] random produces different output on different architectures

2010-02-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: I will update the documentation. -- components: +Documentation -Library (Lib) versions: -Python 2.6, Python 2.7, Python 3.2 ___ Python tracker _

[issue1533] Bug in range() function for large values

2010-02-09 Thread Brian Curtin
Changes by Brian Curtin : -- priority: -> normal type: crash -> behavior versions: +Python 3.1, Python 3.2 -Python 3.0 ___ Python tracker ___

[issue4713] Installing sgmlop can crash xmlrpclib

2010-02-09 Thread Brian Curtin
Changes by Brian Curtin : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue3771] test_httpservers intermittent failure

2010-02-09 Thread Brian Curtin
Changes by Brian Curtin : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue7229] [PATCH] Manual entry for time.daylight can be misleading

2010-02-09 Thread Brian Curtin
Brian Curtin added the comment: I don't think altzone was incorrect, but it could also use a little rewording. Attached is a patch which rewords daylight and altzone. Thoughts? -- keywords: +needs review priority: -> normal stage: -> patch review versions: -Python 2.4, Python 2.5, P

[issue7216] low performance of zipfile readline()

2010-02-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Already fixed with issue7610. -- nosy: +amaury.forgeotdarc resolution: -> duplicate status: open -> closed superseder: -> Cannot use both read and readline method in same ZipExtFile object ___ Python tracker

[issue7662] time.utcoffset()

2010-02-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: The `time` module is written in C, in Modules/timemodule.c. If this is too bothersome to write in C, the function could perhaps be added to the datetime module instead. In any case, we need a proper patch, including unit tests if possible. (and I agree that an

[issue7662] time.utcoffset()

2010-02-09 Thread anatoly techtonik
anatoly techtonik added the comment: Updated Python code according to discussion from aforementioned issue #7582. Unfortunately, I can't find Python source for `time` module to make a proper patch out of it. def time.utcoffset(): """Return current UTC offset in seconds""" isdst = time.loc

[issue6615] multiprocessing logging support test

2010-02-09 Thread Vinay Sajip
Changes by Vinay Sajip : -- resolution: accepted -> fixed status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue7808] test_bsddb3 leaks references

2010-02-09 Thread Florent Xicluna
Changes by Florent Xicluna : -- type: performance -> resource usage ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue5596] memory leaks in py3k

2010-02-09 Thread Florent Xicluna
Changes by Florent Xicluna : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue6615] multiprocessing logging support test

2010-02-09 Thread Florent Xicluna
Changes by Florent Xicluna : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue6615] multiprocessing logging support test

2010-02-09 Thread Florent Xicluna
Changes by Florent Xicluna : -- status: pending -> open versions: -Python 2.6, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list

[issue6615] multiprocessing logging support test

2010-02-09 Thread Florent Xicluna
Florent Xicluna added the comment: It should be closed now. -- priority: -> normal stage: -> committed/rejected status: open -> pending ___ Python tracker ___ _

[issue7808] test_bsddb3 leaks references

2010-02-09 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue3562] Intermitent failure in test_multiprocessing.test_number_of_objects

2010-02-09 Thread Florent Xicluna
Florent Xicluna added the comment: Duplicate of #5009. Applied in r68839. -- nosy: +flox resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> multiprocessing: failure in manager._debug_info() ___ Python track

[issue7887] errno 107 socket.recv issure

2010-02-09 Thread Jordan Apgar
Jordan Apgar added the comment: Sorry I was under the impression this was an issue with the socket module -- ___ Python tracker ___ __

[issue7808] test_bsddb3 leaks references

2010-02-09 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue4037] doctest.py should include method descriptors when looking inside a class __dict__

2010-02-09 Thread Steven D'Aprano
Steven D'Aprano added the comment: Attached is a simple test script for the patch I submitted. I have tested it with Python 2.6 both before and after applying the patch. Run it from the command line. With the unpatched doctest module, it prints: "Expected 2 doctests, but only found 1" After

[issue7774] sys.executable: wrong location if zeroth command argument is modified.

2010-02-09 Thread Florent Xicluna
Changes by Florent Xicluna : -- components: +Interpreter Core -Library (Lib) stage: test needed -> needs patch ___ Python tracker ___ _

[issue7880] sysconfig does not like symlinks

2010-02-09 Thread Florent Xicluna
Florent Xicluna added the comment: Yes, it is the issue #7774. The patch proposed on msg98284 should fix sys.executable being a directory. Tarek, if you implement the patch for sysconfig, add a note regarding the dir hack: # XXX : see issue 7774 --

[issue7880] sysconfig does not like symlinks

2010-02-09 Thread Tarek Ziadé
Tarek Ziadé added the comment: Antoine, see http://bugs.python.org/issue7774 -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue7880] sysconfig does not like symlinks

2010-02-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Why would sys.executable be a directory? -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-lis

[issue7889] random produces different output on different architectures

2010-02-09 Thread Mark Dickinson
Mark Dickinson added the comment: [Antoine] > >>> random.seed(int.from_bytes(b'foo', 'little')) +1 for either documenting this useful trick, or modifying init_by_array to do this automatically for buffer-like objects. Disallowing other types of input for the seed sounds dangerous, though. --

[issue7889] random produces different output on different architectures

2010-02-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, ideally we should drop the automatic hash() and only accept: 1) ints/longs 2) buffer-like objects (and tell people to hash() explicitly if they want to) If that's too disruptive, we should document it. And, for 3.x, provide the following recipe to hash f

[issue7889] random produces different output on different architectures

2010-02-09 Thread Michael Foord
Michael Foord added the comment: If we aren't going to fix it, should we document the limitation? -- nosy: +michael.foord ___ Python tracker ___ _

[issue7582] [patch] diff.py to use iso timestamp

2010-02-09 Thread anatoly techtonik
anatoly techtonik added the comment: Finally! (I really hope so) -- Added file: http://bugs.python.org/file16184/diff.py_iso_timestamps_true_with_true_dst.diff ___ Python tracker __

[issue7889] random produces different output on different architectures

2010-02-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, it's simple really. When seeding from something else than an integer, seed() takes the hash of the object (instead of considering all its bytes, which might be considered a weakness since you lose entropy -- also, Python hash() is not supposed to be crypt

[issue7889] random produces different output on different architectures

2010-02-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: It works when seeding from a single integer, though: >>> import random >>> random.seed(123) >>> random.random() 0.052363598850944326 So I guess it's the seeding-from-an-array which is buggy. -- ___ Python tracker <

[issue7889] random produces different output on different architectures

2010-02-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: It's not only getrandbits(): ** x86 ** >>> random.seed(b'foo') >>> random.random() 0.95824312997798622 ** x86_64 ** >>> random.seed(b'foo') >>> random.random() 0.88694660946819537 -- nosy: +pitrou ___ Python tracke

[issue7890] equal unicode/str objects can have unequal hash

2010-02-09 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: lplatypus wrote: > > lplatypus added the comment: > > Okay thanks, but in that case might I suggest that this limitation be > mentioned in the documentation for sys.setdefaultencoding? It currently > reads as if any available encoding is acceptable. Pe

[issue7229] [PATCH] Manual entry for time.daylight can be misleading

2010-02-09 Thread anatoly techtonik
anatoly techtonik added the comment: Perhaps altzone() documentation is also wrong. Brian, can you comment on this? http://docs.python.org/library/time.html#time.altzone -- nosy: +brian.curtin ___ Python tracker

[issue7889] random produces different output on different architectures

2010-02-09 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue6608] asctime causing python to crash

2010-02-09 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +brett.cannon, lemburg priority: normal -> release blocker ___ Python tracker ___ ___ Python-bugs-

[issue7890] equal unicode/str objects can have unequal hash

2010-02-09 Thread lplatypus
lplatypus added the comment: Okay thanks, but in that case might I suggest that this limitation be mentioned in the documentation for sys.setdefaultencoding? It currently reads as if any available encoding is acceptable. Perhaps even a warning or exception should be produced when calling it

[issue5930] Transient error in multiprocessing

2010-02-09 Thread Florent Xicluna
Florent Xicluna added the comment: Closed duplicate reports #6366 and #6747. -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-lis

[issue7808] test_bsddb3 leaks references

2010-02-09 Thread Florent Xicluna
Florent Xicluna added the comment: Patch updated for latest trunk. -- Added file: http://bugs.python.org/file16183/issue7808_bsddb3_refleak_v2.diff ___ Python tracker ___ ___

[issue7808] test_bsddb3 leaks references

2010-02-09 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file16039/issue7808_bsddb3_refleak.diff ___ Python tracker ___ ___ Python-bug

  1   2   >