Re: sqlite3 double quote behavior

2022-12-15 Thread John K. Parejko
:58, Chris Angelico wrote: > > On Wed, 14 Dec 2022 at 08:19, Roel Schroeven wrote: >> >> Chris Angelico schreef op 13/12/2022 om 20:01: >>> On Wed, 14 Dec 2022 at 06:00, Roel Schroeven wrote: >>>> >>>> Stefan Ram schreef op 13/12/2022 om 8:42: >

sqlite3 double quote behavior

2022-12-12 Thread John K. Parejko
Asking here before I file an improvement request issue on the python GitHub: sqlite has a known misfeature with double-quoted strings, whereby they will be interpreted as string literals if they don’t match a valid identifier [1]. The note in the sqlite docs describe a way to disable this misfea

How to copy the entire outlook message content in python

2020-12-29 Thread nikhil k
Hello All, I'm a beginner trying to achieve the below in my python script: Can anyone help me on this? I'm stuck at step2. 1. Input: A locally saved outlook mail (*.msg) path 2. Go to the path and Copy the entire body of the mail 3. Create a new mail and paste the contents into new mail 4. sen

problem in installation of python 3.9.0

2020-12-02 Thread Priyankgasree K
Hello, I am Priyankgasree, i am facing problem in installing python3.9.0. after i finish download it always says you have to repair or uninstall. I have repaired and uninstalled and reinstalled several times but i can't do anything . And also I cant able to download other versions of python

Re: Making Python the Best App Dev Platform

2020-09-21 Thread Bonface M. K.
gt; That being said, it would be nice to see your project have that-- doing bootstrapping for tests for you; and having somewhere that mentions how to run them. I'll try to have a look at it over the weekend? That's seems like something I'd use- though it'd have to

Re: Making Python the Best App Dev Platform

2020-09-21 Thread Bonface M. K.
to hear from you. And if you’d > like to help, super! > > Best, > Val Also, just a suggestion: how about a way to bootstrap tests. I haven't really seen that on theGH link shared above. -- Bonface M. K. (https://www.bonfacemunyoki.com) Chief Emacs Mchochezi / Twitter: @BonfaceK

Subject: Python Open-Source Snippets Newsletter

2020-05-23 Thread Aswin K
Hi, I am creating a Python newsletter showcasing useful code snippets from popular open-source libraries. I will also be providing a runnable demo link to better understand the working. Newsletter subscription link: https://www.pythonninja.xyz/subscribe A sample snippet from the newsletter:

installing modules problem

2018-11-08 Thread Ian K.
Hello, My name is Ian Kilty and I have been having trouble with pip. I have pip installed, and I have tried to install modules they say they are installed in cmd, but when I go into python and import the module, it can't find it. I hope there is a simple solution to this problem, please let me kno

Data Science News Issue 2 released

2018-08-27 Thread Karthikeyan A K via Python-list
Hello All, We have released Issue 2 of Data Science news. One can get it here https://datasciencenews.herokuapp.com/2018/08/26/issue-2.html - Karthikeyan A K -- https://mail.python.org/mailman/listinfo/python-list

[ANN] A magazine for Data Science Enthusiasts

2018-08-21 Thread Karthikeyan A K via Python-list
Hello All, I have started a magazine for Data Science enthusiasts which brings you every week the latest happenings in the world of Data Science. You can get the first issue here https://datasciencenews.herokuapp.com/2018/08/19/issue-1.html - Karthikeyan A K -- https://mail.python.org/mailman

[Promotion] Book for Data Science Aspirants

2018-08-09 Thread Karthikeyan A K
y struggle and answers to it in this book. I hope this book would help you. - Karthikeyan A K -- https://mail.python.org/mailman/listinfo/python-list

Re: Combining every pair of list items and creating a new list.

2017-07-18 Thread Rahul K P
ing difficulty thinking about how to do this as a Python beginner. > > But I have a list that is represented as: > > [1,2,3,4,5,6,7,8] > > and I would like the following results: > > [1,2] [3,4] [5,6] [7,8] > > Any ideas? > > Thanks > -- > https://mail.python.org/

Help me!, I would like to find split where the split sums are close to each other?

2016-10-16 Thread k . ademarus
Help me!, I would like to find split where the split sums are close to each other? I have a list is test = [10,20,30,40,50,60,70,80,90,100] ​and I would like to find split where the split sums are close to each other by number of splits = 3 that ​all possible combinations and select the split

