[issue18788] Proof of concept: implicit call syntax

2013-08-19 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue18684] Pointers point out of array bound in _sre.c

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

[issue18672] Fix format specifiers for debug output in _sre.c

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

[issue18788] Proof of concept: implicit call syntax

2013-08-19 Thread Nick Coghlan
New submission from Nick Coghlan: After watching one of the presenters at PyTexas struggle painfully with the fact "print value" doesn't work in Python 3, I decided I had to at least *try* to see if a general "implicit call" syntax was feasible within the constraints of the CPython parser. Th

[issue18787] Misleading error from getspnam function of spwd module

2013-08-19 Thread Vajrasky Kok
New submission from Vajrasky Kok: As root: $ sudo python3 [sudo] password for ethan: Python 3.2.3 (default, Apr 10 2013, 05:07:54) [GCC 4.7.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import spwd >>> spwd.getspnam("I_don't_exist") Traceback (most rec

[issue18704] IDLE: PEP8 Style Check Integration

2013-08-19 Thread Todd Rovito
Changes by Todd Rovito : -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue18704] IDLE: PEP8 Style Check Integration

2013-08-19 Thread Todd Rovito
Todd Rovito added the comment: Raymond, Would you prefer PyFlakes instead? Try to consider IDLE being for beginners so they need all the help they can get. Advanced users can always turn the extension off. Thanks for your input. -- ___ Python

[issue18704] IDLE: PEP8 Style Check Integration

2013-08-19 Thread Todd Rovito
Todd Rovito added the comment: Ezio, I think modern editors are expected to have this sort of functionality built into them [1]. XCode is simply amazing where it will pop up errors and quote the C99 standard [2]. We don't expect IDLE to have all that functionality but it seemed to us like

[issue16396] Importing ctypes.wintypes on Linux gives a traceback

2013-08-19 Thread Meador Inge
Meador Inge added the comment: On Mon, Aug 12, 2013 at 7:11 AM, Ezio Melotti wrote: > Even if the patch is applied only on 3.4, I would still like to see the > ValueError turned into ImportError for 2.7/3.3. > Why not raise an ImportError for all versions? I don't see how 'ctypes.wintypes' is

[issue18571] Implementation of the PEP 446: non-inheritable file descriptors

2013-08-19 Thread STINNER Victor
STINNER Victor added the comment: > make_inheritable() should ignore errpipe_write, instead of changing twice the > inheritable flag of errpipe_write. Done in the last patch (00df7fc6d2ef.diff). -- ___ Python tracker

[issue18786] test_multiprocessing_spawn crashes under PowerLinux

2013-08-19 Thread Antoine Pitrou
New submission from Antoine Pitrou: http://buildbot.python.org/all/builders/PPC64%20PowerLinux%203.x [319/379] test_multiprocessing_spawn /home/shager/cpython-buildarea/3.x.edelsohn-powerlinux-ppc64/build/Lib/multiprocessing/semaphore_tracker.py:121: UserWarning: semaphore_tracker: There appear

[issue7732] imp.find_module crashes Python if there exists a directory named "__init__.py"

2013-08-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4f7845be9e23 by Antoine Pitrou in branch 'default': Issue #7732: try to fix test_bug7732's flakiness on Windows by executing it in a fresh temporary directory. http://hg.python.org/cpython/rev/4f7845be9e23 -- __

[issue17560] problem using multiprocessing with really big objects?

2013-08-19 Thread Olivier Grisel
Olivier Grisel added the comment: > In 3.3 you can do > > from multiprocessing.forking import ForkingPickler > ForkingPickler.register(MyType, reduce_MyType) > > Is this sufficient for you needs? This is private (and its definition has > moved in 3.4) but it could be made public. Indee

[issue18606] Add statistics module to standard library

2013-08-19 Thread Oscar Benjamin
Oscar Benjamin added the comment: On 19 August 2013 17:35, Steven D'Aprano wrote: > > Steven D'Aprano added the comment: > > On 19/08/13 23:15, Oscar Benjamin wrote: >> >> The final result is not accurate to 2 d.p. rounded down. This is >> because the decimal context has affected all intermediat

[issue18785] Add get_body and iter_attachments to provisional email API

2013-08-19 Thread R. David Murray
New submission from R. David Murray: I'm working on completing the API changes for the email package for 3.4. This means I'm adding some more stuff to the current provisional API, which I will then aim to make non-provisional in 3.5. I've made a complete proposal to the email-sig, and have go

[issue7732] imp.find_module crashes Python if there exists a directory named "__init__.py"

2013-08-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: The bug still fails on a regular basis on the Windows buildbots: == FAIL: test_bug7732 (test.test_imp.ImportTests) -- Tracebac

[issue13461] Error on test_issue_1395_5 with Python 2.7 and VS2010

2013-08-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18571] Implementation of the PEP 446: non-inheritable file descriptors

