[issue5831] Doc mistake : threading.Timer is *not* a class

2009-04-25 Thread Eric Devolder

Changes by Eric Devolder :


--
nosy: +keldonin

___
Python tracker 

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



[issue5835] Deprecate PyOS_ascii_formatd

2009-04-25 Thread Eric Smith

New submission from Eric Smith :

PyOS_ascii_formatd is no longer needed, now that we have
PyOS_double_to_string. PyOS_ascii_formatd has a horrible interface,
requiring a format string to be composed and then parsed. The format
string is a very limited printf-like format string.

In 2.7 and 3.1 I'm going to deprecate this function. As a temporary
measure I'm going to create a similar function _PyOS_ascii_formatd (with
a leading underscore) that does not raise a DeprecationWarning and that
takes discrete parameters.

In 2.8 (if it exists) and 3.2 I'll remove PyOS_ascii_formatd.

--
assignee: eric.smith
components: Interpreter Core
messages: 86446
nosy: eric.smith, marketdickinson
priority: release blocker
severity: normal
status: open
title: Deprecate PyOS_ascii_formatd
type: behavior
versions: Python 2.7, Python 3.1

___
Python tracker 

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



[issue4951] failure in test_httpservers

2009-04-25 Thread Walter Dörwald

Walter Dörwald  added the comment:

There's an EnvironmentVarGuard context manager in support.py that IMHO
should be used for recording changes to the environment variables. Or a
new context manager that does what your patch does could be put into
support.py. There might be other tests that benefit from that.

--
nosy: +doerwalter

___
Python tracker 

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



[issue1729742] Document effects of PY_SSIZE_T_CLEAN on argument parsing

2009-04-25 Thread Jeroen Ruigrok van der Werven

Jeroen Ruigrok van der Werven  added the comment:

This seems to be present in c-api/arg.rst in trunk already.
Candidate for closure after verifying it's been merged appropriately?

--
nosy: +asmodai

___
Python tracker 

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



[issue5828] Invalid behavior of unicode.lower

2009-04-25 Thread Walter Dörwald

Walter Dörwald  added the comment:

Here is a third version of the patch. AFAICT the logic of the unicode
database is as follows:

