[issue15928] Open url with proxy causes TypeError

2012-09-11 Thread zhang kai
zhang kai added the comment: Well, I do have encoded the params, that is not the problem. Also these code did work for most of the time, I don't know why this bug happen so I don't know any details about the problem. Sorry about that. -- ___ Python t

[issue15928] Open url with proxy causes TypeError

2012-09-11 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue15928] Open url with proxy causes TypeError

2012-09-11 Thread Senthil Kumaran
Senthil Kumaran added the comment: Have a look at the ProxyHandler example in the Examples here - http://docs.python.org/library/urllib2.html#examples Also, construct the full url properly with urlencoded data as params. Your report does not give any details of problem. -- nosy: +orsen

[issue15928] Open url with proxy causes TypeError

2012-09-11 Thread zhang kai
New submission from zhang kai: Here is the code which causes this bug: proxy_handler = urllib2.ProxyHandler({'https': proxy}) opener = urllib2.build_opener(proxy_handler) f = opener.open(url+'?'+params) Here are the traceback information: Traceback (most recent call last): File "proxy.py",

[issue15899] howto/unicode.rst doctest corrections

2012-09-11 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- stage: patch review -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue15899] howto/unicode.rst doctest corrections

2012-09-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 142fbadd0ae1 by Senthil Kumaran in branch '2.7': Fix issue #15899 - howto/unicode.rst doctest corrections for 2.7 branch. http://hg.python.org/cpython/rev/142fbadd0ae1 -- ___ Python tracker

[issue15899] howto/unicode.rst doctest corrections

2012-09-11 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue15927] cvs.reader does not support escaped newline when quoting=cvs.QUOTE_NONE

2012-09-11 Thread Kalon Mills
New submission from Kalon Mills: cvs.reader improperly prematurely ends row parsing when parsing a row with an escaped newline but with quoting turned off. cvs.reader properly handles quoted newlines. cvs.writer properly handles writing escaped unquoted newlines so only the reader has an iss

[issue15906] argparse add_argument() confusing behavior when type=str, default=

2012-09-11 Thread Chris Jerdonek
Chris Jerdonek added the comment: [From python-dev: http://mail.python.org/pipermail/python-dev/2012-September/121683.html ] > I've tried the various suggestions out, and I think from a practical point of view, a fix for the regression in the 2.7, 3.2 and 3.3 branches should be to apply the one

[issue15923] Building from a fresh clone breaks on Parser/asdl_c.py

2012-09-11 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue15923] Building from a fresh clone breaks on Parser/asdl_c.py

2012-09-11 Thread Trent Nelson
Changes by Trent Nelson : -- nosy: +trent ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue15906] argparse add_argument() confusing behavior when type=str, default=

2012-09-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 739606bdcba4 by Barry Warsaw in branch '2.7': - Issue #15906: Fix a regression in argparse caused by the preceding change, http://hg.python.org/cpython/rev/739606bdcba4 New changeset bc342cd7ed96 by Barry Warsaw in branch '3.2': - Issue #15906: Fix

[issue15925] email.utils.parsedate(), email.utils.parsedate_tz() and email.utils.parsedate_to_datetime() should return None when date cannot be parsed

2012-09-11 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- keywords: +3.3regression ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue15926] Segmentation fault after multiple reinitializations

2012-09-11 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis: #include #include int main() { int i; for (i = 0; i < 100; i++) { printf("%d\n", i); Py_Initialize(); Py_Finalize(); } return 0; } The above code succeeds with Python 3.2, but causes segmentation f

[issue9592] Limitations in objects returned by multiprocessing Pool

2012-09-11 Thread Max
Max added the comment: I propose to close this issue as fixed. The first two problems in the OP are now resolved through patches to pickle. The third problem is addressed by issue5370: it is a documented feature of pickle that anyone who defines __setattr__ / __getattr__ that depend on an int

[issue15925] email.utils.parsedate(), email.utils.parsedate_tz() and email.utils.parsedate_to_datetime() should return None when date cannot be parsed

