[issue2016] Crash when modifying the **kwargs passed to a function.

2010-04-29 Thread R. David Murray
R. David Murray added the comment: It was merged to py3k in r73623, 3.1 in r73625, but not, as far as I can see, to 2.6. -- nosy: +r.david.murray stage: patch review -> commit review versions: -Python 2.5, Python 2.7, Python 3.0, Python

[issue6883] OptionParser.allow_interspersed_args is undocumented

2010-04-29 Thread R. David Murray
R. David Murray added the comment: Since he hasn't proposed a patch, we close it :) Skip can always reopen it if he wants. -- nosy: +r.david.murray status: open -> closed ___ Python tracker <http://bugs.python.or

[issue2211] Cookie.Morsel interface needs update

2010-04-29 Thread R. David Murray
R. David Murray added the comment: This looks like it would be a worthwhile cleanup, and the issue contains useful info to that end, so I'm marking it languishing rather than closing it, in the hopes that someone will pick it up some day. I also think this could be a nice bug day tas

[issue8572] httplib getheader() throws error instead of default

2010-04-29 Thread R. David Murray
R. David Murray added the comment: No, because my code is a backward compatibility hack. Currently if someone is passing a default successfully they must be doing it by passing in a list or tuple consisting of one or more strings. So your code would result in something like

[issue8573] Buggy _strerror in asyncore

2010-04-29 Thread R. David Murray
Changes by R. David Murray : -- nosy: +giampaolo.rodola, josiahcarlson type: crash -> behavior ___ Python tracker <http://bugs.python.org/issue8573> ___ ___ Py

[issue8572] httplib getheader() throws error instead of default

2010-04-29 Thread R. David Murray
R. David Murray added the comment: @senthil: I'm not quite sure what your sentence referencing couchdb is getting at, but the headers that are being queried are in an email.Message object, and contain only string values unless some code is misusing the API and setting new non-string v

[issue8572] httplib getheader() throws error instead of default

2010-04-29 Thread R. David Murray
R. David Murray added the comment: I seem to have been missing some context here. I now understand that this is a regression relative to Python 2.x. It seems to me that the translation from rfc822.Message to email.Message was done incorrectly. In the 2.x code getheader returns only the

[issue8557] subprocess PATH semantics and portability

2010-04-30 Thread R. David Murray
R. David Murray added the comment: Well, it seems I was mistaken when I thought I knew how this worked :) Checking the os.exec documentation linked from the subprocess page, I see that when an environment is supplied PATH is indeed checked in it. The documentation for CreateProcess, however

[issue8580] Problem urllib2.URLError

2010-04-30 Thread R. David Murray
R. David Murray added the comment: The bug tracker is for bugs in Python itself, and isn't a good place to look for help on getting an application program to work. You should try the python email list/newsgroup. (You can find links to the newsgroup and other resources under the '

[issue8582] urllib.urlretrieve fails with ValueError: Invalid format string

2010-04-30 Thread R. David Murray
R. David Murray added the comment: The fact that our docs don't mention it is a clue that it is platform dependent :) Theoretically it shouldn't be, since it is in Posix: http://www.opengroup.org/onlinepubs/009695399/functions/strftime.html but practically speaking it is, sin

[issue8582] urllib.urlretrieve fails with ValueError: Invalid format string

2010-04-30 Thread R. David Murray
Changes by R. David Murray : -- stage: -> unit test needed type: crash -> behavior versions: +Python 2.6, Python 3.1, Python 3.2 ___ Python tracker <http://bugs.python.org/

[issue8576] test_support.find_unused_port can cause socket conflicts on Windows

2010-05-01 Thread R. David Murray
R. David Murray added the comment: Could you special case the test_socket test by checking for the error that Windows sometimes throws and retrying (in a loop for say a second)? Not ideal, but probably better than adding a sleep or throwing away the test :) -- nosy: +r.david.murray

[issue8586] test_imp.py test failures on Py3K Mac OS X