* If the NODELTA_MASK is not set, delta is an offset.
* If NODELTA_MASK is set and delta is != 0, delta is the
upper/lower/title case character.
* If NODELTA_MASK is set and delta is == 0, there is no
upper/lower/title case variant (i.e. the method returns the original
character.

Is this the correct interpretation?

I've also updated the testsuite (changed the checksum and added a new test).

(BTW, the patch is against the py3k branch).

--
Added file: http://bugs.python.org/file13762/diff3.txt

___
Python tracker 

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



[issue4951] failure in test_httpservers

2009-04-25 Thread Walter Dörwald

Walter Dörwald  added the comment:

Hmm, EnvironmentVarGuard seems to be broken:

import os
from test import support

with support.EnvironmentVarGuard() as env:
   env.unset("HOME")
   env.set("HOME", "bar")

print(os.environ.get("HOME"))

I would have expected that to print the original HOME variable. I'm
going to open a new bug report for that.

--

___
Python tracker 

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



[issue4951] failure in test_httpservers

2009-04-25 Thread Mark Dickinson

Mark Dickinson  added the comment:

EnvironmentVarGuard certainly looks like a good thing to use here, 
provided that it works...

--

___
Python tracker 

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



[issue5836] Clean up float parsing code for nans and infs

2009-04-25 Thread Mark Dickinson

New submission from Mark Dickinson :

The special-case code that parses infs and nans should be moved from
Objects/floatobject.c to Python/pystrtod.c, so that it's available
for other places that want to parse nans and infs.

The fallback version of PyOS_ascii_strtod needs to recognize nans and 
infinities in a platform-independent manner.

--
assignee: marketdickinson
components: Interpreter Core
messages: 86464
nosy: eric.smith, marketdickinson
priority: normal
severity: normal
status: open
title: Clean up float parsing code for nans and infs
versions: Python 2.7, Python 3.1

___
Python tracker 

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



[issue5837] support.EnvironmentVarGuard broken

2009-04-25 Thread Walter Dörwald

New submission from Walter Dörwald :

support.EnvironmentVarGuard seems to be broken:

import os
from test import support

print(os.environ.get("HOME"))

with support.EnvironmentVarGuard() as env:
   env.unset("HOME")
   env.set("HOME", "foo")

print(os.environ.get("HOME"))

The output I get is:
   /Users/walter
   None

However I would have expected:
   /Users/walter
   /Users/walter

One solution would be to simply copy the exiting environment dictionary
in __enter__(), which would have the added advantage that code in the
with block could manipulate os.environ directly without going through
the EnvironmentGuardVariable.

--
components: Tests
keywords: easy
messages: 86465
nosy: doerwalter
priority: low
severity: normal
stage: needs patch
status: open
title: support.EnvironmentVarGuard broken
type: behavior
versions: Python 3.0

___
Python tracker 

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



[issue5837] support.EnvironmentVarGuard broken

2009-04-25 Thread Walter Dörwald

Walter Dörwald  added the comment:

Here's a patch that changes EnvironmentVarGuard to make a copy of
os.environ at the start. The set and unset methods are useless now, but
I left them in for backwards compatibility. Should they be removed?

--
Added file: http://bugs.python.org/file13763/diff.txt

___
Python tracker 

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



[issue5837] support.EnvironmentVarGuard broken

2009-04-25 Thread Mark Dickinson

Mark Dickinson  added the comment:

Is efficiency a concern here?  I'm just imagining an environment with 
thousands of variables, but only a few changes being made---the old 
(broken) code just resets the variables that have changed, while the 
patched version resets all of the variables.

--
nosy: +marketdickinson

___
Python tracker 

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



[issue5837] support.EnvironmentVarGuard broken

2009-04-25 Thread Mark Dickinson

Mark Dickinson  added the comment:

Could you maybe get away with a single dict "changed",
which would just record previous values (with None representing
a value that was previously unset)?

--

___
Python tracker 

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



[issue5837] support.EnvironmentVarGuard broken

2009-04-25 Thread Walter Dörwald

Walter Dörwald  added the comment:

That's exactly what I was thinking too. Here's the patch. Running the
test suite now.

--
Added file: http://bugs.python.org/file13764/diff2.txt

___
Python tracker 

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



[issue5837] support.EnvironmentVarGuard broken

2009-04-25 Thread Walter Dörwald

Walter Dörwald  added the comment:

If you want to restore only those environment variables that have change
you somehow have to record which *do* have changed, i.e. you'd have to
go through EnvironmentVarGuard again. I'm working on a patch that does that.

--

___
Python tracker 

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



[issue5837] support.EnvironmentVarGuard broken

2009-04-25 Thread Mark Dickinson

Mark Dickinson  added the comment:

Patch looks good to me, and (for py3k) all tests pass on my machine.

As far as I can tell, there's currently no test for EvironmentVarGuard 
itself, though it's tested indirectly by other tests.  It might be good to 
have some direct tests (including one for the broken behaviour you found).

--

___
Python tracker 

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



[issue5838] Test issue

2009-04-25 Thread Daniel Diniz

New submission from Daniel Diniz :

Seems like submitting is broken?

--
messages: 86472
nosy: ajaksu2
severity: normal
status: open
title: Test issue

___
Python tracker 

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



[issue5837] support.EnvironmentVarGuard broken

2009-04-25 Thread Mark Dickinson

Mark Dickinson  added the comment:

I take that back:  this patch appears to break test_importlib on
OS X 10.5.6 (py3k).  Not sure why.

--

___
Python tracker 

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



[issue5837] support.EnvironmentVarGuard broken

2009-04-25 Thread Walter Dörwald

Walter Dörwald  added the comment:

OK, I'll remove the clear method (which is a new feature) and then check
it in.

--

___
Python tracker 

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



[issue5838] Test issue

2009-04-25 Thread Daniel Diniz

Daniel Diniz  added the comment:

OK, no so broken then :)

--
status: open -> closed

___
Python tracker 

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



[issue5828] Invalid behavior of unicode.lower

2009-04-25 Thread Martin v. Löwis

Martin v. Löwis  added the comment:

I think the patch is incorrect; the bug is already in
makeunicodedata.py. For U+1d79, it should set the lowercase letter to
U+1d79.

If you look at makeunicodedata.py, you see that the entire logic is
bogus: when the column is absent, it should default it to the character
itself (except for titlecase, where it should default it to uppercase).
Then, if it finds that one of the characters can't be delta-encoded, it
should go back to changing the previous mappings as well.

I'm attaching an untested patch that should do that.

Also see issue4971, which is related.

--
keywords: +patch
Added file: http://bugs.python.org/file13765/mud.diff

___
Python tracker 

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



[issue1729742] Document effects of PY_SSIZE_T_CLEAN on argument parsing

2009-04-25 Thread Martin v. Löwis

Martin v. Löwis  added the comment:

Closing as suggested

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



[issue5838] Test issue

2009-04-25 Thread Mark Dickinson

Mark Dickinson  added the comment:

Does submitting still work if you select some components?

--
nosy: +marketdickinson

___
Python tracker 

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



[issue5837] support.EnvironmentVarGuard broken

2009-04-25 Thread Mark Dickinson

Mark Dickinson  added the comment:

It looks like the unset method should check whether the variable
is set before trying to unset it.

Perhaps this also needs to happen in the __exit__ method?

--

___
Python tracker 

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



[issue5837] support.EnvironmentVarGuard broken

2009-04-25 Thread Walter Dörwald

Walter Dörwald  added the comment:

This might have something to do with the _keymap hook.

--

___
Python tracker 

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



[issue5837] support.EnvironmentVarGuard broken

2009-04-25 Thread Walter Dörwald

Walter Dörwald  added the comment:

You're right checking both in unset() and __exit__() fixes the importlib
failures. I'll check in the fix.

--

___
Python tracker 

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



[issue4385] Py_Object_HEAD_INIT in Py3k

