[issue5873] Minidom: parsestring() error

2009-04-29 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

You'll have to name your string differently; you can't have xml refer
to both the string and the package :)

Please refer to python-list or the comp.lang.python newsgroup for
further usage questions.

--
nosy: +georg.brandl
resolution:  - invalid
status: open - closed

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



[issue1719423] Python package support not properly documented

2009-04-29 Thread Georg Brandl

Georg Brandl ge...@python.org 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 rep...@bugs.python.org
http://bugs.python.org/issue1719423
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2009-04-29 Thread Georg Brandl

Georg Brandl ge...@python.org 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()

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



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

2009-04-29 Thread Georg Brandl

New submission from Georg Brandl ge...@python.org:

If your locale isn't C, the preprocessor may not put command-line 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_cmd is locale-sensitive
versions: Python 2.7

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



[issue5875] test_distutils failing on OpenSUSE 10.3, Py3k

2009-04-29 Thread M. Shuaib Khan

New submission from M. Shuaib Khan aries.shu...@gmail.com:

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+


==
ERROR: test_no_optimize_flag
(distutils.tests.test_bdist_rpm.BuildRpmTestCase)
--
Traceback (most recent call last):
  File
/home/shuaib/Tools/GSoC2009/py3k/Lib/distutils/tests/test_bdist_rpm.py,
line 114, in test_no_optimize_flag
cmd.run()
  File
/home/shuaib/Tools/GSoC2009/py3k/Lib/distutils/command/bdist_rpm.py,
line 363, in run
self.spawn(rpm_cmd)
  File /home/shuaib/Tools/GSoC2009/py3k/Lib/distutils/cmd.py, line
368, in spawn
spawn(cmd, search_path, dry_run=self.dry_run)
  File /home/shuaib/Tools/GSoC2009/py3k/Lib/distutils/spawn.py, line
31, in spawn
_spawn_posix(cmd, search_path, dry_run=dry_run)
  File /home/shuaib/Tools/GSoC2009/py3k/Lib/distutils/spawn.py, line
139, in _spawn_posix
% (cmd[0], exit_status))
distutils.errors.DistutilsExecError: command 'rpmbuild' failed with exit
status 1

==
ERROR: test_quiet (distutils.tests.test_bdist_rpm.BuildRpmTestCase)
--
Traceback (most recent call last):
  File
/home/shuaib/Tools/GSoC2009/py3k/Lib/distutils/tests/test_bdist_rpm.py,
line 74, in test_quiet
cmd.run()
  File
/home/shuaib/Tools/GSoC2009/py3k/Lib/distutils/command/bdist_rpm.py,
line 363, in run
self.spawn(rpm_cmd)
  File /home/shuaib/Tools/GSoC2009/py3k/Lib/distutils/cmd.py, line
368, in spawn
spawn(cmd, search_path, dry_run=self.dry_run)
  File /home/shuaib/Tools/GSoC2009/py3k/Lib/distutils/spawn.py, line
31, in spawn
_spawn_posix(cmd, search_path, dry_run=dry_run)
  File /home/shuaib/Tools/GSoC2009/py3k/Lib/distutils/spawn.py, line
139, in _spawn_posix
% (cmd[0], exit_status))
distutils.errors.DistutilsExecError: command 'rpmbuild' failed with exit
status 1

--

--
assignee: tarek
components: Distutils, Tests
files: output.txt
messages: 86781
nosy: ShuaibKhan, tarek
severity: normal
status: open
title: test_distutils failing on OpenSUSE 10.3, Py3k
type: behavior
versions: Python 3.1
Added file: http://bugs.python.org/file13810/output.txt

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



[issue5875] test_distutils failing on OpenSUSE 10.3, Py3k

2009-04-29 Thread M. Shuaib Khan

Changes by M. Shuaib Khan aries.shu...@gmail.com:


Added file: http://bugs.python.org/file13811/rpm-tmp.15210

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



[issue5875] test_distutils failing on OpenSUSE 10.3, Py3k

2009-04-29 Thread M. Shuaib Khan

