[issue9855] Complex number slicing neither works nor causes an error on immediate use

2010-09-14 Thread Tom
New submission from Tom : I hope the title of this makes sense. I've been out of things for a long time. Going through the Python tutorial (http://docs.python.org/tutorial/introduction.html) I departed from the script to try something. It gave neither of the results I had thought it

[issue9855] Complex number slicing neither works nor causes an error on immediate use

2010-09-14 Thread Tom
Tom added the comment: Thanks! I'm not surprised that it was something stupidofme like that. Sorry to have troubled you. :) -- ___ Python tracker <http://bugs.python.org/i

[issue2054] add ftp-tls support to ftplib - RFC 4217

2009-09-12 Thread Tom
Changes by Tom : -- nosy: +qwavel ___ Python tracker <http://bugs.python.org/issue2054> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue3890] ssl.SSLSocket.recv() implementation may not work with non-blocking sockets

2009-09-18 Thread Tom
Tom added the comment: I have just encountered this bug on Python 2.6.2 on Windows. I hope the fix makes it into 2.6.3. Thanks for the patch. -- nosy: +qwavel ___ Python tracker <http://bugs.python.org/issue3

[issue602345] option for not writing .py[co] files

2007-10-19 Thread Tom Tanner
Tom Tanner added the comment: Is there likely to be any action on this. We can get issues with the creation of .pyc files due to our build setup. We can get situations where we run builds in parallel on 2 different architectures. Our build is set up so that anything generated by compilers end up

[issue1673409] datetime module missing some important methods

2007-11-02 Thread Tom Lazar
Tom Lazar added the comment: unless I'm missing something important this will do the trick quite nicely: >>> from datetime import datetime >>> datetime(2007, 12, 24, 20, 0).strftime("%s") '1198522800' For most imaginable use cases, where

[issue1731717] race condition in subprocess module