2009-04-25 Thread Jeroen Ruigrok van der Werven

Jeroen Ruigrok van der Werven  added the comment:

I added initial documentation for both PyObject_HEAD_INIT and
PyVarObject_HEAD_INIT in r71874.

The text currently reads:

PyObject_HEAD_INIT(type)¶

This is a macro which expands to initialization values for a new
PyObject type. This macro expands to:

_PyObject_EXTRA_INIT
1, type,

PyVarObject_HEAD_INIT(type, size)¶

This is a macro which expands to initialization values for a new
PyVarObject type, including the ob_size field. This macro expands to:

_PyObject_EXTRA_INIT
1, type, size,

Of course my internals knowledge is little compared to you guys, so any
feedback to improve this is appreciated.

--
nosy: +asmodai

___
Python tracker 

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



[issue4985] Idle hangs when given a nonexistent filename.

2009-04-25 Thread Guilherme Polo

Guilherme Polo  added the comment:

Ah, retried this bug a bit more and found out that to hang you have to
run idle with the -e option and a non-existing filename.

Anyway, this was all introduced by r57998.

--

___
Python tracker 

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



[issue2127] sqlite3 docs should mention utf8 requirement

2009-04-25 Thread Jeroen Ruigrok van der Werven

Jeroen Ruigrok van der Werven  added the comment:

What do we want to do with this one, because it is now seems out of
scope for documentation given the changes Gerhard implemented.

--
nosy: +asmodai

___
Python tracker 

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



[issue4985] Idle hangs when given a nonexistent filename.

2009-04-25 Thread Guilherme Polo

Changes by Guilherme Polo :


--
nosy: +kbk

___
Python tracker 

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



[issue1095821] The doc for DictProxy is missing

2009-04-25 Thread Jeroen Ruigrok van der Werven

Jeroen Ruigrok van der Werven  added the comment:

Currently in trunk the types implementation only defines:

DictProxyType = type(TypeType.__dict__)

This is also documented in library/types.rst as:

types.DictProxyType
The type of dict proxies, such as TypeType.__dict__.

It's the only definition that I could find that comes close to DictProxy.
Does this address the issue?

--
nosy: +asmodai

___
Python tracker 

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



[issue1379804] HP-UX thread stack size needs to be increased

2009-04-25 Thread Jeroen Ruigrok van der Werven

Jeroen Ruigrok van der Werven  added the comment:

There has been no patch forthcoming in 3-4 years. Should the possibility
of a stack size increase for HP-UX be documented somewhere in the
installation/build documentation so that this issue can finally be
closed or do we want to fix configure for this?

--
nosy: +asmodai

___
Python tracker 

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



[issue2572] 3.0 pickle docs -- what about old-style classes?

2009-04-25 Thread Jeroen Ruigrok van der Werven

Jeroen Ruigrok van der Werven  added the comment:

We want to document that old-style classes get converted into new-style
classes and that in general this goes without problems, except for some
corner cases such as containing a __slots__ directive? Or did I miss
anything else?

--
nosy: +asmodai

___
Python tracker 

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



[issue4951] failure in test_httpservers

2009-04-25 Thread Tarek Ziadé

Tarek Ziadé  added the comment:

Applied in r71878 and r71879. Thanks

EnvironmentVarGuard is definitely the way to go, I'll use it.

--
status: open -> closed

___
Python tracker 

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



[issue4239] Email example should use SMTP.quit() rather than SMTP.close()

2009-04-25 Thread Jeroen Ruigrok van der Werven

Jeroen Ruigrok van der Werven  added the comment:

Thanks, committed in r71882.

Georg, I guess this needs to be backported to 2.6 at least and we need
to check what 3.x has.

--
nosy: +asmodai

___
Python tracker 

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



[issue5839] RegOpenKeyEx key failed on Vista 64Bit with return 2

2009-04-25 Thread Makursi

New submission from Makursi :

I have installed 2.6.2 source(32bit) on Vista 64 bit. 
The function RegOpenKeyEx fails with returns "2". 
If I change the function to  
rc=RegOpenKeyEx(keyBase,
keyBuf, /* subkey */
0, /* reserved */
KEY_READ | KEY_WOW64_64KEY,
&newKey);
it works fine. I have checked this in the debug build with my 32 bit 
C++ application. UAC is not enabled on my machine.
I hope the issue is fixed with the next version of python.

Regards
Manfred

--
messages: 86497
nosy: makursi
severity: normal
status: open
title: RegOpenKeyEx key failed on Vista 64Bit with return 2
type: behavior
versions: Python 2.6

___
Python tracker 

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



[issue4239] Email example should use SMTP.quit() rather than SMTP.close()

2009-04-25 Thread Jeroen Ruigrok van der Werven

Changes by Jeroen Ruigrok van der Werven :


--
priority:  -> low
stage:  -> committed/rejected

___
Python tracker 

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



[issue5837] support.EnvironmentVarGuard broken

2009-04-25 Thread Walter Dörwald

Walter Dörwald  added the comment:

