[issue19915] int.bit_at(n) - Accessing a single bit in O(1)

2013-12-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > My want has been for a bitarray (parallel to the existing bytearray type). Or bitview (parallel to the existing memoryview type). It should work as with int's and bytes object's (immutable), so with bytearray (mutable). -- nosy: +serhiy.storchaka

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2013-12-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And what about an issue mentioned in msg153659? -- nosy: +serhiy.storchaka ___ Python tracker ___ _

[issue19916] urllib2 fails on https,SSL broken.

2013-12-06 Thread soumen ganguly
New submission from soumen ganguly: >>import urllib2 >>urllib2.urlopen('https://example.com') Traceback (most recent call last): File "", line 1, in File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen return _opener.open(url, data, timeout) File "/usr/lib/python2.7/urllib2.py",

[issue19876] selectors (and asyncio?): document behaviour on closed files/sockets

2013-12-06 Thread Guido van Rossum
Guido van Rossum added the comment: New patch. Please review. The error handling is a bit complicated but I like to be careful in which errors I catch. -- Added file: http://bugs.python.org/file33020/unregister5.diff ___ Python tracker

[issue19914] help([object]) returns "Not enough memory." on standard Python types, object and object functions

2013-12-06 Thread R. David Murray
R. David Murray added the comment: This works in general, so there must be something odd going on with your system. -- nosy: +r.david.murray ___ Python tracker ___ __

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2013-12-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: How about updating the documentation as well? -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2013-12-06 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: I cleaned up the patch. I will submit it tonight if there is no major objections. -- Added file: http://bugs.python.org/file33019/pickle_python2_str_as_bytes.diff ___ Python tracker

[issue19876] selectors (and asyncio?): document behaviour on closed files/sockets

2013-12-06 Thread Guido van Rossum
Guido van Rossum added the comment: PollSelector doesn't seem to have this behavior. -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue19876] selectors (and asyncio?): document behaviour on closed files/sockets

2013-12-06 Thread Guido van Rossum
Guido van Rossum added the comment: Well, I take it back. If you close the FD and then reuse it, you get ENOENT, which is not caught. So we still need the try/except OSError. I am going to experiment with a PollSelector as well. -- ___ Python track

[issue19876] selectors (and asyncio?): document behaviour on closed files/sockets

2013-12-06 Thread Guido van Rossum
Guido van Rossum added the comment: So I think this is why epoll doesn't raise OSError: http://hg.python.org/cpython/file/44dacafdd48a/Modules/selectmodule.c#l1335 The Python wrapper explicitly checks for EBADF and turns this into a non-error result. -- __

[issue19904] Add 128-bit integer support to struct

2013-12-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: > any form of integer SIMD operation (vectors) Wouldn't these be appropriately represented by a tuple of integers (or floats)? For example, a SIMD vector of four 32-bit integers could be represented as four Python ints. Or would that be "terrible for performan

[issue19915] int.bit_at(n) - Accessing a single bit in O(1)

2013-12-06 Thread HCT
HCT added the comment: or just allow slicing of int. otherwise function call overhead may defeat the speed up of such function. -- nosy: +hct ___ Python tracker ___

[issue19915] int.bit_at(n) - Accessing a single bit in O(1)

2013-12-06 Thread Tim Peters
Tim Peters added the comment: Raymond, I expect they have overlapping - but not identical - audiences. There's seem to be a quite capable bitarray extension here: https://pypi.python.org/pypi/bitarray/ -- ___ Python tracker

[issue19910] Document that compile() source may be bytes

2013-12-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 500cc1acc42f by Benjamin Peterson in branch '3.3': document that compile() can take bytes (closes #19910) http://hg.python.org/cpython/rev/500cc1acc42f New changeset 44dacafdd48a by Benjamin Peterson in branch 'default': merge 3.3 (#19910) http://hg

[issue19915] int.bit_at(n) - Accessing a single bit in O(1)

2013-12-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I've often wanted this too! My want has been for a bitarray (parallel to the existing bytearray type). -- nosy: +rhettinger ___ Python tracker ___

[issue19910] Document that compile() source may be bytes

2013-12-06 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue19888] Three argument type() super call sets __name__ but not __qualname__

