[issue8249] expat.ParserCreate - SystemError bad argument to internal function

2010-03-28 Thread Florent Xicluna

New submission from Florent Xicluna florent.xicl...@gmail.com:

First call gave a segfault. Following calls were successful.

Python 2.7a4+ (trunk:79443M, Mar 26 2010, 16:46:11)

~ $ python ../svnmerge.py -F -M merge 
-r79450,79427,79426,79425,79382,79310,79297
Traceback (most recent call last):
  File ../svnmerge.py, line 2366, in module
main(sys.argv[1:])
  File ../svnmerge.py, line 2361, in main
cmd(branch_dir, branch_props)
  File ../svnmerge.py, line 1813, in __call__
return self.func(*args, **kwargs)
  File ../svnmerge.py, line 1483, in action_merge
should_find_reflected(branch_dir))
  File ../svnmerge.py, line 1263, in analyze_source_revs
return analyze_revs(branch_pathid, source_url, base, end_rev, **kwargs)
  File ../svnmerge.py, line 1215, in analyze_revs
logs[url] = RevisionLog(url, begin, end, find_reflected)
  File ../svnmerge.py, line 535, in __init__
split_lines=False)):
  File ../svnmerge.py, line 1034, in __getitem__
for event, node in self._events:
  File /opt/lib/python2.7/xml/dom/pulldom.py, line 232, in next
rc = self.getEvent()
  File /opt/lib/python2.7/xml/dom/pulldom.py, line 265, in getEvent
self.parser.feed(buf)
  File /opt/lib/python2.7/xml/sax/expatreader.py, line 198, in feed
self.reset()
  File /opt/lib/python2.7/xml/sax/expatreader.py, line 247, in reset
intern=self._interning)
SystemError: Objects/methodobject.c:120: bad argument to internal function
Segmentation fault

--
components: Extension Modules, XML
messages: 101856
nosy: flox
priority: normal
severity: normal
stage: test needed
status: open
title: expat.ParserCreate - SystemError bad argument to internal function
type: crash
versions: Python 2.7

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



[issue6906] Tkinter sets an unicode environment variable on win32

2010-03-28 Thread Florent Xicluna

Florent Xicluna florent.xicl...@gmail.com added the comment:

Ported to 2.6 with r79336

--
status: pending - closed

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



[issue8190] Add an xml-rpc client for PyPi

2010-03-28 Thread Shashwat Anand

Changes by Shashwat Anand anand.shash...@gmail.com:


--
nosy: +l0nwlf

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



[issue8250] Implement pkgutil APIs as described in PEP 376

2010-03-28 Thread Tarek Ziadé

Changes by Tarek Ziadé ziade.ta...@gmail.com:


--
assignee: tarek
components: Distutils2
nosy: tarek
priority: normal
severity: normal
status: open
title: Implement pkgutil APIs as described in PEP 376
type: feature request
versions: Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3

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



[issue7279] decimal.py: == and != comparisons involving NaNs

2010-03-28 Thread Stefan Krah

Stefan Krah stefan-use...@bytereef.org added the comment:

Mark, this looks great, thanks.

--

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



[issue8251] WeakRefSet

2010-03-28 Thread Michael Foord

New submission from Michael Foord mich...@voidspace.org.uk:

WeakRefSet would be a useful addition to the weakref module. I needed this for 
unittest recently but made do with a WeakRefKeyDictionary and setting the 
values to 1.

--
components: Library (Lib)
messages: 101859
nosy: michael.foord
severity: normal
stage: needs patch
status: open
title: WeakRefSet
type: feature request
versions: Python 2.7, Python 3.2

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



[issue8252] add a metada section in setup.cfg

2010-03-28 Thread Tarek Ziadé

New submission from Tarek Ziadé ziade.ta...@gmail.com:

let's add a metatadata section in setup.cfg, to express all the metadata fields 
instead of using setup.py options.

--
assignee: tarek
components: Distutils2
messages: 101860
nosy: tarek
priority: normal
severity: normal
status: open
title: add a metada section in setup.cfg
type: feature request
versions: Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3

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



[issue8253] add a resource+files section in setup.cfg

2010-03-28 Thread Tarek Ziadé

New submission from Tarek Ziadé ziade.ta...@gmail.com:

Implement the [resources] section described in:

http://hg.python.org/distutils2/file/tip/docs/design/wiki.rst

We also need to add a description of packages, scripts and modules.
The result should be that projects will not need a setup.py file anymore

--
assignee: tarek
components: Distutils2
messages: 101861
nosy: tarek
priority: normal
severity: normal
status: open
title: add a resource+files section in setup.cfg
type: feature request
versions: Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3

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



[issue8252] add a metadata section in setup.cfg

2010-03-28 Thread Tarek Ziadé

