[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 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 doesn't really make a

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

2011-01-25 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso 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 to python.org, searche

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

2011-01-25 Thread Jakob Bowyer
New submission from Jakob Bowyer : 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 priority: normal sever

[issue9509] argparse FileType raises ugly exception for missing file

2011-01-25 Thread SilentGhost
SilentGhost 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 added the comment: anthony: this is python3-only problem. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue10882] Add os.sendfile()

2011-01-25 Thread Giampaolo Rodola'
Giampaolo Rodola' 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=sendfile&sektion=2 In details I'm talking about: > When using a socket marked for non-blocking I/O, sendfile() may send > fe

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

2011-01-25 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- priority: high -> critical versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing lis

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

2011-01-25 Thread Éric Araujo
Éric Araujo 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: -> committed/reje

[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 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 unless we'd link Tkinter

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

2011-01-25 Thread STINNER Victor
New submission from STINNER Victor : 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) -- components: Library

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

2011-01-25 Thread R. David Murray
R. David Murray 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 of an unprecedented tra

[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 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 ___ _

[issue11005] Assertion error on RLock._acquire_restore

2011-01-25 Thread STINNER Victor
New submission from STINNER Victor : Attached script (bug2.py) ends with: $ ~/prog/SVN/py3k/python bug2.py python: ./Modules/_threadmodule.c:399: rlock_acquire_restore: Assertion `self->rlo

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

2011-01-25 Thread STINNER Victor
Changes by STINNER Victor : -- versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

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

2011-01-25 Thread R. David Murray
R. David Murray added the comment: That should have been "too late to make API changes for 3.2". -- ___ Python tracker ___ ___ Python-

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

2011-01-25 Thread Antoine Pitrou
Antoine Pitrou 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 exceptions that occur

[issue9509] argparse FileType raises ugly exception for missing file

2011-01-25 Thread Steven Bethard
Steven Bethard 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 type=argparse.FileType(...) to add_a

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

2011-01-25 Thread Nadeem Vawda
Nadeem Vawda 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 that, but I decided not

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

2011-01-25 Thread Nadeem Vawda
Nadeem Vawda added the comment: * I had initially considered doing something *like* that -- ___ Python tracker ___ ___ Python-bugs-lis

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

2011-01-25 Thread Antoine Pitrou
Antoine Pitrou 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. -- ___ Python t

[issue11006] warnings with subprocess and pipe2

2011-01-25 Thread Antoine Pitrou
New submission from Antoine Pitrou : 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 at all. --

[issue11006] warnings with subprocess and pipe2

2011-01-25 Thread Antoine Pitrou
Antoine Pitrou 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 = _create_pipe() /home/p

[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 added the comment: On 25 Jan, 2011, at 13:41, Michael Foord wrote: > > Michael Foord 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 3-way build in the past where IDLE ran as 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 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 itself had been set to ru

[issue11007] stack tracebacks should give the relevant class name

2011-01-25 Thread Joshua Blount
New submission from Joshua Blount : 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: normal severity: normal stat

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

2011-01-25 Thread Nils Philippsen
Nils Philippsen 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 installed). ---

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

2011-01-25 Thread Andrew Brown
Andrew Brown 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 loop, the block poin

[issue10994] implementation details in sys module

2011-01-25 Thread Armin Rigo
Armin Rigo 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 it is not. For exam

[issue10992] tests failing when run under coverage

2011-01-25 Thread Kristian Vlaardingerbroek
Kristian Vlaardingerbroek 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 __locals__ gets added to the namespace of

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 added the comment: On Tue, Jan 25, 2011 at 02:20, R. David Murray 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. actually that was my objective :) but facing the

[issue10992] tests failing when run under coverage

2011-01-25 Thread Kristian Vlaardingerbroek
Kristian Vlaardingerbroek 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 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 it is

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

2011-01-25 Thread Day Barr
New submission from Day Barr : 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: http://docs.python.org/relea

[issue10994] implementation details in sys module

2011-01-25 Thread Maciej Fijalkowski
Maciej Fijalkowski 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 added the comment: > Which experts you had in mind? People who know how the Python implementation works. -- ___ Python tracker ___ __

[issue10994] implementation details in sys module

2011-01-25 Thread Maciej Fijalkowski
Maciej Fijalkowski 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 information.

[issue10994] implementation details in sys module

2011-01-25 Thread Brett Cannon
Brett Cannon 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. -- ___ Python tra

[issue10994] implementation details in sys module

2011-01-25 Thread Antoine Pitrou
Antoine Pitrou 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 sharing). --

[issue10992] tests failing when run under coverage

2011-01-25 Thread Kristian Vlaardingerbroek
Kristian Vlaardingerbroek added the comment: test_metaclass has some doctests failing because of the added __locals__. -- ___ Python tracker ___ ___

[issue10992] tests failing when run under coverage

2011-01-25 Thread Kristian Vlaardingerbroek
Kristian Vlaardingerbroek added the comment: msg127022 applies to test_gc and not test_descr -- ___ Python tracker ___ ___ Python-bu

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

2011-01-25 Thread Alexander Belopolsky
Alexander Belopolsky 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 ___ P

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

2011-01-25 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2011-01-25 Thread Skip Montanaro
Skip Montanaro 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. -- nosy: +skip

[issue10848] Move test.regrtest from getopt to argparse

2011-01-25 Thread R. David Murray
R. David Murray 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 _

[issue11007] stack tracebacks should give the relevant class name

2011-01-25 Thread Skip Montanaro
Skip Montanaro 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 "", line 8, in File "", line 5, in bomb ZeroDivisionError: integer division or modulo by zero

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

2011-01-25 Thread Raymond Hettinger
Raymond Hettinger 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 is hosed so that people like Ste

[issue11007] stack tracebacks should give the relevant class name

2011-01-25 Thread Joshua Blount
Joshua Blount added the comment: Yes! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue10848] Move test.regrtest from getopt to argparse

2011-01-25 Thread Sandro Tosi
Sandro Tosi added the comment: On Tue, Jan 25, 2011 at 19:29, R. David Murray wrote: > > R. David Murray added the comment: > > Hmm.  Am I misunderstanding something about epilog, then?  I thought it was > placed at the end of the other help text? Sorry I get confused by the assonance with e

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

2011-01-25 Thread Raymond Hettinger
Raymond Hettinger 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 i several fundamental ways." --

[issue11007] stack tracebacks should give the relevant class name

2011-01-25 Thread Antoine Pitrou
Antoine Pitrou 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 ___

[issue10848] Move test.regrtest from getopt to argparse

2011-01-25 Thread Raymond Hettinger
Raymond Hettinger 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. -- nosy: +rhettinger _

[issue11007] stack tracebacks should give the relevant class name

2011-01-25 Thread Skip Montanaro
Skip Montanaro 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 have a refer

[issue10848] Move test.regrtest from getopt to argparse

2011-01-25 Thread Brett Cannon
Brett Cannon 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

[issue11007] stack tracebacks should give the relevant class name

2011-01-25 Thread Skip Montanaro
Skip Montanaro 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 my earlier co

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

2011-01-25 Thread Matthew Barnett
Matthew Barnett added the comment: I've reduced the size of some internal tables. -- ___ Python tracker ___ ___ Python-bugs-list maili

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

2011-01-25 Thread Raymond Hettinger
Raymond Hettinger 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: normal -> release blocker Added

[issue11009] urllib.splituser is not documented

2011-01-25 Thread anatoly techtonik
New submission from anatoly techtonik : 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 priority: normal severity: n

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

2011-01-25 Thread Kristian Vlaardingerbroek
Kristian Vlaardingerbroek 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:self.tracer.runfunc(traced_func_calling

[issue10848] Move test.regrtest from getopt to argparse

2011-01-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue5114] 2.5.4.3 and 2.6.2 / test_threading hangs on Solaris

2011-01-25 Thread Salman Ahmed
Salman Ahmed 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 ssahmed 3062 480

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

2011-01-25 Thread Brett Cannon
Brett Cannon 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 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

[issue10848] Move test.regrtest from getopt to argparse

2011-01-25 Thread Sandro Tosi
Sandro Tosi 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 are very valuable at

[issue10848] Move test.regrtest from getopt to argparse

2011-01-25 Thread Éric Araujo
Éric Araujo 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 ___

[issue11010] Unicode BOM left in loaded text

2011-01-25 Thread onpon4
New submission from onpon4 : 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 around by calling "s

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

2011-01-25 Thread STINNER Victor
STINNER Victor 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 __

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

2011-01-25 Thread Brett Cannon
Brett Cannon 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 ___

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

2011-01-25 Thread Brett Cannon
Brett Cannon 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 added the comment: Fixed in r88191 and r88192. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

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

2011-01-25 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- components: +Extension Modules -Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue10826] pass_fds sometimes fails

2011-01-25 Thread Antoine Pitrou
Antoine Pitrou 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, st_dev=82051072, st_nlink=1,

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

[issue9724] help('nonlocal') missing

2011-01-25 Thread Éric Araujo
Éric Araujo added the comment: Was this left out of 3.1 and 2.7 on purpose? -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bu

[issue11011] More functools functions

2011-01-25 Thread Jason Baker
New submission from Jason Baker : 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 opposed to writing some of

[issue10826] pass_fds sometimes fails

2011-01-25 Thread Antoine Pitrou
Antoine Pitrou 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 posix.stat_result(st_mode=4096, st_ino=380

[issue10848] Move test.regrtest from getopt to argparse

2011-01-25 Thread R. David Murray
R. David Murray 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 the test directory (ie:

[issue11010] Unicode BOM left in loaded text

2011-01-25 Thread Martin v . Löwis
Martin v. Löwis 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

[issue11010] Unicode BOM left in loaded text

2011-01-25 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue11011] More functools functions

2011-01-25 Thread Raymond Hettinger
Raymond Hettinger 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 already have ways to do it: t

[issue11011] More functools functions

2011-01-25 Thread Raymond Hettinger
Raymond Hettinger 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 x in range(5)] # preferred o

[issue11011] More functools functions

2011-01-25 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue6926] socket module missing IPPROTO_IPV6, IPPROTO_IPV4

2011-01-25 Thread Éric Araujo
Éric Araujo added the comment: Should this be fixed before the final release? -- components: +Library (Lib) -IO nosy: +eric.araujo, georg.brandl ___ Python tracker ___ __

[issue6926] socket module missing IPPROTO_IPV6, IPPROTO_IPV4

2011-01-25 Thread Gregory P. Smith
Gregory P. Smith 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 code themselves sin

[issue6926] socket module missing IPPROTO_IPV6, IPPROTO_IPV4

2011-01-25 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: -> needs patch versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mai

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

2011-01-25 Thread Raymond Hettinger
New submission from Raymond Hettinger : 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', 'factorial', 'copysign', 'ceil

[issue6926] socket module missing IPPROTO_IPV6, IPPROTO_IPV4

2011-01-25 Thread Raymond Hettinger
Raymond Hettinger 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 _

[issue6926] socket module missing IPPROTO_IPV6, IPPROTO_IPV4

2011-01-25 Thread Martin v . Löwis
Martin v. Löwis 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 course, this, in i

[issue11010] Unicode BOM left in loaded text

2011-01-25 Thread onpon4
onpon4 added the comment: Like this: f = io.open() f.readline() -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

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

2011-01-25 Thread Nadeem Vawda
Nadeem Vawda 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 signal when it reaches the

[issue11010] Unicode BOM left in loaded text

2011-01-25 Thread Martin v . Löwis
Martin v. Löwis 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: -> invalid status: open

[issue11011] More functools functions

2011-01-25 Thread Jason Baker
Jason Baker 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 identity the way it is, bu

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

2011-01-25 Thread Brett Cannon
Brett Cannon 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 ___ ___

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

2011-01-25 Thread STINNER Victor
STINNER Victor 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 .message_from_binary_file() ins

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

2011-01-25 Thread STINNER Victor
STINNER Victor added the comment: While working on this issue, I found and fixed two bugs in the email binary parser: r88196 and r88197. -- ___ Python tracker ___ __

[issue11013] Build of CVS version 2.7 fails in readline

2011-01-25 Thread Geoge R. Goffe
New submission from Geoge R. Goffe : 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 -O2 -g -O0 -Wall -Ws

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

2011-01-25 Thread Brett Cannon
Brett Cannon 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 ___ Pytho

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

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

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

2011-01-25 Thread Brett Cannon
Changes by Brett Cannon : Removed file: http://bugs.python.org/file20508/test_scope.diff ___ Python tracker ___ ___ Python-bugs-list mailing l

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

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

  1   2   >