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

2009-09-17 Thread Jeff Bradberry
Jeff Bradberry jeff.bradbe...@gmail.com added the comment: As it turns out, someone had previously made this adjustment to str() and unicode(). My updated patch adds this behavior to unicode.decode and unicode.encode, adds a couple of tests to test_unicode.py, and updates the documentation to

[issue6912] Add 'with' block support to Tools/Scripts/pindent.py

2009-09-17 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Added in r74865. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6912 ___

[issue6915] os.listdir inconsistenly releases the GIL on win32

2009-09-17 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: - loewis nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6915 ___ ___

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

2009-09-17 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: The patch looks fine, the idea is good as well. I'm just a little worried about the performance impact this might have (not much though). Could you run a quick comparison of before applying the patch compared to after the patch is applied,

[issue6508] expose setresuid

2009-09-17 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Please do try this out on your system. Installing autoconf locally is really not difficult: download 2.61, then do ./configure --prefix=$HOME/ac261 make make install This will give you $HOME/ac261/bin/auto{conf|header}; automake is not

[issue6508] expose setresuid

2009-09-17 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Your patch looks right, although I have a few style issues: - the if chaining looks complicated: we don't usually have an else when the if returns - make sure you use tabs consistently with the rest of the file - it may be better to use

[issue6919] Link CRT Statically

2009-09-17 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: It will seem to work for simple scripts, but many extension modules won't behave properly because: - some API functions (PyFile_AsFile, many PyRun_*functions, PyMarshal_*+FromFile) pass FILE* structures, which differ between instances of

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

2009-09-17 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Do the remove_history_item and replace_history_item functions also need the off-by-one adjustment? -- nosy: +marketdickinson ___ Python tracker rep...@bugs.python.org

[issue1613573] xmlrpclib ServerProxy uses old httplib interface

2009-09-17 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: This bug may be fixed. Unfortunately I do not possess original setup anymore. The primary issue is still issue648658 and that affects bzr + launchpad integration, XML-RPC access to bugzilla and probably more. --

[issue1613573] xmlrpclib ServerProxy uses old httplib interface

2009-09-17 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: And I want to add that I am glad that is finally fixed, so I really appreciate the work people done in this direction in their free time. -- ___ Python tracker rep...@bugs.python.org

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

2009-09-17 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Mark: yes those functions need to be changed as well. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6877 ___

[issue6929] Confusion between write method of rowiobase and rawfileio

2009-09-17 Thread Pascal Chambon
New submission from Pascal Chambon chambon.pas...@gmail.com: It seems the properties of the write methods of these two classes are mixed up in documentation. I've checked the sources, and actually it seems the behviour is inverted : rawiobase streams, which can be pipes or other limited streams,

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

2009-09-17 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: This patch fixes it (seems like a refactoring oversight, I used the UTF16 decoder for reference, where it works fine) and adds a test, assigning to MAL for review. Marking as a release blocker so that 2.6.3 won't get released without a fix.

[issue6929] Confusion between write method of rowiobase and rawfileio

2009-09-17 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: georg.brandl - pitrou nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6929 ___

[issue2517] Error when printing an exception containing a Unicode string

2009-09-17 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2517 ___ ___ Python-bugs-list

[issue6883] OptionParser.allow_interspersed_args is undocumented

2009-09-17 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: The (en|dis)able_interspersed_args accessors are already documented, so I see no reason to document the attribute as well... -- nosy: +georg.brandl resolution: - works for me status: open - pending

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

2009-09-17 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: The patch looks good. Thanks. Aside: This is what you get when using too many single character variable names in a function... The function should really do just one cast to (unsigned char *) at the very top and then work with that variable

[issue6860] Inconsistent naming of custom command in setup.py help output

2009-09-17 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: To be able to do this fix, I also need to change the way commands are registered in Distutils. Right now, Distutils scans packages that were provided as command packages and just adds all commands from the namespace, using the class name.

[issue6516] reset owner/group to root for distutils tarballs

2009-09-17 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- priority: - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6516 ___ ___ Python-bugs-list

[issue1180] Option to ignore or substitute ~/.pydistutils.cfg

2009-09-17 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- resolution: - accepted versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1180 ___

[issue1180] Option to ignore or substitute ~/.pydistutils.cfg

2009-09-17 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- priority: critical - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1180 ___ ___

[issue3984] python interpreter import dependency with disutils/util

2009-09-17 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- assignee: - tarek priority: - low versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3984 ___

