[issue6819] Typo in datamodel.rst (Custon - Custom)

2009-09-02 Thread Jon Parise
New submission from Jon Parise j...@indelible.org: reference/datamodel.rst misspells Custom as Custon. The attached patch fixes that. -- assignee: georg.brandl components: Documentation files: datamodel.custon.diff keywords: patch messages: 92157 nosy: georg.brandl, jon severity:

[issue6818] remove/delete method for zipfile/tarfile objects

2009-09-02 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: -1. I don't think this can be implemented in a reasonable way, assuming that you want the file to become smaller as a consequence of removal. -- nosy: +loewis ___ Python tracker

[issue6820] Redefinition of HAVE_STRFTIME can cause compiler errors.

2009-09-02 Thread rgpitts
New submission from rgpitts richard.pi...@cdl.co.uk: I'm working with the Python C API and omniOrb with Visual Studio 2008 on Windows XP. A OmniOrb header corba_sys_dep.h is defining HAVE_STRFTIME as 1 ... #define HAVE_STRFTIME 1 ... pyconfig.h is then defining this again. ... #define

[issue4160] library.pdf - Section 12.13.2 Connection Objects - example cut off at the right hand side

2009-09-02 Thread Winfried Plappert
Winfried Plappert winfried.plapp...@gmail.com added the comment: I checked the 2.6.2 version of the PDF, dated 2nd September 2009, and the problem is gone. The call can be closed. -- ___ Python tracker rep...@bugs.python.org

[issue4159] Table about Standard Encodings is cut off at the bottom - 35 entries missing

2009-09-02 Thread Winfried Plappert
Winfried Plappert winfried.plapp...@gmail.com added the comment: I checked the current 2.6.2 documentation today (2nd September 2009): the tables are not cut off at the bottom any more, but the layout is still not optimal. The column width could be calculated more efficiently. The column named

[issue4160] library.pdf - Section 12.13.2 Connection Objects - example cut off at the right hand side

2009-09-02 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: This problem is somewhat similar to #5388, but if what you reported is now fixed I'll close this issue. -- nosy: +ezio.melotti resolution: - out of date status: open - closed ___ Python tracker

[issue6715] xz compressor support

2009-09-02 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Are xz and lzma formats compatible with each other? If not, which one is the most popular? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6715

[issue6818] remove/delete method for zipfile/tarfile objects