2010-05-01 Thread R. David Murray
Changes by R. David Murray : -- assignee: barry -> nosy: +ezio.melotti, flox ___ Python tracker <http://bugs.python.org/issue8586> ___ ___ Python-bugs-list mai

[issue8589] test_warnings.CEnvironmentVariableTests.test_nonascii fails under an ascii terminal

2010-05-01 Thread R. David Murray
R. David Murray added the comment: Victor has proposed a patch for the traceback problem for regrtest, I think. I haven't looked at it, but I wonder if there is something that can instead be done to make unittest work in cases like this when run in an ascii terminal. See issue

[issue8586] test_imp.py test failures on Py3K Mac OS X

2010-05-01 Thread R. David Murray
Changes by R. David Murray : -- assignee: -> barry ___ Python tracker <http://bugs.python.org/issue8586> ___ ___ Python-bugs-list mailing list Unsubscri

[issue8557] subprocess PATH semantics and portability

2010-05-01 Thread R. David Murray
R. David Murray added the comment: I didn't run the script. I have now, but I'm not clear from its output what each test is actually doing, and don't really have the time to figure it out from the code right now. I think it is probably more efficient to just ask you what you

[issue7192] webbrowser.get("firefox") does not work on Mac with installed Firefox

2010-05-02 Thread R. David Murray
R. David Murray added the comment: issue 8238 notes the problem with autoraise and new on windows. I believe when I looked at that issue that I confirmed that the syntax webbrowser uses on Linux to support those options works on windows with the current firefox, even though I couldn't

[issue8599] _execvpe behaves inconsistently when PATH includes a filename

2010-05-02 Thread R. David Murray
R. David Murray added the comment: The python functions are thin wrappers around the system calls, and are reporting the result of calling the corresponding system call. The fact that the shell chooses to catch both errors and report a single one would be equivalent to, say, the cmd module

[issue8598] test/support: don't use localhost as IPv6 host name

2010-05-02 Thread R. David Murray
R. David Murray added the comment: All of my Gentoo systems except one have localhost on the ::1 line. The one that doesn't hasn't been updated in several years. That one has the same entry for ::1 as your Ubuntu. The FreeBSD 6.3 box I have access to has localhost on the ::1 lin

[issue8601] bz2.BZ2File should support "with" protocol per PEP 343

2010-05-03 Thread R. David Murray
R. David Murray added the comment: Indeed, and it was considered a feature request and thus is not appropriate for backport. If you wish to see that decision changed I think you will need to appeal to python-dev. -- nosy: +r.david.murray resolution: -> out of date stage: ne

[issue5565] Strange behavior when I logout() with IMAP4_SSL

2010-05-03 Thread R. David Murray
R. David Murray added the comment: FWIW on my cisco firewalls the logs contain a lot of 'deny, no connection' messages for RST packets, probably coming from similar scenarios. -- nosy: +r.david.murray resolution: -> invalid stage: -> committed/rejected status

[issue8557] subprocess PATH semantics and portability

2010-05-03 Thread R. David Murray
R. David Murray added the comment: Sorry for my Windows ignorance, but if CreateProcess ignores the PATH, how does updating the PATH fix the problem? -- ___ Python tracker <http://bugs.python.org/issue8

[issue8607] OSX: duplicate -arch flags in CFLAGS breaks sysconfig

2010-05-03 Thread R. David Murray
R. David Murray added the comment: This is a duplicate of issue 8366. -- nosy: +r.david.murray resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> OS X universal builds fail on 2.7b1 and py3k with "Don't know m

[issue8557] subprocess PATH semantics and portability

2010-05-03 Thread R. David Murray
R. David Murray added the comment: Well, it wouldn't be the first time the microsoft docs were wrong. There are two questions here: (1) is this behavior consistent across all microsoft platforms we support? (2) is this *change* in behavior of Popen acceptable? For (1) we need a unit

[issue3620] test_smtplib is flaky