2013-08-19 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file31378/00df7fc6d2ef.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue18782] sqlite3 row factory and multiprocessing map

2013-08-19 Thread Richard Oudkerk
Richard Oudkerk added the comment: Adding the line features[0][0] to the end of main() produces a segfault for me on Linux. The FAQ for sqlite3 says that Under Unix, you should not carry an open SQLite database across a fork() system call into the child process. Problems will res

[issue18712] Pure Python operator.index doesn't match the C version.

2013-08-19 Thread Zachary Ware
Zachary Ware added the comment: A lot of this discussion has flown a rather unfortunate distance over my head, especially since I've barely had time to follow it. But it looks to me like--given the number of other places that do the same thing as operator.index currently does--there needs to

[issue18782] sqlite3 row factory and multiprocessing map

2013-08-19 Thread Timothy O'Keefe
Timothy O'Keefe added the comment: Could you change the dummy function to do something other than simply return the row? For example: #!/usr/bin/env python import sqlite3 import multiprocessing as mp def main(): ## --- create a database conn = sqlite3.connect(':memory:') conn.row_

[issue18647] re.error: nothing to repeat

2013-08-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue2537] re.compile(r'((x|y+)*)*') should not fail

2013-08-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This issue is a duplicate of issue1633953. See also issue18647. After some fixes in other parts of the re module this check has become even more invalid. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed title: re.compile(r

[issue1633953] re.compile("(.*$){1,4}", re.MULTILINE) fails

2013-08-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Fixed in issue2537. See also issue18647. -- nosy: +serhiy.storchaka resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> re.compile(r'((x|y+)*)*') should fail ___ Python tra

[issue18647] re.error: nothing to repeat

2013-08-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset de049e9abdf7 by Serhiy Storchaka in branch '3.3': Issue #18647: Correctly bound calculated min/max width of a subexpression. http://hg.python.org/cpython/rev/de049e9abdf7 New changeset e47f2dc564bc by Serhiy Storchaka in branch 'default': Issue #186

[issue2537] re.compile(r'((x|y+)*)*') should fail

2013-08-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7ab07f15d78c by Serhiy Storchaka in branch '3.3': Issue #2537: Remove breaked check which prevented valid regular expressions. http://hg.python.org/cpython/rev/7ab07f15d78c New changeset f4271cc2dfb5 by Serhiy Storchaka in branch 'default': Issue #2

[issue18782] sqlite3 row factory and multiprocessing map

2013-08-19 Thread Ned Deily
Ned Deily added the comment: What platform are you running on? Please run the following script in the same environment as you get the segfault and report the results. #!/usr/bin/env python import multiprocessing import platform import sqlite3 import sys print(sys.version) print(sqlite3.versio

[issue18772] Fix gdb plugin for new sets dummy object

2013-08-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: This is a bummer. The internal comments made the claim that any python object would suffice. The use of a unicode object was unfortunate because it isn't guaranteed to be unique (i.e. a user can legitimately store "" as a valid member of a set). As a co

[issue15809] IDLE console uses incorrect encoding.

2013-08-19 Thread ali
Changes by ali : -- nosy: +irdb ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/

[issue18778] email docstrings and comments say about Unicode strings

2013-08-19 Thread R. David Murray
R. David Murray added the comment: Yeah, if I could have a do-over of the 3.0 port, I'd probably drop the acceptance of byte strings. Maybe we can deprecate it. -- ___ Python tracker _

[issue17560] problem using multiprocessing with really big objects?

2013-08-19 Thread Richard Oudkerk
Richard Oudkerk added the comment: > I could submit the part that makes it possible to customize the picklers > of multiprocessing.pool.Pool instance to the standard library if people > are interested. 2.7 and 3.3 are in bugfix mode now, so they will not change. In 3.3 you can do from mu

[issue18750] '' % [1] doesn't fail

2013-08-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Since people should start to move to str.format instead of % this wart may > not be worth fixing. >>> ''.format_map([1]) '' However I agree that this is not worth fixing. -- nosy: +serhiy.storchaka ___ Python t

[issue17998] internal error in regular expression engine

2013-08-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: For other related issues see issue18672 and issue18684. -- resolution: -> fixed stage: test needed -> committed/rejected status: open -> closed ___ Python tracker __

[issue18784] minor uuid.py loading optimization

2013-08-19 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue18772] Fix gdb plugin for new sets dummy object