Checked in:
r71875 (trunk)
r71876 (release26-maint)
r71881 (py3k)
r71885 (release30-maint)

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



[issue4385] Py_Object_HEAD_INIT in Py3k

2009-04-25 Thread Jeroen Ruigrok van der Werven

Jeroen Ruigrok van der Werven  added the comment:

Just to make it clear: I committed this to trunk, since it is relevant
to that as well. We can always move the documentation over with minor
tweaks.

--
stage: needs patch -> commit review

___
Python tracker 

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



[issue4013] Python 2.6 Doc/tools folder bigger than in 2.6rc2

2009-04-25 Thread Jeroen Ruigrok van der Werven

Jeroen Ruigrok van der Werven  added the comment:

I am not entirely sure, but I think part of the reason was that if the
documentation needed to be built, it would need the snapshot at that
time. Georg? Was it intentional?

I consider this a low priority issue, but needs to be looked at whether
or not it was an oversight or not.

--
nosy: +asmodai
priority:  -> low

___
Python tracker 

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



[issue5840] "Thread State and the Global Interpreter Lock" section of the docs doesn't cover TLS APIs

2009-04-25 Thread Jean-Paul Calderone

New submission from Jean-Paul Calderone :

Python includes several APIs for manipulating TLS:

  PyAPI_FUNC(int) PyThread_create_key(void);
  PyAPI_FUNC(void) PyThread_delete_key(int);
  PyAPI_FUNC(int) PyThread_set_key_value(int, void *);
  PyAPI_FUNC(void *) PyThread_get_key_value(int);
  PyAPI_FUNC(void) PyThread_delete_key_value(int key);

These are not covered in the threading documentation, though.  In fact,
the threading documentation goes so far as to claim that they /don't/ exist:

While most thread packages have a way to store “per-thread global
data,” Python’s internal platform independent thread abstraction doesn’t
support this yet.

It would be great to have these APIs covered in the documentation.  One
subtlety in particular tripped me up and took a long time to track down
by reading various parts of the CPython source - when a thread exits,
its TLS values are not destroyed or reclaimed in any way.  On top of
this, the keys used by the TLS APIs are thread IDs, and thread IDs can
be re-used.  This means that a newer thread can see values from an older
thread in TLS, which was extremely surprising to me, led to a very
obscure threading bug.

--
assignee: georg.brandl
components: Documentation
messages: 86501
nosy: exarkun, georg.brandl
severity: normal
status: open
title: "Thread State and the Global Interpreter Lock" section of the docs 
doesn't cover TLS APIs
type: feature request

___
Python tracker 

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



[issue5810] test_distutils fails - sysconfig._config_vars is None

2009-04-25 Thread Tarek Ziadé

Tarek Ziadé  added the comment:

Applied in r71884 (r71887) and r71886 (r71889) nevertheless

--
status: open -> closed

___
Python tracker 

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



[issue1685] linecache .updatecache fails on utf8 encoded files

2009-04-25 Thread Daniel Diniz

Daniel Diniz  added the comment:

Cannot confirm with py3k on Linux, attaching the file I tested against.

I'll try to come up with a rough test_linecache to help fixing a couple
of issues :)

--
nosy: +ajaksu2
Added file: http://bugs.python.org/file13766/line.py

___
Python tracker 

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



[issue5840] "Thread State and the Global Interpreter Lock" section of the docs doesn't cover TLS APIs

2009-04-25 Thread Jeroen Ruigrok van der Werven

Jeroen Ruigrok van der Werven  added the comment:

This is at least relevant to 2.7, reflect this in the issue.

Patch to remove the notion we don't support TLS yet.

We will need to see where to add the current functions in the overall
scheme of threading documentation.

--
keywords: +patch
nosy: +asmodai
stage:  -> needs patch
versions: +Python 2.7
Added file: http://bugs.python.org/file13767/init.rst.diff

___
Python tracker 

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



[issue5829] float('1e500') -> inf, complex('1e500') -> ValueError

2009-04-25 Thread Mark Dickinson

Mark Dickinson  added the comment:

complex('1e-500') bug fixed in r71891 (2.6) and r71892 (3.0).
It's already gone in trunk and py3k.

What's left is deciding whether the OverflowError that 2.7 and 3.1 
currently produce should disappear in favour of producing infinities 
instead.

--

___
Python tracker 

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



[issue5828] Invalid behavior of unicode.lower

2009-04-25 Thread Walter Dörwald

Walter Dörwald  added the comment:

I've merged your version of the patch with my changes to the test suite
and regenerated the Unicode database. Attached is the resulting patch
(diff4.txt)

--
Added file: http://bugs.python.org/file13768/diff4.txt

___
Python tracker 

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



[issue5828] Invalid behavior of unicode.lower

2009-04-25 Thread Martin v. Löwis

Martin v. Löwis  added the comment:

Feel free to check it into trunk, and merge into the other three
branches from there. If you don't want to do that, assign it back to me.

--
assignee: loewis -> doerwalter

___
Python tracker 

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



[issue5841] add py3k warnings to commands

2009-04-25 Thread DSM