2013-12-06 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Oops, correct! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue19915] int.bit_at(n) - Accessing a single bit in O(1)

2013-12-06 Thread Tim Peters
Tim Peters added the comment: I'd rather see `i.bits_at(pos, width=1)`, to act like (i >> pos) & ((1 << width) - 1) That is, extract the `width` consecutive bits at positions 2**pos through 2**(pos + width - 1) inclusive. Because Python ints maintain the illusion of having an infinite number

[issue19910] Document that compile() source may be bytes

2013-12-06 Thread Éric Araujo
Éric Araujo added the comment: Thanks! Patch looks good to me. -- keywords: +needs review stage: needs patch -> patch review ___ Python tracker ___ _

[issue19910] Document that compile() source may be bytes

2013-12-06 Thread Fotis Koutoulakis
Fotis Koutoulakis added the comment: There we go. I have changed the references to compile(), both in the docstring, and the documentation so that it states clearly that a bytes object is also acceptable as the "source" argument. I also fixed the docstring to mention explicitly that it can als

[issue19907] gettext - Non ascii chars in header

2013-12-06 Thread Michael Müller
Michael Müller added the comment: Used encoding is utf-8. Testfile I used added to this comment. Second about the PO-Revision-Date: It should be human readable. It's unimportant for the program itself - it's used for the translator of the xxx.po file. Normally the whole header could be removed

[issue19915] int.bit_at(n) - Accessing a single bit in O(1)

2013-12-06 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +mark.dickinson, tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19915] int.bit_at(n) - Accessing a single bit in O(1)

2013-12-06 Thread anon
New submission from anon: For many numeric algorithms it's useful to be able to read individual bits at a location in an integer. Currently there is no efficient way to do this. The following function is the closest to this: def bit_at(i, n): return (i>>n)&1 However in computing the intermedi

[issue19887] Path.resolve() ENAMETOOLONG on pathologic symlinks

2013-12-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: I would prefer if you made the test simpler. The current setup makes it difficult to understand and reproduce with the command line. -- ___ Python tracker

[issue19888] Three argument type() super call sets __name__ but not __qualname__

2013-12-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, then it's no security issue at all :) -- type: security -> behavior ___ Python tracker ___ ___ P

[issue19837] Wire protocol encoding for the JSON module

2013-12-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: To give another data point: returning a different type based on argument value is also what the open() functions does, more or less. (that said, I would slightly favour a separate dump_bytes(), myself) -- ___ Python

[issue19846] print() and write() are relying on sys.getfilesystemencoding() instead of sys.getdefaultencoding()

2013-12-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think the ship has sailed on this. We can't change our heuristic everyone someone finds a flaw in the current one. In the long term, all sensible UNIX systems should be configured for utf-8 filenames and contents, so it won't make a difference anymore.

[issue19846] print() and write() are relying on sys.getfilesystemencoding() instead of sys.getdefaultencoding()

2013-12-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Unless there is an actually possibility of changing this, which I doubt since it is a choice and not a bug, and changing might break things, this issue should be closed. -- nosy: +terry.reedy ___ Python tracker

[issue19837] Wire protocol encoding for the JSON module

2013-12-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: > Changing return type based on argument *values* is still a bad idea in general. I understand the proposal to be changing the return based on argument *presence*. It strikes me a a convenient abbreviation for making a separate encoding call and definitely (sp

[issue19900] improve pickle intro

2013-12-06 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue19900] improve pickle intro

2013-12-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 609325d187bf by Antoine Pitrou in branch '3.3': Issue #19900: improve generalities at the start of the pickle module doc http://hg.python.org/cpython/rev/609325d187bf New changeset 595b8f82569c by Antoine Pitrou in branch 'default': Issue #19900: im

[issue19914] help([object]) returns "Not enough memory." on standard Python types, object and object functions

2013-12-06 Thread HCT
New submission from HCT: not sure if this ever worked. first time using help([object]), but these should work according to the documentation. OS is Win7 SP1 32-bit. Python 3.3.3 (v3.3.3:c3896275c0f6, Nov 18 2013, 21:18:40) [MSC v.1600 32 bit (Intel)] on win32 Type "help", "copyright", "credits

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2013-12-06 Thread Merlijn van Deen
Merlijn van Deen added the comment: I have fixed most of the nits in this patch, except for: 1) the intermediate bytes object being created; inlining is an option, as storchaka suggested, but I'd rather have you decide what it should become before implementing it; 2) make clinic gives me ./

