[issue8936] webbrowser regression on windows

2010-06-07 Thread anatoly techtonik
anatoly techtonik added the comment: webbrowser.open("%s:%s" % (HOST,PORT)) File "C:\Python25\lib\webbrowser.py", line 61, in open if browser.open(url, new, autoraise): File "C:\Python25\lib\webbrowser.py", line 518, in open os.startfile(url) WindowsError: [Error -2147217406] Windows

[issue8936] webbrowser regression on windows

2010-06-07 Thread anatoly techtonik
anatoly techtonik added the comment: 2.5 threw exception -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue8937] SimpleHTTPServer should contain usage example

2010-06-07 Thread anatoly techtonik
New submission from anatoly techtonik : 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 components: Documenta

[issue7989] Add pure Python implementation of datetime module to CPython

2010-06-07 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am changing the title to match Brett's explanation better. Note that since the time module is a thin wrapper around C library calls, it falls under inherently relying on C code exception. -- title: Transition time/datetime C modules to Python

[issue7989] Transition time/datetime C modules to Python

2010-06-07 Thread Alexander Belopolsky
Alexander Belopolsky 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. Effectively, your proposal is "let's

[issue8936] webbrowser regression on windows

2010-06-07 Thread Ezio Melotti
Ezio Melotti 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 behavior seems consisten

[issue8936] webbrowser regression on windows

2010-06-07 Thread Brian Curtin
Brian Curtin added the comment: Also, since you stated that this is a regression -- what was the last version you saw this work in? -- ___ Python tracker ___ ___

[issue8936] webbrowser regression on windows

2010-06-07 Thread Brian Curtin
Brian Curtin added the comment: See also #8232 -- nosy: +brian.curtin stage: -> unit test needed type: -> behavior versions: -Python 2.6 ___ Python tracker ___ ___

[issue7989] Transition time/datetime C modules to Python

2010-06-07 Thread anatoly techtonik
anatoly techtonik 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 ___

[issue8936] webbrowser regression on windows

2010-06-07 Thread anatoly techtonik
New submission from anatoly techtonik : 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 regression on wind

[issue8935] Syntax error in os.py

2010-06-07 Thread Ezio Melotti
Ezio Melotti 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 ___

[issue7989] Transition time/datetime C modules to Python

2010-06-07 Thread Brett Cannon
Brett Cannon 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 not fall undernea

[issue8935] Syntax error in os.py

2010-06-07 Thread Stan Klein
New submission from Stan Klein : 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 "/usr/lib/python2.6/linecache.p

[issue7989] Transition time/datetime C modules to Python

2010-06-07 Thread Alexander Belopolsky
Alexander Belopolsky 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. --

[issue7989] Transition time/datetime C modules to Python

2010-06-07 Thread Alexander Belopolsky
Alexander Belopolsky 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 enhancing extension back-ends

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2010-06-07 Thread Alexander Belopolsky
Alexander Belopolsky 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 file: http://bugs.python.org/file17

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2010-06-07 Thread Daniel Urban
Daniel Urban 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 ___

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

2010-06-07 Thread STINNER Victor
STINNER Victor 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 exchange text data, they use u

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

2010-06-07 Thread STINNER Victor
STINNER Victor 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 (read-only and read/write buffer)

[issue8922] Improve encoding shortcuts in PyUnicode_AsEncodedString()

2010-06-07 Thread STINNER Victor
STINNER Victor 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 :-) > we have to be careful about

[issue8922] Improve encoding shortcuts in PyUnicode_AsEncodedString()

2010-06-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: STINNER Victor wrote: > > STINNER Victor 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.

[issue8922] Improve encoding shortcuts in PyUnicode_AsEncodedString()

2010-06-07 Thread STINNER Victor
STINNER Victor 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 fastpath. -- _

[issue8839] PyArg_ParseTuple(): remove "t# format

2010-06-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: STINNER Victor wrote: > > STINNER Victor 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 documentation about the change > > @le

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

2010-06-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: STINNER Victor wrote: > > New submission from STINNER Victor : > > 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 > - Replace "default encoding" by "

[issue8923] Remove unused "errors" argument from _PyUnicode_AsDefaultEncodedString()

2010-06-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: STINNER Victor wrote: > > New submission from STINNER Victor : > > _PyUnicode_AsDefaultEncodedString() has two arguments: unicode (input string) > and errors. If errors is not NULL, it calls Py_FatalError()! > > The argument is useful: all functions call

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