Changes by M. Shuaib Khan aries.shu...@gmail.com:


Added file: http://bugs.python.org/file13812/rpm-tmp.15211

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



[issue5872] New C API for declaring Python types

2009-04-29 Thread Eric Smith

Changes by Eric Smith e...@trueblade.com:


--
nosy: +eric.smith

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



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

2009-04-29 Thread Tarek Ziadé

Tarek Ziadé ziade.ta...@gmail.com added the comment:

Thanks,

fixed in r72094 and r72096

--
status: open - closed
versions: +Python 3.1

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



[issue5875] test_distutils failing on OpenSUSE 10.3, Py3k

2009-04-29 Thread Tarek Ziadé

Tarek Ziadé ziade.ta...@gmail.com 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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5875
___
___
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-29 Thread Jeroen Ruigrok van der Werven

Jeroen Ruigrok van der Werven asmo...@in-nomine.org added the comment:

Not that I saw.

Merged to py3k and 2.6.

--
resolution:  - accepted
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4239
___
___
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-29 Thread Jeroen Ruigrok van der Werven

Jeroen Ruigrok van der Werven asmo...@in-nomine.org added the comment:

Merged 2.6 and py3k what was appropriate.

--

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



[issue5738] multiprocessing example wrong

2009-04-29 Thread Jeroen Ruigrok van der Werven

Jeroen Ruigrok van der Werven asmo...@in-nomine.org added the comment:

Garrett, I use FreeBSD myself too, so feel free to bounce anything my way.

--
nosy: +asmodai

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



[issue1492860] Integer bit operations performance improvement.

2009-04-29 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com 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 rep...@bugs.python.org
http://bugs.python.org/issue1492860
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 asmo...@in-nomine.org added the comment:

Had this actually been brought up?

--
nosy: +asmodai

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



[issue5875] test_distutils failing on OpenSUSE 10.3, Py3k

2009-04-29 Thread Tarek Ziadé

Tarek Ziadé ziade.ta...@gmail.com 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 rep...@bugs.python.org
http://bugs.python.org/issue5875
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5875] test_distutils failing on OpenSUSE 10.3, Py3k

2009-04-29 Thread M. Shuaib Khan

M. Shuaib Khan aries.shu...@gmail.com added the comment:

Tried. Same failure.

--

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



[issue5875] test_distutils failing on OpenSUSE 10.3, Py3k

2009-04-29 Thread M. Shuaib Khan

M. Shuaib Khan aries.shu...@gmail.com 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 15:46 rpm-tmp.13270

--

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



[issue5875] test_distutils failing on OpenSUSE 10.3, Py3k

2009-04-29 Thread M. Shuaib Khan

M. Shuaib Khan aries.shu...@gmail.com 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

--

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



[issue5875] test_distutils failing on OpenSUSE 10.3, Py3k

2009-04-29 Thread Tarek Ziadé

Tarek Ziadé ziade.ta...@gmail.com 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 rep...@bugs.python.org
http://bugs.python.org/issue5875
___
___
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-04-29 Thread Jeroen Ruigrok van der Werven

Jeroen Ruigrok van der Werven asmo...@in-nomine.org 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 rep...@bugs.python.org
http://bugs.python.org/issue5337
___
___
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-04-29 Thread Michael Foord

Michael Foord mich...@voidspace.org.uk 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.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5337
___
___
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-04-29 Thread Jeroen Ruigrok van der Werven

Jeroen Ruigrok van der Werven asmo...@in-nomine.org added the comment:

OK, clear, then I'll see what I can do.

--

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



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

2009-04-29 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com 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

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



[issue2650] re.escape should not escape underscore

2009-04-29 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +ezio.melotti

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



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

2009-04-29 Thread Tomasz Melcer

New submission from Tomasz Melcer li...@o2.pl:

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):
... def __repr__(self): return u'あみご'
... 

Does its repr() work?

 T().__repr__()
u'\u3042\u307f\u3054'
 print T().__repr__()
あみご

But when it is implicitly called, it doesnt?!

 T()
