[issue13812] multiprocessing package doesn't flush stderr on child exception

2012-01-23 Thread Jon Brandvein
Jon Brandvein added the comment: Regarding the patch: I'd also like to see sys.stdout.flush() and sys.stderr.flush() between "exitcode = self._boostrap()" and "exit(exitcode)" in /Lib/multiprocessing/forking.py :: main(). (The extra stderr flush would be for sym

[issue13841] multiprocessing should use sys.exit() where possible

2012-01-23 Thread Jon Brandvein
New submission from Jon Brandvein : Currently the multiprocessing library calls a hard exit function (os._exit under unix, ExitProcess under Windows) to terminate the child process. Under unix, this is necessary because the child is forked without exec-ing. Calling sys.exit() would make it

[issue13812] multiprocessing package doesn't flush stderr on child exception

2012-01-24 Thread Jon Brandvein
Jon Brandvein added the comment: Patch looks fine. I like the use of "finally" for the flush. -- ___ Python tracker <http://bugs.python.org/issue13812> ___ __

[issue13841] multiprocessing should use sys.exit() where possible

2012-01-24 Thread Jon Brandvein
Jon Brandvein added the comment: Good point. I don't think those particular behaviors are documented, so I'm not sure whether we need to worry about breaking them. -- ___ Python tracker <http://bugs.python.o

[issue13853] SystemExit/sys.exit() doesn't print boolean argument

2012-01-24 Thread Jon Brandvein
New submission from Jon Brandvein : Raising SystemExit manually, or calling sys.exit, with an argument of "True" or "False" results in no output to the screen. According to Doc/library/exceptions.rst and Doc/library/sys.rst, any object that is not an integer or None

[issue13854] multiprocessing: SystemExit from child with non-int, non-str arg causes TypeError

2012-01-24 Thread Jon Brandvein
New submission from Jon Brandvein : In a child process, raising SystemExit or calling sys.exit with a non-integer, non-string argument value causes a TypeError at Lib/multiprocessing/process.py :: _bootstrap. This is from concatenating the argument with '\n' and writing it

[issue13857] Add textwrap.indent() as counterpart to textwrap.dedent()

2012-01-25 Thread Jon Brandvein
Jon Brandvein added the comment: > If such a function is added, I'd like the option to not indent empty lines: > trailing spaces are often not a good idea. >From dedent's documentation, it wasn't immediately clear to me that it ignores >blank lines when determi

[issue13854] multiprocessing: SystemExit from child with non-int, non-str arg causes TypeError

2012-01-25 Thread Jon Brandvein
Jon Brandvein added the comment: Also, as Brett pointed out to me in #13853, bool is a subclass of int, so they should follow the same code path. I suggest replacing elif type(e.args[0]) is int: exitcode = e.args[0] with something like elif isinstance(e.args[0], int

[issue1003195] segfault when running smtplib example

