FAQ

Search Discussions

436 discussions - 2,555 posts

  • That's the real issue, not parentheses on the "print" statement. Where's the business case for moving to Python 3? It's not faster. It doesn't do anything you can't do in Python 2.6. There's no ...
    John NagleJohn Nagle
    Jul 2, 2010 at 7:07 pm
    Jul 8, 2010 at 1:44 pm
  • Just a little reminder: Microsoft has withdrawn VS2008 in favor of VS2010. The express version is also unavailable for download. :(( We can still get a VC++ 2008 compiler required to build extensions ...
    SturlamoldenSturlamolden
    Jul 6, 2010 at 3:50 pm
    Jul 29, 2010 at 9:47 am
  • I'm an old Perl-hacker, and am trying to Dive in Python. I have some easy issues (Python 2.6) which probably can be answered in two seconds: 1. ?Why is it that I cannot use print in booleans?? ?e.g.: ...
    Wheres pythonmonksWheres pythonmonks
    Jul 11, 2010 at 5:48 pm
    Aug 6, 2010 at 7:41 pm
  • Hi folks, If I'm only interested in linux and windows I know I can do ################################ import os import platform if platform.system( ) == 'Linux': clear = 'clear' else: clear = 'cls' ...
    Daniel FetchinsonDaniel Fetchinson
    Jul 27, 2010 at 12:54 pm
    Aug 6, 2010 at 2:42 am
  • Let me tell you folks about a recent case of culo rojo i experianced whilst creating a customized bin packer with Python. First i want to say that i actually like the fact that i can do this.. py a = ...
    RantingrickRantingrick
    Jul 11, 2010 at 5:38 am
    Jul 13, 2010 at 6:33 pm
  • Why is the default value of an int zero? <type 'int' How do I build an "int1" type that has a default value of 1? [Hopefully no speed penalty.] I am thinking about applications with ...
    Wheres pythonmonksWheres pythonmonks
    Jul 29, 2010 at 6:12 pm
    Dec 8, 2010 at 4:04 am
  • Hi! I have two super classes: class SuperClass1(object): def __init__(self, word): print word class SuperClass2(object): def __init__(self, word, word2): print word, word2 Also I have subclass of ...
    LacrimaLacrima
    Jul 24, 2010 at 7:47 am
    Aug 2, 2010 at 9:28 pm
  • I was just looking at Debian's benchmarks. It seems LuaJIT is now (on median) beating Intel Fortran! C (gcc) is running the benchmarks faster by less than a factor of two. Consider that Lua is a ...
    SturlamoldenSturlamolden
    Jul 4, 2010 at 3:30 am
    Jul 13, 2010 at 3:38 pm
  • Are there any documents about multiple versionsof Python coexisting in the same OS ( Windows in my case ) and what pitfalls to look out for ? I have already run into a number of them. I installed ...
    Edward DienerEdward Diener
    Jul 24, 2010 at 3:17 am
    Jul 26, 2010 at 5:37 pm
  • Dear Python-User, today i create some slides about floating point arithmetic. I used an example from http://docs.python.org/tutorial/floatingpoint.html so i start the python shell on my linux ...
    David mainzerDavid mainzer
    Jul 7, 2010 at 11:52 am
    Jul 9, 2010 at 3:41 pm
  • why is this group being spammed?
    Be.krulBe.krul
    Jul 18, 2010 at 5:01 am
    Jul 27, 2010 at 4:27 am
  • "Democracy is sick in the US, government monitors your Internet" http://www.youtube.com/watch?v+fCJq_zIdk&feature=fvsr Enjoy .....
    BolegaBolega
    Jul 7, 2010 at 8:56 pm
    Aug 5, 2010 at 2:26 pm
  • i have been asked to guarantee that a proposed Python application will run continuously under MS Windows for two months time. And i am looking to know what i don't know. The app would read instrument ...
    Les SchafferLes Schaffer
    Jul 9, 2010 at 7:13 pm
    Jul 16, 2010 at 2:13 pm
  • Hello, this is obviously a Python OO question: Since Python isn't stringly typed, single-dispatch isn't available per se. So is the "double-dispatch" Visitor pattern, which is usually used in OO ...
    Karsten WutzkeKarsten Wutzke
    Jul 15, 2010 at 5:58 pm
    Jul 18, 2010 at 8:09 am
  • Hi, I've got an Ascii file with some latin characters. Specifically \xe1 and \xfc. I'm trying to import it into a Postgresql database that's running in Unicode mode. The Unicode converter chokes on ...
    Joe GoldthwaiteJoe Goldthwaite
    Jul 28, 2010 at 6:32 pm
    Jul 31, 2010 at 2:06 am
  • hi all, I have a class (FuncDesigner oofun) that has no attribute "size", but it is overloaded in __getattr__, so if someone invokes "myObject.size", it is generated (as another oofun) and connected ...
    DmitreyDmitrey
    Jul 20, 2010 at 10:10 am
    Jul 28, 2010 at 4:59 pm
  • hello, friendliest prog lang community on earth ;) i'm feeling that (0) delegation pattern thru descriptor encourages dedicated delegate for each task, if feeling: print(benefits) (1) the delegate is ...
    Kedra marbunKedra marbun
    Jul 2, 2010 at 1:28 pm
    Jul 10, 2010 at 2:02 am
  • source at: http://github.com/lkcl/grailbrowser $ python grail.py (note the lack of "python1.5" or "python2.4") conversion of the 80 or so regex's to re has been carried out. entirely successfully or ...
    Luke Kenneth Casson LeightonLuke Kenneth Casson Leighton
    Jul 11, 2010 at 3:59 am
    Jul 14, 2010 at 8:47 pm
  • A new python convert is now looking for a replacement for another perl idiom. In particular, since Perl is weakly typed, I used to be able to use unpack to unpack sequences from a string, that I ...
    Wheres pythonmonksWheres pythonmonks
    Jul 28, 2010 at 1:15 pm
    Aug 8, 2010 at 4:34 am
  • Why doesn't python's list append() method return the list itself? For that matter, even the reverse() and sort() methods? I found this link (http://code.google.com/edu/languages/google-python- ...
    DhruvbirdDhruvbird
    Jul 11, 2010 at 3:59 pm
    Jul 16, 2010 at 5:40 pm
  • I mean to get the man page for '[' like in the following code. x=[1,2,3] But help('[') doesn't seem to give the above usage. ########### Mutable Sequence Types ********************** List objects ...
    Peng YuPeng Yu
    Jul 16, 2010 at 5:01 pm
    Jul 18, 2010 at 4:45 pm
  • Another source of asininity seems to be the naming conventions of the Python language proper! True/False start with an upper case and i applaud this. However str, list, tuple, int, float --need i go ...
    RantingrickRantingrick
    Jul 11, 2010 at 7:26 am
    Jul 16, 2010 at 12:59 am
  • On behalf of the Python development team, I'm jocund to announce the second release candidate of Python 2.7. Python 2.7 will be the last major version in the 2.x series. However, it will also have an ...
    Benjamin PetersonBenjamin Peterson
    Jul 4, 2010 at 3:34 pm
    Jul 8, 2010 at 3:30 pm
  • I am having some problems with unicode from json. This is the error I get UnicodeEncodeError: 'ascii' codec can't encode character u'\x93' in position 61: ordinal not in range(128) I have kind of ...
    DirknbrDirknbr
    Jul 23, 2010 at 10:14 am
    Aug 7, 2010 at 2:37 pm
  • 19

    Hello

    Hello! I am new to python and pretty new to programming (I have some expertise wit R statistical programming language). I am just starting, so my questions may be a little bit stupid. Can anyone ...
    Dani ValverdeDani Valverde
    Jul 9, 2010 at 4:31 pm
    Jul 13, 2010 at 8:47 pm
  • Hello, I have a list of integers: x = [ 0, 1, 2, 1, 1, 0, 0, 2, 3 ] And would like to compute the cumulative sum of all the integers from index zero into another array. So for the array above, I ...
    DhruvbirdDhruvbird
    Jul 19, 2010 at 11:18 am
    Aug 2, 2010 at 5:29 pm
  • $ python Python 2.6.4 (r264:75706, Dec 7 2009, 18:43:55) [GCC 4.4.1] on linux2 Type "help", "copyright", "credits" or "license" for more information. 'x.vs' I expected 'x.vsd' as a return value.
    Jason FriedmanJason Friedman
    Jul 16, 2010 at 4:58 pm
    Jul 19, 2010 at 7:06 am
  • [Cross-posted comp.lang.python and comp.lang.c++] I lack experience with shared libraries in *nix and so I need to ask... This is about "cppy", some support for writing Python extensions in C++ that ...
    Alf P. Steinbach /UsenetAlf P. Steinbach /Usenet
    Jul 9, 2010 at 3:52 pm
    Jul 14, 2010 at 10:39 am
  • I develop in an IDLE window. Module M says 'from service import *'. Next I correct a mistake in function 'service.f'. Now 'service.f' works fine. I do 'reload (service); reload (M)'. The function ...
    Frederic RentschFrederic Rentsch
    Jul 9, 2010 at 1:02 pm
    Jul 18, 2010 at 12:09 am
  • Hi, R_HOME is set in my shell (bash). But os.environ doesn't have it. I'm not sure what it does when os module is imported. But it seems that os.environ doesn't capture all the environment variable ...
    Peng YuPeng Yu
    Jul 26, 2010 at 11:36 pm
    Aug 12, 2010 at 4:16 am
  • hello guys.. I'm new at python programming and i'm having some problems with a script that i have been developing for my final project of my graduation. I have a script that is supposed to make a ...
    Ritchy lelisRitchy lelis
    Jul 5, 2010 at 11:45 am
    Jul 16, 2010 at 5:41 am
  • Hi all, I have two objects that should both be able to alter a shared float. So i need something like a mutable float object, or a float reference object. Does anybody know if something like that ...
    Roald de VriesRoald de Vries
    Jul 13, 2010 at 5:26 pm
    Jul 15, 2010 at 9:48 am
  • Hello, I want to send error messages with SMTPHandler logging. But SMTPHandler does not seem to be unicode aware. Is there something doable without playing with sys.setdefaultencoding ? import ...
    NorbertNorbert
    Jul 5, 2010 at 10:07 am
    Jan 14, 2012 at 8:25 am
  • This is a style question rather than a programming question. How large (how many KB, lines, classes, whatever unit of code you like to measure in) should a module grow before I should break it up ...
    Steven D'ApranoSteven D'Aprano
    Jul 9, 2010 at 4:37 am
    Jul 9, 2010 at 9:38 pm
  • Hi; I have this code: sql = 'insert into personalDataKeys values (%s, %s, %s)' % (store, user, ', %s'.join('%s' * len(col_vals)) cursor.execute(sql, col_vals) Is this open to injection attacks? If ...
    Victor SuberviVictor Subervi
    Jul 7, 2010 at 6:38 pm
    Jul 8, 2010 at 5:48 pm
  • Terry ReedyTerry Reedy
    Jul 4, 2010 at 11:14 pm
    Jul 6, 2010 at 10:27 am
  • Hi I'm still kind of confused about the terminology on classes in python. Could you please let me know what the equivalent terms for the following C++ terms? constructor destructor member function ...
    Peng YuPeng Yu
    Jul 26, 2010 at 9:52 pm
    Aug 24, 2010 at 8:06 pm
  • Hi guys, I was wondering what would be better to do some medium to heavy book keeping in memory - Ordered Dictionary or a plain simple Dictionary object?? Regards, N4v
    Navkirat SinghNavkirat Singh
    Jul 29, 2010 at 1:47 am
    Aug 3, 2010 at 8:37 am
  • I'm trying to read in and parse an ascii type file that contains information that can span several lines. Example: createNode animCurveTU -n "test:master_globalSmooth"; setAttr ".tan" 9; setAttr -s 4 ...
    Brandon HarrisBrandon Harris
    Jul 21, 2010 at 2:42 pm
    Jul 22, 2010 at 12:25 am
  • Is there any way to expose the PEP 3118 buffer interface for objects that aren't extension types? Currently, I can expose the NumPy array interface (using either __array_interface__ or ...
    Ken WatfordKen Watford
    Jul 20, 2010 at 10:09 pm
    Jul 21, 2010 at 9:58 am
  • The escape sequence \ENTER allows to split a string over 2 consecutive lines. On the other hand, it seems impossible to split a numeric litteral across multiple lines, compare : ... 000\ ... 000" ...
    CandideCandide
    Jul 15, 2010 at 1:30 am
    Jul 17, 2010 at 1:02 am
  • If I write things with the intermediate variables like below, everything works: ['q', 'u', 'i', 'c', 'k', ' ', 'b', 'r', 'o', 'w', 'n', ' ', 'f', 'o', 'x', ' ', 'j', 'u', 'm', 'p', 's', ' ', 'o', ...
    Mladen GogalaMladen Gogala
    Jul 1, 2010 at 3:50 am
    Jul 2, 2010 at 1:18 am
  • Hi, I want to measure a function run time. I read http://docs.python.org/library/time.html?but I?am confused and don't know which one is suitable. I don't?know is daylight timing important or not.... ...
    Mahmood NaderanMahmood Naderan
    Jul 29, 2010 at 12:34 pm
    Aug 7, 2010 at 5:02 pm
  • Hi, I am making a first large project in python and am having quite a bit of difficulty unscrambling various python versions and what they can/cannot do. To wit, I must communicate with certain ...
    Jeffrey GaynorJeffrey Gaynor
    Jul 28, 2010 at 11:41 pm
    Jul 31, 2010 at 6:06 pm
  • This webpage http://www.python.org/dev/peps/pep-0008/ recommends the following. It looks to me that both styles are fine. Could anybody let me know what the rationale is behind this recommendation? - ...
    Peng YuPeng Yu
    Jul 26, 2010 at 10:20 pm
    Jul 31, 2010 at 1:00 am
  • Hi, I'm not a Python programmer but I'm interested in it and I found this table from Norvig that dates for some years (I re-posted it temporarily on my site below to take it out of context a little). ...
    FrancogrexFrancogrex
    Jul 24, 2010 at 12:45 pm
    Jul 28, 2010 at 2:26 am
  • Hi, guys. As a regular user of python, I am often annoyed by the fact that the official python docementation is too short and too simple to satisfy my requirement. While working with socket, I want ...
    MarchMarch
    Jul 23, 2010 at 3:18 am
    Jul 24, 2010 at 8:17 pm
  • The blist package contains several container types to supplement those built-in to Python. These types closely mirror the built-in types' methods, so the learning curve is close to zero. The package ...
    Daniel StutzbachDaniel Stutzbach
    Jul 21, 2010 at 2:47 pm
    Jul 23, 2010 at 9:26 pm
  • I'm pleased to announce the release of inflect.py v0.1.8, a module that correctly generates: * the plural of singular nouns and verbs * the singular of plural nouns * ordinals * indefinite articles * ...
    PaulPaul
    Jul 15, 2010 at 11:00 am
    Jul 16, 2010 at 4:59 pm
  • I get sometimes a Errno 9 Bad file descriptor the code is too long to show it here but what are the circumstances this could happen? A web search showed nothing. I have especially the feeling Python ...
    JoblackJoblack
    Jul 12, 2010 at 12:48 am
    Jul 16, 2010 at 12:07 am
Group Navigation
period‹ prev | Jul 2010 | next ›
Group Overview
grouppython-list @
categoriespython
discussions436
posts2,555
users529
websitepython.org

529 users for July 2010

Thomas Jollans: 100 posts Steven D'Aprano: 79 posts Chris Rebert: 71 posts MRAB: 65 posts Sturlamolden: 55 posts Alf P. Steinbach /Usenet: 52 posts John Nagle: 52 posts Stephen Hansen: 51 posts Terry Reedy: 50 posts Steven D'Aprano: 42 posts Geremy condra: 40 posts Stefan Behnel: 38 posts Christian Heimes: 33 posts Lawrence D'Oliveiro: 32 posts Aahz: 30 posts Peter Otten: 28 posts Rantingrick: 28 posts Jean-Michel Pichavant: 25 posts Grant Edwards: 22 posts Python: 22 posts
show more
Archives