[issue10684] Folders get deleted when trying to change case with shutil.move (case insensitive file systems only)

2011-01-25 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: BTW,what is the best way to check for case insensitive file-system? The test here merely checks if sys.platform returns mac, darwin or win32. I would suggest not checking at all. If the system is case-sensitive, the test will pass, so it

[issue9124] Mailbox module should use binary I/O, not text I/O

2011-01-25 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: Re-New to Python - Re-Started with Py3K in 2011. 'Found myself in a dead-end after 10 days of work because a KOI8-R spam mail causes the file I/O decoding process to fail - and there is NO WAY TO HANDLE THIS with mailbox.py! (Went

[issue11003] os.system should be deprecated in favour of subprocess module

2011-01-25 Thread Jakob Bowyer
New submission from Jakob Bowyer jkb...@gmail.com: os.system is broken in several fundamental ways. We already have the subprocess module for accessing other processes, lets send os.system the same way as os.Popen. -- components: Library (Lib) messages: 126995 nosy: Jakob.Bowyer

[issue9509] argparse FileType raises ugly exception for missing file

2011-01-25 Thread SilentGhost
SilentGhost ghost@gmail.com added the comment: Steven, I'm wondering why do you raise ArgumentTypeError there? From reading doc strings of the relevant errors, it seems obvious to me that it should be ArgumentError. Argument is being used there, there's no conversion occurring anywhere.

[issue10976] json.loads() throws TypeError on bytes object

2011-01-25 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: anthony: this is python3-only problem. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10976 ___

[issue10882] Add os.sendfile()

2011-01-25 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Please note that on FreeBSD things work a little bit differently for non-blocking sockets: http://www.freebsd.org/cgi/man.cgi?query=sendfilesektion=2 In details I'm talking about: When using a socket marked for non-blocking I/O,

[issue9124] Mailbox module should use binary I/O, not text I/O

2011-01-25 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- priority: high - critical versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9124 ___

[issue11002] 'Upload' link on Files page is broken

2011-01-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: This bug tracker is used for Python only. Problems with PyPI should be directed to catalog-...@python.org. Thanks. -- assignee: docs@python - components: -Documentation nosy: +eric.araujo -docs@python resolution: - invalid stage: -

[issue10973] OS X 10.6 IDLE, tkinter: Cocoa Tk 8.5 crash when composite character typed in text field

2011-01-25 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Michael: Why must the subprocess started by IDLE be in 32-bit mode if we'd run IDLE in 32-bit mode? AFAIK there is no technical reason to do so. Not that running IDLE in 32-bit mode is an option, it wouldn't fix the issue by itself

[issue11004] AssertionError on collections.deque().count(1)