Re: Deviding N(1,2,3,..,N) part from numeric list as summation of each values(don't sorted) has highest as possible.

2016-10-10 Thread K. Elo
Hi! Here one possible solution: --- snip --- land = [10,20,30,40,110,50,18,32,5] landlength=len(land) winnersplit=[] for i in range(landlength-2): for j in range(landlength-1-i): splitsums=[sum(land[0:(i+1)]), sum(land[(i+1):(i+j+2)]), sum(land[(i+j+2):landlength])] differences

Re: Deviding N(1,2,3,..,N) part from numeric list as summation of each values(don't sorted) has highest as possible.

2016-10-10 Thread K. Elo
Hi! Could it be, "Nuen9", that you would like to find a split where the split sums are close to each other? In other words, you define the number of splits (in your example: 3) and the algortihm should test all possible combinations and select the split where the sum differences are smallest.

Re: pdf version of python tutorial

2016-03-14 Thread Jesper K Brogaard
://docs.python.org/3.5/download.html. I found the tutorial in the zip-file "PDF(A4 paper size)", which contains a lot of PDFs, amongst these many of howto-documents. -- Venlig hilsen / Best regards Jesper K. Brogaard (remove upper case letters in my e-mail address) -- https://mail.python.o

Re: Export

2016-03-13 Thread Jesper K Brogaard
Den 13-03-2016 kl. 00:07 skrev Herbert Müller: Hello, how can I export my .py files to .exe files? Thanks for your support Your Robert Look at pyinstaller or py2exe. I have no experience with either of them. -- Venlig hilsen / Best regards Jesper K. Brogaard (remove upper case letters in my

Re: merging two csv files

2016-03-03 Thread K. Elo
Hi! Is this a homework or something you need a quick solution for? For the latter: 'man paste' (on Linux) :) Anyway, some sample data and code would be good. BR, Kimmo 03.03.2016, 11:50, m.t.e...@student.rug.nl wrote: Hey! I want to merge column-wise two csv files, say: file1.csv and file2.

Re: Explaining names vs variables in Python

2016-03-02 Thread Jesper K Brogaard
understand it, when you use 'is', you are comparing addresses to objects, not the values contained in the objects. Use '==' instead. Take a look here as well: https://docs.python.org/3.5/reference/datamodel.html -- Venlig hilsen / Best regards Jesper K. Brogaard (remove upper

Re: SSL certification fails / tweepy [SOLVED]

2016-01-14 Thread K. Elo
Hi! 14.01.2016, 09:59, dieter wrote: "SSL_VERIFICATION_FAILED" is an error which occurs when an SSL ("https") connection is established. It happens when the SSL certificate (of the server and/or client) does not contain expected data - e.g. the certificate is no longer (or not yet) valid or its

SSL certification fails / tweepy

2016-01-13 Thread K. Elo
Dear list members! I have written I small python script for twitter mining utilising the 'tweepy' library. Since a couple of days I cannot use the script anymore, due to a "ssl certificate verification failed" error. The authentication with Twitter API succeess, but when I try to run the foll

Integration using scipy odeint

2015-09-13 Thread sagar k
Dear all I'm using Python 3.4.3. I am facing a problem in integrating using odeint solver. In the following code, tran is a function and in those are the variables which are arrays. These variables change their values with respect to time (the time which I pass to the function). I tried defini

Re: Cheat sheet for the new string formatting?

2015-06-08 Thread Steven K Knight
June 8 2015 3:11 PM, "Skip Montanaro" wrote: I have so far ignored the new string formatting (you know, the stuff with all the braces, dots and brackets that make Python strings look like Perl code ). I am still only using Python 2.7, but have recently started forcing myself to use the

Re: Topic Modeling LDA Gensim

2015-03-17 Thread Sreenath k
1]]' keeps changing each time. Why is it so ? Please help! Waiting for your reply, Sreenath K -- https://mail.python.org/mailman/listinfo/python-list

Teaching python to non-programmers

2014-04-10 Thread Lalitha Prasad K
Dear List Recently I was requested to teach python to a group of students of GIS (Geographic Information Systems). Their knowledge of programming is zero. The objective is to enable them to write plug-ins for GIS software like QGIS and ArcGIS. It would require them to learn, besides core python, P