Traceback (most recent call last):
  File stdin, line 1, in module
UnicodeEncodeError: 'ascii' codec can't encode characters in position
0-2: ordinal not in range(128)
 print T()
Traceback (most recent call last):
  File stdin, line 1, in module
UnicodeEncodeError: 'ascii' codec can't encode characters in position
0-2: ordinal not in range(128)


Encoding:

 import sys
 sys.stdin.encoding
'UTF-8'
 sys.stdout.encoding
'UTF-8'

Workaround for now:

 class T(object):
... def __repr__(self): return u'あみご'.encode('utf-8')
...

--
components: Extension Modules
messages: 86798
nosy: liori
severity: normal
status: open
title: __repr__ returning unicode doesn't work when called implicitly
type: behavior
versions: Python 2.5

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



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

2009-04-29 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +ezio.melotti

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



[issue5861] test_urllib fails on windows

2009-04-29 Thread Hirokazu Yamamoto

Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp:


--
dependencies: +a problem of urllib using open_local_file

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



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

2009-04-29 Thread R. David Murray

R. David Murray rdmur...@bitdance.com 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:  - test needed
versions: +Python 2.6, Python 2.7 -Python 2.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5876
___
___
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-04-29 Thread Raymond Hettinger

Changes by Raymond Hettinger rhettin...@users.sourceforge.net:


--
assignee: effbot - rhettinger

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



[issue2245] aifc cannot handle unrecognised chunk type CHAN

2009-04-29 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Fixed in r72100.  Thanks everyone.  Now for issue 2259...

--
resolution:  - fixed
stage: test needed - committed/rejected
status: open - closed

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



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

2009-04-29 Thread R. David Murray

R. David Murray rdmur...@bitdance.com 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 rep...@bugs.python.org
http://bugs.python.org/issue2259
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5877] Add a function for updating URL query parameters

2009-04-29 Thread Mart Sõmermaa

New submission from Mart Sõmermaa m...@mrts.pri.ee:

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://mail.python.org/pipermail/python-ideas/2009-March/003728.html

The consensus seems to be that this is needed, opinions on how the API
should look like vary.

Behaviour
-

The following features were requested by different people:
- ability to order parameters (by passing them in a ordered data structure)
- plain behaviour that would keep the existing parameters as is and
add passed in parameters, retaining duplicates
- behaviour that removes duplicated values
- dict.update()-like behaviour that would not allow duplicate keys
(updating values for existing keys)
- removal of existing parameters

Implementation
--

http://github.com/mrts/qparams/tree/master
in particular
http://github.com/mrts/qparams/blob/bf1b29ad46f9d848d5609de6de0bfac1200da310/qparams.py

See the docstring in qparams.py for 

Currently, positional arguments are used to avoid name collisions in
keyword arguments that were initially devised as the default, easy way
to pass parameters. As the function signature has grown quite complex,
this looks suboptimal.

Also, the general sentiment was that the current three-valued logic for
choosing key update strategy is also suboptimal. Instead, the strategy
should be passed via a function and the strategies listed above should
be provided in the module.

Finally, removing keys is currently missing. It was proposed that
passing foo=None would remove the parameter foo. Currently, None is used
to mark parameters that do not take values, another marker is needed for
that if removal is to be marked with None.

Following on Nick Coghlan's suggestion in
http://mail.python.org/pipermail/python-dev/2009-April/088866.html and
considering the preference for a strategy function, the API could look
as follows:

def add_query_params(url, params, strategy=allow_dulicates, sep='')

I.e. keyword arguments would not be supported and the default use
would be as follows:

 add_query_params('foo', dict(bar='baz'))
'foo?bar=baz'

--
components: Library (Lib)
messages: 86802
nosy: mrts
severity: normal
status: open
title: Add a function for updating URL query parameters
type: feature request
versions: Python 2.7, Python 3.1

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



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

2009-04-29 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com 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 rep...@bugs.python.org
http://bugs.python.org/issue5864
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5878] Regular Expression instances

2009-04-29 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com 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 re.RegexObject instance at 80b4150 in older versions.

