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

2010-11-28 Thread Xuanji Li
Xuanji Li added the comment: I tried running bug.c using the svn head of python and got this: Could not find platform independent libraries Could not find platform dependent libraries Consider setting $PYTHONHOME to [:] Fatal Python error: Py_Initialize: Unable to get the locale encoding Look

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

2010-11-28 Thread Ezio Melotti
Ezio Melotti 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 _

[issue6454] Add "example" keyword argument to optparse constructor

2010-11-28 Thread Steven Bethard
Steven Bethard 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.

[issue5209] nntplib needs updating to RFC 3977

2010-11-28 Thread Julien ÉLIE
Julien ÉLIE 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

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

2010-11-28 Thread Georg Brandl
Georg Brandl 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 ___ _

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

2010-11-28 Thread Georg Brandl
Changes by Georg Brandl : Removed file: http://bugs.python.org/file19844/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue10544] yield expression inside generator expression does nothing

2010-11-28 Thread Georg Brandl
Georg Brandl 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

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

2010-11-28 Thread Georg Brandl
Georg Brandl added the comment: rst2html doesn't help, since it doesn't recognize Sphinx' and Python's own markup extensions. -- nosy: +georg.brandl ___ Python tracker ___

[issue3243] Support iterable bodies in httplib

2010-11-28 Thread Xuanji Li
Xuanji Li 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 __

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

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

[issue10557] Malformed error message from float()

2010-11-28 Thread Eric Smith
Changes by Eric Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

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

2010-11-28 Thread Ray.Allen
Ray.Allen 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

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

2010-11-28 Thread Senthil Kumaran
Senthil Kumaran 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 _

[issue10560] Fixes for Windows sources

2010-11-28 Thread Carlo Bramini
New submission from Carlo Bramini : 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

[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 : 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 o

[issue9709] test_distutils warning: initfunc exported twice on Windows

2010-11-28 Thread Stefan Krah
Stefan Krah 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, _a

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

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

[issue10560] Fixes for Windows sources

2010-11-28 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: -> loewis nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2010-11-28 Thread Ronald Oussoren
Ronald Oussoren 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 co

[issue10560] Fixes for Windows sources

2010-11-28 Thread Carlo Bramini
Carlo Bramini 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 remove

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

2010-11-28 Thread Michael Foord
Michael Foord added the comment: Scanning with Microsoft Security Essentials says "no threat detected". -- nosy: +michael.foord ___ Python tracker ___ __

[issue10544] yield expression inside generator expression does nothing

2010-11-28 Thread Benjamin Peterson
Benjamin Peterson 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

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

2010-11-28 Thread Mark Dickinson
Mark Dickinson 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 tha

[issue1710703] zipfile.ZipFile behavior inconsistent.

2010-11-28 Thread Boštjan Mejak
Boštjan Mejak 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. -- no

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

2010-11-28 Thread Stefan Behnel
Stefan Behnel added the comment: File checked with ClamAV under Linux, no findings. -- nosy: +scoder ___ Python tracker ___ ___ Pytho

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

2010-11-28 Thread Boštjan Mejak
New submission from Boštjan Mejak : 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 sev

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

2010-11-28 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> mark.dickinson nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing

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

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

[issue10547] FreeBSD: wrong value for LDSHARED in sysconfig

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

[issue10563] Spurious newline in time.ctime

2010-11-28 Thread Gerrit Holl
New submission from Gerrit Holl : When the time passed to time.ctime is large, it adds a newline: >>> import time >>> time.ctime(2<<36) 'Wed Apr 8 17:04:32 6325' >>> time.ctime(2<<37) 'Wed Jul 14 08:09:04 10680\n' -- components: Library (Lib) messages: 122665 nosy: Gerrit.Holl priority

[issue10547] FreeBSD: wrong value for LDSHARED in sysconfig

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

[issue10564] maths float error

2010-11-28 Thread Tom Quaile
New submission from Tom Quaile : 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 ha

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

2010-11-28 Thread Daniel Urban
New submission from Daniel Urban : 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.It

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

2010-11-28 Thread Mark Dickinson
Changes by Mark Dickinson : Removed file: http://bugs.python.org/file19832/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

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

2010-11-28 Thread Mark Dickinson
Changes by Mark Dickinson : Removed file: http://bugs.python.org/file19828/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

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

2010-11-28 Thread Mark Dickinson
Changes by Mark Dickinson : Removed file: http://bugs.python.org/file19820/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

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

2010-11-28 Thread Mark Dickinson
Mark Dickinson added the comment: Glad to oblige. :-) -- resolution: -> wont fix status: open -> closed ___ Python tracker ___ ___ P

