[issue6879] misstatement in example explanation using raise

2009-09-16 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Yes, that seems a good idea. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6879 ___ ___

[issue6919] Link CRT Statically

2009-09-16 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: This can't possibly work. Extension modules that also link with the CRT will thus end with a separate copy of the CRT global state, causing crashes. -- nosy: +loewis ___ Python tracker

[issue6412] Titlecase as defined in Unicode Case Mappings not followed

2009-09-16 Thread Gabriel Genellina
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar: -- nosy: +gagenellina ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6412 ___ ___

[issue6906] Tkinter sets an unicode environment variable on win32

2009-09-16 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: I cannot reproduce it with the python.org version: Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)] on win32 Type help, copyright, credits or license for more information. py import Tkinter py import os py

[issue6920] IDLE 3 crashes on Ctrl+Space with 'utf8' codec can't decode bytes in position 0-1

2009-09-16 Thread Yinon Ehrlich
New submission from Yinon Ehrlich yino...@users.sourceforge.net: on Ubuntu 8.04 - I downloaded the sources, then: ./configure --prefix=$HOME make make install in ~/bin/idle3 when I press Ctrl+Space (according to the Edit menu, should show completions) idle crashes with the following

[issue6895] locale._parse_localename fails when localename does not contain encoding information

2009-09-16 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: If you provide a test case the patch has a greater chance of being accepted. -- nosy: +gagenellina ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6895

[issue6880] class needs forward reference

2009-09-16 Thread Gabriel Genellina
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar: -- nosy: +gagenellina ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6880 ___ ___

[issue6880] class needs forward reference

2009-09-16 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, added a reference in r74818. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6880 ___

[issue6876] readline documentation example error

2009-09-16 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, fixed in r74819. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6876 ___

[issue6891] small typo in «unicode.rst»: « the Uniode APIs should be used» and broken URL

2009-09-16 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Commented out the link for now in r74820. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6891

[issue6881] incorrect signature in doc for PyByteArray_Resize

2009-09-16 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I don't think the iterator type needs to be documented; many other such iter types aren't. Also, the argument names needn't match (since C doesn't have the notion of keyword arguments). They can be changed in the docs to be more obvious than

[issue6885] pdb documentation shows running as script using python not python3

2009-09-16 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed in r74821. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6885 ___

[issue4749] Issue with RotatingFileHandler logging handler on Windows

2009-09-16 Thread Gabriel Genellina
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar: -- nosy: +gagenellina ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4749 ___ ___

[issue2320] Race condition in subprocess using stdin

2009-09-16 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: @Robert: Yes, I'd say this is the same problem as issue4749 -- nosy: +gagenellina ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2320

[issue6829] Frendly error message when inheriting from function

2009-09-16 Thread Gabriel Genellina
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar: -- nosy: +gagenellina ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6829 ___ ___

[issue6903] pdb - print in for iteration prints None after printing

2009-09-16 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: This is caused by the special displayhook that pdb uses. Normally, the displayhook suppresses output when it would print None; this is not done in pdb's displayhook. This was a conscious decision, because it can remove confusion when you try to

[issue6920] IDLE 3 crashes on Ctrl+Space with 'utf8' codec can't decode bytes in position 0-1

2009-09-16 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: This is a duplicate of #1028. -- nosy: +ezio.melotti resolution: - duplicate stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue5621] Add description of special case to Assignment statements section

2009-09-16 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: The patch submission was correct. I edited the patch a bit, moved the example from augmented assignment to the regular assignment and added a link from there to the new section. Committed in r74822. -- resolution: works for me -

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2009-09-16 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Isn't this better implemented via a codec error handler? -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1028

[issue6844] BaseException DeprecationError raises inappropriately

2009-09-16 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: I agree that this is a release blocker for 2.6.3 -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6844 ___

[issue6851] urllib.urlopen crashes in a thread on Snow Leopard

2009-09-16 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: Agreed this should be a release blocker for 2.6.3 -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6851 ___

[issue6918] ctypes compilation error on SnowLeopard

2009-09-16 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: Agreed this should be a release blocker for 2.6.3 -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6918 ___

[issue6864] IDLE 2.6.1 locks up on Mac OS 10.6

2009-09-16 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: I'm willing to leave this as a release blocker for 2.6.3, but I will re-evaluate it if no progress is made on it. -- nosy: +barry ___ Python tracker rep...@bugs.python.org