2010-05-03 Thread R. David Murray
R. David Murray added the comment: If it would provide clearer error message in cases of failure, it sounds like a reasonable thing to add whether or not the failure in this issue is still happening. -- nosy: +r.david.murray ___ Python tracker

[issue8557] subprocess PATH semantics and portability

2010-05-04 Thread R. David Murray
R. David Murray added the comment: Fair enough. Thank you for your detective work, and hopefully someone will be interested enough to pick this up again later. -- status: open -> languishing ___ Python tracker <http://bugs.python.org/iss

[issue8608] fix_import prefixes "." to already relative imports

2010-05-04 Thread R. David Murray
R. David Murray added the comment: Thanks, but this is a duplicate of issue 8553, which has already been fixed. -- nosy: +r.david.murray resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> 2to3 breaks rela

[issue5753] CVE-2008-5983 python: untrusted python modules search path

2010-05-04 Thread R. David Murray
R. David Murray added the comment: FWIW I agree with Antoine. -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/issue5753> ___ ___ Python-bug

[issue7472] email.encoders.encode_7or8bit(): typo "iso-2202". "iso-2022" is correct.

2010-05-04 Thread R. David Murray
R. David Murray added the comment: Comments on patch: We prefer patches to be generated from the top level directory of the checkout, so that it can be applied by doing 'patch -p0 <http://bugs.python.org/i

[issue8617] Non-existent variables documented

2010-05-04 Thread R. David Murray
R. David Murray added the comment: These are references to environment variables. The markup marks them as such, but this does not translate into HTML in a visible way. Without a text description it is also left to guesswork as to how they function. The 2.7 docs are even more confusing

[issue8619] Doc bug for urllib.request._urlopener in Python 3.1+

2010-05-05 Thread R. David Murray
R. David Murray added the comment: Why do we have a public API that begins with an '_'? -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.

[issue3244] multipart/form-data encoding

2010-05-05 Thread R. David Murray
Changes by R. David Murray : -- assignee: -> r.david.murray versions: +Python 3.2 -Python 2.7 ___ Python tracker <http://bugs.python.org/issue3244> ___ ___ Py

[issue740495] API enhancement: poplib.MailReader()

2010-05-05 Thread R. David Murray
Changes by R. David Murray : -- assignee: -> r.david.murray nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/issue740495> ___ ___ Python-

[issue8628] Incorrect numbers.Complex.imag documentation

2010-05-05 Thread R. David Murray
Changes by R. David Murray : -- nosy: +mark.dickinson ___ Python tracker <http://bugs.python.org/issue8628> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8572] httplib getheader() throws error instead of default

2010-05-05 Thread R. David Murray
R. David Murray added the comment: Given what we've learned, I think that Walter's first patch is the best fix. No one should be relying on the current actual behavior of the default argument, and the fix makes it work as documented. As for backporting to 2.7, I don't think

[issue7472] email.encoders.encode_7or8bit(): typo "iso-2202". "iso-2022" is correct.

2010-05-05 Thread R. David Murray
R. David Murray added the comment: Committed to trunk in r80800. However, when I ported it to py3k, it turns out the test fails there, but passes if the original fix from this issue has been applied. More investigation is needed, but clearly something changed in the payload encoding logic

[issue8619] Doc bug for urllib.request._urlopener in Python 3.1+

2010-05-05 Thread R. David Murray
R. David Murray added the comment: Mainly I'm saying that I don't think a public API should have a name starting with an '_'. Sets a bad precedent :) Looking at the functionality more closely, though, it does make me nervous that we are recommending changing the global

[issue8630] Keepends param in codec readline(s)

2010-05-05 Thread R. David Murray
Changes by R. David Murray : -- nosy: +lemburg ___ Python tracker <http://bugs.python.org/issue8630> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7583] Improve explanation of tab expansion in doctests