2012-09-11 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis: Documentation (in Python 3.3) says that None is returned when date cannot be parsed. In Python 3.2: >>> email.utils.parsedate("0") >>> email.utils.parsedate_tz("0") >>> In Python 3.3: >>> email.utils.parsedate("0") Traceback (most rece

[issue15925] email.utils.parsedate(), email.utils.parsedate_tz() and email.utils.parsedate_to_datetime() should return None when date cannot be parsed

2012-09-11 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- components: +email nosy: +barry, r.david.murray ___ Python tracker ___ ___ Python-

[issue12680] cPickle.loads is not thread safe due to non-thread-safe imports

2012-09-11 Thread Chris Kaynor
Changes by Chris Kaynor : -- nosy: +DragonFireCK ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue15923] Building from a fresh clone breaks on Parser/asdl_c.py

2012-09-11 Thread Martin v . Löwis
Martin v. Löwis added the comment: It's really puzzling that this has ever worked; the buggy code has been there since 2008, yet apparently executed successfully many times since. -- ___ Python tracker ___

[issue13990] Benchmarks: 2to3 failures on the py3 side

2012-09-11 Thread Ezio Melotti
Changes by Ezio Melotti : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue10445] _ast py3k : add lineno back to "args" node

2012-09-11 Thread Ezio Melotti
Changes by Ezio Melotti : -- components: +Interpreter Core -None nosy: +ncoghlan stage: -> needs patch versions: +Python 3.3, Python 3.4 ___ Python tracker ___ _

[issue15315] Can't build Python extension with mingw32 on Windows

2012-09-11 Thread Ezio Melotti
Changes by Ezio Melotti : -- dependencies: +Remove -mno-cygwin from distutils type: -> behavior ___ Python tracker ___ ___ Python-bug

[issue11385] TextTestRunner methods are not documented

2012-09-11 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti versions: +Python 3.4 -Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue8964] platform._sys_version does not parse correctly IronPython 2.x version

2012-09-11 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +easy versions: +Python 3.3 -Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue1005895] curses for win32

2012-09-11 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: -brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue1005895] curses for win32

2012-09-11 Thread Ezio Melotti
Changes by Ezio Melotti : -- versions: +Python 3.4 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5766] Mac/scripts/BuildApplet.py reset of sys.executable during install can cause it to use wrong modules

2012-09-11 Thread Ezio Melotti
Changes by Ezio Melotti : -- versions: +Python 2.7 -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue15924] 404 link on Python about page

2012-09-11 Thread Joshua Landau
New submission from Joshua Landau: http://www.python.org/about/ section "Python plays well with others", last paragraph, link "extension modules" links to http://www.python.org/doc/ext/intro.html, a 404 page. http://www.python.org/doc/ext/ redirects to http://docs.python.org/extending/ --

[issue15923] Building from a fresh clone breaks on Parser/asdl_c.py

2012-09-11 Thread Christian Heimes
Changes by Christian Heimes : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue15923] Building from a fresh clone breaks on Parser/asdl_c.py

2012-09-11 Thread Barry A. Warsaw
New submission from Barry A. Warsaw: After a fresh clone, configure && make fails due to a fairly obvious bug in the code. Note that if you `hg revert --all`, configure && make will succeed, probably because the timestamps get updated enough to fool make. @resist[~/projects/python:1043]% hg c

[issue15906] argparse add_argument() confusing behavior when type=str, default=

2012-09-11 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Sep 11, 2012, at 07:00 PM, R. David Murray wrote: >To repeat: there is no change to be made for 3.3. 3.3.0 will go out the door >with the pre-12776 behavior. So any backward compatibility concerns that >apply to 2.7 and 3.2 also apply to 3.3. Thus I sugge

[issue15906] argparse add_argument() confusing behavior when type=str, default=

2012-09-11 Thread R. David Murray
R. David Murray added the comment: To repeat: there is no change to be made for 3.3. 3.3.0 will go out the door with the pre-12776 behavior. So any backward compatibility concerns that apply to 2.7 and 3.2 also apply to 3.3. Thus I suggest we restore the string check, and consider an enhanc

[issue15918] subprocess.Popen reads errpipe_read incorrectly, can result in short read

