[ANN] Pida 0.6beta3

2009-09-02 Thread poelzi
Pida is an IDE (integrated development environment). Pida is different from other IDEs in that it will use the tools you already have available rather than attempting to reinvent each one. Pida has unique features like a pluggable editor component supporting Vim, Emacs and Medit currently. We are

ANN: PyBindGen 0.12 released

2009-09-02 Thread Gustavo Carneiro
PyBindGen is a Python module that is geared to generating C/C++ code that binds a C/C++ library for Python. It does so without extensive use of either C++ templates or C pre-processor macros. It has modular handling of C/C++ types, and can be easily extended with Python plugins. The generated code

Jython 2.5.1 Release Candidate 1 is out!

2009-09-02 Thread Frank Wierzbicki
On behalf of the Jython development team, I'm pleased to announce that Jython 2.5.1rc1 is available for download: https://sourceforge.net/projects/jython/files/jython/2.5.1rc1/jython_installer-2.5.1rc1.jar/download. See the http://wiki.python.org/jython/InstallationInstructions for installation

ANN: eGenix mxODBC - Python ODBC Database Interface 3.0.3

2009-09-02 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix.com mxODBC - Python ODBC Database Interface Version 3.0.3 mxODBC is our commercially supported Python extension providing ODBC database connectivity to

Re: Why does this group have so much spam?