2010-05-05 Thread R. David Murray
R. David Murray added the comment: I tried your suggestion, but it seemed to me that it made the first paragraph of that section be all about tabs, and get even farther away from its original focus, which was introducing the example. I've attached a patch that instead moves the e

[issue7472] email.encoders.encode_7or8bit(): typo "iso-2202". "iso-2022" is correct.

2010-05-05 Thread R. David Murray
R. David Murray added the comment: It turns out that email5 (py3k), because it is using unicode for the payload, doesn't do the encoding to the output character set until later in the process. Specifically, charset.body_encode no longer does the input-to-output charset conversion. T

[issue8654] Improve ABI compatibility between UCS2 and UCS4 builds

2010-05-07 Thread R. David Murray
R. David Murray added the comment: Adding MvL because he wrote the ABI PEP, and MAL because he cares about the Unicode interface. -- nosy: +lemburg, loewis, r.david.murray ___ Python tracker <http://bugs.python.org/issue8

[issue7584] datetime.rfcformat() for Date and Time on the Internet

2010-05-09 Thread R. David Murray
R. David Murray added the comment: I think Daniel's suggestion of having an option to control this is the best way to handle the different use cases. And I think the default should be -00:00, as he suggested. Removing 2.7 and 3.1 since 3.2 is the only branch open to new features at

[issue8256] TypeError: bad argument type for built-in operation

2010-05-10 Thread R. David Murray
R. David Murray added the comment: Victor, you've been dealing with Python's default encoding lately, care to render an opinion on the correct fix for this bug? @Filip: the patch will need a unit test, which will also help with assessing the validity of the fix. -- no

[issue4256] optparse/argparse: provide a simple way to get a programmatically useful list of options

2010-05-10 Thread R. David Murray
R. David Murray added the comment: zsh's completion system is completely programmable. I looks like it would be pretty easy to add generic 'python script' support widgets(*) using this hidden option, and probably other neat tricks as well. Something that would make it even

[issue8425] a -= b should be fast if a is a small set and b is a large set

2010-05-10 Thread R. David Murray
R. David Murray added the comment: The answer is almost certainly "no". -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/issue8425> ___ __

[issue4768] email.generator.Generator object bytes/str crash - b64encode() bug?

2010-05-10 Thread R. David Murray
Changes by R. David Murray : -- priority: high -> critical ___ Python tracker <http://bugs.python.org/issue4768> ___ ___ Python-bugs-list mailing list Unsubscri

[issue8666] Allow ConfigParser.get*() to take a default value

2010-05-10 Thread R. David Murray
R. David Murray added the comment: Rather than a raise_on_bad option, it seems to me it would be better to code a try/except clause in cases where you want the default even if there is an error converting the data in the file. I would expect such cases to be rare, except for cases where you

[issue3704] cookielib doesn't handle URLs with / in parameters

2010-05-11 Thread R. David Murray
R. David Murray added the comment: There is a reason, and that is that it may break existing code in the field relying on the current behavior. This is (unfortunately) true regardless of whether the function is public or private, though the fact that it is ostensibly private is likely to

[issue3704] cookielib doesn't handle URLs with / in parameters

2010-05-11 Thread R. David Murray
R. David Murray added the comment: Hmm. I didn't read your comment carefully enough before I replied. I think you are saying that the bug fix is confined to the routine in question and doesn't change even its API, in which case the nature of the function doesn't come in to

[issue8686] "This isn't defined beyond that" phrase is not friendly to non-native English speakers.

2010-05-11 Thread R. David Murray
R. David Murray added the comment: Unfortunately that wouldn't be correct English, as far as I know. How about "This isn't defined other than that..." I think that reads a bit more clearly than "beyond that" even to a native speaker, even though be

[issue8686] "This isn't defined beyond that" phrase is not friendly to non-native English speakers.

2010-05-11 Thread R. David Murray
Changes by R. David Murray : -- versions: +Python 3.1 -Python 3.3 ___ Python tracker <http://bugs.python.org/issue8686> ___ ___ Python-bugs-list mailing list Unsub