2012-09-11 Thread Vitaly
Vitaly added the comment: > In practice I doubt this matters much as this error string is likely to be > less than one page (depends on pathnames involved) but it is still technically incorrect as written. Agreed. Thank you. -- ___ Python tracker

[issue15906] argparse add_argument() confusing behavior when type=str, default=

2012-09-11 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Sep 11, 2012, at 04:15 PM, Chris Jerdonek wrote: >I haven't thought about this very long, but what would happen if the "type" >conversion is only called on arguments and default arguments that are >strings, and otherwise left alone? I thought about that, an

[issue15209] Re-raising exceptions from an expression

2012-09-11 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue15209] Re-raising exceptions from an expression

2012-09-11 Thread Ethan Furman
Ethan Furman added the comment: Can we also get this committed before 3.3.0 final? -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue15918] subprocess.Popen reads errpipe_read incorrectly, can result in short read

2012-09-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: Yeah, sounds like _eintr_retry_call alone isn't appropriate here in 2.7. I'll fix it. In practice I doubt this matters much as this error string is likely to be less than one page (depends on pathnames involved) but it is still technically incorrect as written

[issue15918] subprocess.Popen reads errpipe_read incorrectly, can result in short read

2012-09-11 Thread Vitaly
Vitaly added the comment: The prior 'man 2 read' quote was from Mac OS X; On amazon (centos) Linux, 'man 2 read' makes the same claim, albeit in different verbiage: === It is not an error if this number is smaller than the number of bytes requested; this may happen for example because fewer b

[issue14617] confusing docs with regard to __hash__

2012-09-11 Thread Ethan Furman
Ethan Furman added the comment: Ethan Furman wrote: > Ethan Furman added the comment: > > R. David Murray wrote: >> I rewrote the section a bit differently than you did in your patch...if you >> think my changes are not an improvement please let me know. > > This line is incorrect: > > A clas

[issue15918] subprocess.Popen reads errpipe_read incorrectly, can result in short read

2012-09-11 Thread Vitaly
Vitaly added the comment: Sorry, there is no traceback. The issue was identified in code review. 'man 2 read' states: === The system guaran- tees to read the number of bytes requested if the descriptor references a normal file that has that many bytes left before the end-of-file, but

[issue14617] confusing docs with regard to __hash__

2012-09-11 Thread Ethan Furman
Ethan Furman added the comment: R. David Murray wrote: > I rewrote the section a bit differently than you did in your patch...if you > think my changes are not an improvement please let me know. This line is incorrect: A class which defines its own :meth:`__hash__` that explicitly raises a :e

[issue15918] subprocess.Popen reads errpipe_read incorrectly, can result in short read

2012-09-11 Thread Vitaly
Vitaly added the comment: My bug report refers to the following code block in subprocess.py. The problem is the same in 2.6.7 and 2.7.3: === From subprocess.py in Python 2.7.3 Source Distribution: # Wait for exec to fail or succeed; possibly raising exception # E

[issue15906] argparse add_argument() confusing behavior when type=str, default=

2012-09-11 Thread R. David Murray
Changes by R. David Murray : -- priority: high -> deferred blocker ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue15906] argparse add_argument() confusing behavior when type=str, default=

2012-09-11 Thread R. David Murray
R. David Murray added the comment: I believe you've identified the broken part of the change, Chris. So to restore previous behavior we need to add that back correctly. -- nosy: +r.david.murray ___ Python tracker

[issue15895] PyRun_SimpleFileExFlags() can leak a FILE pointer

2012-09-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6fea947edead by Christian Heimes in branch 'default': Updates NEWS for issue #15895 http://hg.python.org/cpython/rev/6fea947edead -- ___ Python tracker ___

[issue15917] hg hook to detect unmerged changesets

2012-09-11 Thread R. David Murray
Changes by R. David Murray : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue15629] Add to regrtest the ability to run Lib and Doc doctests

2012-09-11 Thread R. David Murray
R. David Murray added the comment: turtle uses it because that was the file that I made work when I was playing with 'make doctest'. I think being able to use the testsetup directive would be good. It could also them be used (I think!) to put resource directives in the docs that would contro

