[issue1719423] Python package support not properly documented

2009-04-29 Thread Georg Brandl
Georg Brandl added the comment: This has now been done by Brett while he wrote the docs for importlib. -- resolution: remind -> fixed status: pending -> closed ___ Python tracker

[issue1541] Bad OOB data management when using asyncore with select.poll()

2009-04-29 Thread Georg Brandl
Georg Brandl added the comment: Setting #4501 as superseder. -- nosy: +georg.brandl resolution: -> out of date status: open -> closed superseder: -> asyncore's urgent data management and connection closed events are broken when using poll() ___ P

[issue5874] distutils.tests.test_config_cmd is locale-sensitive

2009-04-29 Thread Georg Brandl
New submission from Georg Brandl : If your locale isn't C, the preprocessor may not put "" in its output; test_search_cpp() will then fail. -- assignee: tarek components: Distutils messages: 86780 nosy: georg.brandl, tarek severity: normal status: open title: distutils.tests.test_config_

[issue5875] test_distutils failing on OpenSUSE 10.3, Py3k

2009-04-29 Thread M. Shuaib Khan
New submission from M. Shuaib Khan : Hi, Running test_distutils as a non root user fails for me. Running it as a root user works. System information: uname -a Linux Matrix 2.6.22.5-31-default #1 SMP 2007/09/21 22:29:00 UTC i686 i686 i386 GNU/Linux ./python --version Python 3.1a2+ ==

[issue5875] test_distutils failing on OpenSUSE 10.3, Py3k

2009-04-29 Thread M. Shuaib Khan
Changes by M. Shuaib Khan : Added file: http://bugs.python.org/file13811/rpm-tmp.15210 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue5875] test_distutils failing on OpenSUSE 10.3, Py3k

2009-04-29 Thread M. Shuaib Khan
Changes by M. Shuaib Khan : Added file: http://bugs.python.org/file13812/rpm-tmp.15211 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue5872] New C API for declaring Python types

2009-04-29 Thread Eric Smith
Changes by Eric Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue5874] distutils.tests.test_config_cmd is locale-sensitive

2009-04-29 Thread Tarek Ziadé
Tarek Ziadé added the comment: Thanks, fixed in r72094 and r72096 -- status: open -> closed versions: +Python 3.1 ___ Python tracker ___

[issue5875] test_distutils failing on OpenSUSE 10.3, Py3k

2009-04-29 Thread Tarek Ziadé
Tarek Ziadé added the comment: can you try to remove all /var/tmp/rpm-tmp.* directories and relaunch the tests as a simple user ? I would like to see if this problem doesn't occur because this temp directory was previously created by root. -- versions: +Python 2.7

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

2009-04-29 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: Not that I saw. Merged to py3k and 2.6. -- resolution: -> accepted status: open -> closed ___ Python tracker ___ __

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

2009-04-29 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: Merged 2.6 and py3k what was appropriate. -- ___ Python tracker ___ ___ Python-bugs-l

[issue5738] multiprocessing example wrong

2009-04-29 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: Garrett, I use FreeBSD myself too, so feel free to bounce anything my way. -- nosy: +asmodai ___ Python tracker ___ _

[issue1492860] Integer bit operations performance improvement.

2009-04-29 Thread Mark Dickinson
Mark Dickinson added the comment: It looks like no-one sees this as a useful optimization; it seems even less useful now given that it's not applicable to Python 3.x. Closing. -- resolution: -> rejected status: open -> closed ___ Python tracker <

[issue3292] Position index limit; s.insert(i,x) not same as s[i:i]=[x]

2009-04-29 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: Had this actually been brought up? -- nosy: +asmodai ___ Python tracker ___ ___ Pytho

[issue5875] test_distutils failing on OpenSUSE 10.3, Py3k

2009-04-29 Thread Tarek Ziadé
Tarek Ziadé added the comment: can you tell me the owner and permission setttings for: - /var/tmp/rpm-tmp.* - /var/tmp (and if /var/tmp is a symklink, if it points to /tmp, and in that case the same info for /tmp) -- ___ Python tracker

[issue5875] test_distutils failing on OpenSUSE 10.3, Py3k

2009-04-29 Thread M. Shuaib Khan
M. Shuaib Khan added the comment: Tried. Same failure. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue5875] test_distutils failing on OpenSUSE 10.3, Py3k

