[issue5551] os.path.ismount takes a cross-device symlink for a mountpoint

2009-03-24 Thread Jürgen A. Erhard
Jürgen A. Erhard added the comment: Microscopic typo in title fixed (stickler for details, me? ;) -- title: os.path.ismount take a cross-device symlink for a mountpoint -> os.path.ismount takes a cross-device symlink for a mountpoint ___ Python trac

[issue2259] Poor support other than 44.1khz, 16bit audio files?

2009-03-24 Thread R. David Murray
Changes by R. David Murray : -- priority: -> normal versions: -Python 2.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue5544] test_fileio fails on windows MSVC Assertion

2009-03-24 Thread Andreas Schawo
Andreas Schawo added the comment: I stepped back to r70187 and got no assertion. An update to r70349 result in an assertion. So I reverted the changes in test_fileio.py of r70349 and got no assertion. But the test should work without assertion. I tested releases 2.6.1, 3.0.1 and current trunk

[issue2245] aifc cannot handle unrecognised chunk type "CHAN"

2009-03-24 Thread R. David Murray
R. David Murray added the comment: The patch posted in issue 2259 solves this issue by deleting the skiplist entirely and simply ignoring any unknown chunk. Given the relatively long list of skipped types compared to the short list of handled types, this may be reasonable. I am recommending in

[issue2259] Poor support other than 44.1khz, 16bit audio files?

2009-03-24 Thread R. David Murray
R. David Murray added the comment: Killing two birds with one stone is actually a bad idea when it comes to patches. I would recommend breaking this patch into its two independent pieces, the alignment fix and the skiplist fix, and attaching the skiplist fix to issue 2245 as a proposed fix ther

[issue5512] Streamline integer division

2009-03-24 Thread STINNER Victor
STINNER Victor added the comment: Would it be possible to port the patch to python trunk? -- ___ Python tracker ___ ___ Python-bugs-li

[issue5512] Streamline integer division

2009-03-24 Thread Mark Dickinson
Mark Dickinson added the comment: Hi Victor! I already applied the x_divrem patch to the trunk and to py3k. Did you mean the release branch? I'd prefer not to backport this to 2.6 or 3.0: it's not a new feature, but it's not a bugfix either and there's always some risk of breakage...

[issue5512] Streamline integer division

2009-03-24 Thread STINNER Victor
STINNER Victor added the comment: > I already applied the x_divrem patch to the trunk and to py3k Oops! I taught that you applied it to py3k and release30-maint :-/ It's ok, trunk and py3k is enough ;-) -- ___ Python tracker

[issue3944] faster long multiplication