[issue15906] argparse add_argument() confusing behavior when type=str, default=

2012-09-11 Thread Chris Jerdonek
Chris Jerdonek added the comment: Here is a type of test case that I think should be considered for addition (to confirm that the code doesn't double-convert strings in at least one case). Maybe there is already a test case like this: class MyString(str): pass def convert(s): return MySt

[issue15918] subprocess.Popen reads errpipe_read incorrectly, can result in short read

2012-09-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: fyi - i suspect Python 3.2 and the backport of that to 2.x http://code.google.com/p/python-subprocess32/ do not have this issue. but you didn't give enough information in the bug report for me to know which pipe and which read call you're talking about to re

[issue14617] confusing docs with regard to __hash__

2012-09-11 Thread R. David Murray
R. David Murray added the comment: I rewrote the section a bit differently than you did in your patch...if you think my changes are not an improvement please let me know. -- nosy: +r.david.murray resolution: -> fixed stage: -> committed/rejected status: open -> closed ___

[issue14617] confusing docs with regard to __hash__

2012-09-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 957e1eef3296 by R David Murray in branch '3.2': #14617: clarify discussion of interrelationship of __eq__ and __hash__. http://hg.python.org/cpython/rev/957e1eef3296 New changeset c8d60d0c736b by R David Murray in branch 'default': Merge #14617: cla

[issue15914] multiprocessing.SyncManager connection hang

2012-09-11 Thread Richard Oudkerk
Richard Oudkerk added the comment: It looks like the problem was caused be the fix for http://bugs.python.org/issue9573 I think the usage this was intended to enable is evil since one of the forked processes should always be terminated with os._exit(). --

[issue15906] argparse add_argument() confusing behavior when type=str, default=

2012-09-11 Thread Chris Jerdonek
Chris Jerdonek added the comment: Along the lines of my previous comment, I notice that the following str type check was removed in the patch for issue 12776: -if isinstance(action.default, str): -default = self._get_value(action, default) -

[issue14617] confusing docs with regard to __hash__

2012-09-11 Thread Ethan Furman
Ethan Furman added the comment: RC2 has just been released. Any chance of this getting in to the final release? Nobobdy has pointed out any problems with the last update... -- ___ Python tracker

[issue15906] argparse add_argument() confusing behavior when type=str, default=

2012-09-11 Thread Chris Jerdonek
Chris Jerdonek added the comment: I'm not sure of all the implications of this, but it seems like this is a relevant piece of information from the docs: "type= can take any callable that takes a single string argument and returns the converted value:" (from http://docs.python.org/dev/library/

[issue15921] select module uses uninitialized value "tv.tv_usec"

2012-09-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6cdc72f4d82c by Benjamin Peterson in branch 'default': remove useless and defined initialization (closes #15921) http://hg.python.org/cpython/rev/6cdc72f4d82c -- nosy: +python-dev resolution: -> fixed stage: patch review -> committed/reject

[issue15914] multiprocessing.SyncManager connection hang

2012-09-11 Thread Richard Oudkerk
Richard Oudkerk added the comment: Python 3.2 has extra code in _PyImport_ReInitLock() which means that when a fork happens as a side effect of an import, the main thread of the forked process owns the import lock. Therefore other threads in the forked process cannot import anything. _PyImpo

[issue15896] Sporadic EINVAL in nonblocking pipe os.read when forked child fails on Mac OS

2012-09-11 Thread Vitaly
Changes by Vitaly : -- versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue15917] hg hook to detect unmerged changesets

2012-09-11 Thread Ezio Melotti
Ezio Melotti added the comment: > I might be wrong, but the logic in your hook looks a bit complicated. This might be true. The logic I followed is that once a cset is merged, it becomes a parent of another cset (either in the same branch or in the "next" one). So, if the cset is in 3.x and

[issue15917] hg hook to detect unmerged changesets

2012-09-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: I might be wrong, but the logic in your hook looks a bit complicated. Wouldn't it be simpler to find all topological heads in the new csets (a topological head is a cset without any child), and check that none of them is on a 3.* branch? Finding topological h

[issue15918] subprocess.Popen reads errpipe_read incorrectly, can result in short read

2012-09-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: 2.6 doesn't receive bug fixes anymore. Can you at least test with a recent 2.7? -- nosy: +gregory.p.smith, pitrou ___ Python tracker ___ ___

[issue15918] subprocess.Popen reads errpipe_read incorrectly, can result in short read

2012-09-11 Thread Vitaly
Vitaly added the comment: Also, attempting to read a 1MB chunk of data in a single os.read call forces os.read() to unnecessarily allocate a huge !MB buffer (even if only for a short lifetime). Using something like 4KB read calls in a loop is more practical (and looping is necessary anyway).

[issue15896] Sporadic EINVAL in nonblocking pipe os.read when forked child fails on Mac OS

2012-09-11 Thread Vitaly
Vitaly added the comment: > What's wrong with working around this bug by reading a smaller amount? How > much data is there supposed to be? This makes sense for working around the issue. Even in the blocking-read case, such as in subprocess.Popen, attempting to read a 1MB chunk of data in a s

[issue15914] multiprocessing.SyncManager connection hang

2012-09-11 Thread Richard Oudkerk
Changes by Richard Oudkerk : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue15914] multiprocessing.SyncManager connection hang