property confusion

2014-02-21 Thread K Richard Pixley
Could someone please explain to me why the two values at the bottom of this example are different? Python-3.3 if it makes any difference. Is this a difference in evaluation between a class attribute and an instance attribute? --rich class C: def __init__(self): self._x = None

Re: Need help vectorizing code

2014-01-18 Thread Kevin K
25 PM UTC-8, Kevin K wrote: > I have some code that I need help vectorizing. > > I want to convert the following to vector form, how can I? I want to get rid > of the inner loop - apparently, it's possible to do so. > > X is an NxD matrix. y is a 1xD vector. > >

Need help vectorizing code

2014-01-18 Thread Kevin K
I have some code that I need help vectorizing. I want to convert the following to vector form, how can I? I want to get rid of the inner loop - apparently, it's possible to do so. X is an NxD matrix. y is a 1xD vector. def foo(X, y, mylambda, N, D, epsilon): ... for j in xrange(D):

Python Windows release and encoding

2013-05-22 Thread Absalom K.
Hi, I am working on Linux; a friend of mine sends to me python files from his Windows release. He uses the editor coming with the release; he runs his code from the editor by using a menu (or some F5 key I think). He doesn't declare any encoding in his source file; when I want to try his code, I h

Python module vs library

2013-04-09 Thread k . lykourgos
Hi, what is the difference between python module and library ? -- http://mail.python.org/mailman/listinfo/python-list

Re: nested loops

2013-02-27 Thread K. Elo
Hi! > leonardo writes: how can i have it print a row of stars beside each number, like this?: how many seconds?: 5 5 * * * * * 4 * * * * 3 * * * 2 * * 1 * blast off! --- snip --- sec = int(input("How many seconds? ")) for i in range(0,sec): print str(sec-i)+":"+" *"*(sec-i) print

Re: Keyboard hook in linux

2013-01-13 Thread K. Elo
Hi! Thanks, Michael, for your quick - and heplful - reply. 13.01.2013 18:46, Michael Torrie wrote: You're wrong. curses does offer a direct solution to this. Check the docs. Also here's a nice intro document for Python 3: http://docs.python.org/dev/howto/curses.html You are right :) The do

Keyboard hook in linux

