[issue6828] wrongly highlighted blocks in the Tutorial

2009-09-02 Thread Gabriel Genellina
New submission from Gabriel Genellina : 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 http://permalink.gmane.org/gmane.comp.python.general/636597 --

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

2009-09-02 Thread Eric Smith
Eric Smith 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 _

[issue1766304] improve xrange.__contains__

2009-09-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 for an O(1) contains-test. -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list

[issue1766304] improve xrange.__contains__

2009-09-02 Thread Joseph Thomson
Joseph Thomson 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 said in my closed duplica

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

2009-09-02 Thread Shaun Cutts
New submission from Shaun Cutts : 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 may not want to "persist" default

[issue1766304] improve xrange.__contains__

2009-09-02 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: +hpesoj ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue1766304] improve xrange.__contains__

2009-09-02 Thread Mark Dickinson
Changes by Mark Dickinson : -- stage: -> needs patch type: -> feature request versions: +Python 2.7, Python 3.2 -Python 2.6, Python 3.0 ___ Python tracker ___ ___

[issue1766304] improve xrange.__contains__

2009-09-02 Thread Mark Dickinson
Mark Dickinson added the comment: Closed issue 6826 as a duplicate of this issue. -- nosy: +marketdickinson ___ Python tracker ___

[issue6826] Add __contains__ to range type

2009-09-02 Thread Mark Dickinson
Mark Dickinson 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__

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

2009-09-02 Thread Joe Amenta
Changes by Joe Amenta : -- nosy: +joe.amenta ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue6826] Add __contains__ to range type

2009-09-02 Thread Joseph Thomson
New submission from Joseph Thomson : 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 the following expression wi

[issue2620] Multiple buffer overflows in unicode processing

2009-09-02 Thread Brett Cannon
Changes by Brett Cannon : -- status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

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

2009-09-02 Thread Brett Cannon
Changes by Brett Cannon : -- status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[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 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. There should also

[issue6821] incorrect doc for PyBuffer_Release

2009-09-02 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r74631, will be merged to other branches soon. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

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

2009-09-02 Thread Evan Driscoll
New submission from Evan Driscoll : 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 *only* exception, a

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

2009-09-02 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r74627. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

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

2009-09-02 Thread Jason R. Coombs
Jason R. Coombs 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 be added to os.rst,

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

2009-09-02 Thread Martin v . Löwis
Martin v. Löwis 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 are not creating

[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 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 precise document

[issue3139] bytearrays are not thread safe

2009-09-02 Thread Martin v . Löwis
Martin v. Löwis 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 fixed, other threads

[issue6715] xz compressor support

2009-09-02 Thread devurandom
devurandom 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 at coreutils), and G

[issue6824] help for a module should list supported platforms

2009-09-02 Thread Ritesh Raj Sarraf
Changes by Ritesh Raj Sarraf : -- type: -> feature request ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue6824] help for a module should list supported platforms

2009-09-02 Thread Ritesh Raj Sarraf
New submission from Ritesh Raj Sarraf : 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 http://www.python.org/doc/2.5.4/lib/module-tempfile.html DESCRIPTION

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

2009-09-02 Thread Ross
Ross 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 unfamiliar with the inner wor

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

2009-09-02 Thread Eric Smith
Changes by Eric Smith : -- assignee: -> eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

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

2009-09-02 Thread Eric Smith
Eric Smith 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 __

[issue6823] time.strftime does unnecessary range check

2009-09-02 Thread Richard Shapiro
New submission from Richard Shapiro : 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 savings flag out of

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

2009-09-02 Thread Keith Campbell
Keith Campbell added the comment: You are correct. Thanks. Keith -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue3139] bytearrays are not thread safe

2009-09-02 Thread Boya Sun
Boya Sun 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

[issue6822] Error calling .storlines from ftplib

2009-09-02 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- type: compile error -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6715] xz compressor support

2009-09-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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 -- ___ Python

[issue6822] Error calling .storlines from ftplib

2009-09-02 Thread Robert DeVaughn
New submission from Robert DeVaughn : 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 ftp.storlines("STOR source.txt",f)

[issue6821] incorrect doc for PyBuffer_Release

2009-09-02 Thread egreen
New submission from egreen : 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 messages: 92165 nosy: egreen,

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

2009-09-02 Thread Lars Gustäbel
Lars Gustäbel 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 contain the file's data

[issue6715] xz compressor support

2009-09-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: Are xz and lzma formats compatible with each other? If not, which one is the most popular? -- nosy: +pitrou ___ Python tracker ___ _

[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 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

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

2009-09-02 Thread Winfried Plappert
Winfried Plappert 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 "Aliases" is too wide and for

[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 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 ___

[issue6820] Redefinition of HAVE_STRFTIME can cause compiler errors.

2009-09-02 Thread rgpitts
New submission from rgpitts : 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 HAVE_STRFTIME ... This is ra

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

2009-09-02 Thread Martin v . Löwis
Martin v. Löwis 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 _