2012-09-11 Thread Richard Oudkerk
Richard Oudkerk added the comment: Here is a reproduction without using multiprocessing: create.py: import threading, os def foo(): print("Trying import") import sys print("Import successful") pid = os.fork() if pid == 0: try: t = threading.Thread(target=foo) t

[issue15914] multiprocessing.SyncManager connection hang

2012-09-11 Thread Richard Oudkerk
Richard Oudkerk added the comment: I get the same hang on Linux with Python 3.2. For Windows the documentation does warn against starting a process as a side effect of importing a process. There is no explicit warning for Unix, but I would still consider it bad form to do such things as a sid

[issue15906] argparse add_argument() confusing behavior when type=str, default=

2012-09-11 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Okay, this bug is clearly caused by the patch applied for issue 12776. Here's the patch set url: http://hg.python.org/cpython/rev/74f6d87cd471 Now, if you look at this, I think this changes the semantics for non-string default with a type converter, but the

[issue13773] Support sqlite3 uri filenames

2012-09-11 Thread Éric Araujo
Éric Araujo added the comment: 2.7 and 3.2 are stable versions which only get bug fixes. 3.3 is in release candidate stage, so this new feature can only go into 3.4. See the devguide and PEPs for more info about the process we follow. -- versions: +Python 3.4 -Python 3.3 ___

[issue15860] Use TestCase assertion methods in unittest.mock.assert* to make them easier to read

2012-09-11 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo versions: -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue15912] Intermittent import failure

2012-09-11 Thread Eric Snow
Eric Snow added the comment: The relationship between invalidate_caches() and sys.modules is definitely tenuous. However, my rationale was that people would look for an explanation on why modifying sys.modules was not working as expected. The sys.modules doc entry was the one that seemed to

[issue15917] hg hook to detect unmerged changesets

2012-09-11 Thread Ezio Melotti
Ezio Melotti added the comment: Attached a set up script to reproduce a test environment for the hook. Create an empty dir and run ``sh setup.sh`` in it. This will: 1) create a 'c1' subdir which is a cpython-like repo with the branches 2.7, 3.1, 3.2, default; 2) download and set up the hoo

[issue11943] Add TLS-SRP (RFC 5054) support to ssl, _ssl, http, and urllib

2012-09-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le mardi 11 septembre 2012 à 13:52 +, Jesús Cea Avión a écrit : > No reason for not starting now. There's no point in being pushy, though. If you want to "start", the best thing is to work on the patch and update it. --

[issue11943] Add TLS-SRP (RFC 5054) support to ssl, _ssl, http, and urllib

2012-09-11 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Yes, 3.4. I would hate to rush, in two years, because this issue was neglected during 18 months :) No reason for not starting now. -- ___ Python tracker ___

