[issue8194] Incompatible API change in xmlrpclib.Transport.parse_response() of Python 2.7 and 3.2

2010-12-02 Thread Joshua Lock

Changes by Joshua Lock incandesc...@gmail.com:


--
nosy: +joshual

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



[issue10598] curses fails to import on Solaris

2010-12-02 Thread Robert Lehmann

Robert Lehmann lehman...@gmail.com added the comment:

I have attached a fix and a regression test.

--
keywords: +patch
nosy: +lehmannro
Added file: http://bugs.python.org/file19903/issue10598.patch

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



[issue10603] __file__ not usable, with certain paths on windows XP.

2010-12-02 Thread Campbell Barton

New submission from Campbell Barton ideasma...@gmail.com:

# create this path.
# it could be made by any application but including this line
# so encoding is not confused.
# c:\äöü
__import__(os).mkdir(b'c:\\\xe4\xf6\xfc')

# Now create a new script and save in the newly created dir
c:\äöü\test.py

# In c:\äöü\test.py add the following line
__import__(os).listdir(os.path.dirname(__file__))


# Now run the script from the command line using its absolute path.
c:\Python31\python.exe c:\äöü\test.py

--- This gives an error.
Traceback (most recent call last):
  File m:\\xc3\xa4\xc3\xb6\xc3¼\test.py, line 2, in module
WindowsError: [Error 3] The system cannot find the path specified: 
'm:\\\xc3\xa4\xc3\xb6\xc3¼\\*.*'


This is a bug because a script should be able to inspect the path where it is 
located.

--
components: Interpreter Core
messages: 123063
nosy: ideasman42
priority: normal
severity: normal
status: open
title: __file__ not usable, with certain paths on windows XP.
type: behavior
versions: Python 3.1

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



[issue10602] Wrong assert* method in test_csv.test_register_kwargs masks error

2010-12-02 Thread Éric Araujo

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

Thank you for the report.  The problem is that asserTrue is used instead of 
assertEqual; attached patch fixes that and reveals a bug.

--
components: +Library (Lib)
nosy: +eric.araujo
stage:  - needs patch
title: csv test_register_kwargs has invalid message parameters - Wrong assert* 
method in test_csv.test_register_kwargs masks error
versions: +Python 3.1, Python 3.2 -Python 2.6

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



[issue10602] Wrong assert* method in test_csv.test_register_kwargs masks error

2010-12-02 Thread Éric Araujo

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

This is the output of the test:

FAIL: test_register_kwargs (__main__.TestDialectRegistry)
--
Traceback (most recent call last):
  File Lib/test/test_csv.py, line 326, in test_register_kwargs
self.assertEqual(list(csv.reader('X;Y;Z', name)), ['X', 'Y', 'Z'])

- [['X'], ['', ''], ['Y'], ['', ''], ['Z']]
+ ['X', 'Y', 'Z']

Do you want to write a fix for this bug?

--
keywords: +patch
Added file: http://bugs.python.org/file19904/fix-test.diff

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



[issue10602] Wrong assert* method in test_csv.test_register_kwargs masks error

2010-12-02 Thread Alex Earl

Alex Earl slide.o@gmail.com added the comment:

The internal _csv module which actually implements the reader method expects 
the first parameter to be an iterable object. Since strings are iterated by 
character, that is why this is occuring. So, the fix would need to be made in 
the _csv module, which is a C module. Would a valid fix be to check if the 
first parameter is a string and then iterate differently?

Also, the first test, which checks if the delimiter should be assertNotEqual if 
you are testing for '\t'. A better test might be to test to make sure that the 
default delimiter is not being set (','). So, it might be better to 

self.assertNotEqual(css.get_dialect(name).delimiter, ',')

or something similar.

--

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



[issue10604] Allocating too much memory for pathes

2010-12-02 Thread Daniel Molkentin

New submission from Daniel Molkentin dan...@molkentin.de:

from PC/getpathp.c:538


if (pythonhome != NULL) {
char *p;
bufsz = 1;
for (p = PYTHONPATH; *p; p++) {
if (*p == DELIM)
bufsz++; /* number of DELIM plus one */
}
bufsz *= strlen(pythonhome);
}

The second last line should probably read

bufsz += strlen(pythonhome);

--
components: Windows
messages: 123067
nosy: danimo
priority: normal
severity: normal
status: open
title: Allocating too much memory for pathes
versions: Python 2.7

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



[issue10604] Allocating too much memory for pathes

2010-12-02 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

Hmm, not sure.
Try with 
   set PYTHONPATH=.\a;.\b
sys.path will contains the entries:
   current_dir\a
   current_dir\b
a multiplication seems necessary.

--
nosy: +amaury.forgeotdarc

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



[issue3243] Support iterable bodies in httplib

2010-12-02 Thread Éric Araujo

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

 What is __read__ supposed to be?
 I don't think is required.

The point is that Python does not define a __read__ magic method.  Only read 
exists, on file objects.

--

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



[issue9915] speeding up sorting with a key

2010-12-02 Thread Antoine Pitrou

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

 Just wanted to post this so there weren't any illusions about the
 patch being a big win.

Daniel has already posted benchmark numbers, I would trust them rather
than any theoretical speculation about whether the patch is interesting
or not.

--

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



[issue10602] Wrong assert* method in test_csv.test_register_kwargs masks error

2010-12-02 Thread Éric Araujo

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


Removed file: http://bugs.python.org/file19904/fix-test.diff

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



[issue10602] Wrong assert* method in test_csv.test_register_kwargs masks error

2010-12-02 Thread Éric Araujo

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

I still think this is a bug in the test.  Attached patch fixes it.

--
assignee:  - eric.araujo
Added file: http://bugs.python.org/file19905/fix-test.diff

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



[issue10555] AIX 5.3 - GCC - Python 2.7 Shared Library Support - Fatal Python error: Interpreter not initialized (version mismatch?)

2010-12-02 Thread Anurag Chourasia

Anurag Chourasia anurag.choura...@gmail.com added the comment:

Hi All,

Thanks again for all your support.

I can confirm that this works fine with the AIX Shared Library build support 
added in Python 2.7.1 (and 3.x which I have not tested but my tests with 2.7.1 
were absolutely fine)

--
resolution:  - fixed
status: open - closed

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



[issue3243] Support iterable bodies in httplib