2009-03-24 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks! Unfortunately, it looks like I messed this up yesterday by removing mul1 (after the division patch went in, mul1 wasn't used any more). I'll fix this. -- ___ Python tracker

[issue5544] test_fileio fails on windows MSVC Assertion

2009-03-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: I can definitely reproduce the problem under a Windows XP virtual machine using Visual C++ 2008 Express in debug mode. Here is a screenshot. Unfortunately, I'm not a Windows programmer and I'm not able to produce a patch for this. But the close() call in _filei

[issue3944] faster long multiplication

2009-03-24 Thread Mark Dickinson
Mark Dickinson added the comment: Updated version of longobject_diff1: - add mul1 back in - rename MAX_PARTIALS to the more descriptive BLOCK_MUL_SIZE - rewrite digits_multiply so that the call to digits_multiply_add always has b_size=BLOCK_MUL_SIZE, then hard-code this and get rid of

[issue2245] aifc cannot handle unrecognised chunk type "CHAN"

2009-03-24 Thread Sjoerd Mullender
Sjoerd Mullender added the comment: I wrote the module 16 years ago, but haven't done anything with AIFF files for probably at least 10, so I can't really comment on the merits of the two solutions (delete _skiplist or add CHAN to _skiplist). I'm fine with either. However, the proposed patch le

[issue4630] IDLE no longer respects .Xdefaults insertOffTime

2009-03-24 Thread Mehmet Köse
Mehmet Köse added the comment: Thank you very much. It was a kind of chinese torture. -- ___ Python tracker ___ ___ Python-bugs-list m

[issue4630] IDLE no longer respects .Xdefaults insertOffTime

2009-03-24 Thread Mark Summerfield
Mark Summerfield added the comment: Yes, blinking cursors are torture for me too. Fortunately you can switch them off globally in Windows, and in most cases on Linux (which is what I use). But not on Mac OS X, and not it seems for Java apps. This site has some tips: http://www.jurta.org/en/prog/

[issue1982] Feature: extend strftime to accept milliseconds

2009-03-24 Thread M. Dietrich
M. Dietrich added the comment: i am not shure what the code snippet shall proove but shouldnt't it read from datetime import datetime a_datetime = datetime.now() a_datetime = a_datetime.replace(microsecond = 1) iso_str = a_datetime.isoformat() b_datetime = datetime.strptime(iso_str, "%Y-%m-%dT

[issue5544] test_fileio fails on windows MSVC Assertion

2009-03-24 Thread Andreas Schawo
Andreas Schawo added the comment: r69214 works with os.close(f.fileno());f.close() (Exception with Errno 9) r69560 does not compile r70152 test_fileio failed (different reason) MSVC Assertion with os.close(f.fileno());f.close() I was not able to use _fileio.c from r69214 in cause of othe

[issue3402] test_nis is hanging on Solaris

2009-03-24 Thread Ismail Donmez
Ismail Donmez added the comment: Well the test is now skipped on _all_ platforms. This looks wrong. -- nosy: +cartman ___ Python tracker ___ _

[issue5552] With invalid FD, os.device_encoding() returns None under Linux but raises an error under Windows

2009-03-24 Thread Antoine Pitrou
New submission from Antoine Pitrou : This is a potentially annoying incompatibility between platforms. Under Linux: >>> import os >>> print(os.device_encoding(1000)) None -- components: Interpreter Core messages: 84079 nosy: pitrou priority: normal severity: normal status: open title: W

[issue5552] With invalid FD, os.device_encoding() returns None under Linux but raises an error under Windows

2009-03-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: And under Windows: >>> print(os.device_encoding(1000)) Traceback (most recent call last): File "", line 1, in OSError: [Errno 9] Bad file descriptor -- ___ Python tracker _

[issue5544] test_fileio fails on windows MSVC Assertion

2009-03-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: The fix is wrong, it doesn't raise an error when the fd is invalid... -- ___ Python tracker ___ ___

[issue5552] With invalid FD, os.device_encoding() returns None under Linux but raises an error under Windows

2009-03-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: This may be related to the following lines in posixmodule.c: if (!_PyVerify_fd(fd)) return posix_error(); -- nosy: +krisvale ___ Python tracker ___

[issue5544] test_fileio fails on windows MSVC Assertion

2009-03-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: Basically, all FileIO methods should be protected (I'm not even sure why you are asking! we can't let the interpreter crash rather than raise an exception). Someone has to write additional tests for those though, for now only close() is tested. --

[issue5552] With invalid FD, os.device_encoding() returns None under Linux but raises an error under Windows

2009-03-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks! -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue694374] Recursive regular expressions

2009-03-24 Thread Peter Waller
Peter Waller added the comment: It looks like Matthew has dropped this feature from consideration. See msg83993 . -- nosy: +pwaller ___ Python tracker ___

[issue2259] Poor support other than 44.1khz, 16bit audio files?

2009-03-24 Thread HiroakiKawai
HiroakiKawai added the comment: Killing one or two is not the point in this issue ticket. The ticket is opened per issue what one experienced. Thus there might be different tickets that needs the same patch. For this issue, the problem is "Poor support other than 44.1khz, 16bit audio files?"

[issue5553] Py_LOCAL_INLINE(type) doesn't actually inline except using MSC

2009-03-24 Thread Daniel Stutzbach
New submission from Daniel Stutzbach : Below is the relevant snippet from pyport.h. There are two reasons that Py_LOCAL_INLINE doesn't actually emit the "inline" keyword (unless compiling with MSC). First, "configure" does not have code to test the compiler and define USE_INLINE if appropriat

[issue5129] indentation in IDLE 2.6 different from IDLE 2.5, 2.4 or vim

