[issue1553] An errornous __length_hint__ can make list() raise a SystemError

2007-12-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: Please post the patch here. I'll take a look to see if it should be backported. -- assignee: -> rhettinger nosy: +rhettinger __ Tracker <[EMAIL PROTECTED]>

[issue1539] test_collections: failing refleak test

2007-12-04 Thread Guido van Rossum
Changes by Guido van Rossum: -- priority: normal -> high __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http

[issue1400] Py3k's print() flushing problem

2007-12-04 Thread Guido van Rossum
Guido van Rossum added the comment: In r59341 I added a flush of stdout and stderr at the end of each command that restores the following behavior: >>> n = sys.stdout.write('X') X>>> I still need to change io.py to properly implement line buffering though; the current implementation is wrong.

[issue1067] test_smtplib failures (caused by asyncore)

2007-12-04 Thread Guido van Rossum
Guido van Rossum added the comment: Thomas, ping? What do you think of Martin's claim that the fix is incorrect? __ Tracker <[EMAIL PROTECTED]> __ ___ P

[issue1553] An errornous __length_hint__ can make list() raise a SystemError

2007-12-04 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti: -- status: -> open __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue1540] Refleak tests: test_doctest and test_gc are failing

2007-12-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: After some hard debugging: - doctest.debug_src() is unlucky enough to trigger a garbage collection just when compiling the given code. - gc collects unreachable objects, among them is an instance of the class doctest._SpoofOut, which derives from io.StringI

[issue1545] shutil fails when copying to NTFS in Linux

2007-12-04 Thread ianaré
ianaré added the comment: Sorry about that. Here is the output from $ svn diff I've also made modifications to allow to ignore the permission errors (defaults to no) - should I post here or file new report? Added file: http://bugs.python.org/file8876/shutil.diff ___

[issue1545] shutil fails when copying to NTFS in Linux

2007-12-04 Thread Raghuram Devarakonda
Raghuram Devarakonda added the comment: Some comments about shutil.diff: 1) This seems to be against 2.5. You would be better off submitting a patch against trunk. In case of bug fixes, it will usually be back ported. This particular change is not a bug fix though. 2) patches should be either c

[issue1545] shutil fails when copying to NTFS in Linux

2007-12-04 Thread ianaré
ianaré added the comment: hmm, marked me as spam ... the tar.gz posted last message contains the original shutil, a patched version, and the diff __ Tracker <[EMAIL PROTECTED]> __ _

[issue1005] Patches to rename Queue module to queue

2007-12-04 Thread Brett Cannon
Brett Cannon added the comment: Yes, thanks for the patches, Paul! Guido sent out an email today saying that the reorg will probably be the main focus of the next Py3K release after 3.0a2. So hopefully they won't go too stale. And I just realized it might end up being best to roll Queue into t

[issue1554] [patch] socketmodule cleanups: allow the use of keywords in socket functions

2007-12-04 Thread Thomas Herve
Thomas Herve added the comment: Alright I'll add tests to the modified functions. I don't think I have to change documentation because I kept the same name for the parameters, but I'll check. Looking at the patch more, maybe it doesn't make sense on the functions taking only one parameter though

[issue469773] Write 'Using Python on Platform X' documents

2007-12-04 Thread Georg Brandl
Georg Brandl added the comment: Okay, now we have documents for Unix, Windows and Mac! -- status: pending -> closed Tracker <[EMAIL PROTECTED]>

[issue1545] shutil fails when copying to NTFS in Linux

2007-12-04 Thread Raghuram Devarakonda
Raghuram Devarakonda added the comment: The change looks fine as per yesterday's discussion. Can you submit the actual patch? it needs to include check for WindowsError name. BTW, I would put a comment when the exception is being ignored on windows. __ Tracker <[E

[issue1554] [patch] socketmodule cleanups: allow the use of keywords in socket functions

2007-12-04 Thread Martin v. Löwis
Martin v. Löwis added the comment: And what problem is solved by the removal of ARGSUSED? For the functions whose signatures you changed, can you please add documentation and test changes as well (where necessary)? Please don't remove the arguments PyObject* on METHO_NOARGS functions; that is i

[issue1545] shutil fails when copying to NTFS in Linux

2007-12-04 Thread ianaré
ianaré added the comment: sorry, should have clarified, I tested with this code: copy2 try: copystat(src, dst) except OSError, err: if WindowsError is not None and isinstance(err, WindowsError): pass else: raise copytree try: copystat(src, dst) except OSError,

[issue1555] Print-media stylesheet for sphinx docs incomplete

2007-12-04 Thread Georg Brandl
Georg Brandl added the comment: Thanks, committed as r59328. -- nosy: +georg.brandl resolution: -> accepted status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ __

[issue1555] Print-media stylesheet for sphinx docs incomplete

2007-12-04 Thread Tim Golden
New submission from Tim Golden: The print-media stylesheet in the sphinx docs did not completely eliminate the on-screen layout. The attached patch is against r59327 of sphinx/style/default.css and has been tested against html, htmlhelp and web under native Win32. -- components: Document

[issue1545] shutil fails when copying to NTFS in Linux

2007-12-04 Thread ianaré
ianaré added the comment: OK I see that now. For what it's worth, I tested the code on win2000, XP, and ubuntu using the shutil.move command on files and folders (so that it uses either copy2 or copytree). Apart from the original bug in ubuntu (copy from ext3 to ntfs-3g) it is fine. I've made fu

[issue1554] [patch] socketmodule cleanups: allow the use of keywords in socket functions

2007-12-04 Thread Thomas Herve
Thomas Herve added the comment: It's not really for solving a problem, it's an enhancement to allow the functions to be called with keyword parameters. __ Tracker <[EMAIL PROTECTED]> __ ___

[issue1554] [patch] socketmodule cleanups: allow the use of keywords in socket functions

2007-12-04 Thread Martin v. Löwis
Martin v. Löwis added the comment: What problem(s) does this solve? -- nosy: +loewis __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mail

[issue1554] [patch] socketmodule cleanups: allow the use of keywords in socket functions

2007-12-04 Thread Thomas Herve
New submission from Thomas Herve: I attach a patch where I use PyArg_ParseTupleAndKeywords in socketmodule where ARGSUSED was mentioned, or removed ARGSUSED if keywords already used. -- components: Library (Lib) files: socket_keywords.diff messages: 58189 nosy: therve severity: normal st

[issue1084] ''.find() gives wrong result in Python built with ICC

2007-12-04 Thread Simon Anders
Simon Anders added the comment: Update to the story: After I submitted the bug report to Intel, they investigated and quickly confirmed it to be a compiler bug, whcih they then managed to fix. I have just got an e-mail from Intel that the newest available version of ICC, namely version l_cc_c_10

[issue1285940] socket intial recv() latency

2007-12-04 Thread Thomas Herve
Thomas Herve added the comment: Can we close this one? -- nosy: +therve _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list mailing

[issue1552] fromfd() and socketpair() should return wrapped sockets

2007-12-04 Thread Thomas Herve
Thomas Herve added the comment: This is a nice enhancement. I attach a quick patch to add tests for that. -- nosy: +therve Added file: http://bugs.python.org/file8872/1552_test_socket.diff __ Tracker <[EMAIL PROTECTED]>

[issue1706039] Added clearerr() to clear EOF state

2007-12-04 Thread John Smith
John Smith added the comment: What's in a name? :p Done, anyway. _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list mailing list Unsubscrib

[issue1551] Port Python/import.c to py3k branch

2007-12-04 Thread Christian Heimes
Christian Heimes added the comment: Thanks! I manually fixed several of the PyString -> PyUnicode differences but it didn't work for me. Maybe I missed one or two places. Anyway the main issue is sovled. :] __ Tracker <[EMAIL PROTECTED]>

[issue1551] Port Python/import.c to py3k branch

2007-12-04 Thread Nick Coghlan
Nick Coghlan added the comment: I should have known that fiddling with import.c couldn't possibly go as smoothly as it had been ;) The problem actually turned out to be fairly shallow - the merge picked up a lot of calls to the PyString_* interfaces from the 2.x import implementation. Replacing

[issue1549] Regression with __hash__ definition and rich comparison operators

2007-12-04 Thread Thomas Herve
Thomas Herve added the comment: I gave it a try. The following patch corrects 2 problems: * classes with only __lt__ and __gt__ defined are hashable * classes defining __eq__ get a meaningful exception. I've restricted the hash_name_op to the bare minimum, but no tests failed, so I supposed it

[issue1706039] Added clearerr() to clear EOF state

2007-12-04 Thread Martin v. Löwis
Martin v. Löwis added the comment: jos, can you please provide a real name in "Your Details" of this tracker? We cannot accept anonymous/pseudonymous patches. _ Tracker <[EMAIL PROTECTED]> _

[issue1722225] Build on QNX

2007-12-04 Thread Martin v. Löwis
Martin v. Löwis added the comment: I still don't get the point of including sys/termio.h. Python does *not* use the TCGETA macro itself *at all*. Python applications may, but they can't use the included sys/termio.h, since they are written in Python, not in C. To put the question the other way: I

[issue1490190] add os.chflags() and os.lchflags() where available

2007-12-04 Thread Martin v. Löwis
Martin v. Löwis added the comment: Committed chflags.diff as r59317. -- status: open -> closed _ Tracker <[EMAIL PROTECTED]> _ ___ Py