Albatross 1.32 released

2005-08-16 Thread Andrew McNamara
OVERVIEW Albatross is a small toolkit for developing highly stateful web applications. The toolkit has been designed to take a lot of the pain out of constructing intranet applications although you can also use Albatross for deploying publicly accessed web applications. In slightly more than

Albatross 1.35 released

2006-06-20 Thread Andrew McNamara
was not being passed through to the input registry within the NameRecorderMixin. * If a client closed it's connection to the session server while the server had data pending for the client, a subsequent del_write_file would generate an exception, killing the session server. -- Andrew McNamara

Re: Last mod date

2005-09-06 Thread Andrew McNamara
to import to access it. Look at the os module. -- Andrew McNamara, Senior Developer, Object Craft http://www.object-craft.com.au/ -- http://mail.python.org/mailman/listinfo/python-list

Re: CSV module and Mac excel format problem

2005-10-13 Thread Andrew McNamara
-newline mode - for example: sample = open(filename, 'rU') lineterminator is only used for output - we use the supplied iterator (and whatever conventions it imposes) for input. -- Andrew McNamara, Senior Developer, Object Craft http://www.object-craft.com.au/ -- http://mail.python.org

Albatross 1.30 released

2005-05-31 Thread Andrew McNamara
branch logs out. -- Andrew McNamara, Senior Developer, Object Craft http://www.object-craft.com.au/ -- http://mail.python.org/mailman/listinfo/python-list

Albatross 1.32 released

2005-08-16 Thread Andrew McNamara
OVERVIEW Albatross is a small toolkit for developing highly stateful web applications. The toolkit has been designed to take a lot of the pain out of constructing intranet applications although you can also use Albatross for deploying publicly accessed web applications. In slightly more than

Re: CSV module: incorrectly parsed file.

2008-02-17 Thread Andrew McNamara
to the parser, but the results still might not be what you want (because the format is ambiguous). -- Andrew McNamara, Senior Developer, Object Craft http://www.object-craft.com.au/ -- http://mail.python.org/mailman/listinfo/python-list

Re: How to make rainbow RGB values?

2008-02-24 Thread Andrew McNamara
, and no indigo/violet. Consider using an HSV-RGB conversion function. Saturation (S) and value (V) should remain constant, while Hue (H) varies to get your rainbow effect. -- Andrew McNamara, Senior Developer, Object Craft http://www.object-craft.com.au/ -- http://mail.python.org/mailman/listinfo/python

Re: How to make rainbow RGB values?

2008-02-25 Thread Andrew McNamara
-colorsys.html) Well, now you've helped me - I had no idea there was an HSV-RGB conversion function in the standard library. 8-) -- Andrew McNamara, Senior Developer, Object Craft http://www.object-craft.com.au/ -- http://mail.python.org/mailman/listinfo/python-list

Albatross 1.35 released

2006-06-20 Thread Andrew McNamara
was not being passed through to the input registry within the NameRecorderMixin. * If a client closed it's connection to the session server while the server had data pending for the client, a subsequent del_write_file would generate an exception, killing the session server. -- Andrew McNamara

Re: 'r' vs 'rb' in csv (was Re: Python SHA-1 as a method for unique file identification ? [help!])

2006-06-26 Thread Andrew McNamara
, but if you need them, you need them), then opening the file in universal newline mode should be harmless (and in this case, is the right thing to do). -- Andrew McNamara, Senior Developer, Object Craft http://www.object-craft.com.au/ -- http://mail.python.org/mailman/listinfo/python-list

Re: BDFL in wikipedia

2007-02-21 Thread Andrew McNamara
enough to say on the subject, maybe you could start a BDFL page. -- Andrew McNamara, Senior Developer, Object Craft http://www.object-craft.com.au/ -- http://mail.python.org/mailman/listinfo/python-list

Re: import sqlite3

2009-06-04 Thread Andrew McNamara
On 04/06/2009, at 3:15 PM, willgun wrote: When i run the following in IDLE: IDLE 2.6.1 import sqlite3 con =sqlite3.connect (r'g:\db1') everything goes well,but when i save these to a .py file and run it: Traceback (most recent call last): File C:\Users\hp\Desktop\SQLite3\sqlite3.py,

Re: import sqlite3

2009-06-04 Thread Andrew McNamara
On 04/06/2009, at 9:45 PM, willgun wrote: By the way ,what does 'best regards' means at the end of a mail? The correspondent is wishing you well. You'll also see things like kind regards, best wishes and so on. Regard essentially means respect. --

[issue10515] csv sniffer does not recognize quotes at the end of line

2010-11-23 Thread Andrew McNamara
Changes by Andrew McNamara andr...@object-craft.com.au: -- nosy: +andrewmcnamara ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10515

[issue1744580] cvs.get_dialect() return a class object

