[issue13659] Add a help() viewer for IDLE's Shell.

2011-12-30 Thread Ron Adam
Ron Adam added the comment: What about having idle open a web browser session with pydocs new browse option? python3 -m pydoc -b We've added input fields to the pages that take the same input as help() command does. It also links to the online help pages, and you can view the source code of

[issue13687] parse incorrect command line on windows 7

2011-12-30 Thread baleno
baleno added the comment: % is escape characters for DOS, -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list maili

[issue13686] Some notes on the docs of multiprocessing

2011-12-30 Thread Eli Bendersky
Eli Bendersky added the comment: 10. Unless I'm missing something entirely obvious, except in the examples it says that Value has a "value" attribute for actual data access. One is expected to look in the docs of ctypes to find that? -- ___ Python

[issue13687] parse incorrect command line on windows 7

2011-12-30 Thread baleno
New submission from baleno : i just tested python2.7.2 and python 3.2.2 on windows 7,this bugs at all version. my test code: import sys print(sys.argv) command line: test.py "%cc%cd%bd" command result: ['E:\\Codes\\test.py', '%ccE:\\Codesbd'] -- components: None files: error.png mess

[issue13686] Some notes on the docs of multiprocessing

2011-12-30 Thread Eli Bendersky
New submission from Eli Bendersky : I've decided to study the multiprocessing module a bit, and carefully went over the docs (for 2.7). Some small fixes I will commit myself, but a few issues came up on which I'd like some opinion from others. In rough order of appearance in the doc: 1. In th

[issue13677] correct docstring for builtin compile

2011-12-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am aware that the docstring, shown at help(compile), is what you were talking about. The docstring and manuals should say the same thing, or at least not contradict each other, so it is common for both to be out of date and both to be updated at the same ti

[issue13640] add mimetype for application/vnd.apple.mpegurl

2011-12-30 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo stage: -> patch review type: behavior -> enhancement versions: -Python 2.7, Python 3.1, Python 3.2, Python 3.4 ___ Python tracker ___

[issue13590] Prebuilt python-2.7.2 binaries for macosx can not compile c extensions

2011-12-30 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue13677] correct docstring for builtin compile

2011-12-30 Thread Jim Jewett
Jim Jewett added the comment: I'm not sure we're looking at the same thing. I was talking about the docstring that shows up at the interactive prompt in response to >>> help(compile) Going to hg.python.org/cpython and selecting branches, then default, then browse, got me to http://hg.python

[issue12760] Add create mode to open()

2011-12-30 Thread Éric Araujo
Éric Araujo added the comment: > [...] There is slightly more versatility with the opener method, but no more > obviousness > and no less typing. I agree with your opinion. I re-read this report: - Antoine thinks this fills an important use case, namely avoiding race conditions - Amaury then

[issue13685] argparse does not sanitize help strings for % signs

2011-12-30 Thread Eric V. Smith
Eric V. Smith added the comment: This is because the help text support substitution, as mentioned here: http://docs.python.org/dev/library/argparse.html#help It's possible this documentation could be improved. -- assignee: -> docs@python components: +Documentation -None nosy: +docs@p

[issue13685] argparse does not sanitize help strings for % signs

2011-12-30 Thread Jeff Yurkiw
New submission from Jeff Yurkiw : I discovered this while programming the command line interface for a python program that can take a passed argument and throw it into the 'where like' clause of a SQL expression (intended for a postgresql database). The wildcard character for where-like statem

[issue13684] httplib tunnel infinite loop

2011-12-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: In 3.2, http.client.py, insertion would be at line 718. However, only one statement is needed to break. 3.2 elsewhere has if line in (b'\r\n', b'\n', b''): break But I note that at 512, there is the code luzakiru patched in. I think that should perh

[issue12760] Add create mode to open()

2011-12-30 Thread Devin Jeanpierre
Devin Jeanpierre added the comment: > Amaury did not suggest to use openat, but the new opener argument to open, > which was especially added for use cases such as the one discussed here: Sorry, yes. Wrong words, same thought. We can implement this using opener, but we could implement this wi

