[issue13680] Aifc comptype write fix

2011-12-30 Thread Oleg Plakhotnyuk
New submission from Oleg Plakhotnyuk oleg...@gmail.com: 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.

[issue13394] Patch to increase aifc lib test coverage

2011-12-30 Thread Oleg Plakhotnyuk
Oleg Plakhotnyuk oleg...@gmail.com added the comment: Fourth patch goes to issue 13680 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13394 ___

[issue13676] sqlite3: Zero byte truncates string contents

2011-12-30 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org 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

[issue13674] crash in datetime.strftime

2011-12-30 Thread Tim Golden
Tim Golden m...@timgolden.me.uk 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

[issue13674] crash in datetime.strftime

2011-12-30 Thread patrick vrijlandt
patrick vrijlandt patrick.vrijla...@gmail.com 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

[issue13679] Multiprocessing system crash

2011-12-30 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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 rep...@bugs.python.org

[issue9260] A finer grained import lock

2011-12-30 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr 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

[issue13674] crash in datetime.strftime

2011-12-30 Thread Tim Golden
Tim Golden m...@timgolden.me.uk 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.

[issue13681] Aifc read compressed frames fix

2011-12-30 Thread Oleg Plakhotnyuk
New submission from Oleg Plakhotnyuk oleg...@gmail.com: 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.

[issue13681] Aifc read compressed frames fix

2011-12-30 Thread Oleg Plakhotnyuk
Oleg Plakhotnyuk oleg...@gmail.com 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. -- ___

[issue13394] Patch to increase aifc lib test coverage

2011-12-30 Thread Oleg Plakhotnyuk
Oleg Plakhotnyuk oleg...@gmail.com added the comment: The last, fifth, patch goes to issue 13681 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13394 ___

[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 pe...@digip.org: 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

[issue9260] A finer grained import lock

2011-12-30 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

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

2011-12-30 Thread Michele Orrù
Michele Orrù maker...@gmail.com 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,

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

2011-12-30 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Seems to be fixed now. -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11812

[issue13663] pootle.python.org is outdated.

2011-12-30 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I'd rather have you maintain poodle.python.org instead of maintaining Python translations off-site. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13663

[issue8623] Aliasing warnings in socketmodule.c

2011-12-30 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr 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

[issue13683] Docs in Python 3:raise statement mistake

2011-12-30 Thread maniram maniram
New submission from maniram maniram maniandra...@gmail.com: 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

[issue13684] httplib tunnel infinite loop

2011-12-30 Thread luzakiru
New submission from luzakiru visco...@inbox.com: 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

[issue13679] Multiprocessing system crash

2011-12-30 Thread Rock Achu
Rock Achu rockac...@gmail.com 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

[issue9260] A finer grained import lock

2011-12-30 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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 Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

[issue13679] Multiprocessing system crash

2011-12-30 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ok, closing this issue. -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13679 ___

[issue12641] Remove -mno-cygwin from distutils

2011-12-30 Thread Reuben Garrett
Changes by Reuben Garrett reubengarr...@gmail.com: -- nosy: +RubyTuesdayDONO ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12641 ___ ___

[issue13609] Add os.get_terminal_size() function

2011-12-30 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: (review posted on http://bugs.python.org/review/13609/show ) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13609 ___

[issue13684] httplib tunnel infinite loop

2011-12-30 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +orsenthil stage: - patch review versions: +Python 3.2, Python 3.3 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13684 ___

[issue13676] sqlite3: Zero byte truncates string contents

2011-12-30 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

[issue13645] import machinery vulnerable to timestamp collisions

2011-12-30 Thread Brett Cannon
Brett Cannon br...@python.org 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

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

2011-12-30 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13641 ___ ___ Python-bugs-list

[issue13508] ctypes' find_library breaks with ARM ABIs

2011-12-30 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13508 ___ ___ Python-bugs-list

[issue13508] ctypes' find_library breaks with ARM ABIs

2011-12-30 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13508 ___ ___ Python-bugs-list

[issue12760] Add create mode to open()

2011-12-30 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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:

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

2011-12-30 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu 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

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

2011-12-30 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

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

2011-12-30 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu 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

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

2011-12-30 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +amaury.forgeotdarc, meador.inge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13665 ___ ___

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

2011-12-30 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo, loewis versions: -Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13655

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

2011-12-30 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13655 ___ ___ Python-bugs-list mailing

[issue13666] datetime documentation typos

2011-12-30 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu 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

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

2011-12-30 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

[issue13443] wrong links and examples in the functional HOWTO

2011-12-30 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Hi Senthil. I think you applied a patch that did not have consensus. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13443 ___

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

2011-12-30 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

[issue13443] wrong links and examples in the functional HOWTO

2011-12-30 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Hm, it was actually Antoine who removed it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13443 ___

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

2011-12-30 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- 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: -

[issue13677] correct docstring for builtin compile

2011-12-30 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu 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

[issue13683] Docs in Python 3:raise statement mistake

2011-12-30 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu 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 rep...@bugs.python.org

[issue12760] Add create mode to open()

2011-12-30 Thread Devin Jeanpierre
Devin Jeanpierre jeanpierr...@gmail.com 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

[issue13684] httplib tunnel infinite loop

2011-12-30 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu 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

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

2011-12-30 Thread Jeff Yurkiw
New submission from Jeff Yurkiw j...@cyan.com: 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

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

2011-12-30 Thread Eric V. Smith
Eric V. Smith e...@trueblade.com 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

[issue12760] Add create mode to open()

2011-12-30 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

[issue13677] correct docstring for builtin compile

2011-12-30 Thread Jim Jewett
Jim Jewett jimjjew...@gmail.com 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

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

2011-12-30 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13590 ___ ___ Python-bugs-list

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

2011-12-30 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo stage: - patch review type: behavior - enhancement versions: -Python 2.7, Python 3.1, Python 3.2, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13640

[issue13677] correct docstring for builtin compile

2011-12-30 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu 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

[issue13686] Some notes on the docs of multiprocessing

2011-12-30 Thread Eli Bendersky
New submission from Eli Bendersky eli...@gmail.com: 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

[issue13687] parse incorrect command line on windows 7

2011-12-30 Thread baleno
New submission from baleno cui_...@126.com: 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:

[issue13686] Some notes on the docs of multiprocessing

2011-12-30 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com 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? --

[issue13687] parse incorrect command line on windows 7

2011-12-30 Thread baleno
baleno cui_...@126.com added the comment: % is escape characters for DOS, -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13687 ___

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

2011-12-30 Thread Ron Adam
Ron Adam ron3...@gmail.com 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