[issue15895] PyRun_SimpleFileExFlags() can leak a FILE pointer

2012-09-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset c3539eb02470 by Christian Heimes in branch 'default': Issue #15895: my analysis was slightly off. The FILE pointer is only leaked when set_main_loader() fails for a pyc file with closeit=0. In the success case run_pyc_file() does its own cleanup of

[issue15922] make howto/urllib2.rst doctests pass

2012-09-11 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue15922] make howto/urllib2.rst doctests pass

2012-09-11 Thread Chris Jerdonek
New submission from Chris Jerdonek: This issue is to make the doctests in howto/urllib2.rst pass using vanilla doctest. Patch attached. -- assignee: docs@python components: Documentation files: issue-doctest-howto-urllib-1.patch keywords: easy, patch messages: 170305 nosy: cjerdonek, d

[issue15860] Use TestCase assertion methods in unittest.mock.assert* to make them easier to read

2012-09-11 Thread Michael Foord
Michael Foord added the comment: The only issue is that the testcase would have to be propagated to child mocks too. -- ___ Python tracker ___ __

[issue15860] Use TestCase assertion methods in unittest.mock.assert* to make them easier to read

2012-09-11 Thread Michael Foord
Michael Foord added the comment: Yep, interesting idea. In Python 3 you can't import unittest.mock without importing unittest, so there could even be a "default testcase" to fall back on. For the external release I'd rather not have unittest as a dependency, but allowing a testcase to be provi

[issue15719] Sort dict items in urlencode()

2012-09-11 Thread Chris Jerdonek
Chris Jerdonek added the comment: As an aside, I noticed a doctest affected by this in the urllib HOWTO: >>> url_values = urllib.parse.urlencode(data) >>> print(url_values) name=Somebody+Here&language=Python&location=Northampton http://docs.python.org/dev/howto/urllib2.html#data (search for th

[issue15911] can't step through _frozen_importlib/importlib._bootstrap using gdb

2012-09-11 Thread Brett Cannon
Brett Cannon added the comment: I'm going to guess this is a shortcoming of pdb when it comes to frozen modules as I can get to the source using inspect (which pdb leans on):: >>> len(inspect.findsource(_frozen_importlib)[0]) 1761 >>> len(inspect.findsource(importlib._bootstrap)[0]) 1761 Which

[issue15912] Intermittent import failure

2012-09-11 Thread Brett Cannon
Brett Cannon added the comment: I don't think sys.modules is the right place about a warning regarding importlib.invalidate_caches(); this has nothing to do with sys.modules but instead import itself. Probably something more along those lines would be more fitting. This is also mentioned the

[issue15921] select module uses uninitialized value "tv.tv_usec"

2012-09-11 Thread Christian Heimes
New submission from Christian Heimes: Starting with Python 3.3 the select module access the uninitialized tv.tv_usec member of a timeval struct. I don't see the point of initializing the local variable long tv_usec from tv.tv_usec. The comment above the code states that long tv_usec is require

[issue15895] PyRun_SimpleFileExFlags() can leak a FILE pointer

2012-09-11 Thread Christian Heimes
Christian Heimes added the comment: The bug was a 3.3 regression, possibly introduced with the merge of importlib. I forgot to tick the 3,3regression keyword. I've applied the fix. I'm leaving this ticket open and assigned to Georg for 3.3.0. -- keywords: +3.3regression resolution: -

[issue13773] Support sqlite3 uri filenames

2012-09-11 Thread André Anjos
André Anjos added the comment: A question concerning this patch: is this going to be applied only to 3.3 or to 2.7 as well? Python-2.7.x also does not have this functionality which would be interesting to get. -- nosy: +anjos ___ Python tracker

[issue15895] PyRun_SimpleFileExFlags() can leak a FILE pointer

2012-09-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4754c4a710e6 by Christian Heimes in branch 'default': Issue #15895: Fix FILE pointer leak in PyRun_SimpleFileExFlags() when filename points to a pyc/pyo file and closeit is false. http://hg.python.org/cpython/rev/4754c4a710e6 -- nosy: +pyth

[issue15920] make howto/regex.rst doctests pass

