Search:

Type: Posts; User: Smygis; Keyword(s):

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: Python's slow

    by Smygis
    Replies
    76
    Views
    3,334

    Re: Python's slow

    There is some python in Battlefield 2 also. Dont remember exactly what it does tho. And i belive World in conflict makes extensive use of python.
  2. Replies
    267
    Views
    45,107

    Poll: Re: [Beginner] Programming Challenge: 1

    #!/usr/bin/env python
    # coding: UTF-8

    BottlesOfBeer = "\n\
    %s%s of beer on the wall, %s%s of beer. \n\
    %s, %s%s of beer on the wall."

    PassOrBuy = ("Go to the store and buy some...
  3. Replies
    41
    Views
    1,477

    Re: Advice in getting started with Python

    I don't have a problem with clarification being made upon my posts.
    What i have a problem with is this sentence: "That works, although the first two lines aren't needed". The first two lines are...
  4. Replies
    41
    Views
    1,477

    Re: Advice in getting started with Python

    Well then. Explain to the guy here how he connects his exavangizmodode to his trapeziums and point to a wiki that will tell him how to squeeze orangejuice out of his GPU.

    If someone bother to read...
  5. Replies
    41
    Views
    1,477

    Re: Advice in getting started with Python

    When i first did try python i didn't need them ether. Or so they said.
    And then i wrote my hello world in Swedish "Hallå Världen". And python spat an error in my face. thank you very much.

    And...
  6. Replies
    41
    Views
    1,477

    Re: Advice in getting started with Python

    Uhmmm? Well lets put it this way.

    Python is a language. Such as say English. You dont 'run' Python. As you dont run English. It is a bridge between you and the computer as English is a bridge...
  7. Replies
    94
    Views
    7,015

    Re: Why to love/hate C#

    Oh my fckin god. Thank the lord of whaterver that i chose Python instead of C#/Java. You wrote runtime FIVE times in a row. How reciculus is that. Thats like brain**** or something.
    RunTime rUNtIME...
  8. Thread: Urgent

    by Smygis
    Replies
    20
    Views
    728

    Re: Urgent

    Your question makes no sense. How do you want to understand user log in/off? And what does who have to do with it. And what can you do with the windows registry, winapi and a dll?
  9. Replies
    11
    Views
    2,290

    Re: Recommended C++ IDE for Ubuntu

    I'd go with ether Geany or Code::Blocks. Personaly i prefer Code::Blocks.
  10. Replies
    8
    Views
    2,989

    Re: Best IDE for web development?

    There is none. You have to learn the hard way or create a wysiwyg of your own.
  11. Replies
    15
    Views
    605

    Re: [Python] Confused by for loops

    how nice that the two guys behind me wrote the exact same thing i did.
  12. Replies
    15
    Views
    605

    Re: [Python] Confused by for loops

    >>> a = [1, 2, 1, 2, 3, 1]
    >>> for i in xrange(len(a)):
    ... a[i] = 0
    ...
    >>> a
    [0, 0, 0, 0, 0, 0]
    >>> # or the exact same thing a diffrent way. The most Pythonic way
    ...
    >>> a = [1, 2,...
  13. Replies
    11
    Views
    1,029

    Re: What's wrong with IDLE, the python IDE?

    I had so many problems with IDLE i quit using it a log time ago.
    IDLE sucks. Thats why. Trys to be both a editor and some sort of interperter at the same time and fails at both. Sure it works if im...
  14. Replies
    4
    Views
    251

    Re: Porting cPickle to Lisp

    The internets rule! You can google and browse SVN!
    http://svn.python.org/view/python/trunk/Modules/cPickle.c?rev=59564&view=markup
  15. Replies
    13
    Views
    775

    Re: Maintaining Programming SKill

    http://www.pythonchallenge.com
    Im at challange 9. Its hard, frustrating and fun. Pythonchallange is not only programming but also logic and puzzlesolving. You realy need to figure out what youre...
  16. Replies
    12
    Views
    589

    Re: Python thinks "a" isn't "a"?

    >>> import timeit
    >>> t = timeit.Timer()
    >>> t.timeit(None is None)
    9.059906005859375e-06
    >>> t.timeit(None == None)
    6.9141387939453125e-06
    >>>


    (Thats not a absolut truth)
  17. Replies
    12
    Views
    589

    Re: Python thinks "a" isn't "a"?

    in python is does not check the content of the variable but its identety.



    >>> aList = [0,1,2]
    >>> otherList = aList
    >>> aList is otherList
    True
    >>> otherList.append(10)
    >>> aList is...
  18. Replies
    4
    Views
    325

    Re: Parsing POST results in PSP

    Setting up Python CGI in lighttpd is super easy. And using it is awsome. My problem with Django is that you have to do a weeks worth of configuring and lerning of the different things in it before...
  19. Replies
    5
    Views
    1,025

    Re: SSH GTK Frontend

    http://pyssh.sourceforge.net/ Someting like that? or http://www.lag.net/paramiko/
  20. Replies
    14
    Views
    991

    Re: Critque my first Python program

    def is_flac(song):
    return song.endswith(".flac")


    Even better :) And its the prefered way of performing tasks like this one.
  21. Re: Do I have to learn Shell or is Python enough?

    Python also have the commands module (*nix only). A nice wrapper around os.popen.

    Works almost like os.system but returns output and exitstatus to python for futher processing.
  22. Replies
    5
    Views
    3,883

    Re: Ncurses for windows?

    If you use Cygwin i think you can.
  23. Replies
    9
    Views
    903

    Re: Sockets In Python Not Working

    Sorry if im a bit bitching now.

    But omg, please read PEP8:
    http://www.python.org/dev/peps/pep-0008/
  24. Replies
    15
    Views
    1,338

    Re: Next step for a C++ novice

    Also learn the boost library.

    http://www.boost.org/

    Great stuff.
  25. Replies
    28
    Views
    1,676

    Re: Wanting to learn Python

    1: It does not work as you wuld expect all the time.
    Often when i use IDLE scripts ive written wont run thrue IDLE. But runing them normaly works fine.

    2: I hate the UI.
    I dont give a rats ***...
Results 1 to 25 of 86
Page 1 of 4 1 2 3 4