2013-08-19 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue18772] Fix gdb plugin for new sets dummy object

2013-08-19 Thread Dave Malcolm
Dave Malcolm added the comment: Antoine's patch looks reasonable to me, FWIW. -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue16396] Importing ctypes.wintypes on Linux gives a traceback

2013-08-19 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I think it's the opposite: when Unix support was added to ctypes, 'import ctypes.wintypes' was not considered. By that logic, the patch is a new feature. IMO "historical" arguments are moot :-) I agree with the conclusion tough: the patch will not break c

[issue18784] minor uuid.py loading optimization

2013-08-19 Thread Evgeny Sologubov
New submission from Evgeny Sologubov: Please see the patch attached. It quite is primitive and self-explanatory: the code wouldn't attempt to load *libc* via ctypes.CDLL, if all necessary functions are already found in *libuuid*. This patch also can serve as a work-around solution to issue #17

[issue18778] email docstrings and comments say about Unicode strings

2013-08-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is just unusual to accept a bytes object as a charset name. Of course if it is needed for Charset's __init__ the code should not be removed. -- ___ Python tracker ___

[issue18783] No more refer to Python "long"

2013-08-19 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Here is a patch which removes (almost all) mentions of Python long type from docstrings, exception messages and comments. -- files: no_long.patch keywords: patch messages: 195650 nosy: serhiy.storchaka priority: normal severity: normal stage: patch

[issue18772] Fix gdb plugin for new sets dummy object

2013-08-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Raymond, if you don't have time for this issue, I'd prefer your patch to be reverted. It hasn't been proven to accelerate any benchmark, and the problems it triggered need solving. -- ___ Python tracker

[issue17560] problem using multiprocessing with really big objects?

2013-08-19 Thread Olivier Grisel
Olivier Grisel added the comment: I forgot to end a sentence in my last comment: - detect mmap-backed numpy should read: - detect mmap-backed numpy arrays and pickle only the filename and other buffer metadata to reconstruct a mmap-backed array in the worker processes instead of copying the

[issue17560] problem using multiprocessing with really big objects?

2013-08-19 Thread Olivier Grisel
Olivier Grisel added the comment: I have implemented a custom subclass of the multiprocessing Pool to be able plug custom pickling strategy for this specific use case in joblib: https://github.com/joblib/joblib/blob/master/joblib/pool.py#L327 In particular it can: - detect mmap-backed numpy -

[issue16255] subrocess.Popen needs /bin/sh but Android only has /system/bin/sh

2013-08-19 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- dependencies: +add function to os module for getting path to default shell ___ Python tracker ___ ___ P

[issue16255] subrocess.Popen needs /bin/sh but Android only has /system/bin/sh

2013-08-19 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- versions: -Python 2.7, Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue18606] Add statistics module to standard library

2013-08-19 Thread Steven D'Aprano
Steven D'Aprano added the comment: On 19/08/13 23:15, Oscar Benjamin wrote: > So with the current implementation I can do: > from decimal import Decimal as D, localcontext, Context, ROUND_DOWN data = [D("0.1375"), D("0.2108"), D("0.3061"), D("0.0419")] print(statistics.variance(da

[issue17276] HMAC: deprecate default hash

2013-08-19 Thread Christian Heimes
Christian Heimes added the comment: assertWarns() is much easier than the block I have copied and pasted. Thanks. :) -- Added file: http://bugs.python.org/file31375/17276-2.patch ___ Python tracker

[issue18771] Reduce the cost of hash collisions for set objects

2013-08-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: Victor, this should also work for dictionaries as well. Fundamentally, the concepts of loop-unrolling and exploiting cache locality should apply to any hash table implementation. That said, the dicts are more complex than sets due to 1) storing the hash/

[issue18774] There is still last bit of GNU Pth code in signalmodule.c

