Re: csv module and NULL data byte

2018-03-11 Thread Andrew McNamara
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
parser 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

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. -- http://mail.python.org/mailman/lis

Re: import sqlite3

2009-06-03 Thread Andrew McNamara
On 04/06/2009, at 4:14 PM, willgun wrote: What did you call the .py file? sqlite3.py? If so, you've just imported your own module again. 8-) After the import, try "print sqlite3.__file__", which will tell you where the module came from. Thank you all the same. I'm a student from China.It'

Re: import sqlite3

2009-06-03 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", l

Re: How to make "rainbow" RGB values?

2008-02-25 Thread Andrew McNamara
orsys module (http:// >docs.python.org/lib/module-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

Re: How to make "rainbow" RGB values?

2008-02-24 Thread Andrew McNamara
red and blue, 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.pyth

Re: CSV module: incorrectly parsed file.

2008-02-17 Thread Andrew McNamara
double-quotes that appear within a field). You can turn off the double-double-quote handling by passing "doublequote=False" 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: BDFL in wikipedia

2007-02-21 Thread Andrew McNamara
o page called BDFL, and the Guido_van_Rossum is the next closest match. If you care and you have 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: 'r' vs 'rb' in csv (was Re: Python SHA-1 as a method for unique file identification ? [help!])

2006-06-26 Thread Andrew McNamara
newlines can appear quoted inside a field: using universal newlines, these "quoted newlines" would be damaged (because it's unaware of the quoting conventions). If your data file contains no quoted newlines (they're rare, but if you need them, you need them), then opening th

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 McN

Re: CSV module and Mac excel format problem

2005-10-13 Thread Andrew McNamara
; did not correct the problem. Open the file in universal-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, Sen

Re: Last mod date

2005-09-06 Thread Andrew McNamara
an't figure out which module I need 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

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 450

Albatross 1.30 released

2005-05-31 Thread Andrew McNamara
ict HTML conformance. The solution is to wrap the input elements in div. * BranchingSession sessions could not be "deleted" - the solution is to add a dummy "session" shared by all branches, which is deleted when one branch "logs out". -- Andrew McNamara,