New submission from DSM :

The commands module is absent in 3.0 but isn't py3k-warned in trunk. 
getstatus was deprecated and mkarg/mk2arg were py3k deprecated, but not
the module or getoutput and getstatusoutput, which now live in
subprocess in 3.x.

This patch adds a module-level py3k warning with subprocess
recommendation, removes the function-level py3k warnings, and adds
deprecation tag to commands.rst.

Made this a new issue rather than adding to 2775 (the PEP3108
implementation issue) because its nosy list is pretty long and this is
pretty minor..

--
components: Library (Lib)
files: commands_py3k_warn.patch
keywords: patch
messages: 86508
nosy: dsm001
severity: normal
status: open
title: add py3k warnings to commands
versions: Python 2.7
Added file: http://bugs.python.org/file13769/commands_py3k_warn.patch

___
Python tracker 

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



[issue5740] multiprocessing.connection.Client API documentation incorrect

2009-04-25 Thread DSM

DSM  added the comment:

Patch against r71872 added to change "*authentication*" ->
"*authenticate*" for both Client and Listener (which had the same typo.)

--
keywords: +patch
nosy: +dsm001
Added file: http://bugs.python.org/file13770/authenticate_typo.patch

___
Python tracker 

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



[issue3320] various doc typos

2009-04-25 Thread DSM

DSM  added the comment:

One-character-delta patch to fix the "propogate" typo attached.

--
Added file: http://bugs.python.org/file13771/fix_mpdist_logger_typo.patch

___
Python tracker 

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



[issue5828] Invalid behavior of unicode.lower

2009-04-25 Thread Walter Dörwald

Walter Dörwald  added the comment:

Checked in:
r71894 (trunk)
r71895 (release26-maint)

--

___
Python tracker 

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



[issue5828] Invalid behavior of unicode.lower

2009-04-25 Thread Walter Dörwald

Walter Dörwald  added the comment:

Checked in:
r71896 (py3k)
r71897 (release30-maint)

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



[issue5828] Invalid behavior of unicode.lower

2009-04-25 Thread Walter Dörwald

Walter Dörwald  added the comment:

BTW, are the steps to regenerate the Unicode database documented
somewhere? What I did was:

cp /Volumes/ftp.unicode.org/Public/5.1.0/ucd/UnicodeData.txt .
cp /Volumes/ftp.unicode.org/Public/5.1.0/ucd/CompositionExclusions.txt .
cp /Volumes/ftp.unicode.org/Public/5.1.0/ucd/EastAsianWidth.txt .
cp /Volumes/ftp.unicode.org/Public/5.1.0/ucd/DerivedCoreProperties.txt .
cp /Volumes/ftp.unicode.org/Public/3.2-Update/ucd/UnicodeData-3.2.0.txt .
cp /Volumes/ftp.unicode.org/Public/3.2-Update/UnicodeData-3.2.0.txt .
cp
/Volumes/ftp.unicode.org/Public/3.2-Update/CompositionExclusions-3.2.0.txt .
cp /Volumes/ftp.unicode.org/Public/3.2-Update/EastAsianWidth-3.2.0.txt .
cp
/Volumes/ftp.unicode.org/Public/3.2-Update/DerivedCoreProperties-3.2.0.txt .
./python.exe Tools/unicode/makeunicodedata.py

--

___
Python tracker 

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



[issue5828] Invalid behavior of unicode.lower

2009-04-25 Thread Walter Dörwald

Changes by Walter Dörwald :


--
assignee: doerwalter -> loewis

___
Python tracker 

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



[issue5828] Invalid behavior of unicode.lower

2009-04-25 Thread Martin v. Löwis

Martin v. Löwis  added the comment:

> BTW, are the steps to regenerate the Unicode database documented
> somewhere? 

I don't think so - your procedure looks right, though.

Regenerating the database is often more difficult, though, in particular
when we upgrade to a new version. Often, the new version will add new
complications which have to be dealt with, so a deep understanding of
makeunicodata.py is often needed to be able to use it. Welcome to the
club :-)

--

___
Python tracker 

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



[issue3320] various doc typos

2009-04-25 Thread Georg Brandl

Georg Brandl  added the comment:

Committed in r71901.

--

___
Python tracker 

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



[issue5834] The word "error" used instead of "failure"

2009-04-25 Thread Georg Brandl

Georg Brandl  added the comment:

Thanks, fixed in r71902.

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



[issue4013] Python 2.6 Doc/tools folder bigger than in 2.6rc2

2009-04-25 Thread Georg Brandl

Georg Brandl  added the comment:

The distribution of these directories wasn't intentional, and they're
not distributed any more in e.g. 2.6.2, so this is already fixed.

--
resolution:  -> out of date
status: open -> closed

___
Python tracker 

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



[issue5840] "Thread State and the Global Interpreter Lock" section of the docs doesn't cover TLS APIs

2009-04-25 Thread Georg Brandl

Georg Brandl  added the comment:

Looks good.

--

___
Python tracker 

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



[issue4385] Py_Object_HEAD_INIT in Py3k

