ImportError: No module named spambayes.resources (line 12 of setup_all.py)

2022-08-24 Thread Erik M. Brown via Python-list
module import error? I can provide files and/or more details as well. Thank you all for the help! Take care, Erik Brown -- https://mail.python.org/mailman/listinfo/python-list

[issue45100] Improve help() by making typing.overload() information accessible at runtime

2022-02-21 Thread Spencer Brown
Spencer Brown added the comment: Had a potential thought. Since the only situation we care about is overload being used on function definitions in lexical order, valid calls are only that on definitions with ascending co_firstlineno counts. Expanding on Jelle's solution, the overload

[issue45100] Improve help() by making typing.overload() information accessible at runtime

2022-02-21 Thread Spencer Brown
Spencer Brown added the comment: I'm not sure a get_overloads() function potentially called after the fact would fully work - there's the tricky case of nested functions, where the overload list would need to be somehow cleared to ensure every instantiation doesn't endlessly append

[issue46467] Rounding 5, 50, 500 behaves differently depending on preceding value

2022-01-21 Thread Spencer Brown
Spencer Brown added the comment: This is intentional behaviour, if the value is 5 it rounds towards even as documented here: https://docs.python.org/3/library/functions.html#round The reason is so that if you have a bunch of random data, rounding won't slightly bias the result upward

[issue46382] dataclass(slots=True) does not account for slots in base classes

2022-01-15 Thread Spencer Brown
Spencer Brown added the comment: Both will function, but class B will add its slots after A's, causing there to be an extra unused slot in the object that you can only access by directly using the A.a descriptor. So all slotted inheriting dataclasses cause the object to use more memory than

[issue46133] Feature request: allow mechanism for creator of exec-generated code to provide source to pdb

2022-01-15 Thread Spencer Brown
Spencer Brown added the comment: There is a solution to this: you can modify the linecache module's cache to add lines under a fake filename, which is the approach attrs takes here: https://github.com/python-attrs/attrs/blob/9727008fd1e40bc55cdc6aee71e0f61553f33127/src/attr/_make.py#L347

[issue44166] Make IndexError messages for list more informative

2021-12-05 Thread Spencer Brown
Spencer Brown added the comment: One potential solution would be to add two Py_ssize_t to IndexError, storing the index and length along with the existing exception value. Then __str__() can append that to the message if set, perhaps having len be negative to signal they're not passed

[issue45972] typing.NamedTuple with default arguments without type annotations is falsy

2021-12-03 Thread Spencer Brown
Spencer Brown added the comment: What's happening is that typing.NamedTuple ignores non-annotated attributes entirely when computing the names it passes along to namedtuple(), so here "a" is just a class attribute. You're accessing it from there, but the tuple itself is enti

[issue42369] Reading ZipFile not thread-safe

2021-11-07 Thread Spencer Brown
Change by Spencer Brown : -- nosy: +Spencer Brown ___ Python tracker <https://bugs.python.org/issue42369> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45579] [list.append(i) for i in list] causes high resources usage

2021-10-22 Thread Spencer Brown
Spencer Brown added the comment: This is intentional behaviour, you actually created an infinite loop. When you iterate over a list, all Python does is track the current index through the list internally, incrementing it each time. But each iteration, you call list.append() to add a new

[issue44342] enum with inherited type won't pickle