2009-04-29 Thread M. Shuaib Khan
M. Shuaib Khan added the comment: drwxrwxrwt 5 root root 4096 2009-04-29 15:46 tmp And after a number of failed test runs... -rw-r--r-- 1 shuaib users 893 2009-04-29 16:01 rpm-tmp.11523 -rw-r--r-- 1 shuaib users 893 2009-04-29 16:01 rpm-tmp.11524 -rw-r--r-- 1 shuaib users 893 2009-04-29

[issue5875] test_distutils failing on OpenSUSE 10.3, Py3k

2009-04-29 Thread M. Shuaib Khan
M. Shuaib Khan added the comment: I've already tried the removal of foo... directory. Failed. I think the following might be interesing... drw-rw-rw- 3 shuaib users 4096 2009-04-29 15:46 null Permissions for null/lib are as follows: drwxr-xr-x 3 shuaib users 4096 2009-04-29 15:46 lib --

[issue5875] test_distutils failing on OpenSUSE 10.3, Py3k

2009-04-29 Thread Tarek Ziadé
Tarek Ziadé added the comment: Can you remove /var/tmp/foo-0.1-1-buildroot and try again ? if it fails, can you look at the permissions of /var/tmp/foo-0.1-1-buildroot/dev/null/lib -- ___ Python tracker __

[issue5337] Scanner class in re module undocumented

2009-04-29 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: So far effbot hasn't said anything about this. So Frederik, was it intended to be exposed or not? -- nosy: +asmodai ___ Python tracker __

[issue5337] Scanner class in re module undocumented

2009-04-29 Thread Michael Foord
Michael Foord added the comment: Whether it was intended to be exposed or not it is known and used - and therefore we can't change the API without going through the usual deprecation process. As it is used and useful it should be documented. -- ___ P

[issue5337] Scanner class in re module undocumented

2009-04-29 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: OK, clear, then I'll see what I can do. -- ___ Python tracker ___ ___ Python-bugs-lis

[issue5864] format(1234.5, '.4') gives misleading result

2009-04-29 Thread Mark Dickinson
Mark Dickinson added the comment: I'm working on a patch. The fix for the new-style PyOS_double_to_string using Gay's dtoa is a one-liner. The fix for the fallback code is going to take a little while longer... -- assignee: -> marketdickinson ___

[issue2650] re.escape should not escape underscore

2009-04-29 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue5876] __repr__ returning unicode doesn't work when called implicitly

2009-04-29 Thread Tomasz Melcer
New submission from Tomasz Melcer : Invitation... (Debian Sid, gnome-terminal with pl_PL.UTF8 locales) Python 2.5.4 (r254:67916, Feb 17 2009, 20:16:45) [GCC 4.3.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. Lets create some class... >>> class T(object): .

[issue5876] __repr__ returning unicode doesn't work when called implicitly

2009-04-29 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue5861] test_urllib fails on windows

2009-04-29 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : -- dependencies: +a problem of urllib using open_local_file ___ Python tracker ___ ___ Python-bugs-list

[issue5876] __repr__ returning unicode doesn't work when called implicitly

2009-04-29 Thread R. David Murray
R. David Murray added the comment: This worked in 2.4 and stopped working in 2.5. It's not a problem in 3.x. (2.5 is in security-fix-only mode, so I'm removing it from versions). -- components: +Interpreter Core -Extension Modules nosy: +r.david.murray priority: -> normal stage: ->

[issue5337] Scanner class in re module undocumented

2009-04-29 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: effbot -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2245] aifc cannot handle unrecognised chunk type "CHAN"

2009-04-29 Thread R. David Murray
R. David Murray added the comment: Fixed in r72100. Thanks everyone. Now for issue 2259... -- resolution: -> fixed stage: test needed -> committed/rejected status: open -> closed ___ Python tracker _

[issue2259] Poor support other than 44.1khz, 16bit audio files?

2009-04-29 Thread R. David Murray
R. David Murray added the comment: In r72100 I applied the skiplist part of this patch. In order to apply the remainder I need a small auido test file that demonstrates the current failure. -- assignee: -> r.david.murray ___ Python tracker

[issue5877] Add a function for updating URL query parameters

