[issue10496] import site failed when Python can't find home directory

2010-11-28 Thread Xuanji Li

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

I tried running bug.c using the svn head of python and got this:

Could not find platform independent libraries prefix
Could not find platform dependent libraries exec_prefix
Consider setting $PYTHONHOME to prefix[:exec_prefix]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
LookupError: no codec search functions registered: can't find encoding
Aborted

--
nosy: +xuanji

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



[issue10500] Palevo.DZ worm msix86 installer 3.x installer

2010-11-28 Thread Ezio Melotti

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

I checked both the 3.1.2 and 3.1.3 x86 msi installers on windows xp machine 
using Avast and it didn't find anything.

--
nosy: +ezio.melotti

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



[issue6454] Add example keyword argument to optparse constructor

2010-11-28 Thread Steven Bethard

Steven Bethard steven.beth...@gmail.com added the comment:

With argparse, you can specify formatter_class= RawDescriptionHelpFormatter and 
then format things however you want in the description.

http://docs.python.org/dev/library/argparse.html#formatter-class

So I think there's no need for this in argparse.

--

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



[issue5209] nntplib needs updating to RFC 3977

2010-11-28 Thread Julien ÉLIE

Julien ÉLIE jul...@trigofacile.com added the comment:

 +Whether posting is allowed depends on whether it
 +is included in results of CAPABILITIES; see
 +RFC 3977 section 5.1.2.
 +Deprecated:
  If the response code is 200, posting is allowed;
  if it 201, posting is not allowed.

200 and 201 do not have a deprecated meaning in RFC 3977.

200 = posting may be available during the session (possibly after commands like 
STARTTLS or AUTHINFO have been successfully sent)
201 = posting will never be allowed in the session, whatever the user does.

I agree that the only way to know whether posting is allowed at a given time 
during the session is to send CAPABILITIES and to look for POST.

--

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



[issue10500] Palevo.DZ worm msix86 installer 3.x installer

2010-11-28 Thread Georg Brandl

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

At the very least we'd need to know what virus scanner, and what version of it, 
the OP used.

--
nosy: +georg.brandl

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



[issue10500] Palevo.DZ worm msix86 installer 3.x installer

2010-11-28 Thread Georg Brandl

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


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

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



[issue10544] yield expression inside generator expression does nothing

2010-11-28 Thread Georg Brandl

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

While the behavior is confusing, I don't think yield inside comprehensions 
should be disallowed.  Rather, the fact that comprehensions have their own 
scope should be stated clearer.

--
nosy: +georg.brandl

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



[issue10507] Check well-formedness of reST markup within make patchcheck

2010-11-28 Thread Georg Brandl

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

rst2html doesn't help, since it doesn't recognize Sphinx' and Python's own 
markup extensions.

--
nosy: +georg.brandl

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10507
___
___
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-11-28 Thread Xuanji Li

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

Hi, attached is a ported version of the patch that applies against py3k.

--
nosy: +xuanji
Added file: http://bugs.python.org/file19852/issue_3243_py3k.diff

___
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



[issue10500] Palevo.DZ worm msix86 installer 3.x installer

2010-11-28 Thread Stefan Krah

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

Checked python-3.1.2.msi with f-prot, no viruses. Checked download
with firefox (which claims to do a short virus scan), no results.

--
nosy: +skrah

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10500
___
___
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-11-28 Thread Eric Smith

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


--
nosy: +eric.smith

___
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



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

2010-11-28 Thread Ray.Allen

Ray.Allen ysj@gmail.com added the comment:

Thanks for Terry's addition to the patch! 

On my python3.2a3 on windows(also copied os.py and test_os.py to the 
installation), I only get the tow os.link errors. And this is because the 
python3.2a3 hasn't the os.link function, and the test.LinkTests in test_os.py 
is added later after python3.2a3, at r86733.

I don't know Why is there a WindowsError in time.sleep(), but I cannot 
reproduce this Error.

--

___
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



[issue10500] Palevo.DZ worm msix86 installer 3.x installer

2010-11-28 Thread Senthil Kumaran

Senthil Kumaran orsent...@gmail.com added the comment:

No problems when I downloaded and installed on Windows XP.
I scanned using the Symantec EndPoint protection and no threats found.

--
nosy: +orsenthil

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



[issue10560] Fixes for Windows sources

2010-11-28 Thread Carlo Bramini

New submission from Carlo Bramini carlo.bra...@libero.it:

Hello,
I was able to compile latest python sources with MSVC5, by importing and fixing 
a bit the project workspaces of MSVC6.
During this action I received some messages, so I gave a look to the sources 
and I would like to suggest the following fixes:

1) in posixmodule.c, I had a warning of constant out of range for 
secs_between_epochs.
The problem has been solved by applying i64 suffix as suggested in MSDN for 
doing correct declaration of 64 bits constants.
While doing this fix, I took this chance for adding support for all currently 
supported platforms: MSVC, GCC and Watcom.

2) in posixmodule.c, I fixed a bit check_gfax() function:
- Function declaration has been fixed with 'void' in its parameter section 
(fixes a warning).
- I removed the variable 'checked' and I placed instead the handle to kernel32 
module.
- I removed the L-value assignment: all other source codes in Python are 
already corrected in that manner, this is the last one that needs to be fixed.

3) in posixmodule.c, there is a bug in function Py_GetFileAttributesExW(): it 
tests for 'gfaxa' but later it uses 'gfaxw'.

4) in dl_nt.c, I fixed function prototypes with void (solves a warning).

5) in dl_nt.c, in function _LoadActCtxPointers(), I do not see a good reason 
for using widechar version of GetModuleHandle, since it just need to retrieve 
the instance of kernel32.

6) in dynload_win.c, I fixed _Py_ActivateActCtx prototype declaration (solves a 
warning).

7) in dynload_win.c, I suggest to rename local strcasecmp() to something less 
dangerous to prototype conflicts.

8) in dynload_win.c, in function _PyImport_GetDynLoadFunc() the first 'cookie' 
variable is not used, so its declaration has been removed.

I hope you will find this useful.

Sincerely,

Carlo Bramini.

--
components: Windows
files: python.txt
messages: 122651
nosy: Carlo_Bramini
priority: normal
severity: normal
status: open
title: Fixes for Windows sources
Added file: http://bugs.python.org/file19853/python.txt

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



[issue10561] The pdb command 'clear bpnumber' may delete more than one breakpoint

2010-11-28 Thread Xavier de Gaye

New submission from Xavier de Gaye xdeg...@gmail.com:

Description:

1. When deleting a single breakpoint, all the breakpoints located on
   the line of this breakpoint are also deleted. See the test case
   below.

2. The pdb 'clear' command documentation does not mention that all the
   breakpoints on a line can be deleted with the command:

clear filename:lineno

See the proposed bdb patch and documentation patch below.


