[issue29944] Argumentless super() fails in classes constructed with type()

2021-12-07 Thread Caleb Donovick
Change by Caleb Donovick : -- nosy: +donovick ___ Python tracker <https://bugs.python.org/issue29944> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42411] respect cgroups limits when trying to allocate memory

2021-11-09 Thread Caleb Collins-Parks
Caleb Collins-Parks added the comment: @christian.heimes following up on this - we have been having frequent memory issues with Python 3.7 in Kubernetes. It could just be the code, but if it does turn out this is a bug then fixing it could be very beneficial. -- nosy: +caleb2

[issue39232] asyncio crashes when tearing down the proactor event loop

2020-09-12 Thread Caleb Hattingh
Change by Caleb Hattingh : -- nosy: +cjrh ___ Python tracker <https://bugs.python.org/issue39232> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41505] asyncio.gather of large streams with limited resources

2020-08-23 Thread Caleb Hattingh
Caleb Hattingh added the comment: The traditional way this done is with a finite number of workers pulling work off a queue. This is straightforward to set up with builtins: from uuid import uuid4 import asyncio, random async def worker(q: asyncio.Queue): while job := await q.get

[issue41232] Python `functools.wraps` doesn't deal with defaults correctly

2020-08-06 Thread Caleb Donovick
Change by Caleb Donovick : -- nosy: +donovick ___ Python tracker <https://bugs.python.org/issue41232> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40894] asyncio.gather() cancelled() always False

2020-06-12 Thread Caleb Hattingh
Caleb Hattingh added the comment: Kyle is correct. By analogy with Kyle's example, the following example has no gather, only two nested futures: ``` # childfut.py import asyncio async def f(fut): await fut async def g(t): await asyncio.sleep(t) async def main(): fut_g

[issue39839] Non-working error handler when creating a task with assigning a variable

2020-03-15 Thread Caleb Hattingh
Caleb Hattingh added the comment: Can reproduce also on 3.8. Another version that "works" (raises the exception) is task = loop.create_task(test()) del task Suggests there's something going on with reference counting or garbage collection. In the version that &qu

[issue39857] subprocess.run: add an extra_env kwarg to complement existing env kwarg

2020-03-10 Thread Caleb Hattingh
Caleb Hattingh added the comment: The dict unpacking generalizations that I posted were added in Python 3.5, which is pretty old by now. (But, true, is in Python 3 and not Python 2). This is the PEP: https://www.python.org/dev/peps/pep-0448/ The new syntax that Brandt posted will indeed

[issue39857] subprocess.run: add an extra_env kwarg to complement existing env kwarg

2020-03-07 Thread Caleb Hattingh
Caleb Hattingh added the comment: dict syntax tools make it fairy easy to compose new dicts from old ones with overrides: subprocess.run(..., env={**os.environ, 'FOO': ..., 'BAR', ...}, ...) Would this be sufficient to avoid the copy/pasting boilerplate? -- nosy: +cjrh

[issue39753] inspecting a partial with bound keywods gives incorrect signature

2020-02-27 Thread Caleb Donovick
Change by Caleb Donovick : -- nosy: +donovick ___ Python tracker <https://bugs.python.org/issue39753> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39775] inspect.Signature.parameters should be an OrderedDict, not a plain dict

2020-02-27 Thread Caleb Donovick
Change by Caleb Donovick : -- nosy: +donovick ___ Python tracker <https://bugs.python.org/issue39775> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17422] language reference should specify restrictions on class namespace

2020-02-27 Thread Caleb Donovick
Change by Caleb Donovick : -- pull_requests: +18041 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/18682 ___ Python tracker <https://bugs.python.org/issu

[issue17422] language reference should specify restrictions on class namespace

2020-02-27 Thread Caleb Donovick
Caleb Donovick added the comment: While It is perfectly fine behavior for CPython to use a dict, as dict is an ordered mapping. I think Eric is right that the data model should not specify that a dict is necessarily used in the absence of __prepare__

[issue39609] Set the thread_name_prefix for asyncio's default executor ThreadPoolExecutor

2020-02-17 Thread Caleb Hattingh
Caleb Hattingh added the comment: This change seems fine. Markus, I'm curious if there is a specific reason you prefer to use the default executor rather than replacing it with your own? Is it just convenience or are there other reasons? -- nosy: +cjrh