2009-04-29 Thread Mart Sõmermaa
New submission from Mart Sõmermaa : Proposal Add update_query_params() for updating or adding URL query parameters to urllib.parse and urlparse. Discussion -- Python-dev: http://mail.python.org/pipermail/python-dev/2009-April/088675.html Previously in Python-ideas: http://mai

[issue5878] Regular Expression instances

2009-04-29 Thread Emilio
New submission from Emilio : Following the example from http://docs.python.org/3.0/howto/regex.html If I execute the following code on the python shell (3.1a1): >>> import re >>> p = re.compile('ab*') >>> p I get the msg: <_sre.SRE_Pattern object at 0x013A3440> instead of the msg from the exa

[issue5864] format(1234.5, '.4') gives misleading result

2009-04-29 Thread Mark Dickinson
Mark Dickinson added the comment: Here's a patch for py3k; backporting to trunk should be straightforward. Backporting to 2.6 may involve more work. -- keywords: +patch Added file: http://bugs.python.org/file13813/issue5864.patch ___ Python tracker

[issue5878] Regular Expression instances

2009-04-29 Thread Ezio Melotti
Ezio Melotti added the comment: Looks like a documentation bug, afaik it has always been <_sre.SRE_Pattern object at 0x00A0BB78> (just checked on Python >=2.4). Maybe it used to be in older versions. -- nosy: +ezio.melotti versions: +Python 2.4, Python 2.5, Python 2.6, Python 2.7

[issue5864] format(1234.5, '.4') gives misleading result

2009-04-29 Thread Mark Dickinson
Mark Dickinson added the comment: Updated patch; the previous patch messed str() up. -- Added file: http://bugs.python.org/file13814/issue5864.patch ___ Python tracker ___ __

[issue5864] format(1234.5, '.4') gives misleading result

2009-04-29 Thread Mark Dickinson
Changes by Mark Dickinson : Removed file: http://bugs.python.org/file13813/issue5864.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue5864] format(1234.5, '.4') gives misleading result

2009-04-29 Thread Mark Dickinson
Changes by Mark Dickinson : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2587] PyString_FromStringAndSize() to be considered unsafe

2009-04-29 Thread Jan Lieskovsky
Jan Lieskovsky added the comment: Hello guys, if I didn't overlook something pretty obvious, this should work with python-2.6, but it crashes. Could you please have a look? Thanks, Jan. -- Jan iankko Lieskovsky -- nosy: +iankko Added file: http://bugs.python.org/file13815/fromStrin

[issue5864] format(1234.5, '.4') gives misleading result

2009-04-29 Thread Eric Smith
Eric Smith added the comment: I'm getting an undefined _remove_trailing_zeros using a normal build (not using the fallback code). I think it's now always called. -- stage: patch review -> needs patch ___ Python tracker

[issue5872] New C API for declaring Python types

2009-04-29 Thread Eric Smith
Eric Smith added the comment: I think this is great stuff, Larry. It's a definite improvement. Unfortunately with my workload of other Python issues, I'm not going to be able to review this before the 3.1 beta. I don't use many PyTypeObject's, so my review would be mostly theoretical, anyway. B

[issue5879] multiprocessing - example "pool of http servers " fails on windows "socket has no attribute fromfd"

2009-04-29 Thread Harald Armin Massa
New submission from Harald Armin Massa : the example from http://docs.python.org/library/multiprocessing.html?highlight=multiprocessing#module-multiprocessing named " # Example where a pool of http servers share a single listening socket # " does not work on windows. Reason: s = socket.from

[issue5879] multiprocessing - example "pool of http servers " fails on windows "socket has no attribute fromfd"

2009-04-29 Thread R. David Murray
Changes by R. David Murray : -- nosy: +jnoller priority: -> normal stage: -> needs patch type: -> behavior versions: +Python 2.7, Python 3.0, Python 3.1 ___ Python tracker ___

[issue5864] format(1234.5, '.4') gives misleading result

2009-04-29 Thread Mark Dickinson
Mark Dickinson added the comment: > I think it's now always called. I think you're right. I've moved remove_trailing_zeros further up, out of the #ifdef PY_NO_SHORT_FLOAT_REPR. -- Added file: http://bugs.python.org/file13816/issue5864_v2.patch ___

[issue5880] Remove unneeded "context" pointer from getters and setters