[issue13683] Docs in Python 3:raise statement mistake

2011-12-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Verified for 3.2.2 cmd window and idle. Fix looks good. -- keywords: +patch nosy: +terry.reedy stage: -> needs patch type: -> behavior versions: +Python 3.3 ___ Python tracker _

[issue13677] correct docstring for builtin compile

2011-12-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Flags comment applies to 3.2.2 docs and 2.7.2 docs. There is only one additional flag: ast.PyCF_ONLY_AST, so 'flags' should be singular. As for src and dst, doc has been updated to say 'Compile the source into a code or AST object. ... source can either be a

[issue13614] setup.py register fails if long_description contains ReST

2011-12-30 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: tarek -> eric.araujo components: +Distutils2 keywords: +easy nosy: +alexis stage: -> test needed title: `setup.py register` fails if long_description contains RST -> setup.py register fails if long_description contains ReST type: -> behavior versi

[issue13443] wrong links and examples in the functional HOWTO

2011-12-30 Thread Éric Araujo
Éric Araujo added the comment: Hm, it was actually Antoine who removed it. -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue13294] http.server: minor code style changes.

2011-12-30 Thread Éric Araujo
Éric Araujo added the comment: Just a note: “Incorporated Michele Orrù's code style changes into the trunk and other codelines.” The policy is to apply only bug fixes and doc fixes and improvements to stable branches, not code cleanups (they’re usually compatible but are just not worth doing

[issue13443] wrong links and examples in the functional HOWTO

2011-12-30 Thread Éric Araujo
Éric Araujo added the comment: Hi Senthil. I think you applied a patch that did not have consensus. -- ___ Python tracker ___ ___ Py

[issue8035] urllib.request.urlretrieve hangs waiting for connection close after a redirect

2011-12-30 Thread Éric Araujo
Éric Araujo added the comment: > It could be possible to set up an ad-hoc httpserver for that purpose, > but that sounds a bit overkill. Oh, I assumed urllib already had a server for tests. We have one in distutils2/packaging, otherwise we’d have to resort to manual testing against the real

[issue13666] datetime documentation typos

2011-12-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: 2.6 only gets security updates. I verified 'rzinfo' typo in x.1.6 in 2.7 and 3.2. Also in both, tzinfo.utcoffset begins as Stephen claims. I have not verified that this is error. Also in both, in x.1.4, class GMT1 has ... def utcoffset(self, dt): ...

[issue13655] Python SSL stack doesn't have a default CA Store

2011-12-30 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue13655] Python SSL stack doesn't have a default CA Store

2011-12-30 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo, loewis versions: -Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.4 ___ Python tracker ___ _

[issue13665] TypeError: string or integer address expected instead of str instance

2011-12-30 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +amaury.forgeotdarc, meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue13664] UnicodeEncodeError in gzip when filename contains non-ascii

2011-12-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: The actual fix in the previous issue, as in Python 3, was to always write the filename, but with errors replaced with '?/. -- nosy: +lars.gustaebel, terry.reedy ___ Python tracker

[issue13656] Document ctypes.util and ctypes.wintypes.

2011-12-30 Thread Éric Araujo
Éric Araujo added the comment: May I ask why you closed this? From a quick glance, a few functions from ctypes.util are considered public and documented (albeit not with module directives, so I’m not sure the indexing works helpfully for people searching); I don’t know the status of wintypes

[issue13659] Add a help() viewer for IDLE's Shell.

2011-12-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: I should like it if a separate window were either automatic or a configuration option for help on modules and classes, which should cover 'long' output. The Windows workaround, which I will never remember, brings up an extraneous cmd.exe window in addition t

[issue12760] Add create mode to open()

2011-12-30 Thread Éric Araujo
Éric Araujo added the comment: > This is not a "duplicate issue". The openat solution is no easier than the > os.open > solution. Amaury did not suggest to use openat, but the new opener argument to open, which was especially added for use cases such as the one discussed here: ... op

[issue13508] ctypes' find_library breaks with ARM ABIs

2011-12-30 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue13508] ctypes' find_library breaks with ARM ABIs