Test case:
--
#   File foobar.py   #
def main():
pass

if __name__ == '__main__':
main()
#   Test case   #
xavier$ /usr/local/bin/python2.7
Python 2.7 (r27:82500, Jul 13 2010, 21:30:27)
[GCC 4.3.2] on linux2
Type help, copyright, credits or license for more information.
 import pdb, foobar
 pdb.run('foobar.main()')
 string(1)module()
(Pdb) break foobar.main
Breakpoint 1 at /home/xavier/tmp/foobar.py:1
(Pdb) break foobar.main
Breakpoint 2 at /home/xavier/tmp/foobar.py:1
(Pdb) break
Num Type Disp Enb   Where
1   breakpoint   keep yes   at /home/xavier/tmp/foobar.py:1
2   breakpoint   keep yes   at /home/xavier/tmp/foobar.py:1
(Pdb) clear 1
Deleted breakpoint 1
(Pdb) break
(Pdb)
#


Patch:
--
Index: Doc/library/pdb.rst
===
--- Doc/library/pdb.rst (revision 86836)
+++ Doc/library/pdb.rst (working copy)
@@ -239,7 +239,8 @@
Temporary breakpoint, which is removed automatically when it is first hit.  
The
arguments are the same as break.
 
-cl(ear) [*bpnumber* [*bpnumber ...*]]
+cl(ear) [*filename:lineno* | *bpnumber* [*bpnumber ...*]]
+   With a *filename:lineno* argument, clear all the breakpoints at this line.
With a space separated list of breakpoint numbers, clear those breakpoints.
Without argument, clear all breaks (but first ask confirmation).
 
Index: Lib/bdb.py
===
--- Lib/bdb.py  (revision 86836)
+++ Lib/bdb.py  (working copy)
@@ -250,6 +250,12 @@
 list.append(lineno)
 bp = Breakpoint(filename, lineno, temporary, cond, funcname)
 
+def prune_breaks(self, filename, lineno):
+if (filename, lineno) not in Breakpoint.bplist:
+self.breaks[filename].remove(lineno)
+if not self.breaks[filename]:
+del self.breaks[filename]
+
 def clear_break(self, filename, lineno):
 filename = self.canonic(filename)
 if not filename in self.breaks:
@@ -261,10 +267,7 @@
 # pair, then remove the breaks entry
 for bp in Breakpoint.bplist[filename, lineno][:]:
 bp.deleteMe()
-if (filename, lineno) not in Breakpoint.bplist:
-self.breaks[filename].remove(lineno)
-if not self.breaks[filename]:
-del self.breaks[filename]
+self.prune_breaks(filename, lineno)
 
 def clear_bpbynumber(self, arg):
 try:
@@ -277,7 +280,8 @@
 return 'Breakpoint number (%d) out of range' % number
 if not bp:
 return 'Breakpoint (%d) already deleted' % number
-self.clear_break(bp.file, bp.line)
+bp.deleteMe()
+self.prune_breaks(bp.file, bp.line)
 
 def clear_all_file_breaks(self, filename):
 filename = self.canonic(filename)
===

--
components: Library (Lib)
messages: 122652
nosy: xdegaye
priority: normal
severity: normal
status: open
title: The pdb command 'clear bpnumber' may delete more than one breakpoint
type: behavior
versions: Python 2.7

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



[issue9709] test_distutils warning: initfunc exported twice on Windows

2010-11-28 Thread Stefan Krah

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

Thinking about it, declaring PyMODINIT_FUNC as void would be a huge
step backwards. Using PyMODINIT_FUNC is the correct way of doing things.
The current situation punishes developers who actually read the docs.

If a C module stops working because of the change, _all_ the maintainer
has to do is change a single line in the sources. PyMODINIT_FUNC is
nearly 10 years old, so I think this is not too much to ask.


May I suggest deprecating get_export_symbols() for these reasons:

  1) The docstring is incorrect: The function does not 'either
 use export_symbols or PyInit_ + module_name'. It forcibly
 adds PyInit_ + module_name', if it isn't already present in
 export_symbols.

  2) PyMODINIT_FUNC - which is nearly 10 years old - has obsoleted
 this function.

  3) Developers who do the right thing are punished, since they have
 to investigate the warning.



It is also possible to leave the function (see initfunc2.patch). Then
again, on its own get_export_symbols() is practically useless.

--
Added file: http://bugs.python.org/file19854/initfunc2.patch

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



[issue8710] test_xpickle: compat tests: workaround for missing test_support

2010-11-28 Thread Stefan Krah

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

Right, Debian's solution is quite reasonable. Closing as wont_fix.

--
resolution:  - wont fix
stage:  - committed/rejected
status: open - closed

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



[issue10560] Fixes for Windows sources

2010-11-28 Thread Georg Brandl

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


--
assignee:  - loewis
nosy: +loewis

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



[issue10537] OS X IDLE 2.7rc1 from 64-bit installer hangs when you paste something.

2010-11-28 Thread Ronald Oussoren

Ronald Oussoren ronaldousso...@mac.com added the comment:

Ned: I was thinking of Issue6075

The patch in that issue needs work, IIRC I was pretty sure at the time that the 
patch was too large and changed more code that it should have.

Sadly enough I have barely had time to do any open-source work at all the last 
couple of weeks, I should have some time before the end of the year...

--

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



[issue10560] Fixes for Windows sources

2010-11-28 Thread Carlo Bramini

Carlo Bramini carlo.bra...@libero.it added the comment:

According to the instructions received at #python-dev, I'm posting a new patch 
with the same fixes made on the most recent SVN sources (py3k).
Actually the new patch does not include the fixes made on the 
GetFileAttributesEx wrappers since they have been removed in the SVN sources; 
however I would like to remember that removing that code will also break 
support for Windows 98 and Windows ME: it's true that they have it but only 
ASCII version is working.

Sincerely,

Carlo Bramini.

--
Added file: http://bugs.python.org/file19855/python-svn.txt

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



[issue10500] Palevo.DZ worm msix86 installer 3.x installer

2010-11-28 Thread Michael Foord

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

Scanning with Microsoft Security Essentials says no threat detected.

--
nosy: +michael.foord

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



[issue10544] yield expression inside generator expression does nothing

2010-11-28 Thread Benjamin Peterson

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

I think I can probably fix it, but it's debatable whether it should be done, 
since it'd make list comps more of quasi functions.

--
nosy: +benjamin.peterson

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



[issue5211] Fix complex type to avoid coercion in 2.7.

2010-11-28 Thread Mark Dickinson

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

 In my opinion, 2.6.6 was faulty in the float + xint case, for the same
 reasons as above, and 2.7 is faulty in both float + xint and complex +
 xint.