2009-04-29 Thread Larry Hastings
New submission from Larry Hastings : PyGetSetDef has a "void *context" field. This field is passed in to the get and set functions implementing the property. The field is almost never used, so it adds unnecessary complexity. Clearly, YAGNI. There are two places in CPython where it got used: b

[issue5880] Remove unneeded "context" pointer from getters and setters

2009-04-29 Thread Larry Hastings
Larry Hastings added the comment: Whoops, forgot to categorize the issue before submitting it. -- components: +Interpreter Core type: -> feature request versions: +Python 3.1 ___ Python tracker ___

[issue5880] Remove unneeded "context" pointer from getters and setters

2009-04-29 Thread Mark Dickinson
Mark Dickinson added the comment: I haven't looked at this patch in detail, but I'd be delighted to see those uses of the context in longobject.c disappear. -- nosy: +marketdickinson ___ Python tracker ___

[issue5881] Remove extraneous backwards-compatibility attributes from some modules

2009-04-29 Thread Larry Hastings
New submission from Larry Hastings : While hacking on CPython I noticed a couple of attributes that were there strictly for backwards compatibility with ancient modules or pure mistakes. They are: _hashlib.hash.digestsize pwd.struct_pwent _sha224.digestsize _sha256.digestsize _sha384.d

[issue5864] format(1234.5, '.4') gives misleading result

2009-04-29 Thread Eric Smith
Eric Smith added the comment: Using the _v2 patch, I tested both with the fallback code and with Gay's code, and both work. It's sort of shocking just how much effort you had to go through! But I can't see a simpler way to do it. It looks good to me. -- stage: needs patch -> patch rev

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

2009-04-29 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: While it's probably ok to fix the codecs, there's an issue which makes this difficult at least for the utf-8 codec: The marshal module uses utf-8 to write Unicode objects and these can and need to be able to store the full range of supported UCS2/UCS4 code

[issue4587] Need to rework the dbm lib/include selection process

2009-04-29 Thread Matthias Klose
Matthias Klose added the comment: checked in my patch as rev72107 on the trunk. Will apply it for py3k tomorrow. -- ___ Python tracker ___ ___

[issue700921] Wide-character curses

2009-04-29 Thread Tomasz Melcer
Changes by Tomasz Melcer : -- nosy: +liori ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue5864] format(1234.5, '.4') gives misleading result

2009-04-29 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks, Eric. Applied to py3k in r72109. I've blocked it from release30- maint for now, since it will almost certainly not be possible to svnmerge it cleanly, but that doesn't preclude backporting it at some stage. I'll backport to trunk soon. -- _

[issue5463] Remove deprecated features from struct module

2009-04-29 Thread Andreas Schawo
Andreas Schawo added the comment: I think we're done here. There's only the struct.error to be replaced by OverflowError or TypeError. Do you start the discussion on python-dev? I don't know how to. -- status: pending -> open ___ Python tracker

[issue5463] Remove deprecated features from struct module

2009-04-29 Thread Mark Dickinson
Mark Dickinson added the comment: Yes, there should probably be a python-dev discussion. I'll add it to my list of things to do, if you like! And I still have to deal with the original compiler warning that started it all in trunk... -- ___ Python

[issue3292] Position index limit; s.insert(i,x) not same as s[i:i]=[x]

2009-04-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: There were two somewhat independent sections to my post: 1. Specific suggested edits to a particular section of the manual. At least some are straightforward. As of 3.0.1, they have not been made and I presume that is still true. Georg, if I grab a copy from

[issue5676] shutils test fails on ZFS (on FUSE, on Linux)

2009-04-29 Thread Larry Hastings
Larry Hastings added the comment: Ping? Is the fate of this patch waiting on anything I can help with? In case it helps you decide, you don't see this behavior on a ZFS partition on Mac OS X. It appears to only happen under FUSE. So it's just me and my computers. (And maybe Sean Reifschneid

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

2009-04-29 Thread Martin v. Löwis
Martin v. Löwis added the comment: I think we could preserve the marshal format with yet another error handler - one that emits half surrogates into their intuitive form. -- ___ Python tracker _

[issue5864] format(1234.5, '.4') gives misleading result

2009-04-29 Thread Mark Dickinson
Mark Dickinson added the comment: Backported to trunk in r72119. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue5882] __repr__ is ignored when formatting exceptions