Changes by Tarek Ziadé ziade.ta...@gmail.com:


--
title: add a metada section in setup.cfg - add a metadata section in setup.cfg

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



[issue8252] add a metadata section in setup.cfg

2010-03-28 Thread Tarek Ziadé

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

and change the mkpkg script accordingly

--

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



[issue8253] add a resource+files section in setup.cfg

2010-03-28 Thread Tarek Ziadé

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

and change the mkpkg script accordingly

--

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



[issue8254] write a configure command

2010-03-28 Thread Tarek Ziadé

New submission from Tarek Ziadé ziade.ta...@gmail.com:

This command will contain all options that are used to build extensions (out of 
the build* and install* commands) and will create a confifuration file.

build* and install* commands will be able to read back the file if present, and 
use its values, so we don't have to pass the options again.

See 4Suite configure command for an example

--
assignee: tarek
components: Distutils2
messages: 101864
nosy: tarek
priority: normal
severity: normal
status: open
title: write a configure command
versions: Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3

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



[issue8252] add a metadata section in setup.cfg

2010-03-28 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
nosy: +merwok

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



[issue8253] add a resource+files section in setup.cfg

2010-03-28 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
nosy: +merwok

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



[issue8254] write a configure command

2010-03-28 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
nosy: +merwok

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



[issue8255] step-by-step tutorial

2010-03-28 Thread Tarek Ziadé

New submission from Tarek Ziadé ziade.ta...@gmail.com:

Write a tutorial to describe the cycle of a Python project that is built, 
released and deployed, using Distutils2. This project will need to be complete 
enough to cover most use cases.

This tutorial will be part of the Distutils2 documentation and will be also 
added in the hitchhicker guide.

--
assignee: tarek
components: Distutils2
messages: 101865
nosy: tarek
priority: normal
severity: normal
status: open
title: step-by-step tutorial
type: feature request
versions: Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3

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



[issue8255] step-by-step tutorial

2010-03-28 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
nosy: +merwok

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



[issue8250] Implement pkgutil APIs as described in PEP 376

2010-03-28 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
nosy: +merwok

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



[issue8190] Add an xml-rpc client for PyPi

2010-03-28 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Hello

XML-RPC is a legacy protocol that works against the Web, i.e. it does not 
respect and benefit from the Web architecture. Why not going the REST way?

Regards

--
nosy: +merwok

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



[issue7559] TestLoader.loadTestsFromName swallows import errors

2010-03-28 Thread Chris Jerdonek

Chris Jerdonek chris.jerdo...@gmail.com added the comment:

I was also hit by this today.

For the sake of clarity, I will restate two of the scenarios that have been 
mentioned in this discussion:

(1) An ImportError raised whilst importing a module (original issue)
(2) A sub-module not existing.

I think the error text should be better in both cases and not just in case (1).

Currently, both (1) and (2) yield an error like the following:

AttributeError: 'module' object has no attribute 'subpackage1'

But also in case (2), the AttributeError reveals less information than the 
exception that was trapped earlier:

ImportError: No module named subpackage1.subpackage2

I think in both cases the error text should state not just what module was 
being imported but also what module was being imported from -- e.g. 
root_package.subpackage1.subpackage2.  In other words, it should also include 
the leading parts of--

'.'.join(parts_copy)  

In my case, I passed a list of modules to unittest, and it wasn't clear which 
one it was failing on by looking at only the trailing segment.  Thanks.

--
nosy: +cjerdonek

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



[issue7946] Convoy effect with I/O bound threads and New GIL

2010-03-28 Thread Ram Rachum

Changes by Ram Rachum cool...@cool-rr.com:


--
nosy: +cool-RR

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



[issue6488] ElementTree documentation refers to path with no explanation, and inconsistently

2010-03-28 Thread Jason R. Coombs

Jason R. Coombs jar...@jaraco.com added the comment:

I agree. I found the documentation very difficult to understand.  The term 
top-level can be confusing. Consider instead something like search the 
entire tree.

A few other comments about the documentation of findtext:

findtext(path[, default])
... Returns the text content of the first matching element, or the default 
value no element was found...

The first comma (,) following 'element' is unnecessary and in fact incorrect. 
Also, 'if' is missing. Sentence should read Returns the text content of the 
first matching element or the default value if no element was found.

findtext(path[, default])
... Note that if the element has is found, but has no text content, this 
method returns an empty string.

Again, an unnecessary comma exist and there's an extra word. Should read, Note 
that if the element is found but has no text content, this method returns an 
empty string.

Note, the wording changes should be made. The other suggestions should be 
considered soft suggestions and merely my preference.

--
nosy: +jaraco

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



[issue6488] ElementTree documentation refers to path with no explanation, and inconsistently