[issue8684] improvements to sched.py

2010-05-11 Thread R. David Murray
Changes by R. David Murray : -- dependencies: +sched.py module doesn't have a test suite superseder: sched.py module doesn't have a test suite -> ___ Python tracker <http://bugs.pyth

[issue3704] cookielib doesn't handle URLs with / in parameters

2010-05-11 Thread R. David Murray
R. David Murray added the comment: I don't expect anything; I had written that it looked OK to me but apparently I accidentally deleted that text before posting. But I'm not someone who has ever programmed using cookielib so I wouldn't expect my opinion to coun

[issue2620] Multiple buffer overflows in unicode processing

2010-05-12 Thread R. David Murray
Changes by R. David Murray : -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issue2620> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8700] strip() is removing an extra character if the strip pattern contains "-"

2010-05-12 Thread R. David Murray
R. David Murray added the comment: The argument to strip is a set of characters to remove, not a substring. -- nosy: +r.david.murray resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python track

[issue8702] difflib: unified_diff produces wrong patches (again)

2010-05-13 Thread R. David Murray
Changes by R. David Murray : -- keywords: +easy type: -> behavior versions: -Python 3.3 ___ Python tracker <http://bugs.python.org/issue8702> ___ ___ Python-

[issue4898] {context, unified}_diff add spurious trailing whitespace if fromfiledate/tofiledate are emptyk

2010-05-13 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed superseder: -> difflib should separate filename from timestamp with tab ___ Python tracker <http://bugs.pytho

[issue8705] shutil.rmtree with empty filepath

2010-05-13 Thread R. David Murray
Changes by R. David Murray : -- nosy: +tarek ___ Python tracker <http://bugs.python.org/issue8705> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8424] Test assumptions for test_itimer_virtual and test_itimer_prof

2010-05-14 Thread R. David Murray
R. David Murray added the comment: The patches look good, so yes, please apply them. As for closing the issue...if the failures are no longer happening on the buildbots, then yes :) -- ___ Python tracker <http://bugs.python.org/issue8

[issue1880] Generalize math.hypot function

2008-01-20 Thread David W. Lambert
New submission from David W. Lambert: Please generalize math.hypot. While I don't have a survey of python codes, it seems to me unlikely for this change to break existing programs. import math def hypot(*args): ''' Return the Euclidean vector length.

[issue2085] Syntax for property set method

2008-02-12 Thread David W. Lambert
New submission from David W. Lambert: # proposed syntax: # object.property = *args,**kwargs # python 3k could accept property setter with multiple arguments class c: def f(self,a,b,c): print a,b,c F=property(None,f) c().F=*'hi',**{'c':&#

[issue2138] Factorial

2008-02-18 Thread David Albert Torpey
New submission from David Albert Torpey: Add a factorial method. Everybody understands what it means before they are out of high school and it comes up all the time in statistics and combinatorics. Ruby has a factorial method and heck even basic calculators have a factorial key. print

[issue2138] Factorial

2008-02-19 Thread David Albert Torpey
David Albert Torpey added the comment: Mr. Dickinson thank you for doing this. I do not know how to help with a patch. If it helps, here is the code I use in python: def factorial(n, _known=[1]): assert isinstance(n, int), "Need an integer. This isn't a gamma" assert

[issue4127] repr or reprlib?

2008-10-14 Thread David W. Lambert
New submission from David W. Lambert <[EMAIL PROTECTED]>: http://docs.python.org/dev/3.0/library/reprlib.html#module-reprlib names the module reprlib. However, the example at bottom of page uses: http://docs.python.org/dev/3.0/library/reprlib.html#subclassing-repr- objects impor

[issue4144] 3 tutorial documentation errors

2008-10-18 Thread David W. Lambert
New submission from David W. Lambert <[EMAIL PROTECTED]>: I ran doctests on the interactive session scripts from the tutorial. Aside from finding a doctest enhancement---but there are already so many doctest issues tracked---I found these discrepancies using online tutorial and Python