--
nosy: +ezio.melotti
versions: +Python 2.4, Python 2.5, Python 2.6, Python 2.7

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



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

2009-04-29 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

Updated patch; the previous patch messed str() up.

--
Added file: http://bugs.python.org/file13814/issue5864.patch

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




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

2009-04-29 Thread Mark Dickinson

Changes by Mark Dickinson dicki...@gmail.com:


Removed file: http://bugs.python.org/file13813/issue5864.patch

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



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

2009-04-29 Thread Mark Dickinson

Changes by Mark Dickinson dicki...@gmail.com:


--
stage: needs patch - patch review

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



[issue2587] PyString_FromStringAndSize() to be considered unsafe

2009-04-29 Thread Jan Lieskovsky

Jan Lieskovsky ian...@seznam.cz 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/fromStringAndSize.c

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



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

2009-04-29 Thread Eric Smith

Eric Smith e...@trueblade.com 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 rep...@bugs.python.org
http://bugs.python.org/issue5864
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5872] New C API for declaring Python types

2009-04-29 Thread Eric Smith

Eric Smith e...@trueblade.com 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. But I
do want to encourage you to get this included in Python, at least in
concept.

--

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



[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 c...@ghum.de:

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.fromfd(fd, family, type_, proto)

in line 156 of reduction.py

fails, because fromfd is not available on windows. Sad thing:
reduction.py was put into processing.py exactly to solve that problem
(i.e. reduction.py is provided as workaround for socket.fromfd not
available on windows, from the documentation: 
if sys.platform == 'win32':
import multiprocessing.reduction
# make sockets pickable/inheritable


the solution within processing was:

try:
fromfd = socket.fromfd
except AttributeError:
def fromfd(fd, family, type, proto=0):
s = socket._socket.socket()
_processing.changeFd(s, fd, family, type, proto)
return s

but: _multiprocessing has no longer a method changeFd.

Harald

--
components: Library (Lib)
messages: 86810
nosy: ghum
severity: normal
status: open
title: multiprocessing - example pool of http servers  fails on windows 
socket has no attribute fromfd
versions: Python 2.6

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



[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 rdmur...@bitdance.com:


--
nosy: +jnoller
priority:  - normal
stage:  - needs patch
type:  - behavior
versions: +Python 2.7, Python 3.0, Python 3.1

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



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

2009-04-29 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com 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

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



[issue5880] Remove unneeded context pointer from getters and setters

2009-04-29 Thread Larry Hastings

New submission from Larry Hastings la...@hastings.org:

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: both in PyLongObject,
both using long_getN(), where it's used to store an integer constant
(not a pointer!) that is converted to a Long object and returned.  Since
there are only two of these, this was easy to fix: split long_getN()
into two functions returning a hard-coded number, long_get0() and
long_get1().

The attached patch removes the void *context field of PyGetSetDef,
removes the almost universally ignored context arguments to the getters
and setters, and removes the data declarations for the context pointer
in static PyGetSetDef structs.  With the patch applied py3k/trunk passes
all expected regression tests.

Martin: I added you to the nosy list 'cause we looked in to this at the
sprints, so I figured you'd be interested.

--
files: lch.getset.r72081.diff
keywords: patch
messages: 86812
nosy: larry, loewis
severity: normal
status: open
title: Remove unneeded context pointer from getters and setters
Added file: http://bugs.python.org/file13817/lch.getset.r72081.diff

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



[issue5880] Remove unneeded context pointer from getters and setters

2009-04-29 Thread Larry Hastings

Larry Hastings la...@hastings.org added the comment:

Whoops, forgot to categorize the issue before submitting it.

--
components: +Interpreter Core
type:  - feature request
versions: +Python 3.1

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



[issue5880] Remove unneeded context pointer from getters and setters

2009-04-29 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com 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 rep...@bugs.python.org
http://bugs.python.org/issue5880
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2009-04-29 Thread Larry Hastings

New submission from Larry Hastings la...@hastings.org:

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.digestsize
  _sha512.digestsize

None of these are part of the documented interface, and all of them are
redundant with documented interfaces.  I suggest that they can all go.

The attached patch removes all of the above.  With the patch applied
Python passes all expected unit tests.

--
components: Extension Modules
files: lch.modulecleanup.r72081.diff
keywords: patch
messages: 86815
nosy: larry
severity: normal
status: open
title: Remove extraneous backwards-compatibility attributes from some modules
type: feature request
versions: Python 3.1
Added file: http://bugs.python.org/file13818/lch.modulecleanup.r72081.diff

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



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

2009-04-29 Thread Eric Smith

Eric Smith e...@trueblade.com 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 review

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5864
___
___
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-29 Thread Marc-Andre Lemburg

Marc-Andre Lemburg m...@egenix.com 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
points, including lone surrogates.

If the utf-8 codec were changed to raise an error for these, marshal
would no longer be able to write/read Unicode objects.

It is likely that other existing Python code (outside the std lib) also
relies on this ability.

Changing this would only be possible in 3.1.

The marshal module would then also have to be changed to use a different
encoding which does support encoding lone surrogates.

See issue 3297 for a discussion of UTF-8/16 vs. UCS2/4, the
implications, motivations, etc.

--

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



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

2009-04-29 Thread Matthias Klose

Matthias Klose d...@debian.org added the comment:

checked in my patch as rev72107 on the trunk. Will apply it for py3k
tomorrow.

--

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



[issue700921] Wide-character curses

2009-04-29 Thread Tomasz Melcer

Changes by Tomasz Melcer li...@o2.pl:


--
nosy: +liori

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



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

2009-04-29 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com 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.

--

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



[issue5463] Remove deprecated features from struct module

2009-04-29 Thread Andreas Schawo

Andreas Schawo andreas.sch...@gmail.com 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 rep...@bugs.python.org
http://bugs.python.org/issue5463
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5463] Remove deprecated features from struct module

2009-04-29 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com 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 tracker rep...@bugs.python.org
http://bugs.python.org/issue5463
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 tjre...@udel.edu 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 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', though I think of it the opposite).

2. A general question re documenting exceptions with specific examples
from the same section.  I presume that is Georg suggested I take to
py-dev, but I waited for an 'appropriate' time when there was a 'hot'
issue being discussed and then forgot.  I will try to remember, soon,
when the current filename controversy cools a bit.

--
versions:  -Python 2.5

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



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

2009-04-29 Thread Larry Hastings

Larry Hastings la...@hastings.org 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 Reifschneider.)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5676
___
___
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-29 Thread Martin v. Löwis

Martin v. Löwis mar...@v.loewis.de 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 rep...@bugs.python.org
http://bugs.python.org/issue3672
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2009-04-29 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

Backported to trunk in r72119.

--

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



[issue5882] __repr__ is ignored when formatting exceptions

2009-04-29 Thread Jonathan Ellis

New submission from Jonathan Ellis ell...@users.sourceforge.net:

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):
... return 'fancy!'
...
 raise E()
