FAQ

Search Discussions

219 discussions - 2,795 posts

  • /home/nikos/public_html/cgi-bin/metrites.py in () 217 template = htmldata + counter 218 elif page.endswith('.py'): = 219 htmldata = subprocess.check_output( '/home/nikos/public_html/cgi-bin/' + page ...
    Νικόλαος ΚούραςΝικόλαος Κούρας
    Jun 1, 2013 at 3:44 pm
    Jun 11, 2013 at 7:20 am
  • I mean utf-8 could use 1 byte for storing the 1st 256 characters. I meant up to 256, not above 256. A surrogate pair is like itting for example Ctrl-A, which means is a combination character that ...
    Νικόλαος ΚούραςΝικόλαος Κούρας
    Jun 9, 2013 at 10:44 am
    Jul 2, 2013 at 11:41 pm
  • [code] if not re.search( '=', name ) and not re.search( '=', month ) and not re.search( '=', year ): cur.execute( '''SELECT * FROM works WHERE clientsID = (SELECT id FROM clients WHERE name = %s) and ...
    Νικόλαος ΚούραςΝικόλαος Κούρας
    Jun 11, 2013 at 8:20 pm
    Jun 26, 2013 at 9:07 am
  • I have asked this in alt.apache.configuration but received no response at all, so i was thinking of you guys as a last resort to this. Sorry about that but koukos.py need to set a cookies that other ...
    Νικόλαος ΚούραςΝικόλαος Κούρας
    Jun 1, 2013 at 5:30 am
    Jun 6, 2013 at 6:03 pm
  • number_drawn=() def load(lot_number,number_drawn): first=input("enter first lot: ") last=input("enter last lot: ") for lot_number in range(first,last): line_out=str(lot_number) for count in ...
    Charles benoitCharles benoit
    Jun 29, 2013 at 2:07 am
    Jul 8, 2013 at 8:19 am
  • Note to those of you who may be new to Python: I will refer to "print" as a function -- just be aware that "print" was a statement before Python3000 was introduced ...
    Rick JohnsonRick Johnson
    Jun 2, 2013 at 5:04 pm
    Jun 7, 2013 at 5:01 am
  • I'm reading the Python.org tutorial right now, and I found this part rather strange and incomprehensible to me Important warning: The default value is evaluated only once. This makes a difference ...
    Ahmed AbdulshafyAhmed Abdulshafy
    Jun 19, 2013 at 7:17 pm
    Jun 24, 2013 at 3:22 pm
  • class FooBar(object): def __init__(self): ... Inheritance usually takes a class name to indicate which class is the 'parent' class. However, in the previous example, from a django book, the class ...
    AdamAdam
    Jun 23, 2013 at 2:58 am
    Jun 28, 2013 at 6:55 pm
  • Hi folks, My son is 17 years old. He just took a one-year course in web page design at his high school. HTML is worth knowing, I suppose, and I think he has also done a little Javascript. He has ...
    John LadaskyJohn Ladasky
    Jun 12, 2013 at 7:46 pm
    Jul 27, 2013 at 12:25 pm
  • Syntax: fwhile X in ListY and conditionZ: The following would actually exactly as: for X in ListY: fwhile X in ListY and True: fwhile would act much like 'for', but would stop if the condition after ...
    JimjhbJimjhb
    Jun 24, 2013 at 7:52 pm
    Jun 26, 2013 at 8:11 pm
  • ====================== RewriteEngine Off RewriteCond %{REQUEST_FILENAME} -f RewriteRule ^/?(.+\.html) /cgi-bin/metrites.py?file=%{REQUEST_FILENAME} [L,PT,QSA] ====================== [code] file = ...
    Νικόλαος ΚούραςΝικόλαος Κούρας
    Jun 12, 2013 at 5:33 pm
    Jun 16, 2013 at 6:47 pm
  • I am looking for an appropriate version control software for python development, and need professionals' help to make a good decision. Currently I am considering four software: git, SVN, CVS, and ...
    Cutems93Cutems93
    Jun 12, 2013 at 11:27 pm
    Jun 16, 2013 at 5:02 pm
  • Hello, I have written a small utility to locate errors in regular expressions that I want to upload to PyPI. Before I do that, I would like to learn a litte more about the legal aspects of ...
    Malte ForkelMalte Forkel
    Jun 8, 2013 at 9:31 pm
    Jun 12, 2013 at 8:38 pm
  • Many long-time posters have advised "Don't rebind built-in names*. * Unless you really mean to mask it, or more likely wrap it, such as wrapping print to modify some aspect of its operation than one ...
    Terry Jan ReedyTerry Jan Reedy
    Jun 11, 2013 at 12:14 am
    Jun 13, 2013 at 10:09 am
  • Hi, I have a question about breaking up really long lines of code in Python. I have the following line of code: log.msg("Item wrote to MongoDB database %s/%s" %(settings['MONGODB_DB'], ...
    Yves S. GarretYves S. Garret
    Jun 21, 2013 at 9:17 pm
    Jun 25, 2013 at 12:07 pm
  • I started another thread because the last one was !@#$'ed up by irrelevant replies and was difficult to jeep track. abcd Can understand that, it takes the first string out of the 3 strings that has a ...
    Nick the Gr33kNick the Gr33k
    Jun 14, 2013 at 9:50 am
    Jun 15, 2013 at 1:28 pm
  • Hi, I'd like to use closures to set allow a subroutine to set variables in its caller, in leu of pointers. But I can't get it to work. I have the following test pgm, but I can't understand its ...
    Cts Private YahooCts Private Yahoo
    Jun 29, 2013 at 9:34 am
    Jul 1, 2013 at 7:36 am
  • #======================================================== # Collect directory and its filenames as bytes path = b'/home/nikos/public_html/data/apps/' files = os.listdir( path ) for filename in ...
    Νικόλαος ΚούραςΝικόλαος Κούρας
    Jun 12, 2013 at 8:02 am
    Jun 14, 2013 at 3:05 am
  • I have a list, songs, which I want to divide into two groups. Essentially, I want: new_songs = [s for s in songs if s.is_new()] old_songs = [s for s in songs if not s.is_new()] but I don't want to ...
    Roy SmithRoy Smith
    Jun 10, 2013 at 8:34 pm
    Jun 13, 2013 at 9:43 am
  • Since the other thread gone into the wild, i choosed not to participate any longer and i state the question in this new thread. 'python files.py' interprets without an error. Problem is that when via ...
    Νικόλαος ΚούραςΝικόλαος Κούρας
    Jun 5, 2013 at 7:54 pm
    Jun 9, 2013 at 10:42 am
  • Hello, Trying to browse http://superhost.gr/?page=files.py with tailing -F of the error_log i noticed that error log outputs no error! So that means that the script is correct. here are the directory ...
    Nick the Gr33kNick the Gr33k
    Jun 15, 2013 at 7:38 pm
    Jun 17, 2013 at 2:50 pm
  • I've begun writing a program with an interactive prompt, and it needs to parse input from the user. I thought the argparse module would be great for this, but unfortunately it insists on calling ...
    Andrew BergAndrew Berg
    Jun 27, 2013 at 12:54 pm
    Jun 29, 2013 at 7:17 pm
  • Let: - class Point be a data type which is used to define points in space - class Line be a data type which possesses an aggregate relationship with objects of type Point - class Model be a container ...
    Rui MacielRui Maciel
    Jun 10, 2013 at 1:18 pm
    Jun 13, 2013 at 6:23 pm
  • Hello, I am new to python development and I want to know what kinds of tools people use for python development. I went to Python website and found several tools. 1. Automated Refactoring Tools 2. Bug ...
    Cutems93Cutems93
    Jun 23, 2013 at 8:40 pm
    Jun 25, 2013 at 1:36 pm
  • Hello again, something simple this time: After a user selects a file from the form, that sleection of his can be found form reading the variable 'filename' If the filename already exists in to the ...
    SimpletonSimpleton
    Jun 17, 2013 at 4:39 pm
    Jun 18, 2013 at 5:49 am
  • Is there a more efficient way of doing this? Any help is gratly appreciated. import random def partdeux(): print('''A man lunges at you with a knife! Do you DUCK or PARRY?''') option1=('duck') ...
    Eschneider92Eschneider92
    Jun 4, 2013 at 3:39 am
    Jun 7, 2013 at 2:21 am
  • Hi all, I've written a program using Twisted that uses SqlAlchemy to access a database using threads.deferToThread(...) and SqlAlchemy's scoped_session(...). This program runs for a long time, but ...
    WritesonWriteson
    Jun 13, 2013 at 1:24 am
    Jun 21, 2013 at 6:50 am
  • I've got a 170 MB file I want to search for lines that look like: [2010-10-20 16:47:50.339229 -04:00] INFO (6): songza.amie.history - ENQUEUEING: /listen/the-station-one This code runs in 1.3 ...
    Roy SmithRoy Smith
    Jun 18, 2013 at 4:45 pm
    Jun 19, 2013 at 7:55 pm
  • Traceback (most recent call last): File "Guessing_Game.py", line 32, in <module input (enter) File "<string ", line 0 ^ SyntaxError: unexpected EOF while parsing ------------------ (program exited ...
    Armando Montes De OcaArmando Montes De Oca
    Jun 5, 2013 at 2:40 pm
    Jun 6, 2013 at 2:49 pm
  • Dear Group, I am trying to search the following pattern in Python. I have following strings: (i)"In the ocean" (ii)"On the ocean" (iii) "By the ocean" (iv) "In this group" (v) "In this group" (vi) ...
    SubhabangaloreSubhabangalore
    Jun 15, 2013 at 9:42 am
    Jun 15, 2013 at 9:26 pm
  • Perhaps this isn't the right place to post this, but it's the only place I could find. I asked yesterday or the day before about Python Game Development, and have found a few tutorials on PyGame. Now ...
    Eam onnEam onn
    Jun 8, 2013 at 4:07 pm
    Apr 26, 2014 at 7:07 am
  • Hello, as you all know i'am using cgi method for my web script. I have been told that webpy is the way to go sor script simple enough as mines. Can you please show me the simplest example you can ...
    ΝίκοςΝίκος
    Jun 23, 2013 at 1:01 pm
    Jun 28, 2013 at 2:28 pm
  • Hey, group, quick (I hope) question: I've got a simple script that counts the number of words in a data set (it's more complicated than that, but that's one of the functions), but there are so many ...
    Bryan BrittenBryan Britten
    Jun 25, 2013 at 8:09 pm
    Jun 27, 2013 at 12:54 pm
  • Hi all, Any suggestions for a good name, for a framework that does automatic server deployments? It's like Fabric, but more powerful. It has some similarities with Puppet, Chef and Saltstack, but is ...
    Jonathan SlendersJonathan Slenders
    Jun 24, 2013 at 12:30 pm
    Jun 26, 2013 at 11:40 am
  • Hello guys... I?m a begginer in Python, I'm doing a Hangman game, but I'm having trouble with this blank space. I would be greatful if you help me. :) Here's my code ...
    Arturo balbuenaArturo balbuena
    Jun 19, 2013 at 9:14 pm
    Jun 21, 2013 at 2:36 pm
  • ?? ???????, 10 ??????? 2013 1:42:25 ?.?. UTC+3, ? ??????? Andreas Perstinger ??????: 's' is a byte object, how can you treat it as a string asking to present you its first character? 's' is a byte ...
    Νικόλαος ΚούραςΝικόλαος Κούρας
    Jun 10, 2013 at 11:13 am
    Jun 12, 2013 at 8:32 am
  • I was planning on making a small 2D game in Python. Are there any libraries for this? I know of: ??Pygame - As far as I know it's dead and has been for almost a year ? PyOgre - Linux and Windows ...
    LetsplaysforuLetsplaysforu
    Jun 7, 2013 at 3:53 pm
    Jun 12, 2013 at 2:27 am
  • Hi everyone, I am a beginner in python and trying to find my way through... :) I am writing a script to get numbers from the headers of a text file. If the header is something like: h01 = (' ...
    MstagliamonteMstagliamonte
    Jun 4, 2013 at 3:21 pm
    Jun 5, 2013 at 4:53 am
  • I am extending a parser and need to create many classes that are all subclassed from the same object (defined in an external library). When my module is loaded I need all the classes to be created ...
    TimTim
    Jun 26, 2013 at 1:09 pm
    Jun 27, 2013 at 4:40 pm
  • I'm currently trying to make sense of Python's Timsort function. From the wikipedia page I was told the algorithm is located somewhere here ...
    Alphonse23Alphonse23
    Jun 15, 2013 at 7:44 pm
    Jun 19, 2013 at 6:20 pm
  • ================= ================= THRINAXODON HAS RECENTLY RECEIVED THIS MESSAGE FROM THE PYTHON FOUNDER: Oh my God! It's hard to program with, it`s troubling for so many people! I call for the ...
    ThrinaxodonThrinaxodon
    Jun 27, 2013 at 4:19 am
    Jun 28, 2013 at 9:06 pm
  • How do I bring users back to beginning of user/password question once they fail it? thx
    ChristhecomicChristhecomic
    Jun 23, 2013 at 11:18 pm
    Jun 25, 2013 at 1:40 pm
  • Hello! This is my first post in this group and the reason why I came across here is that, despite my complete lack of knowledge in the programming area, I received an order from my teacher to develop ...
    AugustofecAugustofec
    Jun 19, 2013 at 1:58 pm
    Jun 21, 2013 at 11:31 am
  • Hi there, Sorry for the complete beginner question but I thought the readers here might be able to provide me with some guidance. I've done some programming with Visual Basic and VBA plus a little ...
    AndrewblundonAndrewblundon
    Jun 19, 2013 at 2:47 am
    Jun 19, 2013 at 4:34 pm
  • What if i wanted to sort it out if alphabetically and not by the values? Thsi worked: for item in sorted(months.items(),key=lambda num : num[1]): but this failed: for item in sorted(months.items()) ...
    Νικόλαος ΚούραςΝικόλαος Κούρας
    Jun 10, 2013 at 8:16 am
    Jun 11, 2013 at 9:16 am
  • I get this error when I try to save .dxf files in Inkscape: Fatal Python error: Py_Initialize: can't initialize sys standard streams Then it seems to recover but it doesn't really recover. It saves ...
    Lucabrasi154Lucabrasi154
    Jun 15, 2013 at 9:29 pm
    Jun 18, 2013 at 4:47 am
  • Hi, I'm planning to buy a Macbook Air and I want to use it as a sort of alarm. I'd like to write a program that boots my computer at a specific time, loads iTunes, and starts playing a podcast. Is ...
    C. N. DesrosiersC. N. Desrosiers
    Jun 16, 2013 at 7:06 pm
    Jun 17, 2013 at 5:52 pm
  • Hello all, This is my dilemma, I'm trying to get the generated JSON file using the bing api search. This is the code that I'm executing from inside the shell: http://bin.cakephp.org/view/460660617 ...
    Yves S. GarretYves S. Garret
    Jun 13, 2013 at 8:57 pm
    Jun 14, 2013 at 7:14 pm
  • Hi, I'm new to Python. Would someone be able to write me and/or to show me how to write a simple program that: 1-follows a hyperlink from MS Excel to the internet (one of many links like this, ...
    Buford LumbarBuford Lumbar
    Jun 13, 2013 at 7:28 pm
    Jun 14, 2013 at 3:02 pm
  • Im required to import ha certain dll called 'NHunspell.dll' which is used for Spell Checking purposes. I am using Python for the software. Although I checked out several websites to properly use ...
    Akshay KsthAkshay Ksth
    Jun 25, 2013 at 6:23 am
    Jun 25, 2013 at 2:52 pm
Group Navigation
period‹ prev | Jun 2013 | next ›
Group Overview
grouppython-list @
categoriespython
discussions219
posts2,795
users316
websitepython.org

316 users for June 2013

Chris Angelico: 257 posts Νικόλαος Κούρας: 189 posts Steven D'Aprano: 182 posts Νίκος: 146 posts Rusi: 99 posts Ian Kelly: 66 posts Rick Johnson: 65 posts Mark Lawrence: 64 posts Fábio Santos: 60 posts Dave Angel: 53 posts Roy Smith: 51 posts Wu wei: 51 posts Joshua Landau: 50 posts MRAB: 49 posts Peter Otten: 45 posts Terry Reedy: 44 posts Carlos Nepomuceno: 41 posts Michael Torrie: 41 posts Mark Janssen: 39 posts Grant Edwards: 36 posts
show more
Archives