Well, I disagree:  Python is behaving as designed and documented in these 
cases.  If you want to argue that the *design* decisions are the wrong ones, 
then I'd suggest opening a discussion on the python-ideas mailing list, where 
more people are likely to get involved---this tracker isn't really the right 
place for that sort of discussion.

Leaving complex out of the mix for the moment, it sounds to me as though you'd 
like, e.g.,

float + subclass of int

to call the int subclass's __radd__ method (if it exists) before calling the 
float's __add__ method.  Is that correct?

Or are you suggesting that float's __add__ method shouldn't accept instances of 
subclasses of int at all?  (i.e., that float.__add__ should return 
NotImplemented when given an instance of xint).

In the first case, you need to come up with general semantics that would give 
you the behaviour you want for float and xint---e.g., when given numeric 
objects x and y, what general rule should Python apply to decide whether to 
call x.__add__ or y.__radd__ first?

In the second case, I'd argue that you're going against the whole idea of 
object-oriented programming; by making xint a subclass of int, you're declaring 
that its instances *are* 'ints' in a very real sense, so it's entirely 
reasonable for float's __add__ method to accept them.

In either case, note that Python 2.x is not open for behaviour changes, only 
for bugfixes.  Since this isn't a bug (IMO), such changes could only happen in 
3.x.

Please take further discussion to the python-ideas mailing list.

--

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



[issue1710703] zipfile.ZipFile behavior inconsistent.

2010-11-28 Thread Boštjan Mejak

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

Please fix this patch to raise BadZipFile instead of BadZipfile. See 
http://docs.python.org/dev/library/zipfile.html?highlight=zipfile#zipfile.BadZipfile.
 The use of the class name BadZipfile is deprecated. The class name BadZipFile 
is prefered.

--
nosy: +Retro

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



[issue10500] Palevo.DZ worm msix86 installer 3.x installer

2010-11-28 Thread Stefan Behnel

Stefan Behnel sco...@users.sourceforge.net added the comment:

File checked with ClamAV under Linux, no findings.

--
nosy: +scoder

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10500
___
___
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-11-28 Thread Boštjan Mejak

New submission from Boštjan Mejak bostjan.me...@gmail.com:

In Python, the letter 'j' denotes the imaginary unit. It would be great if we 
would follow mathematics in this regard and let the imaginary unit be denoted 
with an 'i'.

--
components: Interpreter Core
messages: 122662
nosy: Retro
priority: normal
severity: normal
status: open
title: Change 'j' for imaginary unit into an 'i'
type: feature request
versions: Python 3.2

___
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-11-28 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
assignee:  - mark.dickinson
nosy: +mark.dickinson

___
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-11-28 Thread Michael Foord

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

We follow engineering which uses j.

(I was about to close this as wontfix but Antoine is particularly keen that 
Mark deals with this issue...)

--
nosy: +michael.foord

___
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



[issue10547] FreeBSD: wrong value for LDSHARED in sysconfig

2010-11-28 Thread Stefan Krah

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

r86848: backported r85422, as required by the changes in r85358.


Antoine, there are some remaining {LDFLAGS}, two in the Darwin sections,
one in the OpenBSD section.

I think all of those should be removed as well. Do you agree?

--
nosy: +pitrou

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



[issue10563] Spurious newline in time.ctime

2010-11-28 Thread Gerrit Holl

New submission from Gerrit Holl topjakl...@gmail.com:

When the time passed to time.ctime is large, it adds a newline:

 import time
 time.ctime(236)
'Wed Apr  8 17:04:32 6325'
 time.ctime(237)
'Wed Jul 14 08:09:04 10680\n'

--
components: Library (Lib)
messages: 122665
nosy: Gerrit.Holl
priority: normal
severity: normal
status: open
title: Spurious newline in time.ctime
versions: Python 2.6, Python 2.7, Python 3.1

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



[issue10547] FreeBSD: wrong value for LDSHARED in sysconfig

2010-11-28 Thread Antoine Pitrou

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

 Antoine, there are some remaining {LDFLAGS}, two in the Darwin sections,
 one in the OpenBSD section.
 
 I think all of those should be removed as well. Do you agree?

I didn't want to mess with these things too much. I guess you can try
and we'll see.

--

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



[issue10564] maths float error

2010-11-28 Thread Tom Quaile

New submission from Tom Quaile tom.qua...@gmail.com:

Using IDLE 3.2a4
Apologies in advance for probably wasting your time. If I'm wrong, just ignore 
me. I'm very new to Python. Is this a bug, my processor or me? I'm sending this 
in as I see it's an alpha release.

If the user supplies 100 as the answer, I would have expected a result of 115 
for a 15% tip. I get 114.9.

--
files: tip.py
messages: 122667
nosy: ipcctv
priority: normal
severity: normal
status: open
title: maths float error
type: behavior
versions: Python 3.2
Added file: http://bugs.python.org/file19856/tip.py

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



[issue10565] isinstance(x, collections.Iterator) can return True, when x isn't iterable

2010-11-28 Thread Daniel Urban

New submission from Daniel Urban urban.dani...@gmail.com:

If the type of x defines __next__, but not __iter__, isinstance(x, 
collections.Iterator) returns True, but in fact x isn't iterable.

 class X:
... def __next__(self):
... raise StopIteration()
...
 x = X()
 isinstance(x, collections.Iterator)
True
 issubclass(X, collections.Iterator)
True
 list(x)
Traceback (most recent call last):
  File stdin, line 1, in module
TypeError: 'X' object is not iterable

The reason for this is that collections.Iterator.__subclasshook__ checks for a 
__next__ method, and if finds one, returns True. (The class provides an 
__iter__ mixin method, so this doesn't cause problems for classes inheriting 
collections.Iterator.)

A possible solution could be in collections.Iterator.__subclasshook__ checking 
for both required methods.

--
components: Library (Lib)
messages: 122668
nosy: durban, rhettinger, stutzbach
priority: normal
severity: normal
status: open
title: isinstance(x, collections.Iterator) can return True, when x isn't 
iterable
type: behavior
versions: Python 3.1, Python 3.2

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



[issue5211] Fix complex type to avoid coercion in 2.7.

2010-11-28 Thread Mark Dickinson

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


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

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



[issue5211] Fix complex type to avoid coercion in 2.7.

2010-11-28 Thread Mark Dickinson

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


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

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



[issue5211] Fix complex type to avoid coercion in 2.7.

2010-11-28 Thread Mark Dickinson

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


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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5211
___
___
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-11-28 Thread Mark Dickinson

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

Glad to oblige. :-)

--
resolution:  - wont fix
status: open - closed

___
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



[issue10563] Spurious newline in time.ctime

2010-11-28 Thread Eric Smith

Eric Smith e...@trueblade.com added the comment:

There's an error in time_ctime where it expects the length of the string to be 
fixed:

if (p[24] == '\n')
p[24] = '\0';