2010-12-02 Thread Xuanji Li

Xuanji Li xua...@gmail.com added the comment:

eric: sorry, that has been fixed in issue_3243_py3k_7.patch

--

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



[issue10603] __file__ not usable, with certain paths on windows XP.

2010-12-02 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
nosy: +haypo

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



[issue10603] __file__ not usable, with certain paths on windows XP.

2010-12-02 Thread R. David Murray

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

Much work has been done on non-ASCII paths in 3.2.  Can you test this with the 
3.2 alpha and let us know the results?

--
nosy: +r.david.murray

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



[issue10602] Wrong assert* method in test_csv.test_register_kwargs masks error

2010-12-02 Thread Alex Earl

Alex Earl slide.o@gmail.com added the comment:

The patch looks good to me. The only question I have is that the previous test 
that was passing a string, is the expected behavior what was being returned 
before, or would it be useful to turn the string into an iterable over lines?

--

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



[issue10605] ElementTree documentation

2010-12-02 Thread Adrian Nye

New submission from Adrian Nye adrian_...@yahoo.com:

TreeBuilder doc does not mention its entity argument which is the main way to 
deal with html entity encodings which are unfortunately a common problem in XML.

Also the doc needs a discussion of the relationship of TreeBuilder and 
XMLParser.   The former has entity, and the latter has encoding, but
what happens is you need both?   Needs examples of using these two classes.

--
components: XML
messages: 123076
nosy: adrian_nye
priority: normal
severity: normal
status: open
title: ElementTree documentation
type: feature request
versions: Python 2.7

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



[issue10602] Wrong assert* method in test_csv.test_register_kwargs masks error

2010-12-02 Thread Éric Araujo

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

I don’t think we should change behavior.  Strings are iterable; csv.reader 
takes an iterable; this is sensible and documented.  See 
http://docs.python.org/dev/library/csv#csv.reader and the last example of 
http://docs.python.org/dev/library/csv#examples

--

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



[issue10602] Wrong assert* method in test_csv.test_register_kwargs masks error

2010-12-02 Thread Alex Earl

Alex Earl slide.o@gmail.com added the comment:

Excellent. As long as it's documented, it works for me.

--

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



[issue10606] Misspelling of Jamie Zawinski's surname in urllib.parse docstring

2010-12-02 Thread Dave Malcolm

New submission from Dave Malcolm dmalc...@redhat.com:

(was misspelled when issue 5650 was fixed, FWIW)

--
assignee: orsenthil
components: Library (Lib)
files: py3k-fix-jwz-surname.patch
keywords: patch
messages: 123079
nosy: dmalcolm, orsenthil
priority: low
severity: normal
status: open
title: Misspelling of Jamie Zawinski's surname in urllib.parse docstring
versions: Python 3.2, Python 3.3
Added file: http://bugs.python.org/file19906/py3k-fix-jwz-surname.patch

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



[issue10607] Document of PyOS_(v)snprintf is wrong.

2010-12-02 Thread INADA Naoki

New submission from INADA Naoki songofaca...@gmail.com:

http://docs.python.org/c-api/conversion.html#PyOS_vsnprintf

the buffer size needed to avoid truncation exceeds size by more than 512 
bytes, Python aborts with a Py_FatalError.

I think :cfunc:`vsprintf`'s output exeeds the buffer need to truncation that 
have *size* + 512byte length, is correct.

--
assignee: d...@python
components: Documentation
messages: 123080
nosy: d...@python, naoki
priority: normal
severity: normal
status: open
title: Document of PyOS_(v)snprintf is wrong.
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2

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



[issue10606] Misspelling of Jamie Zawinski's surname in urllib.parse docstring

2010-12-02 Thread Dave Malcolm

Dave Malcolm dmalc...@redhat.com added the comment:

Fixed in py3k in r86932

--
resolution:  - fixed
status: open - closed

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



[issue9227] can't import Tkinter / use IDLE after installing Python 2.7 on Mac OS X

2010-12-02 Thread Alex Rodriguez

Alex Rodriguez alej...@gmail.com added the comment:

I downloaded python-2.7.1-macosx10.6.dmg file and tested if Tkinter and IDLE 
still have same issue reported here and I did not find anymore this issue.

I was able to launch IDLE and create a Tkinter GUI. From my side we can resolve 
and close this issue.

--

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



[issue9299] os.makedirs(): Add a keyword argument to suppress File exists exception

2010-12-02 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

Georg Brandl patched the doc changes in r86931.
Ray, for future reference, you might take a look, particularly 

-.. function:: makedirs(path[, mode][, exist_ok=False])
+.. function:: makedirs(path, mode=0o777, exist_ok=False)

In 3.x, (as opposed to 2.x), the style for params with default args is to give 
the default if possible, *without* [] now, so the signature in the doc looks as 
in a def statement. I, of course, missed this.

--

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



[issue10607] Document of PyOS_(v)snprintf is wrong.

2010-12-02 Thread INADA Naoki

INADA Naoki songofaca...@gmail.com added the comment:

Sorry, I've misreaded the sentence.

--
resolution:  - invalid
status: open - closed

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



[issue10604] Allocating too much memory for pathes

2010-12-02 Thread Georg Brandl

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

Before the multiplication, bufsz is not aptly named: as your snippet shows 
it's counting the number of delimiters in the PYTHONPATH.

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

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



[issue9299] os.makedirs(): Add a keyword argument to suppress File exists exception

2010-12-02 Thread Georg Brandl

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

Well, you're not to blame since the patch merely extended the definition which 
was still using obsolete syntax anyway.

--

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



[issue10557] Malformed error message from float()

2010-12-02 Thread Alexander Belopolsky

Alexander Belopolsky belopol...@users.sourceforge.net added the comment:

I am submitting a patch (issue10557b.diff) for commit review.  As Marc 
suggested, decimal conversion is now performed on Py_UNICODE characters. For 
this purpose, I introduced _PyUnicode_NormalizeDecimal() function that takes 
Py_UNICODE and returns a PyUnicode object with whitespace stripped and 
non-ASCII digits converted to ASCII equivalents.  The PyUnicode_EncodeDecimal() 
function is no longer used and I added a comment recommending that 
_PyUnicode_NormalizeDecimal() be used instead. I would like to eventually 
remove PyUnicode_EncodeDecimal(), but I amd not sure about the proper 
deprecation procedures for undocumented C APIs.