2009-03-24 Thread Guilherme Polo
Changes by Guilherme Polo : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/op

[issue5129] indentation in IDLE 2.6 different from IDLE 2.5, 2.4 or vim

2009-03-24 Thread Guilherme Polo
Guilherme Polo added the comment: platform: Windows XP In a file (cf attached file) with mixed tabs and spaces, the line following "else:" appears at the same level than "else:", while the file probably still works with Python 2.6. At least, IDLE 2.5 or IDLE 2.4 or vim don't have this problem.

[issue2259] Poor support other than 44.1khz, 16bit audio files?

2009-03-24 Thread R. David Murray
R. David Murray added the comment: The issue isn't whether the patch(es) are on one issue or not, if you want to keep them here, that's fine. This patch is so small that breaking it up isn't strictly necessary, either, though I still think it would be cleaner and more likely to get applied if y

[issue694374] Recursive regular expressions

2009-03-24 Thread Matthew Barnett
Matthew Barnett added the comment: There are 2 reasons: 1. I've been told that my current patches contain too many differences from the current implementation, so basically I have to go back to the start and introduce any changes a little at a time, without knowing whether any particular change

[issue4626] compile() doesn't ignore the source encoding when a string is passed in

2009-03-24 Thread Jean-Michel Fauth
Jean-Michel Fauth added the comment: I'm glad to have discovered this topic. I bumped into something similar when I toyed with an interactive interpreter. from code import InteractiveInterpreter ii = InteractiveInterpreter() source = ... ii.runsource(source) What should be the encoding and/or

[issue1598] unexpected response in imaplib

2009-03-24 Thread Roy H. Han
Roy H. Han added the comment: I'm also getting the same error retrieving a message through IMAP from a Lotus Notes server. Traceback (most recent call last): File "mail.py", line 152, in if 'setup' == argument: setup() File "mail.py", line 61, in archive for message in imapBox.rea

[issue2485] Traceback changed in 2.6 for unhashable objects

2009-03-24 Thread R. David Murray
R. David Murray added the comment: In 2.5, the fact that list was unhashable was checked in the list object, and that message was hardcoded there. In 2.6, the check for unhashableness uses generic code, and the resulting error substitutes the type name into the message. This message already ex

[issue1598] unexpected response in imaplib

2009-03-24 Thread Roy H. Han
Roy H. Han added the comment: Using a different format, it seems the message involves cryptographic keys signed by Lotus Notes? >>> server.fetch(407, '(BODY.PEEK[HEADER] FLAGS)') To: pers...@place.com Subject: subject Message-ID: Date: Tue, 28 Oct 2008 17:53:22 -0400 From: per...@place.com Co

[issue4690] asyncore calls handle_write() on closed sockets when use_poll=True

2009-03-24 Thread intgr
Changes by intgr : -- nosy: +intgr ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailma

[issue5545] multiprocessing: switch to autoconf detection of platform values

2009-03-24 Thread Christian Heimes
Christian Heimes added the comment: AC_CHECK_FUNC works only for trivial checks that do not require additional headers. -- ___ Python tracker ___

[issue5554] file.read() doesn't read the whole file

2009-03-24 Thread Ultrasick
New submission from Ultrasick : # open the file file = open('F:/test.bmp', 'r') # read the content content = file.read() # close the file file.close() print "len(content): " + str(len(content)) ---

[issue5554] file.read() doesn't read the whole file

2009-03-24 Thread Ultrasick
Ultrasick added the comment: tested with python 2.6.1, Windows 2k -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue5554] file.read() doesn't read the whole file

2009-03-24 Thread STINNER Victor
STINNER Victor added the comment: Retry in binary mode: open('F:/test.bmp', 'rb'). It's not a bug :-) http://docs.python.org/library/functions.html#open -- nosy: +haypo ___ Python tracker __

[issue5554] file.read() doesn't read the whole file

2009-03-24 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue5554] file.read() doesn't read the whole file

2009-03-24 Thread Ultrasick
Ultrasick added the comment: ok thanks, sorry -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue1337876] Inconsistent use of buffer interface in string and unicode