It doesn't count on the year having 5 digits. It should probably say (untested):
l = len(p);
if (l  0  p[l-1] == '\n')
p[l-1] = '\0';

I'll whip up a patch and some tests. I'm not sure if the tests will work on 
platforms other than Linux. I'll see what I can find out about ctime and large 
values.

--
nosy: +eric.smith

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



[issue10563] Spurious newline in time.ctime

2010-11-28 Thread Eric Smith

Eric Smith e...@trueblade.com added the comment:

That should be strlen(), of course.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10563
___
___
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-11-28 Thread Mark Dickinson

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

Just to add my own thoughts:  'j' for *a* (not *the* /pedantry) square root 
of -1 has, as Michael points out, a history of use in engineering (particularly 
electrical engineering) and physics.  Personally, I would have preferred 'i' to 
'j' here, but changing it now would cause (IMO) gratuitous breakage.  It really 
doesn't seem a big enough issue to be worth making a fuss about.

--

___
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



[issue10563] Spurious newline in time.ctime

2010-11-28 Thread Eric Smith

Eric Smith e...@trueblade.com added the comment:

What platform are you running this on? My Fedora 32 bit system won't support a 
time_t that large.

--

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



[issue10563] Spurious newline in time.ctime

2010-11-28 Thread Gerrit Holl

Gerrit Holl topjakl...@gmail.com added the comment:

I'm on a 64bit system (kubuntu lucid lynx)

$ uname -a
Linux sjisjka 2.6.32-25-generic #45-Ubuntu SMP Sat Oct 16 19:52:42 UTC 2010 
x86_64 GNU/Linux

--

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



[issue10563] Spurious newline in time.ctime

2010-11-28 Thread Eric Smith

Eric Smith e...@trueblade.com added the comment:

Can you try this diff and see if it solves the problem:

Index: Modules/timemodule.c
===
--- Modules/timemodule.c(revision 86848)
+++ Modules/timemodule.c(working copy)
@@ -639,6 +639,7 @@
 PyObject *ot = NULL;
 time_t tt;
 char *p;
+Py_ssize_t len;
 
 if (!PyArg_UnpackTuple(args, ctime, 0, 1, ot))
 return NULL;
@@ -657,8 +658,10 @@
 PyErr_SetString(PyExc_ValueError, unconvertible time);
 return NULL;
 }
-if (p[24] == '\n')
-p[24] = '\0';
+len = strlen(p);
+if (len  0  p[len-1] == '\n')
+/* Remove the trailing newline, if present. */
+p[len-1] = '\0';
 return PyUnicode_FromString(p);
 }

--

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



[issue10564] maths float error

2010-11-28 Thread Mark Dickinson

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


--
nosy: +mark.dickinson

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



[issue10564] maths float error

2010-11-28 Thread Mark Dickinson

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

 I get 114.9.

How many '9's are there on what you're getting?  If you really get 
'114.9' then something surprising is happening.  If, on the other hand, 
you get '114.99', then it's all as expected. :-)

The issue is one that affects the vast majority of popular programming 
languages, namely that numbers are stored internally in binary, so a number 
like 1.15 isn't exactly representable---you end up storing a (very good) 
approximation to 1.15 instead.  And then when you multiply by 100, you end up 
with a (very good) approximation to 115.0.

I highly recommend reading the floating-point section of the Python tutorial 
for an explanation of what's going on under the hood.

http://docs.python.org/dev/py3k/tutorial/floatingpoint.html

--
resolution:  - invalid
status: open - closed

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



[issue10500] Palevo.DZ worm msix86 installer 3.x installer

2010-11-28 Thread Jesús Cea Avión

Jesús Cea Avión j...@jcea.es added the comment:

VirusTotal says it is clean.

http://www.virustotal.com/file-scan/report.html?id=ca802f144a7e8268a773fa2567fecb0a1d792c62c00f751f27d103a263352113-1290961377

I suggest to close this issue.

--
nosy: +jcea

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



[issue10563] Spurious newline in time.ctime

2010-11-28 Thread Gerrit Holl

Gerrit Holl topjakl...@gmail.com added the comment:

Yes, this solves the issue:

$ ./python 
Python 3.1.3 (r313:86834, Nov 28 2010, 17:34:23) 
[GCC 4.4.3] on linux2
Type help, copyright, credits or license for more information.
 import time
 time.ctime(240)
'Fri Apr 10 03:12:32 71654'

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10563
___
___
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-11-28 Thread Mark Dickinson

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

 I am not sure, whether support for non-ascii digits in float()
 constructor is worth maintaining.

I'd be very happy to drop such support.  If you allow alternative digit sets, 
trying to work out exactly what should be supported and what shouldn't gets 
very messy;  it's even worse for int(), where bases  10 have to be taken into 
account.

 (Anyone knows whether Arabic numbers are written right to left
 or left to right?  What is the proper decimal point character?)

Well, judging by the chocolate packaging I saw recently, they're written left 
to right (so presumably if you're reading right-to-left, you see the units 
first, then the tens, etc., which always struck me as the 'right' way to write 
things in the first place :-).  No idea about the proper decimal point 
character, though.

--

___
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



[issue5043] get_msvcr() returns None rather than []

2010-11-28 Thread Roumen Petrov

Roumen Petrov bugtr...@roumenpetrov.info added the comment:

a) NoneType object is not iterable. If the function don't return empty list 
later distutil will fail on the lines like  libraries.extend(self.dll_libraries)

b) method for detection of a msvc runtime is not correct. If the method return 
a library GCC will link to two c-runtimes. Also some function dearation are not 
visible if is not specified appropriate preprocessor directive.

So I could not found reason this method to exist .

--

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



[issue10566] gdb debugging support additions (Tools/gdb/libpython.py)

2010-11-28 Thread Mark Florisson

New submission from Mark Florisson markflorisso...@gmail.com:

Attached is a patch that adds a few features to the Python debugging support 
for gdb:

- listing of globals
- python breakpoints
- python stepping/stepping over/finishing of frames/running/continuing
- python code execution in the most recent Python frame (relative to the 
selected frame)

Unit tests are included in Lib/test/test_gdb.py. It should be compatible with 
both python 3 and python 2 (this is important because libpython.py is also part 
of the Cython debugger branch, see 
https://github.com/markflorisson88/cython/blob/master/Cython/Debugger/libpython.py
 ). Python 2 tests are in that Cython branch.

It would be great if libpython.py could be installed as an actual Python  
module instead of a tool, where 'python-gdb.py' would be the actual tool that 
imports libpython.py. This may remove the need in the future to duplicate files 
in the Python source distribution and in future versions of Cython. Another 
good thing about that is that if users don't have python-gdb.py installed 
properly, or would like to use functionality without having loaded the 
interpreter in gdb (i.e. 'file python'), they can just do 'python import 
libpython' in gdb to load the Python support.