2012-09-11 Thread Chris Jerdonek
New submission from Chris Jerdonek: This issue is to make the doctests in howto/regex.rst pass using vanilla doctest. After this issue, 10 out of the 17 HOWTO's will pass with vanilla doctest. Patch attached. -- assignee: docs@python components: Documentation files: issue-doctest-how

[issue15900] Memory leak in PyUnicode_TranslateCharmap()

2012-09-11 Thread Christian Heimes
Christian Heimes added the comment: Yes, 3.2 and earlier are not affected. Georg, I'm assigning the bug to you so you can decide if you like to cherry pick the fix. -- assignee: -> georg.brandl nosy: +georg.brandl resolution: -> fixed stage: -> committed/rejected __

[issue15900] Memory leak in PyUnicode_TranslateCharmap()

2012-09-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4f2811e5e462 by Christian Heimes in branch 'default': Issue #15900: Fixed reference leak in PyUnicode_TranslateCharmap() http://hg.python.org/cpython/rev/4f2811e5e462 -- nosy: +python-dev ___ Python track

[issue15917] hg hook to detect unmerged changesets

2012-09-11 Thread Christian Heimes
Christian Heimes added the comment: +1 for the feature -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing

[issue15533] subprocess.Popen(cwd) documentation

2012-09-11 Thread Chris Jerdonek
Chris Jerdonek added the comment: Andrew, do you think my changes to the patch are adequate given the response on python-dev to your question? -- ___ Python tracker ___

[issue15919] hg.python.org: log page entries don't always link to revision

2012-09-11 Thread Chris Jerdonek
New submission from Chris Jerdonek: On hg.python.org, it seems like the entries on the "log" page don't always link to the corresponding revision, for example some of the rows in-- http://hg.python.org/cpython/shortlog/1d9e89f6abec This seems to happen whenever the revision description begins w

[issue15917] hg hook to detect unmerged changesets

2012-09-11 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: We need something like this. I can not review, I am not familiar with mercurial hooks internals. -- ___ Python tracker ___ ___

[issue15917] hg hook to detect unmerged changesets

2012-09-11 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue15803] Incorrect docstring on ConfigParser.items()

2012-09-11 Thread Łukasz Langa
Changes by Łukasz Langa : -- assignee: -> lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue15888] ipaddress doctest examples have some errors

2012-09-11 Thread Chris Jerdonek
Chris Jerdonek added the comment: Adding Eli to this because he did some work on the HOWTO for this module in issue 14814. -- nosy: +eli.bendersky ___ Python tracker ___ ___

[issue15899] howto/unicode.rst doctest corrections

2012-09-11 Thread Chris Jerdonek
Chris Jerdonek added the comment: Thanks, Senthil! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue15899] howto/unicode.rst doctest corrections

2012-09-11 Thread Senthil Kumaran
Senthil Kumaran added the comment: I shall make the changes 2.7, keeping this open for that. -- ___ Python tracker ___ ___ Python-bugs

[issue15896] Sporadic EINVAL in nonblocking pipe os.read when forked child fails on Mac OS

2012-09-11 Thread Ronald Oussoren
Ronald Oussoren added the comment: What's wrong with working around this bug by reading a smaller amount? How much data is there supposed to be? BTW. URLs for reports in Apple's tracker are fairly useless as bugreports are private (only you and Apple's engineers can see the report). The bug nu

[issue15899] howto/unicode.rst doctest corrections

2012-09-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8a40bc71c072 by Senthil Kumaran in branch '3.2': Fix issue #15899: Make the unicode.rst doctests pass. Patch by Chris Jerdonek. http://hg.python.org/cpython/rev/8a40bc71c072 New changeset 1d9e89f6abec by Senthil Kumaran in branch 'default': merge.

[issue15899] howto/unicode.rst doctest corrections

2012-09-11 Thread Senthil Kumaran
Senthil Kumaran added the comment: Thanks!. Verified the patch, it is fine and can be applied directly on 3.2 and 3.3 branch. Tested it as well. On 2.7, some changes would be required. -- nosy: +orsenthil ___ Python tracker

  1   2   >