2009-04-29 Thread Jonathan Ellis
New submission from Jonathan Ellis : The docs say that "If a class defines __repr__() but not __str__(), then __repr__() is also used when an “informal” string representation of instances of that class is required." but, repr is ignored: >>> class E(Exception): ... def __repr__(self): ...

[issue5882] __repr__ is ignored when formatting exceptions

2009-04-29 Thread Jonathan Ellis
Changes by Jonathan Ellis : -- versions: +Python 3.0 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue1588] str.format() wrongly formats complex() numbers (Py30a2)

2009-04-29 Thread Mark Dickinson
Mark Dickinson added the comment: With these patches, all tests pass for me both for py3k and trunk. -- ___ Python tracker ___ ___ Pyt

[issue3466] urllib2 should support HTTPS connections with client keys

2009-04-29 Thread Marcelo Fernández
Marcelo Fernández added the comment: The workaround I posted before doesn't work with Python 2.6. This one works (at least) with Python 2.5 *and* Python 2.6: import httplib import urllib2 key_file = 'mykey.pem' cert_file = 'mycert-signed.pem' class HTTPSClientAuthConnection(httplib.HTTPSConn

[issue1588] str.format() wrongly formats complex() numbers (Py30a2)

2009-04-29 Thread Mark Dickinson
Mark Dickinson added the comment: I haven't done as thorough a review as I'd like, but both patches look good to me. I recommend applying them. -- ___ Python tracker ___ ___

[issue5883] detach() implementation

2009-04-29 Thread Benjamin Peterson
New submission from Benjamin Peterson : Here's the detach() implementation for BufferedIOBase and TextIOBase. -- assignee: benjamin.peterson components: IO files: detach.patch keywords: patch messages: 86830 nosy: benjamin.peterson, pitrou severity: normal status: open title: detach() im

[issue3292] Position index limit; s.insert(i,x) not same as s[i:i]=[x]

2009-04-29 Thread Georg Brandl
Georg Brandl added the comment: > Georg, if I grab a copy from svn, edit (respecting .rst markup), and > post here, will you diff, review (and possibly further edit to taste) > and apply? If so, can I start with the current 3.1 version ('branch') or > do you prefer the 2.7 version ('trunk', thou

[issue5878] Regular Expression instances

2009-04-29 Thread Georg Brandl
Georg Brandl added the comment: The output is probably from the stone-aged original re module. Fixed in r72132. -- resolution: -> fixed status: open -> closed ___ Python tracker __

[issue5676] shutils test fails on ZFS (on FUSE, on Linux)

2009-04-29 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r72131 and r72133. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue5630] Create alternative CObject API that is safe and clean

2009-04-29 Thread Larry Hastings
Larry Hastings added the comment: Added a test case for capsules to _testcapimodule.c, and updated to the latest trunk. -- title: Create alternatieve CObject API that is safe and clean -> Create alternative CObject API that is safe and clean Added file: http://bugs.python.org/file13820

[issue5883] detach() implementation

2009-04-29 Thread Benjamin Peterson
Changes by Benjamin Peterson : Added file: http://bugs.python.org/file13821/detach.patch ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue5882] __repr__ is ignored when formatting exceptions

2009-04-29 Thread Benjamin Peterson
Benjamin Peterson added the comment: And Exception implements __str__, so it is called. -- nosy: +benjamin.peterson resolution: -> invalid status: open -> closed ___ Python tracker

[issue1588] str.format() wrongly formats complex() numbers (Py30a2)

2009-04-29 Thread Eric Smith
Eric Smith added the comment: Thanks, Mark. I'm not so worried about the code, but more so the tests. As far as the code goes, it's really a combination of float and string formatting. I copied the float formatting and refactored the string formatting so I could reuse it. But of course, anothe

[issue5884] pydoc to return error status code

2009-04-29 Thread Mike Miller
New submission from Mike Miller : When pydoc is run from the command line and unable to write a file for a module because of a syntax error, it would be helpful to return a non-zero status code as a result. What it does currently: C:\>C:\python26\Lib\pydoc.py -w mymod problem in .\mymod.

[issue3382] Make '%F' and float.__format__('F') convert results to upper case.

2009-04-29 Thread Eric Smith
Eric Smith added the comment: If http://bugs.python.org/issue5859 is implemented, then this issue really just becomes making sure NAN and INF are uppercase. -- ___ Python tracker ___