I can't assign this issue, but Dave Malcolm (dmalcolm) asked me to assign the 
issue to him, so I kindly request someone with these capabilities to assign 
this issue accordingly.

--
components: Demos and Tools
files: libpython_patch.diff
keywords: patch
messages: 122681
nosy: eggy
priority: normal
severity: normal
status: open
title: gdb debugging support additions (Tools/gdb/libpython.py)
type: feature request
versions: Python 3.2
Added file: http://bugs.python.org/file19857/libpython_patch.diff

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



[issue10563] Spurious newline in time.ctime

2010-11-28 Thread Eric Smith

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


--
components: +Extension Modules -Library (Lib)
keywords: +easy, patch
stage:  - unit test needed

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



[issue10500] Palevo.DZ worm msix86 installer 3.x installer

2010-11-28 Thread Rafael Villar Burke

Rafael Villar Burke pachibu...@gmail.com added the comment:

Latest AVG Free on windows (9.0.872) says it's clean.

--
nosy: +Rafael.Villar.Burke

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10500
___
___
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-11-28 Thread Mark Dickinson

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

About Alexander's solution:  might it make more sense to have 
PyUnicode_EncodeDecimal raise for inputs like this?  I see it as 
PyUnicode_EncodeDecimal's job to turn the unicode input into usable ASCII (or 
raise an exception);  it looks like that's not happening here.

Adding MAL to the nosy in case he wants to comment on this.

--
nosy: +lemburg

___
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-11-28 Thread Alexander Belopolsky

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

On Sun, Nov 28, 2010 at 11:37 AM, Mark Dickinson rep...@bugs.python.org wrote:

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

 I am not sure, whether support for non-ascii digits in float()
 constructor is worth maintaining.

 I'd be very happy to drop such support.  If you allow alternative digit sets, 
 trying to work out exactly what should
 be supported and what shouldn't gets very messy;  it's even worse for int(), 
 where bases  10 have to be taken
 into account.


I think there is a proposal (if not already in Unicode 6.0) to add
hexadecimal value property to UCD, but I don't think it is right for
int() and float() to depend on UCD in the first place.  If people need
to process exotic decimals, we can expose 'decimal' encoding, however,
translating from code-point to decimal value is trivial - just
subtract the code-point value for zero.

 (Anyone knows whether Arabic numbers are written right to left
 or left to right?  What is the proper decimal point character?)

 Well, judging by the chocolate packaging I saw recently, they're written left 
 to right
 (so presumably if you're reading right-to-left, you see the units first, then 
 the tens, etc.,
 which always struck me as the 'right' way to write things in the first place 
 :-).

Did your chocolate packaging use European digits or Arabic-Indic ones?
 Note that they have different bidi properties:

'EN'
 unicodedata.bidirectional('\N{ARABIC-INDIC DIGIT ONE}')
'AN'

(I am not sure what 'AN' (Arabic Numeral?) bidi property actually mean.)

--

___
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



[issue10560] Fixes for Windows sources

2010-11-28 Thread Roumen Petrov

Roumen Petrov bugtr...@roumenpetrov.info added the comment:

posix_module has to use Py_LL(...)

--
nosy: +rpetrov

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



[issue10500] Palevo.DZ worm msix86 installer 3.x installer

2010-11-28 Thread Stephen Hansen

Stephen Hansen me+pyt...@ixokai.io added the comment:

Latest Norton 360 fully updated has it clean; further, File Insight has it 
marked as Trusted (thousands of Norton users have had the same file installed 
for over a month with no reported trouble). Seems clean to me.

--
nosy: +ixokai

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10500
___
___
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-11-28 Thread Mark Dickinson

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

 Did your chocolate packaging use European digits or Arabic-Indic ones?
 Note that they have different bidi properties:

Good question;  I think it was Arabic-Indic digits, but to be honest I don't 
remember.  (It wasn't *all* that recently.)

--

___
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-11-28 Thread Alexander Belopolsky

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

On Sun, Nov 28, 2010 at 12:00 PM, Mark Dickinson rep...@bugs.python.org wrote:

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

 About Alexander's solution:  might it make more sense to have 
 PyUnicode_EncodeDecimal raise
 for inputs like this?

No, I think PyOS_string_to_double() can generate better error messages
than  PyUnicode_EncodeDecimal.  It is important to pass losslessly
encoded string to PyOS_string_to_double() for proper error reporting.
 Otherwise, we will have to catch the error in PyFloat_FromString()
just to add the string value to the message and may loose other
information such as the precise location of the offending character.
(AFAICT, we don't make use of it now, but this would be a meaningful
improvement.)

 I see it as PyUnicode_EncodeDecimal's job to turn the unicode input into 
usable ASCII
 (or raise an exception);  it looks like that's not happening here.

UTF-8 is quite usable by PyOS_string_to_double() .  UTF-8 encoder is
extremely fast and will only get faster over time.  In my opinion,
PyUnicode_EncodeDecimal() is either unnecessary or should be exposed
as a codec.

--

___
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-11-28 Thread Stefan Krah

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

 PyUnicode_EncodeDecimal() is either unnecessary or should be exposed
 as a codec.

I'm depending on PyUnicode_EncodeDecimal in cdecimal. In fact, it saved
me quite a bit of trouble. I wouldn't be surprised if other extension
writers use it as well.

--
nosy: +skrah

___
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



[issue10567] Unicode space character \u200b unrecognised a space

2010-11-28 Thread pbnan

New submission from pbnan pi...@banaszkiewicz.org:

Python:
Python 2.7 (r27:82500, Oct 20 2010, 03:21:03) 
[GCC 4.5.1] on linux2

Code:
 c = u'\u200b'
 c.isspace()
False

In both 2.6, 3.1 it works.

http://www.cs.tut.fi/~jkorpela/chars/spaces.html

--
components: Unicode
messages: 122690
nosy: pbnan
priority: normal
severity: normal
status: open
title: Unicode space character \u200b unrecognised a space
type: behavior
versions: Python 2.7

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

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

Mark Dickinson wrote:
 
 Mark Dickinson dicki...@gmail.com added the comment:
 
 About Alexander's solution:  might it make more sense to have 
 PyUnicode_EncodeDecimal raise for inputs like this?  I see it as 
 PyUnicode_EncodeDecimal's job to turn the unicode input into usable ASCII (or 
 raise an exception);  it looks like that's not happening here.
 
 Adding MAL to the nosy in case he wants to comment on this.

The purpose of the PyUnicode_EncodeDecimal() API is to convert
Unicode decimal digits to ASCII digits for interpretation by
the other usual functions to convert the ASCII representation to
numbers.

The proposed patch will not work, since it removes the support for
non-ASCII number code points, e.g. Asian number code points.

