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

2009-05-19 Thread Antoine Pitrou

Antoine Pitrou  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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3585] pkg-config support

2009-05-19 Thread sol

sol  added the comment:

I totally agree.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2009-05-19 Thread Antoine Pitrou

Antoine Pitrou  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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2009-05-19 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
resolution: fixed -> 
stage:  -> patch review
versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1 -Python 2.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2009-05-19 Thread Thomas Reiter

Thomas Reiter  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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3585] pkg-config support

2009-05-19 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Patch looks good here.

--
nosy: +pitrou

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6058] Add cp65001 to encodings/aliases.py

2009-05-19 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +lemburg, loewis

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2009-05-19 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +amaury.forgeotdarc

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2009-05-19 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6042] Document and slightly simplify lnotab tracing

2009-05-19 Thread Antoine Pitrou

Antoine Pitrou  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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2009-05-19 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc  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)
+++ Lib/encodings/aliases.py(working copy)
@@ -511,6 +511,7 @@
 'utf8'   : 'utf_8',
 'utf8_ucs2'  : 'utf_8',
 'utf8_ucs4'  : 'utf_8',
+'cp65001': 'utf_8',

 ## uu_codec codec
 #'uu' : 'uu_codec',

This is not enough unfortunately, because the win32 API function
WriteFile() returns the number of characters written, not the number of
(utf8) bytes:

>>> print("\u0124\u0102" + 'abc')
ĤĂabc
c
[44420 refs]
>>>

Additionally, there is a bug in the ReadFile, which returns an empty
string (and no error) when a non-ascii character is entered, which is
the behavior of an EOF condition...

Maybe the solution is to use the win32 console API directly...

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6056] socket.setdefaulttimeout affecting multiprocessing Manager

2009-05-19 Thread Jesse Noller

Jesse Noller  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 time to get to this.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2009-05-19 Thread Tristam MacDonald

Changes by Tristam MacDonald :


--
nosy: +swiftcoder

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2009-05-19 Thread Tristam MacDonald

Tristam MacDonald  added the comment:

Is there any sign of a patch or workaround for this issue?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1309352] Make fcntl work properly on AMD64

2009-05-19 Thread Antoine Pitrou

Antoine Pitrou  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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1309352] Make fcntl work properly on AMD64

2009-05-19 Thread R. David Murray

R. David Murray  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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2009-05-19 Thread R. David Murray

R. David Murray  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 possible to _extend_ the definition of PYTHONHOME to have
additional elements, one of which would be libdir.  It seems to me that
this would be backward compatible.  This possibility, and/or other
solutions, would be more appropriately discussed on python-ideas.  And
then of course someone would have to develop a patch to implement
whatever scheme wins consensus (assuming the consensus is that this is a
problem worth solving).

--
nosy: +r.david.murray
priority:  -> normal
versions: +Python 2.7, Python 3.2 -Python 2.5, Python 2.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2009-05-19 Thread R. David Murray

R. David Murray  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?  Maybe that makes a difference.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6063] pydoc_data package is not installed

2009-05-19 Thread Ronald Oussoren

New submission from Ronald Oussoren :

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 I'm not 
100% sure if this should be backported to 2.6 (because this fix causes 
additional python modules to be made available).

(Assigned to Georg Brandl because he committed the last changes to 
pydoc_data, and is the documentation guru)

--
assignee: georg.brandl
files: pydoc_data.patch
keywords: 26backport, patch
messages: 88086
nosy: georg.brandl, ronaldoussoren
severity: normal
status: open
title: pydoc_data package is not installed
versions: Python 2.6, Python 2.7, Python 3.1
Added file: http://bugs.python.org/file14017/pydoc_data.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4554] Missing make altframeworkinstall for Mac OS X

2009-05-19 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

Closing as won't fix because you can use "make altinstall".

--
resolution:  -> wont fix
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6064] Add "daemon" argument to threading.Thread constructor

2009-05-19 Thread Miki Tebeka

New submission from Miki Tebeka :

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)
t.daemon = True
t.start()

--
components: Library (Lib)
messages: 88088
nosy: tebeka
severity: normal
status: open
title: Add "daemon" argument to threading.Thread constructor
type: feature request
versions: Python 2.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2009-05-19 Thread Ronald Oussoren