2010-06-07 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Un

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

2010-06-07 Thread STINNER Victor
STINNER Victor 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 would like to improve the docume

[issue8922] Improve encoding shortcuts in PyUnicode_AsEncodedString()

2010-06-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: STINNER Victor wrote: > > New submission from STINNER Victor : > > PyUnicode_Decode() and PyUnicode_AsEncodedString() calls directly builtin > decoders/encoders for some known encodings (eg. "utf-8"), instead of using > the slow path (call PyCodec_Decode

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2010-06-07 Thread Alexander Belopolsky
Alexander Belopolsky 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 __

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

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

[issue8897] sunau bytes / str TypeError in Py3k

2010-06-07 Thread STINNER Victor
STINNER Victor 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

[issue1982] Feature: extend strftime to accept milliseconds

2010-06-07 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

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

2010-06-07 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue8905] difflib should accept arbitrary line iterators

2010-06-07 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

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

2010-06-07 Thread STINNER Victor
STINNER Victor added the comment: Commited to py3k (r81807), blocked in 3.1 (r81808). -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

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

2010-06-07 Thread STINNER Victor
Changes by STINNER Victor : -- components: +Unicode nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7989] Transition time/datetime C modules to Python

2010-06-07 Thread Brian Curtin
Brian Curtin 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

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

2010-06-07 Thread Thomas Jollans
New submission from Thomas Jollans : 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 have to special-case

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

2010-06-07 Thread Stefan Krah
Stefan Krah 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 = 12) *** Signal 6 No Signal

[issue7989] Transition time/datetime C modules to Python

2010-06-07 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- versions: -Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue7989] Transition time/datetime C modules to Python

2010-06-07 Thread Alexander Belopolsky
Alexander Belopolsky 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 implemented in module level functions,

[issue4769] b64decode should accept strings or bytes

2010-06-07 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue8897] sunau bytes / str TypeError in Py3k

2010-06-07 Thread Thomas Jollans
Thomas Jollans 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 __

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

2010-06-07 Thread Éric Araujo
Éric Araujo 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: http://bugs.python.org/file17581/

[issue8828] Atomic function to rename a file

2010-06-07 Thread anatoly techtonik
anatoly techtonik 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 - http://stackoverflow.com/questions/167414/is-an-atomic-file-rena

[issue8933] Invalid detection of metadata version

2010-06-07 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue8933] Invalid detection of metadata version

2010-06-07 Thread Benjamin Liles
New submission from Benjamin Liles : 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 -- assignee: tarek

[issue8932] test_capi fails --without-threads

2010-06-07 Thread Stefan Krah
New submission from Stefan Krah : 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 b'Fatal Python error

[issue8875] XML-RPC improvement is described twice.

2010-06-07 Thread A.M. Kuchling
A.M. Kuchling added the comment: Fixed in rev81801. Thanks for your report! -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue8904] quick example how to fix docs

2010-06-07 Thread Brian Curtin
Brian Curtin 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 ___

[issue7989] Transition time/datetime C modules to Python

2010-06-07 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue8828] Atomic function to rename a file

2010-06-07 Thread STINNER Victor
STINNER Victor 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 _

[issue8897] sunau bytes / str TypeError in Py3k

2010-06-07 Thread STINNER Victor
STINNER Victor added the comment: Can you add a test? -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue8897] sunau bytes / str TypeError in Py3k

2010-06-07 Thread Thomas Jollans
Thomas Jollans 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

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

2010-06-07 Thread Mads Kiilerich
Mads Kiilerich 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 requests authentication.

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

2010-06-07 Thread Walter Dörwald
Walter Dörwald added the comment: Yes, I think you should apply the patch. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue8929] wininst: msvcr90 dependency in x64 build

2010-06-07 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue8929] wininst: msvcr90 dependency in x64 build

2010-06-07 Thread Christian Boos
Christian Boos 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 ___ P

[issue7989] Transition time/datetime C modules to Python

2010-06-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Alexander Belopolsky wrote: > > Alexander Belopolsky 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 the important > additions at that time was

[issue8828] Atomic function to rename a file

2010-06-07 Thread anatoly techtonik
anatoly techtonik 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. -- nosy: +techton

[issue8904] quick example how to fix docs

2010-06-07 Thread anatoly techtonik
anatoly techtonik added the comment: On Mon, Jun 7, 2010 at 1:26 AM, Éric Araujo 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 example (or documentation HowTo) should b