2013-08-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset a02339bda413 by Raymond Hettinger in branch 'default': Issue 18774: Update news and whatsnew for the set optimizations http://hg.python.org/cpython/rev/a02339bda413 -- ___ Python tracker

[issue18777] Cannot compile _ssl.c using openssl > 1.0

2013-08-19 Thread Christian Heimes
Changes by Christian Heimes : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue18777] Cannot compile _ssl.c using openssl > 1.0

2013-08-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset f967ded6f9dd by Christian Heimes in branch '3.3': Issue #18777: The ssl module now uses the new CRYPTO_THREADID API of http://hg.python.org/cpython/rev/f967ded6f9dd New changeset 28e68f4807a2 by Christian Heimes in branch 'default': Issue #18777: Th

[issue18782] sqlite3 row factory and multiprocessing map

2013-08-19 Thread Timothy O'Keefe
New submission from Timothy O'Keefe: If you run this code, you will get a segfault. If you a) remove the row factory from the following code or b) use the standard library map() instead of multiprocessing.Pool.map, then the code does not crash. #!/usr/bin/env python import sqlite3 import mult

[issue18781] re.escape escapes underscore (Python 2.7)

2013-08-19 Thread Ezio Melotti
Ezio Melotti added the comment: This was considered a new feature when it was added in 3.2 (see #2650), so it was not backported to 2.7 because -- even if it was a minor change -- it was not 100% backward compatible. -- assignee: -> ezio.melotti resolution: -> rejected stage: -> com

[issue18777] Cannot compile _ssl.c using openssl > 1.0

2013-08-19 Thread Christian Heimes
Christian Heimes added the comment: patch -- Added file: http://bugs.python.org/file31374/18777.patch ___ Python tracker ___ ___ Pytho

[issue18781] re.escape escapes underscore (Python 2.7)

2013-08-19 Thread Vajrasky Kok
New submission from Vajrasky Kok: $ ./python --version Python 2.7.5+ $ ./python Python 2.7.5+ (2.7:062533327ad2, Aug 19 2013, 22:44:52) [GCC 4.7.2 20121109 (Red Hat 4.7.2-8)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import re >>> re.escape('_') '\\_'

[issue18771] Reduce the cost of hash collisions for set objects

2013-08-19 Thread STINNER Victor
STINNER Victor added the comment: This optimization cannot be applied to the dict type? -- ___ Python tracker ___ ___ Python-bugs-list

[issue18771] Reduce the cost of hash collisions for set objects

2013-08-19 Thread Christian Heimes
Christian Heimes added the comment: How about a Misc/NEWS and a Doc/whatsnew/3.4 entry, too? -- ___ Python tracker ___ ___ Python-bugs

[issue18771] Reduce the cost of hash collisions for set objects

2013-08-19 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue18771] Reduce the cost of hash collisions for set objects

2013-08-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset a887596b841f by Raymond Hettinger in branch 'default': Issue18771: Reduce the cost of hash collisions for set objects. http://hg.python.org/cpython/rev/a887596b841f -- nosy: +python-dev ___ Python tracke

[issue18780] SystemError when formatting int subclass

2013-08-19 Thread STINNER Victor
STINNER Victor added the comment: formatlong() should copy the string if Py_REFCNT(str) != 1. -- ___ Python tracker ___ ___ Python-bug

[issue18771] Reduce the cost of hash collisions for set objects

2013-08-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: Wow, thanks for running these tests and posting the results :-) -- ___ Python tracker ___ ___ Pyt

[issue18738] String formatting (% and str.format) issues with Enum

2013-08-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: For C-style formatting see also issue18780. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue18780] SystemError when formatting int subclass

2013-08-19 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: >>> class I(int): ... def __str__(self): ... return 'spam' ... >>> '%i' % (I(42),) Traceback (most recent call last): File "", line 1, in SystemError: Objects/unicodeobject.c:13595: bad argument to internal function This issue is related to i

[issue18606] Add statistics module to standard library

2013-08-19 Thread Oscar Benjamin
Oscar Benjamin added the comment: I've just checked over the new patch and it all looks good to me apart from one quibble. It is documented that statistics.sum() will respect rounding errors due to decimal context (returning the same result that sum() would). I would prefer it if statistics.sum

[issue18750] '' % [1] doesn't fail

2013-08-19 Thread Giacomo Alzetta
Giacomo Alzetta added the comment: Note that the documentation for formatting with %, found here: http://docs.python.org/2/library/stdtypes.html#string-formatting-operations, states: """ If format requires a single argument, values may be a single non-tuple object. [5] Otherwise, values must