As a result, int(), float(), etc will no longer raise UnicodeDecodeError unless 
given a string with lone surrogates.  (This error comes from UTF-8 codec that 
is applied after digit normalization.)

A few error cases such as embedded '\0' and non-digit characters with ord(c)  
255 will now raise ValueError instead of UnicodeDecodeError.  Since 
UnicodeDecodeError is a subclass of ValueError, it is unlikely that existing 
code would attempt to differentiate between the two.  It is possible to achieve 
complete compatibility, but it is hard to justify reporting different error 
types on non-digit characters below and above code point 255.

The patch contains tests for error messages that I tried to make robust by only 
requiring that s.strip() be found somewhere in the error message from int(s).  
Note that since in this patch whitespace is stripped before the string is 
passed to the parser, the parser errors do not contain the whitespace.  This 
may actually be desirable because it helps the user to see the source of the 
error without being distracted by irrelevant white space.

--
assignee:  - belopolsky
stage: unit test needed - commit review

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



[issue10557] Malformed error message from float()

2010-12-02 Thread Alexander Belopolsky

Changes by Alexander Belopolsky belopol...@users.sourceforge.net:


Added file: http://bugs.python.org/file19907/issue10557b.diff

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



[issue10557] Malformed error message from float()

2010-12-02 Thread Mark Dickinson

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

Is the stripping of whitespace necessary for this fix?

Currently, the complex constructor accepts whitespace both inside and outside 
the (optional) parentheses:

 complex(' ( 2+3j ) ')
(2+3j)

The classes of whitespace accepted in each position are the same.  IIUC, with 
your patch, that consistency would be lost---is that right?

If the whitespace stripping isn't necessary then I'd prefer to leave that 
change for another issue.

--

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



[issue10597] Py_SetPythonHome document shows same url twice.

2010-12-02 Thread Georg Brandl

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

You can give two homes; prefix and exec_prefix.  r86933 now links to 
PYTHONHOME where this is already documented properly.

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

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



[issue7475] codecs missing: base64 bz2 hex zlib hex_codec ...

2010-12-02 Thread Georg Brandl

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

Codecs brought back and (un)transform implemented in r86934.

--
resolution:  - fixed
status: open - closed

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



[issue10557] Malformed error message from float()

2010-12-02 Thread Mark Dickinson

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