[issue6925] Doc for locals and vars

2009-09-17 Thread S Arrowsmith
Changes by S Arrowsmith si...@chiark.greenend.org.uk: -- nosy: +siona ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6925 ___ ___ Python-bugs-list

[issue793069] Add --remove-source option

2009-09-17 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- resolution: - accepted versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue793069 ___

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

2009-09-17 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I'm leaving a refactoring to someone with more time :) Committed in r74869, backported to 2.6 in r74870. -- status: open - closed ___ Python tracker rep...@bugs.python.org

[issue6929] Confusion between write method of rowiobase and rawfileio

2009-09-17 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Hm, first, which version of the documentation are you looking at? For the new IO lib, you should probably refer to the current py3k docs: http://docs.python.org/py3k/library/io.html Then, the documentation looks confused indeed. But your

[issue6929] Confusion between write method of rowiobase and rawfileio

2009-09-17 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I might add, in case it wasn't clear, that you will only encounter a raw IO object (rather than a buffered one) if you construct one directly, or if you give buffering=0 to open(). -- ___ Python

[issue6925] Doc for locals and vars

2009-09-17 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Free variables *are* returned by locals(). (Note that globals *aren't* free variables.) For example, try this: def f(): x = 1 def g(): print locals() g() f() -- nosy: +georg.brandl ___

[issue6925] Doc for locals and vars

2009-09-17 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: - georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6925 ___ ___ Python-bugs-list

[issue6882] uuid creates zombies

2009-09-17 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: The patch looks okay to me, and solves the issue on my Fedora box. But perhaps a context manager in a with block would be clearer? I've attached a patch. -- Added file: http://bugs.python.org/file14908/issue6882-contextlib.diff

[issue5754] Shelve module writeback parameter does not act as advertised

2009-09-17 Thread Robert Lehmann
Robert Lehmann lehman...@gmail.com added the comment: I think you're misquoting Python's shelve module documentation in your first sentence. The documentation says: By default modified objects are written only when assigned to the shelf [...]. If the optional writeback parameter is set to True,

[issue6882] uuid creates zombies

2009-09-17 Thread Thomas Heller
Thomas Heller thel...@ctypes.org added the comment: Since ctypes should stay compatible with Python versions down to 2.4, a with block cannot be used. Of course would closing the object returned by os.popen() explicitely be better style, but I wonder what the real problem is. My observations

[issue6729] Add support for ssize_t

2009-09-17 Thread Thomas Heller
Thomas Heller thel...@ctypes.org added the comment: Would you like to work on a patch? -- versions: +Python 2.7, Python 3.0, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6729

[issue6918] ctypes compilation error on SnowLeopard

2009-09-17 Thread Radim Novotny
Changes by Radim Novotny novotny.ra...@gmail.com: -- nosy: +naro ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6918 ___ ___ Python-bugs-list

[issue6930] [PATCH] PyUnicode_DecodeUTF16 docs wrong (byteorder param)

2009-09-17 Thread Jon Foster
New submission from Jon Foster jon.fos...@cabot.co.uk: The documentation for the C API function PyUnicode_DecodeUTF16() does not match the code. If *byteorder is 1 or -1, the documentation says that the function looks for a BOM. It doesn't. This patch updates the documentation to match the

[issue6923] Need pthread_atfork-like functionality in CPython

2009-09-17 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: For reference, this is related to http://bugs.python.org/issue6721 but deals with the C API side of things for an atfork mechanism to be used by extension modules. -- nosy: +gregory.p.smith ___

[issue6721] Locks in python standard library should be sanitized on fork

2009-09-17 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: issue 6923 has been opened to provide a C API for an atfork mechanism for use by extension modules. -- components: +Library (Lib) ___ Python tracker rep...@bugs.python.org

[issue6882] uuid creates zombies

2009-09-17 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: The py3k version of the file already contains 3.x only code, and it's missing the comment at the top that it should be compatible. But it's not really a big deal to me. The py3k version also already has some try/finally logic on some popen calls

[issue6931] awful performance in difflib: ndiff and HtmlDiff

2009-09-17 Thread Heiðar Rafn Harðarson
New submission from Heiðar Rafn Harðarson heidar.r...@hrolfsskali.net: Relatively small set of lines with differences in most lines can destroy the performance of difflib.HtmlDiff.make_table and difflib.ndiff. I am using it like this: ... htmldiffer = HtmlDiff() return

[issue6931] dreadful performance in difflib: ndiff and HtmlDiff

2009-09-17 Thread Heiðar Rafn Harðarson
Changes by Heiðar Rafn Harðarson heidar.r...@hrolfsskali.net: -- title: awful performance in difflib: ndiff and HtmlDiff - dreadful performance in difflib: ndiff and HtmlDiff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6931

[issue6919] Link CRT Statically

2009-09-17 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: If you do not *want* to change it, that is your prerogative, but it *can* definitely work. I don't believe it can work; Amaury has already given a number of reasons. If you still believe otherwise, and want to see something change, please

[issue6882] uuid creates zombies

2009-09-17 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: Indeed, the code that introduced this bug was in r68489, so it was written after Guido went through the module and cleaned it up to use try/finally. And since r68489 was a merge of r68487, the change was originally made on the 2.x version (which

[issue6882] uuid creates zombies

2009-09-17 Thread Thomas Heller
Thomas Heller thel...@ctypes.org added the comment: The py3k version of the file already contains 3.x only code, and it's missing the comment at the top that it should be compatible. But it's not really a big deal to me. Yes, I had deleted the comment since the 3.x code cannot be compatible

[issue6882] uuid creates zombies

2009-09-17 Thread Thomas Heller
Changes by Thomas Heller thel...@ctypes.org: -- assignee: theller - eric.smith resolution: - accepted ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6882 ___

[issue1731717] race condition in subprocess module

2009-09-17 Thread Joel Martin
Joel Martin pythonb...@martintribe.org added the comment: I can reproduce the problem (or at least get the same symptom) by doing this (in 2.4.6, 2.5.4 and 2.6.2): import subprocess, signal signal.signal(signal.SIGCLD, signal.SIG_IGN) subprocess.Popen(['echo','foo']).wait() The echo command

[issue6932] Open shelves fail when Python exits

2009-09-17 Thread Robert Lehmann
New submission from Robert Lehmann lehman...@gmail.com: I'm reopening issue5483 by Zhigang Wang (zhigang) as a separate bug. Shelves that are still open when Python terminates will try to sync. If writeback=True, this pickles cached items. In this example, serialization of Test() re-imports

[issue6932] Open shelves fail when Python exits

2009-09-17 Thread Robert Lehmann
Changes by Robert Lehmann lehman...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file14913/shelve-warning.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6932 ___

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

2009-09-17 Thread Robert Lehmann
Robert Lehmann lehman...@gmail.com added the comment: I addressed the other bug you were experiencing in issue6932. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5483 ___

[issue6729] Add support for ssize_t

2009-09-17 Thread Nikolaus Rath
Nikolaus Rath nikol...@rath.org added the comment: I can give it a shot if you give me a rough idea where I have to make the appropriate changes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6729

[issue6932] Open shelves fail when Python exits

2009-09-17 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed docs (a bit differently) in r74876. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6932

[issue6883] OptionParser.allow_interspersed_args is undocumented

2009-09-17 Thread Skip Montanaro
Skip Montanaro s...@pobox.com added the comment: Georg The (en|dis)able_interspersed_args accessors are already Georg documented, so I see no reason to document the attribute as Georg well... But it is documented in the class's docstring and there are no docstrings for the methods.

[issue6883] OptionParser.allow_interspersed_args is undocumented

2009-09-17 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: The methods do have docstrings (trunk rev, line 1283 and 1291). And usually, when there are accessors for a property, they are the preferred way to change it. Anyway, I don't see a reason to do something here, so please propose a patch if you

[issue6929] Confusion between write method of rowiobase and rawfileio

2009-09-17 Thread Pascal Chambon
Pascal Chambon chambon.pas...@gmail.com added the comment: Allright, then only rawIoBase's documentation is wrong... and I'll have to modify my work-in-progress library to mimic FileIo more accurately. Thansk for teh info B-) -- ___ Python tracker

[issue6929] Confusion between write method of rowiobase and rawfileio

2009-09-17 Thread Pascal Chambon
Pascal Chambon chambon.pas...@gmail.com added the comment: I forgot to note - yep I was actually improperly looking at the python 2.6 documentation, which is erroneous ocncerning the io module. But the py3k doc seems to summarize it allright B-) --