2021-06-07 Thread Tom Brown
New submission from Tom Brown : The following script runs without error in 3.8.5 and raises an error in 3.8.6, 3.9.5 and 3.10.0b1. Source: ``` import enum, pickle class MyInt(int): pass # work-around: __reduce_ex__ = int.__reduce_ex__ class MyEnum(MyInt, enum.Enum): A = 1

[issue34027] python 3.7 openpty/forkpty build failure using nix package manager macOS environment

2021-05-01 Thread Luke Granger-Brown
Luke Granger-Brown added the comment: Still seems to be a problem with everything up to Py3.11. -- nosy: +lukegb versions: +Python 3.10, Python 3.11, Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issue34

[ANN] Datatest 0.11.1 Released

2021-01-03 Thread Shawn Brown
I'm pleased to announce version 0.11.1 of Datatest: Test driven data-wrangling and data validation. Test driven data-wrangling is a process for taking data from a source of unverified quality or format and producing a verified, well-formatted dataset. It repurposes software testing practices for

[ANN] Datatest 0.11.0 Released

2020-12-18 Thread Shawn Brown
I'm pleased to announce the release of Datatest version 0.11.0. Datatest implements a system of *validation* methods, *difference* classes, and *acceptance* context managers. It can be used directly in your own projects or as part of a testing framework like pytest or unittest. This is a large

Re: [Twisted-Python] Twisted 20.3.0 Release Announcement

2020-03-23 Thread Amber Brown (hawkowl)
On 21/3/20 12:20 am, Amber Brown (hawkowl) wrote: On behalf of Twisted Matrix Laboratories, I am honoured to announce the release of Twisted 20.3! As an addendum, as discussed earlier in the year on Twisted's mailing list, this release is the final one to support Python 2.7. The next

Twisted 20.3.0 Release Announcement

2020-03-20 Thread Amber Brown (hawkowl)
On behalf of Twisted Matrix Laboratories, I am honoured to announce the release of Twisted 20.3! The highlights of this release are: - curve25519-sha256 key exchange algorithm support in Conch. - "openssh-key-v1" key format support in Conch. - Security fixes to twisted.web, including preventing

[ANN] Squint: Simple query interface for tabular data.

2020-01-11 Thread Shawn Brown
[RESEND WITH CORRECTED LINK] Squint version 0.1.0 has been released: * New query previews provide convenient feedback at the interactive prompt. * Completely rewritten tutorial https://squint.readthedocs.io/en/stable/tutorial/ * Added support for

[issue27657] urlparse fails if the path is numeric

2020-01-03 Thread James Brown
James Brown added the comment: This is a surprising change to put in a minor release. This change totally changes the semantics of parsing scheme-less URLs with ports in them and ended up breaking a significant amount of my software. It turns out that urls like `example.com:80` are more

[issue39198] Lock may not be released in Logger.isEnabledFor

2020-01-02 Thread Derek Brown
Derek Brown added the comment: PR is here: https://github.com/python/cpython/pull/17689 -- ___ Python tracker <https://bugs.python.org/issue39198> ___ ___ Pytho

[issue39198] Lock may not be released in Logger.isEnabledFor

2020-01-02 Thread Derek Brown
New submission from Derek Brown : If an exception were to be thrown in a particular block of code (say, by asyncio timeouts or stopit) within the `isEnabledFor` function of `logging`, the `logging` global lock may not be released appropriately, resulting in deadlock. -- components

[issue39198] Lock may not be released in Logger.isEnabledFor

2020-01-02 Thread Derek Brown
Change by Derek Brown : -- keywords: +patch pull_requests: +17236 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17689 ___ Python tracker <https://bugs.python.org/issu

[ANN] get-reader 1.0.0 stable release

2019-12-28 Thread Shawn Brown
Happy Holidays! The first stable release of get-reader, version 1.0.0 is now available. * https://pypi.org/project/get-reader/ * https://github.com/shawnbrown/get_reader This module provides a `get_reader()` function that returns reader objects similar to those returned by `csv.reader()`. This

[issue37226] Asyncio Fatal Error on SSL Transport - IndexError Deque Index Out Of Range

2019-12-11 Thread Ben Brown
Change by Ben Brown : -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue37226> ___ ___ Python-bugs-list

Twisted 19.10.0 Release Announcement

2019-11-11 Thread Amber Brown (hawkowl)
On behalf of Twisted Matrix Laboratories, I am honoured to announce the release of Twisted 19.10! The highlights of this release are: - Security fixes for HTTP/2 -- CVE-2019-9512 (Ping Flood), CVE-2019-9514 (Reset Flood), and CVE-2019-9515 (Settings Flood). Thanks to Jonathan Looney and

[issue38055] Starting multiprocessing.Process raises FileNotFoundError unexpectedly

2019-09-10 Thread Donny Brown
Change by Donny Brown : -- title: Starting multiprocessing.Process causes FileNotFoundError -> Starting multiprocessing.Process raises FileNotFoundError unexpectedly type: -> behavior ___ Python tracker <https://bugs.python.org/i

[issue38055] Starting multiprocessing.Process causes FileNotFoundError

2019-09-08 Thread Donny Brown
New submission from Donny Brown : Starting multiprocessing.Process causes FileNotFoundError in certain case: ``` import multiprocessing as mp import time def demo(f): print(f) def main(): cxt=mp.get_context('spawn') f=cxt.Value('i', 0) p=cxt.Process(target=demo, args=[f

[issue24313] json fails to serialise numpy.int64

2019-08-26 Thread Vicki Brown
Vicki Brown added the comment: Note also that pandas DataFrame.to_json() method has no issue with int64. Perhaps you could borrow their code. -- ___ Python tracker <https://bugs.python.org/issue24

[issue24313] json fails to serialise numpy.int64

2019-08-26 Thread Vicki Brown
Vicki Brown added the comment: This is still broken. With pandas being popular, it's more likely someone might hit it. Can we fix this? At the very least, the error message needs to be made much more specific. I have created a dictionary containing pandas stats. ``` def summary_stats(s

[issue37226] Asyncio Fatal Error on SSL Transport - IndexError Deque Index Out Of Range

2019-07-22 Thread Ben Brown
Ben Brown added the comment: I can fully confirm the issue is due to flow control or lack of in my code the system runs out of resources and this is when it errors, I have implemented flow control in my protocol and it now works without errors. One thing I did find is that the documentation

[issue37226] Asyncio Fatal Error on SSL Transport - IndexError Deque Index Out Of Range

2019-07-19 Thread Ben Brown
Ben Brown added the comment: With some more research it looks like the issue is flow related, I experimented with the StreamWriter in a simple server and using that plus drain() appears to have worked an I no longer get the error. I have added my new server to the gist I posted above

[issue37226] Asyncio Fatal Error on SSL Transport - IndexError Deque Index Out Of Range

2019-07-09 Thread Ben Brown
Ben Brown added the comment: Maayan Keshet do you have a minimal example it would be interesting to compare against our code and see if there is something we are both doing that could help narrow down the issue. -- ___ Python tracker <ht

[issue37226] Asyncio Fatal Error on SSL Transport - IndexError Deque Index Out Of Range

2019-06-24 Thread Ben Brown
Ben Brown added the comment: Hi is there any update on this issue, were you able to replicate the error with the minimal example I provided or is there any additional information I can provide. -- ___ Python tracker <https://bugs.python.

[issue37226] Asyncio Fatal Error on SSL Transport - IndexError Deque Index Out Of Range

2019-06-12 Thread Ben Brown
Ben Brown added the comment: I have created a minimal example if that helps to show the issue https://gist.github.com/bobthemac/031213b8e37960ee805f2ae1e6990b60 -- ___ Python tracker <https://bugs.python.org/issue37

[issue37226] Asyncio Fatal Error on SSL Transport - IndexError Deque Index Out Of Range

2019-06-11 Thread Ben Brown
Ben Brown added the comment: I tested an older version of OpenSSL 1.0.2g and I get the same error on that -- ___ Python tracker <https://bugs.python.org/issue37

[issue37226] Asyncio Fatal Error on SSL Transport - IndexError Deque Index Out Of Range

2019-06-11 Thread Ben Brown
Ben Brown added the comment: I am using the version I mentioned above 1.1.0 and TLS 1.2, I am sorry I can't be of more help. -- ___ Python tracker <https://bugs.python.org/issue37

[issue37226] Asyncio Fatal Error on SSL Transport - IndexError Deque Index Out Of Range

2019-06-11 Thread Ben Brown
Ben Brown added the comment: That's a shame, which version should it work on I don't mind downgrading for now to fix the issue as a workaround. -- ___ Python tracker <https://bugs.python.org/issue37

[issue37226] Asyncio Fatal Error on SSL Transport - IndexError Deque Index Out Of Range

2019-06-11 Thread Ben Brown
Ben Brown added the comment: The OpenSSL version is OpenSSL 1.1.0j 20 Nov 2018 -- ___ Python tracker <https://bugs.python.org/issue37226> ___ ___ Python-bug

[issue37226] Asyncio Fatal Error on SSL Transport - IndexError Deque Index Out Of Range

2019-06-11 Thread Ben Brown
New submission from Ben Brown : I have been getting an intermittent errors when using asyncio with SSL. The error always occurs in the _process_write_backlog method in asyncio's sslproto.py file. I have looked at lots of possibilities as to what the cause is and found that for some reason

[SECURITY] Twisted 19.2.1 Release Announcement

2019-06-06 Thread Amber Brown
find the downloads at <https://pypi.python.org/pypi/Twisted> (or alternatively <http://twistedmatrix.com/trac/wiki/Downloads>). The NEWS file is also available at <https://github.com/twisted/twisted/blob/twisted-19.2.1/NEWS.rst>. Twisted Regards, Amber Brown (HawkOwl) -- https

ANN: Datatest 0.9.6 Released

2019-06-04 Thread Shawn Brown
Datatest version 0.9.6 is now available. Datatest helps speed up and formalize data-wrangling and data validation tasks. It repurposes software testing practices for data preparation and quality assurance projects. * Docs - https://datatest.readthedocs.io/ * PyPI -

[issue36911] ast.parse outputs ast.Strs which do not differentiate between the ASCII codepoint 12 (literal new line) and the ASCII codepoints 134 and 156 ("\n")

2019-05-14 Thread Amber Brown
Amber Brown added the comment: There's a difference between round-tripping back to the source text and correctly representing the text in the source, though. Since I'm using this module to perform static analysis of a Python module to retrieve class/function definitions and their docstrings

[issue36911] ast.parse outputs ast.Strs which do not differentiate between the ASCII codepoint 12 (literal new line) and the ASCII codepoints 134 and 156 ("\n")

2019-05-13 Thread Amber Brown
New submission from Amber Brown : reproducing case: file.py: ``` """ Hello \n blah. """ ``` And then in a REPL (2.7 or 3+): ``` >>> import ast >>> f = ast.parse(open("test.py", 'rb').read()) >>> f <_ast.Module objec

ANN: Datatest 0.9.4 Released

2019-04-25 Thread Shawn Brown
Datatest provides tools for test driven data-wrangling and data validation. It supports both pytest and unittest style testing. I've been working to get datatest ready for a few pre-PyCon updates. This latest release takes many of the "how-to" solutions and brings them into the core package.

Twisted 19.2.0 Release Announcement

2019-04-12 Thread Amber Brown
d all the people building great things with Twisted! Twisted Regards, Amber Brown (HawkOwl) -- https://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/

[issue12657] Cannot override JSON encoding of basic type subclasses

2018-11-15 Thread Tom Brown
Tom Brown added the comment: I found this work-around useful https://stackoverflow.com/a/32782927 -- nosy: +Tom.Brown ___ Python tracker <https://bugs.python.org/issue12

Re: Twisted 18.9.0 Release Announcement

2018-10-23 Thread Amber Brown
That NEWS link should be https://github.com/twisted/twisted/blob/twisted-18.9.0/NEWS.rst -- one day I'll remember to check my links before sending ;) -Amber On 19/10/18 10:56 pm, Amber Brown wrote: On behalf of Twisted Matrix Laboratories, I am honoured to announce the release of Twisted

Twisted 18.9.0 Release Announcement

2018-10-23 Thread Amber Brown
e - the supporters of the Twisted Software Foundation, the developers who contributed code as well as documentation, and all the people building great things with Twisted! Twisted Regards, Amber Brown (HawkOwl) -- https://mail.python.org/mailman/listinfo/python-announce-list Support t

Datatest 0.9.2 released (test driven data-wrangling)

2018-08-10 Thread Shawn Brown
Hello, I'm happy to announce that the next version of Datatest is now available. This update includes improved data handling features and support for Python 3.7. Datatest supports test driven data-wrangling, data validation, and analysis (for both pytest and unittest style testing). * Docs:

[issue33497] cgi.parse_multipart does not have an associated "errors" parameter with its "encoding" parameter

2018-05-15 Thread Amber Brown
Amber Brown <hawk...@atleastfornow.net> added the comment: This change mirrors the default in FieldStorage (which it calls). If it's not the best option, then it would need to be changed in FieldStorage too. (personally, I don't like strict because UnicodeDecodeErrors on untrusted user

[issue33509] warnings.warn_explicit with module_globals=True raises a SystemError

2018-05-14 Thread Amber Brown
New submission from Amber Brown <hawk...@atleastfornow.net>: Reproducible with: import warnings warnings.warn_explicit("msg", DeprecationWarning, "name", 1, module_globals=None) -- components: Interpreter Core messages: 316578 nosy: hawkowl priority: norm

[issue33497] cgi.parse_multipart does not have an associated "errors" parameter with its "encoding" parameter

2018-05-14 Thread Amber Brown
Change by Amber Brown <hawk...@atleastfornow.net>: -- keywords: +patch pull_requests: +6489 stage: -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue33497] cgi.parse_multipart does not have an associated "errors" parameter with its "encoding" parameter

2018-05-14 Thread Amber Brown
New submission from Amber Brown <hawk...@atleastfornow.net>: Lack of this parameter means that you may get an exception (if the incoming data is an invalid encoding) you can not get around. This causes Twisted to be unable to provide a compatible API on Python 3.7. -- messages:

Twisted 18.4.0 Release Announcement

2018-04-29 Thread Amber Brown
the developers who contributed code as well as documentation, and all the people building great things with Twisted! Twisted Regards, Amber Brown (HawkOwl) -- https://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/

[issue31742] Default to emitting FutureWarning for provisional APIs

2017-10-11 Thread Amber Brown
Amber Brown <hawk...@atleastfornow.net> added the comment: > * asyncio & pathlib are already non-provisional, so wouldn't be affected. I was reading this and actually said "wait what I didn't know pathlib was provisional", and went back to check. The warning for it w

[issue31742] Default to emitting FutureWarning for provisional APIs

2017-10-10 Thread Amber Brown
Amber Brown <hawk...@atleastfornow.net> added the comment: > What happened to "consenting adults"? Consent does not mean that by using Python, users fully consent to using modules that they may not be aware will, to paraphrase Donald, come back to bite them in the ass

[issue31742] Default to emitting FutureWarning for provisional APIs

2017-10-10 Thread Amber Brown
Amber Brown <hawk...@atleastfornow.net> added the comment: So you're proposing a coordinated effort across the half dozen, possibly more, test runners to enable some flags, so CPython doesn't log a single message, possibly two, that you're using unsupported experimental so

[issue31742] Default to emitting FutureWarning for provisional APIs

2017-10-10 Thread Amber Brown
Amber Brown <hawk...@atleastfornow.net> added the comment: What is the point of an opt-in warning, when the entire point of the proposed warning is letting people know that they may be using something they are not fully educated or informed about the ramifications of using? If yo

[issue31742] Default to emitting FutureWarning for provisional APIs

2017-10-09 Thread Amber Brown
Amber Brown <hawk...@atleastfornow.net> added the comment: Donald hits it on the head for me. As long as the code is not covered by the same API deprecation contract that the rest of the standard library is, it should make it obvious when attempting to use it. I can be relatively c

[issue10496] Python startup should not require passwd entry

2017-10-09 Thread Nicholas Brown
Nicholas Brown <nickbr...@gmail.com> added the comment: This is also a problem when using the DynamicUser=yes feature available in systemd 232 onward with a service that's implemented in python. See http://0pointer.net/blog/dynamic-users-with-systemd.html for details of the Dynam

Twisted 17.9.0 Release Announcement

2017-09-23 Thread Amber Hawkie Brown
ith Twisted! Twisted Regards, Amber Brown (HawkOwl) signature.asc Description: Message signed with OpenPGP -- https://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/

Twisted 17.5 Release Announcement

2017-06-12 Thread Amber Hawkie Brown
d/blob/twisted-17.5.0/NEWS.rst>>. Many thanks to everyone who had a part in this release - the supporters of the Twisted Software Foundation, the developers who contributed code as well as documentation, and all the people building great things with Twisted! Twisted Regards, Amber Brown (

Twisted 17.1 Release Announcement

2017-02-11 Thread Amber Hawkie Brown
elopers who contributed code as well as documentation, and all the people building great things with Twisted! Twisted Regards, Amber Brown (HawkOwl) signature.asc Description: Message signed with OpenPGP -- https://mail.python.org/mailman/listinfo/python-announce-list Support the Pyth

multiprocessing.Process call blocks other processes from running

2017-01-14 Thread Rodrick Brown
I'm trying to implement a script that tracks how much space certain applications are using and send a metric to a statsd service for realtime analysis however when running this code it nots forking multiple processes its still running sequential at some point the forking was working but I can't

Twisted 16.6.0 Release Announcement

2016-11-26 Thread Amber "Hawkie&quot; Brown
this release - the supporters of the Twisted Software Foundation, the developers who contributed code as well as documentation, and all the people building great things with Twisted! Twisted Regards, Amber Brown (HawkOwl) -- https://mail.python.org/mailman/listinfo/python-announce-list

Re: Twisted 16.6.0 Release Announcement

2016-11-26 Thread Amber "Hawkie&quot; Brown
Er, that should be 16.6 in the first line. Shouldn't release software at 6am! - Amber > On 26 Nov. 2016, at 07:02, Amber Hawkie Brown <hawk...@atleastfornow.net> > wrote: > > On behalf of Twisted Matrix Laboratories, I am honoured to announce the > release of Twisted 16.5

Twisted 16.5 Release Announcement

2016-10-30 Thread Amber "Hawkie&quot; Brown
se - the supporters of the Twisted Software Foundation, the developers who contributed code as well as documentation, and all the people building great things with Twisted! Twisted Regards, Amber Brown (HawkOwl) PS: I wrote a blog post about Twisted's progress in 2016! https://atleastforno

[issue18219] csv.DictWriter is slow when writing files with large number of columns

2016-10-20 Thread Hugh Brown
Hugh Brown added the comment: Mariatta: Yes, that is what I was thinking of. That takes my 12 execution time down to 10 seconds. (Or, at least, a fix I did of this nature had that effect -- I have not timed your patch but it should be the same

[issue18219] csv.DictWriter is slow when writing files with large number of columns

2016-10-20 Thread Hugh Brown
Hugh Brown added the comment: Fabulous. Looks great. Let's ship! It is not the *optimal* fix for 3.x platforms. A better fix would calculate the set of fieldnames only once in __init__ (or only as often as fieldnames is changed). But I stress that it is a robust change that works in versions

[issue18219] csv.DictWriter is slow when writing files with large number of columns

2016-10-20 Thread Hugh Brown
Hugh Brown added the comment: I came across this problem today when I was using a 1000+ column CSV from a client. It was taking about 15 minutes to process each file. I found the problem and made this change: # wrong_fields = [k for k in rowdict if k not in self.fieldnames

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2016-09-28 Thread Spencer Brown
Spencer Brown added the comment: Alternatively, SETUP_WITH could additionally check for the other method, and raise an AttributeError with a custom message mentioning both methods. -- nosy: +Spencer Brown ___ Python tracker <rep...@bugs.python.

[issue27989] incomplete signature with help function using typing

2016-09-07 Thread Spencer Brown
Spencer Brown added the comment: It might be better to just change the if statement to 'if isinstance(annotation, type) and type(annotation).__repr__ is type.__repr__:'. That would make it fallback for any metaclass which overrides repr, instead of special-casing typing. That also ensures

[issue27989] incomplete signature with help function using typing

2016-09-07 Thread Spencer Brown
Spencer Brown added the comment: More precisely, the issue is with inspect.formatannotation(), which overrides/ignores the repr if the annotation is an instance of type. Perhaps that should be changed to also check that __repr__ is type's repr. -- nosy: +Spencer Brown

Twisted 16.4.0 Release Announcement

2016-08-29 Thread Amber "Hawkie&quot; Brown
ease - the supporters of the Twisted Software Foundation, the developers who contributed code as well as documentation, and all the people building great things with Twisted! Twisted Regards, Amber Brown (HawkOwl) PS: Twisted 16.4.1 will be coming soon after this with a patch mitigating S

Twisted 16.3.1 Release Announcement

2016-08-22 Thread Amber "Hawkie&quot; Brown
3.1/NEWS <https://github.com/twisted/twisted/blob/twisted-16.3.1/NEWS>>. Many thanks to everyone who had a part in this release - the supporters of the Twisted Software Foundation, the developers who contributed code as well as documentation, and all the people building great thin

ANN: datatest 0.7.0 (Test driven data wrangling)

2016-08-04 Thread Shawn Brown
datatest 0.7.0 (Test driven data wrangling) === Datatest extends the standard library's unittest package to provide testing tools for asserting data correctness. * Docs: http://datatest.readthedocs.io/ * PyPI: https://pypi.python.org/pypi/datatest/ This

ANN: datatest 0.7.0 (Test driven data wrangling)

2016-08-02 Thread Shawn Brown
datatest 0.7.0 (Test driven data wrangling) === Datatest extends the standard library's unittest package to provide testing tools for asserting data correctness. * Docs: http://datatest.readthedocs.io/ * PyPI: https://pypi.python.org/pypi/datatest/ This

Re: pyinstaller

2016-07-26 Thread Tom Brown
I used pyinstaller quite a bit 3 years ago. I could brush off the cobwebs and see if I can help if you have not solved it already. What is the issue you are having? -Tom On Jun 21, 2016 16:57, "Larry Martell" wrote: > Anyone here have any experience with pyinstaller?

Twisted 16.3.0 Release Announcement

2016-07-07 Thread Amber Hawkie Brown
veryone who had a part in this release - the supporters of the Twisted Software Foundation, the developers who contributed code as well as documentation, and all the people building great things with Twisted! Twisted Regards, Amber Brown (HawkOwl) signature.asc Description: Message signe

datatest 0.6.0 (First public release!)

2016-05-17 Thread Shawn Brown
before making an official stable release. -Shawn Brown -- https://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/

Re: Average calculation Program *need help*

2016-05-12 Thread Martin A. Brown
smaller (Rustom Mody appears to have beat me to the punch on that suggestion, so I'll just point to his email.) Hint #1: What is the value of your variable totalScores each time through the loop? Does it ever get reset? Good luck with your degubbing! -Martin -- Martin A. Brown http://linux-ip.net/ -- https://mail.python.org/mailman/listinfo/python-list

Re: redirecting stdout and stderr to /dev/null

2016-05-07 Thread Martin A. Brown
= proc.wait() if retcode != 0: raise FlamingHorribleDeath You will have to define FlamingHorribleDeath or figure out what you want to do in the event of the various different types of failureif you don't then, you'll just see this: NameError: name 'FlamingHorribleDeath' is not defined Good luck, -Martin -- Martin A. Brown http://linux-ip.net/ -- https://mail.python.org/mailman/listinfo/python-list

manpage writing [rst, asciidoc, pod] was [Re: What should Python apps do when asked to show help?]

2016-04-29 Thread Martin A. Brown
/grepp/master/grepp.adoc -- Martin A. Brown http://linux-ip.net/ -- https://mail.python.org/mailman/listinfo/python-list

Re: How to track files processed

2016-04-18 Thread Martin A. Brown
fname,)) return os.EX_OK if __name__ == '__main__': if len(sys.argv) == 1: sys.exit(main(os.getcwd())) else: sys.exit(main(sys.argv[1])) # -- end of file -- Martin A. Brown http://linux-ip.net/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Looking for feedback on weighted voting algorithm

2016-04-14 Thread Martin A. Brown
, 72, 72, 72, 96, 96, 96, 48, 48, 53, 26, 26, 26, 26, 31, 31, 31, 68, 68, 91] But, don't bother! Your function can handle votes that have a float weight: >>> weight([(4, 1.3), (1, 1),]) 2.695652173913044 Have fun! -Martin -- Martin A. Brown http://linux-ip.net/ --

Re: sys.exit(1) vs raise SystemExit vs raise

2016-04-12 Thread Martin A. Brown
nts of the run() function look strange. Usually it has more different kinds of stuff in it. Anyway, best of luck! -Martin -- Martin A. Brown http://linux-ip.net/ -- https://mail.python.org/mailman/listinfo/python-list

Twisted 16.1.1 Release Announcement

2016-04-11 Thread Amber "Hawkie&quot; Brown
the downloads at <https://pypi.python.org/pypi/Twisted> (or alternatively <http://twistedmatrix.com/trac/wiki/Downloads>). The NEWS file is also available at <https://github.com/twisted/twisted/blob/twisted-16.1.1/NEWS>. Twisted Regards, Amber Brown signature.asc Descripti

Re: one-element tuples

2016-04-10 Thread Martin A. Brown
ring1",' >>> ea = eval(a) >>> len(ea), type(ea) (1, ) >>> b = '"string1","string2",' >>> eb = eval(b) >>> len(eb), type(eb) (2, ) >>> c = '"string1","string2","string3",' >>> ec = eval(c) >>> len(ec), type(ec) (3, ) Good luck in your continuing Python explorations, -Martin P.S. Where do your double-quoted strings come from, anyway? -- Martin A. Brown http://linux-ip.net/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Set type for datetime intervals

2016-04-06 Thread Martin A. Brown
, unsurprisingly, it does. > >Thank you! It is so much better than the one I have created. >Possibly I'll delete my own module from pypi. :-) I'm glad to have been able to help, László. And, even if you don't delete your new module, you have certainly stimulated quite a discussion on the mai

Twisted 16.1 Release Announcement

2016-04-04 Thread Amber "Hawkie&quot; Brown
he people building great things with Twisted! Twisted Regards, Amber Brown (HawkOwl) signature.asc Description: Message signed with OpenPGP using GPGMail -- https://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/

Twisted 16.1 Release Announcement

2016-04-04 Thread Amber "Hawkie&quot; Brown
he people building great things with Twisted! Twisted Regards, Amber Brown (HawkOwl) signature.asc Description: Message signed with OpenPGP using GPGMail -- https://mail.python.org/mailman/listinfo/python-list

Re: Set type for datetime intervals

2016-04-04 Thread Martin A. Brown
It occurred to me this morning, after you posted your new library: https://pypi.python.org/pypi/intervaltree This handles overlapping ranges nicely and provides some tools for managing them. Before posting this, I checked that it works with datetime types, and, unsurprisingly, it does. Hap

Re: how to optimize the below code with a helper function

2016-04-04 Thread Martin A. Brown
apture baddr=lin_02; must reproduce contents of lin_02 object = baddr offset = 100 size = 5 optype = set -- Martin A. Brown http://linux-ip.net/ -- https://mail.python.org/mailman/listinfo/python-list

Re: how to optimize the below code with a helper function

2016-04-04 Thread Martin A. Brown
rgs in d.items(): args['logfile'] = os.path.join(logdir, casename + '.log') return d def main(): testcases = createTestCases(LOG_DIR) get_baddr = dict() for casename, kw in testcases.items(): # -- yank the logfile name out of the dictionary, before calling func logfile = kw.pop('logfile') get_baddr[casename] = run_tool(logfile, **kw) if __name__ == '__main__': main() # -- end of file -- Martin A. Brown http://linux-ip.net/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Path when reading an external file

2016-03-28 Thread Martin A. Brown
g __file__ so that the program works wherever you launch > "python code.py" > > Is it the correct way to handle this problem ? Ayup, I would say so. My suggested technique: here = os.path.dirname(os.path.abspath(__file__)) foo = os.path.join(here, 'foo.txt') with open(foo, 'r')

Re: Beginner Python Help

2016-03-19 Thread Martin A. Brown
function is quite useful, so it's a good one to learn early. Good luck, -Martin [0] https://docs.python.org/3/library/functions.html#input [1] https://mail.python.org/mailman/listinfo/tutor/ [2] https://docs.python.org/3/library/functions.html#map -- Martin A. Brown http://linux-ip.net/ -- https://mail.python.org/mailman/listinfo/python-list

Re: retrieve key of only element in a dictionary (Python 3)

2016-03-19 Thread Martin A. Brown
m__, __gt__, __init__, __iter__, __le__, __len__, __lt__, __ne__, __repr__, __setitem__ and __sizeof__ -- Martin A. Brown http://linux-ip.net/ -- https://mail.python.org/mailman/listinfo/python-list

Re: retrieve key of only element in a dictionary (Python 3)

2016-03-18 Thread Martin A. Brown
is assignment much clearer to me. # -- if len(d) > 1, ValueError will be raised # (key,) = d.keys() And thank you for the reply Chris, -Martin -- Martin A. Brown http://linux-ip.net/ -- https://mail.python.org/mailman/listinfo/python-list

Twisted 16.0 Released

2016-03-15 Thread Amber "Hawkie&quot; Brown
>. Many thanks to everyone who had a part in this release - the supporters of the Twisted Software Foundation, the developers who contributed code as well as documentation, and all the people building great things with Twisted! Twisted Regards, Amber Brown (HawkOwl) Twisted Release Manager signatu

Word Order Simple.

2016-03-13 Thread Rodrick Brown
You are given nn words. Some words may repeat. For each word, output its number of occurrences. The output order should correspond with the input order of appearance of the word. See the sample input/output for clarification. *Note:* Each input line ends with a *"\n"* character. *Constraints:*

Re: Perl to Python again

2016-03-11 Thread Martin A. Brown
http://shop.oreilly.com/product/0636920027072.do Python Module of the Week https://pymotw.com/3/ I'm making those recommendations because I know and have used these and also because of your Perl background. Good luck, -Martin -- Martin A. Brown http://linux-ip.net/ -- https://mail.python.org/mailman/listinfo/python-list

  1   2   3   4   5   >