2009-04-25 Thread Georg Brandl

Georg Brandl  added the comment:

Isn't listing the expansion literally a bit fragile?

--

___
Python tracker 

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



[issue4239] Email example should use SMTP.quit() rather than SMTP.close()

2009-04-25 Thread Georg Brandl

Georg Brandl  added the comment:

I'm guessing there is no difference in functionality in 2.6 or 3.x.

--

___
Python tracker 

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



[issue2572] 3.0 pickle docs -- what about old-style classes?

2009-04-25 Thread Georg Brandl

Georg Brandl  added the comment:

Sounds like this is the best that we without intimate pickle knowledge
can do :)

--

___
Python tracker 

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



[issue4385] Py_Object_HEAD_INIT in Py3k

2009-04-25 Thread Jeroen Ruigrok van der Werven

Jeroen Ruigrok van der Werven  added the comment:

Mmm, depends on the case, I guess. The current implementation of the
macros is hardcoded for the most part. Where it is variable I left the
arguments in.

I was following the example from the other macros and I guess that since
this is the typical object initialization call it would make sense to
show what the default fills in.

I welcome opinions on this.

--

___
Python tracker 

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



[issue2127] sqlite3 docs should mention utf8 requirement

2009-04-25 Thread Georg Brandl

Georg Brandl  added the comment:

Looks like that's the case.

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



[issue4129] C/API documentation: request for documentation of change to Py_ssize_t* arguments.

2009-04-25 Thread Jeroen Ruigrok van der Werven

Jeroen Ruigrok van der Werven  added the comment:

How does this look as an initial idea?

--
keywords: +patch
nosy: +asmodai
Added file: http://bugs.python.org/file13772/py_ssize_t-note.diff

___
Python tracker 

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



[issue5821] Documentation: mention 'close' and iteration for tarfile.TarFile.extractfile()

2009-04-25 Thread Georg Brandl

Georg Brandl  added the comment:

Thanks, applied in r71903.

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



[issue3672] Ill-formed surrogates not treated as errors during encoding/decoding

2009-04-25 Thread Jakub Wilk

Changes by Jakub Wilk :


--
nosy: +jwilk

___
Python tracker 

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



[issue4129] C/API documentation: request for documentation of change to Py_ssize_t* arguments.

2009-04-25 Thread Georg Brandl

Georg Brandl  added the comment:

Why not use .. versionchanged?

--

___
Python tracker 

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



[issue3297] Python interpreter uses Unicode surrogate pairs only before the pyc is created

2009-04-25 Thread Jakub Wilk

Changes by Jakub Wilk :


--
nosy: +jwilk

___
Python tracker 

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



[issue5841] add py3k warnings to commands

2009-04-25 Thread Georg Brandl

Georg Brandl  added the comment:

Thanks, committed in r71904.

--
nosy: +georg.brandl
resolution:  -> accepted
status: open -> closed

___
Python tracker 

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



[issue4129] C/API documentation: request for documentation of change to Py_ssize_t* arguments.

2009-04-25 Thread Jeroen Ruigrok van der Werven

Changes by Jeroen Ruigrok van der Werven :


Removed file: http://bugs.python.org/file13772/py_ssize_t-note.diff

___
Python tracker 

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



[issue4129] C/API documentation: request for documentation of change to Py_ssize_t* arguments.

2009-04-25 Thread Jeroen Ruigrok van der Werven

Jeroen Ruigrok van der Werven  added the comment:

Pure ignore. Let me adjust the patch. Do we prefer versionchanged before
or after versionadded? I am guessing after versionadded so we get a
better chronological view. Although there's something to be said for a
reverse chronological view too.

--
Added file: http://bugs.python.org/file13773/py_ssize_t-note.diff

___
Python tracker 

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



[issue5798] test_asynchat fails on Mac OSX

2009-04-25 Thread Mark Dickinson

Mark Dickinson  added the comment:

I'm seeing this failure on 2.7, 3.0 and 3.1 as well.

--
nosy: +marketdickinson
priority:  -> high
versions: +Python 2.7, Python 3.0, Python 3.1

___
Python tracker 

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



[issue5078] Avoid redundant call to FormatError()

2009-04-25 Thread Thomas Heller

Thomas Heller  added the comment:

Fixed in trunk and py3k branch, svn revisions 71906 and 71907.
Thanks for the patch.

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



[issue5650] Obsolete RFC's should be removed from doc of urllib.urlparse

2009-04-25 Thread Éric Araujo

Éric Araujo  added the comment:

More precisely, RFC 1738 and 1808 are updated by RFC 2396, which is in
turn obsoleted by RFC 3986 (which obsoletes 1808 too but only updates
1738). Eliminating the obsoleted ones leaves us with two references,
RFC 1738 and RFC 3986. I’m going to remove all references to RFCs other
that these two (I understand from test_urlparse that urlparse actually
conforms to RFC 3986, that’s a good thing). I’m going to replace some
instances of “URL” with “URI” where appropriate (only in the
documentation, not in modules or functions names). 

Besides, all three links work for me.

--
nosy: +Merwok

