[issue11380] Improve reporting of broken stdout pipe during interpreter shutdown

2014-04-18 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11380 ___ ___ Python-bugs-list

[issue21295] Python 3.4 gives wrong col_offset for Call nodes returned from ast.parse

2014-04-18 Thread Aivar Annamaa
New submission from Aivar Annamaa: Following program gives correct result in Python versions older than 3.4, but incorrect result in 3.4: -- import ast tree = ast.parse(sin(0.5)) first_stmt = tree.body[0] call = first_stmt.value print(col_offset of call expression:,

[issue21295] Python 3.4 gives wrong col_offset for Call nodes returned from ast.parse

2014-04-18 Thread Aivar Annamaa
Aivar Annamaa added the comment: ... also, lineno is wrong for both Call and call's func, when func and arguments are on different lines: import ast tree = ast.parse((sin\n(0.5))) first_stmt = tree.body[0] call = first_stmt.value print(col_offset of call expression:, call.col_offset)

[issue16806] col_offset is -1 and lineno is wrong for multiline string expressions

2014-04-18 Thread Aivar Annamaa
Changes by Aivar Annamaa aivar.anna...@gmail.com: -- nosy: +Aivar.Annamaa ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16806 ___ ___

[issue21296] smtplib Sends Commands in Lower-Case

2014-04-18 Thread Luiji Maryo
New submission from Luiji Maryo: It has occurred to me while testing an SMTP server with smtplib that it sends commands in lower-case. This is problematic because, although most SMTP servers seem to be case-insensitive, RFC 5321 (SMTP) doesn't seem to explicitly require this and there may be

[issue21297] skipinitialspace in the csv module only skips spaces, not whitespace in general

2014-04-18 Thread Daniel Andersson
New submission from Daniel Andersson: Regarding the `skipinitialspace` parameter to the different CSV reader dialects in the `csv` module, the official documentation asserts: When True, whitespace immediately following the delimiter is ignored. and the `help(csv)` style module

[issue21298] Cheese shop registration stopped working for me recently

2014-04-18 Thread Thomas Levine
New submission from Thomas Levine: This command used to work just fine for me. :: python setup.py register Now it doesn't. For example, :: $ python3 setup.py register /usr/lib/python3.3/distutils/dist.py:257: UserWarning: Unknown distribution option: 'install_requires'

[issue21299] Einladung in mein Netzwerk bei LinkedIn

2014-04-18 Thread Bernie Keimel
New submission from Bernie Keimel: LinkedIn Ich möchte Sie zu meinem beruflichen Netzwerk auf LinkedIn hinzufügen. - Bernard Keimel Bernard Keimel Business bei privat Berlin und Umgebung, Deutschland Bestätigen, dass Sie Bernard Keimel kennen:

[issue21299] Spam

2014-04-18 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- Removed message: http://bugs.python.org/msg216782 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21299 ___

[issue21299] Spam

2014-04-18 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: -Bernie.Keimel resolution: - not a bug stage: - committed/rejected status: open - closed title: Einladung in mein Netzwerk bei LinkedIn - Spam ___ Python tracker rep...@bugs.python.org

[issue21300] Docs (incorrectly) suggest email.policy.default is the default policy

2014-04-18 Thread Merlijn van Deen
New submission from Merlijn van Deen: Which would make sense, but email.policy.Compat32 is *actually* the default policy. This patch adapts the documentation to reflect this. -- assignee: docs@python components: Documentation files: defaultpolicy.diff keywords: patch messages: 216783

[issue21290] imaplib.error when importing email package

2014-04-18 Thread Aaron Briel
Aaron Briel added the comment: I had a rouge compiled python file named email.pyc. My apologies. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21290 ___

[issue21292] C API in debug fails

2014-04-18 Thread Steve
Steve added the comment: It is under windows -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21292 ___ ___ Python-bugs-list mailing list

[issue21292] C API in debug fails

2014-04-18 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21292 ___ ___ Python-bugs-list mailing

[issue21292] C API in debug fails

2014-04-18 Thread Steve
Steve added the comment: A bit more info: - When building in debug you need the Pythonxx_d.lib. - This lib does not come with the normal install (or any other install). That part is fine and normal (you don't include debug libs with install). - To get that lib you have to build Python in debug

[issue21277] don't try to link _ctypes with a ffi_convenience library

2014-04-18 Thread Thomas Wouters
Thomas Wouters added the comment: I don't understand the story with ffi_convenience here. Perhaps someone else on python-dev remembers what it was for and whether we need it for any platforms, still? -- ___ Python tracker rep...@bugs.python.org

[issue21289] make.bat not building documentation

2014-04-18 Thread Zachary Ware
Zachary Ware added the comment: Your more recent patch looks like it's missing the changes to Doc/make.bat, which I assume was unintentional :). Also, thinking about it again, it would be good to use a %SPHINXBUILD% variable rather than hard-coding sphinx-build into the script, the same way

[issue13475] Add '-p'/'--path0' command line option to override sys.path[0] initialisation

2014-04-18 Thread Matthew Woodcraft
Matthew Woodcraft added the comment: For the record: the '-I' option (#16499) in Python 3.4 disables sys.path[0] initialisation (among other things). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13475

[issue21068] Make ssl.PROTOCOL_* an enum

2014-04-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset f776771ab0ee by Antoine Pitrou in branch 'default': Issue #21068: The ssl.PROTOCOL* constants are now enum members. http://hg.python.org/cpython/rev/f776771ab0ee -- nosy: +python-dev ___ Python tracker

[issue21068] Make ssl.PROTOCOL_* an enum

2014-04-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, since this is a low-risk change I've made it anyway. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue20421] expose SSL socket protocol version

2014-04-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, it came to me that converting to one of the PROTOCOL* constants can fail in the following case: Python is linked with an OpenSSL that supports a more recent protocol version than the ssl module is aware of. SSL_get_version() can then return a protocol

[issue20421] expose SSL socket protocol version

2014-04-18 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Debatable. Maybe I'm +0.1 for returning the plain string. IMO when it comes to stdlib modules, enums are only really useful for converting integer constants. -- ___ Python tracker rep...@bugs.python.org

[issue21207] urandom persistent fd - not re-openned after fd close

2014-04-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a proposed patch (with tests). -- keywords: +patch stage: - patch review Added file: http://bugs.python.org/file34965/urandom_fd_reopen.patch ___ Python tracker rep...@bugs.python.org

[issue21207] urandom persistent fd - not re-openned after fd close

2014-04-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hmm, the patch doesn't release the GIL around the fstat() calls, I wonder if that's necessary. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21207 ___

[issue21301] pathlib missing Path.expandvars(env=os.environ)

2014-04-18 Thread Alain Mellan
New submission from Alain Mellan: A lot of times paths are manipulated with environment variables that may even be expanded multiple times in a loop. For example, I have a path defined as $RUNDIR/logfile.txt and expanding the path for a bunch of different RUNDIRs in a loop. By default, it

[issue21301] pathlib missing Path.expandvars(env=os.environ)

2014-04-18 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +pitrou versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21301 ___ ___

[issue21204] multiprocessing example does not work on Windows

2014-04-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: When quoting from the docs, it is helpful to give a link. https://docs.python.org/2/library/multiprocessing.html#examples That also identifies the version. I verified that the example fails on my 2.7.6 Windows 7 with PicklingError: Can't pickle type

[issue19776] Provide expanduser() on Path objects

2014-04-18 Thread Fletcher Tomalty
Fletcher Tomalty added the comment: +1 It's very annoying to have to import expand user from os.path, when pathlib should be a full replacement for that module. Thanks to those working on this! -- nosy: +fletom ___ Python tracker

[issue21302] time.sleep (floatsleep()) should use clock_nanosleep() on Linux

2014-04-18 Thread Shankar Unni
New submission from Shankar Unni: I know that an earlier request to use nanosleep() has been rejected as wontfix, but I'm filing this one for a different reason. Today, timemodule.c:floatsleep() calls select() on platforms that support it. On Linux, select() with a timeout has an unfortunate

[issue21295] Python 3.4 gives wrong col_offset for Call nodes returned from ast.parse

2014-04-18 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- keywords: +3.4regression nosy: +flox type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21295 ___

[issue21303] Python 2.7 Spinbox Format Behaves Differently On Windows Versus Linux

2014-04-18 Thread Michael Boldischar
New submission from Michael Boldischar: Here is my code: self._image_set_number = Spinbox(self._ramp_group, from_=0, to=999, command=self.reset_rep, format=%03.0f) self._repetition_change = Spinbox(self._ramp_group, from_=00, to=99, format=%02.0f) On Linux, the spinners behave as

[issue21303] Python 2.7 Spinbox Format Behaves Differently On Windows Versus Linux

2014-04-18 Thread Michael Boldischar
Changes by Michael Boldischar bold0...@umn.edu: -- components: +Tkinter versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21303 ___

[issue21303] Python 2.7 Spinbox Format Behaves Differently On Windows Versus Linux

2014-04-18 Thread Michael Boldischar
Changes by Michael Boldischar bold0...@umn.edu: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21303 ___ ___ Python-bugs-list

[issue21303] Python 2.7 Spinbox Format Behaves Differently On Windows Versus Linux

2014-04-18 Thread Zachary Ware
Zachary Ware added the comment: Can you tell us some version numbers, please? Specifically, which micro version of Python 2.7 (e.g. 2.7.6) on both platforms, and what version of Tcl on Linux? Tcl on Windows should be version 8.5.2; if it's different, please tell us that too. Here's the

[issue21289] make.bat not building documentation

2014-04-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 02fec733f760 by Zachary Ware in branch '3.4': Issue #21289: Fix documentation building on Windows using Doc/make.bat. http://hg.python.org/cpython/rev/02fec733f760 -- nosy: +python-dev ___ Python tracker

[issue21289] make.bat not building documentation

2014-04-18 Thread Zachary Ware
Zachary Ware added the comment: Fixed, thanks for the patch! I went ahead and implemented my comments and committed it. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue21232] Use of '1' instead of 'True' as 'splitlines' argument in difflib documentation

2014-04-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: In 2.x, 1 is guaranteed to be true, in that sense that if 1: print 'true' is guaranteed to print 'true', while True is not necessarily true. True = 0 if True: print 'yes' So 2.x docs should not be changed. -- nosy: +terry.reedy versions: -Python

[issue21232] Use of '1' instead of 'True' as 'splitlines' argument in difflib documentation

2014-04-18 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- assignee: docs@python - terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21232 ___ ___

[issue21232] Use of '1' instead of 'True' as 'splitlines' argument in difflib documentation

2014-04-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 604b74f9a07d by Terry Jan Reedy in branch '3.4': Issue #21232: Replace .splitlines arg '1' with 'keepends=True'. http://hg.python.org/cpython/rev/604b74f9a07d New changeset c82dcad83438 by Terry Jan Reedy in branch 'default': Merge with 3.4. Closes

[issue21251] Standard library trace module crashes with exception

2014-04-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: Third party compiled C crashers are nasty. Two suggestions: 1. Reduce the failing example to the minimum needed to fail. If you bypass all the python code in maps.py and device.py and just 'import dmraid', do you still get a crash at that point. 2. What

[issue21289] make.bat not building documentation

2014-04-18 Thread Dave Sawyer
Dave Sawyer added the comment: Thanks Zach, I'm used to Git and this was my first foray with Hg and trying to rebase (I knew I shoulda branched before starting on another patch). BTW, the devs at PyCon Montreal said Zach's a good guy. One of maybe 4 Windows devs. -Dave --

[issue21232] Use of '1' instead of 'True' as 'splitlines' argument in difflib documentation

2014-04-18 Thread Ned Batchelder
Ned Batchelder added the comment: Although the OP was incorrect about 1 being guaranteed to be True, it is still better documentation to use True rather than 1 for a boolean argument. -- nosy: +nedbat ___ Python tracker rep...@bugs.python.org

[issue21253] Difflib.compare() crashes on mostly different sequences

2014-04-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: An obvious fix for the recursion limit error is to convert the .compare recursion to iteration with a stack (which I could try to do), but I don't know if the deep recursion is expected in this case, or is a bug. Tim? -- nosy: +terry.reedy, tim.peters

[issue16261] Fix bare excepts in various places in std lib

2014-04-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: See more discussion on duplicate #21259. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16261 ___ ___

[issue21259] replace except: pass by except Exception: pass

2014-04-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is definitely a duplicate of #16261 and should be closed at such. On that issue, in msg202448, I explained that #15313 is about except: in idlelib and idlelib must be patched separately for the reason Raymond repeated (point 2). The other reason (point

[issue11874] argparse assertion failure with brackets in metavars

2014-04-18 Thread paul j3
paul j3 added the comment: Another example of code hitting this AssertionError. Here the problem was a space in the option argument, '--out '. http://stackoverflow.com/questions/23159845/python-argparse-assertionerror 'parser.add_argument('-o', '--out ', help='b', required = True)' That

[issue21261] Teach IDLE to Autocomplete dictionary keys

2014-04-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: Looks sensible. -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21261 ___ ___

[issue21302] time.sleep (floatsleep()) should use clock_nanosleep() on Linux

2014-04-18 Thread Yury Selivanov
Changes by Yury Selivanov yselivanov...@gmail.com: -- nosy: +haypo, yselivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21302 ___ ___

[issue21279] str.translate documentation incomplete

2014-04-18 Thread Kinga Farkas
Kinga Farkas added the comment: I have created a patch based on Martin Panter's suggestions. Please let me know if it is off or there should be additional changes included. -- keywords: +patch nosy: +lilbludot Added file: http://bugs.python.org/file34966/issue21279.patch

[issue21302] time.sleep (floatsleep()) should use clock_nanosleep() on Linux

2014-04-18 Thread Shankar Unni
Shankar Unni added the comment: I'm working on a patch, but I noticed a similar issue in Condition.wait(), which also keeps re-evaluating the remaining sleep time based on the current kernel clock, with similar effects. I'll try to address both issues, or we could open a separate bug for the

[issue21253] Difflib.compare() crashes on mostly different sequences

2014-04-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: It appears to devolve into linear recursion in this case, one per each item in one of the sequences being searched for a match, so even using a stack seems wrong as it'd still be linear (though it would prevent the recursion depth problem). The mutual

[issue19771] runpy should check ImportError.name before wrapping it

2014-04-18 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19771 ___ ___ Python-bugs-list

[issue21279] str.translate documentation incomplete

2014-04-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: The docstring is more accurate. str.translate.__doc__ 'S.translate(table) - str\n\nReturn a copy of the string S, where all characters have been mapped\nthrough the given translation table, which must be a mapping of\nUnicode ordinals to Unicode ordinals,

[issue21279] str.translate documentation incomplete

2014-04-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: I see that we mostly added the same info. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21279 ___ ___

[issue21284] IDLE reformat tests fail in presence of non-default FormatParagraph setting

2014-04-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: I noticed the same while working on #21139 and posted there a patch, 21139-34-fpe.diff, that adds a limit parameter to .format_paragraph_event. Test could then specify a width for each test without touching the user configuration. Different tests could use

[issue21295] Python 3.4 gives wrong col_offset for Call nodes returned from ast.parse

2014-04-18 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +benjamin.peterson, brett.cannon, georg.brandl, ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21295 ___

[issue21297] csv.skipinitialspace only skips spaces, not whitespace in general

2014-04-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: Do I understand correctly that only one space is ignored? -- nosy: +terry.reedy stage: - needs patch title: skipinitialspace in the csv module only skips spaces, not whitespace in general - csv.skipinitialspace only skips spaces, not whitespace in

[issue21295] Python 3.4 gives wrong col_offset for Call nodes returned from ast.parse

2014-04-18 Thread Benjamin Peterson
Benjamin Peterson added the comment: I suspect this was an intentional result of #16795. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21295 ___

[issue6305] islice doesn't accept large stop values

2014-04-18 Thread Alok Singhal
Alok Singhal added the comment: Here's a proposed patch. I need more tests for large values, but all the tests I could think of take a long time to get to a long value. I added some tests that don't take much time but work correctly for long values. If anyone has any ideas for some other

[issue19829] _pyio.BufferedReader and _pyio.TextIOWrapper destructor don't emit ResourceWarning if the file is not closed

2014-04-18 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19829 ___ ___ Python-bugs-list

[issue21304] Backport hashlib.pbkdf2_hmac to Python 2.7

2014-04-18 Thread Alex Gaynor
New submission from Alex Gaynor: Pursuant to PEP466, this is a backport of Python 3.4's hashlib.pbkdf2_hmac. Of note in this patch: * None of the utilities for testing both a python and a C implementation simultaneously were present, so this only tests whichever implementation is available.

[issue21304] Backport hashlib.pbkdf2_hmac to Python 2.7

2014-04-18 Thread Alex Gaynor
Changes by Alex Gaynor alex.gay...@gmail.com: -- nosy: +christian.heimes, dstufft, ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21304 ___

[issue21305] PEP 466: update os.urandom

2014-04-18 Thread Nick Coghlan
New submission from Nick Coghlan: Tracker issue for the os.urandom persistent file descriptor backport to 2.7 described in PEP 466. -- messages: 216824 nosy: alex, benjamin.peterson, christian.heimes, dstufft, giampaolo.rodola, janssen, ncoghlan, pitrou priority: normal severity:

[issue21232] Use of '1' instead of 'True' as 'splitlines' argument in difflib documentation

2014-04-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe that there have been discussions on this point and my memory is to leave 1 alone in 2.x docs. I could be mistaken though. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21232

[issue21306] PEP 466: backport hmac.compare_digest

2014-04-18 Thread Nick Coghlan
New submission from Nick Coghlan: Tracker issue for the hmac.compare_digest backport to 2.7 described in PEP 466. -- messages: 216826 nosy: alex, benjamin.peterson, christian.heimes, dstufft, giampaolo.rodola, janssen, ncoghlan, pitrou priority: normal severity: normal stage: needs

[issue21307] PEP 466: backport hashlib changes

2014-04-18 Thread Nick Coghlan
New submission from Nick Coghlan: Tracker issue for the hashlib PBKDF2 and algorithm availability details backport to 2.7 described in PEP 466. -- messages: 216827 nosy: alex, benjamin.peterson, christian.heimes, dstufft, giampaolo.rodola, janssen, ncoghlan, pitrou priority: normal

[issue21307] PEP 466: backport hashlib changes

2014-04-18 Thread Alex Gaynor
Alex Gaynor added the comment: issue21304 has the implementation of the PBKDF2 work. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21307 ___

[issue21308] PEP 466: backport ssl changes

2014-04-18 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- nosy: alex, benjamin.peterson, christian.heimes, dstufft, giampaolo.rodola, janssen, ncoghlan, pitrou priority: normal severity: normal stage: needs patch status: open title: PEP 466: backport ssl changes type: enhancement versions: Python

[issue21304] Backport hashlib.pbkdf2_hmac to Python 2.7

2014-04-18 Thread Alex Gaynor
Changes by Alex Gaynor alex.gay...@gmail.com: -- nosy: +benjamin.peterson, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21304 ___ ___

[issue21307] PEP 466: backport hashlib changes

2014-04-18 Thread Benjamin Peterson
Benjamin Peterson added the comment: Let's dup this then. -- resolution: - duplicate status: open - closed superseder: - Backport hashlib.pbkdf2_hmac to Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21307

[issue21253] Difflib.compare() crashes on mostly different sequences

2014-04-18 Thread Tim Peters
Tim Peters added the comment: Comparison can certainly trigger a recursion error if the sequences contain no (or few) matching non-junk elements, but contain many almost matching elements. If the sequences have lengths M and N, recursion can go as deep as 2*min(M, N) then. Now in the test

[issue21307] PEP 466: backport hashlib changes

2014-04-18 Thread Benjamin Peterson
Benjamin Peterson added the comment: Rather #21304 should be a dep... -- dependencies: +Backport hashlib.pbkdf2_hmac to Python 2.7 resolution: duplicate - status: closed - open superseder: Backport hashlib.pbkdf2_hmac to Python 2.7 - ___ Python

[issue20351] Add doc examples for DictReader and DictWriter

2014-04-18 Thread Charles-Axel Dein
Charles-Axel Dein added the comment: New version of the patch. -- Added file: http://bugs.python.org/file34969/add_csvdict_examples.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20351

[issue21253] unittest assertSequenceEqual can lead to Difflib.compare() crashing on mostly different sequences

2014-04-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: that seems reasonable. unittest's assertSequenceEqual is using this to attempt to display a useful error message as to what the delta was; it should try harder to avoid difflib corner cases. At the very least, unittest should recover from a difflib failure

[issue21309] Confusing see also for generic C-level __init__ methods in help output

2014-04-18 Thread R. David Murray
New submission from R. David Murray: help(ImportError.__init__) Help on wrapper_descriptor: __init__(self, /, *args, **kwargs) Initialize self. See help(type(self)) for accurate signature. The above also appears (without the wrapper_descriptor bit) in the help output for

[issue21308] PEP 466: backport ssl changes

2014-04-18 Thread Josh Rosenberg
Changes by Josh Rosenberg shadowranger+pyt...@gmail.com: -- nosy: +josh.rosenberg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21308 ___ ___

[issue21305] PEP 466: update os.urandom

2014-04-18 Thread Josh Rosenberg
Changes by Josh Rosenberg shadowranger+pyt...@gmail.com: -- nosy: +josh.rosenberg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21305 ___ ___

[issue21230] imghdr does not accept adobe photoshop mime type

2014-04-18 Thread R. David Murray
R. David Murray added the comment: Well, it's 'expected' behavior in the sense that we don't know about 'adobe' format. Is there some better way to detect jpeg format than to look for particular format identifiers in a specific byte position? -- type: enhancement - behavior versions:

[issue21304] PEP 446: Backport hashlib.pbkdf2_hmac to Python 2.7

2014-04-18 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- title: Backport hashlib.pbkdf2_hmac to Python 2.7 - PEP 446: Backport hashlib.pbkdf2_hmac to Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21304

[issue21304] PEP 466: Backport hashlib.pbkdf2_hmac to Python 2.7

2014-04-18 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- title: PEP 446: Backport hashlib.pbkdf2_hmac to Python 2.7 - PEP 466: Backport hashlib.pbkdf2_hmac to Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21304

[issue21310] ResourceWarning when open() fails with io.UnsupportedOperation: File or stream is not seekable

2014-04-18 Thread Martin Panter
New submission from Martin Panter: f = open(/dev/stdout, w+b) # Or any non-seekable file, pipe, etc __main__:1: ResourceWarning: unclosed file _io.FileIO name='/dev/stdout' mode='rb+' Traceback (most recent call last): File stdin, line 1, in module io.UnsupportedOperation: File or stream is

[issue18116] getpass.unix_getpass() always fallback to sys.stdin

2014-04-18 Thread Martin Panter
Martin Panter added the comment: I opened Issue 21310 about a ResourceWarning from open() which I suspect is the same as what was originally described here. -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org

[issue21211] pkgutil.find_loader() raises ImportError instead of returning None

2014-04-18 Thread Eric Snow
Eric Snow added the comment: On second thought, all modules (except __main__) must have both __spec__ and __loader__ set to their correct respective objects. So the current behavior is correct in that it exposes poorly formed modules. -- resolution: - not a bug stage: test needed -

[issue21304] PEP 466: Backport hashlib.pbkdf2_hmac to Python 2.7

2014-04-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: See also http://bugs.python.org/issue21288 to consider one fix/oversite/addition to the existing API as part of this process. (discuss that there) by default: use the exact same API as 3.4 if it is suitable for PEP 466 and 2.7.7's needs. the above issue is

[issue21307] PEP 466: backport hashlib changes

2014-04-18 Thread Gregory P. Smith
Changes by Gregory P. Smith g...@krypto.org: -- nosy: +gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21307 ___ ___

[issue21308] PEP 466: backport ssl changes

2014-04-18 Thread Gregory P. Smith
Changes by Gregory P. Smith g...@krypto.org: -- nosy: +gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21308 ___ ___

[issue21304] PEP 466: Backport hashlib.pbkdf2_hmac to Python 2.7

2014-04-18 Thread Alex Gaynor
Alex Gaynor added the comment: Yup, I've got my eyes on it, if anything lands there I'll include it in this in the 2.7 code, whether it's before or after this patch lands :-) -- ___ Python tracker rep...@bugs.python.org

[issue19662] smtpd.py should not decode utf-8

2014-04-18 Thread Maciej Szulik
Maciej Szulik added the comment: Sreepriya, are you still working on this issue? If no I'll be happy to take it over, is yes start with fixing following things: - start with test - this is the most important to have each feautre tested - decode_data, as David mentioned, needs to have default

[issue11748] test_ftplib failure in test for source_address

2014-04-18 Thread Jessica McKellar
Jessica McKellar added the comment: Antoine, thanks for the patch, and Giampaolo, thanks for the ping. I confirmed that http://hg.python.org/cpython/rev/8a2d848244a2 does address the issue: Before the patch, if another process bound to the port selected for the test before the test ran, the

[issue21287] Better support for AF_PACKET on opensolaris (illumos)

2014-04-18 Thread Igor Pashev
Igor Pashev added the comment: Related to http://bugs.python.org/issue8852 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21287 ___ ___

[issue21287] Better support for AF_PACKET on opensolaris (illumos)

2014-04-18 Thread Igor Pashev
Changes by Igor Pashev pashev.i...@gmail.com: Removed file: http://bugs.python.org/file34952/dyson-socketmodule-ifindex.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21287 ___