2010-03-28 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
components: +XML
stage:  - needs patch
versions:  -Python 3.0

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



[issue6488] ElementTree documentation refers to path with no explanation, and inconsistently

2010-03-28 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
nosy: +flox

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



[issue8250] Implement pkgutil APIs as described in PEP 376

2010-03-28 Thread Shashwat Anand

Changes by Shashwat Anand anand.shash...@gmail.com:


--
nosy: +l0nwlf

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



[issue8252] add a metadata section in setup.cfg

2010-03-28 Thread Shashwat Anand

Changes by Shashwat Anand anand.shash...@gmail.com:


--
nosy: +l0nwlf

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



[issue8253] add a resource+files section in setup.cfg

2010-03-28 Thread Shashwat Anand

Changes by Shashwat Anand anand.shash...@gmail.com:


--
nosy: +l0nwlf

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



[issue8254] write a configure command

2010-03-28 Thread Shashwat Anand

Changes by Shashwat Anand anand.shash...@gmail.com:


--
nosy: +l0nwlf

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



[issue8255] step-by-step tutorial

2010-03-28 Thread Shashwat Anand

Changes by Shashwat Anand anand.shash...@gmail.com:


--
nosy: +l0nwlf

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



[issue8190] Add an xml-rpc client for PyPi

2010-03-28 Thread Tarek Ziadé

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

We want to add a PyPI client in Distutils2, and PyPI provides these information 
via XML-RPC.

PyPI could probably have a REST interface to grab these info as well, but this 
is another topic/project.

On our side (distutils2), we want to provide a nice set of APIs to get some 
info PyPI has, and the fact that it's via XML-RPC is an implementation detail: 
if PyPI switch to something else, this should just impact the internals of the 
client, and not change our APIs.

--

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



[issue8190] Add a PyPI client module

2010-03-28 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Thanks for clarifying. I’m rephrasing the title to minimize the presence of the 
protocol used as implementation detail.

Regards

--
title: Add an xml-rpc client for PyPi - Add a PyPI client module

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



[issue8190] Add a PyPI XML-RPC client module

2010-03-28 Thread Tarek Ziadé

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

Please don't. This is confusing because some commands already interact with 
PyPI (upload/register).

I don't see the problem in mentioning XML-RPC in the title here. It makes what 
we need to do crystal clear.

--
title: Add a PyPI client module - Add a PyPI XML-RPC client module

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



[issue8190] Add a PyPI XML-RPC client module

2010-03-28 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

You‘re right, sorry for the noise.

--

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



[issue8256] TypeError: bad argument type for built-in operation

2010-03-28 Thread Bruce Frederiksen

New submission from Bruce Frederiksen dangy...@gmail.com:

I'm getting a TypeError: bad argument type for built-in operation on a 
print() with no arguments.  This seems to be a problem in both 3.1 and 3.1.2 
(haven't tried 3.1.1).

I've narrowed the problem down in a very small demo program that you can run to 
reproduce the bug.  Just do python3.1 bug.py and hit ENTER at the prompt:.

Removing the doctest call (and calling foo directly) doesn't get the error.  
Also removing the input call (and leaving the doctest call in) doesn't get 
the error.

The startup banner on my python3.1 is:
Python 3.1.2 (r312:79147, Mar 26 2010, 16:55:44) 
[GCC 4.3.3] on linux2

I compiled python 3.1.2 with ./configure, make, make altinstall without any 
options.  I'm running ubuntu 9.04 with the 2.6.28-18-generic (32-bit) kernel.

--
components: IO, Interpreter Core, Library (Lib)
files: bug.py
messages: 101874
nosy: dangyogi
severity: normal
status: open
title: TypeError: bad argument type for built-in operation
type: behavior
versions: Python 3.1
Added file: http://bugs.python.org/file16681/bug.py

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



[issue8248] Add test cases for bool

2010-03-28 Thread Ezio Melotti

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


--
nosy: +ezio.melotti
priority:  - normal
stage:  - patch review

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



[issue8252] add a metadata section in setup.cfg

2010-03-28 Thread Eric Smith

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


--
nosy: +eric.smith

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



[issue6488] ElementTree documentation refers to path with no explanation, and inconsistently

2010-03-28 Thread R. David Murray

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

I think you are incorrect about the comma after element.  Without the comma 
'the first matching element or the default value' are tightly bound, meaning 
that if either of those is true, then the default value is returned.  That's 
obviously incorrect, so a human will parse the sentence the way you expect.  
But I think technically the comma after element turns the sentence into two 
independent clauses conjoined by 'or', so that either the first matching 
element is returned, or the default is returned (if no element was found).  I 
think it also reads better rhythmically (you will note that I used a comma in 
my sentence, as well, even though in that case no technical ambiguity results 
from leaving it out).

The comma in the other sentence I think is optional, and I agree that it reads 
better without it.

--
nosy: +r.david.murray

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



[issue8256] TypeError: bad argument type for built-in operation

2010-03-28 Thread Florent Xicluna

Florent Xicluna florent.xicl...@gmail.com added the comment:

Confirmed.

There's something wrong around the doctest._SpoofOut class.
This script triggers the same bug (both 3.x and 3.1).


Output:

$ ./python issue8256_case.py 
prompt:
Traceback (most recent call last):
  File issue8256_case.py, line 13, in module
foo()
  File issue8256_case.py, line 7, in foo
print()
TypeError: bad argument type for built-in operation

--
components:  -Interpreter Core
nosy: +flox
priority:  - normal
stage:  - test needed
versions: +Python 3.2
Added file: http://bugs.python.org/file16682/issue8256_case.py

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



[issue8248] Add test cases for bool

2010-03-28 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Decimal tests should probably be in test_decimal, not test_bool.
Also, I'm not sure why the __index__ and format tests aren't in the py3k patch.

--
nosy: +pitrou

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



[issue8251] WeakRefSet

2010-03-28 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Python 3.2a0 (py3k:79464, Mar 27 2010, 19:18:14) 
[GCC 4.4.1] on linux2
Type help, copyright, credits or license for more information.
 from weakref import WeakSet


--
nosy: +pitrou

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



[issue8256] TypeError: bad argument type for built-in operation

2010-03-28 Thread Filip Gruszczyński

Filip Gruszczyński grusz...@gmail.com added the comment:

The bug is triggered by input, not by print. The exact place is 
_PyUnicode_AsStringAndSize, where unicode check happens. Then print checks 
PyError_Occured and catches this error. Either this error should not be raised 
or should be cleared input finishes.

I'd love to provide a patch, but I have no idea, what should be corrected and 
how. If some would tutor me a little, I would be very happy to learn and code 
this.

--
nosy: +gruszczy

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



[issue8256] TypeError: bad argument type for built-in operation

2010-03-28 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


Removed file: http://bugs.python.org/file16682/issue8256_case.py

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



[issue8256] TypeError: bad argument type for built-in operation

2010-03-28 Thread Florent Xicluna

Florent Xicluna florent.xicl...@gmail.com added the comment:

Right. It does not involve doctest.

#
import io, sys

original_stdout = sys.stdout

try:
sys.stdout = io.StringIO()
input(prompt:)
print()
finally:
sys.stdout = original_stdout

--

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



[issue8251] WeakRefSet

2010-03-28 Thread Michael Foord

Michael Foord mich...@voidspace.org.uk added the comment:

Ha. I tried 2.7. I guess it would be nice if it was backported.

--
versions:  -Python 3.2

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



[issue8257] Decimal constructor to accept float

2010-03-28 Thread Raymond Hettinger

New submission from Raymond Hettinger rhettin...@users.sourceforge.net:

Per discussion on python-dev, let Decimal(x) accept floats as a possible input, 
making Decimal.from_float unnecessary.

See attached patch.

--
assignee: mark.dickinson
files: deci_float_constructor.diff
keywords: easy, patch
messages: 101882
nosy: mark.dickinson, rhettinger
severity: normal
stage: patch review
status: open
title: Decimal constructor to accept float
type: feature request
versions: Python 2.7, Python 3.2
Added file: http://bugs.python.org/file16683/deci_float_constructor.diff

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



[issue8251] WeakRefSet

2010-03-28 Thread Michael Foord

Changes by Michael Foord mich...@voidspace.org.uk:


--
resolution:  - invalid
status: open - closed

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



[issue8248] Add test cases for bool

2010-03-28 Thread Gregory Nofi

Gregory Nofi crackityjones200...@yahoo.com added the comment:

Indeed, the Decimal test is better off in 
test_decimal.DecimalExplicitConstructionTest so I moved it there.

I forgot to include the index test for the py3k patch. That's in the updated 
patch, too.

There is already a format test in the py3k branch.

--
Added file: http://bugs.python.org/file16684/test_bool.v2.patch

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



[issue8248] Add test cases for bool

2010-03-28 Thread Gregory Nofi

Changes by Gregory Nofi crackityjones200...@yahoo.com:


Added file: http://bugs.python.org/file16685/test_bool.v3.patch

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



[issue8218] typo currect

2010-03-28 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

Here is a patch that fixes the typos found by David and Yuv and rephrases a 
couple of parts.

--
keywords: +easy, needs review, patch
stage: needs patch - patch review
Added file: http://bugs.python.org/file16686/issue8218.diff

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



[issue8257] Decimal constructor to accept float

2010-03-28 Thread Eric Smith

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


--
nosy: +eric.smith

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