[issue4154] More doc trivia

2008-10-20 Thread David W. Lambert
New submission from David W. Lambert <[EMAIL PROTECTED]>: http://docs.python.org/dev/3.0/extending/extending.html Given that the following paragraph tells us that there should be just one non-static item in the module file, struct PyModuleDef spammodule = should be static struct PyMod

[issue4168] core dump exiting python

2008-10-22 Thread David W. Lambert
New submission from David W. Lambert <[EMAIL PROTECTED]>: I created in the python module gsl_fft a __del__ method to release workspace when the data size changes. It is called upon exiting python, and gave errors without traceback. So I registered it with atexit. This caused cor

[issue4168] core dump exiting python

2008-10-22 Thread David W. Lambert
David W. Lambert <[EMAIL PROTECTED]> added the comment: I rebuilt python3k from "today's snapshot". No more core dump. Problem solved, close case. IMH'edO. ___ Python tracker <[EMAIL PROTECTED]> &

[issue4193] Multiprocessing example

2008-10-24 Thread David W. Lambert
New submission from David W. Lambert <[EMAIL PROTECTED]>: http://docs.python.org/dev/3.0/library/multiprocessing.html I'm sure the examples have been thoughtfully contrived. Still, this seems instructive without adding much complexity. I'd change the first &quo

[issue4196] library documentation errors

2008-10-24 Thread David W. Lambert
New submission from David W. Lambert <[EMAIL PROTECTED]>: 4 problems noted here. Thanks, Dave. 1,2---problems 1 & 2 concern py<3k references: http://docs.python.org/dev/3.0/library/multiprocessing.html 1) "apply(func[, args[, kwds]]) Equivalent of the apply() builtin f

[issue4194] Miserable subprocess.Popen performance

2008-10-24 Thread David W. Lambert
David W. Lambert <[EMAIL PROTECTED]> added the comment: cygwin Python 2.5.1 (similar) time with os.popen : 0.43818802 time with subprocess.Popen : 0.36161035 linux python 2.4.2 (similar) time with os.popen : 0.0344939231873 time with subprocess

[issue4206] multiprocessing docs

2008-10-25 Thread David W. Lambert
New submission from David W. Lambert <[EMAIL PROTECTED]>: http://docs.python.org/dev/3.0/library/multiprocessing.html "map(func, iterable[, chunksize]) A parallel equivalent of the map() builtin function. It blocks till the result is ready." Not really, __builtins__.map r

[issue4226] Should 2to3 know that file type is gone?

2008-10-28 Thread David W. Lambert
New submission from David W. Lambert <[EMAIL PROTECTED]>: class c(file): pass 2to3 says no changes required. Might it possibly suggest a replacement for file class? Thanks, Dave. -- messages: 75310 nosy: LambertDW severity: normal status: open title: Should 2to3 know tha

[issue4226] Should 2to3 know that file type is gone?

2008-10-28 Thread David W. Lambert
Changes by David W. Lambert <[EMAIL PROTECTED]>: -- components: +2to3 (2.x to 3.0 conversion tool) type: -> feature request versions: +Python 3.0 ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.py

[issue4226] Should 2to3 know that file type is gone?

2008-10-28 Thread David W. Lambert
David W. Lambert <[EMAIL PROTECTED]> added the comment: python3k and I are having difficulty with File class, which in a version 2 python release extended the file type with methods to read through a file until some condition is found. -- type: feature request -> crash A

[issue4231] print " should be print("

2008-10-29 Thread David W. Lambert
New submission from David W. Lambert <[EMAIL PROTECTED]>: http://docs.python.org/dev/3.0/reference/datamodel.html >>> class Meta(type): ...def __getattribute__(*args): ... print "Metaclass getattribute invoked" xxx ... print "Class getattribute i

[issue4226] Should 2to3 know that file type is gone? Python core crashes with associated files.

