[issue1309352] Make fcntl work properly on AMD64

2009-05-19 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: @AP: ran patched test on Freebsd (6.2) as requested. Result is: test_fcntl_64_bit (test.test_fcntl.TestFcntl) ... skipped 'F_NOTIFY or DN_MULTISHOT unavailable' -- nosy: +r.david.murray ___

[issue6061] time.clock(): overflow in programs that run for very long

2009-05-19 Thread Thomas Reiter
New submission from Thomas Reiter thom...@nikhef.nl: On a 64-bit Linux machine the attached program generates the following (shortened) output: $ python bug.py ... after 2145.49s: after 2145.82s: after 2146.14s: after 2146.47s: after 2146.80s: after 2147.13s: after 2147.45s: after

[issue6061] time.clock(): overflow in programs that run for very long

2009-05-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: time.clock() is a simple wrapper around the C stdlib clock() function. As the clock() man page says: « Note that the time can wrap around. On a 32-bit system where CLOCKS_PER_SEC equals 100 this function will return the same value

[issue6061] time.clock(): overflow in programs that run for very long

2009-05-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: It is very likely you have a 32-bit Python build because: 2**32/100. 4294.967295998 and 4294 is exactly the number of seconds by which your clock() value wraps around. -- ___ Python tracker

[issue3585] pkg-config support

2009-05-19 Thread sol
sol simon.hen...@wiktory.org added the comment: I totally agree. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3585 ___ ___ Python-bugs-list

[issue1983] Return from fork() is pid_t, not int

2009-05-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The following patch should do the trick. -- keywords: +patch nosy: +pitrou Added file: http://bugs.python.org/file14016/issue1983.patch ___ Python tracker rep...@bugs.python.org

[issue1983] Return from fork() is pid_t, not int

2009-05-19 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- resolution: fixed - stage: - patch review versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1 -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1983

[issue6061] time.clock(): overflow in programs that run for very long

2009-05-19 Thread Thomas Reiter
Thomas Reiter thom...@nikhef.nl added the comment: That version of Python is linked against 32-bit libc. Point of overflow corresponds to 2^31 us. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6061

[issue3585] pkg-config support

2009-05-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Patch looks good here. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3585 ___

[issue6058] Add cp65001 to encodings/aliases.py

2009-05-19 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +lemburg, loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6058 ___ ___ Python-bugs-list

[issue1602] windows console doesn't print utf8 (Py30a2)

2009-05-19 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1602 ___ ___ Python-bugs-list

[issue1722344] Thread shutdown exception in Thread.notify()

2009-05-19 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +pitrou stage: - patch review type: - behavior versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1 -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1722344

[issue6042] Document and slightly simplify lnotab tracing

2009-05-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I can't say anything about the simplification since I never use tracing, but +1 at least on the doc cleanup. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6042

[issue1602] windows console doesn't print utf8 (Py30a2)

2009-05-19 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: an immediate thing to do is to declare cp65001 as an encoding: Index: Lib/encodings/aliases.py === --- Lib/encodings/aliases.py(revision 72757) +++

[issue6056] socket.setdefaulttimeout affecting multiprocessing Manager

2009-05-19 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: Well; I'm pretty tapped out right now - I think your idea of checking to see if a timeout has been set elsewhere makes sense. If you have the time to put together a patch (with a unit test or three :)) I can review it. Might take me a bit of

[issue1761028] pickle - cannot unpickle circular deps with custom __hash__

2009-05-19 Thread Tristam MacDonald
Changes by Tristam MacDonald swiftco...@gmail.com: -- nosy: +swiftcoder ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1761028 ___ ___

[issue1761028] pickle - cannot unpickle circular deps with custom __hash__

2009-05-19 Thread Tristam MacDonald
Tristam MacDonald swiftco...@gmail.com added the comment: Is there any sign of a patch or workaround for this issue? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1761028 ___

[issue1309352] Make fcntl work properly on AMD64

2009-05-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: @AP: ran patched test on Freebsd (6.2) as requested. Thanks! For the record, did the rest of test_fcntl pass? Is it a 32-bit or a 64-bit build? -- ___ Python tracker rep...@bugs.python.org

[issue1309352] Make fcntl work properly on AMD64

2009-05-19 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: On Tue, 19 May 2009 at 16:24, Antoine Pitrou wrote: Thanks! For the record, did the rest of test_fcntl pass? Is it a 32-bit or a 64-bit build? Yes and 32 bit. -- ___ Python tracker

[issue6060] PYTHONHOME should be more flexible (and controllable by --libdir)

2009-05-19 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: PYTHONHOME is defined as 'prefix:exec-prefix'. Given that definition the library must be resolved relatively by appending 'lib/pythonX.Y'. Given the long standing nature of this interface, I doubt the meaning can be changed. It might be

[issue6022] test_distutils leaves a 'foo' file behind in the cwd

2009-05-19 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: It's not just on the buildbots, it passes fine on my Gentoo box. So the question really is, what's different about your box that makes it fail? Can you figure out what bit of code is not finding that library? How do you run the tests?

[issue6063] pydoc_data package is not installed

