[issue4565] io write() performance very slow

2008-12-07 Thread Winfried Plappert
Changes by Winfried Plappert [EMAIL PROTECTED]: -- nosy: +wplappert ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4565 ___ ___ Python-bugs-list mailing

[issue3476] BufferedWriter not thread-safe

2008-12-07 Thread Winfried Plappert
Changes by Winfried Plappert [EMAIL PROTECTED]: -- nosy: +wplappert ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3476 ___ ___ Python-bugs-list mailing

[issue4561] Optimize new io library

2008-12-07 Thread Winfried Plappert
Changes by Winfried Plappert [EMAIL PROTECTED]: -- nosy: +wplappert ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4561 ___ ___ Python-bugs-list mailing

[issue4571] write to stdout in binary mode - is it possible?

2008-12-07 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Is that an official way? If yes, it needs to be documented. -- nosy: +georg.brandl ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4571 ___

[issue4573] zsh-style subpattern matching for fnmatch/glob

2008-12-07 Thread Erick Tryzelaar
New submission from Erick Tryzelaar [EMAIL PROTECTED]: As I mentioned on python-ideas, I my project needs to extend fnmatch to support zsh-style globbing, where you can use brackets to designate subexpressions. Say you had a directory structure like this: foo/ foo.ext1 foo.ext2 bar/

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2008-12-07 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: I understand the rationale behind #4120, but it seems like it only helps a narrow set of applications, namely applications that link dynamically with the same version of MSVCR90 as Python and that bundle the MSVCR90 DLL and that can't

[issue4263] BufferedWriter non-blocking overage

2008-12-07 Thread Sever Băneșiu
Sever Băneșiu [EMAIL PROTECTED] added the comment: Christian, if the patch looks good to you I think now it's a good time to commit it. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4263 ___

[issue4574] reading UTF16-encoded text file crashes if \r on 64-char boundary

2008-12-07 Thread John Machin
New submission from John Machin [EMAIL PROTECTED]: Problem in the newline handling in io.py, class IncrementalNewlineDecoder, method decode. It reads text files in 128- byte chunks. Converting CR LF to \n requires special case handling when '\r' is detected at the end of the decoded chunk in

[issue4574] reading UTF16-encoded text file crashes if \r on 64-char boundary

2008-12-07 Thread Antoine Pitrou
Changes by Antoine Pitrou [EMAIL PROTECTED]: -- nosy: +pitrou ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4574 ___ ___ Python-bugs-list mailing list

[issue1717] Get rid of more refercenes to __cmp__

2008-12-07 Thread Mark Dickinson
Mark Dickinson [EMAIL PROTECTED] added the comment: +1 for a speedy removal of cmp and tp_compare ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1717 ___ ___

[issue3439] create a numbits() method for int and long types

2008-12-07 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: I plan to change my patch to come back to a method (x.numbits()) because other integer implementations like Decimal may be slower. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3439

[issue1717] Get rid of more refercenes to __cmp__

2008-12-07 Thread Christian Heimes
Christian Heimes [EMAIL PROTECTED] added the comment: We shouldn't remove the tp_compae slot in 3.0. That's going to break too much 3rd party software. Instead of removing it, a deprecation warning should be printed when the slot isn't 0. ___ Python tracker

[issue4575] Py_IS_INFINITY defect causes test_cmath failure on x86

2008-12-07 Thread Mark Dickinson
New submission from Mark Dickinson [EMAIL PROTECTED]: In issue 4506, Skip reported that test_cmath fails on Solaris 10/x86 for 3.0. If my guesses are correct, it probably fails on all x86 systems that (a) use the x87 coprocessor for floating-point (as opposed to using SSE2, for example), and

[issue4506] 3.0 make test failures on Solaris 10