2008-10-29 Thread David W. Lambert
David W. Lambert <[EMAIL PROTECTED]> added the comment: While trying to find a "file" replacement in the io library I managed to get py3k to crash. Please look at the file associated with the issue. Thanks, Dave. -- title: Should 2to3 know that file type is gone? -&g

[issue4237] io.FileIO('foo', 'rt') prints a RuntimeWarning

2008-10-29 Thread David W. Lambert
Changes by David W. Lambert <[EMAIL PROTECTED]>: -- nosy: +LambertDW ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4237> ___ __

[issue4237] io.FileIO('foo', 'rt') prints a RuntimeWarning

2008-10-29 Thread David W. Lambert
David W. Lambert <[EMAIL PROTECTED]> added the comment: >>> print(io.read.__doc__) ... The default mode is 'rt' (open for reading text). ... ___ Python tracker <[EMAIL PROTECTED]> &l

[issue4243] has_key doc could be clearer

2008-10-31 Thread David W. Lambert
David W. Lambert <[EMAIL PROTECTED]> added the comment: The D'Arcy J.M. Cain wording is clearer. "dict.has_key(key) is deprecated. Use "key in dict" instead." would improve python. -- nosy: +LambertDW ___ Python tr

[issue4247] Docs: Provide some examples of "pass" use in the tutorial.

2008-11-02 Thread David W. Lambert
David W. Lambert <[EMAIL PROTECTED]> added the comment: I'd change the exceptions, replace comment with string. Instead of raise NotImplementedError # Set up dummy log back-end write raise NotImplementedError('Set up dummy log back-end') --

[issue4260] ctypes.xFUNCTYPE are decorators.

2008-11-04 Thread David W. Lambert
New submission from David W. Lambert <[EMAIL PROTECTED]>: http://docs.python.org/dev/3.0/library/ctypes.html#callback-functions ctypes.xFUNCTYPE are another opportunity to advertise decorators. Please consider inserting yet another qsort example written as a decorator, perhaps as f

[issue4279] Module 'parser' fails to build

2008-11-07 Thread David W. Lambert
Changes by David W. Lambert <[EMAIL PROTECTED]>: -- nosy: +LambertDW ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4279> ___ __

[issue4226] Python core crashes with associated files.

2008-11-12 Thread David W. Lambert
David W. Lambert <[EMAIL PROTECTED]> added the comment: This problem was repaired by the python3.0 rc1+ of November 5 trunk snapshot. I suggest retirement of Issue4226. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue4309] ctypes documentation

