RE: how to control formatting of a namedtuple in a list

2016-11-17 Thread Boylan, Ross
, if in a format, the default formatting all the way down. Is there a good reason it's repr? Ross From: Python-list [python-list-bounces+ross.boylan=ucsf@python.org] on behalf of Chris Angelico [ros...@gmail.com] Sent: Thursday, November 17, 2016 3:

RE: how to control formatting of a namedtuple in a list

2016-11-17 Thread Boylan, Ross
viceable for me, but it requires violating the intended semantics of repr, namely that the result could be converted back to the original object. I'm trying to get a display that has only some of the information in the object. My understanding is that str is supposed to provide that. At any rate

Re: Meaning of abbreviated terms

2018-05-12 Thread Ross Wilson
ts" [1] which were a key/value data structure, usually called an "alist" or "a-list". Ross [0] https://www.cs.cmu.edu/Groups/AI/html/cltl/clm/node108.html [1] https://www.cs.cmu.edu/Groups/AI/html/cltl/clm/node153.html On 12/5/2561 BE 13:45, Bob Martin wrote: in 793617

Re: How to start gnuradio

2018-07-31 Thread Ross Wilson
I had a paddle through the manual at https://www.gnuradio.org/doc/doxygen/page_python_blocks.html and apparently some DSP operations use numpy. Ross On Wed, 1 Aug 2018 at 11:56 wrote: > > > After some research I found out that "sudo apt-get install python-numpy" > solve

Call for Assistance

2016-08-09 Thread Charles Ross
I’ve begun a new book called Meta Python that I’m looking for assistance with. The book is one I wish was out there, and so am writing. The book is targeted at experienced programmers who are novice Python users and want to move from that point to one where they have published to PyPI. I’m spec

Re: Call for Assistance

2016-08-09 Thread Charles Ross
gt; On Tuesday 09 August 2016 11:52, Charles Ross wrote: > >> I’ve begun a new book called Meta Python that I’m looking for assistance >> with. > > Are you looking for people to be co-authors? Are you offering payment, or > credit? A free copy of the book? A kick to t

Re: Wind Rose Plotting in Python

2019-09-05 Thread Ross Wilson
matplotlib at https://github.com/python-windrose/windrose . The matplotlib page of third-party libraries is at https://matplotlib.org/3.1.1/thirdpartypackages/index.html#windrose . Ross -- https://mail.python.org/mailman/listinfo/python-list

Re: Jargons of Info Tech industry