You might want to replace the error message by something more
related to floats in the float constructor. Note that UnicodeErrors
are subclasses of ValueErrors, so the errors are not unexpected
for number constructors.

--

___
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



[issue10567] Unicode space character \u200b unrecognised a space

2010-11-28 Thread SilentGhost

SilentGhost michael.mischurow+...@gmail.com added the comment:

It returns False on the latest py3k checkout as well.

--
nosy: +SilentGhost

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



[issue10567] Unicode space character \u200b unrecognised a space

2010-11-28 Thread SilentGhost

Changes by SilentGhost michael.mischurow+...@gmail.com:


--
versions: +Python 3.2

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

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

 float('½')
 Traceback (most recent call last):
   File stdin, line 1, in module
 ValueError: could not convert string to float: �
 
 float('42½')
 Traceback (most recent call last):
   File stdin, line 1, in module
 ValueError

Note that fractional Unicode code points are not supported
by the encoding function.  Neither are code points which do
not evaluate to 0-9, e.g. ones that represent numbers
larger than 9.

--

___
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



[issue10567] Unicode space character \u200b unrecognised a space

2010-11-28 Thread Alexander Belopolsky

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


--
nosy: +belopolsky

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



[issue10567] Unicode space character \u200b unrecognised a space

2010-11-28 Thread Alexander Belopolsky

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

The category of U-200B was changed in Unicode 4.0.1:


The main new features in Unicode 4.0.1 are the following:
 ...
 * Changed: general category of U+200B ZERO WIDTH SPACE
 http://unicode.org/versions/Unicode4.0.1/

--
resolution:  - invalid
status: open - pending

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



[issue1710703] zipfile.ZipFile behavior inconsistent.

2010-11-28 Thread Georg Brandl

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

Not sure what you're referring to, all occurrences of BadZipfile (except for 
its definition and its documentation) have been removed in py3k.

--

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



[issue10560] Fixes for Windows sources

2010-11-28 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

 According to the instructions received at #python-dev, I'm posting a
 new patch with the same fixes made on the most recent SVN sources
 (py3k). Actually the new patch does not include the fixes made on the
 GetFileAttributesEx wrappers since they have been removed in the SVN
 sources; however I would like to remember that removing that code
 will also break support for Windows 98 and Windows ME: it's true that
 they have it but only ASCII version is working.

Python has not been supporting Windows 98 anymore for quite some time
now. I don't see the need to support MSVC5, either. Since Windows 2000
isn't supported anymore, either, the LoadActCtxPointers function can
be dropped, and be replaced with a direct call to GetCurrentActCtx.

--

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



[issue10500] Palevo.DZ worm msix86 installer 3.x installer

2010-11-28 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

Thanks for the confirmations; closing this report as invalid.

--
resolution:  - invalid
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10500
___
___
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-11-28 Thread Alexander Belopolsky

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

Issue #10567 demonstrated the problem of relying on the Unicode
database in Python builtins.  Apparently, Unicode does not guarantee
stability of the character categories.   On the other hand, we are
already tied to UCD for the language definition.  Maybe Python should
document the version of Unicode it is using in any given version and
possibly upgrade to Unicode 6.0 should be postponed until the language
moratorium is lifted.

--

___
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



[issue10567] Unicode space character \u200b unrecognised a space

2010-11-28 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

In 2.6, there was a manually maintained list, probably dating back to before 
Unicode 4.0. Python uses the following criterion for determining white space 
characters:

/* Returns 1 for Unicode characters having the bidirectional type
   'WS', 'B' or 'S' or the category 'Zs', 0 otherwise. */

Since r75272, this is generated from the current Unicode database, and should 
thus be always correct.

Unless you can somehow prove that the criterion should be changed, or that 
Python computes it incorrectly, I'm closing this report as invalid.

--
nosy: +loewis
status: pending - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10567
___
___
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-11-28 Thread Terry J. Reedy

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

Afaik, those error have nothing to do with this issue. I just included them for 
completeness in case they were helpful to GB.

--

___
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



[issue10537] OS X IDLE 2.7rc1 from 64-bit installer hangs when you paste something.

2010-11-28 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/issue10537
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10567] Unicode space character \u200b unrecognised a space

2010-11-28 Thread SilentGhost

SilentGhost michael.mischurow+...@gmail.com added the comment:

It's not just this character. isspace() is also False for \u200c and \u200d 
(from the same category). and \u2060, \u2800 and \ufeff

--

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



[issue10567] Some unicode space characters are not recognized as a space

2010-11-28 Thread SilentGhost

Changes by SilentGhost michael.mischurow+...@gmail.com:


--
title: Unicode space character \u200b unrecognised a space - Some unicode 
space characters are not recognized as a space

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



[issue10565] isinstance(x, collections.Iterator) can return True, when x isn't iterable

2010-11-28 Thread Raymond Hettinger

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

 A possible solution could be in 
 collections.Iterator.__subclasshook__ 
 checking for both required methods.

That makes sense.  PEP 234 requires
iterators to support both methods.

--
assignee:  - rhettinger

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



[issue10567] Unicode space character \u200b unrecognised a space

2010-11-28 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

 It's not just this character. isspace() is also False for \u200c and \u200d 
 (from the same category). and \u2060, \u2800 and \ufeff

What reason do you have to believe that they should be classified as
whitespace, other than the web page you are quoting (which is apparently
out of date, and the fact that Python 2.6 was classifying
them this way, which are also out of date for the very same reason)?

--
title: Some unicode space characters are not recognized as a space - Unicode 
space character \u200b unrecognised a space

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



[issue10567] Unicode space character \u200b unrecognised a space

2010-11-28 Thread SilentGhost

SilentGhost michael.mischurow+...@gmail.com added the comment:

I'm not quoting anything. Thank you very much.

--

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



[issue10544] yield expression inside generator expression does nothing

2010-11-28 Thread Raymond Hettinger

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

This discussion should probably be moved to python-dev.  With tools like 
Twisted's inlineDefer or the Monocle package, there is a growing need to be 
able to use yield in complex expressions.  Yet, that goes against the trend 
toward making lists comps more like genexps and less like sugar for a simple 
for-loop accumulator.

Guido, do you have any thoughts on the subject?  Mark it a documentation issue 
or try out Benjamin's fix?

--
assignee:  - gvanrossum
nosy: +gvanrossum
versions: +Python 3.2

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



[issue10567] Unicode space character \u200b unrecognised a space

2010-11-28 Thread Marc-Andre Lemburg

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

Martin v. Löwis wrote:
 
 Martin v. Löwis mar...@v.loewis.de added the comment:
 
 In 2.6, there was a manually maintained list, probably dating back to before 
 Unicode 4.0. 