[issue5672] Implement a way to change the python process name

2009-09-16 Thread Ask Solem
Ask Solem a...@opera.com added the comment: Amaury Forgeot d'Arc, wrote: And I'd follow the same path: provide a way to build a launcher - a .exe file that simply starts python with the given script. Sounds good, but how would you expect to set the process name for a subprocess, like a

[issue6875] add os.close() suggestion to mkstemp documentation

2009-09-16 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: That one has to close open files should be common knowledge. And it's already documented that the filehandle returned is to be treated as if coming from `os.open`, so the isn't a file object is documented as well. Insofar, I'm in agreement with

[issue6892] optparser example in optparse documentation is broken

2009-09-16 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed (by adding the add_help_option=False argument to OptionParser) in r74824. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6892

[issue6879] misstatement in example explanation using raise

2009-09-16 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Fixed in r74825 (trunk) and r74827 (release26-maint), thanks! -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue6919] Link CRT Statically

2009-09-16 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6919 ___

[issue6844] BaseException DeprecationError raises inappropriately

2009-09-16 Thread Jean-Paul Calderone
Jean-Paul Calderone exar...@divmod.com added the comment: I'm not sure I'll be able to work on this again for a while after this morning, so here's a patch. I don't really understand how the exception structs are involved here, so I don't really know why the patch works, but it seems to. If

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2009-09-16 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: We are trying to cut down on the number of warning directives in the docs; I think a note directive would be appropriate for yours. -- nosy: +benjamin.peterson ___ Python tracker

[issue1613573] xmlrpclib ServerProxy uses old httplib interface

2009-09-16 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Yep, the patch at #6267 is an extension of this one except for the last chunk where I also check if sockets are ssl-enabled. I am not sure why it was needed. It also may have been already fixed somewhere else. As this bug doesn't have

[issue5672] Implement a way to change the python process name

2009-09-16 Thread Jean-Paul Calderone
Jean-Paul Calderone exar...@divmod.com added the comment: prctl is not portable. I always thought that the premise of stdlib is to provide portable interfaces. BSD, for example, uses setprocname instead of prctl. Also, prctl does not modify the process name shown in ps uxww. Here's how

[issue6921] recursion wierdness ... related to variable scoping?

2009-09-16 Thread David Hanney
New submission from David Hanney spam2...@nney.com: I was playing about with ideas behind b-plus-trees and found i python bug the important bit of code is: for p, k in enumerate(self.keys): self.ptrs[p].dump(indent+1, kmin=lk, kmax=k)

[issue6877] enable compilation of readline module on Mac OS X 10.5 and 10.6

2009-09-16 Thread Zvezdan Petkovic
Zvezdan Petkovic zvez...@zope.com added the comment: The patch `readline-libedit.patch` has the following problems: - a typo causing an undefined variable error; - a missing #endif; - it doesn't refer to the new __APPLE__ specific doc string anywhere. It fails to compile `readline.c`. ::

[issue1613573] xmlrpclib ServerProxy uses old httplib interface

2009-09-16 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: @techtonik: I don't think that testing socket._have_ssl is better than testing for HTTPSConnection. socket._have_ssl might be True, whereas HTTPSConnection is missing for a random reason. xmlrpclib uses HTTPSConnection, not directly

[issue6873] posix_lchown: possible overflow of uid, gid

2009-09-16 Thread Boya Sun
Boya Sun boya@case.edu added the comment: Martin, Corrected the patch accordingly. Can you verify whether the fix is correct or not now? Boya -- Added file: http://bugs.python.org/file14900/patch_6873.diff ___ Python tracker

[issue6864] IDLE 2.6.1 locks up on Mac OS 10.6

2009-09-16 Thread darkspork
darkspork cjd.d01...@gmail.com added the comment: I can confirm this as well. It also locks up when pasting text. The EDIT menu retains its glow, and the pasted text appears after a few seconds, along with another blank square window titled idle. Idle then locks up. Using the scrollbar in any

[issue1613573] xmlrpclib ServerProxy uses old httplib interface

2009-09-16 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: There should be a better way to do this check, because HTTPConnection method may exists, but HTTPConnection may be impossible, because of other reasons. And I still would like to see this fix in Python 2.6 - too bad it hadn't enough

[issue6903] pdb - print in for iteration prints None after printing