2007-11-04 Thread Andrew McNamara
Andrew McNamara added the comment: Seems okay to me. I had a quick look at the examples section, and it shows a use like the one I mention, but I wonder if the section on dialects should quote the specific examples I mention? _ Tracker [EMAIL PROTECTED

[issue416670] MatchObjects not deepcopy()able

2008-11-03 Thread Andrew McNamara
Andrew McNamara [EMAIL PROTECTED] added the comment: One reason why this issue has been having less impact is that a bug in some versions of the copy.py code meant it was ignoring the __deepcopy__ stubs and using the pickle logic to copy _sre objects - so, if you run the right python version

[issue416670] MatchObjects not deepcopy()able

2008-11-04 Thread Andrew McNamara
Changes by Andrew McNamara [EMAIL PROTECTED]: -- versions: +Python 2.5.3, Python 2.6 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue416670

[issue1225769] Proposal to implement comment rows in csv module

2010-02-03 Thread Andrew McNamara
Andrew McNamara andr...@object-craft.com.au added the comment: Okay, while I am sympathetic to the points raised by the people asking for this enhancement, I'm persuaded to reject it by the arguments that the potential benefit is outweighed by the increase in complexity (code and documentation

[issue1225769] Proposal to implement comment rows in csv module

2010-02-03 Thread Andrew McNamara
Andrew McNamara andr...@object-craft.com.au added the comment: Note that there is one case that cannot easily be addressed via pre-processing: where the comment character coincidently appears at the start of a line within a multi-line quoted field. For example: # This is a comment 1, 2

[issue1225769] Proposal to implement comment rows in csv module

2008-04-15 Thread Andrew McNamara
Andrew McNamara [EMAIL PROTECTED] added the comment: I think it's a reasonable enough request - I've certainly had to process CSV files with comments. Iain - appologies for not looking at your request before now - 3 years is a pretty poor response time. Some thoughts: * this should target

[issue3756] re.escape() does not work with bytes()

2008-09-01 Thread Andrew McNamara
New submission from Andrew McNamara [EMAIL PROTECTED]: In python 2, re.escape() works with either str or unicode, but in python 3, re.escape() no longer works correctly with the bytes type. -- components: Regular Expressions messages: 72309 nosy: andrewmcnamara severity: normal status

[issue3756] re.escape() does not work with bytes()

2008-09-01 Thread Andrew McNamara
Andrew McNamara [EMAIL PROTECTED] added the comment: The attached re_escape.py is a (somewhat crappy) fix for re.escape() Added file: http://bugs.python.org/file11340/re_escape.py ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3756

[issue3747] Fix caching in ABCMeta.__subclasscheck__

2008-09-02 Thread Andrew McNamara
Changes by Andrew McNamara [EMAIL PROTECTED]: -- nosy: +andrewmcnamara ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3747 ___ ___ Python-bugs-list

[issue3756] re.escape() does not work with bytes()

2008-09-02 Thread Andrew McNamara
Andrew McNamara [EMAIL PROTECTED] added the comment: Will do, although I'm slightly concerned that my bytes version of the function is about 50% slower than the str version. I can see why, I just can't think of a way to do it any faster. There's an inherent asymetry in bytes type that didn't

[issue3756] re.escape() does not work with bytes()

2008-09-02 Thread Andrew McNamara
Changes by Andrew McNamara [EMAIL PROTECTED]: Added file: http://bugs.python.org/file11352/re_escape-patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3756

[issue3756] re.escape() does not work with bytes()

2008-09-04 Thread Andrew McNamara
Andrew McNamara [EMAIL PROTECTED] added the comment: On further testing, sometimes the str version is faster, sometimes the bytes version is faster. Never more than about 50% one way or the other, so probably not worth worrying about, although I still don't really like the implementation

[issue3756] re.escape() does not work with bytes()

2008-09-07 Thread Andrew McNamara
Andrew McNamara [EMAIL PROTECTED] added the comment: I don't think it's possible to say whether it's preformance critical - I can certainly image use cases such as parser generators where its speed could be noticed. I tried building a version using regular expressions, but I couldn't do any

[issue3756] re.escape() does not work with bytes()

2008-09-07 Thread Andrew McNamara
Andrew McNamara [EMAIL PROTECTED] added the comment: I meant I can certainly imagine use cases... In case it's not clear, I think the implementation in the patch is good enough (unless someone can suggest any obvious optimisations). If someone can prove that re.escape() performance is causing

[issue3756] re.escape() does not work with bytes()

2008-09-10 Thread Andrew McNamara
Andrew McNamara [EMAIL PROTECTED] added the comment: Looks fine, except I used frozenset for the _alphanum* variables and reverted to double quotes like the rest of the file. Submitted as r66366. All good. Thankyou. ___ Python tracker [EMAIL PROTECTED] http

Re: csv module and NULL data byte

2018-03-11 Thread Andrew McNamara
dule outside the Python core... 8-) -- Andrew McNamara, Senior Developer, Object Craft http://www.object-craft.com.au/ -- https://mail.python.org/mailman/listinfo/python-list

Re: csv module and NULL data byte

2018-03-07 Thread Andrew McNamara
r to produce the same result as Excel, it must see the raw bytes with no re-ordering or suppression of CRs. Unfortunately, I haven't had time to be involved in the module for a few years. I wasn't involved with the Unicode changes necessary in Python 3, and I have not verified that it is still com