[issue10563] Spurious newline in time.ctime

2010-11-28 Thread Eric Smith
Eric Smith 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')

[issue10563] Spurious newline in time.ctime

2010-11-28 Thread Eric Smith
Eric Smith added the comment: That should be strlen(), of course. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

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

2010-11-28 Thread Mark Dickinson
Mark Dickinson added the comment: Just to add my own thoughts: 'j' for *a* (not *the* ) 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 wo

[issue10563] Spurious newline in time.ctime

2010-11-28 Thread Eric Smith
Eric Smith 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 ___ __

[issue10563] Spurious newline in time.ctime

2010-11-28 Thread Gerrit Holl
Gerrit Holl 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 ___

[issue10563] Spurious newline in time.ctime

2010-11-28 Thread Eric Smith
Eric Smith 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

[issue10564] maths float error

2010-11-28 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue10564] maths float error

2010-11-28 Thread Mark Dickinson
Mark Dickinson 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 affec

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

2010-11-28 Thread Jesús Cea Avión
Jesús Cea Avión 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

[issue10563] Spurious newline in time.ctime

2010-11-28 Thread Gerrit Holl
Gerrit Holl 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(2<<40) 'Fri Apr 10 03:12:32 71654' -- __

[issue10557] Malformed error message from float()

2010-11-28 Thread Mark Dickinson
Mark Dickinson 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

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

2010-11-28 Thread Roumen Petrov
Roumen Petrov 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

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

2010-11-28 Thread Mark Florisson
New submission from Mark Florisson : 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 (re

[issue10563] Spurious newline in time.ctime

2010-11-28 Thread Eric Smith
Changes by Eric Smith : -- components: +Extension Modules -Library (Lib) keywords: +easy, patch stage: -> unit test needed ___ Python tracker ___ ___

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

2010-11-28 Thread Rafael Villar Burke
Rafael Villar Burke added the comment: Latest AVG Free on windows (9.0.872) says it's clean. -- nosy: +Rafael.Villar.Burke ___ Python tracker ___ ___

[issue10557] Malformed error message from float()

2010-11-28 Thread Mark Dickinson
Mark Dickinson 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 happeni

[issue10557] Malformed error message from float()

2010-11-28 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Sun, Nov 28, 2010 at 11:37 AM, Mark Dickinson wrote: > > Mark Dickinson 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 all

[issue10560] Fixes for Windows sources

2010-11-28 Thread Roumen Petrov
Roumen Petrov added the comment: posix_module has to use Py_LL(...) -- nosy: +rpetrov ___ Python tracker ___ ___ Python-bugs-list mai

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

2010-11-28 Thread Stephen Hansen
Stephen Hansen 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 _

[issue10557] Malformed error message from float()

2010-11-28 Thread Mark Dickinson
Mark Dickinson 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.) --

[issue10557] Malformed error message from float()

2010-11-28 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Sun, Nov 28, 2010 at 12:00 PM, Mark Dickinson wrote: > > Mark Dickinson 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()

[issue10557] Malformed error message from float()

2010-11-28 Thread Stefan Krah
Stefan Krah 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. -- n

[issue10567] Unicode space character \u200b unrecognised a space

2010-11-28 Thread pbnan
New submission from pbnan : 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 priori

[issue10557] Malformed error message from float()

2010-11-28 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Mark Dickinson wrote: > > Mark Dickinson 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 in

[issue10567] Unicode space character \u200b unrecognised a space

2010-11-28 Thread SilentGhost
SilentGhost added the comment: It returns False on the latest py3k checkout as well. -- nosy: +SilentGhost ___ Python tracker ___ ___

[issue10567] Unicode space character \u200b unrecognised a space

2010-11-28 Thread SilentGhost
Changes by SilentGhost : -- versions: +Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue10557] Malformed error message from float()

2010-11-28 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: float('½') > Traceback (most recent call last): > File "", line 1, in > ValueError: could not convert string to float: � > float('42½') > Traceback (most recent call last): > File "", line 1, in > ValueError Note that fractional Unicode cod

[issue10567] Unicode space character \u200b unrecognised a space

2010-11-28 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue10567] Unicode space character \u200b unrecognised a space

2010-11-28 Thread Alexander Belopolsky
Alexander Belopolsky 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: -> inval

[issue1710703] zipfile.ZipFile behavior inconsistent.

2010-11-28 Thread Georg Brandl
Georg Brandl 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 __

[issue10560] Fixes for Windows sources