Just to clarify:  I'm not opposed to allowing arbitrary Unicode whitespace in 
the float, int, complex constructors (indeed, it's probably a good thing).  But 
I'd like to see the change made consistently;  for the complex constructor this 
looks a bit involved, so it would probably be cleaner to have a separate patch 
to make the whitespace changes.

--

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



[issue9915] speeding up sorting with a key

2010-12-02 Thread Raymond Hettinger

Raymond Hettinger rhettin...@users.sourceforge.net added the comment:

AP: I've already given my blessing to the patch.
Just wanted to note what the existing code did.
I also trust timings but recognize that they
reflect a particular build configuration 
(compiler/processor/o.s)and the usage pattern 
for a particular benchmark.

--

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



[issue3132] implement PEP 3118 struct changes

2010-12-02 Thread Pauli Virtanen

Pauli Virtanen p...@iki.fi added the comment:

For reference, Numpy's PEP 3118 implementation is here:

http://github.com/numpy/numpy/blob/master/numpy/core/_internal.py#L357

http://github.com/numpy/numpy/blob/master/numpy/core/src/multiarray/buffer.c#L76

It would be a good idea to ensure that the numpy and struct implementations are 
in agreement about details of the format strings.
(I wouldn't take the Numpy implementation as the definitive one, though.)

- The sub-structs in Numpy arrays (in align=True mode) are aligned
  according to the maximum alignment of the fields.

- I assumed the 'O' format in the PEP is supposed to be similar to Numpy
  object arrays. This implies some reference counting semantics. The
  Numpy PEP 3118 implementation assumes the memory contains borrowed
  references, valid at least until the buffer is released.
  Unpacking 'O' should probably INCREF whatever PyObject* pointer is
  there.

- I assumed the alignment specifiers were unscoped. I'm not sure
  however whether this is the best thing to do.

- The function pointers and pointers to pointers were not implemented.
  (Numpy cannot represent those as data types.)

--
nosy: +pv

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



[issue10557] Malformed error message from float()

2010-12-02 Thread Alexander Belopolsky

Alexander Belopolsky belopol...@users.sourceforge.net added the comment:

On Thu, Dec 2, 2010 at 12:54 PM, Mark Dickinson rep...@bugs.python.org wrote:
..
 The classes of whitespace accepted in each position are the same.  IIUC, with 
 your patch,
 that consistency would be lost---is that right?

Good point. I thought The PyUnicode_EncodeDecimal() was stripping the
space, but it was converting it to ASCII ' ' instead.  That's easy to
fix.   Can you suggest a test case?

--

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



[issue10557] Malformed error message from float()

2010-12-02 Thread Alexander Belopolsky

Alexander Belopolsky belopol...@users.sourceforge.net added the comment:

On Thu, Dec 2, 2010 at 1:28 PM, Alexander Belopolsky
belopol...@users.sourceforge.net wrote:
..
  Can you suggest a test case?

I mean for complex().

--

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



[issue9621] Graphviz output for 2to3 fixer patterns

2010-12-02 Thread Matt Bond

Matt Bond gmattb...@gmail.com added the comment:

Sorry for the delay in responding, and for getting this patch cleaned up and 
submitted.

While I was going through my code to submit it, I found a couple of additional 
issues with it. Then I ended up becoming very busy with my grad courses. As a 
result, I haven't had a chance to do anything with it. Currently, my plan is to 
rework it over the winter break to fix the issues, make it work correctly with 
python 3, and remove the dependence on the external graphviz package (which 
should resolve the import issue as well).

--

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



[issue9333] Expose a way to enable os.symlink on Windows

2010-12-02 Thread Brian Curtin

Brian Curtin cur...@acm.org added the comment:

Fixed in r86935.

Tests pass on the following setups:
- Windows 7 (regular user - no symlink privilege)
- Windows 7 (administrator + symlink privilege)
- Windows Server 2003 (no symlink abilities)
- Arch Linux (just a sanity check)

I'm going to create a follow-up issue to explain how this works for the Windows 
part of the FAQ. There is documentation, but beginners could probably use some 
tips and explanation.

--
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

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



[issue9227] can't import Tkinter / use IDLE after installing Python 2.7 on Mac OS X

2010-12-02 Thread Michael Foord

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

Works for me too. Great!

--

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



[issue10608] Add a section to Windows FAQ explaining os.symlink

2010-12-02 Thread Brian Curtin

New submission from Brian Curtin cur...@acm.org:

A section in the Windows FAQ should better explain the recent addition of 
os.symlink and how it can be used, along with examples.

If a user just sits down and hits StartRunpython, os.symlink will almost 
positively not be available. I'll need to briefly explain privileges, which one 
is needed, how it can be obtained, and how to properly write code on Windows to 
make use of os.symlink.

There is documentation of os.symlink itself, but it's more of a developer 
reference to match the rest of the os module documentation. A beginner would 
likely need more information, but that information isn't right for 
Doc/library/os.rst.

--
assignee: brian.curtin
components: Documentation, Windows
messages: 123099
nosy: brian.curtin
priority: normal
severity: normal
stage: needs patch
status: open
title: Add a section to Windows FAQ explaining os.symlink
type: behavior
versions: Python 3.2

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



[issue10515] csv sniffer does not recognize quotes at the end of line

2010-12-02 Thread R. David Murray

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

Are you sure testA1 is correct?  It seems to me that in that case the sniffer 
can indeed not determine the delimiter, but I don't really understand the 
guessing algorithm.  The existing behavior on unquoted strings is...interesting 
:)

Also if you are willing to take the time it would be helpful to have the tests 
as a patch against test_csv.

--
nosy: +r.david.murray, skip.montanaro

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



[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Boštjan Mejak

Boštjan Mejak bostjan.me...@gmail.com added the comment:

The imaginary unit 'i' should be equvivalent to the imaginary unit 'j'. The
imaginary unit, however, should be used consistently in the source code.

--
Added file: http://bugs.python.org/file19908/unnamed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10562
___The imaginary unit #39;i#39; should be equvivalent to the imaginary unit 
#39;j#39;. The imaginary unit, however, should be used consistently in the 
source code.
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Raymond Hettinger

Raymond Hettinger rhettin...@users.sourceforge.net added the comment:

If this change were important, the numpy/scipy guys would have requested it 
long ago.  Any possible benefit would be slight and not at all worth the 
disruption.

   s.replace('j', 'i')

--
nosy: +rhettinger

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



[issue10557] Malformed error message from float()

2010-12-02 Thread Mark Dickinson

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

Ah yes, you're right: this shouldn't be a hard fix. I withdraw my suggestion 
for a separate patch.  :-)

Checking that:

  complex('\xa0(\xa02+3j\xa0)\xa0') == complex(2.0, 3.0)

would probably be enough.

--

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



[issue10535] Enable warnings by default in unittest

2010-12-02 Thread Brian Curtin

Brian Curtin cur...@acm.org added the comment:

Here's a patch for the ResourceWarnings that were introduced.

--
nosy: +brian.curtin
Added file: http://bugs.python.org/file19909/warnings.diff

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



[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Mark Dickinson

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

 There should be an environment variable to make the symbol settable.

That could work;  it's a bit late to do this in 3.2, though.  How about the 
following transition strategy for the complex output.

Python 3.3: Introduce PYTHONIMAGINARYSYMBOL environment variable (and possibly 
also a related command-line option to the interpreter?).

Python 3.4: Show a warning on startup if this environment variable isn't used.

Python 3.5: Make the environment variable mandatory.

Python 3.6: Make the environment variable optional again, but this time with 
the default output being 'i' rather than 'j'.

Python 3.7: Deprecate use of PYTHONIMAGINARYSYMBOL.  (Warning on startup if 
it's set.)

Python 3.8: Error on startup if PYTHONIMAGINARYSYMBOL is set.

Python 3.9: Go back to ignoring PYTHONIMAGINARYSYMBOL.

I'm sure we could find a compatible transition strategy for the complex 
*inputs*: (3.3: accept both 'i' and 'j';  3.6: warn about 'j' usage; 3.8 remove 
acceptance of 'j' on input).

--

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



[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Boštjan Mejak

Boštjan Mejak bostjan.me...@gmail.com added the comment:

That is acceptable, but way to slow for the 'j' imaginary unit to become
extinct. It should happen sooner.

--
Added file: http://bugs.python.org/file19910/unnamed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10562
___That is acceptable, but way to slow for the #39;j#39; imaginary unit to 
become extinct. It should happen sooner.
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10603] __file__ not usable, with certain paths on windows XP.

2010-12-02 Thread Campbell Barton

Campbell Barton ideasma...@gmail.com added the comment:

This is fixed in 3.2a4.

--

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



[issue10603] __file__ not usable, with certain paths on windows XP.

2010-12-02 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
resolution:  - out of date
stage:  - committed/rejected
status: open - closed

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



[issue9621] Graphviz output for 2to3 fixer patterns

2010-12-02 Thread Éric Araujo

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


--
versions: +Python 3.3 -Python 3.2

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



[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Georg Brandl

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

We also should consider a good roadmap to account for the eventual support of 
quaternions in the language syntax.

Since the conventional mathematical symbols for the additional imaginary units 
of quaternions are j and k, confusion is bound to happen.

My preferred solution is to limit PYTHONIMAGINARYSYMBOL values to i, j or 
k in Python 3.4.  The two additional imaginary unit symbols would then be a 
cyclic permutation of i,j,k, viz. for PYTHONIMAGINARYSYMBOL=j, the units are k 
and i.

This deterministic approach has the advantage that migration of code from one 
imaginary symbol to another is as easy as:

sed -e 's/k/l/' -e 's/j/k/' -e 's/i/j/' -e 's/l/i/'

provided that you restrict yourself not to use the characters i, j, k or l in 
identifiers, keywords or strings in the source code.

--
nosy: +georg.brandl

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



[issue10299] Add index with links section for built-in functions

2010-12-02 Thread Éric Araujo

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

By the way, I wonder why this page is named “functions” and the one for 
“builtins” is nearly empty.

--

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



[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Antoine Pitrou

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

 Since the conventional mathematical symbols for the additional
 imaginary units of quaternions are j and k, confusion is bound to
 happen.
 
 My preferred solution is to limit PYTHONIMAGINARYSYMBOL values to i,
 j or k in Python 3.4.  The two additional imaginary unit symbols
 would then be a cyclic permutation of i,j,k, viz. for
 PYTHONIMAGINARYSYMBOL=j, the units are k and i.

Can we consider an environment variable to change the direction of the
permutation, e.g. PYTHONIMAGINARYPERMUTATIONDIR=-1?

Otherwise +11j from me.

--

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



[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Raymond Hettinger

Raymond Hettinger rhettin...@users.sourceforge.net added the comment:

Since we have two distinct user groups (engineers and everyone else), it's 
clear that we should fork Python.  That would let each group work with their on 
most-natural-representation and it would prevent unnecessary configuration 
challenges.

Benjamin, could you please start a new branch and fork the website into 
python.i.org and python.j.org.

--

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



[issue10609] dbm documentation example doesn't work (iteritems())

2010-12-02 Thread Sandro Tosi

New submission from Sandro Tosi sandro.t...@gmail.com:

Following http://mail.python.org/pipermail/docs/2010-December/002356.html a 
possible solution is:


diff -r 3b07f7bb0289 Doc/library/dbm.rst
--- a/Doc/library/dbm.rst   Thu Dec 02 19:29:18 2010 +0100
+++ b/Doc/library/dbm.rst   Thu Dec 02 21:51:06 2010 +0100
@@ -88,7 +88,7 @@
 
# Loop through contents.  Other dictionary methods
# such as .keys(), .values() also work.
-   for k, v in db.iteritems():
+   for k, v in dict(db).items():
print(k, '\t', v)
 
# Storing a non-string key or value will raise an exception (most

How much ugly is this? alternatively, we can:


 for k in db.keys():
... print(k, '\t', db.get(k))

What would be the best solution? (anyhow the comments above the for loop has to 
be changed).

Regards,
Sandro

--
messages: 123113
nosy: sandro.tosi
priority: normal
severity: normal
status: open
title: dbm documentation example doesn't work (iteritems())

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



[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Boštjan Mejak

Boštjan Mejak bostjan.me...@gmail.com added the comment:

How did you implement the letter 'j' as the imaginary unit? Can you now
implement the letter 'i' to act as an imaginary unit? Is that possible? If
it's possible in MATLAB, why not have both 'j' and 'i' in Python as well?

--
Added file: http://bugs.python.org/file19911/unnamed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10562
___How did you implement the letter #39;j#39; as the imaginary unit? Can you now 
implement the letter #39;i#39; to act as an imaginary unit? Is that possible? 
If it#39;s possible in MATLAB, why not have both #39;j#39; and #39;i#39; 
in Python as well?
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Georg Brandl

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

I heard that MathWorks has a patent on METHOD AND APPARATUS FOR IMAGINATORIAL 
FREEDOM, so if that's true we might not be allowed to implement it.

--

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



[issue10299] Add index with links section for built-in functions

2010-12-02 Thread Georg Brandl

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

That's legacy from the good old latex days.

--

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



[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Boštjan Mejak

Boštjan Mejak bostjan.me...@gmail.com added the comment:

In electrical engineeringhttp://en.wikipedia.org/wiki/Electrical_engineering
and
related fields, the imaginary unit is often denoted by *j* to avoid
confusion with electrical
currenthttp://en.wikipedia.org/wiki/Current_(electricity) as
a function of time, traditionally denoted by *i*(*t*) or just *i*.
-Wikipedia

Does Python have to deal with electrical current as a function of time to
associate j with the imaginary unit and not i?

--
Added file: http://bugs.python.org/file19912/unnamed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10562
___font class=Apple-style-span face=sans-serifspan class=Apple-style-span 
style=line-height: 19px;span class=Apple-style-span style=font-size: 
13px; quot;In a href=http://en.wikipedia.org/wiki/Electrical_engineering; 
title=Electrical engineering style=text-decoration: none; color: rgb(6, 69, 
173); background-image: none; background-attachment: initial; 
background-origin: initial; background-clip: initial; background-color: 
initial; background-position: initial initial; background-repeat: initial 
initial; electrical engineering/a and related fields, the imaginary unit 
is often denoted by ij/i to avoid confusion with a 
href=http://en.wikipedia.org/wiki/Current_(electricity) title=Current 
(electricity) class=mw-redirect style=text-decoration: none; color: rgb(6, 
69, 173); background-image: none; background-attachment: initial; 
background-origin: initial; background-clip: initial; background-color: 
initial; background-position: initial initial; background-repeat: initial 
initial; electrical current/a as a function of time, traditionally denoted 
by ii/i(it/i) or just ii/i.quot; 
-Wikipedia/span/span/fontdiv
font class=Apple-style-span face=sans-serifspan class=Apple-style-span 
style=line-height: 19px;span class=Apple-style-span style=font-size: 
13px; br/span/span/font/divdivfont class=Apple-style-span 
face=sans-serifspan class=Apple-style-span style=line-height: 
19px;span class=Apple-style-span style=font-size: 13px; Does Python 
have to deal with electrical current as a function of time to associate j with 
the imaginary unit and not i?/span/span/font/div
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Georg Brandl

Changes by Georg Brandl ge...@python.org:


Removed file: http://bugs.python.org/file19908/unnamed

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



[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Georg Brandl

Changes by Georg Brandl ge...@python.org:


Removed file: http://bugs.python.org/file19910/unnamed

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



[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Georg Brandl

Changes by Georg Brandl ge...@python.org:


Removed file: http://bugs.python.org/file19911/unnamed

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



[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Georg Brandl

Changes by Georg Brandl ge...@python.org:


Removed file: http://bugs.python.org/file19912/unnamed

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



[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Brian Curtin

Brian Curtin cur...@acm.org added the comment:

yes

--

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



[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Georg Brandl

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

Sure.  I have personally written software where i denotes, in effect, an 
electrical current.

--

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



[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Raymond Hettinger

Raymond Hettinger rhettin...@users.sourceforge.net added the comment:

 Can you now implement the letter 'i' to act as an 
 imaginary unit? Is that possible?

Yes, it's possible; however, the developers do not think it is worthwhile.

 If it's possible in MATLAB, why not have both 'j' and 'i' 
 in Python as well?

Python does some things differently that MATLAB.  One design
choice is to avoid global configurations (such as number of
places displayed in a float) because modules written by
different people make make different assumptions or may
compete for a preferred setting.

Let's try to end this thread now.  It's a bit of no-win
situtation.  None of the core devs see enough possible
benefit to warrant the disruption it would cause.  Years
of Python being used in the scientific community has shown
that the current use of 'j' has not been a problem.

--

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



[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Marc-Andre Lemburg

Marc-Andre Lemburg m...@egenix.com added the comment:

Mark Dickinson wrote:
 
 Mark Dickinson dicki...@gmail.com added the comment:
 
 There should be an environment variable to make the symbol settable.
 
 That could work;  it's a bit late to do this in 3.2, though.  How about the 
 following transition strategy for the complex output.
 
 Python 3.3: Introduce PYTHONIMAGINARYSYMBOL environment variable (and 
 possibly also a related command-line option to the interpreter?).
 
 Python 3.4: Show a warning on startup if this environment variable isn't used.
 
 Python 3.5: Make the environment variable mandatory.
 
 Python 3.6: Make the environment variable optional again, but this time with 
 the default output being 'i' rather than 'j'.
 
 Python 3.7: Deprecate use of PYTHONIMAGINARYSYMBOL.  (Warning on startup if 
 it's set.)
 
 Python 3.8: Error on startup if PYTHONIMAGINARYSYMBOL is set.
 
 Python 3.9: Go back to ignoring PYTHONIMAGINARYSYMBOL.
 
 I'm sure we could find a compatible transition strategy for the complex 
 *inputs*: (3.3: accept both 'i' and 'j';  3.6: warn about 'j' usage; 3.8 
 remove acceptance of 'j' on input).

Hmm, what calendar are you using ? April 1st is still a few months
away on the Gregorian one and even the Julian calendar isn't that far
off yet :-)

Why not simply support both for number constructors (and stick with
'j' for the language spec) ?

--
nosy: +lemburg

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



[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Mark Dickinson

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

In all seriousness, the idea of accepting both 'i' and 'j' in complex() isn't 
horrible. I'm personally -0.small on it, mostly because it seems likely to lead 
to more objections about the complex str() and repr() *output* containing 'j's. 
 I still think python-ideas would be a more appropriate place for that 
discussion, though.

--

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



[issue10557] Malformed error message from float()

2010-12-02 Thread Marc-Andre Lemburg

Marc-Andre Lemburg m...@egenix.com added the comment:

Alexander Belopolsky wrote:
 
 Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
 
 I am submitting a patch (issue10557b.diff) for commit review.  As Marc 
 suggested, decimal conversion is now performed on Py_UNICODE characters. For 
 this purpose, I introduced _PyUnicode_NormalizeDecimal() function that takes 
 Py_UNICODE and returns a PyUnicode object with whitespace stripped and 
 non-ASCII digits converted to ASCII equivalents.  The 
 PyUnicode_EncodeDecimal() function is no longer used and I added a comment 
 recommending that _PyUnicode_NormalizeDecimal() be used instead. I would like 
 to eventually remove PyUnicode_EncodeDecimal(), but I amd not sure about the 
 proper deprecation procedures for undocumented C APIs.
 
 As a result, int(), float(), etc will no longer raise UnicodeDecodeError 
 unless given a string with lone surrogates.  (This error comes from UTF-8 
 codec that is applied after digit normalization.)
 
 A few error cases such as embedded '\0' and non-digit characters with ord(c) 
  255 will now raise ValueError instead of UnicodeDecodeError.  Since 
 UnicodeDecodeError is a subclass of ValueError, it is unlikely that existing 
 code would attempt to differentiate between the two.  It is possible to 
 achieve complete compatibility, but it is hard to justify reporting different 
 error types on non-digit characters below and above code point 255.
 
 The patch contains tests for error messages that I tried to make robust by 
 only requiring that s.strip() be found somewhere in the error message from 
 int(s).  Note that since in this patch whitespace is stripped before the 
 string is passed to the parser, the parser errors do not contain the 
 whitespace.  This may actually be desirable because it helps the user to see 
 the source of the error without being distracted by irrelevant white space.

Thanks for the patch. I've had a quick look...

Some comments:

 * Please change the API _PyUnicode_NormalizeDecimal() to
   PyUnicode_ConvertToASCIIDecimal() - that's closer to what
   it does.

 * Don't have the API remove any whitespace. It should just
   work on decimal digit code points (chainging the length
   of the Unicode string is a bad idea).

 * Please remove the note This function is no longer used.
   Use _PyUnicode_NormalizeDecimal instead. from the
   PyUnicode_EncodeDecimal() API description in the
   header file. The API won't go away (it does have its
   use and is being used in 3rd party extensions) and
   you cannot guide people to use a Python private API.

 * Please double check the ref counts. I think you have a leak
   in PyLong_FromUnicode() (for norm) and possible in other
   functions as well.

--

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



[issue10528] argparse uses %s in gettext calls

2010-12-02 Thread Éric Araujo

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

Georg, do I have to make a patch before beta1 for this to go in 3.2?

--
nosy: +georg.brandl

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



[issue8989] email.utils.make_msgid: specify domain

2010-12-02 Thread R. David Murray

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

Committed to py3k in r86936 with minor fixups.

--
resolution:  - accepted
stage: patch review - committed/rejected
status: open - closed

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



[issue10603] __file__ not usable, with certain paths on windows XP.

2010-12-02 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

Great!

--

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



[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Marc-Andre Lemburg

Marc-Andre Lemburg m...@egenix.com added the comment:

Mark Dickinson wrote:
 
 Mark Dickinson dicki...@gmail.com added the comment:
 
 In all seriousness, the idea of accepting both 'i' and 'j' in complex() isn't 
 horrible. I'm personally -0.small on it, mostly because it seems likely to 
 lead to more objections about the complex str() and repr() *output* 
 containing 'j's.  I still think python-ideas would be a more appropriate 
 place for that discussion, though.

I think this falls under a locale problem of some sort...
engineers like 'j', mathematician prefer 'i'.

Personally, I think it's more important to be able to read
scientific data easily without too many problems, then to be
able to write the processed data in exactly the same way it
was read.

When formatting complex numbers, you have the issues
of whether to include spaces, parens, 'i' or 'j', so this
is better left to a application space function to deal with,
IMHO.

I would prefer to have str() and repr() always use the
parens and j notation - it makes recognizing complex numbers
easier, e.g. compare

(1+0j)
 0+1j
1j
 11
11

to

(1+0j)
 0+1j
(0+1j)
 11
11

(but I guess that another problem)

--

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



[issue9915] speeding up sorting with a key

2010-12-02 Thread Daniel Stutzbach

Daniel Stutzbach stutzb...@google.com added the comment:

Committed as r86937.  Thanks again for reviewing!  Although I do not anticipate 
any problems, I will keep an eye on the buildbots just in case.

Antoine, regarding ms-alloced = (list_size + 1) / 2;, I ended up adding an 
extensive comment after all.

--

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



[issue10528] argparse uses %s in gettext calls

2010-12-02 Thread Georg Brandl

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

That would be good.  While you could argue it's a bug, the fix is also slightly 
incompatible.

--

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



[issue9915] speeding up sorting with a key

2010-12-02 Thread Daniel Stutzbach

Changes by Daniel Stutzbach stutzb...@google.com:


--
components: +Interpreter Core -Library (Lib)
resolution:  - accepted
stage: patch review - committed/rejected
status: open - closed

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



[issue10197] subprocess.getoutput fails on win32

2010-12-02 Thread Éric Araujo

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

I think we should implement getstatusoutput and getoutput with Popen objects to 
gain portability and avoid spawning subshells.

--

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



[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Mark Dickinson

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

 Personally, I think it's more important to be able to read
 scientific data easily without too many problems, then to be
 able to write the processed data in exactly the same way it
 was read.

I wonder whether there are many examples where scientific data is written in a 
form that Python's complex() constructor couldn't currently read, but would be 
able to read if it accepted 'i' in place of 'j'.

My (wild) guess would be that, in the cases where the data isn't stored in 
binary form anyway, complex numbers are written simply as pairs of floats.

--

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



[issue9915] speeding up sorting with a key

2010-12-02 Thread Antoine Pitrou

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

Thank you!

--

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



[issue10557] Malformed error message from float()

2010-12-02 Thread Alexander Belopolsky

Alexander Belopolsky belopol...@users.sourceforge.net added the comment:

On Thu, Dec 2, 2010 at 4:34 PM, Marc-Andre Lemburg
rep...@bugs.python.org wrote:
..
  * Please change the API _PyUnicode_NormalizeDecimal() to
   PyUnicode_ConvertToASCIIDecimal() - that's closer to what
   it does.


Are you sure it is a good idea to give it a public name?  I have no
problem with calling it _PyUnicode_ConvertToASCIIDecimal().
(Transform may be a better term, though.)

  * Don't have the API remove any whitespace. It should just
   work on decimal digit code points (chainging the length
   of the Unicode string is a bad idea).


Yes, that was a bad idea, but the old EncodeDecimal was replacing all
Unicode space with ASCII ' '.  It will be hard to replicate old
behavior without doing the same in  ConvertToASCIIDecimal().

  * Please remove the note This function is no longer used.
   Use _PyUnicode_NormalizeDecimal instead. from the
   PyUnicode_EncodeDecimal() API description in the
   header file. The API won't go away (it does have its
   use and is being used in 3rd party extensions) and
   you cannot guide people to use a Python private API.


OK.  I had the same reservations about recommending private API.

  * Please double check the ref counts. I think you have a leak
   in PyLong_FromUnicode() (for norm) and possible in other
   functions as well.

Will do.  I should also add some more tests for error conditions.  I
test for leaks, but if the error branch is not covered, it is not
covered.

--

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



[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Georg Brandl

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

That would be a good question for a numpy/scipy-related mailing list, I guess.

--

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



[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Mark Dickinson

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

Maybe we need a complex analog to datetime.strptime:

  complex.strpcx('(3 + 4i)', '(%R + %Ii)') - 3 + 4j

--

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



[issue10610] Correct the float(), int() and complex() documentation

2010-12-02 Thread Marc-Andre Lemburg

New submission from Marc-Andre Lemburg m...@egenix.com:

The Python3 documentation for these numeric constructors is wrong.

Python has supported Unicode numerals specified as code points from the Unicode 
category Nd (decimal digit) since Python 1.6.0 when Unicode was first 
introduced in Python.

http://www.unicode.org/versions/Unicode5.2.0/ch04.pdf
(see Section 4.5: General Category)

The Python3 documentation adds a reference to the language spec which is not 
really ideal, since the language spec has different requirements than a number 
object constructor which has to deal with data input rather than program text:

http://docs.python.org/dev/py3k/library/functions.html#float

The Python2 documentation does not have such an implication:

http://docs.python.org/library/functions.html#float

The Python3 documentation needs to be extended to either mention that all 
Unicode code points from the Unicode category Nd  (decimal digit) are 
accepted as digits and used with their corresponding decimal digit value, or 
include a copy of the referenced language spec section with this definition of 
''digit'':

digit := ::=  0...9 and any Unicode code point with property Nd

Here's a complete list of the code point ranges that have this property:

   http://www.unicode.org/Public/5.2.0/ucd/extracted/DerivedNumericType.txt

(scroll to the end of the file)

It would also be worthwhile to add a note to the Python2 documentation.

--
assignee: d...@python
components: Documentation, Unicode
messages: 123136
nosy: d...@python, lemburg
priority: normal
severity: normal
status: open
title: Correct the float(), int() and complex() documentation
versions: Python 3.2

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



[issue10610] Correct the float(), int() and complex() documentation

2010-12-02 Thread Mark Dickinson

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


--
nosy: +mark.dickinson

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



[issue10610] Correct the float(), int() and complex() documentation

2010-12-02 Thread Mark Dickinson

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

The reference to the language spec was really just a way to avoid spelling out 
all the details (again) about the precise form of a floating-point string;  
apart from the accepted set of digits, the forms are exactly the same (optional 
sign, numeric part, optional exponent, ...);  spelling it all out twice gets a 
bit tiresome.

Would it be acceptable to add a note to the current documentation describing 
the alternative digits that are accepted?

--

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



[issue1672568] silent error in email.message.Message.get_payload

2010-12-02 Thread R. David Murray

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

I've taken another look at this, and the email module is pretty consistent 
about just passing through data if it can't interpret it according to 
standards.  I think it would lead to a cluttered API if we add support for 
being strict and raising errors piecemeal.  So I'm deferring this to 3.3 and 
the email6 work, where we plan to have a comprehensive 'strict' mode.

--
keywords:  -easy, patch
versions: +Python 3.3 -Python 3.2

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



[issue10602] Wrong assert* method in test_csv.test_register_kwargs masks error

2010-12-02 Thread Éric Araujo

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

Patch committed as r86940 (py3k), r86941 (3.1) and r86942 (2.7).

--
resolution:  - fixed
stage: needs patch - committed/rejected
status: open - closed

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



[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Antoine Pitrou

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

Le jeudi 02 décembre 2010 à 22:29 +, Mark Dickinson a écrit :
 Mark Dickinson dicki...@gmail.com added the comment:
 
 Maybe we need a complex analog to datetime.strptime:
 
   complex.strpcx('(3 + 4i)', '(%R + %Ii)') - 3 + 4j

How about '3 + 4i'.transform('complex')?

--

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



[issue10197] subprocess.getoutput fails on win32

2010-12-02 Thread R. David Murray

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

Do you have in implementation in mind?  I'm not clear how this would work.

--

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



[issue10367] python setup.py sdist upload --show-response can fail with UnboundLocalError: local variable 'result' referenced before assignment

2010-12-02 Thread Daniel Tavares

Daniel Tavares danielmtava...@gmail.com added the comment:

Here's an updated patch, which fixes the passing of multiple arguments to 
self.announce, based on Priscila's fix.

--
nosy: +daniel.tavares
Added file: http://bugs.python.org/file19913/10367.diff

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



[issue10610] Correct the float(), int() and complex() documentation

2010-12-02 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
nosy: +terry.reedy

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



[issue10610] Correct the float(), int() and complex() documentation

2010-12-02 Thread Alexander Belopolsky

Alexander Belopolsky belopol...@users.sourceforge.net added the comment:

Marc,

I don't want to further sprawl the python-dev thread, but it would be great if 
you could help with issue10587 as well.  That is a documentation-only issue, 
but there is some disagreement about how specific the docs should be.  Some of 
the relevant functions are documented in the header files, but some such as 
str.splitlines() are not.   I am posting it here because the level of detail 
that we want to document is probably similar in the two issues.  For example, 
we don't want to document things like int(3, -909) producing 3 in 2.6.  On the 
other hand, the fact that Arabic numerals are accepted by int() but Chinese are 
not, should probably be included.

--
nosy: +belopolsky

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



[issue10557] Malformed error message from float()

2010-12-02 Thread Stefan Krah

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

Alexander Belopolsky rep...@bugs.python.org wrote:
 On Thu, Dec 2, 2010 at 4:34 PM, Marc-Andre Lemburg
 rep...@bugs.python.org wrote:
 ..
   * Please change the API _PyUnicode_NormalizeDecimal() to
    PyUnicode_ConvertToASCIIDecimal() - that's closer to what
    it does.
 
 
 Are you sure it is a good idea to give it a public name?  I have no
 problem with calling it _PyUnicode_ConvertToASCIIDecimal().
 (Transform may be a better term, though.)

I like the public name. Extension authors can use it and be sure that
their programs accept exactly the same numeric strings as the rest of
Python.

Are you worried that the semantics might change? If they do, I would
actually welcome to have an official transformation function that
automatically follows the current preferences of python-dev (or the
Unicode Consortium).

--

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



[issue9333] Expose a way to enable os.symlink on Windows

2010-12-02 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

So the presence of os.symlink depends on some dynamic privilege?

It seems to me that it's the first time in Python. For example, os.chroot() is 
always available on Unix, even when the user is not root.  Of course the call 
will fail at runtime.

Why not simply raise an exception when the user has not enough privileges? (I 
mean OSError or WindowsError of course, not AttributeError)

--
nosy: +amaury.forgeotdarc

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



[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Boštjan Mejak

Boštjan Mejak bostjan.me...@gmail.com added the comment:

(7.8064-6j)

According to PEP 8, the output in our example should be with spaces
surrounding the subtraction operator, like this:
 (1 + 2.56j) * (-1 - 3.44j)
(7.8064 - 6j)

--
Added file: http://bugs.python.org/file19914/unnamed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10562
___divWhy does the Python parser not follow PEP 8?/divdivgt;gt;gt; (1 + 
2.56j) * (-1 - 3.44j)/divdiv(7.8064-6j)/divdivbr/divdivAccording 
to PEP 8, the output in our example should be with spaces surrounding the 
subtraction operator, like this:/div
divdivgt;gt;gt; (1 + 2.56j) * (-1 - 3.44j)/divdiv(7.8064 - 
6j)/div/div
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10557] Malformed error message from float()

2010-12-02 Thread Alexander Belopolsky

Alexander Belopolsky belopol...@users.sourceforge.net added the comment:

On Thu, Dec 2, 2010 at 6:32 PM, Stefan Krah rep...@bugs.python.org wrote:
..
 I like the public name. Extension authors can use it and be sure that
 their programs accept exactly the same numeric strings as the rest of
 Python.

 Are you worried that the semantics might change?

Yes, I am already working on a change that instead of stripping
whitespace will replace it with ASCI space.  I don't think that a
public TransformDecimalToASCII() function should care about space, but
in order to support current semantics without making an extra copy, I
need to do all replacements together.  (And of course I would not want
to publicly expose a function that modifies the string in-place.)

 If they do, I would
 actually welcome to have an official transformation function that
 automatically follows the current preferences of python-dev (or the
 Unicode Consortium).


I don't think either group has clearly articulated their preferences
with respect to such algorithm.

--

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



[issue10609] dbm documentation example doesn't work (iteritems())

2010-12-02 Thread Éric Araujo

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

Isn’t s/iteritems/items/ enough?

--
nosy: +eric.araujo

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



[issue10609] dbm documentation example doesn't work (iteritems())

2010-12-02 Thread Éric Araujo

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


--
assignee:  - d...@python
components: +Documentation
nosy: +d...@python
stage:  - needs patch
versions: +Python 3.1, Python 3.2

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



  1   2   >