2009-09-02 Thread Terry Reedy
Steven D'Aprano wrote: I have read more that one person advocating leaving one's wi-fi base open for anyone to use as the 'neighborly' thing to do. That's a different kettle of fish. You don't do anybody any harm by paying for Internet access for your neighbours (and anyone driving down the

Problem with multiprocessing

2009-09-02 Thread tleeuwenb...@gmail.com
I have a problem using multiprocessing in a simple way. I created a file, testmp.py, with the following contents: --- import multiprocessing as mp p = mp.Pool(5) def f(x): return x * x print map(f, [1,2,3,4,5]) print p.map(f, [1,2,3,4,5])

Re: An assessment of the Unicode standard

2009-09-02 Thread Gabriel Genellina
En Tue, 01 Sep 2009 19:49:57 -0300, r rt8...@gmail.com escribió: On Sep 1, 1:52 pm, Hyuga hyugaricd...@gmail.com wrote: (snip) I'd say don't feel the troll, but too late for that I guess.   The only trolls in this thread are you and the others who breaks into MY THREAD just for the knee-jerk

Re: Is behavior of += intentional for int?

2009-09-02 Thread Tim Roberts
Steven D'Aprano st...@remove-this-cybersource.com.au wrote: On Sat, 29 Aug 2009 11:11:43 -0700, zaur wrote: I thought that int as object will stay the same object after += but with another integer value. My intuition said me that int object which represent integer value should behave this

Re: Python3: hex() on arbitrary classes

2009-09-02 Thread Mark Dickinson
On Sep 1, 5:31 pm, Philipp Hagemeister phi...@phihag.de wrote: Mark Dickinson wrote: (...) If you want to be able to interpret instances of X as integers in the various Python contexts that expect integers (e.g., hex(), but also things like list indexing), you should implement the

BeautifulSoup

2009-09-02 Thread elsa
Hi all, if I have some HTML that looks like this: area coords=427,724,432,732 href=http://BioCyc.org/ECOLI/NEW-IMAGE? type=GENE-IN-CHROM-BROWSERamp;object=EG12309 onmouseover=return overlib('lt;bgt;Gene:lt;/bgt; yjtDlt;BRgt;lt;bgt;Product:lt;/ bgt; predicted rRNA methyltransferase, subunit of

Re: BeautifulSoup

2009-09-02 Thread Brian
from BeautifulSoup import BeautifulSoup soup = BeautifulSoup(area coords=427,724,432,732 href= http://BioCyc.org/ECOLI/NEW-IMAGE? ... type=GENE-IN-CHROM-BROWSERobject=EG12309 onmouseover=return ... overlib('bGene:/b yjtDBRbProduct:/ ... b predicted rRNA methyltransferase, subunit of predicted

Re: Daemon process

2009-09-02 Thread Hendrik van Rooyen
On Wednesday 02 September 2009 05:57:02 Shan wrote: I have XML RPC Server listening on a port. This XML RPC Server works fine when i run it as foreground process. All the clients are able to connect with the XML RPC Server. But when i run it as daemon(not using . I am doing it in python way

Re: Why does this group have so much spam?

2009-09-02 Thread Steven D'Aprano
On Wed, 02 Sep 2009 02:16:27 -0400, Terry Reedy wrote: Steven D'Aprano wrote: I have read more that one person advocating leaving one's wi-fi base open for anyone to use as the 'neighborly' thing to do. That's a different kettle of fish. You don't do anybody any harm by paying for

Re: map

2009-09-02 Thread elsa
On Aug 31, 11:44 pm, Hendrik van Rooyen hend...@microcorp.co.za wrote: On Monday 31 August 2009 11:31:34 Piet van Oostrum wrote: But ultimately it is also very much a matter of taste, preference and habit. This is true, but there is another reason that I posted - I have noticed that there

Re: An assessment of the Unicode standard

2009-09-02 Thread Hendrik van Rooyen
On Wednesday 02 September 2009 08:52:55 Gabriel Genellina wrote: En Tue, 01 Sep 2009 19:49:57 -0300, r rt8...@gmail.com escribió: On Sep 1, 1:52 pm, Hyuga hyugaricd...@gmail.com wrote: (snip) I'd say don't feel the troll, but too late for that I guess.   The only trolls in this thread

AttributeError: 'NoneType' object has no attribute 'get_text'

2009-09-02 Thread Raji Seetharaman
On Wed, Sep 2, 2009 at 10:11 AM, Raji Seetharaman sraji...@gmail.comwrote: Thanks MRAB. Now it works. Raji.S -- http://mail.python.org/mailman/listinfo/python-list

Re: BeautifulSoup

2009-09-02 Thread Peter Otten
elsa wrote: if I have some HTML that looks like this: area coords=427,724,432,732 href=http://BioCyc.org/ECOLI/NEW-IMAGE? type=GENE-IN-CHROM-BROWSERamp;object=EG12309 onmouseover=return overlib('lt;bgt;Gene:lt;/bgt; yjtDlt;BRgt;lt;bgt;Product:lt;/ bgt; predicted rRNA methyltransferase,

Re: Is behavior of += intentional for int?

2009-09-02 Thread Piet van Oostrum
Carl Banks pavlovevide...@gmail.com (CB) wrote: CB On Sep 1, 10:40 am, Piet van Oostrum p...@cs.uu.nl wrote: Numbers are immutable by nature (math). The number 3.14 remains 3.14 whatever you try to do with it. What you call an immutable number is in fact a container that contains a number.

Re: Problem with multiprocessing

2009-09-02 Thread Peter Otten
tleeuwenb...@gmail.com wrote: I have a problem using multiprocessing in a simple way. I created a file, testmp.py, with the following contents: --- import multiprocessing as mp p = mp.Pool(5) def f(x): return x * x print map(f,

Re: Problem with multiprocessing

2009-09-02 Thread Roy Hyunjin Han
On 09/02/2009 04:51 AM, Peter Otten wrote: tleeuwenb...@gmail.com wrote: I have a problem using multiprocessing in a simple way. I created a file, testmp.py, with the following contents: --- import multiprocessing as mp p = mp.Pool(5) def

Re: Why does this group have so much spam?

2009-09-02 Thread MRAB
Steven D'Aprano wrote: On Tue, 01 Sep 2009 20:48:19 +0200, David wrote: Il Tue, 1 Sep 2009 11:50:14 +0200, Andre Engels ha scritto: What about mailing lists? There exist well-functioning mailing lists with thousands of subscribers. Being a posting member of those will significantly increase

[OT] evolution [was Re: An assessment of the Unicode standard]

2009-09-02 Thread Steven D'Aprano
This thread has intrigued me enough to bite the bullet and look up r's posts. Oh my! They say a little learning is a dangerous thing, and this is a great example -- the only think bigger than r's ignorance and naivety on these topics is his confidence that he alone understands The Truth. Oh

Re: An assessment of the Unicode standard

2009-09-02 Thread Gabriel Genellina
En Wed, 02 Sep 2009 04:58:43 -0300, Hendrik van Rooyen hend...@microcorp.co.za escribió: On Wednesday 02 September 2009 08:52:55 Gabriel Genellina wrote: Bueno, voy a escribir en el segundo lenguaje más hablado en el mundo (español), después del mandarín (con más de 1000 millones de

Re: using queue

2009-09-02 Thread MRAB
Tim Arnold wrote: Hi, I've been using the threading module with each thread as a key in a dictionary. I've been reading about Queues though and it looks like that's what I should be using instead. Just checking here to see if I'm on the right path. The code I have currently compiles a bunch of

Problem w/ mysqldump

2009-09-02 Thread Victor Subervi
Hi: I have the following python code: import os os.system(mysqldump -u root -pPASSWORD --opt spreadsheets dump.sql) This nicely creates the file...but the file is empty! The database exists and has lots of data, I double-checked it. If there is nothing wrong with my code, is there some way to do

Issue with writelines

2009-09-02 Thread LeeRisq
I've written this program that has been working fine until today. Can't work out why it stopped working. The program pulls a list from an xls file, inserts each item from the list into a repeating string, that then concatenates the repeating string and writes it to a text file. It has worked fine

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

2009-09-02 Thread Boris Borcic
Sverker Nilsson wrote: Sverker Nilsson wrote: It reads one Stat object at a time and wants to report something when there is no more to be read from the file. Hmm, am I right in thinking the above can more nicely be written as: from guppy import hpy h = hpy() f = open(r'your.hpy')

Simple addition to random module - Student's t

2009-09-02 Thread Thomas Philips
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 them. This distribution is easily derived from the normal distribution and the chi-squared distribution (which in turn is a special

Re: win32ui DLL Load Failed

2009-09-02 Thread MikeC
On Sep 1, 12:14 am, Gregor Horvath g...@gregor-horvath.com wrote: Am Mon, 31 Aug 2009 12:43:04 -0700 (PDT) schriebMikeCmcrav...@att.net: I have a python executable that's failing to load on a user's machine running Windows XP. My developer machine is also running Windows XP. I have

Re: Why does this group have so much spam?

2009-09-02 Thread Grant Edwards
On 2009-09-02, Terry Reedy tjre...@udel.edu wrote: Steven D'Aprano wrote: I have read more that one person advocating leaving one's wi-fi base open for anyone to use as the 'neighborly' thing to do. That's a different kettle of fish. You don't do anybody any harm by paying for Internet

Re: Why does this group have so much spam?

2009-09-02 Thread Grant Edwards
On 2009-09-02, Steven D'Aprano ste...@remove.this.cybersource.com.au wrote: On Wed, 02 Sep 2009 02:16:27 -0400, Terry Reedy wrote: Steven D'Aprano wrote: I have read more that one person advocating leaving one's wi-fi base open for anyone to use as the 'neighborly' thing to do. That's a

Re: An assessment of the Unicode standard

2009-09-02 Thread Mel
Gabriel Genellina wrote: Looks like we all will have to learn mandarin! A nice language but with a high entrance barrier for western people. It will pay off in the long run. Problem for me: it seems most people in Toronto speak Cantonese. That's just something I'll have to deal with. Wrote

Re: Problem w/ mysqldump

2009-09-02 Thread Emile van Sebille
On 9/2/2009 3:43 AM Victor Subervi said... Hi: I have the following python code: import os os.system(mysqldump -u root -pPASSWORD --opt spreadsheets dump.sql) First, test this at the system command line -- you'll likely get an empty file there as well, so calling from within python simply

pickling question

2009-09-02 Thread Gary Robinson
When you define a class in a script, and then pickle instances of that class in the same script and store them to disk, you can't load that pickle in another script. At least not the straightforward way [pickle.load(file('somefile.pickle'))]. If you try it, you get an AttributeError during the

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

2009-09-02 Thread Mark Dickinson
On Sep 2, 2:51 pm, Thomas Philips tkp...@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 them. This distribution is easily derived from the normal distribution

Entry Level Python Jobs

2009-09-02 Thread JonathanB
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 are for CS Majors or people with experience. Is there a

Re: Problem w/ mysqldump

2009-09-02 Thread Nitebirdz
On Wed, Sep 02, 2009 at 08:43:22AM -0400, Victor Subervi wrote: Obviously I'm sure. It created the file. But the file was blank. How can I do a mysqldump in mysql itself? As I said, I only got a blank file when the actual command itself failed. How do you dump the MySQL database itself

Re: Problem w/ mysqldump

2009-09-02 Thread Victor Subervi
Not sure how to test it at the command line as you recommend; however, I most certainly did supply the db name. I most certainly did check the docs. I also looked at code I had previously written that worked. So I'm stumped! Is there any way to print it out to screen or (better yet) print to

Re: Entry Level Python Jobs

2009-09-02 Thread r
On Sep 2, 10:31 am, 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: pickling question

2009-09-02 Thread Carl Banks
On Sep 2, 7:06 am, Gary Robinson gary...@me.com wrote: When you define a class in a script, and then pickle instances of that class in the same script and store them to disk, you can't load that pickle in another script. At least not the straightforward way

Re: Entry Level Python Jobs

2009-09-02 Thread Philip Semanchuk
On Sep 2, 2009, at 11:48 AM, r wrote: On Sep 2, 10:31 am, 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.

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

2009-09-02 Thread Mark Dickinson
On Sep 2, 2:51 pm, Thomas Philips tkp...@gmail.com wrote: def student_t(df):         # df is the number of degrees of freedom     if df 2  or int(df) != df:        raise ValueError, 'student_tvariate: df must be a integer 1' By the way, why do you exclude the possibility df=1 here? -- Mark

Re: Entry Level Python Jobs

2009-09-02 Thread Paul Rubin
JonathanB doulo...@gmail.com writes: I am a self-taught Python programmer with a liberal arts degree (Cross- cultural studies) Is there a place I can look for job posts for entry level positions requiring no experience? For the hiring managers, if the job post said CS Major in the

Re: Entry Level Python Jobs

2009-09-02 Thread Ethan Furman
Philip Semanchuk wrote: On Sep 2, 2009, at 11:48 AM, r wrote: On Sep 2, 10:31 am, 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

Re: Entry Level Python Jobs

2009-09-02 Thread JonathanB
Ok, so what I'm hearing is Get a code portfolio together and watch the job board on python.org. Thanks for the advice! I've been watching the python job board 3-4 times a week and I've been working my way through the Project Euler problems in my free time. I also have a trade generator that I

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

2009-09-02 Thread Thomas Philips
On Sep 2, 12:28 pm, Mark Dickinson dicki...@gmail.com wrote: On Sep 2, 2:51 pm, Thomas Philips tkp...@gmail.com wrote: def student_t(df):         # df is the number of degrees of freedom     if df 2  or int(df) != df:        raise ValueError, 'student_tvariate: df must be a integer 1'

Re: Entry Level Python Jobs

2009-09-02 Thread Aahz
In article c477b7ce-bea7-4855-ab71-94d016239...@t13g2000yqn.googlegroups.com, 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

Re: pickling question

2009-09-02 Thread exarkun
On 02:06 pm, gary...@me.com wrote: When you define a class in a script, and then pickle instances of that class in the same script and store them to disk, you can't load that pickle in another script. At least not the straightforward way [pickle.load(file('somefile.pickle'))]. If you try it,

website feedback to where?

2009-09-02 Thread rogerdpack
Greetings. A little new to python here, but... on this page http://docs.python.org/3.1/tutorial/introduction.html some of the text examples are [incorrectly] color formatted. I assume this a bug reportable to bugs.python.org? Thanks! -r -- http://mail.python.org/mailman/listinfo/python-list

Re: Entry Level Python Jobs

2009-09-02 Thread Adam
On Sep 2, 11:31 am, JonathanB doulo...@gmail.com wrote: For the hiring managers, if the job post said CS Major in the requirements, would you consider a liberal arts major at all? I got my English Writing degree in 1990, and I have been a software engineer ever since. Landing the first job was

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

2009-09-02 Thread Thomas Philips
On Sep 2, 1:03 pm, Thomas Philips tkp...@gmail.com wrote: On Sep 2, 12:28 pm, Mark Dickinson dicki...@gmail.com wrote: On Sep 2, 2:51 pm, Thomas Philips tkp...@gmail.com wrote: def student_t(df):         # df is the number of degrees of freedom     if df 2  or int(df) != df:        

ctypes WNetGetUniversalNameW

2009-09-02 Thread Gustavo
Hello, I'm trying to call WNetGetUniversalNameW via the ctypes module but I'm only causing the interpreter to crash. Unfortunately I don't have much experience with the ctypes module and I'm still trying to figure it out. I've searched for a solution to no avail. My confusion is centered around

Re: Why does this group have so much spam?

2009-09-02 Thread Steven D'Aprano
On Wed, 02 Sep 2009 06:20:39 -0700, Emile van Sebille wrote: On 9/1/2009 9:22 PM r said... On Sep 1, 10:16 pm, Steven D'Aprano Took me two weeks of elapsed time and around 30 hours of effort to remove those suckers from the machine. Now I run Linux, behind two firewalls. Takes me less

Re: evolution [was Re: An assessment of the Unicode standard]

2009-09-02 Thread r
On Sep 2, 4:41 am, Steven D'Aprano ste...@remove.this.cybersource.com.au wrote: (snip) No evolution awards those that benefit evolution. You make it seem as evolution is some loving mother hen, quite the contrary! Evolution is selfish, greedy, and sometimes evil. And it will endure all of

Re: Entry Level Python Jobs

2009-09-02 Thread Tim Wintle
On Wed, 2009-09-02 at 08:31 -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 seen are

Re: Problem w/ mysqldump

2009-09-02 Thread Victor Subervi
I am running this on Windoze. I do not use the mysql db without python. I'm just building something for a client. I tried running the mysqldump command from the python prompt. Didn't know I could do that :) It tells me mysqldump is not defined :( V On Wed, Sep 2, 2009 at 11:48 AM, Nitebirdz

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

2009-09-02 Thread Robert Kern
On 2009-09-02 11:28 AM, Mark Dickinson wrote: On Sep 2, 2:51 pm, Thomas Philipstkp...@gmail.com wrote: def student_t(df): # df is the number of degrees of freedom if df 2 or int(df) != df: raise ValueError, 'student_tvariate: df must be a integer 1' By the way, why do

Re: Issue with writelines

2009-09-02 Thread S.Selvam
On Wed, Sep 2, 2009 at 6:50 PM, LeeRisq leer...@gmail.com wrote: I've written this program that has been working fine until today. Can't work out why it stopped working. The program pulls a list from an xls file, inserts each item from the list into a repeating string, that then concatenates

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

2009-09-02 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:

Re: Problem w/ mysqldump

2009-09-02 Thread Rami Chowdhury
I tried running the mysqldump command from the python prompt I think you were being asked to try running it from the command prompt (cmd.exe) -- it won't work from the Python prompt, of course. On Wed, 02 Sep 2009 10:50:55 -0700, Victor Subervi victorsube...@gmail.com wrote: I am

Re: Python on the Web

2009-09-02 Thread Ed Singleton
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 acceptable, and we all do it

Re: website feedback to where?

2009-09-02 Thread Terry Reedy
rogerdpack wrote: on this page http://docs.python.org/3.1/tutorial/introduction.html some of the text examples are [incorrectly] color formatted. I did not see any problems with my browser (FF3.5), so please be more specific. I assume this a bug reportable to bugs.python.org? Yes, this

Re: Entry Level Python Jobs

2009-09-02 Thread Paul Rubin
JonathanB doulo...@gmail.com writes: Any other tips? Learn some more languages besides Python. Python is good to know but other languages present other ways of doing things. A skillful programmer has a variety of techniques to draw from. -- http://mail.python.org/mailman/listinfo/python-list

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

2009-09-02 Thread Mark Dickinson
On Sep 2, 6:15 pm, Thomas Philips tkp...@gmail.com wrote: I mis-spoke - the variance is infinite when df=2 (the variance is df/ (df-2), Yes: the variance is infinite both for df=2 and df=1, and Student's t with df=1 doesn't even have an expectation. I don't see why this would stop you from

pickle error - 'module' object has no attribute '_reconstruct'

2009-09-02 Thread Skip Montanaro
Saw a new-to-me error today when trying to unpickle a moderately large object (about 500k): AttributeError: 'module' object has no attribute '_reconstruct' Google turned up nothing as far as I could tell, _reconstruct doesn't appear in the docs and pickletools.dis() was happy to disassemble

Re: pickle error - 'module' object has no attribute '_reconstruct'

2009-09-02 Thread Skip Montanaro
Skip Montanaro skip at pobox.com writes: Saw a new-to-me error today when trying to unpickle a moderately large object (about 500k): AttributeError: 'module' object has no attribute '_reconstruct' I believe I have it figured out. Most of the pickled data consists of numpy arrays. It

Re: evolution [was Re: An assessment of the Unicode standard]

2009-09-02 Thread Nigel Rantor
r wrote: I'd like to present a bug report to evolution, obviously the garbage collector is malfunctioning. I think most people think that when they read the drivel that you generate. I'm done with your threads and posts. *plonk* -- http://mail.python.org/mailman/listinfo/python-list

IMGCrush (New Python image optimizing tool)

2009-09-02 Thread kiithsa...@gmail.com
Hello people, I started to work on a small Python script to simplify mass conversion of images for a website I was working on. I eventually got interested in the script more than the site istelf, and it got a lot bigger, so I released it as an opensource project It's licensed under BSD and not

Re: Why does this group have so much spam?

2009-09-02 Thread David
Il Wed, 02 Sep 2009 10:22:50 +0100, MRAB ha scritto: The preferred option these days is to slow down net access of the offenders, not cut them off completely. I'm not sure how many ISPs actually do that yet. If they do, it doesn't look like it's working that much. D. --

Re: Entry Level Python Jobs

2009-09-02 Thread Adam
On Sep 2, 12:52 pm, JonathanB doulo...@gmail.com wrote: Any other tips? I'm probably going to come off as very old school, but give yourself a good and thorough education in data structures and algorithms. You might never be called on to actually code a quick sort, merge sort, heap sort,

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

2009-09-02 Thread Raymond Hettinger
On Sep 2, 6:51 am, Thomas Philips tkp...@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 them. I'm curious to hear what your use cases are. My understanding is

Re: Why does this group have so much spam?

2009-09-02 Thread Terry Reedy
Steven D'Aprano wrote: On Wed, 02 Sep 2009 02:16:27 -0400, Terry Reedy wrote: The rationale I have seen is this: if one leaves the wi-fi router open and illegal activity is conducted thru it, and there is no residual evidence on the hard drives of on-premises machines, then one may claim that

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

2009-09-02 Thread Raymond Hettinger
To get this into core Python, you'd usually submit a feature request athttp://bugs.python.org. If you do submit a patch, please assign it to me. I've been the primary maintainer for that module for several years. Raymond Hettinger -- http://mail.python.org/mailman/listinfo/python-list

Re: Why does this group have so much spam?

2009-09-02 Thread r
On Sep 2, 12:33 pm, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: (snip) I learned one thing though. System Restore sounds like a good idea, but in my experience it's only good for restoring malware when you reboot. System restore is a joke! and a complete waste of HD space

notes

2009-09-02 Thread kiithsa...@gmail.com
Requires ImageMagick and Python (coded in python 2.x, I'm running 2.6 but it might run on older python as well) -- http://mail.python.org/mailman/listinfo/python-list

Re: Why does this group have so much spam?

2009-09-02 Thread r
On Sep 2, 4:22 am, MRAB pyt...@mrabarnett.plus.com wrote: The preferred option these days is to slow down net access of the offenders, not cut them off completely. I'm not sure how many ISPs actually do that yet. That seems to be the case with ISP and good users also in the form of quotas ;-)

Re: notes

2009-09-02 Thread kiithsa...@gmail.com
On Sep 2, 9:27 pm, kiithsa...@gmail.com kiithsa...@gmail.com wrote: Requires ImageMagick and Python (coded in python 2.x, I'm running 2.6 but it might run on older python as well) Sorry, got confused by Google Groups interface and posted a new topic instead of just replying --

Re: Why does this group have so much spam?

2009-09-02 Thread Emile van Sebille
On 9/2/2009 7:07 AM Unknown said... A spam/malware merchange who can't afford/arrange other internet access? How is net access on the critical path? Mailbots (a significant source of spam IMHO) thrive on net access -- for them, is there anything _more_ critical? Emile --

Re: IMGCrush (New Python image optimizing tool)

2009-09-02 Thread kiithsa...@gmail.com
On Sep 2, 8:59 pm, kiithsa...@gmail.com kiithsa...@gmail.com wrote: Hello people, I started to work on a small Python script to simplify mass conversion of images for a website I was working on. I eventually got interested in the script more than the site istelf, and it got a lot bigger, so

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

2009-09-02 Thread Thomas Philips
On Sep 2, 2:37 pm, Mark Dickinson dicki...@gmail.com wrote: On Sep 2, 6:15 pm, Thomas Philips tkp...@gmail.com wrote: I mis-spoke - the variance is infinite when df=2 (the variance is df/ (df-2), Yes:  the variance is infinite both for df=2 and df=1, and Student's t with df=1 doesn't even

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

2009-09-02 Thread Raymond Hettinger
I dont know guppy, but if h.load(f) raises StopIteration upon eof, as seems implied by your proposal, then something like the following would work. sets.extend(h.load(f) for _ in xrange(1e9)) Sounds like hpy has a weird API. Either it should be an iterator supporting __iter__() and next()

Re: Why does this group have so much spam?

2009-09-02 Thread Grant Edwards
On 2009-09-02, Emile van Sebille em...@fenx.com wrote: On 9/2/2009 7:07 AM Unknown said... A spam/malware merchange who can't afford/arrange other internet access? How is net access on the critical path? Mailbots (a significant source of spam IMHO) thrive on net access -- for them, is

Re: Why does this group have so much spam?

2009-09-02 Thread David
Il 02 Sep 2009 00:17:05 GMT, Steven D'Aprano ha scritto: This can be done already, without the need for an email tax. ISPs could easily detect spammers, if they cared to. There are a few things that can already be done to cut the spam problem to manageable size: (1) Why aren't ISPs

Re: exec globals and locals

2009-09-02 Thread Chris Rebert
On Wed, Sep 2, 2009 at 4:54 AM, Quentin Lampinquentin.lam...@gmail.com wrote: Hi, Being fairly new to Python, I'm trying to figure out the best way to use the exec statement and I must admit that I am a bit lost. Consider this case: exec print 'a' in {},{}   [exp.1] It means  that I'm

Re: exec globals and locals

2009-09-02 Thread Quentin Lampin
2009/9/2 Chris Rebert c...@rebertia.com On Wed, Sep 2, 2009 at 4:54 AM, Quentin Lampinquentin.lam...@gmail.com wrote: Hi, Being fairly new to Python, I'm trying to figure out the best way to use the exec statement and I must admit that I am a bit lost. Consider this case: exec

Re: website feedback to where?

2009-09-02 Thread Aahz
In article ae3190a6-aabb-44f8-b317-d5ff828b7...@37g2000yqm.googlegroups.com, rogerdpack rogerdp...@gmail.com wrote: on this page http://docs.python.org/3.1/tutorial/introduction.html some of the text examples are [incorrectly] color formatted. I assume this a bug reportable to

Re: exec globals and locals

2009-09-02 Thread Chris Rebert
On Wed, Sep 2, 2009 at 1:13 PM, Quentin Lampinquentin.lam...@gmail.com wrote: 2009/9/2 Chris Rebert c...@rebertia.com On Wed, Sep 2, 2009 at 4:54 AM, Quentin Lampinquentin.lam...@gmail.com wrote: Hi, Being fairly new to Python, I'm trying to figure out the best way to use the exec

Re: exec globals and locals

2009-09-02 Thread Quentin Lampin
2009/9/2 Chris Rebert c...@rebertia.com On Wed, Sep 2, 2009 at 1:13 PM, Quentin Lampinquentin.lam...@gmail.com wrote: 2009/9/2 Chris Rebert c...@rebertia.com On Wed, Sep 2, 2009 at 4:54 AM, Quentin Lampinquentin.lam...@gmail.com wrote: Hi, Being fairly new to Python, I'm trying

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

2009-09-02 Thread Robert Kern
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 them. I'm curious to

Re: website feedback to where?

2009-09-02 Thread rogerdpack
On Sep 2, 12:30 pm, Terry Reedy tjre...@udel.edu wrote: rogerdpack wrote: on this page http://docs.python.org/3.1/tutorial/introduction.html some of the text examples are [incorrectly] color formatted. I did not see any problems with my browser (FF3.5), so please be more specific.

Re: Problem w/ mysqldump

2009-09-02 Thread Victor Subervi
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 ideas? TIA, V On Wed, Sep 2, 2009 at 2:10 PM, Rami Chowdhury

Re: pickling question

2009-09-02 Thread Gary Robinson
Many thanks for the responses I've received here to my question (below). After reading the responses, I understand what the problem is much better. In addition to the solutions mentioned in the responses, now that I understand the problem I'll offer up my own solution. The following is an

Re: website feedback to where?

2009-09-02 Thread Diez B. Roggisch
rogerdpack schrieb: On Sep 2, 12:30 pm, Terry Reedy tjre...@udel.edu wrote: rogerdpack wrote: on this page http://docs.python.org/3.1/tutorial/introduction.html some of the text examples are [incorrectly] color formatted. I did not see any problems with my browser (FF3.5), so please be more

Re: website feedback to where?

2009-09-02 Thread MRAB
Diez B. Roggisch wrote: rogerdpack schrieb: On Sep 2, 12:30 pm, Terry Reedy tjre...@udel.edu wrote: rogerdpack wrote: on this page http://docs.python.org/3.1/tutorial/introduction.html some of the text examples are [incorrectly] color formatted. I did not see any problems with my browser

Re: website feedback to where?

2009-09-02 Thread Diez B. Roggisch
MRAB schrieb: Diez B. Roggisch wrote: rogerdpack schrieb: On Sep 2, 12:30 pm, Terry Reedy tjre...@udel.edu wrote: rogerdpack wrote: on this page http://docs.python.org/3.1/tutorial/introduction.html some of the text examples are [incorrectly] color formatted. I did not see any problems with

Creating slice notation from string

2009-09-02 Thread bvdp
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 existing list? For example, I have a normal python list.

Re: Creating slice notation from string

2009-09-02 Thread MRAB
bvdp 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 existing list? For example, I have a normal

Re: Creating slice notation from string

2009-09-02 Thread Robert Kern
On 2009-09-02 16:55 PM, bvdp 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 existing list? For

recursive decorator

2009-09-02 Thread Ethan Furman
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 began to wonder... from decorator import decorator

Re: Creating slice notation from string

2009-09-02 Thread Jan Kaliszewski
03-09-2009 o 00:11:17 MRAB pyt...@mrabarnett.plus.com wrote: bvdp 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

  1   2   >