[issue38971] codecs.open leaks file descriptor when invalid encoding is passed

2019-12-04 Thread Brock Mendel
Brock Mendel added the comment: > Does using with block similar to https://bugs.python.org/issue22831 solve > this problem? The motivating use case uses `with codecs.open(buf, "w", encoding=encoding) as f:` https://github.com/pandas-dev/pandas/blob/master/pandas/io/format

[issue38971] codecs.open leaks file descriptor when invalid encoding is passed

2019-12-04 Thread Brock Mendel
New submission from Brock Mendel : xref https://github.com/pandas-dev/pandas/pull/30034 codecs.open does `file = open(...)` before validating the encoding kwarg, leaving the open file behind if that validation raises. -- messages: 357811 nosy: Brock Mendel priority: normal severity

[issue28407] Improve coverage of email.utils.make_msgid()

2016-12-17 Thread Dillon Brock
Dillon Brock added the comment: Ping. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28407> ___ ___ Python-bugs-list mailing list

[issue28407] Improve coverage of email.utils.make_msgid()

2016-10-10 Thread Dillon Brock
New submission from Dillon Brock: There were 2 lines of email.utils.make_msgid() that were not covered (lines 202 and 204 of Lib/email/utils.py), so I wrote a quick patch to cover them. -- components: Tests, email files: make_msgid_coverage.patch keywords: patch messages: 278430 nosy

[issue16318] FTP_TLS in ftplib not supporting prot_p storlines in FTP7.5

2012-10-25 Thread Jeremy Brock
Jeremy Brock added the comment: Hello Giampaolo, It is the same timeout in PASV with Prot_P, please see attached documentation. Something I did not mention before is that the file being written shows up on the server but I can't view it because it is being used by another process. When

[issue16318] FTP_TLS in ftplib not supporting prot_p storlines in FTP7.5

2012-10-24 Thread Jeremy Brock
New submission from Jeremy Brock: Recently I have been working on a project to utilize the new FTP_TLS library from ftplib in Python 2.7.3. What I found is that no matter what I try, when prot_p() is called prior to transferring files to 2008 Server R2 running FTP7.5, the python client

Confusion about scan_code in modulefinder.py (in python 2.6)

2010-01-12 Thread Brock Pytlik
everything working to my satisfaction, but I'm curious about how this module (and those lines in particular) were designed to be used. Any insight would be appreciated. Thanks, Brock -- http://mail.python.org/mailman/listinfo/python-list

System default sys.path

2009-07-01 Thread Brock Pytlik
) a variable containing the list of suffixes that are applies to the prefixes, like lib/pythonversion/site-packages 3) a way of handing the *.pth files Thanks in advance for the help, Brock -- http://mail.python.org/mailman/listinfo/python-list

Unzip Files

2009-05-31 Thread Brock
will be greatly appreciated. Many thanks, Brock -- http://mail.python.org/mailman/listinfo/python-list

Third Party Modules

2009-04-28 Thread Brock
of reference. Many thanks! - Brock -- http://mail.python.org/mailman/listinfo/python-list

RE: graphing lifelines

2008-07-15 Thread Brock Massel
Google this: drawing graphs with dot dotguide.pdf Look at page ~40ff. Perhaps a simple script to generate graphviz input. Then let those excellent tools do the heavy lifting. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of E. J. Gold is the Hi-Tech

getting thread object from SocketServer.ThreadingTCPServer

2007-05-19 Thread Brad Brock
Hi list. I have a little problem when using SocketServer.ThreadingTCPServer. I want to make a list of thread-objects generated by the ThreadingTCPServer. How can I get the thread object? Thank you.

descriptors for container items

2005-09-03 Thread Brock Filer
I personally would first try to dump the quotes and use standard attributes -- countries.us.Colorado... -- and the __get/set/delattr__ methods. If I do that, the attributes (that was a stupid name for me to choose) and children would have to not share any names with each other, with the

descriptors for container items

2005-09-03 Thread Brock Filer
If I do that, the attributes (that was a stupid name for me to choose) and children would have to not share any names with each other, Since multiple objects can indeed have duplicate attribute names, and such duplication is rampant in Python, I am not sure what you mean.

descriptors for container items

2005-09-01 Thread Brock Filer
... or something like that. I have an XMLish data structure whose nodes' __get/set/del item__ methods resolve as: node['foo'] - node.children['foo'] node['@bar'] - node.attributes['bar'] so you can say: countries['us']['Colorado']['Denver']['@population'] This is going to be used in