Search Discussions
-
Greetings, I am new to Python. I am sorry for beating what is probably a dead horse but I checked the net and couldn't find the answer to my question. I like a lot of what I've seen in Python, ...
Blake McBride
Apr 16, 2015 at 4:07 am
Apr 25, 2015 at 5:42 pm -
I want todo faster baseconversion for very big bases like base 1 000 000, so instead of adding up digits i search it. I need the fastest algorithm to find the relation to a decimal number. Digmult is ...
Jonas Thornvall
Apr 7, 2015 at 9:44 am
Apr 25, 2015 at 2:49 pm -
If I execute: l = range(int(1E9) The python process gobbles up all the memory and is killed. The problem is that after this my swap is completely used, because other processes have swapped to it ...
Cecil Westerhof
Apr 30, 2015 at 4:06 pm
May 3, 2015 at 6:36 pm -
def m_and_m(dividend): rlist = [] dm = divmod end = (dividend // 2) + 1 for divisor in range(1, end): q, r = dm(dividend, divisor) if r is 0: rlist.append((divisor, q)) return rlist ...
Ravas
Apr 10, 2015 at 11:37 pm
Apr 16, 2015 at 2:27 pm -
I am coding with Python again. I like it that the code is concise and clear. But also that the performance is not bad. I wrote Lucky Numbers in Clojure and Python. When calling with 1E7 Clojure takes ...
Cecil Westerhof
Apr 30, 2015 at 7:07 am
May 2, 2015 at 5:22 pm -
Hi, I noticed interesting behaviour. Since I don't have python3 installation here, I tested that on Python 2.7. Well known feature is that try..except block can catch multiple exceptions listed in a ...
Pavel S
Apr 10, 2015 at 8:48 am
Apr 12, 2015 at 10:00 am -
I want to use a GUI for Python. When searching I found (beside some others) Tkinter and wxPython. From what I found it looks like Tkinter is slightly better. What would be the pros/cons of these two? ...
Cecil Westerhof
Apr 26, 2015 at 1:02 pm
Apr 29, 2015 at 9:03 am -
file=open("input","r") line=file.seek(7) print line The above code is supposed to print a line but it prints "none". I don't know where the mistake is. Help.!
siva sankari R
Apr 29, 2015 at 6:08 pm
May 1, 2015 at 2:42 am -
I have a text as follows: "#D{#C[Health] #P[Information] - means any information, including #ST[genetic information], whether #C[oral | (recorded in (any form | medium))], that (1)#C[Is created or ...
Pippo
Apr 12, 2015 at 10:49 pm
Apr 13, 2015 at 3:13 am -
If I remember correctly you can not hide variables of a class or make them read-only? I want to rewrite my moving average to python. The init is: def __init__(self, length): if type(length) != int ...
Cecil Westerhof
Apr 28, 2015 at 7:33 am
Apr 30, 2015 at 2:50 pm -
Looking for comments, recommendations, advice that I've just wasted half a day on something utterly useless, whatever it be! I've just posted a new (single-module) package to PyPI that simplifies the ...
Chris Angelico
Apr 20, 2015 at 6:20 am
Apr 22, 2015 at 4:43 am -
I implemented happy_number function: _happy_set = { '1' } _unhappy_set = set() def happy_number(n): """ Check if a number is a happy number https://en.wikipedia.org/wiki/Happy_number """ def ...
Cecil Westerhof
Apr 30, 2015 at 3:59 pm
May 2, 2015 at 9:23 pm -
Hi all, I need some help. I'm working on a simple event-based simulator for my dissertation research. The simulator has state information that I want to analyze as a post-simulation step, so I ...
Cem Karan
Apr 22, 2015 at 10:07 am
Apr 24, 2015 at 12:42 pm -
Folks, I am writing a quite extensive piece of scientific software. Its workflow is quite easy to explain. The tool realizes series of operations on watersheds (such as mapping data on it, ...
Fabien
Apr 13, 2015 at 2:58 pm
Apr 14, 2015 at 2:30 pm -
12
Tit for tat
https://www.youtube.com/watch?vHEWLj3gIJ8 Anyone here worked on trying a better strategy?Seymore4Head
Apr 26, 2015 at 9:35 pm
Apr 29, 2015 at 1:33 am -
I would like to distribute a python package with different code for Python 2.* than for Python 3.*. (Mostly this is because of different unicode string handling). There is nothing in to setuptools or ...
Dave Hein
Apr 5, 2015 at 8:38 pm
Apr 7, 2015 at 12:57 am -
I wrote a function lucky_numbers: def lucky_numbers(n): if n < 3: return [1] sieve = range(1, n + 1, 2) sieve_index = 1 while True: skip_count = sieve[sieve_index] sieve_len = len(sieve) if sieve_len ...
Cecil Westerhof
Apr 29, 2015 at 6:24 pm
Apr 30, 2015 at 7:28 pm -
If two functions crossreference eachother back and forth what happen with the local variables. Will there be a new instance of function holding the variables or do they get messed up?
Jonas Thornvall
Apr 11, 2015 at 3:00 pm
Apr 12, 2015 at 5:04 am -
I was doing some maintenance now on a script of mine? I noticed that I compose strings in this little 54 line file multipole times using the + operator. I was prototyping at the time I wrote it and ...
Travis Griggs
Apr 9, 2015 at 6:29 pm
Apr 10, 2015 at 5:17 am -
I am new to programming, though not new to computers. I'm looking to teach myself Python 3 and am working my way through a tutorial. At the point I'm at in the tutorial I am tasked with parsing out ...
Catperson
Apr 1, 2015 at 3:27 am
Apr 3, 2015 at 4:44 am -
Hello everyone! After a few years in development, I am proud to say Clize is landing its feet again and is now in beta for an upcoming release. You can try it out using pip install --user clize=3.0b1 ...
Yann Kaiser
Apr 27, 2015 at 9:02 am
May 14, 2015 at 5:43 am -
I want to ask Python experts about function decorator which has arguments. I feel that function decorator having arguments is complicated, because three 'def' are nested: def multiply(n): def ...
Makoto Kuwata
Apr 27, 2015 at 2:37 am
Apr 29, 2015 at 9:22 am -
I'm trying to plot the curve of an exponential distribution without much success. I'm missing something very basic I feel, but just can't figure it out after numerous tries, so I'm turning out to ...
Mario Figueiredo
Apr 25, 2015 at 10:33 pm
Apr 26, 2015 at 7:57 pm -
We are happy to announce that we will be hosting a Django Girls Workshop during the EuroPython 2015. It will take place on 20th of July, the first day of the conference. We believe in the work that ...
M.-A. Lemburg
Apr 17, 2015 at 5:25 pm
Apr 19, 2015 at 3:53 am -
Dear Group, I am trying to understand the use of Boolean operator in Python. I am trying to write small piece of script, as follows, def input_test(): str1=raw_input("PRINT QUERY:") if "AND" or "OR" ...
Subhabrata Banerji
Apr 24, 2015 at 2:50 pm
May 8, 2015 at 9:14 am -
I have a function to fetch a message from a file: def get_indexed_message(message_filename, index): """ Get index message from a file, where 0 gets the first message """ return ...
Cecil Westerhof
Apr 30, 2015 at 7:43 am
Apr 30, 2015 at 2:53 pm -
On behalf of the Python development community and the Python 3.5 release team, I'm thrilled to announce the availability of Python 3.5.0a4. Python 3.5.0a4 is the fourth and alpha release of Python ...
Larry Hastings
Apr 20, 2015 at 8:16 am
Apr 22, 2015 at 11:16 pm -
I am having few files in default encoding. I wanted to change their encodings, preferably in "UTF-8", or may be from one encoding to any other encoding. I was trying it as follows, but it was giving ...
Subhabrata Banerji
Apr 17, 2015 at 1:19 pm
Apr 17, 2015 at 3:06 pm -
I have a small little tool I'd like to make. It essentially takes piped input, modifies the text in some way, and immediately prints the output. The problem I'm having is that any output I pipe to ...
Daniel Ellis
Apr 5, 2015 at 7:20 pm
Apr 10, 2015 at 2:18 pm -
Good Morning: I understand this error message when I run this code. However, I am curious to know what the most pythonic way is to convert the list to a string? I use Python 2.7. "Traceback (most ...
Saran A
Apr 2, 2015 at 12:02 pm
Apr 3, 2015 at 12:14 am -
Hi, I'm in need of a system for logging the step-wise results and diagnostic metadata about a python function implementation of an algorithm that I'm developing. The specific algorithm is not of ...
Rob Clewley
Apr 21, 2015 at 7:02 pm
May 6, 2015 at 11:31 pm -
I have program that generates about 100 relatively complex graphics and writes then to a pdf book. It takes a while! Is there any possibility of using multiprocessing to build the graphics and then ...
Paulo da Silva
Apr 21, 2015 at 2:14 am
Apr 23, 2015 at 9:39 pm -
Dear Group, I am trying to read a list of files as list_of_files = glob.glob('C:\Python27\*.*') Now I am trying to read each one of them, convert into list of words, and append to a list as. list1=[] ...
Subhabrata Banerji
Apr 23, 2015 at 10:11 am
Apr 23, 2015 at 2:05 pm -
I am guessing that a few here might find this program interesting. http://video.pbs.org/video/2365464997/ -- In an altercation with the police, complying with their orders greatly increases your ...
Seymore4Head
Apr 16, 2015 at 9:15 pm
Apr 17, 2015 at 6:16 pm -
I have an XML file that looks like this (this is just the pertinent part, the file is huge): <?xml version="1.0"? <Root <Doc Type="CCI" <Node Name="SystemConfig" Section="yes" <Node ...
Larry Martell
Apr 9, 2015 at 5:59 pm
Apr 10, 2015 at 12:06 pm -
I just wrote this bit (coming from Pascal) and am wondering how seasoned Python programmers would have done the same? Anything terribly non-python? As always, thanks for all input. K """ Creates a ...
Kai Peters
Apr 7, 2015 at 10:43 pm
Apr 9, 2015 at 10:26 am -
I have a question about RegistryValueChangeEvent that I have not been able to find an answer to on the internet so far. I would appreciate any help since I have already spent a lot of time finding ...
Khyati
Apr 6, 2015 at 10:02 pm
Apr 7, 2015 at 4:00 pm -
Hi everyone. while trying to implement pyshark, i am getting this error: import pyshark capture = pyshark.LiveCapture(interface='wlan0') capture.sniff(timeoutP) capture i have tried also to run it ...
Michael S.
Apr 6, 2015 at 8:40 am
Apr 7, 2015 at 2:18 am -
I have experience with Python, but it has been some time ago. The best way to relearn a language (for me) is just make a lot of code with it. But it would be nice if it was useful at the same time. I ...
Cecil Westerhof
Apr 29, 2015 at 2:53 pm
May 9, 2015 at 8:28 am -
Because I try to keep my lines (well) below 80 characters, I use the following: print('Calculating fibonacci and fibonacci_memoize once for ' + str(large_fibonacci) + ' to determine speed increase') ...
Cecil Westerhof
Apr 29, 2015 at 8:29 am
Apr 29, 2015 at 1:15 pm -
Not unless you tell us more about your setup. What operating system? Linux, OS X, Unix, Windows? 32-bit or 64-bit OS? Do you have root/Administrator access to the machine? If you are running Windows, ...
Steven D'Aprano
Apr 26, 2015 at 3:05 pm
Apr 29, 2015 at 12:02 pm -
I started again with Python. In Clojure you have memoize. I thought it nice to have this in Python also. So I wrote it. With a Fibonacci function to show the usefulness. You can find it here ...
Cecil Westerhof
Apr 27, 2015 at 1:35 pm
Apr 29, 2015 at 11:52 am -
Dear Group, I am trying to open a bunch of files from a directory and trying to put the results in list of lists that is to say, that is to say, I have a list of file names of a directory, I want to ...
Subhabrata Banerji
Apr 22, 2015 at 4:18 pm
Apr 28, 2015 at 6:42 am -
I'm saving some data via pickle, and loading it in is proving tricky. Traceback (most recent call last): [...some lines removed...] File "/home/kylotan/OMDBSetup.py", line 44, in get_omdb_map ...
Ben Sizer
Apr 29, 2015 at 4:01 pm
May 13, 2015 at 10:27 am -
Hello Experts I have below lines with some variations. 1- set policy id 1000 from "Untrust" to "Trust" "Any" "1.1.1.1" "HTTP" nat dst ip 10.10.10.10 port 8000 permit log 2- set policy id 5000 from ...
Kashif Rana
Apr 29, 2015 at 8:42 pm
Apr 29, 2015 at 11:29 pm -
I have the folowing print statements: print( 'Calculating fibonacci_old, fibonacci_memoize and ' 'fibonacci_memoize once for {0} '.format(large_fibonacci)) print( 'Calculating fibonacci_old, ...
Cecil Westerhof
Apr 29, 2015 at 12:42 pm
Apr 29, 2015 at 9:51 pm -
Apologies, I'm a rubyist and this is a beginner question but I'm not finding a great answer with lots of googling. I am writing a library, organized something like this: awesome_lib/awesome.py ...
Richmolj
Apr 25, 2015 at 5:48 pm
Apr 26, 2015 at 1:40 pm -
Dear Group, I am trying to open multiple files at one time. I am trying to do it as, for item in [ "one", "two", "three" ]: f = open (item + "world.txt", "w") f.close() This is fine. But I was ...
Subhabrata Banerji
Apr 20, 2015 at 11:59 am
Apr 22, 2015 at 4:13 pm -
I've been following along with the discussions related to type hints[1] on python-ideas and python-dev. I'm interested enough to start looking into this for my own nefarious purposes. At work, we ...
Skip Montanaro
Apr 21, 2015 at 6:08 pm
Apr 21, 2015 at 10:52 pm -
Maybe this is pretty simple but seems I am stuck... def message_function(): return "HelloWorld!" def thread_maker(): """ call message_function() using a new thread and return it's "HelloWorld!" """ ...
D. Xenakis
Apr 18, 2015 at 5:07 pm
Apr 19, 2015 at 9:59 pm
Group Overview
group | python-list |
categories | python |
discussions | 172 |
posts | 1,231 |
users | 242 |
website | python.org |
242 users for April 2015
Archives
- September 2015 (591)
- August 2015 (1,058)
- July 2015 (1,440)
- June 2015 (1,704)
- May 2015 (1,841)
- April 2015 (1,231)
- March 2015 (1,717)
- February 2015 (1,612)
- January 2015 (889)
- December 2014 (1,283)
- November 2014 (1,600)
- October 2014 (1,447)
- September 2014 (1,031)
- August 2014 (1,867)
- July 2014 (1,618)
- June 2014 (1,357)
- May 2014 (1,431)
- April 2014 (1,285)
- March 2014 (2,093)
- February 2014 (1,999)
- January 2014 (2,089)
- December 2013 (2,060)
- November 2013 (2,507)
- October 2013 (1,932)
- September 2013 (1,634)
- August 2013 (1,532)
- July 2013 (2,062)
- June 2013 (2,795)
- May 2013 (1,935)
- April 2013 (1,980)
- March 2013 (1,953)
- February 2013 (1,789)
- January 2013 (1,924)
- December 2012 (1,569)
- November 2012 (1,579)
- October 2012 (1,961)
- September 2012 (2,311)
- August 2012 (1,808)
- July 2012 (1,577)
- June 2012 (1,199)
- May 2012 (1,197)
- April 2012 (1,416)
- March 2012 (1,373)
- February 2012 (1,442)
- January 2012 (1,446)
- December 2011 (1,895)
- November 2011 (1,291)
- October 2011 (1,188)
- September 2011 (1,587)
- August 2011 (2,069)
- July 2011 (2,140)
- June 2011 (1,908)
- May 2011 (2,475)
- April 2011 (2,098)
- March 2011 (1,761)
- February 2011 (1,746)
- January 2011 (2,123)
- December 2010 (1,671)
- November 2010 (2,355)
- October 2010 (2,518)
- September 2010 (2,187)
- August 2010 (3,098)
- July 2010 (2,579)
- June 2010 (3,238)
- May 2010 (2,458)
- April 2010 (2,356)
- March 2010 (2,759)
- February 2010 (3,486)
- January 2010 (3,294)
- December 2009 (2,899)
- November 2009 (3,396)
- October 2009 (3,346)
- September 2009 (3,087)
- August 2009 (3,903)
- July 2009 (3,761)
- June 2009 (3,321)
- May 2009 (3,370)
- April 2009 (4,272)
- March 2009 (4,228)
- February 2009 (3,965)
- January 2009 (4,732)
- December 2008 (4,335)
- November 2008 (3,799)
- October 2008 (4,123)
- September 2008 (3,816)
- August 2008 (4,056)
- July 2008 (4,238)
- June 2008 (3,737)
- May 2008 (4,976)
- April 2008 (4,708)
- March 2008 (4,122)
- February 2008 (4,132)
- January 2008 (4,145)
- December 2007 (3,686)
- November 2007 (3,419)
- October 2007 (4,234)
- September 2007 (4,332)
- August 2007 (4,189)
- July 2007 (3,771)
- June 2007 (4,142)
- May 2007 (5,018)
- April 2007 (4,912)
- March 2007 (4,365)
- February 2007 (3,951)
- January 2007 (3,864)
- December 2006 (4,449)
- November 2006 (4,229)
- October 2006 (5,506)
- September 2006 (5,244)
- August 2006 (4,829)
- July 2006 (4,720)
- June 2006 (5,054)
- May 2006 (5,302)
- April 2006 (4,845)
- March 2006 (5,729)
- February 2006 (4,839)
- January 2006 (5,249)
- December 2005 (5,011)
- November 2005 (5,677)
- October 2005 (5,387)
- September 2005 (4,458)
- August 2005 (4,428)
- July 2005 (4,472)
- June 2005 (4,562)
- May 2005 (4,269)
- April 2005 (5,019)
- March 2005 (5,070)
- February 2005 (5,159)
- January 2005 (5,194)
- December 2004 (5,211)
- November 2004 (4,048)
- October 2004 (5,191)
- September 2004 (5,534)
- August 2004 (6,168)
- July 2004 (4,217)
- June 2004 (4,202)
- May 2004 (3,890)
- April 2004 (4,285)
- March 2004 (5,077)
- February 2004 (4,213)
- January 2004 (3,988)
- December 2003 (3,818)
- November 2003 (4,940)
- October 2003 (6,297)
- September 2003 (4,299)
- August 2003 (5,654)
- July 2003 (4,912)
- June 2003 (4,933)
- May 2003 (4,938)
- April 2003 (5,017)
- March 2003 (5,031)
- February 2003 (7,701)
- January 2003 (6,229)
- December 2002 (4,102)
- November 2002 (4,346)
- October 2002 (3,307)
- September 2002 (4,206)
- August 2002 (4,919)
- July 2002 (4,826)
- June 2002 (4,215)
- May 2002 (5,295)
- April 2002 (5,967)
- March 2002 (5,323)
- February 2002 (5,245)
- January 2002 (5,617)
- December 2001 (4,443)
- November 2001 (4,565)
- October 2001 (3,669)
- September 2001 (3,719)
- August 2001 (5,208)
- July 2001 (6,528)
- June 2001 (4,905)
- May 2001 (5,492)
- April 2001 (4,713)
- March 2001 (4,478)
- February 2001 (3,871)
- January 2001 (4,187)
- December 2000 (3,099)
- November 2000 (2,336)
- October 2000 (3,820)
- September 2000 (3,933)
- August 2000 (4,253)
- July 2000 (4,199)
- June 2000 (4,089)
- May 2000 (4,269)
- April 2000 (3,217)
- March 2000 (3,719)
- February 2000 (4,000)
- January 2000 (2,682)
- December 1999 (2,283)
- November 1999 (1,896)
- October 1999 (2,048)
- September 1999 (2,001)
- August 1999 (2,151)
- July 1999 (2,351)
- June 1999 (2,386)
- May 1999 (2,201)
- April 1999 (1,706)
- March 1999 (6)
- February 1999 (1)