___
Python tracker 

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



[issue4129] C/API documentation: request for documentation of change to Py_ssize_t* arguments.

2009-04-25 Thread Jeroen Ruigrok van der Werven

Jeroen Ruigrok van der Werven  added the comment:

Committed a first batch in r71910.

--

___
Python tracker 

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



[issue5783] IDLE cannot find windows chm file

2009-04-25 Thread Kurt B. Kaiser

Kurt B. Kaiser  added the comment:

OK, thanks, Martin.  I'll use 'pending' that way (close after a 
while if the bot hears nothing further).

Changing component to "IDLE'.
release26-maint: r71908, r71909

--

___
Python tracker 

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



[issue5783] IDLE cannot find windows chm file

2009-04-25 Thread Kurt B. Kaiser

Changes by Kurt B. Kaiser :


--
components: +IDLE -Build
keywords: +26backport

___
Python tracker 

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



[issue5783] IDLE cannot find windows chm file

2009-04-25 Thread Guilherme Polo

Guilherme Polo  added the comment:

Kurt, I'm not sure if you misunderstood Martin but there is no such
"closing bot" here (only if you consider people as bots :)

Anyway, are you porting these to py3k and release30-maint or can someone
else do it ?

--

___
Python tracker 

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



[issue4305] ctypes fails to build on mipsel-linux-gnu (detects mips instead of mipsel)

2009-04-25 Thread Thomas Heller

Thomas Heller  added the comment:

I wonder if fixes for issues like these (ctypes build errors on some
plaforms) could be verified by using cross compilers on linux?

--

___
Python tracker 

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



[issue4129] C/API documentation: request for documentation of change to Py_ssize_t* arguments.

2009-04-25 Thread Jeroen Ruigrok van der Werven

Jeroen Ruigrok van der Werven  added the comment:

Fixed the slice stuff in r71915.

--

___
Python tracker 

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



[issue5842] Move test outside of urlparse module

2009-04-25 Thread Éric Araujo

New submission from Éric Araujo :

urlparse contains a small self-test. I think it should be integrated
into test_urlparse or removed, for easier maintenance.

--
components: Library (Lib), Tests
messages: 86537
nosy: Merwok
severity: normal
status: open
title: Move test outside of urlparse module
versions: Python 2.7, Python 3.1

___
Python tracker 

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



[issue5843] Possible normalization error in urlparse.urlunparse

2009-04-25 Thread Éric Araujo

New submission from Éric Araujo :

Docstring for urlunparse says:
"""Put a parsed URI back together again.  This may result in a
slightly different, but equivalent URI, if the URI that was parsed
originally had redundant delimiters, e.g. a ? with an empty query
(the draft states that these are equivalent)."""

“Draft” here refers to RFC 1808, superseded by 3986. However, RFC 3986
(section 6.2.3) states:
“Normalization should not remove delimiters when their associated
component is empty unless licensed to do so by the scheme  
specification.  For example, the URI "http://example.com/?"; cannot be  
 assumed to be equivalent to any of the examples above.  Likewise, the 
  presence or absence of delimiters within a userinfo subcomponent is  
 usually significant to its interpretation.  The fragment component is 
  not subject to any scheme-based normalization; thus, two URIs that   
differ only by the suffix "#" are considered different regardless of   
the scheme.”

I guess we need some tests here to check compliance.

--
messages: 86538
nosy: Merwok
severity: normal
status: open
title: Possible normalization error in urlparse.urlunparse

___
Python tracker 

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



[issue5259] smtplib is broken in Python3

2009-04-25 Thread Marcin Bachry

Marcin Bachry  added the comment:

I add simple smtp auth unit test to exercise this bug.

--
keywords: +patch
nosy: +marcin.bachry
Added file: http://bugs.python.org/file13774/test-smtplib.diff

___
Python tracker 

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



[issue1218234] inspect.getsource doesn't update when a module is reloaded

2009-04-25 Thread Daniel Diniz

Daniel Diniz  added the comment:

Fix was committed to py3k but with no tests AFAIK. Here's a (failing)
test for trunk that runs OK after Guilherme's patch.

We might want to keep this behavior restricted for when the module was
reloaded.

--
keywords: +patch
nosy: +ajaksu2
stage:  -> patch review
type:  -> behavior
versions: +Python 2.6, Python 3.0 -Python 2.5
Added file: http://bugs.python.org/file13775/test_inspect-trunk.diff

___
Python tracker 

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



[issue1218234] inspect.getsource doesn't update when a module is reloaded

2009-04-25 Thread Daniel Diniz

Changes by Daniel Diniz :


Added file: http://bugs.python.org/file13776/test_inspect-py3k.diff

___
Python tracker 

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



[issue5843] Possible normalization error in urlparse.urlunparse

2009-04-25 Thread Éric Araujo

Éric Araujo  added the comment:

This is indeed a bug. urlunparse should special-case "#" so as not to
discard it.

--

___
Python tracker 

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



[issue1309567] linecache module returns wrong results

2009-04-25 Thread Daniel Diniz