[issue17422] language reference should specify restrictions on class namespace

2020-02-07 Thread Caleb Donovick
Change by Caleb Donovick : -- nosy: +donovick ___ Python tracker <https://bugs.python.org/issue17422> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38988] Killing asyncio subprocesses on timeout?

2020-02-01 Thread Caleb Hattingh
Caleb Hattingh added the comment: @dontbugme This is a very old problem with threads and sub-processes. In the general case (cross-platform, etc) it is difficult to kill threads and sub-processes from the outside. The traditional solution is to somehow send a message to the thread

[issue39483] Proposial add loop parametr to run in asyncio

2020-02-01 Thread Caleb Hattingh
Caleb Hattingh added the comment: Hmm, my recent comment looks rude but I didn't intend it to be that way. What I mean is: there are many, many more users of asyncio.run than there are of teleton, so any change made to asyncio.run is going to affect more people than the other way round. So

[issue39483] Proposial add loop parametr to run in asyncio

2020-02-01 Thread Caleb Hattingh
Caleb Hattingh added the comment: @heckad You should instead ask the maintainers of teleton how to use their library with asyncio.run, not the other way round. -- nosy: +cjrh ___ Python tracker <https://bugs.python.org/issue39

[issue39010] ProactorEventLoop raises unhandled ConnectionResetError

2020-02-01 Thread Caleb Hattingh
Change by Caleb Hattingh : -- nosy: +cjrh ___ Python tracker <https://bugs.python.org/issue39010> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37334] Add a cancel method to asyncio Queues

2019-11-22 Thread Caleb Hattingh
Caleb Hattingh added the comment: Ok, I see now. The improvement with only a single producer/consumer might be marginal, but the proposition that `queue.cancel()` might simplify the situation with multiple producers and/or consumers is more compelling. Usually, assuming M producers and N

[issue35113] inspect.getsource returns incorrect source for classes when class definition is part of multiline strings

2019-10-24 Thread Caleb Donovick
Change by Caleb Donovick : -- nosy: +donovick ___ Python tracker <https://bugs.python.org/issue35113> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38529] Python 3.8 improperly warns about closing properly closed streams

2019-10-19 Thread Caleb Hattingh
Change by Caleb Hattingh : -- nosy: +cjrh ___ Python tracker <https://bugs.python.org/issue38529> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38501] multiprocessing.Pool hangs atexit (and garbage collection sometimes)

2019-10-19 Thread Caleb Hattingh
Change by Caleb Hattingh : -- nosy: +cjrh ___ Python tracker <https://bugs.python.org/issue38501> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38306] High level API for loop.run_in_executor(None, ...)?

2019-10-12 Thread Caleb Hattingh
Caleb Hattingh added the comment: We can't allow both an `executor=` kwarg, as well as **kwargs for the target func, unfortunately. If we do `executor=`, we'll again have to force users to use functools.partial to wrap their functions that take kwargs

[issue38306] High level API for loop.run_in_executor(None, ...)?

2019-10-12 Thread Caleb Hattingh
Caleb Hattingh added the comment: Even before task groups land, this API can be easily improved by adding asyncio.run_in_executor(func, *args, **kwargs) - Only valid inside a coro or async context (uses get_running_loop internally) - Analogous to how `loop.create_task` became

[issue37736] asyncio.wait_for is still confusing

2019-10-05 Thread Caleb Hattingh
Caleb Hattingh added the comment: > asyncio.wait_for is still confusing Perhaps the confusion can be fixed with improvements to the docs? To me, these specific docs seem pretty clear now, but I might not be a good judge of that. > However, we still have the case where a misbehaving Ta

[issue38164] polishing asyncio Streams API

2019-09-29 Thread Caleb Hattingh
Change by Caleb Hattingh : -- nosy: +cjrh ___ Python tracker <https://bugs.python.org/issue38164> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38242] Revert the new asyncio Streams API

2019-09-29 Thread Caleb Hattingh
Change by Caleb Hattingh : -- nosy: +cjrh ___ Python tracker <https://bugs.python.org/issue38242> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34037] asyncio: BaseEventLoop.close() shutdowns the executor without waiting causing leak of dangling threads