2005-10-12 Thread Ross Bamford
cryptography and signature support? IMAP is in many ways better than POP3, but you would be surprised at the weight of an accepted standard I think. -- Ross Bamford - [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Jargons of Info Tech industry

2005-10-13 Thread Ross Bamford
phishing attempt. > > Any underage drinker in a college town can tell you a hundred ways to > get sufficient fake ID to get around that. > > See also: http://www.ahbl.org/funny/response1.php > > I'll let others here fill in the blanks. :) :) :) -- Ross Bamford - [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

How do I pass args using Python Windows

2005-10-17 Thread Ross Reyes
Hi -  I wonder if someone might be able to lend a quick answer to this.   I have a python script that I normally run from the command line on Solaris.    i.e.    %pythonscript >   I decided to try IDLE on Windows to do some debugging with the debugger (which I unfortunately dont' have o

what happens when the file begin read is too big for all lines to be read with "readlines()"

2005-11-19 Thread Ross Reyes
HI - Sorry for maybe a too simple a question but I googled and also checked my reference O'Reilly Learning Python book and I did not find a satisfactory answer. When I use readlines, what happens if the number of lines is huge?I have a very big file (4GB) I want to read in, but I'm sure ther

Re: what happens when the file begin read is too big for all lines tobe?read with "readlines()"

2005-11-20 Thread Ross Reyes
s when the file begin read is too big for all lines tobe?read with "readlines()" > Ross Reyes <[EMAIL PROTECTED]> wrote: >> Sorry for maybe a too simple a question but I googled and also >> checked my reference O'Reilly Learning Python book and I did not >&

Re: Getting rid of "self."

2005-01-07 Thread Sean Ross
"BJörn Lindqvist" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Thank you for your replies. But they don't deal with my original question. :) I have read the thousands of posts all saying "self is good" and they are right. But this time I want to be different m-kay? I figure that ther

Re: Newbie question: Explain this behavior

2005-07-14 Thread Ross Wilson
he last iteration. On the other hand, if the loop is terminated early using the 'break' statement, the 'else' clause is skipped." Ross -- http://mail.python.org/mailman/listinfo/python-list

Re: How to connect to UNIX machine from windows box

2005-08-08 Thread Ross Wilson
> I want to connect to unix machine using ssh to run some commands . > I have not tried this, but it might be useful. http://www.lag.net/paramiko/ HTH, Ross -- http://mail.python.org/mailman/listinfo/python-list

Re: list insertion

2005-08-24 Thread Ross Wilson
is empty? Better to show a more complete example with output and how that is not what you expect. Ross -- http://mail.python.org/mailman/listinfo/python-list

Re: access to generator state

2004-12-02 Thread Sean Ross
"Neal D. Becker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am converting optimization code from legacy C to python. Generators are a > HUGE convenience, because the original code structures have the optimizer > as the main code calling your function, while I want to invert t

Re: question on regular expressions

2004-12-03 Thread Sean Ross
"Darren Dale" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm stuck. I'm trying to make this: > > file://C:%5Cfolder1%5Cfolder2%5Cmydoc1.pdf,file://C > %5Cfolderx%5Cfoldery%5Cmydoc2.pdf > > (no linebreaks) look like this: > > ./mydoc1.pdf,./mydoc2.pdf > > my regular expression abi

Re: built-in 'property'

2004-12-30 Thread Sean Ross
"Steven Bethard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] > For this reason, I usually suggest declaring properties like[1]: > > py> class E(object): > ... def x(): > ... def get(self): > ... return float(self._x) > ... def set(self, x): > .

Python's use in RAD

2005-04-15 Thread Ross Cowie
could highlight some of the features that make it suitable for RAD. Like the use of dinamic binding. Your healp would be appreciated. Hope to hear from you soon. Ross -- http://mail.python.org/mailman/listinfo/python-list

Try-except-finally paradox

2014-01-29 Thread Jessica Ross
I found something like this in a StackOverflow discussion. >>> def paradox(): ... try: ... raise Exception("Exception raised during try") ... except: ... print "Except after try" ... return True ... finally: ... print "Finally" ...

What is the difference between 32 and 64 bit Python on Windows 7 64 bit?

2014-05-11 Thread Ross Gayler
have with 64 bit Python running on 64 bit linux. Is that true?I have spent a couple of hours searching for a definitive description of the difference between the 32 and 64 bit versions of Python for Windows and haven't found anything. Thanks Ross -- https://mail.python.org/mailman/listinfo/python-list

inserting \ in regular expressions

2011-10-26 Thread Ross Boylan
sub(r"([\\\"])", "\1", 'Silly " quote') 'Silly \\\x01 quote' >>> re.sub(r"([\\\"])", "\\1", 'Silly " quote') 'Silly \\" quote' Or perhaps I'm confused about what the displayed results mean. If a string has a literal \, does it get shown as \\? I'd appreciate it if you cc me on the reply. Thanks. Ross Boylan -- http://mail.python.org/mailman/listinfo/python-list

Re: inserting \ in regular expressions [solved]

2011-11-05 Thread Ross Boylan
On Wed, 2011-10-26 at 12:48 -0700, Ross Boylan wrote: > I want to replace every \ and " (the two characters for backslash and > double quotes) with a \ and the same character, i.e., > \ -> \\ > " -> \" I'd like to thank Ian, Dave, MRAB, and John for their he

Re: Checking for valid date input and convert appropriately

2013-02-21 Thread Michael Ross
On Thu, 21 Feb 2013 22:22:15 +0100, Ferrous Cranus wrote: Τη Πέμπτη, 21 Φεβρουαρίου 2013 10:14:13 μ.μ. UTC+2, ο χρήστης MRAB έγραψε: On 2013-02-21 19:38, Ferrous Cranus wrote: > import datetime from datetime Should be: from datetime import datetime > > try: > datetime.strpt

Re: Checking for valid date input and convert appropriately

2013-02-21 Thread Michael Ross
On Fri, 22 Feb 2013 00:08:01 +0100, Ferrous Cranus wrote: Τη Παρασκευή, 22 Φεβρουαρίου 2013 12:03:59 π.μ. UTC+2, ο χρήστης Michael Ross έγραψε: On Thu, 21 Feb 2013 22:22:15 +0100, Ferrous Cranus wrote: > Τη Πέμπτη, 21 Φεβρουαρίου 2013 10:14:13 μ.μ. UTC+2, ο χρήστης MRAB >

Re: Checking for valid date input and convert appropriately

2013-02-21 Thread Michael Ross
On Fri, 22 Feb 2013 01:12:40 +0100, Ferrous Cranus wrote: Please i have been trying hours for this: Don't do that: Spending hours on being stuck. Take a break. Call it a night. Brain needs time to unstick itself. Besides: from datetime import date entry='31 03 2013' day, month,

Re: Python Newbie

2013-02-24 Thread Michael Ross
On Sun, 24 Feb 2013 20:40:05 +0100, wrote: > if (some statement): # short form > > rather than > > if (some statement == true): # long form What all those ugly brackets are for? Mark, Back in the day when C was king, or take many newer long established languages (C#,

Re: Speeding up Python's exit

2013-03-03 Thread Ross Ridge
ython normally doesn't change this. Only the Python process's own internal buffers are flushed, the OS doesn't change its handling of its buffers. If you want written data to be fully committed before exiting you need to use other OS services that guarantee this.

Re: How to prevent tests from running against production?

2013-03-03 Thread Ross Ridge
on environment would seem to be the obvious solution. Ross Ridge -- l/ // Ross Ridge -- The Great HTMU [oo][oo] rri...@csclub.uwaterloo.ca -()-/()/ http://www.csclub.uwaterloo.ca/~rridge/ db // -- http://mail.python.org/mailman/listinfo/python-list

Re: Inserting-embedding some html data at the end of a .py file

2013-03-05 Thread Michael Ross
On Tue, 05 Mar 2013 21:04:59 +0100, Νίκος Γκρ33κ wrote: #open html template if htmlpage.endswith('.html'): f = open( "/home/nikos/public_html/" + htmlpage ) htmldata = f.read() counter = ''' mailto:supp...@superhost.gr";> src="/data/images/ma

Re: Inserting-embedding some html data at the end of a .py file

2013-03-05 Thread Michael Ross
On Tue, 05 Mar 2013 23:47:18 +0100, Νίκος Γκρ33κ wrote: Thank you very much! This is what i was looking for and here is my code after receiving your help. So, with the command you provided to me i can actually run the .py script ans save its output and then append from there!! Great! Her

Re: Inserting-embedding some html data at the end of a .py file

2013-03-05 Thread Michael Ross
On Wed, 06 Mar 2013 00:39:31 +0100, Νίκος Γκρ33κ wrote: htmldata = subprocess.check_output( '/home/nikos/public_html/cgi-bin/' + htmlpage ) htmldata = subprocess.check_output( ['/usr/bin/python', '/home/nikos/public_html/cgi-bin/' + htmlpage] ) Both of the above statemnts fail i'am afr

Re: sync databse table based on current directory data without losign previous values

2013-03-06 Thread Michael Ross
On Wed, 06 Mar 2013 12:52:00 +0100, Mark Lawrence wrote: On 06/03/2013 07:45, Νίκος Γκρ33κ wrote: I'am using this snipper to read a current directory and insert all filenames into a databse and then display them. But what happens when files are get removed form the directory? The inserted

Re: Inserting-embedding some html data at the end of a .py file

2013-03-06 Thread Michael Ross
On Thu, 07 Mar 2013 00:18:44 +0100, Νίκος Γκρ33κ wrote: Τη Τετάρτη, 6 Μαρτίου 2013 2:06:33 π.μ. UTC+2, ο χρήστης Michael Ross έγραψε: check_output is available as of Python 2.7 I guess you are still on version 2.6 ? I can access each of these from my jailed shell user account without

Re: Do you feel bad because of the Python docs?

2013-03-06 Thread Michael Ross
On Thu, 07 Mar 2013 02:28:10 +0100, Chris Kaynor wrote: I actually just tried that, and the results weren't very good. Using the doc's search feature, the "Reporting Bugs" (and the "About these documents") page >was significantly down the page (about 2/3 of the way) - not the most obviou

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-07 Thread Michael Ross
On Thu, 07 Mar 2013 12:27:03 +0100, Νίκος Γκρ33κ wrote: Τη Πέμπτη, 7 Μαρτίου 2013 11:06:27 π.μ. UTC+2, ο χρήστης Νίκος Γκρ33κ έγραψε: Any ideas about the error please? I can assure you all the statemnt are correct ebcause they work in python v2.6.6 can someone help this issue so my w

Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-07 Thread Michael Ross
On Thu, 07 Mar 2013 13:25:58 +0100, Νίκος Γκρ33κ wrote: Τη Πέμπτη, 7 Μαρτίου 2013 1:51:42 μ.μ. UTC+2, ο χρήστης Michael Ross έγραψε: On Thu, 07 Mar 2013 12:27:03 +0100, Νίκος Γκρ33κ wrote: > Τη Πέμπτη, 7 Μαρτίου 2013 11:06:27 π.μ. UTC+2, ο χρήστης Νίκος Γκρ33κ > έγραψε: >&g

Re: Excel column 256 limit

2013-03-18 Thread Michael Ross
On Mon, 18 Mar 2013 16:50:21 +0100, Steven D'Aprano wrote: On Mon, 18 Mar 2013 08:28:46 -0700, Ana Dionísio wrote: Is there some way to go around this limit? I need to import data from python to excel and I need 1440 columns for that. That's an Excel question, it has nothing to do with Py

Re: Excel column 256 limit

2013-03-19 Thread Michael Ross
On Tue, 19 Mar 2013 15:07:54 +0100, Neil Cerutti wrote: On 2013-03-18, Ana Dion?sio wrote: But I still get the error and I use Excel 2010. I'm trying to export data in a list to Excel xlrd: Library for developers to extract data from Microsoft Excel (tm). It is for *reading* Excel files,

Re: random shuffles

2006-07-22 Thread Ross Ridge
David G. Wonnacott wrote: > Couldn't we easily get an n*log(n) shuffle... Why are you trying to get an O(n*log(n)) shuffle when an O(n) shuffle algorithim is well known and implemented in Python as random.shuffle()? Ross Ridge -- http://mail.python.org/mailman/

Re: regex question

2006-08-03 Thread Alex Ross
This might be more flexible: pat = re.compile(r"^(a*(?=b)b*(?=[ac])c*(?=[abd])d*)+$") tests = [('aabbbaabbcccbbbcccddd', True), ('aabcabcd', True), ('abcd', True), ('aabbccaabbccabcabababbb', True), ('aabbccaabbccabcabababbbabcd', True),

Re: Trouble compiling win32all on Windows

2006-11-04 Thread Ross Ridge
you're using. You'll need to use an older version of the Platform SDK that supports your compiler. Ross Ridge -- http://mail.python.org/mailman/listinfo/python-list

Re: Exploiting Dual Core's with Py_NewInterpreter's separated GIL ?

2006-11-05 Thread Ross Ridge
. The cost of mantaining cache coherency for a locked increment instruction should be no different than that of an unlocked increment instruction. Ross Ridge -- http://mail.python.org/mailman/listinfo/python-list

Re: Exploiting Dual Core's with Py_NewInterpreter's separated GIL ?

2006-11-07 Thread Ross Ridge
s is the same whether the increment instruction is locked or not. Ross Ridge -- http://mail.python.org/mailman/listinfo/python-list

Re: Exploiting Dual Core's with Py_NewInterpreter's separated GIL ?

2006-11-07 Thread Ross Ridge
at doesn't really make sense. The object can't be deleted because the thread should already have a reference (directly or indirectly) to the object, otherwise any access to it can cause the race condition you describe. Ross Ridge -- http://mail.python.

Re: Exploiting Dual Core's with Py_NewInterpreter's separated GIL ?

2006-11-07 Thread Ross Ridge
Ross Ridge wrote: > That doesn't really make sense. The object can't be deleted because > the thread should already have a reference (directly or indirectly) to > the object, otherwise any access to it can cause the race condition you > describe. Joe Seigh wrote: > True

Re: Exploiting Dual Core's with Py_NewInterpreter's separated GIL ?

2006-11-07 Thread Ross Ridge
ce counting isn't thread safe. Ross Ridge -- http://mail.python.org/mailman/listinfo/python-list

Re: Exploiting Dual Core's with Py_NewInterpreter's separated GIL ?

2006-11-07 Thread Ross Ridge
Martin v. Löwis wrote: > How would you propose to fix file_repr to prevent such > a race condition? Ross Ridge schrieb: > The race condition you describe is different from the one Joe Seigh > described. It's caused because without GIL access to the file object > is no lon

Re: Exploiting Dual Core's with Py_NewInterpreter's separated GIL ?

2006-11-08 Thread Ross Ridge
Ross Ridge schrieb: > So give an example where reference counting is unsafe. Martin v. Löwis wrote: > Nobody claimed that, in that thread. Instead, the claim was > "Atomic increment and decrement instructions are not by themselves > sufficient to make reference counting safe.&quo

Re: XBox 360 free SDK (XNA) and IronPython

2006-09-02 Thread Ross Ridge
d saw here an example of someone using IronPython: IronPython won't work on the XBox 360. Ross Ridge -- http://mail.python.org/mailman/listinfo/python-list

Re: XSLT speed comparisons

2006-09-27 Thread Ross Ridge
proc.addParameter(param, value) proc.transform() return proc.output print "Content-Type: text/html\n\n" print buildPage() Ross Ridge -- http://mail.python.org/mailman/listinfo/python-list

Re: XSLT speed comparisons

2006-09-27 Thread Ross Ridge
e using ASP.NET, so your ASP code probably is probably using the .NET XML implementation instead of MSXML. In that case, another alternative might be to use IronPython and just translate your ASP script into Python. Ross Ridge -- http://mail.python.org/mailman/listinfo/python-list

Re: len() and PEP 3000

2006-12-09 Thread Ross Ridge
pothetical) dot, parenthesises and a name lookup. Ross Ridge -- http://mail.python.org/mailman/listinfo/python-list

Re: Why does Python never add itself to the Windows path?

2006-12-25 Thread Ross Ridge
y install themselves somewhere that's normally in the path already. I suppose you can do the same thing on Windows if you want, just choose to install Python into directory that's already in your path. Though installing to something like C:\WINDOWS\SYSTEM32 is probably not a good idea.

Re: Python 2.4.2 using msvcrt71.dll on Win and compatibility issues

2006-02-08 Thread Ross Ridge
Martin v. Löwis wrote: > In general, the only Microsoft-supported strategy is that you > must use only a single msvcrt in the entire application. So > either recompile PostGres, or recompile Python. If you want a compiled version of Python that already uses MSVCRT then you try using pyMingGW:

Re: Replacing curses

2006-02-08 Thread Ross Ridge
Thomas Dickey wrote: > ...and send UTF-8 text, keeping track of where you really are on the screen. You make that sound so easy. Ross Ridge -- http://mail.python.org/mailman/listinfo/python-list

Re: Replacing curses

2006-02-09 Thread Ross Ridge
Ian Ward wrote: > I'll have to deal with that anyway, since I'm doing all my own wrapping, > justification and clipping of text. In general it's impossible to know how many display positions some random Unicode character might use. For example, Chinese characters normally take two display positio

Re: Legality of using Fonts

2006-02-10 Thread Ross Ridge
copyright, just the hints in most outline fonts, which are considered computer programs. Ross Ridge -- http://mail.python.org/mailman/listinfo/python-list

Re: Legality of using Fonts

2006-02-11 Thread Ross Ridge
econd a commentary of that play, and someone copied only the first part, they'd be doing nothing illegal. Ross Ridge -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a way to build python without 'posixmodule' ?

2006-02-21 Thread Ross Ridge
mrstephengross wrote: > I'm working on building python 2.4.2 with the mingw compiler (on > cygwin). Try following the instructions on the pyMinGW site: http://jove.prohosting.com/iwave/ipython/pyMinGW.html Ross Ridge -- http://mail

Re: Pure python implementation of string-like class

2006-02-25 Thread Ross Ridge
Steve Holden wrote: > "Wider than UTF-16" doesn't make sense. It makes perfect sense. Ross Ridge -- http://mail.python.org/mailman/listinfo/python-list

Re: Pure python implementation of string-like class

2006-02-25 Thread Ross Ridge
Steve Holden wrote: >"Wider than UTF-16" doesn't make sense. Ross Ridge wrote" > It makes perfect sense. Alan Kennedy wrote: > UTF-16 is a "Unicode Transcription Format", meaning that it is a > mechanism for representing all unicode code points, even th

Re: Pure python implementation of string-like class

2006-02-25 Thread Ross Ridge
Xavier Morel wrote: > Not if you're still within Unicode / Universal Character Set code space. Akihiro Kayama in his original post made it clear that he wanted to use a character set larger than entire Unicode code space. Ross Ridge

Re: Pure python implementation of string-like class

2006-02-26 Thread Ross Ridge
Ross Ridge wrote: > Akihiro Kayama in his original post made it clear that he wanted to use > a character set larger than entire Unicode code space. Xavier Morel wrote: > He implies that ... He explictly said that character set he wanted to use wouldn't fit in UTF-16. >... but

Re: Python, Dutch, English, Chinese, Japanese, etc.

2007-06-03 Thread Ross Ridge
talking the entire >language, keywords and all. This would be more convincing if it came from someone who spoke Mandarin, Japanese, Hindi or Korean. btw. Mandarin is a spoken dialect Chinese, what you're actually asking for is a Simplified-Chinese version of Python.

Re: Python, Dutch, English, Chinese, Japanese, etc.

2007-06-04 Thread Ross Ridge
each with their own set of third-party modules and little code sharing between the two groups. I don't think this would be good for Python as whole. Ross Ridge -- l/ // Ross Ridge -- The Great HTMU [oo][oo] [EMAIL PROTECTED] -()-/()/ http://ww

Re: Python, Dutch, English, Chinese, Japanese, etc.

2007-06-04 Thread Ross Ridge
Ross Ridge wrote: > Translating keywords and standard identifiers into Chinese could make > learning Python even more difficult. It would probably make things > easier for new programmers, but I don't know if serious programmers would > actually prefer programming using Chin

linecache and comparison with input

2007-06-30 Thread Ross Hetherington
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Say I've got a file called 'testfile' that contains the following three lines: foo bar baz And a script that goes like this: #!/usr/bin/env python import random import sys import linecache rnd = random.randint(1,3) line = linecache.getline('test

Re: linecache and comparison with input

2007-06-30 Thread Ross Hetherington
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Sebastian Wiesner wrote: > Then you will see, that getline returns the line *including the newline > character*, while raw_input does not. Use line.strip('\n') to remove > trailing newline characters from the return value of getline. Ah, thank yo

Re: Python COM iterator

2007-04-19 Thread Ross Ridge
ion (ie. VisualBasic 6 compatable) way implementing iteratable objects. Ross Ridge -- l/ // Ross Ridge -- The Great HTMU [oo][oo] [EMAIL PROTECTED] -()-/()/ http://www.csclub.uwaterloo.ca/~rridge/ db // -- http://mail.python.org/mailman/listinfo/python-list

Re: Python's handling of unicode surrogates

2007-04-20 Thread Ross Ridge
#x27;re falsely assuming that any code that doesn't support surrogates is broken. Supporting surrogates is no more required than supporting combining characters, right-to-left languages or lower case letters. Ross Ridge -- l/ // Ross Ridge -

Re: Python's handling of unicode surrogates

2007-04-22 Thread Ross Ridge
ogates, or any other kind of character, so no you wouldn't be lying. Also since few Python programs claim to support Unicode, why do you think it's acceptable to break them if they don't support surrogates? Ross Ridge -- l/ // Ross Ridge -- T

Re: Python's handling of unicode surrogates

2007-04-23 Thread Ross Ridge
Ross Ridge writes: > The Unicode standard doesn't require that you support surrogates, or > any other kind of character, so no you wouldn't be lying. <[EMAIL PROTECTED]> wrote: > There is the notion of Unicode implementation levels, and each of them > does include a

Re: My Python annoyances

2007-05-04 Thread Ross Ridge
t;, "credits" or "license" for more information. >>> quit Use quit() or Ctrl-D (i.e. EOF) to exit >>> [1]+ Stopped python ~$ Apparently though the Cygwin version of Python now prints the correct message for q

Re: My Python annoyances

2007-05-05 Thread Ross Ridge
value in either Python long or a Python int, if it's big enough. What it's doing now, returning unsigned value in a Python int, even when it's not big enough to hold the result, is wrong. Ross Ridge -- l/ // Ross Ridge -- The Great HTMU

Re: Single precision floating point calcs?

2007-05-10 Thread Ross Ridge
yways, it may not be worth the trouble of trying to get Python to use 32-bit floats. (You might also want to consider whether you want to using single precision in your C code to begin with, on IA-32 CPUs it seldom makes a difference in performance.) Ross

logging module and threading

2007-05-11 Thread Ross Boylan
parent would get each logged event right away. However, logging.getLogger("a").error("test") produces only a single log message indicating an associated object of "a". The docs lead me to expect that I'd see one message from "a" and another from root.

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Ross Ridge
re supported by third party utilities. Your PEP gives very little thought to how the change would affect the standard Python library. Are non-ASCII identifiers going to be poorly supported in Python's own library and utilities? Ross Ridge --

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Ross Ridge
<[EMAIL PROTECTED]> wrote: >So, please provide feedback, e.g. perhaps by answering these >questions: >- should non-ASCII identifiers be supported? why? Ross Ridge wrote: > I think the biggest argument against this PEP is how little similar > features are used in other lan

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Ross Ridge
>And then I dare to guess that much of that code is not open source. Lots of non-open source code makes it on to the Internet in the form of code snippets. You don't have to guess what closed-source are actually doing either. Ross Ridge -- l/ //

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-16 Thread Ross Ridge
Ross Ridge schrieb: > non-ASCII identifiers. While it's easy to find code where comments use > non-ASCII characters, I was never able to find a non-made up example > that used them in identifiers. Gregor Horvath <[EMAIL PROTECTED]> wrote: >If comments are allowed to be

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-17 Thread Ross Ridge
ight and what they did wrong. You don't have to speculate. Ross Ridge -- l/ // Ross Ridge -- The Great HTMU [oo][oo] [EMAIL PROTECTED] -()-/()/ http://www.csclub.uwaterloo.ca/~rridge/ db // -- http://mail.python.org/mailman/listinfo/python-list

ZSI sample and issues with the WSDL

2007-09-05 Thread David Ross
First two appologies, this is probably not a Python question, more SOAP. And second, there is every possibilty I am terminally confused having looked at this for two days now. What I want is to create a Python SOAP server. I am using the sample which comes with ZSI, namely the Echo.wsdl and assoc

Re: Passing a FILE* from Python into a MinGW/SWIG module

2007-03-15 Thread Ross Ridge
alls on Python's file class will be dispatched to C code in the Python interpreter and so will use the C runtime that Python was linked with. Ross Ridge -- l/ // Ross Ridge -- The Great HTMU [oo][oo] [EMAIL PROTECTED] -()-/()/ http://www.csclub.uw

Re: Exceptions when closing a file

2007-03-20 Thread Ross Ridge
;r") os.close(f.fileno) f.close() Normally however, you can expect file method close() to fail for all the same reasons you would expect write() to fail. Ross Ridge -- l/ // Ross Ridge -- The Great HTMU [oo][oo] [EMAIL

Re: How to receive a FILE* from Python under MinGW?

2007-03-20 Thread Ross Ridge
riptors, so the C runtime emulates them. Ross Ridge -- l/ // Ross Ridge -- The Great HTMU [oo][oo] [EMAIL PROTECTED] -()-/()/ http://www.csclub.uwaterloo.ca/~rridge/ db // -- http://mail.python.org/mailman/listinfo/python-list

Re: Getting started with python

2007-04-17 Thread Ross Ridge
more easily understood and maintainable than the second example. Ross Ridge -- l/ // Ross Ridge -- The Great HTMU [oo][oo] [EMAIL PROTECTED] -()-/()/ http://www.csclub.uwaterloo.ca/~rridge/ db // -- http://mail.python.org/mailman/listinfo/python-list

Re: generating list of sub lists

2007-09-17 Thread Ross Wilson
['string1', 'string2', > 'string3']] > > Any help would be appreciated. > > Thanks > Francesco > l = [l, l] Ross -- http://mail.python.org/mailman/listinfo/python-list

Re: Zope review

2007-09-21 Thread Ross Patterson
uch more Pythonic and plays nicely with others in the Python world such as Paste, WSGI, etc.. If you're interested in trying out Zope 3, check out grok (http://grok.zope.org/). Grok does the job of making the Zope 3 learning curve as gradual as Python such that you only need to learn enough to do what you're trying to do at the moment. Ross -- http://mail.python.org/mailman/listinfo/python-list

ANN: Generating svn:externals by inspecting a repository - z3c.repoexternals

2007-09-30 Thread Ross Patterson
all the trunks in a repository and keeps them up to date with the repository as new trunks are added when the previous externals are provided thereafter. http://cheeseshop.python.org/pypi/z3c.repoexternals Ross -- http://mail.python.org/mailman/listinfo/python-list

Cygwin Python/PIL TCL/TK fork rebase solution

2007-01-15 Thread Ross Patterson
s to explain to me how to choose base address and offset values, that would be cool. Ross -- http://mail.python.org/mailman/listinfo/python-list

Re: Determining when a file is an Open Office Document

2007-01-18 Thread Ross Ridge
odule to check to see if the file a ZIP file, if it has a member named "mimetype" and if the contents of the file match one of the OpenOffice MIME types. Ross Ridge -- http://mail.python.org/mailman/listinfo/python-list

Re: Determining when a file is an Open Office Document

2007-01-18 Thread Ross Ridge
odule to check to see if the file a ZIP file, if it has a member named "mimetype" and if the contents of the file match one of the OpenOffice MIME types. Ross Ridge -- http://mail.python.org/mailman/listinfo/python-list

Re: Determining when a file is an Open Office Document

2007-01-19 Thread Ross Ridge
better off using Postscript, Ghostscript specifically, since PDF is essentially Postscript with a special dictionary of commands. Ross Ridge -- http://mail.python.org/mailman/listinfo/python-list

Re: Determining when a file is an Open Office Document

2007-01-19 Thread Ross Ridge
Ross Ridge wrote: > So identifying PDF files is pretty easy. Steven D'Aprano wrote: > Sure. MIS-identifying PDF files is pretty easy. Identifying them is not. > Consider this example: Your contrived example doesn't show how a PDF file would be misidentified, it only shows how

Re: mmap caching

2007-01-22 Thread Ross Ridge
swapped into memory and stay in memory until they need to be swapped out to make room for something else. If you don't want this behaviour, don't use mmap. Ross Ridge -- http://mail.python.org/mailman/listinfo/python-list

Re: Help with Optimization of Python software: real-time audio controller

2007-02-12 Thread Ross Ridge
obably acceptable. Assuming he's not trying to write his own synthesizer, he might just be able to write his application in Python under Mac OS X. Ross Ridge -- http://mail.python.org/mailman/listinfo/python-list

Re: Running Python scripts from BASH

2007-02-27 Thread Ross Ridge
get around this? Don't mix Cygwin tools and native Windows tools. Either use the Cygwin version of Python or don't use Cygwin bash. Ross Ridge -- http://mail.python.org/mailman/listinfo/python-list

Re: mailbox.Maildir question/problem

2007-12-13 Thread Ross Ridge
r case is presumably different somehow, so you'll have to update and fix this completely untested code if you want to use it. Ross Ridge -- l/ // Ross Ridge -- The Great HTMU [oo][oo] [EMAIL PROTECTED] -()-/()/ http://www.csclub.uwaterloo.ca/~rridge/ db // -- http://mail.python.org/mailman/listinfo/python-list

<    1   2   3   4   >