2009-05-19 Thread Ronald Oussoren
New submission from Ronald Oussoren ronaldousso...@mac.com: The package Lib/pydoc_data is not installed by Makefile.pre.in. Because of this pydoc if won't work. The attached patch fixes this issue. I've applied this patch to the trunk (r72787) and py3k (r72788), and filed this issue because

[issue4554] Missing make altframeworkinstall for Mac OS X

2009-05-19 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Closing as won't fix because you can use make altinstall. -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4554

[issue6064] Add daemon argument to threading.Thread constructor

2009-05-19 Thread Miki Tebeka
New submission from Miki Tebeka miki.teb...@gmail.com: It would be nice if threading.Thread constructor will have a daemon argument as well. This way we'll be able to write Thread(target=some_function, daemon=1).start() Instead of currently writing t = Thread(target=some_function)

[issue5269] OS X Installer: add options to specify universal build type and deployment target

2009-05-19 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Closing this issue because it was fixed a while back. The bsddb test failure I rever to in my previous message turned out to be a non-issue: these tests just take a very long time to finish. -- status: open - closed

[issue5272] OS X installer: fix makefile target changed for 3.x

2009-05-19 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: make fullinstall is wrong, this will install a python executable as well as the proper python3 and python3.1 executables. I'll do a build of the 3.1 installer ASAP and fix any issues with that. -- nosy: +ronaldoussoren

[issue3791] bsddb not completely removed

2009-05-19 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: The mac issue mentioned by karlcow is not relevant for this discussion and refers to the system install of Python. The python.org maintainers cannot influence the behaviour of that installation, especially not w.r.t. the installation

[issue5769] OS X Installer: new make of documentation installs at wrong location

2009-05-19 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: I've recently fixed this for 3.1, and fixed this for 2.x a while back. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5769

[issue892707] debuggable/profileable Python framework

2009-05-19 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: This might be useful for profiling. Debugging information is already present in the default build of the framework. A seperate binary for --with-pydebug won't be possible as AFAIK --with- pydebug changes the ABI and hence having both in

[issue6064] Add daemon argument to threading.Thread constructor

2009-05-19 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: +1 -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6064 ___

[issue6064] Add daemon argument to threading.Thread constructor

2009-05-19 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6064 ___ ___

[issue4834] Trouble configuring with icc on Mac OS X 10.5

2009-05-19 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Skip could you please answer the questions in msg83149? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4834 ___

[issue6003] ZipFile.writestr compression_type argument

2009-05-19 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Argh... The patch includes an update to configure.in, please ignore that bit. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6003

[issue6065] bdist_msi.py failed assert when including extension modules

2009-05-19 Thread Tim Golden
Index: bdist_msi.py === --- bdist_msi.py(revision 72507) +++ bdist_msi.py(working copy) @@ -141,6 +141,8 @@ bdist_base = self.get_finalized_command('bdist').bdist_base self.bdist_dir =

[issue5942] Ambiguity in dbm.open flag documentation

2009-05-19 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: It was my mistake -- anydbm is called dbm in py3k. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5942 ___

[issue6063] pydoc_data package is not installed

2009-05-19 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks for fixing! There's no need to backport; the pydoc_data package is new in 2.7/3.1. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue5982] classmethod, staticmethod: expose wrapped function

2009-05-19 Thread George Sakkis
George Sakkis george.sak...@gmail.com added the comment: I don't remember the exact use case but it had to do with making a decorator robust enough to work for different kinds of callables (and a few common non-callables such as classmethod/staticmethod). It's not a show stopper by any means but

[issue858809] Use directories from configure rather than hardcoded

2009-05-19 Thread Daniel Diniz
Changes by Daniel Diniz aja...@gmail.com: -- assignee: - tarek components: +Distutils nosy: +tarek stage: - needs patch type: - behavior versions: +Python 3.1 -Python 2.5, Python 2.7, Python 3.0 ___ Python tracker rep...@bugs.python.org

[issue5982] classmethod, staticmethod: expose wrapped function

2009-05-19 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: I am all for exposing the __func__ directly but don't immediately see how to do it. -- assignee: rhettinger - ___ Python tracker rep...@bugs.python.org

[issue2690] Precompute range length

2009-05-19 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- assignee: rhettinger - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2690 ___

[issue5337] Scanner class in re module undocumented

2009-05-19 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Looking back at the original thread, good reasons were expresses for not documenting this code but just leaving it in as an example. -- dependencies: -Regexp 2.7 (modifications to current re 2.2.2) resolution: -

[issue6066] POP_MARK was not in pickle protocol 0

2009-05-19 Thread Collin Winter
New submission from Collin Winter coll...@gmail.com: Lib/pickletools.py incorrectly thinks POP_MARK was part of protocol 0; POP_MARK was only added with the introduction of protocol 1 in r7753. This mistake led me down a dead end while fixing another pickling issue. Alexandre, can you

[issue6066] POP_MARK was not in pickle protocol 0

2009-05-19 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: SHORT_BINBYTES needs to be corrected as well; pickletools lists it as part of protocol 0 instead of protocol 3. I doubt backporting this patch to 2.6 will cause any trouble. So, you can go forward with this. --