2019-09-11 Thread Caleb Hattingh
Change by Caleb Hattingh : -- nosy: +cjrh ___ Python tracker <https://bugs.python.org/issue34037> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37922] inspect.getsource returns wrong class definition when multiple class definitions share the same name (but are defined in different scopes)

2019-08-22 Thread Caleb Donovick
Caleb Donovick added the comment: I think findsource could be made more robust by using __qualname__ if it available. -- ___ Python tracker <https://bugs.python.org/issue37

[issue37922] inspect.getsource returns wrong class definition when multiple class definitions share the same name (but are defined in different scopes)

2019-08-22 Thread Caleb Donovick
Change by Caleb Donovick : -- nosy: +donovick ___ Python tracker <https://bugs.python.org/issue37922> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35083] Fix documentation for __instancecheck__

2019-07-29 Thread Caleb Donovick
Change by Caleb Donovick : -- nosy: +donovick ___ Python tracker <https://bugs.python.org/issue35083> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37670] Description of UserDict is misleading

2019-07-24 Thread Caleb Donovick
New submission from Caleb Donovick : The documentation for collections.UserDict states "In addition to supporting the methods and operations of mappings, UserDict instances provide the following attribute: ..." This however is misleading as it supports the operations of mutabl

[issue36881] isinstance raises TypeError for metaclass with metaclass=ABCMeta

2019-07-01 Thread Caleb Donovick
Change by Caleb Donovick : -- nosy: +donovick ___ Python tracker <https://bugs.python.org/issue36881> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37334] Add a cancel method to asyncio Queues

2019-06-21 Thread Caleb Hattingh
Caleb Hattingh added the comment: I'm interested in how this change would affect the pattern of shutting down a queue-processing task. How would one decide between whether to cancel the queue or the task? (I'm asking for real, this is not an objection to the PR). For example, looking

[issue37349] venv.EnvBuilder environmental variable hooks

2019-06-20 Thread Caleb Donovick
Caleb Donovick added the comment: I have another idea, instead of baking in the semantics of the environmental variables, we could simply add the hooks __VENV_ACTIVATE_EXTRAS__ and __VENV_DEACTIVATE_EXTRAS__ to activate. By default they would be replaced by '', but would allow subclasses

[issue37349] venv.EnvBuilder environmental variable hooks

2019-06-20 Thread Caleb Donovick
Caleb Donovick added the comment: >PowerShell has a full programming language and all details can be found in >pyvenv.cfg now as of Python 3.8. So Activate.ps1 can read that file to get >what it needs to set paths and the prompt which is what gets substituted into >the generate

[issue37354] Write PowerShell Activate.ps1 to be static so it can be signed

2019-06-20 Thread Caleb Donovick
Change by Caleb Donovick : -- nosy: +donovick ___ Python tracker <https://bugs.python.org/issue37354> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37349] venv.EnvBuilder environmental variable hooks

2019-06-20 Thread Caleb Donovick
Caleb Donovick added the comment: > I didn't say environment variables weren't commonly used. I'm talking about > the specific functionality this issue is about. This is likely true, to most people venv is black magic. That doesn't mean that people wouldn't use it if the functio

[issue37349] venv.EnvBuilder environmental variable hooks

2019-06-20 Thread Caleb Donovick
Caleb Donovick added the comment: In regards to the added complexity by needing to be implemented across all shells, the functionality I am requesting already exists across all shells (e.g. setting PYTHONPATH) just not in a extensible way

[issue37349] venv.EnvBuilder environmental variable hooks

2019-06-20 Thread Caleb Donovick
Caleb Donovick added the comment: Common python libraries that make use of environmental variables: - django - flask - jupyter - TensorFlow This is just off the top my head. While most developers are probably fine just setting the required variables at a system level that doesn't mean

[issue37349] venv.EnvBuilder environmental variable hooks

2019-06-20 Thread Caleb Donovick
Caleb Donovick added the comment: I have basic version working in POSIX. -- ___ Python tracker <https://bugs.python.org/issue37349> ___ ___ Python-bugs-list m

[issue37349] venv.EnvBuilder environmental variable hooks

2019-06-20 Thread Caleb Donovick
Change by Caleb Donovick : -- keywords: +patch pull_requests: +14096 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14272 ___ Python tracker <https://bugs.python.org/issu