[issue18738] String formatting (% and str.format) issues with Enum

2013-08-19 Thread Eric V. Smith
Eric V. Smith added the comment: Oh, I don't feel my time has been wasted. Where else can I have a discussion of __format__? With this patch, given this: class UpperString(str): def __format__(self, fmt): return str.__format__(self, fmt).upper() class UpperEnum(UpperString, Enum): pas

[issue18779] Misleading documentations and comments in regular expression HOWTO

2013-08-19 Thread R. David Murray
R. David Murray added the comment: The answer to the question about "alphanumerics" versus "alphanumeric characters" is that is is mostly likely context-dependent, so I'd have to see particular examples to say which I though read better. So, there is no One True Answer for this question, I th

[issue18778] email docstrings and comments say about Unicode strings

2013-08-19 Thread R. David Murray
R. David Murray added the comment: The comment, however, is clearly no longer appropriate :) -- ___ Python tracker ___ ___ Python-bugs

[issue18778] email docstrings and comments say about Unicode strings

2013-08-19 Thread R. David Murray
R. David Murray added the comment: If you mean the code in Charset's __init__, if you change that you'll have backward compatibility issues. As the code currently stands it is legal to pass in a charset name that is bytes. And the string path of that if checks that it contains only ASCII cha

[issue18652] Add itertools.first_true (return first true item in iterable)

2013-08-19 Thread R. David Murray
R. David Murray added the comment: OK, now I have a place in the non-test email code where using this would lead to easier-to-read code. -- ___ Python tracker ___ __

[issue18771] Reduce the cost of hash collisions for set objects

2013-08-19 Thread Christian Heimes
Christian Heimes added the comment: Oh *curse*, you are right. Why do I always confuse the order? :| It looks like the performance boost increases with CPU cache size as well as the CPU's generation. The i7-4770K box at work is less than a week old. The CPU is currently the fast desktop CPU fr

[issue18771] Reduce the cost of hash collisions for set objects

2013-08-19 Thread Tal Einat
Tal Einat added the comment: Sorry to be pedantic, but while 19.67sec is about 11.2% less than 22.16sec, it is actually about 12.6% faster (22.16/19.67 - 1). Regardless, that's a good result! And I'm happy that the modified benchmark is useful. --

[issue18771] Reduce the cost of hash collisions for set objects

2013-08-19 Thread Christian Heimes
Christian Heimes added the comment: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz on Ubuntu 13.04 X86_64 with GCC 4.7.3 1MB L2 cache test: 11.33sec / 10.83sec (4.4% faster) 8Mb L3 cache test: 22.16sec / 19.67sec (11% faster) -- ___ Python tracker

[issue18771] Reduce the cost of hash collisions for set objects

2013-08-19 Thread Tal Einat
Tal Einat added the comment: Because of the unusually low differences, I tried running the benchmarks again on the MacBook (OSX 10.8). The first time was actually with so.diff, this time was with so2.diff. 0.69% less time for first benchmark (7.30 before, 7.25 after) 8.08% less time for second

[issue18771] Reduce the cost of hash collisions for set objects