That's not quite correct: Python 1.6.x - 2.5.x used tables for the
PyUnicode_ISSPACE() function that were created from the Unicode database.
Python 2.6.x introduced a short-cut table for ASCII whitespace, but still
reverted back to the generated tables for non-ASCII code points.

The tables were never manually maintained, but we also did not update
Python for each new Unicode version:

Python 1.6: Unicode 3.0
Python 2.0: Unicode 3.0
Python 2.1: Unicode 3.0
Python 2.2: Unicode 3.0
Python 2.3: Unicode 3.2
Python 2.4: Unicode 3.2
Python 2.5: Unicode 4.1
Python 2.6: Unicode 5.1
Python 2.7: Unicode 5.2

 Python uses the following criterion for determining white space characters:

 /* Returns 1 for Unicode characters having the bidirectional type
'WS', 'B' or 'S' or the category 'Zs', 0 otherwise. */

This definition has been used since Python 1.6.x.

--
nosy: +lemburg

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



[issue10567] Unicode space character \u200b unrecognised a space

2010-11-28 Thread SilentGhost

Changes by SilentGhost michael.mischurow+...@gmail.com:


--
nosy:  -SilentGhost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10567
___
___
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-11-28 Thread Raymond Hettinger

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

Instead of 
hasattr(str,'next')

consider using
isinstance(str, collections.Iterable)

Also consider changing the variable name from the now overly type specific, 
str to something like source to indicate the significance of the data, not 
its type.

--
nosy: +rhettinger

___
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



[issue10500] Palevo.DZ worm msix86 installer 3.x installer

2010-11-28 Thread Terry J. Reedy

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

And I checked both .2 and .3 with McAfee Nothing found

--
nosy: +terry.reedy

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



[issue10547] FreeBSD: wrong value for LDSHARED in sysconfig

2010-11-28 Thread Stefan Krah

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

[Antoine]
 I didn't want to mess with these things too much. I guess you can try
 and we'll see.

You're right, it's better not to touch the Darwin stuff.


The 2.7 buildbots are green (including the FreeBSD ones!). I also
tested the patch successfully on OpenBSD 4.5.

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

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



[issue10567] Unicode space character \u200b unrecognised a space

2010-11-28 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

 I'm not quoting anything. Thank you very much.

Oops, sorry - I confused you with the OP.

--

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



[issue10567] Unicode space character \u200b unrecognised a space

2010-11-28 Thread Alexander Belopolsky

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

On Sun, Nov 28, 2010 at 2:07 PM, Marc-Andre Lemburg
rep...@bugs.python.org wrote:
..
 The tables were never manually maintained, but we also did not update
 Python for each new Unicode version:

 Python 1.6: Unicode 3.0
 Python 2.0: Unicode 3.0
 Python 2.1: Unicode 3.0
 Python 2.2: Unicode 3.0
 Python 2.3: Unicode 3.2
 Python 2.4: Unicode 3.2
 Python 2.5: Unicode 4.1
 Python 2.6: Unicode 5.1
 Python 2.7: Unicode 5.2


Thank you for the summary.  Note that Python reference pages have been
updated even less frequently. [1]  Since Python language and standard
library definitions are now (in 3.x) closely tied to the Unicode
definition, I wonder whether unicodedata.unidata_version should be
more prominently featured in the docs.  (Possibly even included in the
Python CLI banner, but that is probably an overkill.)

[1] http://mail.python.org/pipermail/docs/2010-November/002074.html

--

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



[issue10567] Unicode space character \u200b unrecognised a space

2010-11-28 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

 In 2.6, there was a manually maintained list, probably dating back to before 
 Unicode 4.0. 
 
 That's not quite correct: Python 1.6.x - 2.5.x used tables for the
 PyUnicode_ISSPACE() function that were created from the Unicode database.

That used to be the case until r39757, when you made this change:


r39757 | lemburg | 2005-10-20 21:06:35 +0200 (Do, 20. Okt 2005) | 7 Zeilen
Geänderte Pfade:
   M /python/trunk/Objects/unicodectype.c

Enhance the performance of two important Unicode character
type lookups: whitespace and linebreak.

These lookup tables are from the Python 1.6 version with the addition
of the 205F code point which was added as whitespace code point to
Unicode since then.



In 2.5 and 2.6, there was no table lookup anymore, but a switch
statement. Not sure how you arrived at the code; the commit message
doesn't say (but the wording suggests it was manually computed).
It was not updated in 2.6.

--

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



[issue10567] Unicode space character \u200b unrecognised a space

2010-11-28 Thread Marc-Andre Lemburg

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

It is still strange that the .isspace() property value changed,
since the code point has not changed in the recent Unicode versions:

4.1.0: 200B;ZERO WIDTH SPACE;Cf;0;BN;N;
5.1.0: 200B;ZERO WIDTH SPACE;Cf;0;BN;N;
5.2.0: 200B;ZERO WIDTH SPACE;Cf;0;BN;N;
6.0.0: 200B;ZERO WIDTH SPACE;Cf;0;BN;N;

based on http://www.unicode.org/Public/version/ucd/UnicodeData.txt

True
 python2.5 -c 'print u\u200b.isspace()'
True
 python2.6 -c 'print u\u200b.isspace()'
True
 python2.7 -c 'print u\u200b.isspace()'
False

Looking at the code again: Now I know why...

The tables in unicodectype.c were generated from the Unicode database,
but not by the makeunicodedata.py script. I used a script to generate
those tables for Python 1.6.0 and it seems that they were never updated
since then. Python 2.7 then replaced them with the data from the
makeunicodedata.py script.

That's probably why Martin thought they were manually maintained.

--

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



[issue10567] Unicode space character \u200b unrecognised a space

2010-11-28 Thread Marc-Andre Lemburg

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

Going back further shows the change:

3.0.1: 200B;ZERO WIDTH SPACE;Zs;0;BN;N;
3.2.0: 200B;ZERO WIDTH SPACE;Zs;0;BN;N;
4.0.1: 200B;ZERO WIDTH SPACE;Cf;0;BN;N;
4.1.0: 200B;ZERO WIDTH SPACE;Cf;0;BN;N;
5.1.0: 200B;ZERO WIDTH SPACE;Cf;0;BN;N;
5.2.0: 200B;ZERO WIDTH SPACE;Cf;0;BN;N;
6.0.0: 200B;ZERO WIDTH SPACE;Cf;0;BN;N;

Interesting that no one noticed in all these years.

--

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



[issue10567] Unicode space character \u200b unrecognised a space

2010-11-28 Thread Alexander Belopolsky

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

On Sun, Nov 28, 2010 at 2:40 PM, Marc-Andre Lemburg
rep...@bugs.python.org wrote:
..
 Going back further shows the change:

 3.0.1: 200B;ZERO WIDTH SPACE;Zs;0;BN;N;
 3.2.0: 200B;ZERO WIDTH SPACE;Zs;0;BN;N;
 4.0.1: 200B;ZERO WIDTH SPACE;Cf;0;BN;N;