[issue37349] venv.EnvBuilder environmental variable hooks

2019-06-20 Thread Caleb Donovick
New submission from Caleb Donovick : Currently EnvBuilder allows for a number of customizations of virtual environments, however, it does not allow for any modifications of the activate script itself (unless one wants to rewrite it completely). Yet, it is fairly common requirement

[issue34831] Asyncio Tutorial

2019-06-19 Thread Caleb Hattingh
Caleb Hattingh added the comment: I'm removing the GUI section of the chat case study. Yury was right, it's not going to add anything useful. The CLI chat client will work well because prompt-toolkit has actual support for asyncio. Tkinter does not, and I think it'll be better to add a GUI

[issue34831] Asyncio Tutorial

2019-06-16 Thread Caleb Hattingh
Caleb Hattingh added the comment: FYI I'm going to be using the 3rd-party prompt-toolkit for the chat client. (The server depends only on asyncio only). I put several hours research into finding a way for the CLI chat client to be not terrible, but it gets very complicated trying to manage

[issue34831] Asyncio Tutorial

2019-06-15 Thread Caleb Hattingh
Caleb Hattingh added the comment: That was an long two months, apologies. I've made some fixes based on review comments and cleaned up some more of the code samples. The primary outstanding pieces are the client component of the chat application case study, and the GUI integration section

[issue29282] Fused multiply-add: proposal to add math.fma()

2019-05-16 Thread Caleb Donovick
Change by Caleb Donovick : -- nosy: +donovick ___ Python tracker <https://bugs.python.org/issue29282> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35297] untokenize documentation is not correct

2019-04-16 Thread Caleb Donovick
Change by Caleb Donovick : -- nosy: +donovick ___ Python tracker <https://bugs.python.org/issue35297> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19495] context manager for measuring duration of blocks of code

2019-03-25 Thread Caleb Hattingh
Caleb Hattingh added the comment: Somehow I missed that there's been an open issue on this. Like others I've written a bunch of different incarnations of an "elapsed" context manager over the years. Always for the more crude "how long did this take" reason like Da

[issue17421] Drop restriction that meta.__prepare__() must return a dict (subclass)