Traceback (most recent call last):
  File stdin, line 1, in module
__main__.E

only str is respected:
 class E(Exception):
... def __str__(self):
... return 'fancy!'
...
 raise E()
Traceback (most recent call last):
  File stdin, line 1, in module
__main__.E: fancy!

--
components: Interpreter Core
messages: 86826
nosy: ellisj
severity: normal
status: open
title: __repr__ is ignored when formatting exceptions
type: behavior
versions: Python 2.6

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



[issue5882] __repr__ is ignored when formatting exceptions

2009-04-29 Thread Jonathan Ellis

Changes by Jonathan Ellis ell...@users.sourceforge.net:


--
versions: +Python 3.0

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



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

2009-04-29 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

With these patches, all tests pass for me both for py3k and trunk.

--

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



[issue3466] urllib2 should support HTTPS connections with client keys

2009-04-29 Thread Marcelo Fernández

Marcelo Fernández fernandez...@yahoo.com.ar 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.HTTPSConnection):
def __init__(self, host, timeout=None):
httplib.HTTPSConnection.__init__(self, host, key_file=key_file,
cert_file=cert_file)
self.timeout = timeout # Only valid in Python 2.6

class HTTPSClientAuthHandler(urllib2.HTTPSHandler):
def https_open(self, req):
return self.do_open(HTTPSClientAuthConnection, req)