2013-01-13 Thread K. Elo
Hi! I am working on a small console app for linux. The idea is to display some sensor values and the screen should update itself in, say, every 10 seconds. The user should have the possibly to change some configurations or gwt help by pressing different keys (like you can do when running e.g

Re: please i need explanation

2013-01-11 Thread K. Elo
Hi! Since there is no stated question, I need to guess: n -= 1 (instead of "f -= 1") should work. Or maybe the question was a totally different one... -Kimmo 11.01.2013 17:35, kwakukwat...@gmail.com wrote: def factorial(n): if n<2: return 1 f = 1 while n>= 2:

Understanding '?' in regular expressions

2012-11-15 Thread krishna . k . kishor3
Can someone explain the below behavior please? >>> re1 = re.compile(r'(?:((?:1000|1010|1020))[ ]*?[\,]?[ ]*?){1,3}') >>> re.findall(re_obj,'1000,1020,1000') ['1000'] >>> re.findall(re_obj,'1000,1020, 1000') ['1020', '1000'] However when I use "[\,]??" instead of "[\,]?" as below, I see a differen

Error 32 - Broken Pipe . Please Help!!

2012-09-04 Thread Sreenath k
for j in (1,i): s+=j c=0 for k in range(1,(s/2+1)): #print s t=s%k if t==0: c+=1 if c>=5: f=1 print s break print s #

python 6 compilation failure on RHEL

2012-08-20 Thread Ganesh Reddy K
Hi All, We are trying python 2.6 installation on an RHEL PC , whose 'uname -a' is (Linux 2.6.18-128.el5 #1 SMP Wed Dec 17 11:41:38 EST 2008 x86_64 x86_64 x86_64 GNU/Linux ) But, python compilation is not successfully done and showing a failure log. Below is the capture of the same. Please se

Tkinter and Chess problems

2012-07-02 Thread Lalitha Prasad K
Dear All Recently I have been playing with Tkinter. I wrote two scripts to solve well known chess problems: eight queens and knight's tour. Both are available here: https://github.com/LalithaPrasad/PythonScripts All are welcome to download and improve them if required. Hope to rewrite them using t

ANN: Leo 4.10 final released

2012-04-02 Thread Edward K. Ream
eo-editor/ Quotes: http://webpages.charter.net/edreamleo/testimonials.html Edward K. Ream -- Edward K. Ream email: edream...@gmail.com Leo: http://webpages.charter.net/edreamleo/front.html -

ANN: Leo 4.10 b1 released

2012-03-22 Thread Edward K. Ream
Leo 4.10 b1 is now available at: http://sourceforge.net/projects/leo/files/ Leo is a text editor, data organizer, project manager and much more. http://webpages.charter.net/edreamleo/intro.html Leo 4.10 contains 9 months of intense work on Leo. Several very important features are subtle; you coul

PPC Form Filling Jobs

2012-03-07 Thread reena k
http://internetjobs4u.weebly.com -- http://mail.python.org/mailman/listinfo/python-list

Re: The devolution of English language and slothful c.l.p behaviors exposed!

2012-01-25 Thread K. Richard Pixley
On 1/25/12 12:14 , Rick Johnson wrote: You don't even need "pretty" to get your point across. If that's your argument, then we can drop the verb "to be", most articles, most verb conjugations, and nearly all adjectives and adverbs. For that matter, the vast majority of posts here can be drop

Re: The devolution of English language and slothful c.l.p behaviors exposed!

2012-01-25 Thread K Richard Pixley
On 1/23/12 21:57 , Rick Johnson wrote: Here is a grep from the month of September 2011 showing the rampantly egregious misuse of the following words and phrases: * pretty * hard * right * used to * supposed to "Pretty" is the most ludicrous of them all! As you will see, "pretty" is u

Re: Is a with on open always necessary?

2012-01-25 Thread K Richard Pixley
On 1/21/12 03:38 , Lie Ryan wrote: It is only strictly necessary for programs that opens thousands of files in a short while, since the operating system may limit of the number of active file handlers you can have. The number you're looking for is 20 on many unix systems. That's all. 20 concu

Re: Is a with on open always necessary?

2012-01-25 Thread K Richard Pixley
On 1/20/12 07:44 , Andrea Crotti wrote: I normally didn't bother too much when reading from files, and for example I always did a content = open(filename).readlines() But now I have the doubt that it's not a good idea, does the file handler stays open until the interpreter quits? So maybe doin

Re: stable object serialization to text file

2012-01-12 Thread K Richard Pixley
On 1/11/12 12:16 , Máté Koch wrote: Hello All, I'm developing an app which stores the data in file system database. The data in my case consists of large python objects, mostly dicts, containing texts and numbers. The easiest way to dump and load them would be pickle, but I have a problem wit

Re: Two questions about logging

2012-01-12 Thread K Richard Pixley
On 1/11/12 18:19 , Matthew Pounsett wrote: Second, I'm trying to get a handle on how libraries are meant to integrate with the applications that use them. The naming advice in the advanced tutorial is to use __name__ to name loggers, and to allow log messages to pass back up to the using applica

Re: codecs in a chroot / without fs access

2012-01-10 Thread K Richard Pixley
On 1/9/12 16:41 , Philipp Hagemeister wrote: I want to forbid my application to access the filesystem. The easiest way seems to be chrooting and droping privileges. However, surprisingly, python loads the codecs from the filesystem on-demand, which makes my program crash: import os os.getuid()

socketserver question

2012-01-05 Thread K Richard Pixley
Once I've instantiated my server class, along with a handler class, called server.serve_forever(), handler.handle() has been called, I've done my work, and I'm ready to shut the whole thing down... How do I do that? The doc says server.shutdown(), but if I call self.server.shutdown() from wit

Re: help me get excited about python 3

2012-01-05 Thread K Richard Pixley
You get some of the good stuff by importing future, unicode literals which essentially means you're working in unicode by default most of the time, and print function, (a small fix but long overdue). I try to write python3 whenever I can. It's rare that dependencies keep me back. More often

Re: Python3 on MacOsX Lion?

2012-01-02 Thread K Richard Pixley
On 1/2/12 13:03 , Benjamin Kaplan wrote: On Mon, Jan 2, 2012 at 2:32 PM, K Richard Pixley wrote: Where would I look to find the current expected status of python3 on MacOsX Lion? The distributed binaries aren't capable of allowing extensions that use gcc. I can build the source naked

Python3 on MacOsX Lion?

2012-01-02 Thread K Richard Pixley
Where would I look to find the current expected status of python3 on MacOsX Lion? The distributed binaries aren't capable of allowing extensions that use gcc. I can build the source naked, but then it lacks some libraries, notably, readline. Attempting to build the full Mac packages fails, e

Re: readline for mac python? (really, reproducing mac python packages)

2012-01-02 Thread K Richard Pixley
On 1/1/12 19:04 , K Richard Pixley wrote: On 1/1/12 16:49 , K Richard Pixley wrote: I'm having trouble finding a reasonable python environment on mac. The supplied binaries, (2.7.2, 3.2.2), are built with old versions of macosx and are not capable of building any third party packages

Re: readline for mac python? (really, reproducing mac python packages)

2012-01-01 Thread K Richard Pixley
On 1/1/12 16:49 , K Richard Pixley wrote: I'm having trouble finding a reasonable python environment on mac. The supplied binaries, (2.7.2, 3.2.2), are built with old versions of macosx and are not capable of building any third party packages that require gcc. The source builds easily e

readline for mac python? (really, reproducing mac python packages)

2012-01-01 Thread K Richard Pixley
I'm having trouble finding a reasonable python environment on mac. The supplied binaries, (2.7.2, 3.2.2), are built with old versions of macosx and are not capable of building any third party packages that require gcc. The source builds easily enough out of the box, (./configure --enable-fra

Re: Generating sin/square waves sound

2011-12-30 Thread K Richard Pixley
On 12/29/11 23:17 , Paulo da Silva wrote: Hi, Sorry if this is a FAQ, but I have googled and didn't find any satisfatory answer. Is there a simple way, preferably multiplataform (or linux), of generating sinusoidal/square waves sound in python? Thanks for any answers/suggestions. I just poste

Re: Which library for audio playback ?

2011-12-30 Thread K Richard Pixley
On 12/29/11 05:55 , Jérôme wrote: I'm writing a small application that plays sound through the speakers. The sounds are juste sine waves of arbitrary frequency I create in the code, not sample .wav files. I didn't expect the choice for an audio library to be that complicated. There are several l

Online Data Entry Jobs Without Investment http://ponlinejobs.yolasite.com/

2011-12-28 Thread prabhakaran k
Online Data Entry Jobs Without Investment http://ponlinejobs.yolasite.com/ -- http://mail.python.org/mailman/listinfo/python-list

Online Data Entry Jobs Without Investment http://ponlinejobs.yolasite.com/

2011-12-28 Thread prabhakaran k
Online Data Entry Jobs Without Investment http://ponlinejobs.yolasite.com/ -- http://mail.python.org/mailman/listinfo/python-list

Online Data Entry Jobs Without Investment http://ponlinejobs.yolasite.com/

2011-12-28 Thread PRABHAKARAN K
Online Data Entry Jobs Without Investment http://ponlinejobs.yolasite.com/ -- http://mail.python.org/mailman/listinfo/python-list

Online Data Entry Jobs Without Investment http://ponlinejobs.yolasite.com/

2011-12-28 Thread PRABHAKARAN K
Online Data Entry Jobs Without Investment http://ponlinejobs.yolasite.com/ -- http://mail.python.org/mailman/listinfo/python-list

Online Data Entry Jobs Without Investment http://ponlinejobs.yolasite.com/

2011-12-27 Thread prabhakaran k
Online Data Entry Jobs Without Investment http://ponlinejobs.yolasite.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: confused about __new__

2011-12-27 Thread K Richard Pixley
On 12/27/11 12:34 , Ian Kelly wrote: On Tue, Dec 27, 2011 at 1:31 PM, K Richard Pixley wrote: On 12/27/11 10:28 , Ian Kelly wrote: On Tue, Dec 27, 2011 at 10:41 AM, K Richard Pixleywrote: The conceptual leap for me was in recognizing that a class is just an object. The best way, (imo

Re: Python education survey

2011-12-27 Thread K Richard Pixley
On 12/27/11 10:26 , Andrew Berg wrote: On 12/27/2011 11:59 AM, K Richard Pixley wrote: You'd do better to encourage eclipse, but setting that up isn't trivial either. IIRC, all I had to do to set up PyDev was copy a URL to Eclipse's "Install New Software" wizard, and

Re: Python education survey

2011-12-27 Thread K Richard Pixley
On 12/27/11 10:21 , Rick Johnson wrote: On Dec 27, 11:59 am, K Richard Pixley wrote: The problem is that IDLE is hard to set up. (I've never managed it and I'm a well seasoned veteran). Can you qualify that statement? Do you mean "difficult to set up on certain OS's&q

Re: confused about __new__

2011-12-27 Thread K Richard Pixley
On 12/27/11 10:28 , Ian Kelly wrote: On Tue, Dec 27, 2011 at 10:41 AM, K Richard Pixley wrote: The conceptual leap for me was in recognizing that a class is just an object. The best way, (imo, so far), to create a singleton in python is to use the class itself as the singleton rather than

Re: Python education survey

2011-12-27 Thread K Richard Pixley
On 12/19/11 19:51 , Raymond Hettinger wrote: Do you use IDLE when teaching Python? If not, what is the tool of choice? If your goal is to quickly get new users up and running in Python, what IDE or editor do you recommend? I would: a) let the students pick their own editor. b) encourage ema

Re: confused about __new__

2011-12-27 Thread K Richard Pixley
On 12/26/11 21:48 , Fredrik Tolf wrote: On Mon, 26 Dec 2011, K. Richard Pixley wrote: I don't understand. Can anyone explain? I'm also a bit confused about __new__. I'd very much appreciate it if someone could explain the following aspects of it: * The manual (<http

Re: confused about __new__

2011-12-26 Thread K Richard Pixley
On 12/26/11 20:53 , Steven D'Aprano wrote: On Mon, 26 Dec 2011 20:28:26 -0800, K. Richard Pixley wrote: I'm confused about the following. The idea here is that the set of instances of some class are small and finite, so I'd like to create them at class creation time, then hi

confused about __new__

2011-12-26 Thread K. Richard Pixley
I'm confused about the following. The idea here is that the set of instances of some class are small and finite, so I'd like to create them at class creation time, then hijack __new__ to simply return one of the preexisting classes instead of creating a new one each call. This seems to work i

Online Data Entry Jobs Without Investment http://ponlinejobs.yolasite.com/

2011-12-17 Thread prabhakaran k
Online Data Entry Jobs Without Investment http://ponlinejobs.yolasite.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: I love the decorator in Python!!!

2011-12-08 Thread K . -Michael Aye
On 2011-12-08 11:43:12 +, Chris Angelico said: On Thu, Dec 8, 2011 at 10:22 PM, K.-Michael Aye wrote: I am still perplexed about decorators though, am happily using Python for many years without them, but maybe i am missing something? For example in the above case, if I want the names

Re: I love the decorator in Python!!!

2011-12-08 Thread K . -Michael Aye
On 2011-12-08 08:59:26 +, Thomas Rachel said: Am 08.12.2011 08:18 schrieb 8 Dihedral: I use the @ decorator to behave exactly like a c macro that does have fewer side effects. I am wondering is there other interesting methods to do the jobs in Python? In combination with a generator,

Why are Sphinx docs incompatible with Safari Reader?

2011-12-02 Thread K . -Michael Aye
Anybody knows? Have a nice weekend! Michael -- http://mail.python.org/mailman/listinfo/python-list

Re: help regarding extracting a smaller list from larger one

2011-09-15 Thread neeru K
the above array for example - sub-list[3, 8] Is there a function for this? thank you niranjan On Thu, Sep 15, 2011 at 10:54 PM, Gary Herron wrote: > On 09/15/2011 09:40 AM, neeru K wrote: > >> Dear Python Users, >> I am trying to write a code for visualization (raster plots and

help regarding extracting a smaller list from larger one

2011-09-15 Thread neeru K
Dear Python Users, I am trying to write a code for visualization (raster plots and peri-event time histogram) of time series electrophysiological data using numpy, scipy and matlplotlib in python. I am importing the data into list using loadtext command. I was curious if anyone is aware of a functi

Re: Significant figures calculation

2011-06-26 Thread Lalitha Prasad K
In numerical analysis there is this concept of machine zero, which is computed like this: e=1.0 while 1.0+e > 1.0: e=e/2.0 print e The number e will give you the precision of floating point numbers. Lalitha Prasad On Sun, Jun 26, 2011 at 9:05 PM, Harold wrote: > > >I'm curious. Is there

ANN: Leo 4.9 final released

2011-06-21 Thread Edward K. Ream
ogle.com/group/leo-editor Download: http://sourceforge.net/projects/leo/files/ Bzr: http://code.launchpad.net/leo-editor/ Quotes: http://webpages.charter.net/edreamleo/testimonials.html Edward K. Ream June 21, 2011 -- http://mail.python.org/mailman/listinfo/python-list

Re: Fun and games with lambda

2011-06-17 Thread Lalitha Prasad K
I would rate it as a great example of human ingenuity Lalit On Fri, Jun 17, 2011 at 9:40 PM, Steven D'Aprano < steve+comp.lang.pyt...@pearwood.info> wrote: > If you've ever wondered what lambda and reduce are good for, run this one- > liner and wonder no more... > > (Be patient, it may take a fe

Leo 4.9 b4 released

2011-06-14 Thread Edward K. Ream
ad.net/leo-editor/ Quotes: http://webpages.charter.net/edreamleo/testimonials.html Edward K. Ream June 14, 2011 -- http://mail.python.org/mailman/listinfo/python-list

Re: re.Scanner - match python dot notation

2011-02-07 Thread Christian K.
Am 07.02.11 17:47, schrieb MRAB: On 07/02/2011 15:34, Christian K. wrote: Hi, I am trying to find a regexp to be used with re.Scanner that matches the 'package.module.member' syntax. More specifically I want to parse function strings like numpy.sin(x*a+w) and sort out variables

re.Scanner - match python dot notation

2011-02-07 Thread Christian K.
Hi, I am trying to find a regexp to be used with re.Scanner that matches the 'package.module.member' syntax. More specifically I want to parse function strings like numpy.sin(x*a+w) and sort out variables/constants. This one here works using re.match but fails when used with Scanner (due t

@property; @classmethod; def f()

2011-01-01 Thread K. Richard Pixley
Can anyone explain to me why this doesn't work? class Foo(object): @property @classmethod def f(cls): return 4 I mean, I think it seems to be syntactically clear what I'm trying to accomplish. What am I missing? --rich -- http://mail.python.org/mailman/listinfo/python-lis

ANN: Leo 4.8 final

2010-11-26 Thread Edward K. Ream
groups.google.com/group/leo-editor Download: http://sourceforge.net/project/showfiles.php?group_id=3458 Bzr: http://code.launchpad.net/leo-editor/ Quotes: http://webpages.charter.net/edreamleo/testimonials.html Edward K. Ream November 26, 2010 -- http://mail.python.org/mailman/listinfo/python-list

Re: Scheme as a virtual machine?

2010-11-22 Thread Tamas K Papp
On Mon, 22 Nov 2010 08:25:34 -0800, scattered wrote: > On Nov 22, 9:45 am, Raffael Cavallaro > wrote: >> On 2010-11-22 08:12:27 -0500, markhanif...@gmail.com said: >> >> > All opinions are biased. >> >> All opinions show some bias. Not all opinions represent what is usually >> called a "conflict

Leo 4.8 rc1 released

2010-11-15 Thread Edward K. Ream
ttp://groups.google.com/group/leo-editor Download: http://sourceforge.net/project/showfiles.php?group_id=3458 Bzr: http://code.launchpad.net/leo-editor/ Quotes: http://webpages.charter.net/edreamleo/testimonials.html Edward K. Ream November 15, 2010 -- http://mail.python.org/mailman/listinfo/python-list

ANN: Leo 4.8 beta 1 released

2010-11-05 Thread Edward K. Ream
Leo 4.8 beta 1 is now available at: http://sourceforge.net/project/showfiles.php?group_id=3458&package_id=29106 Leo is a text editor, data organizer, project manager and much more. See: http://webpages.charter.net/edreamleo/intro.html The highlights of Leo 4.8: -- - Leo n

PYTHON

2010-10-08 Thread k..........
PLEASE LEARN ME PYTHON -- http://mail.python.org/mailman/listinfo/python-list

Re: Jew JUDGE shows off JEW POWER by BULLYING and BLACKMAILING a BLACK PRESIDENT OBAMA

2010-06-23 Thread k...@att.bizzzzzzzzzzzz
On Wed, 23 Jun 2010 19:10:45 -0700 (PDT), MooseFET wrote: >On Jun 23, 2:02 pm, nanothermite911fbibustards > wrote: >> FASCINATING !!! >> An ECOLOGICAL DISASTER is taking place. >> There is a need for HERCULEAN effort to STOP the oil spill. >> Then there is need for a THOROUGH study of the inciden

Re: Jewish Pirates of the Caribbean

2010-06-16 Thread Tamas K Papp
Most people capable of using their newsreaders probably killfiled this guy a long time ago. Would you, please, be so nice as to refrain from replying to his messages? If you do that, we won't even notice that he posted anything. Thanks, Tamas On Wed, 16 Jun 2010 06:48:32 -0700, Kryno Bosman wr

Re: Which is the best implementation of LISP family of languages for real world programming ?

2010-06-11 Thread Tamas K Papp
On Thu, 10 Jun 2010 13:14:01 -0700, bolega wrote: > Please compare LISP and its virtues with other languages such as > javascript, python etc. Generally, it is advisable to cross-post questions like this to at least 50 other language newsgroups. For example, you are not giving Ruby users a fair

help need to write a python spell checker

2010-05-15 Thread harry k
Write a spell checking tool that will identify all misspelled word in a text file using a provided dictionary. The program will accept either one or two command line parameters. 1. The first command line parameter is the name of the text file that will be checked. 2. The optional seco

Re: assigning multi-line strings to variables

2010-04-27 Thread Sagar K
Use triple quote: d = """ this is a sample text which does not mean anything""" "goldtech" wrote in message news:4e25733e-eafa-477b-a84d-a64d139f7...@u34g2000yqu.googlegroups.com... On Apr 27, 7:31 pm, Brendan Abel <007bren...@gmail.com> wrote: > On Apr 27, 7:20 pm, goldtech wrote: > > > Hi, >

Re: Scalable python dict {'key_is_a_string': [count, some_val]}

2010-03-10 Thread Krishna K
On Fri, Feb 19, 2010 at 11:27 PM, Jonathan Gardner < jgard...@jonathangardner.net> wrote: > On Fri, Feb 19, 2010 at 10:36 PM, krishna > wrote: > > I have to manage a couple of dicts with huge dataset (larger than > > feasible with the memory on my system), it basically has a key which > > is a st

Re: Updates about Tk

2010-03-09 Thread Donal K. Fellows
On Feb 27, 5:29 pm, rantingrick wrote: > Great post Kevin! The only thing i would like to add are my two > favorite references for learning Tkinter. They are not geared around > the new ttk stuff, but still 95% relevant to any Tkinter-ing > > http://effbot.org/tkinterbook/ > http://infohost.nmt.ed

ANN: Leo 4.7.1 released

2010-02-26 Thread Edward K Ream
Leo 4.7.1 final is now available at: http://sourceforge.net/project/showfiles.php?group_id=3458&package_id=29106 Leo 4.7.1 fixes a dangerous bug in Leo 4.7. When converting file-like sentinels to thin-like sentinels in an external file, Leo now issues a warning and sets the corresponding @file nod

Re: ANN: Leo 4.7 final released

2010-02-24 Thread Edward K Ream
On Tue, 23 Feb 2010 07:53:44 -0600, Edward K Ream wrote: A critical bug has been reported against Leo 4.7 final, and indeed all previous versions of Leo 4.7. The bug can cause loss of data in @file nodes when Leo 4.7 saves .leo files created with older versions of Leo. This bug will be fixed

ANN: Leo 4.7 final released

2010-02-23 Thread Edward K Ream
Leo 4.7 finalFebruary 23, 2009 Leo 4.7 final is now available at: http://sourceforge.net/project/showfiles.php?group_id=3458&package_id=29106 Leo 4.7 final fixes all known bugs in Leo. Leo is a text editor, data organizer, project manager and much more. See: http://webpages.

Re: Files required for porting python

2010-02-22 Thread Kiran K
I will try to provide the API's on windows that my RTOS provides ex. If my RTOS has "fosCreateSemaphore" to create a semaphore I will implement the same API [ same function prototype] on windows using win32 CreateSemaphore. Similarly I will write a wrapper functions for accesing file system, task m

Can I embedding a (python) console on python program?

2010-02-19 Thread Kee K Y CHEN
the GEdit extension - python console and but may interactive with tty/vty lines. Can anyone give a brief to me? Thanks in advance. -- Kee K Y CHEN -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   4   5   6   7   8   >