[issue19876] selectors (and asyncio?): document behaviour on closed files/sockets

2013-12-06 Thread Guido van Rossum
Guido van Rossum added the comment: OK, I'll make a new patch (maybe Monday). I want to be a little more careful with the exhaustive search, I think it should not be attempted if we see KeyError or AttributeError (those should not be dynamic). I tested for the epoll error on Ubuntu and didn't

[issue19876] selectors (and asyncio?): document behaviour on closed files/sockets

2013-12-06 Thread Charles-François Natali
Charles-François Natali added the comment: > Guido van Rossum added the comment: > > Here's an attempt at fixing the ValueError. > > I don't like the exhaustive search much, but the alternative is to maintain > an inverse dict. What do you think? I was going to suggest such an exhaustive searc

[issue19876] selectors (and asyncio?): document behaviour on closed files/sockets

2013-12-06 Thread Guido van Rossum
Guido van Rossum added the comment: Here's an attempt at fixing the ValueError. I don't like the exhaustive search much, but the alternative is to maintain an inverse dict. What do you think? -- Added file: http://bugs.python.org/file33015/unregister4.diff ___

[issue19876] selectors (and asyncio?): document behaviour on closed files/sockets

2013-12-06 Thread Guido van Rossum
Guido van Rossum added the comment: Here's a variant that documents the ValueError issue and omits the commented-out test. -- Added file: http://bugs.python.org/file33014/unregister3.diff ___ Python tracker __

[issue19913] TR/Crypt.XPACK.Gen-4 in easy_install.exe

2013-12-06 Thread Christian Heimes
Christian Heimes added the comment: 7 of 47 AV programs detect malicious software in PIPs easy_install.exe: Agnitum Packed/MPress 20131206 AhnLab-V3 Trojan/Win32.TesA 20131206 AntiVir TR/Crypt.XPACK.Gen4 20131206 BkavHW32.CDB.9028 20131206 McAfee-GW

[issue19876] selectors (and asyncio?): document behaviour on closed files/sockets

2013-12-06 Thread Guido van Rossum
Guido van Rossum added the comment: Here's a new patch. Note that it includes a commented-out test that demonstrates the failure if the socket object itself is closed (rather than just its FD). -- Added file: http://bugs.python.org/file33013/unregister2.diff _

[issue16373] Recursion error comparing set() and collections.Set instances

2013-12-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Done. -- versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue16373] Recursion error comparing set() and collections.Set instances

2013-12-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9bf55766d935 by Serhiy Storchaka in branch '2.7': Issue #16373: Prevent infinite recursion for ABC Set class comparisons. http://hg.python.org/cpython/rev/9bf55766d935 -- ___ Python tracker

[issue19904] Add 128-bit integer support to struct

2013-12-06 Thread Tim Peters
Tim Peters added the comment: Fil, here's the release schedule for Python 2.8: http://www.python.org/dev/peps/pep-0404/ In short, 2.8 will never be released (well, never by us), and only bugfixes can be applied to the 2.7 line. That's why 2.7 was removed. Regardless of its merits, this

[issue19913] TR/Crypt.XPACK.Gen-4 in easy_install.exe

2013-12-06 Thread Christian Heimes
New submission from Christian Heimes: Since today test_venv fails because Avira Antivir claims that easy_install.exe contains the trojan horse TR/Crypt.XPACK.Gen-4. I haven't seen the issue before. I'm running CPython default on Windows 7 64bit with Avira 13. -- files: easyinstall.png

[issue19904] Add 128-bit integer support to struct

2013-12-06 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: +alex ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2013-12-06 Thread Merlijn van Deen
Merlijn van Deen added the comment: Hi Alexandre, Attached is a diff based on r87793:0c508d87f80b. Merlijn -- Added file: http://bugs.python.org/file33011/bytestrpickle.diff ___ Python tracker

[issue19904] Add 128-bit integer support to struct