2009-03-24 Thread Phil Thompson
Phil Thompson added the comment: Yes I can update the patch, but it might be a while before I get the time. -- ___ Python tracker ___ _

[issue5555] optparse

2009-03-24 Thread Aaron Sherman
New submission from Aaron Sherman : First off, I want to be clear that this isn't a request for changes to functionality, nor for debate over decisions which have already been made. This is purely a request for correction to mis-statements about the nature and origins of optparse's handling in it

[issue5450] test_tcl testLoadTk fails if DISPLAY defined but connect fails, instead of being skipped

2009-03-24 Thread Guilherme Polo
Guilherme Polo added the comment: Uhm, I don't agree with this TkinterTest name since it is only doing a minor test on _tkinter._flatten. This same class is indicated in tests_gui but it doesn't require gui to run, it should be indicated only in tests_nogui. Then there is TclTest which I also d

[issue3451] Asymptotically faster divmod and str(long)

2009-03-24 Thread Mark Dickinson
Mark Dickinson added the comment: The longobject2.diff patch probably doesn't apply cleanly any more. Anyone interested in updating it? I think this patch looks like a promising beginning, but there's still quite a lot of work to do. The main concerns at the moment are: (1) the huge number

[issue5450] test_tcl testLoadTk fails if DISPLAY defined but connect fails, instead of being skipped

2009-03-24 Thread R. David Murray
R. David Murray added the comment: On Tue, 24 Mar 2009 at 18:24, Guilherme Polo wrote: > Any chance you can improve these names ? Absolutely. I agree with you; I was trying to stay parallel to the original names, but it felt wrong. And since I don't know TCL/TK/tkinter, I didn't know what fla

[issue5556] interactive interpreter, source encoding

2009-03-24 Thread Jean-Michel Fauth
New submission from Jean-Michel Fauth : A few hours ago I sent a comment to the issue #4626. I didn't notice the issue was closed. So I repeat it here. I'm interested in comments because I have the feeling it is still a pending annoying isssue. --- I'm glad to have discovered this topic. I bump

[issue5557] Byte-code compilation uses excessive memory

2009-03-24 Thread Tom Goddard
New submission from Tom Goddard : Bytecode compiling large Python files uses an unexpectedly large amount of memory. For example, compiling a file containing a list of 5 million integers uses about 2 Gbytes of memory while the Python file size is about 40 Mbytes. The memory used is 50 times the

[issue5530] datetime class names should obey PEP 8 CapWords convention

2009-03-24 Thread Guido van Rossum
Guido van Rossum added the comment: Please don't do this. We need stable APIs. Trying to switch the entire community to use CapWord APIs for something as commonly used as datetime sounds like wasting a lot of cycles with no reason except the mythical "PEP 8 conformance". As I said, it's a pity w

[issue5557] Byte-code compilation uses excessive memory

2009-03-24 Thread Martin v. Löwis
Martin v. Löwis added the comment: It might be possible to make it more efficient. However, the primary purpose of source code is to support hand-written code, and such code should never run into such problems. So lowering the priority. If you want this resolved, it might be best if you provide

[issue2485] Traceback changed in 2.6 for unhashable objects

2009-03-24 Thread Benjamin Peterson
Benjamin Peterson added the comment: Error messages are not part of the API. -- nosy: +benjamin.peterson resolution: wont fix -> invalid status: pending -> closed ___ Python tracker

[issue5322] Python 2.6 object.__new__ argument calling autodetection faulty

2009-03-24 Thread Trundle
Trundle added the comment: I think the real problem here is `update_one_slot` and not `object_new`. It is impossible to set "__new__" to a PyCFunction inside Python code, which may be a feature, but is in fact very irritating. For example the following snippet: >>> class Dict(dict): __new__ =

[issue5520] refactor test_datetime.py

2009-03-24 Thread Jess Austin
Jess Austin added the comment: I don't see a point to this one since Issue 5530 was rejected. If someone else wants this they can reopen it. -- status: open -> closed ___ Python tracker ___

[issue5434] datetime.monthdelta