2009-09-16 Thread Mitchell Model
Mitchell Model m...@acm.org added the comment: No problem with the None's -- I see your point about that. Just that maybe the alias example should point out that the Nones will be printed so people won't be surprised and try to figure out what's wrong. --- Mitchell On Sep 16, 2009, at

[issue6903] pdb - print in for iteration prints None after printing

2009-09-16 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Actually, Guido hates the Nones. :) Fixed in r74839. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6903

[issue1613573] xmlrpclib ServerProxy uses old httplib interface

2009-09-16 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: @techtonik: We wrote HTTPConnection twice. I don't really understand your request. Do you think that the issue is fixed in Python trunk or not? If not, please open a new issue since this issue is closed. techtonik And I still would

[issue1613573] xmlrpclib ServerProxy uses old httplib interface

2009-09-16 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1613573 ___ ___ Python-bugs-list mailing

[issue1613573] xmlrpclib ServerProxy uses old httplib interface

2009-09-16 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: @techtonik: You wrote HTTPConnection twice. I don't really understand your request. Do you think that the issue is fixed in Python trunk or not? If not, please open a new issue since this issue is closed. techtonik And I still would

[issue5483] [PATCH]Add FastDbfilenameShelf: shelf nerver sync cache even when writeback=True

2009-09-16 Thread Robert Lehmann
Robert Lehmann lehman...@gmail.com added the comment: If I understand you correctly, your proposal is the following: use Shelf.cache to cache *all* objects instead of only keeping live references. Your patch retains the cache forever instead of purging it on sync. (All these changes only apply

[issue6922] Interpreter hangs up while trying to decode invalid utf32 stream.

2009-09-16 Thread Alex
New submission from Alex malicious.wiz...@gmail.com: *** Prerequisites: Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)] on win32 *** Description: 'utf_32_le' and 'utf_32_be' codecs are overconsuming memory when input data are damaged and kwarg 'errors' to str.decode

[issue6873] posix_lchown: possible overflow of uid, gid

2009-09-16 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Yes, it looks correct now. I still wish it could be tested on a system where the problem actually occurs. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6873

[issue6921] recursion wierdness ... related to variable scoping?

2009-09-16 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: This is almost certainly not a bug in Python. At a guess, in the outermost 'else' clause of your dump method, self.keys can be empty. Then the 'for p, k in enumerate(self.keys):' does zero iterations, so p is not defined in the assert;

[issue6921] recursion wierdness ... related to variable scoping?