Daniel Diniz  added the comment:

Adding some tests to make working on a patch easier.

--
keywords: +patch
nosy: +ajaksu2
stage:  -> patch review
type:  -> behavior
versions:  -Python 2.3, Python 2.4, Python 2.5
Added file: http://bugs.python.org/file13777/test_linecache.py

___
Python tracker 

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



[issue5650] Obsolete RFC's should be removed from doc of urllib.urlparse

2009-04-25 Thread Éric Araujo

Éric Araujo  added the comment:

Sorry, my logic was flawed: RFC 1808 is not obsoleted either, so it
leaves us with 1738, 1808 and 3986.

--

___
Python tracker 

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



[issue1218234] inspect.getsource doesn't update when a module is reloaded

2009-04-25 Thread Daniel Diniz

Daniel Diniz  added the comment:

Er, no, it wasn't committed to py3k, it was just me getting my patches
mixed. Attaching the py3k test with relative import fixed.

--
Added file: http://bugs.python.org/file13778/test_inspect-py3k2.diff

___
Python tracker 

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



[issue1218234] inspect.getsource doesn't update when a module is reloaded

2009-04-25 Thread Daniel Diniz

Changes by Daniel Diniz :


Removed file: http://bugs.python.org/file13776/test_inspect-py3k.diff

___
Python tracker 

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



[issue1309567] linecache module returns wrong results

2009-04-25 Thread Daniel Diniz

Daniel Diniz  added the comment:

Patch (against py3k) with David Zaslavsky's solution from msg79117. It
would be good to find failing tests after it's applied so we can fix
this without breaking valid use cases.

--
Added file: http://bugs.python.org/file13779/basename.diff

___
Python tracker 

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



[issue5650] Obsolete RFC's should be removed from doc of urllib.urlparse

2009-04-25 Thread Éric Araujo

Éric Araujo  added the comment:

Included patch for this issue. There is some diff noise because of
paragraph wrapping. I don’t know whether my seealso addition is
correctly formatted (the title spans two lines) because of a Sphinx bug
on my machine. Thanks for reviewing.

--
keywords: +patch
Added file: http://bugs.python.org/file13780/urlparse.diff

___
Python tracker 

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



[issue1068477] linecache.py::updatecache strips directory info from files

2009-04-25 Thread Daniel Diniz

Daniel Diniz  added the comment:

Confirmed in py3k and trunk as AMK describes it, fixed by the patch in 
issue 1309567.

--
dependencies: +linecache module returns wrong results
nosy: +ajaksu2
type:  -> behavior

___
Python tracker 

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



[issue1754483] linecache package handling

2009-04-25 Thread Daniel Diniz

Daniel Diniz  added the comment:

Test script works with patch from issue 1309567. Hans, do you have more
test cases?

--
dependencies: +linecache module returns wrong results
nosy: +ajaksu2
type:  -> behavior
versions: +Python 2.6, Python 3.0

___
Python tracker 

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



[issue5826] new unittest function listed as assertIsNotNot() instead of assertIsNotNone()

2009-04-25 Thread Michael Foord

Michael Foord  added the comment:

Closed in revision 71930.

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



[issue5742] inspect.findsource() should look only for sources

2009-04-25 Thread Daniel Diniz

Daniel Diniz  added the comment:

This is a duplicate of issue 4050.

--
nosy: +ajaksu2
resolution:  -> duplicate
status: open -> closed
superseder:  -> inspect.findsource() returns binary data for shared library 
modules

___
Python tracker 

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



[issue5835] Deprecate PyOS_ascii_formatd

2009-04-25 Thread Eric Smith

Eric Smith  added the comment:

It makes most sense to name the new 2.7 replacement function to be
_PyOS_double_to_string (with a leading underscore). It will be the same
as PyOS_double_to_string, except that instead of allocating a buffer and
returning it, you will supply it a buffer and a length. That will make
its ultimate replacement easy, if I decide to replace it. And having it
take a buffer and a length means that I don't need to do major surgery
in all of the places that it's called.

In 3.1, there will be no replacement function. All 3.1 code has already
been modified to call PyOS_double_to_string directly.

Since PyOS_ascii_formatd won't be called anywhere in 2.7 or 3.1, I'm
planning on testing its functionality and the fact that it's deprecated
using ctypes.

--

___
Python tracker 

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



[issue5818] Fix five small bugs in the bininstall and altbininstall pseudotargets

2009-04-25 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

Thanks for the patch! Fixed in r71935.

--
nosy: +benjamin.peterson
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



[issue4050] inspect.findsource() returns binary data for shared library modules

2009-04-25 Thread Daniel Diniz

Daniel Diniz  added the comment:

Test for the patch.

--
nosy: +ajaksu2
priority:  -> normal
stage:  -> patch review
versions:  -Python 2.5
Added file: http://bugs.python.org/file13781/binary_source_test.diff

___
Python tracker 

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



[issue5756] idle pydoc et al removed from 3.1 without versioned replacements

2009-04-25 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

Installed pydoc and idle with a 3 suffix in r71936.

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



  1   2   >