2009-03-24 Thread Jess Austin
Jess Austin added the comment: With the rejection of Issue 5530, it seems best for the name of this class to remain lowercase. Mixing casing schemes within the same module would be perverse. -- title: datetime.MonthDelta -> datetime.monthdelta ___ P

[issue1503789] Cannot write source code in UTF16

2009-03-24 Thread STINNER Victor
STINNER Victor added the comment: Attached patch is a partial fix: support UTF-16-LE, UTF-16-BE and UTF-32-LE. Some remarks about my patch: * UTF-32-BE is not supported because I'm too lazy tonigh to finish the patch and because such file begins with 0x00 0x00 whereas the parser doesn't

[issue5557] Byte-code compilation uses excessive memory

2009-03-24 Thread STINNER Victor
STINNER Victor added the comment: Python uses inefficent memory structure for integers. You should use a 3rd part library like numpy to manipulate large integer vectors. -- nosy: +haypo ___ Python tracker

[issue5322] Python 2.6 object.__new__ argument calling autodetection faulty

2009-03-24 Thread Sebastian Ramacher
Changes by Sebastian Ramacher : -- nosy: +sebastinas ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue2123] ctypes pointer not always keeping target alive

2009-03-24 Thread R. David Murray
R. David Murray added the comment: Thomas, do you accept this as a bug or should the issue be closed as invalid? -- nosy: +bitdancer priority: -> normal type: -> behavior versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1 ___ Python tracker

[issue4016] improve linecache: reuse tokenize.detect_encoding() and io.open()

2009-03-24 Thread Benjamin Peterson
Benjamin Peterson added the comment: Applied in r70587. -- resolution: -> accepted status: open -> closed ___ Python tracker ___ ___

[issue1068268] subprocess is not EINTR-safe

2009-03-24 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: -haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue1027206] unicode DNS names in socket, urllib, urlopen

2009-03-24 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: -haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue5558] Python 3.0.1 doesn't install correctly on Mac Os X 10.5.6. with xCode 3.1.2

2009-03-24 Thread xdcdx
New submission from xdcdx : The Python 3.0.1 Mac OS X installer image doesn't generate correct links for Python3.0 binary interpreter on /usr/local/bin (as the ReadMe says it will do). I'm using Mac Os X 10.5.6 (Darwin Kernel Version 9.6.0: Mon Nov 24 17:37:00 PST 2008; root:xnu-1228.9.59~1/RELEA

[issue5558] Python 3.0.1 doesn't install correctly on Mac Os X 10.5.6. with xCode 3.1.2

2009-03-24 Thread xdcdx
Changes by xdcdx : -- components: +Installation type: -> behavior versions: +Python 3.0 ___ Python tracker ___ ___ Python-bugs-list ma

[issue1195571] simple callback system for Py_FatalError

2009-03-24 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: -haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue1681984] unittest documentation is incomplete

2009-03-24 Thread STINNER Victor
STINNER Victor added the comment: > I don't see the need to document TestProgram or TextTestRunner Ok. And I don't want (have time/motivation) to document them. So I prefer to close this issue. -- resolution: -> invalid status: open -> closed ___

[issue2504] Add gettext.pgettext() and variants support

2009-03-24 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: -haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue3392] subprocess fails in select when descriptors are large

2009-03-24 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: -haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue3982] support .format for bytes

2009-03-24 Thread STINNER Victor
STINNER Victor added the comment: loewis> That's indeed exactly what I had proposed loewis> - only that you shouldn't repeat the .encode('ascii') loewis> all over the place, (...) If you can only use bytes 0..127, it can not used for binary protocols and so I don't think that it's really us

[issue4208] Make multiprocessing compatible with Python 2.4 and 2.5

2009-03-24 Thread STINNER Victor
STINNER Victor added the comment: Python 2.4 and 2.5 only accepts security fixes now. Since there is now an external port of multiprocessing for Python 2.4/2.5, I think that we can close this issue. http://code.google.com/p/python-multiprocessing/ Feel free to reopen this issue if I'm wrong ;

[issue4216] subprocess.Popen hangs at communicate() when child exits

2009-03-24 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: -haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue3982] support .format for bytes

