[issue8905] difflib should accept arbitrary line iterators

2010-06-07 Thread anatoly techtonik
Changes by anatoly techtonik techto...@gmail.com: -- title: difflib: support input generators - difflib should accept arbitrary line iterators ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8905

[issue8904] quick example how to fix docs

2010-06-07 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: On Mon, Jun 7, 2010 at 1:26 AM, Éric Araujo rep...@bugs.python.org wrote: Would the addition of a link to http://www.python.org/dev/patches/ address your request? No. It is not quick. It short only for an experienced developer. The

[issue8828] Atomic function to rename a file

2010-06-07 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Atomic file renames are reimplemented by: 1. Mercurial 2. Trac 3. Dulwich (aka HgGit) and essential for many other projects out there, so this should be in standard library. Atomic renames depend on filesystem more that on the OS.

[issue7989] Transition time/datetime C modules to Python

2010-06-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Alexander Belopolsky wrote: Alexander Belopolsky belopol...@users.sourceforge.net added the comment: As far as I remember, the datetime module started as a pure python module and was reimplemented in C around year 2003 or so. One of

[issue8929] wininst: msvcr90 dependency in x64 build

2010-06-07 Thread Christian Boos
Christian Boos cb...@neuf.fr added the comment: I did a mistake and downloaded an older installer, sorry for the trouble this caused. The actual Python 2.6.5 (x64) has wininst-9.0.exe and wininst-9.0-amd64.exe built statically as expected. -- nosy: +cboos

[issue8929] wininst: msvcr90 dependency in x64 build

2010-06-07 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8929 ___

[issue8848] Deprecate or remove U and U# formats of Py_BuildValue()

2010-06-07 Thread Walter Dörwald
Walter Dörwald wal...@livinglogic.de added the comment: Yes, I think you should apply the patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8848 ___

[issue8797] urllib2 basicauth broken in 2.6.5: RuntimeError: maximum recursion depth exceeded in cmp

2010-06-07 Thread Mads Kiilerich
Mads Kiilerich m...@kiilerich.com added the comment: FYI: The regression was introduced in 2.6.5 with issue3819 . This also causes problems with Mercurial pushing to google code - see http://mercurial.selenic.com/bts/issue2179 . IIRC google code redirects to an url which then in turn

[issue8897] sunau bytes / str TypeError in Py3k

2010-06-07 Thread Thomas Jollans
Thomas Jollans tho...@jollans.com added the comment: Attached is a patch against the current py3k trunk that fixes this. (as far as I can tell) -- keywords: +patch Added file: http://bugs.python.org/file17580/sunau-bytes.diff ___ Python tracker

[issue8828] Atomic function to rename a file

2010-06-07 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Implementation of atomic rename() for Windows in Mercurial: http://selenic.com/repo/hg/file/tip/mercurial/windows.py (search for def rename) -- ___ Python tracker rep...@bugs.python.org

[issue7989] Transition time/datetime C modules to Python

2010-06-07 Thread Daniel Urban
Changes by Daniel Urban urban.dani...@gmail.com: -- nosy: +durban ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7989 ___ ___ Python-bugs-list

[issue8904] quick example how to fix docs

2010-06-07 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: I think what you are suggesting is outside of the scope of that document -- it appears that the page intends to be quick and strictly focused on reporting bugs, not fixing them. -- nosy: +brian.curtin status: open - pending

[issue8875] XML-RPC improvement is described twice.

2010-06-07 Thread A.M. Kuchling
A.M. Kuchling li...@amk.ca added the comment: Fixed in rev81801. Thanks for your report! -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8875 ___

[issue8932] test_capi fails --without-threads

2010-06-07 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: test_capi fails when compiled --without-threads: test test_capi failed -- Traceback (most recent call last): File /usr/home/db3l/buildarea/3.x.bolen-freebsd7/build/Lib/test/test_capi.py, line 49, in test_no_FatalError_infinite_loop

[issue8933] Invalid detection of metadata version

2010-06-07 Thread Benjamin Liles
New submission from Benjamin Liles benli...@gmail.com: The detection for metadata version does not follow what is specified in PEP 241 and PEP 314. Specifically, the following fields are being sent as version 1.0 when they are not allowed as per PEP 241: * Classifier * Download-URL

[issue8933] Invalid detection of metadata version

2010-06-07 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +merwok ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8933 ___ ___ Python-bugs-list mailing

[issue8828] Atomic function to rename a file

2010-06-07 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Dulwich bug discussion (closed) - https://bugs.edge.launchpad.net/dulwich/+bug/557585 Trac implementation - http://trac.edgewall.org/browser/trunk/trac/util/__init__.py?#L82 Stackoverflow -

[issue8910] Write a text file explaining why Lib/test/data exists

2010-06-07 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Attaching a proposal. I think the component is a grey area between tests and documentation, so I’d be for including this file in all four branches. -- keywords: +needs review, patch nosy: +d...@python, merwok Added file:

[issue8897] sunau bytes / str TypeError in Py3k

2010-06-07 Thread Thomas Jollans
Thomas Jollans tho...@jollans.com added the comment: test case for sunau, as requested. Loosely based on test_wave. -- Added file: http://bugs.python.org/file17582/sunau-test.diff ___ Python tracker rep...@bugs.python.org

[issue4769] b64decode should accept strings or bytes

2010-06-07 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +merwok ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4769 ___ ___ Python-bugs-list mailing

[issue7989] Transition time/datetime C modules to Python

2010-06-07 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: For the datetime module there are also a few more subtle issues that would make it difficult to make a hybrid C/Python implementation. The problem is that unlike the time module where most of the functionality is

[issue7989] Transition time/datetime C modules to Python

2010-06-07 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- versions: -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7989 ___

[issue8719] buildbot: segfault on FreeBSD (signal 11)

2010-06-07 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I ran a test --without-threads: test_runpy and test_exceptions passed, test_sys was not reached: test_sqlite Fatal error 'Cannot allocate red zone for initial thread' at line 384 in file /usr/src/lib/libthr/thread/thr_init.c (errno =

[issue8934] aifc should use str instead of bytes (wave, sunau compatibility)

2010-06-07 Thread Thomas Jollans
New submission from Thomas Jollans tho...@jollans.com: aifc getcomptype() and setcomptype() use bytes while the corresponding methods in the sunau and wave modules use str (b'NONE', b'ULAW' vs 'NONE', 'ULAW'). This means that programmers wanting simple format-agnostic audio file output will

[issue7989] Transition time/datetime C modules to Python

2010-06-07 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: It seems like this might not be worth it or a good idea, and I have no strong feeling for this being done. Feel free to close/reject this one. -- ___ Python tracker rep...@bugs.python.org

[issue8934] aifc should use str instead of bytes (wave, sunau compatibility)

2010-06-07 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- components: +Unicode nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8934 ___

[issue8848] Deprecate or remove U and U# formats of Py_BuildValue()

2010-06-07 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Commited to py3k (r81807), blocked in 3.1 (r81808). -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8848

[issue8905] difflib should accept arbitrary line iterators

2010-06-07 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8905 ___ ___

[issue8919] python should read ~/.pythonrc.py by default

2010-06-07 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8919 ___ ___

[issue1982] Feature: extend strftime to accept milliseconds

2010-06-07 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1982 ___ ___

[issue8897] sunau bytes / str TypeError in Py3k

2010-06-07 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: test case for sunau, as requested. Loosely based on test_wave. Ok great. Commited to py3k (r81809) and 3.1 (r81810). -- resolution: - fixed status: open - closed ___ Python tracker

[issue8934] aifc should use str instead of bytes (wave, sunau compatibility)

2010-06-07 Thread Thomas Jollans
Thomas Jollans tho...@jollans.com added the comment: tentative documentation patch uploaded -- Added file: http://bugs.python.org/file17584/aifc_str_doc.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8934

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2010-06-07 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Readying the patch for commit. Added documentation, tests and implementation of fromutc() method that does not need a dst(). -- resolution: - accepted Added file: http://bugs.python.org/file17585/issue5094d.diff

[issue8922] Improve encoding shortcuts in PyUnicode_AsEncodedString()

2010-06-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: New submission from STINNER Victor victor.stin...@haypocalc.com: PyUnicode_Decode() and PyUnicode_AsEncodedString() calls directly builtin decoders/encoders for some known encodings (eg. utf-8), instead of using

[issue8925] Improve c-api/arg.rst: use bytes or str types instead of string

2010-06-07 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Commited to 3.2 (r81811) and 3.1 (r81812). The final patch adds also links to tuple, list, dict, float, complex and int. Replace also long by int (long doesn't exist anymore in Python3). @merwok: Please open a new issue if you

[issue8925] Improve c-api/arg.rst: use bytes or str types instead of string

2010-06-07 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8925 ___

[issue8923] Remove unused errors argument from _PyUnicode_AsDefaultEncodedString()

2010-06-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: New submission from STINNER Victor victor.stin...@haypocalc.com: _PyUnicode_AsDefaultEncodedString() has two arguments: unicode (input string) and errors. If errors is not NULL, it calls Py_FatalError()! The

[issue8925] Improve c-api/arg.rst: use bytes or str types instead of string

2010-06-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: New submission from STINNER Victor victor.stin...@haypocalc.com: http://docs.python.org/py3k/c-api/arg.html is unclear about what is a string. Attached patch: - Use directly bytes, bytearray and str types

[issue8839] PyArg_ParseTuple(): remove t# format

2010-06-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: STINNER Victor victor.stin...@haypocalc.com added the comment: New version of the patch: - charbuffer_encode() uses y* instead of y# format to accept modifiable buffer objects (eg. bytearray) - Improve the

[issue8922] Improve encoding shortcuts in PyUnicode_AsEncodedString()

2010-06-07 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: the shortcuts were meant for Python internal use only str.encode() calls PyUnicode_AsEncodedString() and bytes.decode() calls PyUnicode_Decode(), so it is not for internal use only. Eg. text.encode(ASCII) doesn't use the

[issue8922] Improve encoding shortcuts in PyUnicode_AsEncodedString()

2010-06-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: STINNER Victor victor.stin...@haypocalc.com added the comment: the shortcuts were meant for Python internal use only str.encode() calls PyUnicode_AsEncodedString() and bytes.decode() calls PyUnicode_Decode(),

[issue8922] Improve encoding shortcuts in PyUnicode_AsEncodedString()

2010-06-07 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Note that these shortcut bypass the codec registry logic. Yes, but it's already the case without my patch. I don't think that it's really useful to override latin1, utf-8, utf-16, utf-32 or mbcs. I prefer a faster Python :-)

[issue8838] Remove codecs.readbuffer_encode() and codecs.charbuffer_encode()

2010-06-07 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: MAL agreed to remove t# parsing format (#8839), whereas charbuffer_encode() main goal was to offer t# parsing format to Python object space. charbuffer_encode() is now useless in Python3. bytes() accepts any buffer object

[issue8925] Improve c-api/arg.rst: use bytes or str types instead of string

2010-06-07 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: There's no way for a buffer compatible object to tell the arg parser that it is storing text data. I think that the buffer protocol targets byte strings/arrays, and that unicode type should be enough. If applications have to

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2010-06-07 Thread Daniel Urban
Daniel Urban urban.dani...@gmail.com added the comment: In Doc/library/datetime.rst, in the documentation of datetime.utcnow this part: .. versionchanged:: 2.7 probably should be .. versionchanged:: 3.2. -- ___ Python tracker rep...@bugs.python.org

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2010-06-07 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Thanks, Daniel. This was a leftover from the previous patch. The latest patch does not actually change utcnow(). Instead the users should call datetime.now(timezone.utc). Fixed in issue5094d1.diff. -- Added

[issue7989] Transition time/datetime C modules to Python

2010-06-07 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Brett Cannon wrote in a comment (msg106498) on another issue: The stated long-term goal of the stdlib is to minimize the C extension modules to only those that have to be written in C (modules can still have performance

[issue7989] Transition time/datetime C modules to Python

2010-06-07 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Also, my opposition is only to splitting datetime. While I am not against splitting the time module, I believe it should be phased out eventually and posix compatibility portion folded into posix module. --

[issue8935] Syntax error in os.py

2010-06-07 Thread Stan Klein
New submission from Stan Klein skl...@cpcug.org: I got the following traceback on an import os statement: Traceback (most recent call last): File setup.py, line 53, in ? import traceback File /usr/lib/python2.6/traceback.py, line 3, in ? import linecache File

[issue7989] Transition time/datetime C modules to Python

2010-06-07 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: So I see a couple of objections here to the idea that I will try to address. First is MAL's thinking that this will undo any C code, which it won't. The idea is that stdlib modules that do not inherently rely on other C code (e.g. sqlite3 does

[issue8935] Syntax error in os.py

2010-06-07 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: In 2.6 b is valid syntax. If you are using 2.6 modules on Python 2.4 you will probably see several more errors. -- nosy: +ezio.melotti resolution: - invalid stage: - committed/rejected status: open - closed type: crash - behavior

[issue8936] webbrowser regression on windows

2010-06-07 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: webbrowser.open(127.0.0.1:8080) opens page in IE even if default system browser is Chrome. -- components: Library (Lib), Windows messages: 107297 nosy: techtonik priority: normal severity: normal status: open title: webbrowser

[issue7989] Transition time/datetime C modules to Python

2010-06-07 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: It would be nice to see the transition accompanied by some tutorial that could be used as an example for other similar tasks. -- nosy: +techtonik ___ Python tracker rep...@bugs.python.org

[issue8936] webbrowser regression on windows

2010-06-07 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Also, since you stated that this is a regression -- what was the last version you saw this work in? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8936

[issue8936] webbrowser regression on windows

2010-06-07 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: If you want it to open it with the default browser you have to specify the protocol (e.g. webbrowser.open(http://127.0.0.1:8080/;)). I don't know exactly why webbrowser decides to open webbrowser.open(127.0.0.1:8080) with IE, but the

[issue7989] Transition time/datetime C modules to Python

2010-06-07 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Brett, Thanks for your explanation. It looks like I misunderstood the proposal. I though the idea was to have some methods of e.g. date type implemented in python and some in C. What you propose is much simpler.

[issue8937] SimpleHTTPServer should contain usage example

2010-06-07 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: Currently SimpleHTTPServer docs contains phrase For example usage, see the implementation of the test() function. with no reference where this test() function is located. This is not user friendly. -- assignee: d...@python

[issue8936] webbrowser regression on windows

2010-06-07 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: 2.5 threw exception -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8936 ___ ___