2007-11-20 Thread Tom Culliton
Tom Culliton added the comment: This or some variant also shows up with scons (http://scons.tigris.org/issues/show_bug.cgi?id=1839) leading to some nasty intermittent build failures. Neal may remember how we addressed this for a Process class in a past life. Basically it's OK to collec

[issue1731717] race condition in subprocess module

2007-11-27 Thread Tom Culliton
Tom Culliton added the comment: Looking at the subprocess.py code it occurred to me that it never checks if the value of self.pid returned by os.fork is -1, this would mean that later it runs waitpid with -1 as the first argument, putting it into promiscuous (wait for any process in the group

[issue1731717] race condition in subprocess module

2007-11-27 Thread Tom Culliton
Tom Culliton added the comment: Good question. The documentation I was reading was mute on the subject so I made a "reasonable" guess. Does it throw an exception instead? Guido van Rossum wrote: > Guido van Rossum added the comment: > > >> Looking at the subproce

[issue1313119] urlparse "caches" parses regardless of encoding

2007-12-10 Thread Tom Parker
Tom Parker added the comment: Also effects Python 2.5.1 (tested on Debian python2.5 package version 2.5.1-5) -- nosy: +palfrey versions: +Python 2.5 _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/iss

[issue1859] textwrap doesn't linebreak on "\n"

2008-01-17 Thread Tom Parker
Tom Parker added the comment: Attaching a patch that corrects the issue (against python 2.4) Added file: http://bugs.python.org/file9192/textwrap-fix.patch __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/

[issue1859] textwrap doesn't linebreak on "\n"

2008-01-17 Thread Tom Parker
New submission from Tom Parker: If a piece of text given to textwrap contains one or more "\n", textwrap does not break at that point. I would have expected "\n" characters to cause forced breaks. -- components: Library (Lib) messages: 60026 nosy: palfrey severity

[issue1859] textwrap doesn't linebreak on "\n"

2008-01-17 Thread Tom Parker
Tom Parker added the comment: If replace_whitespace in textwrap is set to False (True is default) then there are newlines. Yes, if you haven't set this then the patch does nothing (but that sounds sane to me) The exact text was "RadioTest TOSSIM stress tester by Tom Parker <[EM

[issue1859] textwrap doesn't linebreak on "\n"

2008-01-17 Thread Tom Parker
Tom Parker added the comment: @Guido: Thanks for the suggestion, it fixes my immediate problem! @Mark: Yup, that was exactly my issue. It took a while to figure out why the heck it was ignoring my linebreaks, and then once I'd found replace_whitespace it appeared to be doing the "wrong

[issue1859] textwrap doesn't linebreak on "\n"

2008-01-17 Thread Tom Parker
Tom Parker added the comment: Is there any other way to do what I was trying to do then (both dynamic wrapping for long segments + some static breaks)? Right now, the only option I can think of is writing a textwrap.TextWrapper subclass that implements my patch, and copying 70-ish lines of code

[issue1631394] sre module has misleading docs

2008-01-25 Thread Tom Lynn
Tom Lynn added the comment: Thanks for fixing this. I now also note that (?<=...), (?http://bugs.python.org/file9284/undoc-patch.txt _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/

[issue1631394] sre module has misleading docs

2008-01-26 Thread Tom Lynn
Tom Lynn added the comment: Nice changes to the wording. (For the record: it's r60316 in fact.) _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1631394> _ _

[issue1731717] race condition in subprocess module

2008-03-24 Thread Tom Culliton
Tom Culliton <[EMAIL PROTECTED]> added the comment: I'm not sure what the POSIX standards say on this (and MS-Windows may go it's own contrary way), but for most real systems the PID is a running count (generally 32 bit or larger today) which would have to cycle all the way

[issue1731717] race condition in subprocess module

2008-03-24 Thread Tom Culliton
Tom Culliton <[EMAIL PROTECTED]> added the comment: AIX, HP-UX, Solaris, 64 bit Linux, ... Even in the Linux x86 header files there's a mix of int and short. The last time I had to do the math on how long it would take the PID to cycle was probably on an AIX box and it was a ver

[issue2670] urllib2 build_opener() fails if two handlers use the same default base class

2008-04-22 Thread Tom Lynn
New submission from Tom Lynn <[EMAIL PROTECTED]>: urllib2.py:424 (Py 2.4) or urllib2.py:443 (Py 2.5) in build_opener():: skip = [] for klass in default_classes: for check in handlers: if inspect.isclass(check): if issubclass

[issue2637] urllib.quote() escapes characters unnecessarily and contrary to docs

2008-05-06 Thread Tom Pinckney
Tom Pinckney <[EMAIL PROTECTED]> added the comment: It also looks like urllib.quote (and quote_plus) do not properly handle unicode strings. urllib.urlencode() properly converts unicode strings to utf-8 encoded ascii strings before then calling urllib.quote() on them. -

[issue7851] WatchedFileHandler needs to be references as handlers.WatchedFileHandler in conf files

2010-02-03 Thread Tom Aratyn
New submission from Tom Aratyn : The documentation on using logging configuration files (http://docs.python.org/library/logging.html#configuring-logging) doesn't mention that the WatchedFileHandler needs to be referenced as "handlers.WatchedFileHandler". This behavior is diff

[issue7998] MacPython 2.7a3 posix_spawn error for build using --with-framework-name

2010-02-22 Thread Tom Loredo
New submission from Tom Loredo : Build Py-2.7a3 on Snow Leopard OS 10.6.2 with a non-default framework name: ./configure --prefix=/usr/local/tmp --enable-framework --with-framework-name=PythonAlpha --enable-universalsdk=/ --with-universal-archs=intel "make" succeeds, "m

[issue7998] MacPython 2.7a3 posix_spawn error for build using --with-framework-name

2010-03-07 Thread Tom Loredo
Tom Loredo added the comment: > Ronald Oussoren added the comment: > > Fix in r78755 (2.7) and r78756 (3.2) Thanks for your attention to this, Ronald---and all the hard work on the OS X support. -Tom - This mail sent through

[issue8089] 2.6/3.1 32-bit/64-bit universal builds always run in 64-bit on 10.6

2010-03-14 Thread Tom Loredo
Tom Loredo added the comment: Attempted to build 2.6.5rc2 on Mac Pro (2006), OS 10.6.2, following instructions in Mac/README: ./configure --prefix=/usr/local/tmp --enable-framework --with-universal-archs=intel --enable-universalsdk=/ Results of "make test" are as expected

[issue8089] 2.6/3.1 32-bit/64-bit universal builds always run in 64-bit on 10.6

2010-03-15 Thread Tom Loredo
Tom Loredo added the comment: Ned- I *did* run "make install"; everything I reported was about the situation *after* running "make install". In particular, I don't know any way to get access to IDLE without "make install"; what I described came from using

[issue8089] 2.6/3.1 32-bit/64-bit universal builds always run in 64-bit on 10.6

2010-03-16 Thread Tom Loredo
Tom Loredo added the comment: > the python-32 executable has never been linked into /usr/local/bin. What I meant by "the version pointed to" is: The "python" command in 2.6.4 produced by an "intel" universal build (whether in the framework or the install pre

[issue8089] 2.6/3.1 32-bit/64-bit universal builds always run in 64-bit on 10.6

2010-03-16 Thread Tom Loredo
Tom Loredo added the comment: > Unless you vehemently disagree, I am not making this a release blocker for > 2.6.5. I'm not sure who you are asking (I doubt it was me!), but I don't consider this a release blocker. The only possible substantive issue is whether "pytho

[issue7936] sys.argv contains only scriptname

2010-03-23 Thread Tom Zych
Tom Zych added the comment: I'm getting something like this on Windows 7: C:\>assoc .py .py=Python.File C:\>ftype Python.File Python.File="C:\Python31\py31.exe" "%1" %* C:\>args.py 1 2 3 Python version: sys.version_info(major=3, minor=1, micro=1, releaselev

[issue7936] sys.argv contains only scriptname

2010-03-23 Thread Tom Zych
Tom Zych added the comment: No joy :( I tried putting double-quotes around %%*, that didn't work either. Tried single-quotes too, just in case it works like a Bourne-type shell. BTW I forgot to set 3.1 on my earlier message. That business about having to double the % rings a faint bell

[issue6900] Sub-optimal "Locate" button behaviour in Windows CHM file

2010-05-22 Thread Tom Seddon
Tom Seddon added the comment: Yes, this new version looks to do the job! (Regarding the CSS, I'm not so sure about the serifs yet, but I'll let it sink in and see how I feel :) -- ___ Python tracker <http://bugs.python.

[issue7936] sys.argv contains only scriptname

2010-06-15 Thread Tom Zych
Tom Zych added the comment: The problem went away by itself after a while. I suspect a Windows update. -- ___ Python tracker <http://bugs.python.org/issue7

[issue9441] increase logging handlers test coverage

2010-07-31 Thread Tom Dunham
New submission from Tom Dunham : Some regression tests for logging handlers, brings coverage up from 37% to 52%. Mainly tests to rotating file handlers. -- components: Library (Lib) files: rotating_file_handlers.patch keywords: patch messages: 112171 nosy: Tom priority: normal severity

[issue9441] increase logging handlers test coverage

2010-08-01 Thread Tom Dunham
Tom Dunham added the comment: Good point, thank you. I've updated the patch. -- Added file: http://bugs.python.org/file18313/rotating_file_handlers.patch ___ Python tracker <http://bugs.python.org/i

[issue9652] Tidy argparse default output

2010-08-20 Thread Tom Browder
New submission from Tom Browder : I would like to be able to change argparse default strings so the first word is capitalized. In lieu of that, I propose the attached patch to 2.7 which changes them in the source code. -- components: Library (Lib) files: python-v2.7-argparser

[issue9653] New default argparse output to be added

2010-08-20 Thread Tom Browder
New submission from Tom Browder : When I use the argparse module, and I enter my program name with NO arguments or options, I would like the argparser to output something like: Usage: [options] Use option '-h' for help. I haven't yet found how to do that in the argparse mod

[issue9653] New default argparse output to be added

2010-08-22 Thread Tom Browder
Tom Browder added the comment: On Sun, Aug 22, 2010 at 16:01, Steven Bethard wrote: > > Steven Bethard added the comment: > > A simpler approach might be to do this before your call to parse_args: > > if len(sys.argv[0]) == 1: >    parser.print_help() > > Does t

[issue9653] New default argparse output to be added

2010-08-23 Thread Tom Browder
Tom Browder added the comment: On Sun, Aug 22, 2010 at 17:06, Steven Bethard wrote: ... > import argparse > import sys > > parser = argparse.ArgumentParser() > parser.add_argument('--foo') > > if len(sys.argv) == 1: >    parser.print_help() > else: >

[issue9653] New default argparse output to be added

2010-08-24 Thread Tom Browder
Tom Browder added the comment: ... > I see. When there are no arguments you basically want to replace the standard > argparse help entirely with your own > message, with your own capitalization, > etc. > What you're doing now looks like a pretty good approach for this, so

[issue9652] Tidy argparse default output

2010-08-27 Thread Tom Browder
Tom Browder added the comment: ... > Should this be closed in favor of #9694? (Or vice versa?). Perhaps one of the > issues should be renamed something like "Improve argparse message > customization". That sounds like a winner to me -Tom -- title: Enhance a

[issue9879] Tracker Won't Accept New Bugs

2010-09-16 Thread Tom Browder
New submission from Tom Browder : When I attempt to enter a new bug I get: An error has occurred A problem was encountered processing your request. The tracker maintainers have been notified of the problem. -- components: Demos and Tools messages: 116620 nosy: Tom.Browder priority

[issue9879] Tracker Won't Accept New Bugs

2010-09-16 Thread Tom Browder
Tom Browder added the comment: Since this worked, I tried again to enter the bug with a new process. I have tried changing several selections but I still get the error--very strange! -- ___ Python tracker <http://bugs.python.org/issue9

[issue9880] Python 2.7 Won't Build: SystemError: unknown opcode

2010-09-16 Thread Tom Browder
New submission from Tom Browder : I am trying to rebuild the 2.7 maintenance branch and get this error on Ubuntu 10.04.1 LTS: XXX lineno: 743, opcode: 0 Traceback (most recent call last): File "/usr/local/src/python-2.7-maint-svn/Lib/site.py", line 62, in import os File "

[issue9880] Python 2.7 Won't Build: SystemError: unknown opcode

2010-09-16 Thread Tom Browder
Changes by Tom Browder : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue9880> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue9879] Tracker Won't Accept New Bugs

2010-09-16 Thread Tom Browder
Tom Browder added the comment: It looks like the problem was because I was trying to add a complete e-mail address to the "nosy" list. -- ___ Python tracker <http://bugs.python.

[issue9880] Python 2.7 Won't Build: SystemError: unknown opcode

2010-09-16 Thread Tom Browder
Tom Browder added the comment: File attached as requested. -- Added file: http://bugs.python.org/file18905/os.pyc ___ Python tracker <http://bugs.python.org/issue9

[issue9880] Python 2.7 Won't Build: SystemError: unknown opcode

2010-09-17 Thread Tom Browder
Tom Browder added the comment: I'm using gcc-4.5.1. I'll try an older version: gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3. -- ___ Python tracker <http://bugs.python.

[issue9880] Python 2.7 Won't Build: SystemError: unknown opcode

2010-09-17 Thread Tom Browder
Tom Browder added the comment: The build succeeded with the older version of gcc. I either have a mis-compiled gcc-4.5.1 (but the same version on another host worked okay) or gcc has a very subtle bug. I think this issue can be considered closed; however, it may be worth a note in a FAQ or

[issue9880] Python 2.7 Won't Build: SystemError: unknown opcode

2010-09-17 Thread Tom Browder
Tom Browder added the comment: Correction on the bad gcc compiler: the actual version was a non-released version off the gcc-4.6 branch: gcc version 4.6.0 20100908 (experimental) (GCC). I'm filing a bug with gcc. Sorry for the wasted

[issue9880] Python 2.7 Won't Build: SystemError: unknown opcode

2010-09-17 Thread Tom Browder
Tom Browder added the comment: Here is a link to the thread I started on the gcc-help mailing list concerning the issue: http://gcc.gnu.org/ml/gcc-help/2010-09/msg00170.html If I don't get a successful build with the current gcc trunk, I imagine this thread will transfer to the gcc

[issue1708652] Exact matching

2010-09-17 Thread Tom Lynn
Tom Lynn added the comment: I don't know whether it should stand, I'm somewhere around 0 on it myself. So I guess that means it shouldn't, since it's easier to add features than remove them. The problem is that once you're aware of the need for it you need it less.

[issue1708652] Exact matching

2010-09-18 Thread Tom Lynn
Tom Lynn added the comment: I'm still unsure. I think this confusion does cause bugs in real-world code. Perhaps more prominence for \A and \Z in the docs? There's already a section comparing regexps starting '^' with match under "Matching vs Searching".

[issue1708652] Exact matching

2010-09-18 Thread Tom Lynn
Tom Lynn added the comment: Actually, looking at the second part of the docs for $ (on "foo.$") makes me think the main motivating case here may be a bug in re.match:: >>> re.match('foo$', 'foo\n\n') >>> re.match('foo$', 

[issue1708652] Exact matching

2010-09-18 Thread Tom Lynn
Tom Lynn added the comment: Oh dear, I'm wrong on two fronts (I wish Roundup had post editing). a) foo$ doesn't match the 'foo' part of 'foo\nbar' as I stated above, but does match the 'foo' part of 'foo\n'. b) Obviously shortening an inpu

[issue1708652] Exact matching

2010-09-18 Thread Tom Lynn
Tom Lynn added the comment: (Sorry to comment on a closed issue, it was closed as I was writing this.) It's not that I'm not convinced of the need, just not of the solution. I still think that there are problems here: a) forgetting any \Z or $ terminator to .match() is easy, b) $

[issue9880] Python 2.7 Won't Build: SystemError: unknown opcode

2010-09-19 Thread Tom Browder
Tom Browder added the comment: I'm getting no interest from the gcc group at the moment. I would like to help track down the bug and will nose around the Python source to zero in on where the problem is for detailed debugging. Can anyone point me to the key files that concern the

[issue10016] shutil.copyfile -- allow sparse copying

2010-10-02 Thread Tom Potts
New submission from Tom Potts : Copying a sparse file under Linux using shutil.copyfile will not result in a sparse file at the end of the process. I'm submitting a patch that will remedy this. Note that I am only concerned with Linux at the moment -- as far as I know this patch wil

[issue10016] shutil.copyfile -- allow sparse copying

2010-10-02 Thread Tom Potts
Tom Potts added the comment: (see opening message) -- Added file: http://bugs.python.org/file19108/shutil-2.7.patch ___ Python tracker <http://bugs.python.org/issue10

[issue10016] shutil.copyfile -- allow sparse copying

2010-10-02 Thread Tom Potts
Changes by Tom Potts : Added file: http://bugs.python.org/file19109/shutil-3.2.1.patch ___ Python tracker <http://bugs.python.org/issue10016> ___ ___ Python-bugs-list m

[issue10016] shutil.copyfile -- allow sparse copying

2010-10-04 Thread Tom Potts
Tom Potts added the comment: @pitrou Hmm... the online docs and the contents of the doc directory on the trunk branch say differently: """ Resize the stream to the given *size* in bytes (or the current position if *size* is not specified). The current stream position isn&

[issue10025] random.seed not initialized as advertised

2010-10-04 Thread Tom Goddard
New submission from Tom Goddard : In Python 2.7, random.seed() with a string argument is documented as being equivalent to random.seed() with argument equal to the hash of the string argument. This is not the actual behavior. Reading the _random C code reveals it in fact casts the signed

[issue9163] test_gdb fails

2010-10-06 Thread Tom Morris
Tom Morris added the comment: Did this fix actually make the 2.7 release? I just installed 2.7 on 64-bit Ubuntu and ran into the same problem. python -c "import sysconfig; print sysconfig.get_config_vars()['PY_CFLAGS']" -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrap

[issue9163] test_gdb fails

2010-10-07 Thread Tom Morris
Tom Morris added the comment: Sorry, I misread the 'version' field as the version the fix was committed for, not the version the bug was reported against. The fix was reportedly fixed in r82648 and v2.7 is r82500. If there's ever a 2.7.1, I guess the fix will appear, but sin

[issue10052] Python/dtoa.c:158: #error "Failed to find an exact-width 32-bit integer type" (FreeBSD 4.11 + gcc 2.95.4)

2010-10-14 Thread Tom O'Connor
Tom O'Connor added the comment: Same problem on SGI IRIX 6.5.28 GCC 3.3. Adding the following to pyport.h got me through as well. #define UINT32_MAX 0x #define INT32_MAX 0x7fff -- nosy: +Tom.OConnor ___ Python tracker

[issue10175] vs version for win32 compilation of extension modules is undocumented.

2010-10-22 Thread Tom Fogal
New submission from Tom Fogal : I have recently attempted to install a couple third party packages (zope.interface and dulwech, FWIW) and encountered great difficulties. In particular, the setup complained that it could not find "vcvarsall.bat". Even running these setup scripts

[issue2927] expose html.parser.unescape

2010-11-02 Thread Tom Pinckney
Tom Pinckney added the comment: I don't think Django includes an HTML unescape. I'm not familiar with other frameworks. So I'd still find this useful to include in the stdlib. -- ___ Python tracker <http://bugs.py

[issue11442] list_directory() in SimpleHTTPServer.py should add charset=... to Content-type header

2011-03-16 Thread Tom N
Tom N added the comment: I have backported the code from python 3, to apply to the current 2.7 branch. All tests pass, and my machine reports "Content-type: text/html; charset=UTF-8", which appears to be correct. -- keywords: +patch nosy: +Tom.N Added file: http://bugs.

[issue11620] winsound.PlaySound() with SND_MEMORY should accept bytes instead of strings

2011-03-20 Thread Tom Felker
New submission from Tom Felker : PlaySound supposedly lets you play a .WAV file whose contents are stored in a string, by passing the string and flags including winsound.SND_MEMORY. I'm trying to use BytesIO object and the wave module to make a file in-memory, and pass this to win

[issue11643] Use |version| instead of X.Y in the doc

2011-05-18 Thread Tom McDermott
Tom McDermott added the comment: Things are slightly worse than this issue suggests: the Sphinx formatting string |version| has leaked into the html docs in a few places (library/site.html for example). The difficulty is that Sphinx isn't expanding the |version| variable inside

[issue11217] python-32 not linked in /usr/local/bin in framework builds

2011-05-28 Thread Tom Loredo
Tom Loredo added the comment: Thanks for handling this, Ned! -Tom -- ___ Python tracker <http://bugs.python.org/issue11217> ___ ___ Python-bugs-list mailin

[issue12267] Difficult to compile python in Visual Studio 2010 express

2011-06-05 Thread Tom Whittock
New submission from Tom Whittock : The automatic upgrade process included with Microsoft Visual Studio 2010 express is unable to deal with the project files in the python PC folder, due to it not supporting the x64 target. I had to manually edit the project files to remove all references to

[issue12267] Difficult to compile python in Visual Studio 2010 express

2011-06-05 Thread Tom Whittock
Tom Whittock added the comment: Fair enough. The reason I added it is because that's the most easily available free compiler for Windows machines at the moment, and due to the lack of x64 support it's not easy to start compiling python with it. It's quite awkward to get

[issue12267] Difficult to compile python in Visual Studio 2010 express

2011-06-05 Thread Tom Whittock
Tom Whittock added the comment: Wouldn't a full (I assume you mean pro/team edition) 2010 version will include the x64 stuff which will make the express edition unable to load it? -- ___ Python tracker <http://bugs.python.org/is

[issue12267] Difficult to compile python in Visual Studio 2010 express

2011-06-05 Thread Tom Whittock
Tom Whittock added the comment: Ah, in that case it seems my patch isn't particularly useful then. I'd personally like to see Brian Curtins patch applied sooner rather than later, however - 2010 support is very important to me. I'll be running that locally for the meanti

[issue1195571] simple callback system for Py_FatalError

2011-06-08 Thread Tom Whittock
Changes by Tom Whittock : -- nosy: +Tom.Whittock ___ Python tracker <http://bugs.python.org/issue1195571> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12288] Python 2.7.1 tkSimpleDialog initialvalue

2011-06-08 Thread Tom Middleton
New submission from Tom Middleton : Using Tkinter under Python 2.7.1 (Windows XP FWIF) If using the tkSimpleDialog.askinteger() function with an initialvalue = 0, the 0 is not displayed in the dialog box. The same is true for tkSimpleDialog.askfloat(). The cause of this seems to be the

[issue7846] Fnmatch cache is never cleared during usage

2011-06-29 Thread Tom Rini
Tom Rini added the comment: Did a change later make this user-configurable? I've got some code here that now runs so slow as to be unusable because nothing is ever cached anymore. Thanks! -- nosy: +Tom.Rini ___ Python tracker

[issue7846] Fnmatch cache is never cleared during usage

2011-07-01 Thread Tom Rini
Tom Rini added the comment: So yes, we have some code that was doing, roughly: if any(fnmatchcase(key, pat) for pat in pattern): refs.add(key) on 200-300 elements, a lot. That said, many of them were not globs so we've worked around this to only use fnmatchcase on globs and just key i

[issue13651] Improve redirection in urllib

2012-01-26 Thread tom kel
tom kel added the comment: I changed the patch and made it a little bit better. -- versions: +Python 3.1, Python 3.4 -Python 2.7 Added file: http://bugs.python.org/file24334/2012-1-26.diff ___ Python tracker <http://bugs.python.org/issue13

[issue14042] json.dumps() documentation is slightly incorrect.

2012-02-17 Thread Tom Christie
New submission from Tom Christie : json.dumps() documentation is slightly incorrect. http://docs.python.org/library/json.html#json.dumps Reads: "If ensure_ascii is False, then the return value will be a unicode instance." Should read: "If ensure_ascii is False, then the r

[issue12568] Add functions to get the width in columns of a character

2012-03-10 Thread Tom Christiansen
Tom Christiansen added the comment: I would encourage you to look at the Perl CPAN module Unicode::LineBreak, which fully implements tr11. It includes Unicode::GCString, a class that has a columns() method to determine the print columns. This is very fancy in the case of Asian widths, but of

[issue12568] Add functions to get the width in columns of a character

2012-03-10 Thread Tom Christiansen
Tom Christiansen added the comment: >Martin v. L=C3=B6wis added the comment: >> Martin, I think you meant to write "if w =3D=3D 'A':". >> Some very common characters have ambiguous widths though (e.g. the Greek = >alphabet), so you can't just raise

[issue12568] Add functions to get the width in columns of a character

2012-03-10 Thread Tom Christiansen
Tom Christiansen added the comment: >Martin v. L=C3=B6wis added the comment: >> I would encourage you to look at the Perl CPAN module Unicode::LineBreak, >> which fully implements tr11. >Thanks for the pointer! >> If you'd like, I can show you a program t

[issue1065986] Fix pydoc crashing on unicode strings

2012-04-12 Thread Tom Bachmann
Tom Bachmann added the comment: Hello, [this is my first bug report, so I'm sorry if I'm not adhering to some conventions] in what versions of python is this supposed to be fixed? Consider: % python Python 2.7.2+ (default, Nov 30 2011, 19:22:03) [GCC 4.6.2] on linux2

[issue1065986] Fix pydoc crashing on unicode strings

2012-04-12 Thread Tom Bachmann
Tom Bachmann added the comment: I see. Thank you. On 12.04.2012 16:08, R. David Murray wrote: > > R. David Murray added the comment: > > It is fixed in Python3. Apparently Raymond was wrong about it having been > fixed earlier (or perhaps he was referring to the unicode bei

[issue13241] llvm-gcc-4.2 miscompiles Python (XCode 4.1 on Mac OS 10.7)

2012-05-10 Thread Tom Pinckney
Tom Pinckney added the comment: FWIW, clang from Xcode 4.3.2 build 4E2002 w/ command line tools built everything fine for me too (i.e., ./configure CC=clang). LM-SJN-00377886:cpython tom$ uname -a Darwin LM-SJN-00377886 11.3.0 Darwin Kernel Version 11.3.0: Thu Jan 12 18:47:41 PST 2012

[issue1508475] transparent gzip compression in urllib

2012-05-10 Thread Tom Pinckney
Tom Pinckney added the comment: What if this gzip decompression was optional and controlled via a flag or handler instead of making it automagic? It's not entirely trivial to implement so it is nice to have the option of this happening automatically if one wishes. Then, the caller wou

[issue6696] Profile objects should be documented

2012-05-10 Thread Tom Pinckney
Tom Pinckney added the comment: Looking at the current docs for 3.3, it looks like there are a bunch of other ways that the docs could be clarified: 1) Proper documentation of the complete profile.Profile() and cProfile.Profile() interfaces. 2) Adding other examples to the quick start

[issue6696] Profile objects should be documented

2012-05-12 Thread Tom Pinckney
Tom Pinckney added the comment: I took a stab at updating the docs based on the current profiler source. See attached patch for a first draft. This is my first doc patch so would appreciate any feedback on style and substance of my changes. I tried to document more of the modules (for

[issue2927] expose html.parser.unescape

2010-11-08 Thread Tom Pinckney
Tom Pinckney added the comment: New patch attached, tested against Python 3.2. This is my first Python patch so apologies if I've done something wrong here. Feedback appreciated! Changes: * fit everything to 80 cols * just made changes to the HTMLParser.unescape function instead of prov

[issue1859] textwrap doesn't linebreak on "\n"

2010-11-23 Thread Tom Lynn
Tom Lynn added the comment: I've also been attempting to look into this and came up with an almost identical patch, which is promising: https://bitbucket.org/tlynn/issue1859/diff/textwrap.py?diff2=041c9deb90a2&diff1=f2c093077fbf I missed the wordsep_simple_re though. Testing it is

[issue10564] maths float error

2010-11-28 Thread Tom Quaile
New submission from Tom Quaile : Using IDLE 3.2a4 Apologies in advance for probably wasting your time. If I'm wrong, just ignore me. I'm very new to Python. Is this a bug, my processor or me? I'm sending this in as I see it's an alpha release. If the user supplies 100 as

[issue11217] python-32 not linked in /usr/local/bin in framework builds

2011-02-14 Thread Tom Loredo
New submission from Tom Loredo : When building a universal framework Python-2.7.1 with homebrew on 10.6.6, python-32 (and its target, python2.7-32) are built and installed in the framework executable path, but they are not linked in /usr/local/bin. msg101156 in Issue 8089 recognized this as

[issue11217] python-32 not linked in /usr/local/bin in framework builds

2011-02-15 Thread Tom Loredo
Tom Loredo added the comment: I believe the main Makefile makes the Mac/Makefile.in installunixtools target automatically, and I don't see that it should do "the right thing" regarding linking a python-32. I did the brew install again, logging the output, and adding an

[issue10907] OS X installer: warn users of buggy Tcl/Tk in OS X 10.6

2011-02-15 Thread Tom Loredo
Tom Loredo added the comment: I see this is marked as fixed but pending; perhaps the following comment will be useful. I encountered the IDLE/Tk instability issue when working on the Homebrew formula for Python-2.6.5 a year ago (March 2010). Building a universal framework Python on Intel

[issue11217] python-32 not linked in /usr/local/bin in framework builds

2011-02-18 Thread Tom Loredo
Tom Loredo added the comment: I believe this is a bug. The -32 part of Mac/Makefile.in builds and links the -32 versions here: ifneq ($(LIPO_32BIT_FLAGS),) lipo $(LIPO_32BIT_FLAGS) -output $(DESTDIR)$(prefix)/bin/python$(VERSION)-32 pythonw lipo $(LIPO_32BIT_FLAGS) -output

[issue11217] python-32 not linked in /usr/local/bin in framework builds

2011-02-18 Thread Tom Loredo
Tom Loredo added the comment: The attached patch does the trick. -- Added file: http://bugs.python.org/file20792/Python-2.7.1-patch.txt ___ Python tracker <http://bugs.python.org/issue11

[issue10907] OS X installer: warn users of buggy Tcl/Tk in OS X 10.6

2011-03-08 Thread Tom Loredo
Tom Loredo added the comment: Ned- Thanks a lot for the clarifications. Both the tracker and modified web page have cleared things up for me. > "* No recommended or alternate Tcl/Tk is indicated for 32/64 on 10.6. But > the 2.7.2 patched README indicates > ActiveTcl-8.5.9 wi

[issue15516] exception-handling bug in PyString_Format

2012-07-31 Thread Tom Tromey
New submission from Tom Tromey: In gdb we supply a class whose nb_int method can throw an exception. A user wrote code like this: return '%x' % value ... where "value" was an instance of this class. This caused funny exception behavior later on. You can see the origina

[issue15516] exception-handling bug in PyString_Format

2012-07-31 Thread Tom Tromey
Tom Tromey added the comment: Here is a patch that includes a test case. The test fails before the stringobject.c patch is applied, and passes after. -- Added file: http://bugs.python.org/file26629/P ___ Python tracker <http://bugs.python.

  1   2   3   >