2009-09-16 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Ah, I see the problem now: you're expecting that after for p, elt in enumerate(mylist): do_stuff p will be equal to len(mylist)-1. That's true if mylist is nonempty (because on the last round of the for loop, p gets the value

[issue6844] BaseException DeprecationError raises inappropriately

2009-09-16 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: The patch leads to crashes with all the exceptions that have their own structs; since they are derived from BaseException they must start with the same binary layout as PyBaseExceptionObject (pointers to any exception will be cast to

[issue6844] BaseException DeprecationError raises inappropriately

2009-09-16 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Huh. I just made some tests to find out if exceptions with a message set survive pickling in 2.6.2 and unpickling in patched trunk. I found that the message attribute isn't pickled at all in 2.6.2, so there should be no cross-version

[issue6844] BaseException DeprecationError raises inappropriately

2009-09-16 Thread Alan Isaac
Alan Isaac alan.is...@gmail.com added the comment: I hope it is not too annoying to link these ... I asked thhis of Jean-Paul but now I'll ask it of George. Since you are working on this, can you see if http://bugs.python.org/issue6108 is related or in any case can be fixed at the same time?

[issue6713] Integer Long types: Performance improvement of 1.6x to 2x for base 10 conversions

2009-09-16 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Updated patch, with minor changes: - remove an incorrect Py_DECREF(str) - rename _PyLong_ToDecimal; no need for the _Py prefix, since this function isn't shared across files - absorb special case for 0 into the rest of the code -

[issue6844] BaseException DeprecationError raises inappropriately

2009-09-16 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Yes, it should be fixed, but it is not related. I'm setting it as a release blocker as well. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6844

[issue6108] unicode(exception) behaves differently on Py2.6 when len(exception.args) 1

2009-09-16 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- priority: high - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6108 ___ ___

[issue6890] IOError has no __unicode__ method - and loses information

2009-09-16 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: And this is a duplicate of (the somewhat complicated-named) #6108. -- nosy: +georg.brandl resolution: - duplicate status: open - closed superseder: - unicode(exception) behaves differently on Py2.6 when len(exception.args) 1

[issue6844] BaseException DeprecationError raises inappropriately

2009-09-16 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Just looked at the patch and it looks good to me. I say go ahead and commit, Georg. -- assignee: loewis - georg.brandl stage: - commit review ___ Python tracker rep...@bugs.python.org

[issue6923] Need pthread_atfork-like functionality in CPython

2009-09-16 Thread Thomas Wouters
New submission from Thomas Wouters tho...@python.org: In order to properly handle multiple threads and fork()-calls from C code (rather than os.fork()), Python should provide pthread_atfork()-like functionality: a function to call before a fork, to acquire any locks that need to be acquired,

[issue1590864] Function-level import in os triggering an threaded import deadlock

2009-09-16 Thread Thomas Wouters
Thomas Wouters tho...@python.org added the comment: Checked in the patch to fix the forks-through-os.fork() cases, which should be most of them. Forks from other C code will need some more work, created http://bugs.python.org/issue6923 to track that. -- resolution: - fixed status:

[issue6918] ctypes compilation error on SnowLeopard

2009-09-16 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Annoyingly PyObjC suffers from the same issue. I hadn't noticed this yet because I've been linked to the system copy of libffi the last couple of months. Luckily Apple has already released the source code for libffi in 10.6 (see

[issue6844] BaseException DeprecationError raises inappropriately

2009-09-16 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: OK, I added another test for pickling, committed in r74845, and backported to 2.6 in r74848. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue6864] IDLE 2.6.1 locks up on Mac OS 10.6

2009-09-16 Thread Kevin Walzer
Kevin Walzer wordt...@users.sourceforge.net added the comment: The bug with the edit menu sounds like the same issues I noted in http://bugs.python.org/issue6463. I think it was related to something in Tk-Cocoa 8.5, which was resolved in a later build of Tk, and which is why I closed the bug.

[issue6508] expose setresuid

2009-09-16 Thread Travis H.
Travis H. travis+w-python@subspacefield.org added the comment: I have coded up a first draft at implemented {get,set}res{gid,uid} functions. This completes the exposure of the user and group setting functions, and enables python programmers to be able to safely drop privileges, for example

[issue6851] urllib.urlopen crashes in a thread on Snow Leopard

2009-09-16 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: The attached patch seems to fix the issue, but needs further testing. Warning: the patch is not entirely clean, the patch contains an unrelated change to setup.py. The patch replaces some code that uses ctypes to read configuration

[issue6864] IDLE 2.6.1 locks up on Mac OS 10.6

2009-09-16 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: kevin: do you know if there is a plain Tcl script that shows the bug? If there is we can file a bugreport with Apple that clearly shows a problem in the Tk framework and hence makes it more likely that the issue will get fixed.

[issue6864] IDLE 2.6.1 locks up on Mac OS 10.6

2009-09-16 Thread Kevin Walzer
Kevin Walzer wordt...@users.sourceforge.net added the comment: Ronald: No, unfortunately I was never able to reproduce the bug in pure Tcl. I tried various examples with the Tk text widget. I also tried various examples with the text widget via Tkinter. Each time the text widget, cutting,

[issue6924] struct.unpack weird behavior with bi (byte then integer)

2009-09-16 Thread Emmanuel Bengio
New submission from Emmanuel Bengio beng...@gmail.com: Using the following command in Python 2.6.1: struct.unpack(BI,12345) Traceback (most recent call last): File pyshell#1, line 1, in module struct.unpack(BI,12345) error: unpack requires a string argument of length 8 I get this error

[issue6924] struct.unpack weird behavior with bi (byte then integer)

2009-09-16 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I think this is expected behaviour: the key point is that structs can include padding bytes. From the documentation: By default, C numbers are represented in the machine’s native format and byte order, and properly aligned by skipping pad

[issue6508] expose setresuid

2009-09-16 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: I cannot test this in my current environment because I'm stuck with Red Hat and it does not have a recent enough automake to re-create configure from configure.in. FWIW, it may be an _autoconf_ version issue; I'm able to recreate a

[issue6713] Integer Long types: Performance improvement of 1.6x to 2x for base 10 conversions

2009-09-16 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Applied long_decimal_conversion_py3k_2.patch in r74851; backported to trunk in r74853. Still to do: - look at the 'two-digits-at-a-time' optimization. - rip out the non-binary-base code from _PyLong_Format While we're at it, it would

[issue6921] recursion wierdness ... related to variable scoping?

2009-09-16 Thread David Hanney
David Hanney spam2...@nney.com added the comment: Ooops. I'm just learning Python and it never occurred to me that I could get through the for without k begin defined. At least not until about an hour ago in the cinema. I came here ASAP but you'd already got to it. Sorry for wasting your time.

[issue6926] socket module missing IPPROTO_IPV6, IPPROTO_IPV4

2009-09-16 Thread Jason R. Coombs
New submission from Jason R. Coombs jar...@jaraco.com: It appears that somewhere between Python 2.5 and Python 2.6, some socket constants were lost in Windows builds. Python 2.6.2 (r262:71605, Apr 14 2009, 22:46:50) [MSC v.1500 64 bit (AMD64)] on win32 Type help, copyright, credits or license

[issue6925] Doc for locals and vars

2009-09-16 Thread Terry J. Reedy
New submission from Terry J. Reedy tjre...@udel.edu: Doc for locals(): after correctly stating Update and return a dictionary representing the current local symbol table. Note The contents of this dictionary should not be modified; changes may not affect the values of local variables used by

[issue6926] socket module missing IPPROTO_IPV6, IPPROTO_IPV4

2009-09-16 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: This comment from the MSDN docs may be relevant: On the Microsoft Windows Software Development Kit (SDK) released for Windows Vista and later, the organization of header files has changed and IPPROTO_IPV6 level is defined in the Ws2def.h

[issue1294232] Error in metaclass search order

2009-09-16 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- assignee: - georg.brandl nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1294232 ___

[issue6927] Metaclass doc (Ref 3.3.3) errors

2009-09-16 Thread Terry J. Reedy
New submission from Terry J. Reedy tjre...@udel.edu: 3.3.3. Customizing class creation 3.1/3.2 docs say If the metaclass keyword argument is based with the bases, it is used. (new version for 3.x) I presume 'based' was meant to be 'passed'. However, with that correction, would it really be

[issue6928] Doc: Class statements and metaclass = xxx

2009-09-16 Thread Terry J. Reedy
New submission from Terry J. Reedy tjre...@udel.edu: For 3.x, I think 7.7 Class Definitions should mention the metaclass keyword arg and cross-reference 3.3.3 Customizing class creation. Since it is no longer a 'special' name, let alone a 'special method name', there is no reason to know to look

[issue6905] inspect.getargspec(print) fails

2009-09-16 Thread Yuv Gre
Yuv Gre ubershme...@gmail.com added the comment: You're right, I was confused by the statement arg is not a Python function. I didn't realize 'arg' meant the function I passed to getargspec, I thought it was just strange. After digging a bit into inspect.py, may I suggest line 814 be changed

[issue6926] socket module missing IPPROTO_IPV6, IPPROTO_IPV4

2009-09-16 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: I think I found the problem. It appears Python is compiled with #define _WIN32_WINNT 0x0500 But IPPROTO_IPV6 (and other constants) are only defined #if(_WIN32_WINNT = 0x0501) What's the proper fix for this issue? --

[issue6926] socket module missing IPPROTO_IPV6, IPPROTO_IPV4

2009-09-16 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: I think a suitable test case for this issue is: if hasattr(sys, 'getwindowsversion'): if sys.getwindowsversion() = (5,1): assert hasattr(socket, 'IPPROTO_IPV6') -- ___ Python tracker

[issue6300] encode and decode should accept 'errors' as a keyword argument

2009-09-16 Thread Jeff Bradberry
Jeff Bradberry jeff.bradbe...@gmail.com added the comment: This patch adds the requested behavior to the current 2.7 svn trunk. Both 'encoding' and 'errors' may be used as keyword arguments for encode() and decode(). -- keywords: +patch nosy: +jbradberry Added file:

[issue6300] encode and decode should accept 'errors' as a keyword argument

2009-09-16 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: They should also probably be added to unicode(), str(), unicode.decode, and unicode.encode then. (Also some tests, please!) -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org

[issue5483] [PATCH]Add FastDbfilenameShelf: shelf nerver sync cache even when writeback=True

2009-09-16 Thread Zhigang Wang
Zhigang Wang w1z...@gmail.com added the comment: Thanks Robert for pointing out issue553171. After read that issue, I still think we paid too much to make shelf less surprising. We should at lease provide a option for the *smart* programmers to get better speed and less exceptions. The