2013-12-06 Thread Fil Mackay
Fil Mackay added the comment: I noticed that python 2.7 has been removed - why would this not be appropriate for this version? Given the current level of use of this version, I see it's inclusion as very important - without having to be relegated to 3.x only. -- _

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2013-12-06 Thread Merlijn van Deen
Changes by Merlijn van Deen : Removed file: http://bugs.python.org/file24907/pickle_bytes_tests.diff ___ Python tracker ___ ___ Python-bugs-lis

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2013-12-06 Thread Merlijn van Deen
Changes by Merlijn van Deen : Removed file: http://bugs.python.org/file24568/pickle.py.patch ___ Python tracker ___ ___ Python-bugs-list mailin

[issue19904] Add 128-bit integer support to struct

2013-12-06 Thread Fil Mackay
Fil Mackay added the comment: The use case is interacting with C structures that have 128/256/512 bit integers in them. These require correct memory alignment, and can't reliably be hacked with multiple int64's. These size ints come from the fact that CPU's now have registers of these sizes,

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2013-12-06 Thread Merlijn van Deen
Changes by Merlijn van Deen : Removed file: http://bugs.python.org/file24906/pickle_bytes_code.diff ___ Python tracker ___ ___ Python-bugs-list

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2013-12-06 Thread Merlijn van Deen
Changes by Merlijn van Deen : Removed file: http://bugs.python.org/file24719/pickle_bytestr.patch ___ Python tracker ___ ___ Python-bugs-list m

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2013-12-06 Thread Merlijn van Deen
Changes by Merlijn van Deen : Removed file: http://bugs.python.org/file24688/test_pickle.diff ___ Python tracker ___ ___ Python-bugs-list maili

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2013-12-06 Thread Merlijn van Deen
Changes by Merlijn van Deen : Removed file: http://bugs.python.org/file24640/BytestrPickler_c.diff ___ Python tracker ___ ___ Python-bugs-list

[issue16373] Recursion error comparing set() and collections.Set instances

2013-12-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: This should be backported to Python 2.7 as well. -- assignee: rhettinger -> serhiy.storchaka ___ Python tracker ___ _

[issue19904] Add 128-bit integer support to struct

2013-12-06 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- versions: -Python 2.7, Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue16465] dict creation performance regression

2013-12-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: This patch looks correct and like the right thing to do. I recommend applying it to 3.5. -- ___ Python tracker ___

[issue19909] Best practice docs for new SSL features

2013-12-06 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue6501] Fatal error on startup with invalid PYTHONIOENCODING

2013-12-06 Thread Mark Lawrence
Mark Lawrence added the comment: Is there anything to backport as referred to in msg136670 or can this be closed? -- nosy: +BreamoreBoy ___ Python tracker ___

[issue19712] Make sure there are exec_module tests for _LoaderBasics subclasses

2013-12-06 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue19712] Make sure there are exec_module tests for _LoaderBasics subclasses

2013-12-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 07ef52e751f3 by Brett Cannon in branch 'default': Issue #19712: Update test.test_importlib.source for PEP 451 http://hg.python.org/cpython/rev/07ef52e751f3 -- ___ Python tracker

[issue19912] ntpath.splitunc() is broken and not tested

2013-12-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- dependencies: +ntpath.splitdrive() fails when UNC part contains \u0130 ___ Python tracker ___ ___ Pyt

[issue19912] ntpath.splitunc() is broken and not tested

2013-12-06 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: ntpath.splitunc() returns illegal results when path contains redundant slashes. >>> import ntpath >>> ntpath.splitunc("\\conky\\mountpoint\\foo\\bar") ('\\conky', '\\mountpoint\\foo\\bar') >>> ntpath.splitunc("///conky/mountpoint/foo/bar") ('///conky

[issue19911] ntpath.splitdrive() fails when UNC part contains \u0130

2013-12-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch. -- assignee: -> serhiy.storchaka keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file33009/ntpath_splitdrive_u0130.patch ___ Python tracker

[issue19911] ntpath.splitdrive() fails when UNC part contains \u0130

2013-12-06 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: ntpath.splitdrive() returns wrong result when UNC part contains LATIN CAPITAL LETTER I WITH DOT ABOVE ('İ', '\u0130'). >>> ntpath.splitdrive('//host/I/abc') ('//host/I', '/abc') >>> ntpath.splitdrive('//host/İ/abc') ('//host/İ/', 'abc') >>> ntpath.splitdriv

[issue19456] ntpath doesn't join paths correctly when a drive is present

2013-12-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file33008/ntpath_join.patch ___ Python tracker ___ ___ Python-bugs-list maili

[issue19456] ntpath doesn't join paths correctly when a drive is present

2013-12-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: With previous patch: >>> ntpath.join('C:a/b', 'D:y/z') 'D:y/z\\y/z' Should be 'D:y/z'. Here is other patch which implements same algorithm as in pathlib (issue19908). Added new tests, removed duplicated tests. -- assignee: -> serhiy.storchaka nosy

[issue19837] Wire protocol encoding for the JSON module

2013-12-06 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue19841] ConfigParser PEP issues