2010-11-28 Thread Martin v . Löwis
Martin v. Löwis 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 bee

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

2010-11-28 Thread Martin v . Löwis
Martin v. Löwis added the comment: Thanks for the confirmations; closing this report as invalid. -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___

[issue10557] Malformed error message from float()

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

[issue10567] Unicode space character \u200b unrecognised a space

2010-11-28 Thread Martin v . Löwis
Martin v. Löwis 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

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

2010-11-28 Thread Terry J. Reedy
Terry J. Reedy 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 ___

[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 : -- nosy: -terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue10567] Unicode space character \u200b unrecognised a space

2010-11-28 Thread SilentGhost
SilentGhost 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 ___

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

2010-11-28 Thread SilentGhost
Changes by SilentGhost : -- title: Unicode space character \u200b unrecognised a space -> Some unicode space characters are not recognized as a space ___ Python tracker ___

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

2010-11-28 Thread Raymond Hettinger
Raymond Hettinger 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 ___

[issue10567] Unicode space character \u200b unrecognised a space

2010-11-28 Thread Martin v . Löwis
Martin v. Löwis 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 (w

[issue10567] Unicode space character \u200b unrecognised a space

2010-11-28 Thread SilentGhost
SilentGhost added the comment: I'm not quoting anything. Thank you very much. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue10544] yield expression inside generator expression does nothing

2010-11-28 Thread Raymond Hettinger
Raymond Hettinger 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

[issue10567] Unicode space character \u200b unrecognised a space

2010-11-28 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Martin v. Löwis wrote: > > Martin v. Löwis 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() functio

[issue10567] Unicode space character \u200b unrecognised a space

2010-11-28 Thread SilentGhost
Changes by SilentGhost : -- nosy: -SilentGhost ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue3243] Support iterable bodies in httplib

2010-11-28 Thread Raymond Hettinger
Raymond Hettinger 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 typ

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

2010-11-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: And I checked both .2 and .3 with McAfee "Nothing found" -- nosy: +terry.reedy ___ Python tracker ___ _

[issue10547] FreeBSD: wrong value for LDSHARED in sysconfig

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

[issue10567] Unicode space character \u200b unrecognised a space

2010-11-28 Thread Martin v . Löwis
Martin v. Löwis added the comment: > I'm not quoting anything. Thank you very much. Oops, sorry - I confused you with the OP. -- ___ Python tracker ___

[issue10567] Unicode space character \u200b unrecognised a space

2010-11-28 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Sun, Nov 28, 2010 at 2:07 PM, Marc-Andre Lemburg 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 >

[issue10567] Unicode space character \u200b unrecognised a space

2010-11-28 Thread Martin v . Löwis
Martin v. Löwis 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 b

[issue10567] Unicode space character \u200b unrecognised a space

2010-11-28 Thread Marc-Andre Lemburg
Marc-Andre Lemburg 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

[issue10567] Unicode space character \u200b unrecognised a space

2010-11-28 Thread Marc-Andre Lemburg
Marc-Andre Lemburg 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

[issue10567] Unicode space character \u200b unrecognised a space

2010-11-28 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Sun, Nov 28, 2010 at 2:40 PM, Marc-Andre Lemburg 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; Y

[issue10557] Malformed error message from float()

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

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

2010-11-28 Thread Brian Curtin
Brian Curtin 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? -- ___ Pyth

[issue10568] Python and the Unicode Character Database

2010-11-28 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : 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

[issue10557] Malformed error message from float()

2010-11-28 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Sun, Nov 28, 2010 at 3:09 PM, Stefan Krah wrote: .. > Decimal point: U+066B Well, not so fast: Traceback (most recent call last): File "", line 1, in UnicodeEncodeError: 'decimal' codec can't encode character '\u066b' in position 1: invalid decima

[issue10568] Python and the Unicode Character Database

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

[issue4214] no extension debug info with msvc9compiler.py

2010-11-28 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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. --

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

2010-11-28 Thread Boštjan Mejak
Boštjan Mejak 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." -Wikipedia It would be a welcome feature in Python if the prog

[issue10557] Malformed error message from float()

2010-11-28 Thread Stefan Krah
Stefan Krah added the comment: > UnicodeEncodeError: 'decimal' codec can't encode character '\u066b' Hmm, looks like a bug? I think U+066B is correct. -- ___ Python tracker ___

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

2010-11-28 Thread Blair
Blair 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

[issue10557] Malformed error message from float()

2010-11-28 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Sun, Nov 28, 2010 at 3:30 PM, Stefan Krah 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 "", line 1

  1   2   >