2012-01-26 Thread Jon Bringhurst
Jon Bringhurst added the comment: I just ran into this while using the smtplib example on: 2.6 (r26:66714, Jan 17 2012, 11:02:11) GCC 4.1.2 20080704 (Red Hat 4.1.2-44) Running the program simply gives a "Segmentation Fault (core dumped)" Running it under gdb... [Thread debug

[issue1003195] segfault when running smtplib example

2012-01-26 Thread Jon Bringhurst
Changes by Jon Bringhurst : -- type: -> crash versions: +Python 2.6 -Python 2.2 ___ Python tracker <http://bugs.python.org/issue1003195> ___ ___ Python-

[issue13877] segfault when running smtplib example

2012-01-26 Thread Jon Bringhurst
New submission from Jon Bringhurst : I just ran into this while using the smtplib example on: 2.6 (r26:66714, Jan 17 2012, 11:02:11) GCC 4.1.2 20080704 (Red Hat 4.1.2-44) Running the program simply gives a "Segmentation Fault (core dumped)" Running it under gdb... [Thread debug

[issue10482] subprocess and deadlock avoidance

2012-02-05 Thread Jon Brandvein
Changes by Jon Brandvein : -- nosy: +brandj ___ Python tracker <http://bugs.python.org/issue10482> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4806] Function calls taking a generator as star argument can mask TypeErrors in the generator

2012-02-27 Thread Jon Brandvein
Changes by Jon Brandvein : -- nosy: +brandj ___ Python tracker <http://bugs.python.org/issue4806> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13703] Hash collision security issue

2012-03-12 Thread Jon Vaughan
Jon Vaughan added the comment: FWIW I upgraded to ubuntu pangolin beta over the weekend, which includes 2.7.3rc1, and I'm also experiencing a problem with urandom. File "/usr/lib/python2.7/email/utils.py", line 27, in import random File "/usr/lib/python2.7/ran

[issue13703] Hash collision security issue

2012-03-13 Thread Jon Vaughan
Jon Vaughan added the comment: Victor - yes that was it; a mixture of a 2.7.2 virtual env and 2.7.3. Apologies for any nuisance caused. -- ___ Python tracker <http://bugs.python.org/issue13

[issue14532] multiprocessing module performs a time-dependent hmac comparison

2012-04-08 Thread Jon Oberheide
New submission from Jon Oberheide : The multiprocessing module performs a time-dependent comparison of the HMAC digest used for authentication: def deliver_challenge(connection, authkey): import hmac assert isinstance(authkey, bytes) message = os.urandom(MESSAGE_LENGTH

[issue14532] multiprocessing module performs a time-dependent hmac comparison

2012-04-11 Thread Jon Oberheide
Jon Oberheide added the comment: In fact, it'd probably be useful to have a time_independenct_comparison() helper function somewhere in general. -- ___ Python tracker <http://bugs.python.org/is

[issue14532] multiprocessing module performs a time-dependent hmac comparison

2012-04-11 Thread Jon Oberheide
Jon Oberheide added the comment: Ah yeah, I suppose it's not be exploitable in this case due to the challenge nonce. However, it might still be a good thing to fix for to set an example for other hmac module users (internal or external) that might not have the same situ

[issue14532] multiprocessing module performs a time-dependent hmac comparison

2012-04-11 Thread Jon Oberheide
Jon Oberheide added the comment: You call it obfuscating, I call it security correctness and developer education. Tomayto, tomahto. ;-) Anywho, your call of course, feel free to close. -- ___ Python tracker <http://bugs.python.org/issue14

[issue14532] multiprocessing module performs a time-dependent hmac comparison

2012-04-11 Thread Jon Oberheide
Jon Oberheide added the comment: > One thing that could definitely be interesting is to look through the > code base and example to see if a similar - but vulnerable - pattern > is used, and fix such occurrences. Based on some quick greps, I didn't see many internal users o

[issue14532] multiprocessing module performs a time-dependent hmac comparison

2012-04-11 Thread Jon Oberheide
Jon Oberheide added the comment: Will do! -- ___ Python tracker <http://bugs.python.org/issue14532> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14532] multiprocessing module performs a time-dependent hmac comparison

2012-04-11 Thread Jon Oberheide
Jon Oberheide added the comment: Here's a v1. Works with both str and bytes types for Python 3.x. Not sure I'm completely happy with the docs, but I'd appreciate any feedback on them! -- keywords: +patch Added file: http://bugs.python.org/file25186/hmac-time-indep

[issue14532] multiprocessing module performs a time-dependent hmac comparison

2012-04-12 Thread Jon Oberheide
Jon Oberheide added the comment: > This is not time independent. Is it an issue? You're correct, the length check does leak the length of the expected digest as a performance enhancement (otherwise, your comparison runtime is bounded by the length of the attackers input). G

[issue14532] multiprocessing module performs a time-dependent hmac comparison

2012-04-12 Thread Jon Oberheide
Jon Oberheide added the comment: > You could rewrite: > > result |= x ^ y > > as: > > result |= (x != y) You could, but it's best not to introduce any conditional branching based if at all possible. For reference, see: http://rdist.root.org/2009/05/

[issue14532] multiprocessing module performs a time-dependent hmac comparison

2012-04-12 Thread Jon Oberheide
Jon Oberheide added the comment: Here's a v2 patch. Changes include checking the input types via isinstance, test cases to exercise the type checking, and a note documenting the leak of the input length. -- Added file: http://bugs.python.org/file25197/hmac-time-independent-v2.

[issue35863] email.headers wraps headers badly

2019-01-30 Thread Jon Ribbens
New submission from Jon Ribbens : email.headers can wrap headers by putting a FWS as the very first thing in the output: >>> from email.header import Header >>> Header("a" * 67, header_name="Content-ID").encode() '\n aa

[issue35863] email.headers wraps headers badly

2019-01-31 Thread Jon Ribbens
Jon Ribbens added the comment: It is not correct folding. It might not be explicitly forbidden, but it is clearly unwise, and is breaking 'conservative in what you send'. Outlook will not be the only program that fails to parse Pytho

[issue35863] email.headers wraps headers badly

2019-02-01 Thread Jon Ribbens
Jon Ribbens added the comment: I did read the RFCs. I suspect the [CFWS] in the msg-id is for the benefit of the references production which contains a list of msg-ids. The 78-character suggested line length limit is explicitly noted as being for display purposes, and therefore is of little

[issue35958] io.IOBase subclasses don't play nice with abc.abstractmethod

2019-02-10 Thread Jon McMahon
New submission from Jon McMahon : Subclasses of io.IOBase can be instantiated with abstractmethod()s, even though ABCs are supposed to prevent this from happening. I'm guessing this has to do with io using the _io C module because the alternative pure-python implementation _pyio doesn&#

[issue30032] email module creates base64 output with incorrect line breaks

2017-04-10 Thread Jon Ribbens
New submission from Jon Ribbens: The email module, when creating base64-encoded text parts, does not process line breaks correctly - RFC 2045 s6.8 says that line breaks must be converted to CRLF before base64-encoding, and the email module is not doing this. >>> from email.mime.te

[issue30033] email module base64-encodes utf-8 text

2017-04-10 Thread Jon Ribbens
New submission from Jon Ribbens: The email module, when creating text parts using character encoding utf-8, base64-encodes the output even though this is often inappropriate (e.g. if it is a Western language it is almost never appropriate). >>> from email.mime.text import MIMET

[issue30033] email module base64-encodes utf-8 text

2017-04-10 Thread Jon Ribbens
Jon Ribbens added the comment: Just a note for anyone finding this in searching results: it appears that what David means by "python3 API" is actually a new API in Python 3.6 (email.message.EmailMessage). -- ___ Python trac

[issue30032] email module creates base64 output with incorrect line breaks

2017-04-10 Thread Jon Ribbens
Jon Ribbens added the comment: OK cool, but please note that this is a MIME issue not an SMTP issue - if the message has text that is being base64-encoded then it must use CRLF line breaks regardless of whether SMTP is involved or not

[issue30032] email module creates base64 output with incorrect line breaks

2017-04-10 Thread Jon Ribbens
Jon Ribbens added the comment: So on further investigation, with the new API and policy=SMTP, it does generate correct base64 output. So I guess on the basis that the new version can generate the right output, and it appears to be a deliberate choice that the default policy breaks the RFCs

[issue30091] DeprecationWarning: invalid escape sequence: Only appears on first run

2017-04-17 Thread Jon Dufresne
New submission from Jon Dufresne: After upgrading to Python 3.6, I'm working towards cleaning up "DeprecationWarning: invalid escape sequence". I've noticed that the Deprecation warning only appears on the first run. It looks like once the code is compiled to `__pycache

[issue30091] DeprecationWarning: invalid escape sequence: Only appears on first run

2017-04-17 Thread Jon Dufresne
Jon Dufresne added the comment: I see. I think if the goal is for developers to see and fix these DeprecationWarnings, it would help if the warnings were reproducible without taking steps different from normal Python development. TBH, this is the first time I've ever used the -B CLI arg

[issue30091] DeprecationWarning: invalid escape sequence: Only appears on first run

2017-04-17 Thread Jon Dufresne
Jon Dufresne added the comment: Understood. Thanks for the response. I'll have to keep this in mind as I debug these warnings in the future. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python

[issue30296] Remove unnecessary tuples, lists, sets, and dicts from Lib

2017-05-07 Thread Jon Dufresne
New submission from Jon Dufresne: Lib has some patterns that could be easily discovered and cleaned up. Doing so will reduce the number of unnecessary temporary lists in memory and unnecessary function calls. It will also take advantage of Python's own rich features in a way that bette

[issue28867] NamedTemporaryFile does not generate a ResourceWarning for unclosed files (unlike TemporaryFile)

2017-06-03 Thread Jon Dufresne
Changes by Jon Dufresne : -- pull_requests: +2015 ___ Python tracker <http://bugs.python.org/issue28867> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26707] plistlib fails to parse bplist with 0x80 UID values

2019-03-03 Thread Jon Janzen
Change by Jon Janzen : -- pull_requests: +12152 ___ Python tracker <https://bugs.python.org/issue26707> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26707] plistlib fails to parse bplist with 0x80 UID values

2019-03-03 Thread Jon Janzen
Jon Janzen added the comment: I recently upgraded my python version and my hot-patch broke due to changes in bpo-32072 (GH-4455). It reminded me of this b.p.o., and after reading through the messages to remind myself where the patch stood I realized that my tone friendly towards the end

[issue36409] plistlib old API should be removed

2019-03-23 Thread Jon Janzen
New submission from Jon Janzen : Per the documentation and in-line code warnings, the old API for plistlib was deprecated in version 3.4. My understanding is that deprecated functionality is to be removed in the next major version, so this code is long overdue for removal

[issue36409] plistlib old API should be removed

2019-03-23 Thread Jon Janzen
Change by Jon Janzen : -- keywords: +patch pull_requests: +12466 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue36409> ___ ___ Py

[issue36409] plistlib old API should be removed

2019-03-26 Thread Jon Janzen
Jon Janzen added the comment: Ah, I misinterpreted PEP4. I thought it only applied to modules as a whole (e.g. plistlib) rather than individual functionality within that module. I'll close my PR and wait until 3.9 is accepting patches -- versions: +Python 3.9 -Pytho

[issue36743] Docs: Descript __get__ signature defined differently across the docs

2019-04-27 Thread Jon Dufresne
New submission from Jon Dufresne : Here: https://docs.python.org/3/reference/datamodel.html#object.__get__ The __get__ signature is defined as: object.__get__(self, instance, owner) But here: https://docs.python.org/3/howto/descriptor.html#descriptor-protocol It is defined as: descr

[issue26707] plistlib fails to parse bplist with 0x80 UID values

2018-03-03 Thread Jon Janzen
Jon Janzen added the comment: Hello, I have attached a file extracted from the database of the 2Do App for iOS and macOS. The file contains information about tags used in the app. plistlib cannot currently parse this file because it lacks the ability to read byte 0x80 (UID). I believe the

[issue26707] plistlib fails to parse bplist with 0x80 UID values

2018-03-05 Thread Jon Janzen
Jon Janzen added the comment: @serhiy.storchaka: I've implemented a UID wrapper class I've also updated the parser and writer classes to support the UID wrapper. The implementations for reading/writing XML UID tags match the implementations given by Apple's plutil distrib

[issue26707] plistlib fails to parse bplist with 0x80 UID values

2018-03-13 Thread Jon Janzen
Jon Janzen added the comment: Ping -- ___ Python tracker <https://bugs.python.org/issue26707> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26707] plistlib fails to parse bplist with 0x80 UID values

2018-03-13 Thread Jon Janzen
Jon Janzen added the comment: Support for KeyedArchives are not limited to the Swift implementation I linked to. They have been supported since Mac OS X since 10.2 (long before Swift came around). The documentation (https://developer.apple.com/documentation/foundation/nskeyedarchiver

[issue26707] plistlib fails to parse bplist with 0x80 UID values

2018-03-28 Thread Jon Janzen
Jon Janzen added the comment: Ping -- ___ Python tracker <https://bugs.python.org/issue26707> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34073] asyncio and ProcessPoolExecutor: OSError on loop.close()

2018-07-08 Thread Jon Banafato
New submission from Jon Banafato : Calling loop.close() on an eventloop configured to use a ProcessPoolExecutor can result in an OSError. Expected behavior: no exception raised. Actual behavior: an OSError is raised, and following this call, quit() fails to terminate the process gracefully

[issue34124] email.message_from_binary_file documentation is broken

2018-07-16 Thread Jon Ribbens
New submission from Jon Ribbens : The documentation for email.message_from_binary_file is missing a line-continuation backslash at the end of the `.. function::` line which means the output formatting is mangled and it has no permalink. -- assignee: docs@python components

[issue34124] email.message_from_binary_file documentation is broken

2018-07-16 Thread Jon Ribbens
Change by Jon Ribbens : -- keywords: +patch pull_requests: +7831 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34124> ___ ___ Py

[issue18286] Python 3.3 - Slowing down computer

2013-06-22 Thread Jon Irenicus
New submission from Jon Irenicus: Python's really slowing my computer down. After running my script, the computer grinds to a halt and it's performance drops. Even after a reboot, the problem still persists. -- components: Windows messages: 191661 nosy: jon_irenicus priori

[issue18286] Python 3.3 - Slowing down computer

2013-06-22 Thread Jon Irenicus
Jon Irenicus added the comment: The problem is when i run my python script, it somehow slows the whole computer down. I checked my cpu usage, ram usage and disk usage, but nothing comes up. The script isn't big, it's only about 10kb big. -- status: pendi

[issue18286] Python 3.3 - Slowing down computer

2013-06-22 Thread Jon Irenicus
Jon Irenicus added the comment: #David Edelsohn It's not changing anything. with open('url_list.txt') as f: content = f.readlines() content = ''.join(content) content = list(content) if content[0] == 'h' and content[1] == 't' and co

[issue18802] ipaddress documentation errors

2013-08-21 Thread Jon Foster
New submission from Jon Foster: I recently looked at using the ipaddress module in a project, and noticed some discrepencies between the code and the documentation, and some things that weren't documented. A patch to fix these is attached. * The IPv4Network.__init__ documentation wr

[issue18802] ipaddress documentation errors

2013-08-21 Thread Jon Foster
Jon Foster added the comment: (If this is accepted, please consider it for backport to 3.3 too. It is just a documentation improvement). -- type: -> enhancement versions: +Python 3.3 ___ Python tracker <http://bugs.python.org/issu

[issue18805] ipaddress netmask/hostmask parsing bugs

2013-08-21 Thread Jon Foster
New submission from Jon Foster: Short version: Validation of netmasks and hostmasks in IPv4Network is wrong: it rejects many valid netmasks, it accepts many invalid netmasks and hostmasks, and it sometimes throws the wrong exception. Patch attached. Long version: Wrongly rejecting hostmasks

[issue16531] Allow IPNetwork to take a tuple

2013-09-01 Thread Jon Foster
Changes by Jon Foster : -- nosy: +jongfoster ___ Python tracker <http://bugs.python.org/issue16531> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14532] multiprocessing module performs a time-dependent hmac comparison

2012-04-18 Thread Jon Oberheide
Jon Oberheide added the comment: v3 patch, based on feedback from the review here: http://bugs.python.org/review/14532/show -- Added file: http://bugs.python.org/file25262/hmac-time-independent-v3.patch ___ Python tracker <http://bugs.python.

[issue14532] multiprocessing module performs a time-dependent hmac comparison

2012-04-19 Thread Jon Oberheide
Jon Oberheide added the comment: I have used the name "secure_compare" in the past for such a function. That said, I don't have strong feelings either way about the naming, so I'll yield to the others. -- ___ P

[issue14532] multiprocessing module performs a time-dependent hmac comparison

2012-04-29 Thread Jon Oberheide
Jon Oberheide added the comment: Ok, patch v4 uploaded. Only change is the rename to "secure_compare". -- Added file: http://bugs.python.org/file25414/hmac-time-independent-v4.patch ___ Python tracker <http://bugs.python.o

[issue14532] multiprocessing module performs a time-dependent hmac comparison

2012-05-01 Thread Jon Oberheide
Jon Oberheide added the comment: > You should explain what you already said: it is not a risk because the > length of a HMAC is fixed. Well, that's not entirely accurate. Exposing the length of the HMAC can expose what underlying hash is being used (eg. HMAC-SHA1 has different

[issue14955] hmac.secure_compare() is not time-independent for unicode strings

2012-05-29 Thread Jon Oberheide
New submission from Jon Oberheide : Hi all, I was informed that the hmac.secure_compare() function added in 14532 is not time-independent when processing unicode values: "The function as given is probably not timing independent if the attacker can provide unicode values. This is becaus

[issue14955] hmac.secure_compare() is not time-independent for unicode strings

2012-06-02 Thread Jon Oberheide
Jon Oberheide added the comment: Thanks for the feedback, haypo. I've updated the patch to use unicode-internal. As long as the encode() of the expected non-attacker-controlled digest is not dependent on the actual contents of the digest, we should be good. -- Added file:

[issue14955] hmac.secure_compare() is not time-independent for unicode strings

2012-06-15 Thread Jon Oberheide
Jon Oberheide added the comment: Sounds good to me, Nick. -- ___ Python tracker <http://bugs.python.org/issue14955> ___ ___ Python-bugs-list mailing list Unsub

[issue15061] hmac.secure_compare() leaks information about length of strings

2012-06-15 Thread Jon Oberheide
Jon Oberheide added the comment: Wow, that escalated quickly. :-) Nick, thanks for keeping things focused and on track. To recap, the primary motivation here is two-fold. First, folks are using == pretty frequently in an unsafe manner when comparing digests, signatures, and other fixed

[issue15061] hmac.secure_compare() leaks information about length of strings

2012-06-15 Thread Jon Oberheide
Jon Oberheide added the comment: On a side note, it may be useful to follow the conventions that already exist in OpenBSD for their timingsafe_bcmp(3): http://www.rootr.net/man/man/timingsafe_bcmp/3 "timingsafe" may be a more reasonable naming convention that is a bit less

[issue15136] Decimal accepting Fraction

2012-06-22 Thread Jon Clements
New submission from Jon Clements : I'm not a numeric expert but I was looking at a post on S/O which related to converting a Fraction to a certain amount of decimal places. I've had a hunt on the tracker but couldn't find anything relevant, but if I've missed it, I apologi

[issue15136] Decimal accepting Fraction

2012-06-22 Thread Jon Clements
Jon Clements added the comment: Mark - I bow to your superiour knowledge here. However, would not a classmethod of .from_fraction be welcome? ie, I could write: d = D.from_fraction(5, 7) Then the documents labour the point about what you've mentioned? Just an idea, but fully realise y

[issue15136] Decimal accepting Fraction

2012-06-22 Thread Jon Clements
Jon Clements added the comment: Not sure what's going on with my machine today: keep sending things to early. I meant: D.from_fraction(F) where if F is not of type Fraction, then the args are used to construct a Fraction - so can use an existing or creat

[issue15136] Decimal accepting Fraction

2012-06-22 Thread Jon Clements
Jon Clements added the comment: The more I think about this - the shades of grey kick in. D.from_fraction(F or creatable F) Then it would be 'reasonable to assume' for a F.to_decimal() to exist. Possibly with an optional context argument. Then, what happens if I do D('2.4

[issue15879] set.__or__, __and__, etc create subclass types, but ignore __new__

2012-09-07 Thread Jon Obermark
New submission from Jon Obermark: If they are not going to call the __metaclass__ or the class __new__, then they should return `set` objects instead of subclass objects, so that it is clear what is going on. As it is, the results of set operations receive some subclass information but not

[issue15879] set.__or__, __and__, etc create subclass types, but ignore __new__

2012-09-07 Thread Jon Obermark
Jon Obermark added the comment: The closing author is correct, the use case is adequately covered by __init__, and that has been fixed in 3. It makes sense this will not be backported. -- ___ Python tracker <http://bugs.python.org/issue15

[issue21366] Document that return in finally overwrites prev value

2014-04-27 Thread Jon Brandvein
New submission from Jon Brandvein: def foo(): try: return 1 finally; return 2 print(foo()) # 2 I've seen this peculiar case discussed on a few blogs lately, but was unable to find confirmation that this behavior is defined. In the try/finally section of Doc/refe

[issue9720] zipfile writes incorrect local file header for large files in zip64

2012-11-26 Thread Jon Henry
Changes by Jon Henry : -- nosy: +jhenry82 ___ Python tracker <http://bugs.python.org/issue9720> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19363] Python 2.7's future_builtins.map is not compatible with Python 3's map

2013-10-23 Thread Jon Clements
Changes by Jon Clements : -- nosy: +joncle ___ Python tracker <http://bugs.python.org/issue19363> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19164] Update uuid.UUID TypeError exception: integer should not be an argument.

2013-11-17 Thread Jon Gauthier
Changes by Jon Gauthier : -- keywords: +patch Added file: http://bugs.python.org/file32678/issue19164.patch ___ Python tracker <http://bugs.python.org/issue19

[issue18925] select.poll.modify is not documented

2013-12-07 Thread Jon Clements
Jon Clements added the comment: Was looking up epoll.modify and noticed in the docs it's listed as " Modify a register file descriptor." - I believe that should be "Modify a registered file descriptor"... -- nosy: +joncle

[issue22014] Add summary table for OS exception <-> errno mapping

2014-08-12 Thread Jon Poler
Jon Poler added the comment: I will give this a shot if it is just hard-coding a table with errno names. Dynamically scraping the errno names and inserting them with the exception hierarchy might be beyond me since I've never used Sphinx before. -- nosy: +jon.

[issue22014] Improve display of OS exception <-> errno mapping

2014-08-13 Thread Jon Poler
Jon Poler added the comment: I'm not entirely sure that I'm interpreting what you are looking for correctly, but here is what the table looks like with literalinclude. -- keywords: +patch Added file: http://bugs.python.org/file36365/OS_exceptions_t

[issue22191] warnings.__all__ incomplete

2014-08-13 Thread Jon Poler
Jon Poler added the comment: Antoine: I'll look in to this unless you want do so yourself. Thanks. -- nosy: +jon.poler ___ Python tracker <http://bugs.python.org/is

[issue22191] warnings.__all__ incomplete

2014-08-14 Thread Jon Poler
Jon Poler added the comment: Serhiy, should I submit these fixes as separate patches? E.g. one patch for the warnings module, and another for the socket module? More generally, should the items included in __all__ be derived from the items described in the documentation? For instance, only

[issue22191] warnings.__all__ incomplete

2014-08-15 Thread Jon Poler
Jon Poler added the comment: Here is a patch that changes __all__ in Lib/warnings.py to include the functions mentioned in the library reference https://docs.python.org/dev/library/warnings.html#available-functions. A unittest is included. This is my first patch, so comments/feedback are

[issue22014] Improve display of OS exception <-> errno mapping

2014-08-17 Thread Jon Poler
Jon Poler added the comment: Here's one way to accomplish this. Please see attached os_exceptions_table_V2.patch. I wasn't having much luck trying to use ReST, so I took advantage of the fact that the Doc/conf.py file is executed every time sphinx-build is run. conf.py imports and

[issue22242] Doc fix in the Import section in language reference.

2014-08-21 Thread Jon Poler
New submission from Jon Poler: It looks like there might be a contradiction in the documentation of import in the language reference. In the loading subsection https://docs.python.org/dev/reference/import.html#loading, first bulleted list of the section, it specifies that if a loader fails

[issue22191] warnings.__all__ incomplete

2014-08-23 Thread Jon Poler
Jon Poler added the comment: Thanks, Brett! -- ___ Python tracker <http://bugs.python.org/issue22191> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5755] "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++"

2014-01-25 Thread Jon Parise
Changes by Jon Parise : -- nosy: -jon ___ Python tracker <http://bugs.python.org/issue5755> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue20692] Tutorial section 9.4

2014-02-19 Thread Jon Shemitz
New submission from Jon Shemitz: The tutorial says "Each value is an object, and therefore has a class (also called its type). It is stored as object.__class__." So, I tried >>> 3.__class__ File "", line 1 3.__class__ ^ SyntaxErr

[issue20692] Tutorial section 9.4

2014-02-19 Thread Jon Shemitz
Jon Shemitz added the comment: That makes sense. Perhaps, then, the tutorial should include the FAQ? (I can't be the only person who thought to try this.) On Wed, Feb 19, 2014 at 3:59 PM, R. David Murray wrote: > > R. David Murray added the comment: > > It's actually almo

[issue6588] insert cookies into cookie jar - cookielib.py

2009-07-27 Thread Jon Debonis
New submission from Jon Debonis : Added ability to insert cookies into cookie jar. Fixed problem where some domain names are prepended with '.' and others were not. Fixed problem with _LWPCookieJar.py to handle case where version = None import urllib2, urllib, time import

[issue6819] Typo in datamodel.rst ("Custon" -> "Custom")

2009-09-01 Thread Jon Parise
New submission from Jon Parise : reference/datamodel.rst misspells "Custom" as "Custon". The attached patch fixes that. -- assignee: georg.brandl components: Documentation files: datamodel.custon.diff keywords: patch messages: 92157 nosy: georg.brandl, jon severity:

[issue6930] [PATCH] PyUnicode_DecodeUTF16 docs wrong (byteorder param)

2009-09-17 Thread Jon Foster
New submission from Jon Foster : The documentation for the C API function PyUnicode_DecodeUTF16() does not match the code. If *byteorder is 1 or -1, the documentation says that the function looks for a BOM. It doesn't. This patch updates the documentation to match the code. (Also, I

[issue7004] Py_RETURN_BOOL() convenience macro

2009-09-26 Thread Jon Parise
New submission from Jon Parise : I've sometimes found it useful to define a convenience macro named Py_RETURN_BOOL(x) which is essentially: #define Py_RETURN_BOOL(x) if (x) Py_RETURN_TRUE; else Py_RETURN_FALSE It's useful for implementing functions which return Boolean values based

[issue7004] Py_RETURN_BOOL() convenience macro

2009-09-26 Thread Jon Parise
Jon Parise added the comment: Also attached is a short set of examples of how this macro could be used in the Python source tree. -- Added file: http://bugs.python.org/file14983/Py_RETURN_BOOL.examples.patch ___ Python tracker <h

[issue7004] Py_RETURN_BOOL() convenience macro

2009-09-26 Thread Jon Parise
Jon Parise added the comment: Also attached is a small documentation patch. -- Added file: http://bugs.python.org/file14984/Py_RETURN_BOOL.doc.patch ___ Python tracker <http://bugs.python.org/issue7

[issue7004] Py_RETURN_BOOL() convenience macro

2009-09-27 Thread Jon Parise
Jon Parise added the comment: I agree, as well. I didn't consider PyBool_FromLong() because I was expecting to solve the problem using a macro, but that is clearly not the best approach here (insignificant function call overhead

[issue7025] Python 3.1 and 3.2 (dev) opensearch.xml still references 3.0

2009-09-30 Thread Jon Parise
New submission from Jon Parise : The _static/opensearch.xml output on docs.python.org for the 3.1 and 3.2 (dev/py3k) branches still refers to the 3.0 documentation. Doc/conf.py's html_use_opensearch value should be updated in those source branches to reflect their updated version nu

[issue7060] test_multiprocessing dictionary changed size errors and hang

2009-10-11 Thread Jon Parise
Changes by Jon Parise : -- nosy: +jon ___ Python tracker <http://bugs.python.org/issue7060> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

<    1   2   3   >