Yes, see msg122694 above.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10567
___
___
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-11-28 Thread Stefan Krah

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

 (Anyone knows whether Arabic numbers are written right to left or left 
 to right?  What is the proper decimal point character?)

Thousands separator: U+066C
Decimal point: U+066B

١٢٣٬١٢٣٫١٢ should be: 123,123.12


Wikipedia says that digits are arranged in the usual way, lowest
value digit to the right.

--

___
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



[issue8110] subprocess.py doesn't correctly detect Windows machines

2010-11-28 Thread Brian Curtin

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

Jeff Hardy just made this change for IronPython 2.7: 
http://bitbucket.org/ironpython/ironlanguages/changeset/b6bb2a9a7bc5

Any opposition to us matching that so they don't need to patch 
Lib/subprocess.py?

--

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



[issue10568] Python and the Unicode Character Database

2010-11-28 Thread Alexander Belopolsky

New submission from Alexander Belopolsky alexander.belopol...@gmail.com:

Two recently reported issues brought into light the fact that Python
language definition is closely tied to character properties maintained
by the Unicode Consortium. [1,2]  For example, when Python switches to
Unicode 6.0.0 (planned for the upcoming 3.2 release), we will gain two
additional characters that Python can use in identifiers. [3]

With Python 3.1:

Traceback (most recent call last):
  File stdin, line 1, in module
  File string, line 1
ೱ = 1
  ^
SyntaxError: invalid character in identifier

but with Python 3.2a4:

1

Of course, the likelihood is low that this change will affect any
user, but the change in str.isspace() reported in [1] is likely to
cause some trouble:

[u'A', u'B']

[u'A\u200bB']

While we have little choice but to follow UCD in defining
str.isidentifier(), I think Python can promise users more stability in
what it treats as space or as a digit in its builtins.   For example,
I don't think that supporting

1234.56

is more important than to assure users that once their program
accepted some text as a number, they can assume that the text is
ASCII.

[1] http://bugs.python.org/issue10567
[2] http://bugs.python.org/issue10557
[3] http://www.unicode.org/versions/Unicode6.0.0/#Database_Changes

--
messages: 122718
nosy: Alexander.Belopolsky
priority: normal
severity: normal
status: open
title: Python and the Unicode Character Database

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10568
___
___
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-11-28 Thread Alexander Belopolsky

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

On Sun, Nov 28, 2010 at 3:09 PM, Stefan Krah rep...@bugs.python.org wrote:
..
 Decimal point: U+066B

Well, not so fast:

Traceback (most recent call last):
  File stdin, line 1, in module
UnicodeEncodeError: 'decimal' codec can't encode character '\u066b' in
position 1: invalid decimal Unicode string

--

___
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



[issue10568] Python and the Unicode Character Database

2010-11-28 Thread Alexander Belopolsky

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

This was meant as python-dev post, not an issue. (Sent to wrong address by 
mistake.)

--
nosy: +belopolsky
resolution:  - invalid
status: open - closed

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



[issue4214] no extension debug info with msvc9compiler.py

2010-11-28 Thread Amaury Forgeot d'Arc

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

A .pdb is the program database that contain debug info, i.e. the mapping 
between assembler positions and source lines, the description of data 
structures, and other things that are necessary to debug a program.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4214
___
___
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-11-28 Thread Boštjan Mejak

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

The Python programming language also uses j to denote the imaginary unit.
MATLAB associates both i and j with the imaginary unit.
-Wikipediahttp://en.wikipedia.org/wiki/Imaginary_unit#Alternative_notations

It would be a welcome feature in Python if the programming language would,
like MATLAB, associate both i and j with the imaginary unit.

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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10562
___quot;The Python programming language also uses j to denote the imaginary unit. 
MATLAB associates both i and j with the imaginary unit.quot; -a 
href=http://en.wikipedia.org/wiki/Imaginary_unit#Alternative_notations;Wikipedia/abr
brIt would be a welcome feature in Python if the programming language would, 
like MATLAB, associate both i and j with the imaginary unit.
___
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-11-28 Thread Stefan Krah

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

 UnicodeEncodeError: 'decimal' codec can't encode character '\u066b'

Hmm, looks like a bug? I think U+066B is correct.

--

___
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



[issue5211] Fix complex type to avoid coercion in 2.7.

2010-11-28 Thread Blair

Blair bidih...@gmail.com added the comment:

Just to keep this discussion as clear as possible Mark, it was your first
option that I suggest is needed.

When that is done (as it was for a subclass of float in 2.6.6) it is
possible for the author of the subclass to implement commutative binary
operations (like + and * that must behave the same regardless of argument
order). Otherwise (as far as I can see) this cannot be done.

On Mon, Nov 29, 2010 at 5:04 AM, Mark Dickinson rep...@bugs.python.orgwrote:


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


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

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue5211
 ___


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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5211
___Just to keep this discussion as clear as possible Mark, it was your first 
option that I suggest is needed. brbrWhen that is done (as it was for a 
subclass of float in 2.6.6) it is possible for the author of the subclass to 
implement commutative binary operations (like + and * that must behave the same 
regardless of argument order). Otherwise (as far as I can see) this cannot be 
done.br
brbrdiv class=gmail_quoteOn Mon, Nov 29, 2010 at 5:04 AM, Mark 
Dickinson span dir=ltrlt;a 
href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;/span 
wrote:brblockquote class=gmail_quote style=margin: 0pt 0pt 0pt 0.8ex; 
border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;
div class=imbr
Changes by Mark Dickinson lt;a 
href=mailto:dicki...@gmail.com;dicki...@gmail.com/agt;:br
br
br
/divRemoved file: a href=http://bugs.python.org/file19820/unnamed; 
target=_blankhttp://bugs.python.org/file19820/unnamed/abr
divdiv/divdiv class=h5br
___br
Python tracker lt;a 
href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;br
lt;a href=http://bugs.python.org/issue5211; 
target=_blankhttp://bugs.python.org/issue5211/agt;br
___br
/div/div/blockquote/divbr
___
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-11-28 Thread Alexander Belopolsky

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

On Sun, Nov 28, 2010 at 3:30 PM, Stefan Krah rep...@bugs.python.org wrote:
..
 UnicodeEncodeError: 'decimal' codec can't encode character '\u066b'

 Hmm, looks like a bug? I think U+066B is correct.

Really?  What about

Traceback (most recent call last):
  File stdin, line 1, in module
UnicodeEncodeError: 'decimal' codec can't encode character '\uff0e' in
position 4: invalid decimal Unicode string

.. and where do we draw the line?  Note that I am not against
Decimal() accepting any c with c.isdigit() returning True, but
builtins should be less promiscuous IMO.

--

___
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



  1   2   >