2013-12-06 Thread Éric Araujo
Éric Araujo added the comment: Do you mean PEP 8 violations? These aren’t usually enough to cause a change. -- nosy: +eric.araujo ___ Python tracker ___

[issue17011] ElementPath ignores different namespace mappings for the same path expression

2013-12-06 Thread Éric Araujo
Changes by Éric Araujo : -- resolution: duplicate -> fixed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue17011] ElementPath ignores different namespace mappings for the same path expression

2013-12-06 Thread Éric Araujo
Changes by Éric Araujo : -- resolution: fixed -> duplicate ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue19862] Unclear xpath caching for custom namespaces

2013-12-06 Thread Éric Araujo
Changes by Éric Araujo : -- resolution: -> duplicate stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue19906] Typo in urllib documentation

2013-12-06 Thread Éric Araujo
Éric Araujo added the comment: LGTM. -- nosy: +eric.araujo, ezio.melotti stage: -> commit review ___ Python tracker ___ ___ Python-bu

[issue19907] gettext - Non ascii chars in header

2013-12-06 Thread Éric Araujo
Éric Araujo added the comment: It looks like there are two issues here. First, what would be a correct format for the PO-Revision-Date line? (human-readable string or numerical timezone) Second, gettext supports UTF-8 for the po file, which should support ä without problem, so maybe pygettex

[issue19910] Document that compile() source may be bytes

2013-12-06 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue19712] Make sure there are exec_module tests for _LoaderBasics subclasses

2013-12-06 Thread Brett Cannon
Brett Cannon added the comment: test.test_importlib.source is the last thing to update for PEP 451 for this bug. -- ___ Python tracker ___ ___

[issue19712] Make sure there are exec_module tests for _LoaderBasics subclasses

2013-12-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 543c76769c14 by Brett Cannon in branch 'default': Issue #19712: Update test.test_importlib.import_ to test/use PEP 451 http://hg.python.org/cpython/rev/543c76769c14 -- ___ Python tracker

[issue16991] Add OrderedDict written in C

2013-12-06 Thread Ryan Gonzalez
Changes by Ryan Gonzalez : -- nosy: +Ryan.Gonzalez ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue19876] selectors (and asyncio?): document behaviour on closed files/sockets

2013-12-06 Thread Charles-François Natali
Charles-François Natali added the comment: Sorry for the delay, I didn't have any free time this week. I'll review the patch shortly, but the idea sounds fine (I just need to check if we can't be a little more specific for errnos upon unregister). --

[issue18864] Implementation for PEP 451 (importlib.machinery.ModuleSpec)

2013-12-06 Thread Brett Cannon
Brett Cannon added the comment: I just realized that there is no way to make ModuleSpec.has_location return True if the spec is created by simply instantiating ModuleSpec. As it stands now you **must** go through importlib.util.spec_from_file_location(), which makes it not a helper but a **req

[issue19910] Document that compile() source may be bytes

2013-12-06 Thread Guido van Rossum
Changes by Guido van Rossum : -- keywords: +easy priority: normal -> low stage: -> needs patch ___ Python tracker ___ ___ Python-bugs

[issue19910] Document that compile() source may be bytes

2013-12-06 Thread Guido van Rossum
New submission from Guido van Rossum: compile() takes a string, bytes or AST as the "source" argument. The bytes option are not documented except in the error message you get when you pass something else. The AST option is in the library docs but not in the function docstring. -- as

[issue19876] selectors (and asyncio?): document behaviour on closed files/sockets

2013-12-06 Thread Guido van Rossum
Guido van Rossum added the comment: Ping? Charle-François, what do you think of my patch to ignore OSError in unregister()? -- assignee: docs@python -> neologix ___ Python tracker _

[issue19842] selectors: refactor BaseSelector implementation

2013-12-06 Thread Guido van Rossum
Guido van Rossum added the comment: This is done AFAICT. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue19883] Integer overflow in zipimport.c