This is a little class to use it:

class Connection(object):

def __init__(self, url):
# TODO: Validate/Sanitize the url
self.url = url
self._cookiejar = cookielib.CookieJar()

def send(self, **data):
parameters = urllib.urlencode(data)
opener =
urllib2.build_opener(HTTPHandler(debuglevel=DEBUG_LEVEL),
HTTPSClientAuthHandler(debuglevel=DEBUG_LEVEL),
HTTPCookieProcessor(self._cookiejar))
req = Request(self.url, parameters)
server_response = opener.open(req).read()
print server_response
return server_response

Regards

--

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



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

2009-04-29 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com 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 rep...@bugs.python.org
http://bugs.python.org/issue1588
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5883] detach() implementation

2009-04-29 Thread Benjamin Peterson

New submission from Benjamin Peterson benja...@python.org:

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() implementation
type: feature request
versions: Python 3.1
Added file: http://bugs.python.org/file13819/detach.patch

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



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

2009-04-29 Thread Georg Brandl

Georg Brandl ge...@python.org 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', though I think of it the
 opposite).

Yes, I'll be happy to review, edit and commit any patch you send me.
If stuff is applicable to trunk (2.7), please do diffs versus trunk --
this helps our merging infrastructure.

 2. A general question re documenting exceptions with specific examples
 from the same section.  I presume that is Georg suggested I take to
 py-dev, but I waited for an 'appropriate' time when there was a 'hot'
 issue being discussed and then forgot.  I will try to remember, soon,
 when the current filename controversy cools a bit.

Okay :)

--

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



[issue5878] Regular Expression instances

2009-04-29 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

The output is probably from the stone-aged original re module.  Fixed in
r72132.

--
resolution:  - fixed
status: open - closed

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



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

2009-04-29 Thread Benjamin Peterson

Benjamin Peterson benja...@python.org added the comment:

Fixed in r72131 and r72133.

--
resolution:  - fixed
status: open - closed

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



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

2009-04-29 Thread Larry Hastings

Larry Hastings la...@hastings.org 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/lch.capsule.r72125.diff

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



[issue5883] detach() implementation

2009-04-29 Thread Benjamin Peterson

Changes by Benjamin Peterson benja...@python.org:


Added file: http://bugs.python.org/file13821/detach.patch

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



[issue5882] __repr__ is ignored when formatting exceptions

2009-04-29 Thread Benjamin Peterson

Benjamin Peterson benja...@python.org added the comment:

And Exception implements __str__, so it is called.

--
nosy: +benjamin.peterson
resolution:  - invalid
status: open - closed

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



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

2009-04-29 Thread Eric Smith

Eric Smith e...@trueblade.com 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, another set of eyes to review it is always welcome. If
you find anything, I'll fix it. I'm closing this issue.

Committed in trunk in r72137, and in py3k in r72140.

--
resolution:  - accepted
status: open - closed

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



[issue5884] pydoc to return error status code

2009-04-29 Thread Mike Miller

New submission from Mike Miller python@mgmiller.net:

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.py - type 'exceptions.SyntaxError': invalid
syntax (mymod.py, line 1)

C:\echo %ERRORLEVEL%
0

What it should do if an error is found:
C:\type doesnt_exist.txt
The system cannot find the file specified.

C:\echo %ERRORLEVEL%
1


This would allow us to make our build scripts able to react to error
conditions, etc without having to use another script.  Thanks.

--
components: Library (Lib)
messages: 86837
nosy: mixmastamyk
severity: normal
status: open
title: pydoc to return error status code
type: feature request
versions: Python 2.6

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



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

2009-04-29 Thread Eric Smith

Eric Smith e...@trueblade.com 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 rep...@bugs.python.org
http://bugs.python.org/issue3382
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com