Python-URL! - weekly Python news and links (Sep 2)

2009-09-03 Thread Gabriel Genellina
QOTW: I like how being very friendly means calling people after a guy who tried to blow up the English Parliament. - Carl Banks http://groups.google.com/group/comp.lang.python/browse_thread/thread/7a190c24d8025bb4 unichr/ord cannot handle characters outside the BMP in a narrow build:

Sphinx 0.6.3 released

2009-09-03 Thread Georg Brandl
Hi all, I'm proud to announce the release of Sphinx 0.6.3, which is a bugfix-only release in the 0.6 series. What is it? === Sphinx is a tool that makes it easy to create intelligent and beautiful documentation for Python projects (or other documents consisting of multiple

Pydev 1.5.0 (Pydev Extensions open sourced)

2009-09-03 Thread Fabio Zadrozny
Hi All, Today, Aptana is proud to announce that Pydev and Pydev Extensions have become a single plugin, with all the available contents open source (and freely available for anyone) in the 1.5.0 release (it's the same as 1.4.8 but with all the code open source). With that, Aptana believes in

REMINDER: PyCon 2010: Call for Proposals

2009-09-03 Thread Aahz
Call for proposals -- PyCon 2010 -- http://us.pycon.org/2010/ === Due date: October 1st, 2009 Want to showcase your skills as a Python Hacker? Want to have hundreds of people see your talk on the subject of your choice? Have some hot

Re: Unable to install pywin32 for Python 2.6.2

2009-09-03 Thread Gabriel Genellina
En Thu, 03 Sep 2009 02:16:13 -0300, David Lees debl2nos...@verizon.net escribió: In case anyone else has this problem, my mistake was a PYTHONPATH that pointed to my Python 2.5 installation. I simply changed it to: C:\Python26\Lib\site-packages and reran the Pywin32 installer and all is

Re: using queue

2009-09-03 Thread Jan Kaliszewski
06:49:13 Scott David Daniels scott.dani...@acm.org wrote: Tim Arnold wrote: (1) what's wrong with having each chapter in a separate thread? Too much going on for a single processor? Many more threads than cores and you spend a lot of your CPU switching tasks. In fact, python threads

Re: Simple addition to random module - Student's t

2009-09-03 Thread Terry Reedy
Robert Kern wrote: On 2009-09-02 14:15 PM, Raymond Hettinger wrote: On Sep 2, 6:51 am, Thomas Philipstkp...@gmail.com wrote: While the random module allows one to generate randome numbers with a variety of distributions, some useful distributions are omitted - the Student's t being among

Re: Why does this group have so much spam?

2009-09-03 Thread Terry Reedy
Steven D'Aprano wrote: On Wed, 02 Sep 2009 15:22:08 -0400, Terry Reedy wrote: the conclusion you do. But I read your argument as being that having an open wi-fi connection was prima facie evidence of intent to commit crime regardless of whether you were a public advocate or not. Perhaps I

Re: An iteration idiom (Was: Re: [Guppy-pe-list] loading files containing multiple dumps)

2009-09-03 Thread Chris Withers
Raymond Hettinger wrote: In the first case, you would write: sets.extend(h.load(f)) yes, what I had was: for s in iter(h.load(f)): sets.append(s) ...which I mistakenly thought was working, but in in fact boils down to Raymond's code. The problem is that each item that h.load(f) returns

Re: string find mystery

2009-09-03 Thread Tim Chase
I have come across this very strange behaviour. Check this code: if file_str.find('Geometry'): While the anser is to compare the results of .find() with -1, but the more Pythonic answer is just to use in: if Geometry in file_str: which reads a lot more cleanly, IMHO. -tkc --

match braces?

2009-09-03 Thread lallous
Hello In C/C++ you use the braces where as in Python you use the indentation levels. Most editors offer a Ctrl+[ to match the braces so that you can easily identify the scopes (more correctly statements blocks). I am finding it difficult to see blocks and/or jump from end to start with some IDE

Re: match braces?

2009-09-03 Thread Chris Rebert
On Thu, Sep 3, 2009 at 2:38 AM, lallouslall...@lgwm.org wrote: Hello In C/C++ you use the braces where as in Python you use the indentation levels. Most editors offer a Ctrl+[ to match the braces so that you can easily identify the scopes (more correctly statements blocks). I am finding it

Re: match braces?

2009-09-03 Thread Tim Chase
In C/C++ you use the braces where as in Python you use the indentation levels. Most editors offer a Ctrl+[ to match the braces so that you can easily identify the scopes (more correctly statements blocks). I am finding it difficult to see blocks and/or jump from end to start with some IDE

Modifying a textfile

2009-09-03 Thread Olli Virta
Hi! So I got this big textfile. It's full of data from a database. About 150 or more rows or lines in a textfile. There's three first rows that belong to the same subject. And then next three rows belong to another subject and so on, to the end of the file. What I need to do, is put the three

Re: Modifying a textfile

2009-09-03 Thread Chris Rebert
On Thu, Sep 3, 2009 at 3:21 AM, Olli Virtallvi...@gmail.com wrote: Hi! So I got this big textfile. It's full of data from a database. About 150 or more rows or lines in a textfile. There's three first rows that belong to the same subject. And then next three rows belong to another subject

Re: your favorite debugging tool?

2009-09-03 Thread Marius Gedminas
On Aug 25, 2:55 pm, Esmail ebo...@hotmail.com wrote: Re pdb, if you have a 'pointer' (ie reference) to an object, is there an easy way to dump out its contents, ie all of its members short of writing a method that does that and then calling it? Usually pp vars(your_object) does what you

Re: Simple addition to random module - Student's t

2009-09-03 Thread Daniel Stutzbach
On Wed, Sep 2, 2009 at 2:15 PM, Raymond Hettinger pyt...@rcn.com wrote: ISTM, there ought to be a statistics module that can calculate cumulative distribution functions for a variety of distributions. This would be far more helpful than creating more generators. Many of the formulas for

Re: Problem w/ mysqldump

2009-09-03 Thread Nitebirdz
On Wed, Sep 02, 2009 at 04:45:02PM -0400, Victor Subervi wrote: I tried running it like you said, got this error: 'mysqldump' is not a recognized internal or external command. If I could just figure out in what file the data were stored, I could copy it and try it in another computer. Any

Re: Entry Level Python Jobs

2009-09-03 Thread Nitebirdz
On Wed, Sep 02, 2009 at 08:31:20AM -0700, JonathanB wrote: I am a self-taught Python programmer with a liberal arts degree (Cross- cultural studies). I have been programming for several years now and would like to get a job as a python programmer. Unfortunately most of the job posts I have

Re: Modifying a textfile

2009-09-03 Thread Steven D'Aprano
On Thu, 03 Sep 2009 03:21:25 -0700, Olli Virta wrote: What I need to do, is put the three rows that goes together and belong to certain subject, on a one line in the output textfile. And the next three rows again on a one new line. And that goes with the rest of the data to the end of the

Re: Annoying octal notation

2009-09-03 Thread Albert van der Horst
In article 6031ba08-08c8-416b-91db-ce8ff57ae...@w6g2000yqw.googlegroups.com, James Harris james.harri...@googlemail.com wrote: SNIP So you are saying that Smalltalk has base in decimalrnumber where r is presumably for radix? That's maybe best of all. It preserves the syntactic requirement of

Re: recursive decorator

2009-09-03 Thread Michele Simionato
On Sep 3, 12:19 am, Ethan Furman et...@stoneleaf.us wrote: Greetings, List! The recent thread about a recursive function in a class definition led me back to a post about bindfunc from Arnaud, and from there I found Michele Simionato's decorator module (many thanks! :-), and from there I

Re: Annoying octal notation

2009-09-03 Thread Albert van der Horst
In article mailman.591.1251468775.2854.python-l...@python.org, MRAB pyt...@mrabarnett.plus.com wrote: Steven D'Aprano wrote: SNIP Obviously I can't speak for Ken Thompson's motivation in creating this feature, but I'm pretty sure it wasn't to save typing or space on punchcards. Even in 1969,

Re: string find mystery

2009-09-03 Thread Hendrik van Rooyen
On Thursday 03 September 2009 07:10:37 Helvin wrote: Hi, I have come across this very strange behaviour. Check this code: if file_str.find('Geometry'): #if file_str.endswith('Data_Input_Geometry.txt'): print 'I found geometry' elif

Re: Entry Level Python Jobs

2009-09-03 Thread Michele Simionato
On Sep 2, 5:31 pm, JonathanB doulo...@gmail.com wrote: I am a self-taught Python programmer with a liberal arts degree (Cross- cultural studies). I have been programming for several years now and would like to get a job as a python programmer. Unfortunately most of the job posts I have seen

Re: Entry Level Python Jobs

2009-09-03 Thread koranthala
On Sep 3, 9:19 am, steve st...@lonetwin.net wrote: On 09/03/2009 09:36 AM, steve wrote: Hi Jonathan, [...snip...] I feel stupid replying to my own post but just one more thing i thought about mentioning but forgot to add: - Look at your Liberal Arts major as an advantage. Every field has

obscure problem using elementtree to make xhtml website

2009-09-03 Thread Lee
Elementtree (python xml parser) will transform markup like tag boo=baa/tag into tag boo=baa / which is a reasonable thing to do for xml (called minimization, I think). But this caused an obscure problem when I used it to create the xhtml parts of my website, causing Internet Explorer to

Re: Annoying octal notation

2009-09-03 Thread sjm
On Aug 21, 2:45 pm, John Nagle na...@animats.com wrote: snip      In 2009, Unisys finally exited the mainframe hardware business, and the last of the 36-bit machines, the ClearPath servers, are being phased out. That line of machines goes back to the UNIVAC 2200 series, and the UNIVAC 1100

Re: match braces?

2009-09-03 Thread Ben Finney
Tim Chase python.l...@tim.thechases.com writes: Any editor worth its salt will offer indentation-based folding (I know vim does, and I would be astonished if emacs didn't. Emacs calls that “hide/show”, and the ‘hs-minor-mode’ can be enabled for any buffer (and can thus of course be

Re: python daemon - compress data and load data into MySQL by pyodbc

2009-09-03 Thread MacRules
Sean DiZazzo wrote: On Sep 2, 8:36 pm, MacRules macru...@nome.com wrote: Hi, I installed Python daemon, pyodbc module to access the back-end DB server. My setup is like this load data job - Python Daemon A, port 6000 - Python Daemon B, port 7000 - MySQL Daemon A will perform data

Re: obscure problem using elementtree to make xhtml website

2009-09-03 Thread David Smith
Lee wrote: Elementtree (python xml parser) will transform markup like tag boo=baa/tag into tag boo=baa / which is a reasonable thing to do for xml (called minimization, I think). But this caused an obscure problem when I used it to create the xhtml parts of my website, causing

Re: Annoying octal notation

2009-09-03 Thread Albert van der Horst
In article 6b5ea596-d1e3-483d-ba79-7b139d3c7...@z24g2000yqb.googlegroups.com, Bearophile bearophileh...@lycos.com wrote: MRAB: '_': what if in the future we want to allow them in numbers for clarity? Hettinger says it's hard (= requires too many changes) to do that and Python programs don't

Re: Annoying octal notation

2009-09-03 Thread Albert van der Horst
In article mailman.346.1251135629.2854.python-l...@python.org, Derek Martin c...@pizzashack.org wrote: --W1uEbMXJ1Mj4g6TI Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline On Mon, Aug 24, 2009 at 05:03:28PM +, Steven D'Aprano wrote: On Mon, 24 Aug 2009 11:21:46

Re: Modifying a textfile

2009-09-03 Thread konstantin
On Sep 3, 2:21 pm, Olli Virta llvi...@gmail.com wrote: Hi! So I got this big textfile. It's full of data from a database. About 150 or more rows or lines in a textfile. There's three first rows that belong to the same subject. And then next three rows belong to another subject and so on,

Re: python daemon - compress data and load data into MySQL by pyodbc

2009-09-03 Thread David Smith
MacRules wrote: Sean DiZazzo wrote: On Sep 2, 8:36 pm, MacRules macru...@nome.com wrote: Hi, I installed Python daemon, pyodbc module to access the back-end DB server. My setup is like this load data job - Python Daemon A, port 6000 - Python Daemon B, port 7000 - MySQL Daemon A will

Re: Python on the Web

2009-09-03 Thread Bruno Desthuilliers
Ed Singleton a écrit : On Aug 26, 4:17 am, alex23 wuwe...@gmail.com wrote: Frameworks created for the sake of creating a framework, as opposed to those written to meet a defined need, tend to be the worst examples of masturbatory coding. Indeed, but masturbation is perfectly healthy and

Re: match braces?

2009-09-03 Thread Grant Edwards
On 2009-09-03, Ben Finney ben+pyt...@benfinney.id.au wrote: Tim Chase python.l...@tim.thechases.com writes: Any editor worth its salt will offer indentation-based folding (I know vim does, and I would be astonished if emacs didn't. Emacs calls that ???hide/show???, and the

Re: obscure problem using elementtree to make xhtml website

2009-09-03 Thread Lee
I went with a space, but a comment is a better idea. I only mention the script tag in my article, for brevity, but I had the same problem with the object tag: basically any tag that can have content in html you had better close the html way (tag/tag), or IE will see it as unclosed and will not

Re: Annoying octal notation

2009-09-03 Thread Grant Edwards
On 2009-09-03, Albert van der Horst alb...@spenarnc.xs4all.nl wrote: In article mailman.591.1251468775.2854.python-l...@python.org, MRAB pyt...@mrabarnett.plus.com wrote: Steven D'Aprano wrote: SNIP Obviously I can't speak for Ken Thompson's motivation in creating this feature, but I'm pretty

Re: Python on the Web

2009-09-03 Thread Bruno Desthuilliers
John Nagle a écrit : (snip) MySQLdb is available only up to Python 2.5. Huh ??? Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41) [GCC 4.3.3] on linux2 Type help, copyright, credits or license for more information. import MySQLdb

Re: Creating slice notation from string

2009-09-03 Thread Falcolas
On Sep 2, 3:55 pm, bvdp b...@mellowood.ca wrote: I'm trying to NOT create a parser to do this and I'm sure that it's easy if I could only see the light! Is it possible to take an arbitrary string in the form 1:2, 1, :-1, etc. and feed it to slice() and then apply the result to an

Question about apply

2009-09-03 Thread jorma kala
Hi, I'm using apply to pass keyword arguments as a dictionary to a funcion at runtime (which keyword arguments to pass is only known at runtime) apply is very handy for this, because it takes a dictionary of keyword arguments directly def f1(a=None,b=None,c=None): pass kw={'a':1}

Re: python daemon - compress data and load data into MySQL by pyodbc

2009-09-03 Thread Ben Finney
MacRules macru...@nome.com writes: Are you a Python expert? This group has many Python experts, and even more people who can no doubt help you if you are able to articulate what you need help with. To help dispel a possible misunderstanding: Don't expect to have a one-on-one conversation with

Re: Annoying octal notation

2009-09-03 Thread James Harris
On 3 Sep, 14:26, Albert van der Horst alb...@spenarnc.xs4all.nl wrote: In article 6031ba08-08c8-416b-91db-ce8ff57ae...@w6g2000yqw.googlegroups.com, James Harris  james.harri...@googlemail.com wrote: SNIP So you are saying that Smalltalk has base in decimalrnumber where r is presumably for

Re: Annoying octal notation

2009-09-03 Thread James Harris
On 3 Sep, 15:35, Grant Edwards inva...@invalid wrote: ... Obviously I can't speak for Ken Thompson's motivation in creating this feature, but I'm pretty sure it wasn't to save typing or space on punchcards. Even in 1969, hex was more common than octal, and yet hex values are written with

Re: Annoying octal notation

2009-09-03 Thread James Harris
On 3 Sep, 15:54, Albert van der Horst alb...@spenarnc.xs4all.nl wrote: In article mailman.346.1251135629.2854.python-l...@python.org, Derek Martin  c...@pizzashack.org wrote: --W1uEbMXJ1Mj4g6TI Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline On Mon, Aug 24,

Re: Question about apply

2009-09-03 Thread Gary Herron
jorma kala wrote: Hi, I'm using apply to pass keyword arguments as a dictionary to a funcion at runtime (which keyword arguments to pass is only known at runtime) apply is very handy for this, because it takes a dictionary of keyword arguments directly def f1(a=None,b=None,c=None):

Re: Question about apply

2009-09-03 Thread jorma kala
Many thanks!! On Thu, Sep 3, 2009 at 4:21 PM, Gary Herron gher...@islandtraining.comwrote: jorma kala wrote: Hi, I'm using apply to pass keyword arguments as a dictionary to a funcion at runtime (which keyword arguments to pass is only known at runtime) apply is very handy for this,

Re: obscure problem using elementtree to make xhtml website

2009-09-03 Thread Lee
I went with a space, but a comment is a better idea. I only mention the script tag in my article, for brevity, but I had the same problem with the object tag: basically any tag that can have content in html you had better close the html way (tag/tag), or IE will see it as unclosed and will not

Re: match braces?

2009-09-03 Thread Joshua Judson Rosen
Grant Edwards inva...@invalid writes: On 2009-09-03, Ben Finney ben+pyt...@benfinney.id.au wrote: Tim Chase python.l...@tim.thechases.com writes: Any editor worth its salt will offer indentation-based folding (I know vim does, and I would be astonished if emacs didn't. Emacs calls

win32pipe

2009-09-03 Thread Hans Müller
Hello, I'd like to play a little with named pipes on windows. For this purpose google told me there is a win32pipe module. My python2.6 on windows doesn't know it - so where can I get ? Does it belong to the std. python for windows or is it a separate package ? Thank a lot, Hans --

Re: win32pipe

2009-09-03 Thread Tim Golden
Hans Müller wrote: Hello, I'd like to play a little with named pipes on windows. For this purpose google told me there is a win32pipe module. My python2.6 on windows doesn't know it - so where can I get ? Does it belong to the std. python for windows or is it a separate package ? It's part

print syntax

2009-09-03 Thread doug
I am new to python, working by way through 'Core Python Programming'. I can find no description of using print with the built-in type for formatting. I think I have got some [most?] of it from Chun, google, and python.org. My comment is - it should not be that hard to find. I would suggest a

Re: recursive decorator

2009-09-03 Thread Ethan Furman
Michele Simionato wrote: On Sep 3, 12:19 am, Ethan Furman et...@stoneleaf.us wrote: Greetings, List! The recent thread about a recursive function in a class definition led me back to a post about bindfunc from Arnaud, and from there I found Michele Simionato's decorator module (many thanks!

Re: print syntax

2009-09-03 Thread Benjamin Kaplan
On Thu, Sep 3, 2009 at 12:22 PM, d...@safeport.com wrote: I am new to python, working by way through 'Core Python Programming'. I can find no description of using print with the built-in type for formatting. I think I have got some [most?] of it from Chun, google, and python.org. My comment is

Re: print syntax

2009-09-03 Thread Robert Kern
On 2009-09-03 11:50 AM, Benjamin Kaplan wrote: On Thu, Sep 3, 2009 at 12:22 PM,d...@safeport.com wrote: I am new to python, working by way through 'Core Python Programming'. I can find no description of using print with the built-in type for formatting. I think I have got some [most?] of it

Re: Creating slice notation from string

2009-09-03 Thread Bob van der Poel
On Sep 2, 8:52 pm, Steven D'Aprano ste...@remove.this.cybersource.com.au wrote: On Wed, 02 Sep 2009 17:32:09 -0700, Bob van der Poel wrote: Actually, nither this or Jan's latest is working properly. I don't know if it's the slice() function or what (I'm using python 2.5). But: x =

Subclassing list and splicing

2009-09-03 Thread Kreso
I am subclassing list class and it basically works, but I don't understand why after splicing these mylist objects I don't get returned mylist objects. What I get are list objects: class mylist(list): def __init__(self): list.__init__(self) k = mylist() k.append(1) k.append(2)

Re: Algorithms as objects?

2009-09-03 Thread Kreso
Bearophile bearophileh...@lycos.com wrote: Please, can't you just use a bit of functional-style programming? Like creating nested functions on the fly, etc. I thought about it but I believe that in the future some parts of the code will be reimplemented in C/C++, so I try to keep it simple. In

Re: match braces?

2009-09-03 Thread John Nagle
lallous wrote: Hello In C/C++ you use the braces where as in Python you use the indentation levels. Most editors offer a Ctrl+[ to match the braces so that you can easily identify the scopes (more correctly statements blocks). I am finding it difficult to see blocks and/or jump from end to

Re: Subclassing list and splicing

2009-09-03 Thread Emile van Sebille
On 9/3/2009 10:10 AM Kreso said... I am subclassing list class and it basically works, but I don't understand why after splicing these mylist objects I don't get returned mylist objects. What I get are list objects: snip I would prefer that resulting object m belonged to myclist class. How to

The future of Python immutability

2009-09-03 Thread John Nagle
Python's concept of immutability is useful, but it could be more general. In the beginning, strings, tuples, and numbers were immutable, and everything else was mutable. That was simple enough. But over time, Python has acquired more immutable types - immutable sets and immutable byte

Python for 64bit Linux version

2009-09-03 Thread Bhanu Srinivas Mangipudi
Hello Every one, I just want to that s there a 64 bit Linux version for python ? if yes can you provide me any links for it.I could find a 64bit windows version but could not find Linuux version Your help is appriciated. Thanks Bhanu -- http://mail.python.org/mailman/listinfo/python-list

Re: Entry Level Python Jobs

2009-09-03 Thread Zaphod
On Thu, 03 Sep 2009 06:36:24 -0700, koranthala wrote: snip Also, I think topcoder.com is a good place for him. I have not used them much, but their business plan -- of asking medium to difficult questions every week, and contacting people who solves them with jobs -- is quite sound. Try

Re: python daemon - compress data and load data into MySQL by pyodbc

2009-09-03 Thread MacRules
Ben Finney wrote: MacRules macru...@nome.com writes: Are you a Python expert? This group has many Python experts, and even more people who can no doubt help you if you are able to articulate what you need help with. To help dispel a possible misunderstanding: Don't expect to have a

Re: Python for 64bit Linux version

2009-09-03 Thread Jochen Schulz
Bhanu Srinivas Mangipudi: I just want to that s there a 64 bit Linux version for python ? Yes. if yes can you provide me any links for it.I could find a 64bit windows version but could not find Linuux version I am currently too lazy to look it up for you on python.org (if it is there), but

issue with grep command

2009-09-03 Thread Jul
in tcsh terminal i have the following line of code cat fileName.txt | grep a which extracts all the instances of a from the file in the terminal.. however when i am trying to create a txt while, i am unable to do so for some reason..this is the syntaxt i am using -- cat fileName.txt | frep a

Re: Qstrings to Strings

2009-09-03 Thread Stefan Behnel
Helvin wrote: Just wanted to say, to convert qstrings (or integers for that matter) to strings, use the str() function. http://learnwithhelvin.blogspot.com/2009/09/qstrings-and-strings.html Hmmm, will that return a Unicode string? A byte string would be rather inappropriate in most cases. I

Re: The future of Python immutability

2009-09-03 Thread Nigel Rantor
John Nagle wrote: Python's concept of immutability is useful, but it could be more general. In the beginning, strings, tuples, and numbers were immutable, and everything else was mutable. That was simple enough. But over time, Python has acquired more immutable types - immutable sets

Re: obscure problem using elementtree to make xhtml website

2009-09-03 Thread Stefan Behnel
Lee wrote: basically any tag that can have content in html you had better close the html way (tag/tag), or IE will see it as unclosed and will not display the rest of the page after the tag (or do something else unexpected). Not a bug in IE (this time), which is correctly parsing the file as

Re: python daemon - compress data and load data into MySQL by pyodbc

2009-09-03 Thread Martin P. Hellwig
MacRules wrote: cut What I am looking for is this. Oracle DB in data center 1 (LA, west coast) MSSQL DB in data center 2 (DC, east coast) So network bandwidth is an issue, I prefer to have gzip fist and deliver the data. If bandwidth is really an issue, you should send compressed delta's.

Re: Why does this group have so much spam?

2009-09-03 Thread Ethan Furman
Steven D'Aprano wrote: On Thu, 03 Sep 2009 04:01:54 -0400, Terry Reedy wrote: ISP's price residential service based on average fixed cost and average usage. Multiple homes using one connection push those averages up. Is that meant to be a problem? When people buy more, the unit price they

Re: The future of Python immutability

2009-09-03 Thread Stefan Behnel
Nigel Rantor wrote: John Nagle wrote: Immutability is interesting for threaded programs, because immutable objects can be shared without risk. Consider a programming model where objects shared between threads must be either immutable or synchronized in the sense that Java uses the

Re: The future of Python immutability

2009-09-03 Thread Nigel Rantor
Stefan Behnel wrote: Nigel Rantor wrote: John Nagle wrote: Immutability is interesting for threaded programs, because immutable objects can be shared without risk. Consider a programming model where objects shared between threads must be either immutable or synchronized in the sense that

Re: python daemon - compress data and load data into MySQL by pyodbc

2009-09-03 Thread MacRules
Martin P. Hellwig wrote: MacRules wrote: cut What I am looking for is this. Oracle DB in data center 1 (LA, west coast) MSSQL DB in data center 2 (DC, east coast) So network bandwidth is an issue, I prefer to have gzip fist and deliver the data. If bandwidth is really an issue, you should

Re: The future of Python immutability

2009-09-03 Thread Stefan Behnel
Nigel Rantor wrote: My comment you quoted was talking about Java and the use of synchronized. I fthat was unclear I apologise. Well, it was clear. But it was also unrelated to what the OP wrote. He was talking about the semantics of synchronized in Java, not the use. Stefan --

Re: obscure problem using elementtree to make xhtml website

2009-09-03 Thread Rami Chowdhury
basically any tag that can have content in html you had better close the html way (tag/tag), or IE will see it as unclosed and will not display the rest of the page after the tag (or do something else unexpected). Not a bug in IE (this time), which is correctly parsing the file as html. ...

Re: The future of Python immutability

2009-09-03 Thread Stefan Behnel
John Nagle wrote: With this mechanism, multi-thread programs with shared data structures can be written with little or no explicit locking by the programmer. If the restrictions are made a bit stricter, strict enough that threads cannot share mutable unsynchronized data, removal of the

Re: Python for 64bit Linux version

2009-09-03 Thread Grant Edwards
On 2009-09-03, Jochen Schulz m...@well-adjusted.de wrote: Bhanu Srinivas Mangipudi: I just want to that s there a 64 bit Linux version for python ? Yes. if yes can you provide me any links for it.I could find a 64bit windows version but could not find Linuux version I am currently too

Video?

2009-09-03 Thread David C Ullrich
Not at all important, just for fun (at least for me): It seems to me, looking at various docs, that wxWidgets includes a media control that can play video files, but it's not included in wxPython. (There's something in wxPython with a promising name but it seems to be just audio.) Is that

Re: Qstrings to Strings

2009-09-03 Thread David Boddie
On Thursday 03 September 2009 21:01, Stefan Behnel wrote: Helvin wrote: Just wanted to say, to convert qstrings (or integers for that matter) to strings, use the str() function. http://learnwithhelvin.blogspot.com/2009/09/qstrings-and-strings.html Hmmm, will that return a Unicode string?

Re: Python for 64bit Linux version

2009-09-03 Thread Albert Hopkins
On Thu, 2009-09-03 at 13:30 -0500, Bhanu Srinivas Mangipudi wrote: I just want to that s there a 64 bit Linux version for python ? if yes can you provide me any links for it.I could find a 64bit windows version but could not find Linuux version If you are using a 64bit Linux distribution

Re: issue with grep command

2009-09-03 Thread Albert Hopkins
On Thu, 2009-09-03 at 11:51 -0700, Jul wrote: [Stuff about tcsh and grep deleted] What on earth does this have to do with Python? -a -- http://mail.python.org/mailman/listinfo/python-list

Re: First release of pyfsevents

2009-09-03 Thread Aahz
[posted to c.l.py with cc in e-mail, reply to group preferred] In article mailman.908.1251986896.2854.python-announce-l...@python.org, Nicolas Dumazet python-list@python.org wrote: I am proud to announce the first release of pyfsevents, a C extension providing a Python interface to the FSEvents

Re: Subclassing list and splicing

2009-09-03 Thread Kreso
Kreso kknowayu...@donoevil.com wrote: [...] I would prefer that resulting object m belonged to myclist class. I forgot to add that mylist instances in my case have some attributes (that's why I need special container class in the first place) which should be preserved after splicing. In my

Re: Video?

2009-09-03 Thread Avell Diroll
David C Ullrich wrote: ... Is that correct? If so is there some other standard Python windowing kit that does include some sort of video functionality? (Talking Ubuntu Linux if it matters.) I don't know about video and wxpython, but gstreamer has some python bindings (python-gst0.10 on

Re: First release of pyfsevents

2009-09-03 Thread Nicolas Dumazet
On Sep 3, 10:33 pm, a...@pythoncraft.com (Aahz) wrote: I'm curious why you went with FSEvents rather than kqueue.  My company discovered that FSEvents is rather coarse-grained: it only tells you that there has been an event within a directory, it does *not* tell you anything about the change!

Different results for request() vs putrequest()

2009-09-03 Thread John Gordon
According to the documentation, these two sections of code should be equivalent: conn = httplib.HTTPSConnection(host) conn.putrequest(POST, url) conn.putheader(Proxy-Authorization, myProxy) conn.putheader(Content-Length, %d % len(body)) conn.endheaders() conn.send(body) vs headers

Re: The future of Python immutability

2009-09-03 Thread Paul Rubin
Stefan Behnel stefan...@behnel.de writes: Read again what he wrote. In a language with only immutable data types (which doesn't mean that you can't efficiently create modified versions of a data container), avoiding race conditions is trivial. The most well known example is clearly Erlang.

Re: issue with grep command

2009-09-03 Thread Rhodri James
On Thu, 03 Sep 2009 19:51:20 +0100, Jul sneaky...@gmail.com wrote: in tcsh terminal i have the following line of code cat fileName.txt | grep a which extracts all the instances of a from the file in the terminal.. however when i am trying to create a txt while, i am unable to do so for some

Re: The future of Python immutability

2009-09-03 Thread Gabriel Genellina
En Thu, 03 Sep 2009 15:03:13 -0300, John Nagle na...@animats.com escribió: Python's concept of immutability is useful, but it could be more general. Immutability is interesting for threaded programs, because immutable objects can be shared without risk. Consider a programming

possible attribute-oriented class

2009-09-03 Thread Ken Newton
I have created the following class definition with the idea of making a clean syntax for non-programmers to created structured data within a python environment. I would appreciate comments on this code. First, is something like this already done? Second, are there reasons for not doing this? If

The Python: Rag September issue available

2009-09-03 Thread Bernie
The September issue of The Python: Rag is available at: http://www.pythonrag.org A monthly, free, community run, Python magazine - issues are in pdf format, intended for anyone interested in Python, without being particularly serious. If you have anything you would like to say about Python,

Re: Why does this group have so much spam?

2009-09-03 Thread Steven D'Aprano
On Thu, 03 Sep 2009 12:19:48 -0700, Ethan Furman wrote: Steven D'Aprano wrote: On Thu, 03 Sep 2009 04:01:54 -0400, Terry Reedy wrote: ISP's price residential service based on average fixed cost and average usage. Multiple homes using one connection push those averages up. Is that meant

Re: Why does this group have so much spam?

2009-09-03 Thread Ethan Furman
Steven D'Aprano wrote: On Thu, 03 Sep 2009 12:19:48 -0700, Ethan Furman wrote: Steven D'Aprano wrote: On Thu, 03 Sep 2009 04:01:54 -0400, Terry Reedy wrote: ISP's price residential service based on average fixed cost and average usage. Multiple homes using one connection push those

Re: Video?

2009-09-03 Thread Che M
On Sep 3, 4:11 pm, David C Ullrich dullr...@sprynet.com wrote: Not at all important, just for fun (at least for me): It seems to me, looking at various docs, that wxWidgets includes a media control that can play video files, but it's not included in wxPython. (There's something in wxPython

Re: possible attribute-oriented class

2009-09-03 Thread Steven D'Aprano
On Thu, 03 Sep 2009 15:46:01 -0700, Ken Newton wrote: I have created the following class definition with the idea of making a clean syntax for non-programmers to created structured data within a python environment. What do you expect non-programmers to do with this class, without

Re: python daemon - compress data and load data into MySQL by pyodbc

2009-09-03 Thread Ben Finney
MacRules macru...@nome.com writes: What I am looking for is this. Oracle DB in data center 1 (LA, west coast) MSSQL DB in data center 2 (DC, east coast) So network bandwidth is an issue Okay, that's a brief description but is clearer than we had before. I prefer to have gzip fist and

Re: Why does this group have so much spam?

2009-09-03 Thread Steven D'Aprano
On Thu, 03 Sep 2009 16:01:26 -0700, Ethan Furman wrote: Steven D'Aprano wrote: On Thu, 03 Sep 2009 12:19:48 -0700, Ethan Furman wrote: Steven D'Aprano wrote: On Thu, 03 Sep 2009 04:01:54 -0400, Terry Reedy wrote: ISP's price residential service based on average fixed cost and average

Re: Annoying octal notation

2009-09-03 Thread MRAB
Albert van der Horst wrote: In article 6b5ea596-d1e3-483d-ba79-7b139d3c7...@z24g2000yqb.googlegroups.com, Bearophile bearophileh...@lycos.com wrote: MRAB: '_': what if in the future we want to allow them in numbers for clarity? Hettinger says it's hard (= requires too many changes) to do

  1   2   >