2008-11-12 Thread David W. Lambert
New submission from David W. Lambert <[EMAIL PROTECTED]>: ''' http://docs.python.org/dev/3.0/library/ctypes.html Where web page says >>> printf("An int %d, a double %f\n", 1234, c_double(3.14)) Integer 1234, double 3.141049

[issue4321] unintended syntax error with decorators, parenthesis, and dots?

2008-11-13 Thread David W. Lambert
David W. Lambert <[EMAIL PROTECTED]> added the comment: Guido gets to choose. Read PEP:318 Title: Decorators for Functions and Methods and "gut feeling" http://mail.python.org/pipermail/python-dev/2004-August/046711.html --

[issue4309] ctypes documentation

2008-11-15 Thread David W. Lambert
David W. Lambert <[EMAIL PROTECTED]> added the comment: Conversely, if the documentation is correct then my ctypes is flawed. "None, integers, byte strings and unicode strings are the only native Python objects that can directly be used as parameters in these function calls. None i

[issue4309] ctypes documentation

2008-11-19 Thread David W. Lambert
David W. Lambert <[EMAIL PROTECTED]> added the comment: Changing the string to type byte 'Works' from ctypes import * libc = CDLL('libc.so.6') libc.printf(b'hello') ___ Python tracker <[EMAIL PROTEC

[issue4309] ctypes documentation

2008-11-19 Thread David W. Lambert
David W. Lambert <[EMAIL PROTECTED]> added the comment: When patching py3k/Doc/library/ctypes.rst or ctypes module tree please consider u"World!" produces a syntax error. These wide character formats produce unintelligible output: for n in range(3,6): code

[issue4362] FileIO object in io module

2008-11-20 Thread David M. Beazley
New submission from David M. Beazley <[EMAIL PROTECTED]>: The FileIO object defined in the new io library has "name" and "mode" properties. However, attempts to access either value result in an AttributeError exception. The C source code in _fileio.c doesn't e

[issue4017] Tkinter cannot find Tcl/Tk on Mac OS X

2008-11-20 Thread David M. Beazley
David M. Beazley <[EMAIL PROTECTED]> added the comment: Just a quick comment from the Python training universe--this bug makes it impossible to use Python 2.6 in any kind of Python teaching environment where IDLE tends to be used a lot. I'm having to tell students to stick with P

[issue4371] coerce gone---but not from docs

2008-11-20 Thread David W. Lambert
New submission from David W. Lambert <[EMAIL PROTECTED]>: http://docs.python.org/dev/3.0/glossary.html Scanning the glossary reveals... coercion The glossary needs rewritten to eliminate "coerce builtin". __future__ Uses example import division, I'd replac

[issue4371] coerce gone---but not from docs

2008-11-20 Thread David W. Lambert
Changes by David W. Lambert <[EMAIL PROTECTED]>: -- assignee: -> georg.brandl components: +Documentation nosy: +georg.brandl versions: +Python 3.0 ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.py

[issue4378] howto doc update

2008-11-21 Thread David W. Lambert
New submission from David W. Lambert <[EMAIL PROTECTED]>: http://docs.python.org/dev/3.0/howto/functional.html Gone: itertools.ifilter itertools.imap itertools.izip changed: itertools.ifilterfalse --> itertools.filterfalse strange? functools.reduce is described, but

[issue4391] optparse: use proper gettext plurals forms

2008-11-22 Thread David W. Lambert
David W. Lambert <[EMAIL PROTECTED]> added the comment: And while at it, replace "usage" with "Use". "Usage" isn't a word. -- nosy: +LambertDW ___ Python tracker <[EMAIL P

[issue4399] "shard" appears where "shared" intended

2008-11-23 Thread David W. Lambert
New submission from David W. Lambert <[EMAIL PROTECTED]>: http://docs.python.org/dev/3.0/library/ctypes.html insert "e" into "shard". Errors have dissimilar importance. The manual is so good that this is the worst I can find today. -- assignee: georg.brandl

[issue3926] Idle doesn't obey the new improved warnings arguements

2008-11-23 Thread Scott David Daniels
Scott David Daniels <[EMAIL PROTECTED]> added the comment: Attached parts.zip -- a zip of updates for Python 2.6 and Python 3.0 against the current source [zip has two For Python 2.6: py26/diff_py26.txt -- differ against python26-maint tree py26/PyShell.py -- Replacement file for .

[issue4428] io.BufferedWriter does not observe buffer size limits

2008-11-25 Thread David M. Beazley
New submission from David M. Beazley <[EMAIL PROTECTED]>: The Buffered I/O interface in the io module has the user specify buffer limits such as size and max_buffer_size. The first limit (size) is easy to understand as a buffering threshold at which writes will occur. However, no ap

[issue4447] exec inside a function

2008-11-27 Thread David M. Beazley
New submission from David M. Beazley <[EMAIL PROTECTED]>: Is the following code valid Python 3 or not? def foo(): x = 1 exec("x = 42") print(x)# Prints 1 (exec has no effect) I know there are a variety of issues surrounding exec(), function bodies, and other

[issue4447] exec inside a function

2008-11-27 Thread David M. Beazley
David M. Beazley <[EMAIL PROTECTED]> added the comment: For what it's worth, I hope this behavior gets well-documented. Thanks. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.

<    39   40   41   42   43   44   45   46   47   48   >