2008-12-07 Thread Mark Dickinson
Mark Dickinson [EMAIL PROTECTED] added the comment: Thanks, Skip. It looks like the top priority is fixing Py_IS_INFINITY, then (still assuming that I'm not barking up entirely the wrong tree). I've opened issue 4575 for the Py_IS_INFINITY fix. I'll look at the changes to AC_CHECK_FUNCS,

[issue4576] Defining new types little outdated

2008-12-07 Thread Kandalintsev Alexandre
New submission from Kandalintsev Alexandre [EMAIL PROTECTED]: Hello! It's need to little update Defining new types documentation section in py3.0 and py3.1: - self-ob_type-tp_free((PyObject*)self); + Py_TYPE(self)-tp_free((PyObject *)self); -- assignee: georg.brandl components:

[issue4535] Build / Test Py3K failed on Ubuntu 8.10

2008-12-07 Thread Kandalintsev Alexandre
Kandalintsev Alexandre [EMAIL PROTECTED] added the comment: Rob, could you repeat this test on trunk version of python? ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4535 ___

[issue4576] Defining new types little outdated

2008-12-07 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Fixed in r67632. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4576 ___

[issue4573] zsh-style subpattern matching for fnmatch/glob

2008-12-07 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' [EMAIL PROTECTED]: -- nosy: +giampaolo.rodola ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4573 ___ ___ Python-bugs-list

[issue4571] write to stdout in binary mode - is it possible?

2008-12-07 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Documented in r67365. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4571 ___

[issue4571] write to stdout in binary mode - is it possible?

2008-12-07 Thread jeff deifik
jeff deifik [EMAIL PROTECTED] added the comment: I don't consider sys.stdout.buffer.write(b'abc') to be an acceptable solution. There are many programs that need to produce binary output with standard output. Consider uudecode and similar programs. There needs to be a standard, portable,

[issue4571] write to stdout in binary mode - is it possible?

2008-12-07 Thread Christian Heimes
Christian Heimes [EMAIL PROTECTED] added the comment: switch to binary mode sys.stdout = sys.stdout.buffer switch back sys.stdout = sys.__stdout__ -- nosy: +christian.heimes ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4571

[issue1717] Get rid of more refercenes to __cmp__

2008-12-07 Thread Christian Heimes
Christian Heimes [EMAIL PROTECTED] added the comment: Here is a longer patch that removes cmp, PyObject_Compare and cmpfunc. The slots has been renamed to tp_reserved. If the slot is used by a type an exception is raised to notify the user about possible issues. Missing: * fix unit tests * add

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2008-12-07 Thread Craig Holmquist
Craig Holmquist [EMAIL PROTECTED] added the comment: I don't quite understand this issue yet. python26.dll is linked with a manifest. Isn't that good enough? Apparently not, at least in my testing. It seems that if a DLL is loaded, Windows will try to resolve its dependencies by looking at

[issue4577] distutils: -3 warnings (apply)

2008-12-07 Thread Sebastian Rittau
New submission from Sebastian Rittau [EMAIL PROTECTED]: The attached patch removes all instances of the deprecated apply function from distutils and thereby fixes warnings when run with -3. -- components: Distutils files: distutils.diff keywords: patch messages: 77233 nosy: srittau

[issue4577] distutils: -3 warnings (apply)

2008-12-07 Thread Sebastian Rittau
Sebastian Rittau [EMAIL PROTECTED] added the comment: Oops, missed a closing parenthesis. Added file: http://bugs.python.org/file12264/distutils.diff ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4577

[issue4577] distutils: -3 warnings (apply)

2008-12-07 Thread Sebastian Rittau
Changes by Sebastian Rittau [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file12263/distutils.diff ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4577 ___

[issue1717] Get rid of more refercenes to __cmp__

2008-12-07 Thread Mark Dickinson
Mark Dickinson [EMAIL PROTECTED] added the comment: I'll work on fixing the unit tests if that's helpful. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1717 ___

[issue1717] Get rid of more refercenes to __cmp__

2008-12-07 Thread Christian Heimes
Christian Heimes [EMAIL PROTECTED] added the comment: Can you fix the decimal module and tests? You know more about the module than me. I'm half through most of the others modules. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1717

[issue1717] Get rid of more refercenes to __cmp__

2008-12-07 Thread Mark Dickinson
Mark Dickinson [EMAIL PROTECTED] added the comment: Decimal fixes Added file: http://bugs.python.org/file12265/remove_cmp_decimal.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1717 ___

[issue4578] compiler: -3 warnings

2008-12-07 Thread Sebastian Rittau
New submission from Sebastian Rittau [EMAIL PROTECTED]: The attached patch replaces all instances of x.has_key(k) method calls by k in x. It also replaces one call to parser.ast2tuple by parser.st2tuple. This removes deprecation warnings when running in -3 mode. -- components: Library

[issue1717] Get rid of more refercenes to __cmp__

2008-12-07 Thread Christian Heimes
Changes by Christian Heimes [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file12262/remove_cmp.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1717 ___

[issue1717] Get rid of more refercenes to __cmp__

2008-12-07 Thread Christian Heimes
Christian Heimes [EMAIL PROTECTED] added the comment: I've integrated Mark's patch and fixed more tests. Who wants to pick it up from here? Added file: http://bugs.python.org/file12267/remove_cmp2.patch ___ Python tracker [EMAIL PROTECTED]

[issue4558] with_stdc89

2008-12-07 Thread Roumen Petrov
Roumen Petrov [EMAIL PROTECTED] added the comment: :-( the last my comment is incomplete : work for me after minimal patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4558 ___

[issue3754] minimal cross-compilation support for configure

2008-12-07 Thread Roumen Petrov
Roumen Petrov [EMAIL PROTECTED] added the comment: The support for *-*mingw* host is enhanced to native msys environment. This include check for device file /dev/ptmx. The MSYS report that file exist. As the check is skipped on mingw* host os now cugwin environment can be used too. Also check

[issue4579] .read() and .readline() differ in failing

2008-12-07 Thread Mark Florisson
New submission from Mark Florisson [EMAIL PROTECTED]: f = os.fdopen(os.open('spam!', os.O_TRUNC|os.O_CREAT|os.O_RDWR), 'w') f.read() '' f.readline() Traceback (most recent call last): File stdin, line 1, in module IOError: [Errno 9] Bad file descriptor f.write(spamspamhihi) f.read() ''

[issue3871] cross and native build of python for mingw32 with distutils

2008-12-07 Thread Roumen Petrov
Roumen Petrov [EMAIL PROTECTED] added the comment: The new patch is attached. Now the patch allow native build for mingw* host OS. The build id tested in MSYS environment. The issue title is updated to reflect this. The main changes: - native build require four more build-in modules (_functools,

[issue4579] .read() and .readline() differ in failing

2008-12-07 Thread Mark Florisson
Mark Florisson [EMAIL PROTECTED] added the comment: Actually, I wouldn't expect it to fail like that, because it's not a bad file descriptor, it's an actual that doesn't agree with the (userspace) file mode. What I'd expect is probably a TypeError. Although an IOError, with a different message,

[issue4579] .read() and .readline() differ in failing

2008-12-07 Thread Mark Florisson
Mark Florisson [EMAIL PROTECTED] added the comment: s/actual/operation/ ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4579 ___ ___ Python-bugs-list mailing list

[issue3871] cross and native build of python for mingw32 with distutils

2008-12-07 Thread Roumen Petrov
Roumen Petrov [EMAIL PROTECTED] added the comment: About the regression test results test. The result from 2008-11-29 is: 306 tests OK. 1 test failed: test_sundry 54 tests skipped: Those skips are all expected on win32. To get those results you mingwex library has to contain fixes for

[issue4569] Segfault when mutating a memoryview to an array.array

2008-12-07 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Fixed in r67650 and r67651. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4569 ___

[issue4580] slicing of memoryviews when itemsize != 1 is wrong

2008-12-07 Thread Antoine Pitrou
New submission from Antoine Pitrou [EMAIL PROTECTED]: The problem is with the `shape` member which doesn't get recalculated as it should when instantiating a memoryview slice: a = array('i', range(10)) m = memoryview(a)[2:8] a array('i', [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]) m[:] = array('i',

[issue4509] bugs in array.array with exports (buffer protocol)

2008-12-07 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Found another bug with memoryview and arrays in #4580. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4509 ___

[issue4579] .read() and .readline() differ in failing

2008-12-07 Thread Aaron Gallagher
Aaron Gallagher [EMAIL PROTECTED] added the comment: I can't reproduce this on python 2.5.1, 2.5.2, or 2.6.0 on Mac OS 10.5.4. Both .read() and .readline() raise an EBADF IOError. 3.0.0 fails in the same way. -- nosy: +habnabit ___ Python tracker

[issue4581] failed to import module from lib-dynload

2008-12-07 Thread Leger
New submission from Leger [EMAIL PROTECTED]: I test PY3K.final under Debian/Lenny. - Install steps Configure, make, make test, make install don't generate errors for the modules in lib-dynload. - /usr/lib/python3.0/lib-dynload, contain modules (time.so, math.so, ...) - print(sys.path) = ['',

[issue4582] type of __builtins__ changes if in main module or not

2008-12-07 Thread Neal Norwitz
New submission from Neal Norwitz [EMAIL PROTECTED]: This happens on 2.4 and 3.0, probably all versions: When running this simple program (save to a file): print(type(__builtins__)) __import__(__file__.split('/')[-1][:-3]) I get: type 'module' type 'dict' I would expect the type to be

[issue4581] failed to import module from lib-dynload

2008-12-07 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: How did you run configure? What is sys.exec_prefix? '/usr/lib/python3.0/lib/python3.0/lib-dynload' should not be on sys.path, but '/usr/lib/python3.0/lib-dynload' should be. -- nosy: +loewis ___

[issue4582] type of __builtins__ changes if in main module or not

2008-12-07 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: This is documented, intentional behavior: http://docs.python.org/library/__builtin__.html?highlight=__builtins__ -- nosy: +loewis resolution: - wont fix status: open - closed ___ Python tracker

[issue1717] Get rid of more refercenes to __cmp__

2008-12-07 Thread Mark Dickinson
Mark Dickinson [EMAIL PROTECTED] added the comment: remove_cmp3.patch adds to Christian's patch to fix 6 more test_failures: (test_distutils, test_kqueue, test_list, test_sort, test_sqlite, test_userlist). On OS X, the only remaining test failure is test_unittest.py. Added file:

[issue4483] Error to build _dbm module during make

2008-12-07 Thread Roumen Petrov
Roumen Petrov [EMAIL PROTECTED] added the comment: I'm not sure that recent commits in trunk are correct. Please confirm that build of dbm module with Berkeley DB is deprecated. Note that exist another module gdbm[gdbmmodule.c]. ___ Python tracker [EMAIL

[issue1490929] urllib.retrieve's reporthook called with non-helpful value

2008-12-07 Thread Krzysztof Pawlik
Krzysztof Pawlik [EMAIL PROTECTED] added the comment: Attached patch adds new argument: progresshook - it will be passed two arguments: count of downloaded bytes and total file size (or -1 if it's not available). Introducing new argument instead of modifying reporthook maintains backwards

[issue1717] Get rid of more refercenes to __cmp__

2008-12-07 Thread Mark Dickinson
Mark Dickinson [EMAIL PROTECTED] added the comment: About unittest: unittest.TestLoader has an attribute sortTestMethodsUsing, which it expects to be an old-style comparison. Should this attribute be updated (and renamed?) to expect a key function instead, or left as is?

[issue3871] cross and native build of python for mingw32 with distutils

2008-12-07 Thread Roumen Petrov
Roumen Petrov [EMAIL PROTECTED] added the comment: The changes related to issue 4483 break build on dbm based on Berkeley DB so I update mingw patch to restore bulld to previous state. Now I expect test_anydbm, test_bsddb and test_whichdb to succeed as before one week. Added file:

[issue3871] cross and native build of python for mingw32 with distutils

2008-12-07 Thread Roumen Petrov
Changes by Roumen Petrov [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file12269/python-trunk-MINGW.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3871 ___

[issue4583] segfault when mutating memoryview to array.array when array is resized

2008-12-07 Thread gumpy
New submission from gumpy [EMAIL PROTECTED]: This is with r67651 and related to #4569, #4509 and possibly #4580. from array import array a = array('i', range(16)) m = memoryview(a) a.extend(array('i', range(48))) m[:] = array('i', range(64)) Segmentation fault from array import array a

[issue1717] Get rid of more refercenes to __cmp__

2008-12-07 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: On Sun, Dec 7, 2008 at 13:26, Mark Dickinson [EMAIL PROTECTED] wrote: Mark Dickinson [EMAIL PROTECTED] added the comment: About unittest: unittest.TestLoader has an attribute sortTestMethodsUsing, which it expects to be an old-style

[issue4509] bugs in array.array with exports (buffer protocol)

2008-12-07 Thread gumpy
gumpy [EMAIL PROTECTED] added the comment: I've opened a new memoryview/array segfault issue since #4569 was closed: #4583 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4509 ___

[issue4581] failed to import module from lib-dynload

2008-12-07 Thread Leger
Leger [EMAIL PROTECTED] added the comment: - configure --with-pydebug --with-doc-strings --enable-shared --enable-profiling --enable-ipv6 --with-threads --with-tsc --prefix=/usr - print(sys.exec_prefix) /usr/lib/python3.0 print(sys.path) ['', '/usr/lib/python3.0', '/home/fred/python',

[issue4584] doctest fails to display bytes type

2008-12-07 Thread Michael Yang
New submission from Michael Yang [EMAIL PROTECTED]: doctest.testmod() fails when attempting to echo back a bytes type with ord() 128. def ok(): bytes([255,]) b'\xff' pass def notOK(): b'\xff' pass import doctest doctest.testmod() Traceback (most recent call last):

[issue4579] .read() and .readline() differ in failing

2008-12-07 Thread Mark Florisson
Mark Florisson [EMAIL PROTECTED] added the comment: Perhaps it's linux specific then. I'm on debian lenny (2.6.26-1-amd64). ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4579 ___

[issue4581] failed to import module from lib-dynload

2008-12-07 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: I can't reproduce this. Are you sure you didn't configure with --prefix=/usr/lib/python3.0 at some point? That would be about the only way how sys.exec_prefix could get its value? Can you start over with a clean source tree, and try

[issue4585] Build failure on OS X 10.5.5: make: *** [sharedmods] Error 1

2008-12-07 Thread Mark Dickinson
New submission from Mark Dickinson [EMAIL PROTECTED]: There are two recent reports of build failures of Python 3.0 on OS X 10.5.5: see http://mail.python.org/pipermail/python-list/2008-November/514159.html and http://mail.python.org/pipermail/python-3000/2008-December/015404.html It seems

[issue4584] doctest fails to display bytes type

2008-12-07 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: You've included a chr(255) character in your docstring. You need to escape the backslash in order to include the bytes representation like it will be generated. -- nosy: +georg.brandl resolution: - invalid status: open - closed

[issue4483] Error to build _dbm module during make

2008-12-07 Thread Skip Montanaro
Skip Montanaro [EMAIL PROTECTED] added the comment: Roumen I'm not sure that recent commits in trunk are correct. Roumen Please confirm that build of dbm module with Berkeley DB is Roumen deprecated. Can you explain how you think they are incorrect? The code to decide how to build the

[issue4581] failed to import module from lib-dynload

2008-12-07 Thread Leger
Leger [EMAIL PROTECTED] added the comment: Ok Martin, I delete all source and /usr/lib/python3.0, restart from the tarball. I apply the patch dbm.diff (issue4581) and after : configure --with-pydebug --with-doc-strings --enable-shared --enable-profiling --enable-ipv6 --with-threads --with-tsc

[issue4578] compiler: -3 warnings

2008-12-07 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Since the compiler package is removed in Python 3, I think it's okay for it to raise py3k warnings -- in fact, it should raise a quite prominent one when first imported that it's going to be removed. -- nosy: +georg.brandl resolution: -

[issue4457] __import__ documentation obsolete

2008-12-07 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Changed patch to document sys.modules trick and applied in r67654. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4457

[issue4586] Extending Embedded Python documention uses removed Py_InitModule function

2008-12-07 Thread blake madden
New submission from blake madden [EMAIL PROTECTED]: On the page: http://docs.python.org/3.0/extending/embedding.html#extending-embedded-python Note that the function Py_InitModule is used. From what I can tell, this function no longer exists and regrettably I can't figure out how to get

[issue4586] Extending Embedded Python documention uses removed Py_InitModule function

2008-12-07 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Should be fixed in r67655. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4586 ___

[issue4483] Error to build _dbm module during make

2008-12-07 Thread Roumen Petrov
Roumen Petrov [EMAIL PROTECTED] added the comment: The old if statement was flat: if find_file(ndbm.h, inc_dirs, []) is not None: CODE elif (self.compiler.find_library_file(lib_dirs, 'gdbm') and find_file(gdbm/ndbm.h, inc_dirs, []) is not None): CODE elif db_incs is not None: CODE

[issue4578] compiler: -3 warnings

2008-12-07 Thread Sebastian Rittau
Sebastian Rittau [EMAIL PROTECTED] added the comment: I'd like to see this fixed, just to decrease the amount of warning spam I get when testing my own packages. It seems that one of my dependecies that I have no control over is pulling this in. Adding a warning when this module is important

[issue4579] .read() and .readline() differ in failing

2008-12-07 Thread Calvin Spealman
Changes by Calvin Spealman [EMAIL PROTECTED]: -- nosy: +ironfroggy ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4579 ___ ___ Python-bugs-list mailing

[issue4579] .read() and .readline() differ in failing

2008-12-07 Thread Calvin Spealman
Calvin Spealman [EMAIL PROTECTED] added the comment: Confirmed this behavior on my ubuntu installations but it fails properly on Windows. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4579 ___

[issue4573] zsh-style subpattern matching for fnmatch/glob

2008-12-07 Thread Calvin Spealman
Calvin Spealman [EMAIL PROTECTED] added the comment: This should be applicable to 2.7, at least, as well. Here is a backport of the patch against trunk. -- nosy: +ironfroggy Added file: http://bugs.python.org/file12273/zsh-fnmatch-2.7.diff ___

[issue4573] zsh-style subpattern matching for fnmatch/glob

2008-12-07 Thread Calvin Spealman
Changes by Calvin Spealman [EMAIL PROTECTED]: -- versions: +Python 2.7 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4573 ___ ___ Python-bugs-list

[issue4199] add shorthand global and nonlocal statements

2008-12-07 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- priority: high - critical ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4199 ___ ___

[issue4483] Error to build _dbm module during make

2008-12-07 Thread Skip Montanaro
Skip Montanaro [EMAIL PROTECTED] added the comment: Roumen The old if statement was flat: ... Okay, I understand now. Roumen The new if statement contain nested if: Roumen Now the second case is only self.compiler.find_library_file(lib_dirs, Roumen 'gdbm'): and if succeed (my

[issue4587] Need to rework the dbm lib/include selection process

2008-12-07 Thread Skip Montanaro
New submission from Skip Montanaro [EMAIL PROTECTED]: Fixing issue4483 resulted in adding an extra header file check for gdbm-based header files when the gdbm library was found. This caused problems for Roumen Petrov. In considering the problems he encountered I decided we probably need to

[issue4587] Need to rework the dbm lib/include selection process

2008-12-07 Thread Skip Montanaro
Changes by Skip Montanaro [EMAIL PROTECTED]: -- components: +Build nosy: +rpetrov priority: - normal type: - behavior versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4587

[issue1717] Get rid of more refercenes to __cmp__

2008-12-07 Thread Christian Heimes
Christian Heimes [EMAIL PROTECTED] added the comment: The latest patch removes PyUnicode_Compare as well as lots of __cmp__ functions under Lib/. It also renames and redefines PyUnicode_CompareWithASCIIString(). The simpler PyUnicode_EqualToASCIIString() function is easier to use, too.

[issue4483] Error to build _dbm module during make

2008-12-07 Thread Skip Montanaro
Skip Montanaro [EMAIL PROTECTED] added the comment: Skip I'm beginning to think this area needs more work. Let's leave Skip this ticket closed. I'll open a new one so we can figure out the Skip best way to tackle this. http://bugs.python.org/issue4587 Skip

[issue4587] Need to rework the dbm lib/include selection process

2008-12-07 Thread Skip Montanaro
Skip Montanaro [EMAIL PROTECTED] added the comment: Roumen, can you take a look at (and try) the attached patch? It uses an environment variable, PYDBMLIBORDER to define the order of libraries to check for dbm build suitability. If not specified it defaults to ndbm:gdbm:bdb. --

[issue4568] Improved optparse varargs callback example

2008-12-07 Thread Gregg Lind
Changes by Gregg Lind [EMAIL PROTECTED]: -- versions: +Python 2.5, Python 2.5.3, Python 2.6, Python 2.7, Python 3.0, Python 3.1 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4568 ___

[issue4320] optparse: 1 2 3 should be seen as one string

2008-12-07 Thread Gregg Lind
Gregg Lind [EMAIL PROTECTED] added the comment: Can you show an example of this not working? Works fine for me in 2.4/2.5/2.6. -- nosy: +gregg.lind ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4320

[issue4406] In Lib\tkinter\filedialog.py, class Directory define loss a_

2008-12-07 Thread lion.guo
lion.guo [EMAIL PROTECTED] added the comment: Why didn't include this patch in python 3.0 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4406 ___ ___

[issue4588] Need a way to make my own bytes

2008-12-07 Thread jeff deifik
New submission from jeff deifik [EMAIL PROTECTED]: I want to make my own data of types bytes in order to write it out. For example, I want to write out the bytes 0..9 #!/usr/bin/env python3.0 foo = b'' for i in range (0,10): foo += i #sys.stdout.buffer.write(foo) Here is the error:

[issue4581] failed to import module from lib-dynload

2008-12-07 Thread Martin v. Löwis
Changes by Martin v. Löwis [EMAIL PROTECTED]: -- resolution: - works for me status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4581 ___

[issue4588] Need a way to make my own bytes

2008-12-07 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: bytes([some_number]) should do the trick. -- nosy: +benjamin.peterson resolution: - invalid status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4588

[issue4588] Need a way to make my own bytes

2008-12-07 Thread jeff deifik
jeff deifik [EMAIL PROTECTED] added the comment: Doesn't work. #!/usr/bin/env python3.0 import sys foo = b'' for i in range (0,10): foo += bytes(i) sys.stdout.buffer.write(foo) produces a binary file of 45 bytes. Here is a hex dump (the '.' represent unprintable characters): +00000

[issue4588] Need a way to make my own bytes

2008-12-07 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: Please don't use the bug tracker to obtain help, but only to report bugs. Use [EMAIL PROTECTED] to get help. In this specific case, also read Benjamin's answer more carefully. -- nosy: +loewis ___

[issue4589] 'with' loses -bool exceptions

2008-12-07 Thread Jeffrey Yasskin
New submission from Jeffrey Yasskin [EMAIL PROTECTED]: When a context manager's __exit__() method returns an object whose conversion to bool raises an exception, 'with' loses that exception. For example: class CM(object): ... def __init__(self, exit_result): ... self.exit_result =

[issue4552] Doc/tools/sphinxext not included in the 2.6.1 tarball

2008-12-07 Thread Matthias Klose
Matthias Klose [EMAIL PROTECTED] added the comment: In my opinion the tar balls should contain all necessary bits and pieces to build the docs yourself. It makes no sense to include the Doc/ folder w/o any means to use them. + 1 Let's include sphinxext and document the required versions of