2011-01-25 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: Attached script, bug.py, ends with: $ python3.2 source2.py deque.remove(x): x not in deque python: ./Modules/_collectionsmodule.c:536: deque_count: Assertion `leftblock-rightlink != ((void *)0)' failed. Abandon (core dumped)

[issue9124] Mailbox module should use binary I/O, not text I/O

2011-01-25 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I'm afraid so. The python3 uptake process was expected to take five years overall, and we are only up to about the second year at this point. So while you may have been away from Python for 6 years, you came back right in the middle

[issue10973] OS X 10.6 IDLE, tkinter: Cocoa Tk 8.5 crash when composite character typed in text field

2011-01-25 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Ronald: The subprocess also uses Tkinter (right?) so would also require 32bit. FWIW I'm -1 on X11 as well. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10973

[issue11005] Assertion error on RLock._acquire_restore

2011-01-25 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: Attached script (bug2.py) ends with: $ ~/prog/SVN/py3k/python bug2.py python: ./Modules/_threadmodule.c:399:

[issue11004] AssertionError on collections.deque().count(1)

2011-01-25 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11004 ___ ___

[issue9124] Mailbox module should use binary I/O, not text I/O

2011-01-25 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: That should have been too late to make API changes for 3.2. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9124 ___

[issue5863] bz2.BZ2File should accept other file-like objects.

2011-01-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Interesting! If you are motivated, a further approach would be to expose the compressor and decompressor objects from the C extension, and write the file object in Python (as in Lib/gzip.py). One thing I was unsure of is how to handle

[issue9509] argparse FileType raises ugly exception for missing file

2011-01-25 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: It's an ArgumentTypeError because that's what you're supposed to raise inside type functions: http://docs.python.org/dev/library/argparse.html#type (Note that argparse.FileType.__call__ is what will be called when we pass

[issue5863] bz2.BZ2File should accept other file-like objects.

2011-01-25 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Interesting! If you are motivated, a further approach would be to expose the compressor and decompressor objects from the C extension, and write the file object in Python (as in Lib/gzip.py). I had initially considered doing something

[issue5863] bz2.BZ2File should accept other file-like objects.

2011-01-25 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: * I had initially considered doing something *like* that -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5863 ___

[issue5863] bz2.BZ2File should accept other file-like objects.

2011-01-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: How would I go about doing this? Would it be sufficient to raise a DeprecationWarning if the argument is provided by the caller, and add a note to the docstring and documentation? Yes, totally. --

[issue11006] warnings with subprocess and pipe2

2011-01-25 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: Since r87651, subprocess can raise a RuntimeWarning if pipe2() fails. I'm not sure there's any point in that, since it's very low-level and it's nothing the user can do about anyway. Ironically, there is no warning if pipe2() is not available

[issue11006] warnings with subprocess and pipe2

2011-01-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: This can be seen on the sparc Debian buildbot by the way: /home/pybot/buildarea-sid/3.x.klose-debian-sparc/build/Lib/subprocess.py:1085: RuntimeWarning: pipe2 set errno ENOSYS; falling back to non-atomic pipe+fcntl. c2pread, c2pwrite =

[issue10973] OS X 10.6 IDLE, tkinter: Cocoa Tk 8.5 crash when composite character typed in text field

2011-01-25 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: On 25 Jan, 2011, at 13:41, Michael Foord wrote: Michael Foord mich...@voidspace.org.uk added the comment: Ronald: The subprocess also uses Tkinter (right?) so would also require 32bit. Not AFAIK. I'm pretty sure I've had a

[issue10973] OS X 10.6 IDLE, tkinter: Cocoa Tk 8.5 crash when composite character typed in text field

2011-01-25 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: The reason I think it is an issue is that a previous release of Python 2.7 could start IDLE (the initial window would appear), but a dialog would also appear saying that it could not connect to the subprocess and IDLE would exit. IDLE

[issue11007] stack tracebacks should give the relevant class name

2011-01-25 Thread Joshua Blount
New submission from Joshua Blount he...@joshuablount.com: When I get a stack traceback, it would be very handy if the traceback gave me the relevant class name (along with all the current information). -- components: Interpreter Core messages: 127015 nosy: stickwithjosh priority:

[issue6011] python doesn't build if prefix contains non-ascii characters

2011-01-25 Thread Nils Philippsen
Nils Philippsen n...@redhat.com added the comment: NB: it's not the shell, but the kernel which interprets the shebang line (and subsequently calls the shell /bin/sh with it if it's missing, causing funny effects when it encounters the first import line and you happen to have ImageMagick

[issue11004] AssertionError on collections.deque().count(1)

2011-01-25 Thread Andrew Brown
Andrew Brown brow...@gmail.com added the comment: This bug trigger can be simplified down, see my attached bug_simplified.py The problem seems to be in deque_count(). What's happening is that after the rotations, the 16 items reside in the last 16 slots of one block. In deque_count()'s for

[issue10994] implementation details in sys module

2011-01-25 Thread Armin Rigo
Armin Rigo ar...@users.sourceforge.net added the comment: The expectation is that it returns the memory footprint of the given object, and only it (not taking into account sharing, caching, dependencies or anything else). It would be nice if this was a well-defined definition, but

[issue10992] tests failing when run under coverage

2011-01-25 Thread Kristian Vlaardingerbroek
Kristian Vlaardingerbroek kristian.vlaardingerbr...@gmail.com added the comment: Following tests in test_descr.py fail with both methods: test_iter_items test_iter_keys test_iter_values regrtest -T causes the following test to fail aswell: test_slots The test_iter_* tests fail because

Re: [issue10838] subprocess __all__ is incomplete

2011-01-25 Thread Senthil Kumaran
On Thu, Jan 06, 2011 at 12:15:26AM +, Antoine Pitrou wrote: IMO they should all be prefixed with an underscore. Greg? +1 to this suggestion. It would make it consistent with expectations. But yeah, I also think that all public methods should be in __all__ is not a guarantee.

[issue10848] Move test.regrtest from getopt to argparse

2011-01-25 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: On Tue, Jan 25, 2011 at 02:20, R. David Murray rep...@bugs.python.org wrote: That might be handy.  I thought you were trying to roughly reproduce the current help (which dumps it all out at once), which is why I suggested epilog.

[issue10992] tests failing when run under coverage

2011-01-25 Thread Kristian Vlaardingerbroek
Kristian Vlaardingerbroek kristian.vlaardingerbr...@gmail.com added the comment: Following tests in test_descr.py fail: test_collect_generations (line 261) test_frame (line 183) test_get_count (line 249) These tests count the number of allocations and a trace function can mess this up.

[issue10994] implementation details in sys module

2011-01-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The expectation is that it returns the memory footprint of the given object, and only it (not taking into account sharing, caching, dependencies or anything else). It would be nice if this was a well-defined definition, but unfortunately

[issue11008] logging.dictConfig not documented as new in version 2.7

2011-01-25 Thread Day Barr
New submission from Day Barr bugs.python@daybarr.com: logging.dictConfig is new in version 2.7 but the documentation does not say this. http://docs.python.org/release/2.7/library/logging.html#logging.dictConfig c.f. NullHandler, also new in version 2.7 and explicitly documented as such:

[issue10994] implementation details in sys module

2011-01-25 Thread Maciej Fijalkowski
Maciej Fijalkowski fij...@gmail.com added the comment: I can hardly think about a specification that would potentially help me identify actual sizes. Even as a rough estimation. Which experts you had in mind? -- ___ Python tracker

[issue10994] implementation details in sys module

2011-01-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Which experts you had in mind? People who know how the Python implementation works. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10994

[issue10994] implementation details in sys module

2011-01-25 Thread Maciej Fijalkowski
Maciej Fijalkowski fij...@gmail.com added the comment: Which experts you had in mind? People who know how the Python implementation works. I'm serious. What semantics would make sense to anyone? Even if you know implementation quite well a single number per object does not provide enough

[issue10994] implementation details in sys module

2011-01-25 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: You could return -1 for everything. =) In all seriousness, it could simply be proportional. IMO as long as people realize if a list takes up less space than a dict then the numbers seem fine to me. --

[issue10994] implementation details in sys module

2011-01-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Even if you know implementation quite well a single number per object does not provide enough information. Enough information for what? It can certainly provide information about the overhead of that particular object (again, regardless of

[issue10992] tests failing when run under coverage

2011-01-25 Thread Kristian Vlaardingerbroek
Kristian Vlaardingerbroek kristian.vlaardingerbr...@gmail.com added the comment: test_metaclass has some doctests failing because of the added __locals__. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10992

[issue10992] tests failing when run under coverage

2011-01-25 Thread Kristian Vlaardingerbroek
Kristian Vlaardingerbroek kristian.vlaardingerbr...@gmail.com added the comment: msg127022 applies to test_gc and not test_descr -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10992 ___

[issue10572] Move test sub-packages to Lib/test

2011-01-25 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Changing the title to reflect broader scope of this issue. Json tests were moved to Lib/test/json_tests in r86875. -- title: Move unittest test package to Lib/test - Move test sub-packages to Lib/test

[issue11004] AssertionError on collections.deque().count(1)

2011-01-25 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- assignee: - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11004 ___

[issue11003] os.system should be deprecated in favour of subprocess module

2011-01-25 Thread Skip Montanaro
Skip Montanaro s...@pobox.com added the comment: I disagree. Both os.popen and os.system work fine in the proper context and are easier to use (and remember how to use) than the subprocess module. You don't give any examples of breakage, or whether said breakage is platform-dependent.

[issue10848] Move test.regrtest from getopt to argparse

2011-01-25 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Hmm. Am I misunderstanding something about epilog, then? I thought it was placed at the end of the other help text? -- ___ Python tracker rep...@bugs.python.org

[issue11007] stack tracebacks should give the relevant class name

2011-01-25 Thread Skip Montanaro
Skip Montanaro s...@pobox.com added the comment: Given this code: #!/usr/bin/env python class C: def bomb(self): 1/0 c = C() c.bomb() when run it produces Traceback (most recent call last): File stdin, line 8, in module File stdin, line 5, in bomb ZeroDivisionError: integer

[issue9124] Mailbox module should use binary I/O, not text I/O

2011-01-25 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: ISTM an API change is okay if it fixes a critical usability bug. Also, if this is going to ship as-is, the docs should get a big warning right at the top. Perhaps the source code should also emit a notice that the module

[issue11007] stack tracebacks should give the relevant class name

2011-01-25 Thread Joshua Blount
Joshua Blount he...@joshuablount.com added the comment: Yes! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11007 ___ ___ Python-bugs-list

[issue10848] Move test.regrtest from getopt to argparse

2011-01-25 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: On Tue, Jan 25, 2011 at 19:29, R. David Murray rep...@bugs.python.org wrote: R. David Murray rdmur...@bitdance.com added the comment: Hmm.  Am I misunderstanding something about epilog, then?  I thought it was placed at the end of the

[issue11003] os.system should be deprecated in favour of subprocess module

2011-01-25 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: I'm inclined to reject this out-of-hand. The os.system() call is a basic call that had been around for very long time, has been widely used successfully, and has parallels in other languages. Please elaborate on is broken

[issue11007] stack tracebacks should give the relevant class name

2011-01-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Well, given you have the line number at which the method is defined, it is easy to know which class it belongs to. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org

[issue10848] Move test.regrtest from getopt to argparse

2011-01-25 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: ISTM that moving from argument parser to another is more likely to introduce bugs than to solve them. There may be other advantages, but reducing bugginess isn't one of them. Lots of scripts have used getopts successfully.

[issue11007] stack tracebacks should give the relevant class name

2011-01-25 Thread Skip Montanaro
Skip Montanaro s...@pobox.com added the comment: I'm not sure you can get there from here, certainly not in a straightforward way. The traceback formatter gets a reference to the code object (traceback - frame - code). That object has a name attribute (which is what's displayed) but it doesn't

[issue10848] Move test.regrtest from getopt to argparse

2011-01-25 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: If Sandro is willing to write test for regrtest as part of the move then that would be a complete net win from the current situation. -- ___ Python tracker rep...@bugs.python.org

[issue11007] stack tracebacks should give the relevant class name

2011-01-25 Thread Skip Montanaro
Skip Montanaro s...@pobox.com added the comment: I agree with Antoine, however, if you can come up with a reasonable patch which implements the desired behavior, I think it would be reasonable to add it to Python 3.3. The definition of reasonable is subject to interpretation. As I indicated in

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2011-01-25 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: I've reduced the size of some internal tables. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2636 ___

[issue11004] AssertionError on collections.deque().count(1)

2011-01-25 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Victor, thanks for the bug report. Score one for fuzzing. Andrew, thanks for the analysis and simplified crasher. See attached patch. -- keywords: +needs review, patch nosy: +benjamin.peterson, georg.brandl priority:

[issue11009] urllib.splituser is not documented

2011-01-25 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: I'm studying old code that uses urllib.splituser() call and can't find description of this function in Python 2.6.6 docs. -- assignee: docs@python components: Documentation messages: 127047 nosy: docs@python, techtonik

[issue10990] tests mutating sys.gettrace() w/o re-instating previous state

2011-01-25 Thread Kristian Vlaardingerbroek
Kristian Vlaardingerbroek kristian.vlaardingerbr...@gmail.com added the comment: test_trace can be added to this list, each call to runfunc does a sys.settrace() 121:self.tracer.runfunc(traced_func_loop, 2, 3) 133:self.tracer.runfunc(traced_func_importing, 2, 5) 145:

[issue10848] Move test.regrtest from getopt to argparse

2011-01-25 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: +1 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10848 ___ ___

[issue5114] 2.5.4.3 and 2.6.2 / test_threading hangs on Solaris

2011-01-25 Thread Salman Ahmed
Salman Ahmed ssahmed...@gmail.com added the comment: Yes, this problem persists on Solaris 9 (SPARC) even with Python 2.7.1. The problematic processes are: ssahmed@blade:[~]$ ps -ef|grep -i python ssahmed 480 418 0 15:30:25 pts/19:14 ./python -Wd -3 -E -tt ./Lib/test/regrtest.py -l

[issue10990] tests mutating sys.gettrace() w/o re-instating previous state

2011-01-25 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Thanks for the diagnosis, Kristian. Attached is a patch for test_trace which fixes its over-zealous setting of the trace function (doesn't address the failures, though). -- Added file: http://bugs.python.org/file20516/test_trace.diff

[issue10990] tests mutating sys.gettrace() w/o re-instating previous state

2011-01-25 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Here is a patch for test_pdb; the context manager made this dirt-simple to fix. -- Added file: http://bugs.python.org/file20517/test_gdb.diff ___ Python tracker rep...@bugs.python.org

[issue10848] Move test.regrtest from getopt to argparse

2011-01-25 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: Sure, that would be really interesting to do, and I do commit to write a test suite to the tool that runs the python test suite :) What I'm asking is: how would you do that? I'm quite new as contributor so the ideas of experienced core devs

[issue10848] Move test.regrtest from getopt to argparse

2011-01-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Some parts of regrtest have been obsoleted by changes in unittest. Best not to write tests for something that will go. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10848

[issue11010] Unicode BOM left in loaded text

2011-01-25 Thread onpon4
New submission from onpon4 onp...@yahoo.com: This is for Python 2.7.1. It isn't an issue on 2.6.5 and I haven't tested it on 3.1. Quite simply, the Unicode BOM (unichr(65279)) is included in the text loaded from a UTF-8 text file. This can cause issues in some cases, but is easily worked

[issue11004] AssertionError on collections.deque().count(1)

2011-01-25 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: deque.patch: I'm unable to say if the patch is correct or not, but it is always a good thing to remove asser(...) :-) -- ___ Python tracker rep...@bugs.python.org

[issue10990] tests mutating sys.gettrace() w/o re-instating previous state

2011-01-25 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Patch for doctest/test_doctest (yes, both files were wiping out the trace function. -- Added file: http://bugs.python.org/file20518/test_doctest.diff ___ Python tracker rep...@bugs.python.org

[issue10990] tests mutating sys.gettrace() w/o re-instating previous state

2011-01-25 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: And with this patch for test_zipimport_support to work thanks to the test_doctest changes, all of the test suites blasting the trace function *should* be fixed. -- Added file: http://bugs.python.org/file20519/test_zipimport_support.diff

[issue11004] AssertionError on collections.deque().count(1)

2011-01-25 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Fixed in r88191 and r88192. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11004

[issue11004] AssertionError on collections.deque().count(1)

2011-01-25 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- components: +Extension Modules -Library (Lib) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11004 ___

[issue10826] pass_fds sometimes fails

2011-01-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: So, I added some debug info to test_pass_fds: -- fds that should have been closed: {5, 6, 7, 8, 9, 10, 11, 12, 13} -- fds that remained open: {0, 1, 2, 3, 5} -- debug info: 0 8194 posix.stat_result(st_mode=8592, st_ino=12582920,

[issue10973] OS X 10.6 IDLE, tkinter: Cocoa Tk 8.5 crash when composite character typed in text field

2011-01-25 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: -haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10973 ___ ___

[issue9724] help('nonlocal') missing

2011-01-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Was this left out of 3.1 and 2.7 on purpose? -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9724 ___

[issue11011] More functools functions

2011-01-25 Thread Jason Baker
New submission from Jason Baker amnorv...@gmail.com: I've created a patch that adds some common functional programming tools to functools. I've made the patch to work against Python 3.2, but that may be a bit aggressive. If so, then I can adapt it to work with 3.3. I also wouldn't be

[issue10826] pass_fds sometimes fails

2011-01-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I managed to get further debug info from the OpenIndiana buildbot: -- maxfd = 65536 -- fds that should have been closed: {5, 6, 7, 8, 9, 10, 11, 12, 13} -- fds that remained open: {0, 1, 2, 3, 5} -- debug info: 0 2

[issue10848] Move test.regrtest from getopt to argparse

2011-01-25 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I would say writing tests for regrtest is going to be a somewhat tricky task. I think you will have to do some code tweaking to even be able to run certain tests. I believe that regrtest currently has some built in assumptions about

[issue11010] Unicode BOM left in loaded text

2011-01-25 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Can you please be more specific? What do you mean by text loaded from a UTF-8 text file? How specifically did you load it? -- nosy: +loewis ___ Python tracker rep...@bugs.python.org

[issue11010] Unicode BOM left in loaded text

2011-01-25 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11010 ___ ___

[issue11011] More functools functions

2011-01-25 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Some of these have been proposed and rejected before. Compose has a problematic API because the traditional order of application in mathematics is counter-intuitive for many people. Const seems reasonable except that we

[issue11011] More functools functions

2011-01-25 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: One other thought: The use of list comprehensions (a.k.a. list displays) and generator expressions has made many functional tools less necessary than ever. # preferred over map(pow, repeat(2), range(5)) [pow(2, x) for

[issue6926] socket module missing IPPROTO_IPV6, IPPROTO_IPV4

2011-01-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Should this be fixed before the final release? -- components: +Library (Lib) -IO nosy: +eric.araujo, georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6926

[issue6926] socket module missing IPPROTO_IPV6, IPPROTO_IPV4

2011-01-25 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: IMNSHO it should but that would violate our release practices to do it this late in the cycle. I expect the release manager to decline. It isn't a critical issue, the end result is that people will hard code the constants into their own

[issue6926] socket module missing IPPROTO_IPV6, IPPROTO_IPV4

2011-01-25 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: - needs patch versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6926 ___

[issue11012] Add log1p(), exp1m(), gamma(), and lgamma() to cmath

2011-01-25 Thread Raymond Hettinger
New submission from Raymond Hettinger rhettin...@users.sourceforge.net: Where it makes sense, cmath needs to stay in-sync with the math module as much as possible: set(dir(math)) - set(dir(cmath)) {'pow', 'fsum', 'ldexp', 'hypot', 'fabs', 'floor', 'lgamma', 'frexp', 'degrees', 'modf',

[issue6926] socket module missing IPPROTO_IPV6, IPPROTO_IPV4

2011-01-25 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: I would consider it to be regression and bugfix that is not inappropriate to repair at this point. -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org

[issue6926] socket module missing IPPROTO_IPV6, IPPROTO_IPV4

2011-01-25 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I would consider it to be regression and bugfix that is not inappropriate to repair at this point. I'd also be in favor of fixing it. To reduce the risk of breaking something, I'd only raise socketmodule to a more recent Windows API. Of

[issue11010] Unicode BOM left in loaded text

2011-01-25 Thread onpon4
onpon4 onp...@yahoo.com added the comment: Like this: f = io.open() f.readline() -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11010 ___ ___

[issue5863] bz2.BZ2File should accept other file-like objects.

2011-01-25 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Here is a quick-and-dirty reimplementation of BZ2File in Python, on top of the existing C implementation of BZ2Compressor and BZ2Decompressor. There are a couple of issues with this code that need to be fixed: * BZ2Decompressor doesn't

[issue11010] Unicode BOM left in loaded text

2011-01-25 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Why are you saying this isn't an issue in 2.6.5? It behaves exactly the same as 2.7.1. In any case, this is not a bug. Pass encoding=utf-8-sig to io.open to have the signature stripped when the file is read. -- resolution: -

[issue11011] More functools functions

2011-01-25 Thread Jason Baker
Jason Baker amnorv...@gmail.com added the comment: Ray, thanks for prompt and thorough feedback. To address your concerns: * I'm fine with doing away with const and identity (long story short I haven't really used them in functional languages anyway). There were reasons for defining

[issue10990] tests mutating sys.gettrace() w/o re-instating previous state

2011-01-25 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: I have a patch that I am testing right now which deals which fixes all the test suites. -- assignee: - brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10990

[issue9124] Mailbox module should use binary I/O, not text I/O

2011-01-25 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: mailbox.patch: - open files in binary mode not as text - parse as bytes not as Unicode - replace email.generator.Generator() by email.generator.BytesGenerator() - use .message_from_bytes() instead of .message_from_str() - use

[issue9124] Mailbox module should use binary I/O, not text I/O

2011-01-25 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: While working on this issue, I found and fixed two bugs in the email binary parser: r88196 and r88197. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9124

[issue11013] Build of CVS version 2.7 fails in readline

2011-01-25 Thread Geoge R. Goffe
New submission from Geoge R. Goffe grgo...@yahoo.com: Howdy, I just updated my copy of the SVN version of 2.7 and got the following error messages. Did I do something wrong? Regards, George... building dbm using bdb building 'readline' extension gcc -pthread -fPIC -fno-strict-aliasing -g

[issue10990] tests mutating sys.gettrace() w/o re-instating previous state

2011-01-25 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: OK, here is a single patch (from `hg outgoing --patch`) that fixes all the tests by introducing the test.support.no_tracing decorator. -- Added file: http://bugs.python.org/file20523/trace_fxn_protected.diff

[issue10990] tests mutating sys.gettrace() w/o re-instating previous state

2011-01-25 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: Removed file: http://bugs.python.org/file20498/sys_gettrace_monitor.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10990 ___

[issue10990] tests mutating sys.gettrace() w/o re-instating previous state

2011-01-25 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: Removed file: http://bugs.python.org/file20508/test_scope.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10990 ___

[issue10990] tests mutating sys.gettrace() w/o re-instating previous state

2011-01-25 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: Removed file: http://bugs.python.org/file20509/test_sys_settrace.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10990 ___

[issue10990] tests mutating sys.gettrace() w/o re-instating previous state

2011-01-25 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: Removed file: http://bugs.python.org/file20516/test_trace.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10990 ___

  1   2   >