2009-09-02 Thread Lars Gustäbel
Lars Gustäbel l...@gustaebel.de added the comment: -1, although I can only speak for tarfile. Removing members from a tar archive sounds obvious and easy but it is *not*. A file in an archive is stored as a header block (that contains the metadata) followed by a number of data blocks (that

[issue6821] incorrect doc for PyBuffer_Release

2009-09-02 Thread egreen
New submission from egreen egr...@operamail.com: In documentation (c-api/buffer.html): void PyBuffer_Release(PyObject *obj, Py_buffer *view) should be: void PyBuffer_Release(Py_buffer *view) (as per Include/abstract.h) -- assignee: georg.brandl components: Documentation

[issue6822] Error calling .storlines from ftplib

2009-09-02 Thread Robert DeVaughn
New submission from Robert DeVaughn rdevau...@gmail.com: When attempting to store a file via FTP, the following error occurs. See attached code. Traceback (most recent call last): File C:\Documents and Settings\rdevaughn\Desktop\HTTP\src\FTP_directory.py, line 14, in module

[issue6715] xz compressor support

2009-09-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: As I understand it from the http://tukaani.org/xz/ page, .lzma and .xz are two file formats bases on the lzma compression method. - .lzma simply stores the compressed stream. - .xz is more complex --

[issue6822] Error calling .storlines from ftplib

2009-09-02 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- type: compile error - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6822 ___ ___

[issue3139] bytearrays are not thread safe

2009-09-02 Thread Boya Sun
Boya Sun boya@case.edu added the comment: I am still a little bit confused. Can you explain a little more in detail? What is the difference between the suspicious code and the ones that are fixed? -- ___ Python tracker rep...@bugs.python.org

[issue6796] invalid print in tkinter\test\test_ttk\test_widgets.py

2009-09-02 Thread Keith Campbell
Keith Campbell kei...@mitre.org added the comment: You are correct. Thanks. Keith -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6796 ___ ___

[issue6823] time.strftime does unnecessary range check

2009-09-02 Thread Richard Shapiro
New submission from Richard Shapiro rashapir...@gmail.com: in Modules/timemodule.c, in the routine time_strftime, there is a range check on the tm_isdst field: if (buf.tm_isdst -1 || buf.tm_isdst 1) { PyErr_SetString(PyExc_ValueError, daylight

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2009-09-02 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: I plan to look at this, and if it looks okay, commit it. Let me know if anyone has any remaining issues. -- nosy: +eric.smith versions: +Python 3.2 -Python 3.1 ___ Python tracker rep...@bugs.python.org

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2009-09-02 Thread Eric Smith
Changes by Eric Smith e...@trueblade.com: -- assignee: - eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1578269 ___ ___

[issue6818] remove/delete method for zipfile/tarfile objects

2009-09-02 Thread Ross
Ross rossmclen...@tamu.edu added the comment: In light of Lars's comment on the matter, perhaps this functionality could be added to zip files only. Surely it can be done, considering that numerous utilities and even Windows Explorer provide such functionality. I must confess that I am

[issue6824] help for a module should list supported platforms

2009-09-02 Thread Ritesh Raj Sarraf
New submission from Ritesh Raj Sarraf r...@researchut.com: Whey I do a help (python-module), I get the help text as follows: Help on module tempfile: NAME tempfile - Temporary files. FILE /usr/lib/python2.5/tempfile.py MODULE DOCS

[issue6824] help for a module should list supported platforms

2009-09-02 Thread Ritesh Raj Sarraf
Changes by Ritesh Raj Sarraf r...@researchut.com: -- type: - feature request ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6824 ___ ___

[issue6715] xz compressor support

2009-09-02 Thread devurandom
devurandom devuran...@gmx.net added the comment: .lzma is actually not a format. It is just the raw output of the LZMA1 coder. XZ instead is a container format for the LZMA2 coder, which probably means LZMA+some metadata. XZ is the official successor to .lzma, and GNU is using it already (look

[issue3139] bytearrays are not thread safe

2009-09-02 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: A problem can only occur if you preserve a pointer to the buffer, and the object gets a chance to change its buffer underneath. This can happen when there are user-defined callback, and when other threads can get control. In the cases being

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2009-09-02 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I plan to look at this, and if it looks okay, commit it. Let me know if anyone has any remaining issues. I have the general issue that the semantics of the Windows symlink implementation are ill-defined. Specifically for the patch, I think

[issue6818] remove/delete method for zipfile/tarfile objects

2009-09-02 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: In light of Lars's comment on the matter, perhaps this functionality could be added to zip files only. Surely it can be done, considering that numerous utilities and even Windows Explorer provide such functionality. Are you sure they

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2009-09-02 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: The deviance between the Unix and Windows symlink functions is apparent in the signature, though not explicitly-defined in any formal documentation. Perhaps the following could be included as formal documentation. Should this documentation

[issue6819] Typo in datamodel.rst (Custon - Custom)

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

[issue6825] Minor documentation bug with os.path.split

2009-09-02 Thread Evan Driscoll
New submission from Evan Driscoll eva...@gmail.com: The documentation for os.path.split says, in part: In nearly all cases, join(head, tail) equals path (the only exception being when there were multiple slashes separating head from tail). But this is not quite true: that's not the

[issue6821] incorrect doc for PyBuffer_Release

2009-09-02 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, fixed in r74631, will be merged to other branches soon. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6821

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2009-09-02 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Should this documentation be added to os.rst, or would another place be better? Definitely the current documentation of these APIs, yes. The parameter should appear in the signature also, with then the remark that it works Windows only.

[issue5705] os.getpwent returns unsigned 32bit value, os.setuid refuses it

2009-09-02 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5705 ___ ___ Python-bugs-list

[issue2620] Multiple buffer overflows in unicode processing

2009-09-02 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2620 ___ ___ Python-bugs-list

[issue6826] Add __contains__ to range type

2009-09-02 Thread Joseph Thomson
New submission from Joseph Thomson joseph.thom...@gmail.com: The range type should implement the __contains__ method. Currently an expression like 'x in range(1000)' will iterate through every item in the range (exiting when an item tests true for equality); this is highly unnecessary as

[issue5705] os.getpwent returns unsigned 32bit value, os.setuid refuses it

2009-09-02 Thread Joe Amenta
Changes by Joe Amenta ament...@msu.edu: -- nosy: +joe.amenta ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5705 ___ ___ Python-bugs-list mailing

[issue6826] Add __contains__ to range type

2009-09-02 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Closing this as a duplicate of issue 1766304. Joseph, please could you renew the discussion in that issue instead? -- nosy: +marketdickinson resolution: - duplicate status: open - closed superseder: - improve xrange.__contains__

[issue1766304] improve xrange.__contains__

2009-09-02 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Closed issue 6826 as a duplicate of this issue. -- nosy: +marketdickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1766304 ___

[issue1766304] improve xrange.__contains__

2009-09-02 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- stage: - needs patch type: - feature request versions: +Python 2.7, Python 3.2 -Python 2.6, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1766304

[issue1766304] improve xrange.__contains__

2009-09-02 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- nosy: +hpesoj ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1766304 ___ ___ Python-bugs-list

[issue6827] deepcopy erroneously doesn't call __setstate__ if __getstate__ returns empty dict

2009-09-02 Thread Shaun Cutts
New submission from Shaun Cutts shauncu...@users.sourceforge.net: Line 335 of copy.py guards call to __setstate__ with if state: ... However, __getstate__ may legitimately return an empty dictionary even if __setstate__ still needs to be called. For example, __setstate__/__getstate__ pair

[issue1766304] improve xrange.__contains__

2009-09-02 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: +1 for an O(1) contains-test. -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1766304 ___

[issue1766304] improve xrange.__contains__

2009-09-02 Thread Joseph Thomson
Joseph Thomson joseph.thom...@gmail.com added the comment: Seeing as the range type has most likely stabalised by now, I would like to renew this issue. The current behaviour of range/xrange could introduce unforeseen performance issues if users are not aware of its inner workings. Also, as I

[issue6579] No update about automatic numbering of fields in format strings (e.g. 'A {} with {} buttocks')

2009-09-02 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: This is a duplicate of issue 6813, where it has been fixed. I'm closing it. -- resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6579

[issue6828] wrongly highlighted blocks in the Tutorial

2009-09-02 Thread Gabriel Genellina
New submission from Gabriel Genellina gagsl-...@yahoo.com.ar: In the tutorial, some blocks were wrongly highlighted as being Python code when they were actually just program output. This patch adds the missing ``highlightlang:: none`` declarations. See