2011-12-30 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue13641] decoding functions in the base64 module could accept unicode strings

2011-12-30 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue13645] import machinery vulnerable to timestamp collisions

2011-12-30 Thread Brett Cannon
Brett Cannon added the comment: Why change importlib's API and instead add to it? You could add the requisite path_size() method to get the value, and assume 0 means unsupported (at least until some future version where a deprecation warning about not requiring file size comes about). But I d

[issue13676] sqlite3: Zero byte truncates string contents

2011-12-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: It would be nice to also have tests for the bytes and bytearray cases. It also seems the generic case hasn't been fixed ("""PyObject_CallFunction(self->connection->text_factory, "y", val_str)"""). -- ___ Python trac

[issue13684] httplib tunnel infinite loop

2011-12-30 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +orsenthil stage: -> patch review versions: +Python 3.2, Python 3.3 -Python 2.6 ___ Python tracker ___ _

[issue13609] Add "os.get_terminal_size()" function

2011-12-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: (review posted on http://bugs.python.org/review/13609/show ) -- ___ Python tracker ___ ___ Python-b

[issue12641] Remove -mno-cygwin from distutils

2011-12-30 Thread Reuben Garrett
Changes by Reuben Garrett : -- nosy: +RubyTuesdayDONO ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue13679] Multiprocessing system crash

2011-12-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, closing this issue. -- resolution: -> invalid status: open -> closed ___ Python tracker ___ __

[issue13679] Multiprocessing system crash

2011-12-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Anyways, the docs say that python should throw a RuntimeError, but it > didn't? I think running it directly would raise a RuntimeError, but importing it wouldn't. > And would it be doable to add a warning at the top of the > multiprocessing tutorial/page th

[issue9260] A finer grained import lock

2011-12-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: I believe this new patch should be much more robust than the previous one. It also adds a test for the improvement (it freezes an unpatched interpreter). -- Added file: http://bugs.python.org/file24114/implock5.patch ___

[issue13679] Multiprocessing system crash

2011-12-30 Thread Rock Achu
Rock Achu added the comment: Erm.. No. I was unaware I had to do so. Next time I'll be more careful. Anyways, the docs say that python should throw a RuntimeError, but it didn't? And would it be doable to add a warning at the top of the multiprocessing tutorial/page that section? --

[issue13684] httplib tunnel infinite loop

2011-12-30 Thread luzakiru
New submission from luzakiru : readline() can return ''. This is handled in most places in httplib but not when a tunnel is used. It leads to a infinite loop that permanently blocks the program while wasting CPU cycles. For the patch I simply copied the fix that is used elsewhere in the file w

[issue13683] Docs in Python 3:raise statement mistake

2011-12-30 Thread maniram maniram
New submission from maniram maniram : In the Python 3 docs for the raise statement, http://docs.python.org/py3k/reference/simple_stmts.html#the-raise-statement,the docs say "If no exception is active in the current scope, a TypeError exception is raised indicating that this is an error (if run

[issue8623] Aliasing warnings in socketmodule.c

2011-12-30 Thread Charles-François Natali
Charles-François Natali added the comment: > This change probably should be backported to 3.2 branch. I'm not sure about this, I don't feel comfortable backporting a such path which doesn't solve a "real world problem". -- ___ Python tracker

[issue13663] pootle.python.org is outdated.

2011-12-30 Thread Martin v . Löwis
Martin v. Löwis added the comment: I'd rather have you maintain poodle.python.org instead of maintaining Python translations off-site. -- ___ Python tracker ___ ___

[issue11812] transient socket failure to connect to 'localhost'

2011-12-30 Thread Charles-François Natali
Charles-François Natali added the comment: Seems to be fixed now. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___

[issue13642] urllib incorrectly quotes username and password in https basic auth

2011-12-30 Thread Michele Orrù
Michele Orrù added the comment: > Joonas, this issue seems easy to solve. Do you want to try to post a > patch?. Extra credits for patching testsuite too :). As far as I see, it would be sufficient to add unquote(passed) to _open_generic_http. Regarding unittests instead, there is already a me