2013-12-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, these fields are unsingned. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue19908] pathlib.PureWindowsPath doesn't join relative paths correctly when a drive is present

2013-12-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0c508d87f80b by Serhiy Storchaka in branch 'default': Test same drive in different cases (issue #19908). http://hg.python.org/cpython/rev/0c508d87f80b -- ___ Python tracker

[issue19908] pathlib.PureWindowsPath doesn't join relative paths correctly when a drive is present

2013-12-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Antoine for your patch. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue18716] Deprecate the formatter module

2013-12-06 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue19883] Integer overflow in zipimport.c

2013-12-06 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: brett.cannon -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue19908] pathlib.PureWindowsPath doesn't join relative paths correctly when a drive is present

2013-12-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1ba15c3f45fa by Serhiy Storchaka in branch 'default': Issue #19908: pathlib now joins relative Windows paths correctly when a drive http://hg.python.org/cpython/rev/1ba15c3f45fa -- nosy: +python-dev ___ P

[issue19908] pathlib.PureWindowsPath doesn't join relative paths correctly when a drive is present

2013-12-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Good point :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue19908] pathlib.PureWindowsPath doesn't join relative paths correctly when a drive is present

2013-12-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ah, drives should be compared with ignored cases. -- Added file: http://bugs.python.org/file33007/joinwinpath_3.patch ___ Python tracker ___ _

[issue19908] pathlib.PureWindowsPath doesn't join relative paths correctly when a drive is present

2013-12-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks! Patch looks ok to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue19891] Exiting Python REPL prompt with user without home directory throws error in atexit._run_exitfuncs

2013-12-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: The main question here is whether "interactive user without a home directory" is a valid / common use case. I think silencing the FileNotFoundError would be ok. (however, the "home directory with wrong permissions" case sounds crazy) -- priority: norm

[issue19891] Exiting Python REPL prompt with user without home directory throws error in atexit._run_exitfuncs

2013-12-06 Thread Vajrasky Kok
Vajrasky Kok added the comment: Additional information: When I created /home/cutecat with another user account. bash-4.2$ ./python Python 3.4.0b1 (default:7a668179d691, Dec 6 2013, 21:44:31) [GCC 4.7.2 20121109 (Red Hat 4.7.2-8)] on linux Type "help", "copyright", "credits" or "license" for m

[issue19891] Exiting Python REPL prompt with user without home directory throws error in atexit._run_exitfuncs

2013-12-06 Thread Vajrasky Kok
Vajrasky Kok added the comment: Okay, this bug is valid. I can reproduce it in Ubuntu and Fedora. bash-4.2$ ./python Python 3.4.0b1 (default:7a668179d691, Dec 6 2013, 21:44:31) [GCC 4.7.2 20121109 (Red Hat 4.7.2-8)] on linux Type "help", "copyright", "credits" or "license" for more information

[issue19842] selectors: refactor BaseSelector implementation

2013-12-06 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue18144] FD leak in urllib2

2013-12-06 Thread Martin Panter
Martin Panter added the comment: Confirmed that this happens when the server sends a chunked response, or sends a Content-Length header, but not when the server just sends “Connection: close”. So this looks like the same as Issue 19524, and my patch for that seems to fix the issue here. Pytho

[issue19909] Best practice docs for new SSL features

2013-12-06 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue19908] pathlib.PureWindowsPath doesn't join relative paths correctly when a drive is present

2013-12-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is simplified patch. -- Added file: http://bugs.python.org/file33006/joinwinpath_2.patch ___ Python tracker ___ _

[issue19509] No SSL match_hostname() in ftp, imap, nntp, pop, smtp modules

2013-12-06 Thread Christian Heimes
Christian Heimes added the comment: I'm closing this ticket. All features have been implemented and tests are passing, too. I have created #19909 as a reminder for doc improvements. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed _

  1   2   >