2013-08-19 Thread Tal Einat
Tal Einat added the comment: The following benchmarks were run with the second version of the patch (so2.diff), once before and once after. OSX 10.8 on a Macbook Pro, 2.5 GHz Core i5, two cores each with 256kb L2 cache, 3MB L3 cache: 1.32% less time for first benchmark (7.07 before, 6.98 afte

[issue18779] Misleading documentations and comments in regular expression HOWTO

2013-08-19 Thread Vajrasky Kok
Vajrasky Kok added the comment: In Lib/re.py, starting from line 77 (Python 3.4): \w Matches any alphanumeric character; equivalent to [a-zA-Z0-9_] in bytes patterns or string patterns with the ASCII flag. In string patterns without the ASCII flag, it will mat

[issue18779] Misleading documentations and comments in regular expression HOWTO

2013-08-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: I was wondering which doc you were alluding it, before I noticed your patch is against the regex HOWTO. The HOWTO seems quite outdated wrt. Python 3. For example "\w" is not equivalent to "[a-zA-Z0-9_]", anymore, except with the ASCII flag. -- title: M

[issue18779] Misleading documentations and comments in regular expression about alphanumerics and underscore

2013-08-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- components: +Regular Expressions nosy: +ezio.melotti, mrabarnett, pitrou stage: -> patch review ___ Python tracker ___ _

[issue18777] Cannot compile _ssl.c using openssl > 1.0

2013-08-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Indeed, only with the proper #ifdef's :-) -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue18777] Cannot compile _ssl.c using openssl > 1.0

2013-08-19 Thread Christian Heimes
Christian Heimes added the comment: I'm going to work on a modified patch. -- assignee: -> christian.heimes components: +Extension Modules ___ Python tracker ___ ___

[issue18777] Cannot compile _ssl.c using openssl > 1.0

2013-08-19 Thread Christian Heimes
Christian Heimes added the comment: Something like that: static void _ssl_threadid_callback(CRYPTO_THREADID *id) { CRYPTO_THREADID_set_numeric(id, PyThread_get_thread_ident()); } CRYPTO_THREADID_set_callback(_ssl_threadid_callback); -- components: -Extension Modules stage: needs p

[issue18777] Cannot compile _ssl.c using openssl > 1.0

2013-08-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Rather than removing the call to CRYPTO_set_id_callback, it seems we should replace it with CRYPTO_THREADID_set_callback: « CRYPTO_THREADID and associated functions were introduced in OpenSSL 1.0.0 to replace (actually, deprecate) the previous CRYPTO_set_id_ca

[issue18438] Obsolete url in comment inside decimal module

2013-08-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +facundobatista, skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue17400] ipaddress.is_private needs to take into account of rfc6598

2013-08-19 Thread Freek Dijkstra
Freek Dijkstra added the comment: A bit odd questions: What is the is_private() function intended to accomplish? I have been wondering what is_private() means, and how users of the library are going to use this function. I've actually failed to come up with any sensible use-case with the curre

[issue18779] Misleading documentations and comments in regular expression about alphanumerics and underscore

2013-08-19 Thread Vajrasky Kok
New submission from Vajrasky Kok: According to: http://oald8.oxfordlearnersdictionaries.com/dictionary/alphanumeric http://en.wikipedia.org/wiki/Alphanumeric Alphanumeric is defined as [A-Za-z0-9]. Underscore (_) is not one of them. One of the documentation in Python (Doc/tutorial/stdlib2.rst)

[issue5537] LWPCookieJar cannot handle cookies with expirations of 2038 or greater on 32-bit platforms

2013-08-19 Thread Alex Quinn
Alex Quinn added the comment: For those who are affected by this bug, here's a snippet to monkey-patch cookielib on any Python 2.4 to 2.7. A more complete version of this was attached to my message a moment ago. == import cookielib try: cookielib.tim

[issue5537] LWPCookieJar cannot handle cookies with expirations of 2038 or greater on 32-bit platforms

2013-08-19 Thread Alex Quinn
Alex Quinn added the comment: This bug still exists in Python 2.7.3 32-bit on Linux. I wonder if this might be because the patch (posted 2011-02-18) used utcfromtimestamp(). datetime.datetime.utcfromtimestamp(2**32) will fail on 32-bit systems. The bug does NOT exist in Python 2.7.3 32-bit o

[issue17400] ipaddress.is_private needs to take into account of rfc6598

2013-08-19 Thread Freek Dijkstra
Freek Dijkstra added the comment: Edit: could you rephrase? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17400] ipaddress.is_private needs to take into account of rfc6598

2013-08-19 Thread Freek Dijkstra
Freek Dijkstra added the comment: I don't understand your remark "I think it would be pretty surprising for ipaddress to return True if it's not a network operator running the query." -- ___ Python tracker ___

[issue18761] Fix internal doc references for the email package

2013-08-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for the review. -- assignee: docs@python -> serhiy.storchaka resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker _

[issue18778] email docstrings and comments say about Unicode strings

2013-08-19 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: email docstrings and comments uses the "Unicode string" term and refer to the unicode() built-in. In 3.x this should be corrected to "string" and "str()". Perhaps some code (for example coercing a charset name to Unicode) is not needed more. -- co

[issue18761] Fix internal doc references for the email package

2013-08-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7a1534dba050 by Serhiy Storchaka in branch '3.3': Issue #18761: Improved cross-references in email documentation. http://hg.python.org/cpython/rev/7a1534dba050 New changeset 464eed5ddb2e by Serhiy Storchaka in branch 'default': Issue #18761: Improve