2009-03-24 Thread Eric Smith
Eric Smith added the comment: > I also not fan on functions having different result type > (format->bytes or str, it depends...). In 3.x, str.format() and bytes.format() would be two different methods on two different objects. I don't think there's any expectation that they have the same return

[issue4358] Segfault in stringobject.c

2009-03-24 Thread STINNER Victor
STINNER Victor added the comment: There are not enough informations to reproduce the issue or understand the problem. Since farshad didn't answer since 4 months, I choose to close the bug. Reopen the bug if you have new informations! -- resolution: -> invalid status: open -> closed

[issue4626] compile() doesn't ignore the source encoding when a string is passed in

2009-03-24 Thread Brett Cannon
Brett Cannon added the comment: On Tue, Mar 24, 2009 at 09:24, Jean-Michel Fauth wrote: > > Jean-Michel Fauth added the comment: > > I'm glad to have discovered this topic. I bumped into something similar > when I toyed with an interactive interpreter. > > from code import InteractiveInterpret

[issue4377] tokenize.detect_encoding() and Mac newline

2009-03-24 Thread STINNER Victor
STINNER Victor added the comment: See also related issue: #4628 (No universal newline support for compile() when using bytes). -- ___ Python tracker ___

[issue4628] No universal newline support for compile() when using bytes

2009-03-24 Thread STINNER Victor
STINNER Victor added the comment: See also related issue: #4377 (tokenize.detect_encoding() and Mac newline). -- ___ Python tracker ___ _

[issue4591] 32-bits unsigned user/group identifier

2009-03-24 Thread STINNER Victor
STINNER Victor added the comment: Anyone available for a patch review? Do you need anything else: tests, documentation updates, etc.? -- ___ Python tracker ___ _

[issue4601] directory permission error with make install in 3.0

2009-03-24 Thread STINNER Victor
STINNER Victor added the comment: amaury> The patch is fine. Cool :-) Anyone to commit the fix? Maybe, tarek? amaury> If it were me, I'd change os.walk to accept amaury> keyword-only arguments: amaury> def walk(top, *, topdown=True, onerror=None, amaury> followlinks=False): amaury>

[issue4591] 32-bits unsigned user/group identifier

2009-03-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: The documentation for PyArg_ParseTuple states that the "I" code doesn't do any overflow checking. Does it mean the input parameters can be silently truncated? -- nosy: +pitrou ___ Python tracker

[issue2706] datetime: define division timedelta/timedelta

2009-03-24 Thread Jess Austin
Jess Austin added the comment: A comment on the two most recent patches... For both of these, we can do the following: >>> from datetime import timedelta >>> td = timedelta(12) >>> td datetime.timedelta(12) >>> td //= 3 >>> td datetime.timedelta(4) >>> td //= timedelta(2) >>> td 2 # C

[issue4762] PyFile_FromFd() doesn't set the file name

2009-03-24 Thread STINNER Victor
STINNER Victor added the comment: In py3k, standard streams' names are now correct (since the io-c merge): Python 3.1a1+ (py3k:70589M, Mar 25 2009, 01:01:13) >>> import sys >>> sys.stdin.name, sys.stdout.name, sys.stderr.name ('', '', '') The last problem occurs with imp.find_module(). But im

[issue5557] Byte-code compilation uses excessive memory

2009-03-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: When compiling a source file to bytecode, Python first builds a syntax tree in memory. It is very likely that the memory consumption you observe is due to the size of the syntax tree. It is also unlikely that someone else than you will want to modifying the pars

[issue4591] 32-bits unsigned user/group identifier

2009-03-24 Thread STINNER Victor
STINNER Victor added the comment: pitrou> The documentation for PyArg_ParseTuple states that the pitrou> "I" code doesn't do any overflow checking. Does it mean pitrou> the input parameters can be silently truncated? I'm sorry, but you're right :-) My patch was wrong. New patch introduces fu

[issue4591] 32-bits unsigned user/group identifier

2009-03-24 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file12301/posix_unsigned_uid.patch ___ Python tracker ___ ___ Python-bugs-list

[issue4591] 32-bits unsigned user/group identifier

2009-03-24 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file13413/posix_unsigned_uid-2.patch ___ Python tracker ___ ___ Python-bugs-list

