FAQ

Search Discussions

273 discussions - 2,311 posts

  • Hi all, I though this might be of interest. http://www.ironfroggy.com/software/i-am-worried-about-the-future-of-python -- Cheers. Mark Lawrence.
    Mark LawrenceMark Lawrence
    Sep 25, 2012 at 8:15 am
    Sep 29, 2012 at 3:07 am
  • Hello again, one small matter too. # get some enviromental values locale.setlocale(locale.LC_ALL, 'el_GR') .......... .......... date = datetime.datetime.now().strftime( '%y-%m-%d %H:%M:%S' ) ...
    Νικόλαος ΚούραςΝικόλαος Κούρας
    Sep 15, 2012 at 5:33 pm
    Nov 10, 2012 at 6:57 am
  • There's been a bunch of threads lately about string implementations, and that got me thinking (which is often a dangerous thing). Let's assume you're testing two strings for equality. You've already ...
    Roy SmithRoy Smith
    Sep 4, 2012 at 1:54 am
    Sep 19, 2012 at 12:47 am
  • I have to give a couple of Python presentations in the next weeks, and I'm still thinking what is the best approach. In one presentation for example I will present decorators and context managers, ...
    Andrea crottiAndrea crotti
    Sep 13, 2012 at 4:00 pm
    Sep 24, 2012 at 3:42 pm
  • I have run recently a benchmark of a trivial 'hello world' application for various python web frameworks (bottle,?django, flask, pyramid, web.py, wheezy.web) hosted in uWSGI/cpython2.7 and ...
    Andriy KornatskyyAndriy Kornatskyy
    Sep 23, 2012 at 9:19 am
    Nov 1, 2012 at 11:36 am
  • Am I missing something obvious, or do I have to manually put in a counter in the for loops? That's a very basic request, but I couldn't find anything in the documentation.
    Jimbo1qazJimbo1qaz
    Sep 23, 2012 at 4:36 pm
    Sep 29, 2012 at 1:41 pm
  • Hi ! a is b <== id(a) == id(b) in builtin classes. Is that true ? Thanks, franck
    Franck DitterFranck Ditter
    Sep 5, 2012 at 6:30 am
    Nov 4, 2012 at 10:13 am
  • Dear All, I have a simple code as follows: # Begin a = 1 def f(): print a def g(): a = 20 f() g() #End I think the results should be 20, but it is 1. Would you please tell me why? Thanks a lot!
    JaydenJayden
    Sep 24, 2012 at 11:43 pm
    Sep 28, 2012 at 6:20 am
  • Hello, I recently changed webhost and in the new one iam getting this error you can see if you visit http://superhost.gr when program execution reaches the line: f = open( '../' + page ) In the ...
    Νικόλαος ΚούραςΝικόλαος Κούρας
    Sep 15, 2012 at 12:22 pm
    Sep 15, 2012 at 11:11 pm
  • Hello, One webpage of mine, http://www.varsa.gr/ has been *hacked* 15 mins ago. I logged into CPanel but the joomla files seem ok. but when i view page code with chrome i get the source code, i dont ...
    Νίκος ΓκρεεκΝίκος Γκρεεκ
    Sep 21, 2012 at 6:45 pm
    Sep 27, 2012 at 5:06 pm
  • Hi all, I'm working on some code that parses a 500kb, 2M line file line by line and saves, per line, some derived strings into various data structures. I thus expect that memory use should ...
    MrsEntityMrsEntity
    Sep 24, 2012 at 9:59 pm
    Sep 27, 2012 at 8:00 am
  • For some time now, I've wanted to suggest a better abstraction for the <file type in Python. It currently uses an antiquated C-style interface for moving around in a file, with methods like tell() ...
    ZipherZipher
    Sep 24, 2012 at 9:35 pm
    Sep 25, 2012 at 7:40 pm
  • I can't figure out how to stop the "add a space at the beginning" behavior of the print function. 1 2 See the space in between the 1 and the 2 at the output print to the command console? The help for ...
    GwhiteGwhite
    Sep 2, 2012 at 5:23 pm
    Sep 3, 2012 at 12:12 am
  • Hello all, I am learning to program in python. I have a need to make a program that can store, retrieve, add, and delete client data such as name, address, social, telephone number and similar ...
    Mark R RivetMark R Rivet
    Sep 3, 2012 at 2:12 pm
    Sep 11, 2012 at 11:28 am
  • A friend made me aware of this: When a python beginner (2.x) quick searches for "print" on docs.python.org, the print function doesn't even come up in the top 20 results. The print statement isn't ...
    David HoeseDavid Hoese
    Sep 4, 2012 at 5:58 pm
    Sep 6, 2012 at 6:21 pm
  • I installed (1) pythonxy2.7.2.3 (with python2.7) and (2) pythonOCC-0.5-all-in-one.win32.py26 on windows 7 64 bit computer. I try run pythonOCC examples in its example folder, such as the ...
    JaydenJayden
    Sep 12, 2012 at 3:58 am
    Sep 17, 2012 at 7:24 am
  • I have a subprocess.call which tries to download a data from a remote server using HTAR. I put the call in a while loop, which tests to see if the download was successful, and if not, loops back ...
    PaulstatenPaulstaten
    Sep 13, 2012 at 3:17 pm
    Sep 19, 2013 at 7:58 pm
  • Are there any python CAD libraries that can (1) build simple 3D primitives solids such as spheres, cylinders and so on (2) perform bool operations on 3D solids (3) better if it has some ...
    JaydenJayden
    Sep 10, 2012 at 9:10 pm
    Sep 12, 2012 at 3:43 am
  • In Python 2.7: I want to parse standard ISO date/time strings such as 2012-09-09T18:00:00-07:00 into Python "datetime" objects. The "datetime" object offers an output method , ...
    John NagleJohn Nagle
    Sep 6, 2012 at 7:27 pm
    Sep 12, 2012 at 12:31 pm
  • I have a list of dictionaries. They all have the same keys. I want to find the set of keys where all the dictionaries have the same values. Suggestions?
    Neal BeckerNeal Becker
    Sep 19, 2012 at 11:17 am
    Sep 27, 2012 at 5:58 pm
  • Hi, I have an installer script that contains lots of little functions. It has an interactive menu and the corresponding function is called. Over time it grew long and when I want to add a new ...
    Jabba LaciJabba Laci
    Sep 12, 2012 at 12:56 pm
    Sep 13, 2012 at 5:59 pm
  • write a regex matches 800-555-1212, 555-1212, and also (800) 555-1212.
    iMathiMath
    Sep 29, 2012 at 12:31 am
    Sep 30, 2012 at 12:10 am
  • Like the topic.. . I found this: http://learnpythonthehardway.org/book/ex46.html it seems fine, but shouldn't be an interactive (with CLI API) script creating that? It's a lot of effort for common ...
    XliivXliiv
    Sep 21, 2012 at 10:07 am
    Sep 24, 2012 at 7:55 pm
  • Hi, list = [{'1': []}, {'2': []}, {'3': ['4', '5']}] I want to check for a value (e.g. '4'), and get the key of the dictionary that contains that value. (Yep, this is bizarre.) some_magic(list, '4') ...
    ThorsopiaThorsopia
    Sep 20, 2012 at 10:58 pm
    Sep 23, 2012 at 4:09 am
  • Hello, I'm essentially a newbie in Python. My problem in searching the archives is not knowing what words to use to ask. I'm converting windows bat files little by little to Python 3 as I find time ...
    David SmithDavid Smith
    Sep 18, 2012 at 1:08 am
    Sep 20, 2012 at 1:35 pm
  • hello , i'm new to Python and i searched the web and could not find an answer for my issue. i need to get an ip address from list of hostnames which are in a textfile. this is what i have so far ...
    DkatorzaDkatorza
    Sep 12, 2012 at 2:24 pm
    Sep 20, 2012 at 5:13 am
  • Does anyone have an example of utilisation?
    MarcoMarco
    Sep 3, 2012 at 12:32 pm
    Sep 6, 2012 at 6:52 am
  • Hallo to all, I'm using Python 2.7.3 with Windows 7 @ 64 bit and an Intel Core i3 -2350M CPU @2.30GHz 2.3GHz. Sometimes, when I'm programming in Python on my screen compare this blue screen ...
    Mikcec82Mikcec82
    Sep 21, 2012 at 2:04 pm
    Oct 22, 2012 at 1:15 pm
  • Dear All, In the Python Tutorial, Section 9.4, it is said that "Data attributes override method attributes with the same name." But in my testing as follows: #Begin class A: i = 10 def i(): print 'i' ...
    JaydenJayden
    Sep 25, 2012 at 1:41 pm
    Sep 29, 2012 at 3:20 am
  • Been getting slammed by a few for some insignificant things, so who's laughing at me, and who takes me seriously. I don't claim to be the best, just trying to help. So who doesn't want me around? -- ...
    Dwight HuttoDwight Hutto
    Sep 25, 2012 at 1:29 am
    Sep 27, 2012 at 1:34 am
  • ytHello all: I've asked for a couple code reviews lately on a mud I've been working on, to kind of help me with ideas and a better design. I have yet another design question. In my mud, zones are ...
    Littlefield, TylerLittlefield, Tyler
    Sep 24, 2012 at 1:32 am
    Sep 25, 2012 at 9:09 am
  • I think I've installed Python 2.7.3 according to the instructions in the README, and now want to use that version. However, when typing "python" in Terminal, I get "Python 2.6.4 (r264:75821M, Oct 27 ...
    BobAalsmaBobAalsma
    Sep 9, 2012 at 2:28 pm
    Sep 11, 2012 at 2:47 pm
  • Hi all, Is it possible for me to put a limit in the amount of processor usage (% CPU) that my current python script is using? Is there any module useful for this task? I saw Resource module but I ...
    Rolando Cañer RoblejoRolando Cañer Roblejo
    Sep 20, 2012 at 3:12 pm
    Sep 27, 2012 at 5:07 pm
  • I've got a bunch of text in Portuguese and to transmit them, need to have them in us-ascii (7-bit). I'd like to keep as much information as possible, just stripping accents, cedillas, tildes, etc. So ...
    Tim ChaseTim Chase
    Sep 13, 2012 at 9:26 pm
    Sep 15, 2012 at 8:58 am
  • I have a lot of programming experience in many different languages and now I want to learn Python. Which version do you suggest I download, Python 2.x or Python 3.x ? Also why should I prefer one ...
    Charles HottelCharles Hottel
    Sep 11, 2012 at 4:49 pm
    Sep 13, 2012 at 11:30 pm
  • I am a complete novice to Python. I wish to access a dll that has been written to be compatible with C and VB6. I have been told that after running Python I should enter "from ctypes import *" which ...
    Helpful personHelpful person
    Sep 6, 2012 at 3:07 pm
    Sep 8, 2012 at 11:21 am
  • Is it faster to use bitshifts or floor division? And which is better, & or %? All divisors and mods are power of 2, so are binary operations faster? And are they considered bad style?
    Jimbo1qazJimbo1qaz
    Sep 7, 2012 at 12:01 am
    Sep 7, 2012 at 5:12 pm
  • On behalf of the Python development team, I'm delighted to announce the Python 3.3.0 final release. Python 3.3 includes a range of improvements of the 3.x series, as well as easier porting between ...
    Georg BrandlGeorg Brandl
    Sep 29, 2012 at 12:18 pm
    Sep 29, 2012 at 3:14 pm
  • Python floats can represent exact integer values (e.g. 42.0), but above a certain value (see below), not all integers can be represented. For example: py 1e16 == 1e16 + 1 # no such float as ...
    Steven D'ApranoSteven D'Aprano
    Sep 21, 2012 at 5:29 pm
    Sep 24, 2012 at 3:29 pm
  • I'd like to implement the equivalent functionality of the unix command /usr/bin/which The function should work under Linux and under windows. Did anybody already implement such a function. If not, is ...
    Gelonida NGelonida N
    Sep 20, 2012 at 9:06 pm
    Sep 23, 2012 at 3:55 am
  • Is there a unique method in python to unique a list? thanks
    Token TypeToken Type
    Sep 9, 2012 at 5:43 am
    Sep 9, 2012 at 2:13 pm
  • Hi Everyone, I have a simple program which reads a large file containing few million rows, parses each row (`numpy array`) and converts into an array of doubles (`python array`) and later writes into ...
    Jadhav, AlokJadhav, Alok
    Sep 17, 2012 at 1:07 am
    Nov 15, 2012 at 11:20 am
  • Hi everybody, I have tried, naively, to do the following, so as to make lists quickly: [0, 0] [3, 0] All is working fine, so I extended the technique to do: [[0, 0, 0], [0, 0, 0]] [[2, 0, 0], [2, 0, ...
    TPTP
    Sep 26, 2012 at 9:20 pm
    Sep 29, 2012 at 6:50 pm
  • Probably the fastest I/RPC implementation for Python should be OmniOrbpy: http://omniorb.sourceforge.net/ It's cross-platform, language-independent and standard-(Corba-) compliant. If it's just for ...
    Wolfgang KellerWolfgang Keller
    Sep 1, 2012 at 12:55 pm
    Sep 22, 2012 at 3:21 pm
  • Hello, I wonder why sum does not work on the string sequence in Python 3 : 25 27 TypeError: unsupported operand type(s) for +: 'int' and 'str' I naively thought that sum('abc') would expand to ...
    Franck DitterFranck Ditter
    Sep 19, 2012 at 2:41 pm
    Sep 19, 2012 at 10:25 pm
  • All Python noob here. Trying to understand a particular syntax: class stuff: def __init__(self): self._bongo = "BongoWorld" ----------- What is the significance of the leading underscore in ...
    E DoxtatorE Doxtator
    Sep 11, 2012 at 6:45 pm
    Nov 10, 2012 at 3:41 pm
  • I'd like to write a programme that will be offered as a web service (Django), in which the user will point to a specific URL and the programme will be used to read the text of that URL. This text can ...
    BobAalsmaBobAalsma
    Sep 21, 2012 at 12:57 pm
    Oct 2, 2012 at 4:17 pm
  • I have a nested list. Whenever I make a copy of the list, changes in one affect the other, even when I use list(orig) or even copy the sublists one by one. I have to manually copy each cell over for ...
    Jimbo1qazJimbo1qaz
    Sep 23, 2012 at 9:31 pm
    Sep 24, 2012 at 1:52 am
  • may i know how to shift the bits using only looping and branching?? x....x .x..x. ..xx.. ..xx.. .x..x. x....x xx.... ..x..x ...xx. ...xx. ..x..x xx.... .xx... x..x.. ....xx ....xx x..x.. .xx... etc..
    Echo HpingEcho Hping
    Sep 21, 2012 at 1:36 pm
    Sep 22, 2012 at 7:34 pm
  • On page 77 of the book natural language processing with Python, we have such an exercise: The polysemy of a word is the number of senses it has. Using WordNet, we can determine that the noun doghas ...
    Token TypeToken Type
    Sep 8, 2012 at 5:13 pm
    Sep 14, 2012 at 3:19 pm
Group Navigation
period‹ prev | Sep 2012 | next ›
Group Overview
grouppython-list @
categoriespython
discussions273
posts2,311
users345
websitepython.org

345 users for September 2012

Chris Angelico: 159 posts Dwight Hutto: 135 posts Steven D'Aprano: 126 posts Mark Lawrence: 94 posts Terry Reedy: 79 posts Dave Angel: 71 posts Ian Kelly: 64 posts Ramchandra Apte: 62 posts Alex23: 54 posts Oscar Benjamin: 49 posts Tim Chase: 36 posts Νίκος Γκρεεκ: 36 posts Peter Otten: 34 posts 88888 Dihedral: 33 posts Hans Mulder: 30 posts MRAB: 30 posts Roy Smith: 30 posts Andriy Kornatskyy: 24 posts Jean-Michel Pichavant: 23 posts Paul Rubin: 22 posts
show more
Archives