[issue9260] A finer grained import lock

2011-12-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: > If, on the other hand, we really want to reduce the number of cases > where a deadlock would occur by increasing the locking granularity, > then it's the way to go. Yes, that's the point. Today you have to be careful when mixing imports and threads. The probl

[issue13682] Documentation of os.fdopen() refers to non-existing bufsize argument of builtin open()

2011-12-30 Thread Petri Lehtinen
New submission from Petri Lehtinen : >From the docs of os.fdopen(): Return an open file object connected to the file descriptor fd. The mode and bufsize arguments have the same meaning as the corresponding arguments to the built-in open() function. However, there's no bufsize argume

[issue13394] Patch to increase aifc lib test coverage

2011-12-30 Thread Oleg Plakhotnyuk
Oleg Plakhotnyuk added the comment: The last, fifth, patch goes to issue 13681 -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue13681] Aifc read compressed frames fix

2011-12-30 Thread Oleg Plakhotnyuk
Oleg Plakhotnyuk added the comment: I have put changes to both aifc and audioop module in this single patch. The reason is that aifc test reading compressed frames will work properly only after audioop fix has been applied. -- ___ Python tracker <

[issue13681] Aifc read compressed frames fix

2011-12-30 Thread Oleg Plakhotnyuk
New submission from Oleg Plakhotnyuk : This patch resolves two issues: 1. ADPCM compressed audio files reading. Such files have frame size of 4 bits. Aifc lib cannot represent 4 bits frame size because it uses integer bytes count variable. I have replaced it with bits count. 2. ALAW/ULAW/ADPC

[issue13674] crash in datetime.strftime

2011-12-30 Thread Tim Golden
Tim Golden added the comment: Yes, sorry. I wasn't clear enough. There *are* still checks in the 3.x code (for the kind of thing you're showing). But the checks assume 1000 <= year <= maxint is ok for all format parameters on Windows. In fact, for %y, only 1900 <= year is ok. -- __

[issue9260] A finer grained import lock

2011-12-30 Thread Charles-François Natali
Charles-François Natali added the comment: > That's true. Do you think temptatively acquiring the lock (without > blocking) would solve the issue? I think it should work. Something along those lines: while True: if lock.acquire(0): lock.tstate = tstate return True else:

[issue13679] Multiprocessing system crash

2011-12-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, have you read http://docs.python.org/library/multiprocessing.html#windows ? (especially "Safe importing of main module") -- nosy: +pitrou ___ Python tracker ___

[issue13674] crash in datetime.strftime

2011-12-30 Thread patrick vrijlandt
patrick vrijlandt added the comment: Somewhere in the code is also/still a seperate check concerning strftime: PythonWin 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on win32. Portions Copyright 1994-2008 Mark Hammond - see 'Help/About PythonWin' for further copyright in

[issue13674] crash in datetime.strftime

2011-12-30 Thread Tim Golden
Tim Golden added the comment: Well, the code in 2.x is quite different from that in 3.x. Specifically, the 2.x code assumes that, for Windows, no year before 1900 is valid for any of the formats. So a simple check throws a ValueError for tm_year < 0. For 3.x the assumption was that Windows can h

[issue13676] sqlite3: Zero byte truncates string contents

2011-12-30 Thread Petri Lehtinen
Petri Lehtinen added the comment: What? Don't you SEE that it works correctly? :) Attached an updated patch with a test case. FTR, I also tried to make it possible to have the SQL statement include a zero byte, but it seems that sqlite3_prepare() (and also the newer sqlite3_prepare_v2()) alw

[issue13394] Patch to increase aifc lib test coverage

2011-12-30 Thread Oleg Plakhotnyuk
Oleg Plakhotnyuk added the comment: Fourth patch goes to issue 13680 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue13680] Aifc comptype write fix

2011-12-30 Thread Oleg Plakhotnyuk
New submission from Oleg Plakhotnyuk : Two changes have been made to the library: 1. Lowercase compression type support have been added to the sample width validation routine during write operation. Everywhere else compression types are used in both lowercase and uppercase. 2. Redundant invalid