[issue4591] 32-bits unsigned user/group identifier

2009-03-24 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file13412/posix_unsigned_uid-2.patch ___ Python tracker ___ ___ Python-bugs-li

[issue4591] 32-bits unsigned user/group identifier

2009-03-24 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file13413/posix_unsigned_uid-2.patch ___ Python tracker ___ ___ Python-bugs-li

[issue4591] 32-bits unsigned user/group identifier

2009-03-24 Thread STINNER Victor
STINNER Victor added the comment: Oops, i forgot to ignore space changes in my diff... new patch. -- Added file: http://bugs.python.org/file13414/posix_unsigned_uid-2.patch ___ Python tracker __

[issue1157169] csv Sniffer returns bad dialect?

2009-03-24 Thread Skip Montanaro
Skip Montanaro added the comment: I'm closing this. It's my own fault that it languished for so long, but the current trunk version of Python doesn't demonstrate the behavior Neil documented four years ago. -- resolution: -> out of date status: open -> closed

[issue1431091] CSV Sniffer fails to report mismatch of column counts

2009-03-24 Thread Skip Montanaro
Skip Montanaro added the comment: (I did try to clarify the return type of the iterator a bit better.) -- ___ Python tracker ___ __

[issue1431091] CSV Sniffer fails to report mismatch of column counts

2009-03-24 Thread Skip Montanaro
Changes by Skip Montanaro : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman

[issue1431091] CSV Sniffer fails to report mismatch of column counts

2009-03-24 Thread Skip Montanaro
Skip Montanaro added the comment: Closing as won't fix. There are bound to be limits to how the Sniffer class works. I'm not sure it's worth the effort necessary to fix this corner case. (Andrew, reopen if you want to tackle this.) -- resolution: -> wont fix status: open -> closed

[issue1157169] csv Sniffer returns bad dialect?

2009-03-24 Thread Skip Montanaro
Skip Montanaro added the comment: (I did try to clarify the return value of the next/__next__ method a bit.) -- ___ Python tracker ___

[issue4591] 32-bits unsigned user/group identifier

2009-03-24 Thread STINNER Victor
STINNER Victor added the comment: New patch using PyNumber_Index()+PyLong_AsLong() for parse_uid() and parse_gid() as proposed by antoine (on IRC). Changes between python trunk and posix_unsigned_uid-3.patch: - os.chown() and os.fchown() accepts uid and gid > 2^31: identifiers can be in [-1;

[issue834351] Mouse wheel crashes program

2009-03-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.0.1, WinXP, with two 3.0 revisions: from tkinter import * def _onMouseWheel(event): print(event) root = Tk() root.bind('',_onMouseWheel) In IDLE shell, nothing changes, wheel works normally. In interpreter window, wheel continues to work normally. Afte

[issue5559] IDLE Output Window 's goto fails when path has spaces

2009-03-24 Thread Claudio Canepa
New submission from Claudio Canepa : in windows XP, python 2.6.1, 2.6 , python 2.4 1. do an Edit | 'Find in files' [ it pop ups the Output Window with result] 2. Right click over one of the target lines found, click the 'goto file \line' pop up If the path in the target line has spaces, it will

[issue5560] help() no longer reports module docstrings

2009-03-24 Thread geremy condra
New submission from geremy condra : In 2.x, help(module) reported the docstrings from name when invoked. In 3.0, it simply reports the location of that module. pydoc3.0 invoked at the commandline behaves identically. -- components: Library (Lib) messages: 84143 nosy: debatem1 severity: n

[issue2006] asyncore loop lacks timers and work tasks

2009-03-24 Thread intgr
Changes by intgr : -- nosy: +intgr ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailma

[issue1641] asyncore delayed calls feature

2009-03-24 Thread intgr
Changes by intgr : -- nosy: +intgr ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailma

[issue1657] [patch] epoll and kqueue wrappers for the select module

2009-03-24 Thread intgr
Changes by intgr : -- nosy: +intgr ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailma

[issue1641] asyncore delayed calls feature

2009-03-24 Thread intgr
Changes by intgr : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-lis

  1   2   >