[issue6933] Threading issue with Tkinter Frame.insert

2009-09-17 Thread Moray Grieve
New submission from Moray Grieve m...@progress.com: The attached file has an example where a Tk GUI is launched as a seperate thread - this all works fine in Python 2.5, but in Python 2.6 the thread hangs. The issue seems to be in the line; self.messageBoxDetails.insert(INSERT, Hello world)

[issue6933] Threading issue with Tkinter Frame.insert

2009-09-17 Thread Moray Grieve
Moray Grieve m...@progress.com added the comment: I should say this is running on Windows XP -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6933 ___

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

2009-09-17 Thread Santhosh Thottingal
Santhosh Thottingal santhosh.thottin...@gmail.com added the comment: Attached the testcases as a patch to Lib/test/test_locale.py -- Added file: http://bugs.python.org/file14915/test_locale.py.diff ___ Python tracker rep...@bugs.python.org

[issue6929] Confusion between write method of rowiobase and rawfileio

2009-09-17 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Checked in a bunch of corrections and precisions in r74879, and r74880. -- resolution: - fixed status: open - closed versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org

[issue6860] Inconsistent naming of custom command in setup.py help output

2009-09-17 Thread Patrick Näf
Patrick Näf herzb...@herzbube.ch added the comment: To be able to do this fix, I also need to change the way commands are registered in Distutils. Hm, I thought commands were registered in the setup() function with the cmdclass dict. Like this: setup( # test is the name that should be

[issue6934] postflight.framework script (from the Mac OS X .dmg installer) fails (patch given).

2009-09-17 Thread Svetoslav Agafonkin
New submission from Svetoslav Agafonkin svet...@gmail.com: postflight.framework fails during installation: . . . Sep 17 17:36:53 mcfro Installer[1613]: run postflight script for Python Framework Sep 17 17:36:53 mcfro runner[1633]: postflight[1660]: /Volumes/Python

[issue6934] postflight.framework script (from the Mac OS X .dmg installer) fails (patch given).

2009-09-17 Thread Svetoslav Agafonkin
Changes by Svetoslav Agafonkin svet...@gmail.com: Removed file: http://bugs.python.org/file14916/postflight.framework.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6934 ___

[issue6934] postflight.framework script (from the Mac OS X .dmg installer) fails (patch given).

2009-09-17 Thread Svetoslav Agafonkin
Changes by Svetoslav Agafonkin svet...@gmail.com: Added file: http://bugs.python.org/file14917/postflight.framework.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6934 ___

[issue6882] uuid creates zombies

2009-09-17 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: Yes, I'll take care of this. I can't think of any way to add a test that the zombie process doesn't exist, but if anyone has an idea I'd like to hear about it. -- ___ Python tracker

[issue6508] expose setresuid

2009-09-17 Thread Travis H.
Travis H. travis+w-python@subspacefield.org added the comment: Simplified if/else chaining Uploading here before testing on new machine (m4 was too old on previous machine) -- Added file: http://bugs.python.org/file14918/foo.txt ___ Python

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

2009-09-17 Thread Jeff Bradberry
Jeff Bradberry jeff.bradbe...@gmail.com added the comment: Before: ~/python2.7$ ./python -mtimeit u'Andr\202 x'.encode('ascii', 'replace') 100 loops, best of 3: 1.8 usec per loop After: ~/python2.7-patched$ ./python -mtimeit u'Andr\202 x'.encode('ascii', 'replace') 100 loops, best of

[issue5207] extend strftime/strptime format for RFC3339 and RFC2822

2009-09-17 Thread Matías Ribecky
Changes by Matías Ribecky m...@mribecky.com.ar: -- nosy: +mribecky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5207 ___ ___ Python-bugs-list

[issue6508] expose setresuid

2009-09-17 Thread Travis H.
Travis H. travis+w-python@subspacefield.org added the comment: I applied the same patch to Python 2.6.2 and believe that I got the tab/space situation worked out so that it's consistent with the rest of posixmodule.c I also executed autoconf to convert configure.in to configure, and judging

[issue6934] {PATCH} postflight.framework script (from the Mac OS X .dmg installer) fails.

2009-09-17 Thread Svetoslav Agafonkin
Changes by Svetoslav Agafonkin svet...@gmail.com: -- title: postflight.framework script (from the Mac OS X .dmg installer) fails (patch given). - {PATCH} postflight.framework script (from the Mac OS X .dmg installer) fails. ___ Python tracker

[issue6934] [PATCH] postflight.framework script (from the Mac OS X .dmg installer) fails.

2009-09-17 Thread Svetoslav Agafonkin
Changes by Svetoslav Agafonkin svet...@gmail.com: -- title: {PATCH} postflight.framework script (from the Mac OS X .dmg installer) fails. - [PATCH] postflight.framework script (from the Mac OS X .dmg installer) fails. ___ Python tracker

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

2009-09-17 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Perfect. Thanks for checking. Benjamin, could you please check this in ? Thanks. -- assignee: - benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6300

[issue5042] Structure sub-subclass does not initialize with base class positional arguments

2009-09-17 Thread Thomas Heller
Changes by Thomas Heller thel...@ctypes.org: -- versions: +Python 2.7, Python 3.1, Python 3.2 -Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5042 ___

[issue5042] Structure sub-subclass does not initialize with base class positional arguments

2009-09-17 Thread Thomas Heller
Thomas Heller thel...@ctypes.org added the comment: The problem is the implementation of the current __init__ method, in Modules/_ctypes/_ctypes.c, line 4024. Rewritten in Python, and slightly simplified it looks like this: def __init__(self, *args, **kw): The current BUGGY

[issue5042] Structure sub-subclass does not initialize with base class positional arguments

2009-09-17 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: Heh. Me neither. Is it possible to use something like Cython to generate the C code? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5042

[issue5042] Structure sub-subclass does not initialize with base class positional arguments

2009-09-17 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: That was easier than I thought. The generated code is _ugly_ but it did seem to be able to generate it. I created init.pyx {{{ class X(object): def __init__(self, *args, **kw): This is how the Structure's

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

2009-09-17 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: I still have a few things I would like changed: - Instead of listing which methods take keyword arguments at the top of the section, I would prefer that each used the versionchanged: 2.7 directive and indicated the added ability to use

[issue2504] Add gettext.pgettext() and variants support

2009-09-17 Thread nh2
nh2 n...@deditus.de added the comment: Me too. This makes developing applications with good localizations in Python really difficult. -- nosy: +nh2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2504

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

2009-09-17 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: - loewis nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6895 ___ ___

[issue4033] python search path - .pth recursion

2009-09-17 Thread Bill Janssen
Bill Janssen bill.jans...@gmail.com added the comment: Looks like 1431 was closed by removing a line from the documentation, so it's not surprising that it's not clear. -- nosy: +janssen ___ Python tracker rep...@bugs.python.org

[issue6935] Version updates needed in tutorial

2009-09-17 Thread Mitchell Model
New submission from Mitchell Model m...@acm.org: Footnote 1 in section 2.1 of the Tutorial and the example of invoking Python in the middle of the page need their version number upped to 3.2 in both the invocation and the greeting. The same page in the 3.1 documentation should have the 'a'

[issue6936] Import needed to quit Python?

2009-09-17 Thread Mitchell Model
New submission from Mitchell Model m...@acm.org: Section 2.1 of the tutorial describes using import sys; sys.exit() if ^D or ^Z doesn't work. However, both quit() and exit() work, as documented in the Built-in Constants section of the Library documentation. Is there something about them that

[issue4111] Add DTrace probes

2009-09-17 Thread Jim Baker
Changes by Jim Baker jba...@zyasoft.com: -- nosy: +jbaker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4111 ___ ___ Python-bugs-list mailing list

[issue6925] Doc for locals and vars

2009-09-17 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Except for the variable name and 3.1 print(), that is exactly what I tested before posting: {} Was 2.x different? Anyway, from Wikipedia: In computer programming, a free variable is a variable referred to in a function that is not a local

[issue6937] multiprocessing lock on OS X Snow Leopard dumps core

2009-09-17 Thread aaditya sood
New submission from aaditya sood aadi...@sood.net.in: On a Snow Leopard system, doing this core dumps: import multiprocessing lck1=multiprocessing.Lock() with lck1: print foo The stack trace: Process: Python [23100] Path:

[issue6937] multiprocessing lock on OS X Snow Leopard dumps core

2009-09-17 Thread aaditya sood
aaditya sood aadi...@sood.net.in added the comment: Additional Info: Snow Leopard is shipping with Python 2.6.1 64 bit build. -- type: - crash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6937

[issue6937] multiprocessing lock on OS X Snow Leopard dumps core

2009-09-17 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Reproducible here. Fails with Apple 2.6.1 in 64-bit mode but *not* in 32-bit mode. Also does not fail on 10.6 with recent 64-bit 4-way trunk built on 10.5. $ arch -i386 /usr/bin/python2.6 Python 2.6.1 (r261:67515, Jul 7 2009, 23:51:51) [GCC 4.2.1