2019-03-12 Thread Caleb Donovick
Caleb Donovick added the comment: In my mind this seems like a bug. PEP 3115 states: ''' __prepare__ returns a dictionary-like object which is used to store the class member definitions during evaluation of the class body. In other words, the class body is evaluated as a function block (just

[issue17421] Drop restriction that meta.__prepare__() must return a dict (subclass)

2019-03-12 Thread Caleb Donovick
Change by Caleb Donovick : -- nosy: +donovick ___ Python tracker <https://bugs.python.org/issue17421> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35992] Metaclasses interfere with __class_getitem__

2019-02-13 Thread Caleb Donovick
New submission from Caleb Donovick : OS: Debian testing python3 -VV: Python 3.7.2+ (default, Feb 2 2019, 14:31:48) [gcc 8.2.0] The following: ``` class Meta(type): pass class X(metaclass=Meta): def __class_getitem__(cls, key): return key X[10] ``` Results in ``` TypeError

[issue34831] Asyncio Tutorial

2019-01-05 Thread Caleb Hattingh
Caleb Hattingh added the comment: A quick note to say I have not abandoned this, it's just that life got complicated for me in late 2018. I intend to pick up progress again within the next month or two. -- ___ Python tracker <ht

[issue30487] DOC: automatically create a venv and install Sphinx when running make

2019-01-05 Thread Caleb Hattingh
Caleb Hattingh added the comment: @cheryl.sabella I am ok with closing this, but the original motivation for this work was from @zack.ware so he should weigh in. I am not going to work on this any further for the forseeable future (I've got my hands full already with the asyncio docs I'm

[issue34831] Asyncio Tutorial

2018-10-21 Thread Caleb Hattingh
Caleb Hattingh added the comment: I've added a few ideas for items in the "cookbook" page, which you'll see in the PR. If anyone has suggestions for more or better cookbook entries (recipes?), feel free to mention here or in the PR, I check both places. I expect to get more ti

[issue35036] logger failure in suspicious.py

2018-10-21 Thread Caleb Hattingh
Change by Caleb Hattingh : -- nosy: +cjrh ___ Python tracker <https://bugs.python.org/issue35036> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34831] Asyncio Tutorial

2018-10-07 Thread Caleb Hattingh
Caleb Hattingh added the comment: I tested the Python 3.7.0 release version for Mac, the download called "macOS 64-bit installer" with checksum ae0717a02efea3b0eb34aadc680dc498 on this page: https://www.python.org/downloads/release/python-370/ I downloaded, installed tha

[issue34831] Asyncio Tutorial

2018-10-07 Thread Caleb Hattingh
Caleb Hattingh added the comment: I set up a basic structure under "Doc/library/asyncio-tutorial" as suggested, and opened a PR to show you how that looks. When I make more progress on a section, I'll post an update here. -- ___ Pyth

[issue34831] Asyncio Tutorial

2018-10-07 Thread Caleb Hattingh
Change by Caleb Hattingh : -- keywords: +patch pull_requests: +9134 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34831> ___ ___ Py

[issue34831] Asyncio Tutorial

2018-10-06 Thread Caleb Hattingh
Caleb Hattingh added the comment: A CLI client is a necessary step along the way anyway, so that sounds good by me. You suggested: > I'd organize the tutorial in a dedicated directory like > "Doc/library/asyncio-tutorial/" I had a look at the source tree, there is an

[issue34831] Asyncio Tutorial

2018-10-01 Thread Caleb Hattingh
Caleb Hattingh added the comment: > * I think we should stick to your structure and push things to > docs.python.org as soon as every next section is somewhat ready. Ok. I'll get a PR going for the start page of the tutorial. > * Every big section should probably have its own page

[issue34831] Asyncio Tutorial

2018-09-28 Thread Caleb Hattingh
New submission from Caleb Hattingh : Hi Yury, As discussed, below is a very rough outline of a proposed TOC for an asyncio tutorial. No content has been written yet (only what you see below). I think we should nail down the TOC first. Asyncio Tutorial Proposed Table

[issue30487] DOC: automatically create a venv and install Sphinx when running make

2017-11-27 Thread Caleb Hattingh
Caleb Hattingh <caleb.hatti...@gmail.com> added the comment: Yep, sounds good. -- ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue30487] DOC: automatically create a venv and install Sphinx when running make

2017-11-27 Thread Caleb Hattingh
Caleb Hattingh <caleb.hatti...@gmail.com> added the comment: It looks like the check for an existing sphinx-build passes, and so no new venv is made, but this also means that blurb doesn't get installed. I was concerned about this, but figured that at least the buildbots would create ne

[issue30487] DOC: automatically create a venv and install Sphinx when running make

2017-11-27 Thread Caleb Hattingh
Caleb Hattingh <caleb.hatti...@gmail.com> added the comment: Hi Ned It's still supposed to allow both. It sounds like it's not working properly. I'll have a look. FYI, I worked on this for Zach Ware who is the primary stakeholder for this feature. Rgds Caleb > On 28 Nov 2017, a

[issue30487] DOC: automatically create a venv and install Sphinx when running make

2017-11-09 Thread Caleb Hattingh
Caleb Hattingh <caleb.hatti...@gmail.com> added the comment: No worries. I've made a new PR 4346. The old one was unsalvagable I'm afraid. Too many other people got added to the notifications list as a result of my incorrect rebase. The new one i

[issue30487] DOC: automatically create a venv and install Sphinx when running make

2017-11-09 Thread Caleb Hattingh
Change by Caleb Hattingh <caleb.hatti...@gmail.com>: -- keywords: +patch pull_requests: +4303 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue30487] DOC: automatically create a venv and install Sphinx when running make

2017-11-08 Thread Caleb Hattingh
Caleb Hattingh <caleb.hatti...@gmail.com> added the comment: I messed up the PR through a failed rebase (trying to rebase my PR on top of upstream). I closed the PR as a result. I have now fixed up my feature branch, but I have not resubmitted the PR. Since the PR was left alone fo

[issue31620] asyncio.Queue leaks memory if the queue is empty and consumers poll it frequently

2017-09-29 Thread Caleb Hattingh
Caleb Hattingh <caleb.hatti...@gmail.com> added the comment: This looks like a dupe, or at least quite closely related to https://bugs.python.org/issue26259. If the PR resolves both issues that one should be closed too. -- nosy: +cjrh ___

[issue30487] DOC: automatically create a venv and install Sphinx when running make

2017-05-26 Thread Caleb Hattingh
New submission from Caleb Hattingh: Under guidance from zware during Pycon sprints, I've changed the Doc/ Makefile to automatically create a virtual environment and install Sphinx, all as part of the `make html` command. -- assignee: docs@python components: Documentation messages

[issue30433] Devguide lacks instructions for building docs

2017-05-26 Thread Caleb Hattingh
Caleb Hattingh added the comment: The PR has been merged by Mariatta so I think this can be closed. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue30433] Devguide lacks instructions for building docs

2017-05-22 Thread Caleb Hattingh
Caleb Hattingh added the comment: Oops, sorry! The PR was wrong because it auto-assumes the main cpython repo, but my PR is in the devguide repo. This is the URL for the PR: https://github.com/python/devguide/pull/206 -- ___ Python tracker <

[issue30433] Devguide lacks instructions for building docs

2017-05-22 Thread Caleb Hattingh
Changes by Caleb Hattingh <caleb.hatti...@gmail.com>: -- pull_requests: -1812 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue30433] Devguide lacks instructions for building docs

2017-05-22 Thread Caleb Hattingh
New submission from Caleb Hattingh: The official devguide at https://github.com/python/devguide does not include instructions on exactly how to build the docs! If, after cloning, you simply type `make`, you get some helpful output: $ make Please use `make ' where is one of html

[issue15663] Investigate providing Tcl/Tk 8.6 with OS X installers

2016-09-01 Thread Caleb Hattingh
Changes by Caleb Hattingh <caleb.hatti...@gmail.com>: -- nosy: +cjrh ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15663> ___ _

[issue12294] multiprocessing.Pool: Need a way to find out if work are finished.

2016-08-19 Thread Caleb Hattingh
Changes by Caleb Hattingh <caleb.hatti...@gmail.com>: -- nosy: +cjrh ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12294> ___ _

[issue12982] Document that importing .pyo files needs python -O

2016-08-19 Thread Caleb Hattingh
Caleb Hattingh added the comment: Presumably PEP488 (and the 4 years of inactivity) means that this issue could be closed? -- nosy: +cjrh ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue11602] python-config code should be in sysconfig

2016-08-19 Thread Caleb Hattingh
Changes by Caleb Hattingh <caleb.hatti...@gmail.com>: -- nosy: +cjrh ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11602> ___ _

[issue25572] _ssl doesn't build on OSX 10.11

2016-06-23 Thread Caleb Hattingh
Caleb Hattingh added the comment: I struggled with this issue, and eventually found the recommendations about linking with homebrew's OpenSSL on StackOverflow or similar, and then only later found this issue here (and with it the link to the devguide); but the *first* places I looked were

[issue25572] _ssl doesn't build on OSX 10.11

2016-06-15 Thread Caleb Hattingh
Changes by Caleb Hattingh <caleb.hatti...@gmail.com>: -- nosy: +cjrh ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25572> ___ _

[issue24434] ItemsView.__contains__ does not mimic dict_items

2015-06-11 Thread Caleb Levy
Changes by Caleb Levy caleb.l...@berkeley.edu: -- components: Library (Lib) nosy: clevy, rhettinger, stutzbach priority: normal severity: normal status: open title: ItemsView.__contains__ does not mimic dict_items type: behavior versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4

[issue24434] ItemsView.__contains__ does not mimic dict_items

2015-06-11 Thread Caleb Levy
New submission from Caleb Levy: The current implementation ItemsView.__contains__ reads class ItemsView(MappingView, Set): ... def __contains__(self, item): key, value = item try: v = self._mapping[key] except KeyError: return False

[issue24434] ItemsView.__contains__ does not mimic dict_items

2015-06-11 Thread Caleb Levy
Caleb Levy added the comment: @serhiy.storchaka: I don't think that will work. First of all, x, y = item will raise a ValueError if fed an iterable whose length is not exactly 2, so you would have to check for that. Moreover, if item is something like a dict, for example

[issue24434] ItemsView.__contains__ does not mimic dict_items

2015-06-11 Thread Caleb Levy
Caleb Levy added the comment: Sorry; that should be DictLikeMapping(a=b).items(), where DictLikeMapping is defined in the patch unit tests. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24434

[issue15515] Regular expression match does not return

2012-07-31 Thread Caleb Rouleau
New submission from Caleb Rouleau: Version info: 2.7.1 (r271:86832, Feb 7 2011, 11:33:02) [MSC v.1500 64 bit (AMD64)] The program included never prints done because it never returns from re.match(). -- Caleb Rouleau -- components: Regular Expressions files: RegexBug.py messages

[issue15515] Regular expression match does not return

2012-07-31 Thread Caleb Rouleau
Caleb Rouleau added the comment: Thanks for the help. Apologies for the poor understanding of regular expressions. Closing this issue. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15515

Re: Lambda alternative?

2009-04-15 Thread Caleb Hattingh
On Wed, 15 Apr 2009 15:47:05 +0200, mousem...@gmail.com wrote: But, lambda functions can't be pickled. I would like to pickle my objects, and i would really like to use parallel python (which requires pickling). If you are fixated on using lambda, you could probably use Recipe 7.6: Pickling

[issue3129] struct allows repeat spec. without a format specifier

2008-06-17 Thread Caleb Deveraux
New submission from Caleb Deveraux [EMAIL PROTECTED]: I'm not exactly sure if this is a bug or by design. Within the struct module, whenever you provide a format string containing a repeat count with no associated format specifier, the count is silently ignored. eg. struct.pack(12345

Re: Python's great, in a word

2008-01-10 Thread Caleb
The best thing about Python is ___. this. -- http://mail.python.org/mailman/listinfo/python-list

Re: I'm searching for Python style guidelines

2008-01-10 Thread Caleb
style if you do a lot of what's in this list. This list is not mine. I jotted these points down, but this information is continually repeated by the actual wise people (not me) in this newsgroup. Caleb -- http://mail.python.org/mailman/listinfo/python-list

Re: Strip lines from files

2008-01-10 Thread Caleb
('.') if filename.find('.pdb.')] Caleb -- http://mail.python.org/mailman/listinfo/python-list

Monitoring the output of an external program

2007-12-12 Thread Caleb Marcus
I'm writing something that has to invoke an external program, and every time the external program prints something, update a UI. How would I go about doing this? signature.asc Description: This is a digitally signed message part -- http://mail.python.org/mailman/listinfo/python-list

Re: No speedup on multi-processor machine?

2007-04-21 Thread Caleb Hattingh
of something called GIL in Python. How can I get around that GIL and get speed-up? Thanks in advance. Daniel Perhaps try http://www.parallelpython.com/ or http://www.its.caltech.edu/~astraw/seppo.html Caleb -- http://mail.python.org/mailman/listinfo/python-list

Re: I need suggests

2007-01-23 Thread Caleb Hattingh
Pat wrote: I have to do a big programm. Could someone give me some suggests about IDE (on Linux) and books to learn. http://groups.google.com/groups/search?q=python+ideqt_s=Search Lots and lots to read :) Caleb -- http://mail.python.org/mailman/listinfo/python-list

Re: rsync for python?

2006-12-22 Thread Caleb Hattingh
(windows), if that was the functionality you wanted in a server implementation of such a tool. regards Caleb -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a way to push data into Microsoft Excel Word from Python ?

2006-12-21 Thread Caleb Hattingh
Hi Paul Thanks for the kind words! No, thank _you_ for taking the time to write such a useful document. regards Caleb -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a way to push data into Microsoft Excel Word from Python ?

2006-12-16 Thread Caleb Hattingh
logic sit in one place. The wrapper can use the right API depending on the platform it finds itself on at runtime. Regards Caleb -- http://mail.python.org/mailman/listinfo/python-list

Re: Dictionary, iterate update objects

2006-12-16 Thread Caleb Hattingh
some Ruby experience. That way, the guys in here who also know Ruby (not me :) can quickly point out the differences in behaviour for your specific question. Regards Caleb -- http://mail.python.org/mailman/listinfo/python-list

Re: automatically grading small programming assignments

2006-12-15 Thread Caleb Hattingh
server procedure can return True or False. One benefit is that if you change the input to the tests, you need only update the server.Actually, you could let the procedures on the server accept test input and student results, and return True or False. This would be cool :) Caleb On Dec 14

  1   2   >