Ronald Oussoren  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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2009-05-19 Thread Ronald Oussoren

Ronald Oussoren  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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3791] bsddb not completely removed

2009-05-19 Thread Ronald Oussoren

Ronald Oussoren  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 of optional extras 
like bsddb.

BTW. Can this issue be closed? 

BTW2. Switching "components" from Macintosh to "Installation" because 
this is not related to the macos port.

--
components: +Installation -Macintosh
nosy: +ronaldoussoren

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2009-05-19 Thread Ronald Oussoren

Ronald Oussoren  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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue892707] debuggable/profileable Python framework

2009-05-19 Thread Ronald Oussoren

Ronald Oussoren  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 the same framework will 
cause problems for extensions.

I'm not planning to work on this, but would be willing to review a patch.

--
nosy: +ronaldoussoren

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6064] Add "daemon" argument to threading.Thread constructor

2009-05-19 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

+1

--
nosy: +rhettinger

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6064] Add "daemon" argument to threading.Thread constructor

2009-05-19 Thread Raymond Hettinger

Changes by Raymond Hettinger :


--
versions: +Python 3.2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2009-05-19 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

Skip could you please answer the questions in msg83149?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6003] ZipFile.writestr "compression_type" argument

2009-05-19 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

The attached patch implements my proposal, including documentation and 
tests. I'm not 100% happy about the tests, they may be a bit too minimal.

--
keywords: +patch
Added file: http://bugs.python.org/file14018/zipfile_writestr.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6003] ZipFile.writestr "compression_type" argument

2009-05-19 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

Argh... The patch includes an update to configure.in, please ignore that 
bit.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 = os.path.join(bdist_base, 'msi')
 short_version = get_python_version()
+if (not self.target_version) and self.distribution.has_ext_modules():
+  self.target_version = short_version
 if self.target_version:
 self.versions = [self.target_version]
 if not self.skip_build and self.distribution.has_ext_modules()\
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 = os.path.join(bdist_base, 'msi')
 short_version = get_python_version()
+if (not self.target_version) and self.distribution.has_ext_modules():
+  self.target_version = short_version
 if self.target_version:
 self.versions = [self.target_version]
 if not self.skip_build and self.distribution.has_ext_modules()\
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5942] Ambiguity in dbm.open flag documentation

2009-05-19 Thread Georg Brandl

Georg Brandl  added the comment:

It was my mistake -- anydbm is called dbm in py3k.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6063] pydoc_data package is not installed

2009-05-19 Thread Georg Brandl

Georg Brandl  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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5982] classmethod, staticmethod: expose wrapped function

2009-05-19 Thread George Sakkis

George Sakkis  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 I thought it would be easy (if not
trivial) to implement, and regardless of actual use cases I don't see a
reason to keep the function "hidden".

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue858809] Use directories from configure rather than hardcoded

2009-05-19 Thread Daniel Diniz

Changes by Daniel Diniz :


--
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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5982] classmethod, staticmethod: expose wrapped function

2009-05-19 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

I am all for exposing the __func__ directly but don't immediately see
how to do it.

--
assignee: rhettinger -> 

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2690] Precompute range length

2009-05-19 Thread Raymond Hettinger

Changes by Raymond Hettinger :


--
assignee: rhettinger -> 

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5337] Scanner class in re module undocumented

2009-05-19 Thread Raymond Hettinger

Raymond Hettinger  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:  -> rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6066] POP_MARK was not in pickle protocol 0

2009-05-19 Thread Collin Winter

New submission from Collin Winter :

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 double-check me on this? Feel free to bounce this
back if you don't have time.

I'll port this to py3k. I'm leaning toward a backport to 2.6; any
thoughts on that?

--
components: Library (Lib)
files: pickletools.patch
keywords: easy, patch
messages: 88105
nosy: alexandre.vassalotti, collinwinter
priority: low
severity: normal
stage: patch review
status: open
title: POP_MARK was not in pickle protocol 0
type: behavior
versions: Python 2.7, Python 3.1
Added file: http://bugs.python.org/file14020/pickletools.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6066] POP_MARK was not in pickle protocol 0

2009-05-19 Thread Alexandre Vassalotti

Alexandre Vassalotti  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.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com