FAQ

Search Discussions

284 discussions - 2,507 posts

  • Functions have a __name__ attribute, which is the name they were defined as: ... 'foo' 'foo' Like many statements in Python, the def statement is really performing an assignment, almost as if it ...
    Ned BatchelderNed Batchelder
    Nov 17, 2013 at 7:34 pm
    Nov 18, 2013 at 12:19 am
  • python3.4 is gone at this stage. Now if i only could install pip for Python 3.3.2 Here is what i have tried: root at secure [~]# which python3 /usr/bin/python3 root at secure [~]# which pip ...
    NikosNikos
    Nov 17, 2013 at 1:28 pm
    Nov 17, 2013 at 1:39 pm
  • Greetings everyone! This is my first post on this forum :) TL;DR: I want to convert the gregorian years into Chinese years, and deal with the fact that the Chinese new years are different each ...
    EdmundiconEdmundicon
    Nov 12, 2013 at 10:04 pm
    Nov 14, 2013 at 1:07 am
  • I'm using the jabberbot library and there is not a whole lot of documentation on it. Does anyone have experience with this library? This is basically the only example given: ------------------------- ...
    Matt GravesMatt Graves
    Nov 13, 2013 at 4:12 pm
    Nov 13, 2013 at 4:56 pm
  • hi, i'd like to change the volume of my av-receiver (HDMI) and speakers (analogue) simultaneously. in order to use both outputs i'm using virtual audio cable but if i set it as default device and ...
    Moldevort87Moldevort87
    Nov 13, 2013 at 2:40 pm
    Nov 13, 2013 at 4:12 pm
  • I launch my program with pythonw and begin it with the code below so that all my print()'s go to the log file specified. if sys.executable.find('pythonw') =0: # Redirect all console output to file ...
    Isaac GergIsaac Gerg
    Nov 12, 2013 at 7:12 pm
    Nov 12, 2013 at 11:09 pm
  • Hi, I have a general question regarding try-except handling in Python. Previously, I was putting the try-handle blocks quite close to where the errors occured: A somewhat contrived example: if ...
    Victor HooiVictor Hooi
    Nov 12, 2013 at 1:34 am
    Nov 12, 2013 at 2:51 am
  • I have the following script that reads in an HTML file containing a table then sends it out via email with a content type of text/html. For some reason a few erroneous whitespaces get introduced to ...
    Richard BalbatRichard Balbat
    Nov 8, 2013 at 10:06 pm
    Nov 12, 2013 at 2:02 am
  • Como fa?o para fazer um programa no modo gr?fico sem usar o prompt? An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-list/attachments/20131108/385551d0/attachment.html
    Guitar MenGuitar Men
    Nov 8, 2013 at 5:29 pm
    Nov 11, 2013 at 11:20 pm
  • Hi, I have a function that returns something like this; [[[1, 5, 9], [2, 6, 7], [3, 4, 8]], [[1, 6, 8], [2, 4, 9], [3, 5, 7]]] It is a list of list of lists. Each uppermost list is called a result. I ...
    Yaşar ArabacıYaşar Arabacı
    Nov 8, 2013 at 7:28 pm
    Nov 8, 2013 at 11:00 pm
  • Hi, Immediate requirement - Sr. Business Analyst for Pricewaterhouse Coopers (PwC) in Tampa, FL. Sr. Business Analyst ? BA - # 900663 Start: Immediate Duration: 9 - 12 Months Here is the job ...
    Parker SvksystemsParker Svksystems
    Nov 7, 2013 at 7:45 pm
    Nov 7, 2013 at 8:27 pm
  • Employee Salaries You are working for a medium sized construction company as an intern in the Information Technology department. A director in the Human Resources department recently asked the IT ...
    Jonny seelyeJonny seelye
    Nov 7, 2013 at 12:56 am
    Nov 7, 2013 at 10:14 am
  • Im a newbee at python, and im trying to figure out how to use variables and setups across modules. Am I right when i think its smart to keep seperate functions of a program in seperate modules? I ...
    Juel4700Juel4700
    Nov 2, 2013 at 9:33 pm
    Nov 3, 2013 at 5:48 am
  • I think that you'd need to use ctypes to access the underlying getpeername() function from libc.
    NobodyNobody
    Nov 1, 2013 at 1:12 am
    Nov 3, 2013 at 3:27 am
  • Can anyone help me overcome a terminology and jargon barrier I am having in fully defining what tools to use to fulfil a process. I want to create a database 6 Related tables. Update information 1 or ...
    FlebberFlebber
    Nov 2, 2013 at 12:31 am
    Nov 2, 2013 at 4:26 am
  • I am in the process of porting reportlab to python3.3, one of the contributions is a module that implements a reporting proxy with a canvas that records all access calls and attribute settings etc ...
    Robin BeckerRobin Becker
    Nov 28, 2013 at 11:12 am
    Dec 2, 2013 at 2:42 pm
  • Hi, I've created a script that allows me to see how many images are on a webpage and their URL however now I want to download all .jpg images from this website and save them onto my computer. I've ...
    TheRandomPast .TheRandomPast .
    Nov 28, 2013 at 3:19 pm
    Nov 28, 2013 at 5:32 pm
  • Hello there, I am attending the lectures, and written the codes according to lectures. Professor's codes are working fine, but my one gives an error. I am new to python. Please it's a humble request, ...
    Speen sabaSpeen saba
    Nov 28, 2013 at 12:37 am
    Nov 28, 2013 at 2:30 am
  • Hey list, I always have issues with TODOs as they stay in the code and most of time forgot. On that, I tried to find a way to track them and to be able to output them automatically. Automatically is ...
    Jordi RieraJordi Riera
    Nov 27, 2013 at 2:38 pm
    Nov 27, 2013 at 3:13 pm
  • Hi, I was wondering if the default ConfigParser can handle multi line strings (especially in the relate section) For example, if i have system.ini [Global] memory = 1024 [Process A] command = sleep ...
    RitaRita
    Nov 25, 2013 at 11:32 pm
    Nov 26, 2013 at 12:35 am
  • Hi, I am using ctypes to access a function in a DLL using Python 3.3 32-bit on Windows 7 64-bit: dplGetPageText = dpl.DPLGetPageText dplGetPageText.argtypes = (ctypes.c_int, ctypes.c_int) ...
    Mark SummerfieldMark Summerfield
    Nov 19, 2013 at 4:58 pm
    Nov 19, 2013 at 6:58 pm
  • Code ################################# #!/usr/bin/env python import sys, re def find_position(line): pun = "" if re.search(r"[.?!]+", line): pun = re.search(r"[.?!]+", line).group() pos = ...
    JaiJai
    Nov 19, 2013 at 3:35 pm
    Nov 19, 2013 at 4:42 pm
  • I have the following code; try: session = FTP(ftp_server_ip,ftp_user,ftp_password) file = open(filename,'rb') # file to send session.storbinary('STOR ' + filename, file) # send the file except ...
    JLJL
    Nov 19, 2013 at 10:18 am
    Nov 19, 2013 at 10:54 am
  • I just started rewritting my project from python 2 to python 3. I noticed that there are these new parameter and return value annotations. I have docstrings everywhere in my project, but I plan to ...
    Laszlo NagyLaszlo Nagy
    Nov 18, 2013 at 1:46 pm
    Nov 18, 2013 at 10:56 pm
  • All the references regarding the subject that I can find, e.g. http://stackoverflow.com/questions/1829872/read-datetime-back-from-sqlite-as-a-datetime-in-python, talk about creating a table in memory ...
    Mark LawrenceMark Lawrence
    Nov 17, 2013 at 2:16 am
    Nov 17, 2013 at 7:39 pm
  • ====================================================== root at secure [~/distribute-0.6.49]# pip install pygeoip Downloading/unpacking pygeoip Downloading pygeoip-0.3.0.tar.gz (97kB): 97kB downloaded ...
    NikosNikos
    Nov 17, 2013 at 4:04 pm
    Nov 17, 2013 at 4:55 pm
  • I am just starting to learn Python and was wondering if there are any good tutorials out there that anyone can recommend? Thanks!
    LazytotoroLazytotoro
    Nov 17, 2013 at 4:59 am
    Nov 17, 2013 at 5:13 am
  • I'm about to convert a complete library into python3. I need asnycmongo for this. Trying to install it on Ubuntu. After executing "sudo pip3 install asyncmongo" I have the following traceback ...
    Laszlo NagyLaszlo Nagy
    Nov 16, 2013 at 6:58 pm
    Nov 16, 2013 at 8:55 pm
  • Hi, I've tried searching for topics related to dlopen() of dynamic libraries in the list but there's nothing relevant or recent. I'm facing a problem with a 3rd party C/C++ Framework (dynamic ...
    Tcwan99Tcwan99
    Nov 14, 2013 at 1:08 am
    Nov 15, 2013 at 2:30 am
  • I tried to plot one smaller contour inside of the other larger contour. I have two different 2D-arrays. One is with smaller grid spacing and smaller domain size and the other is with larger spacing ...
    Isaac WonIsaac Won
    Nov 14, 2013 at 7:39 pm
    Nov 14, 2013 at 11:18 pm
  • I'm looking to speed up some python code. Replacing the python interpreter with pypy was impressive. I noted that use of ctypes (in cython?), specifically declaring variables as below, was reported ...
    Peter ChantPeter Chant
    Nov 14, 2013 at 12:39 am
    Nov 14, 2013 at 11:05 pm
  • ============================================================ The Pros of Python Modules: ============================================================ Python modules require no special syntax to ...
    Rick JohnsonRick Johnson
    Nov 11, 2013 at 4:13 am
    Nov 11, 2013 at 11:51 pm
  • Python 2.7.6 is now available. This release resolves crashes of the interactive interpreter on OS X 10.9. The final release also fixes several issues identified in the release candidate. Importantly, ...
    Benjamin PetersonBenjamin Peterson
    Nov 10, 2013 at 7:29 pm
    Nov 11, 2013 at 1:48 am
  • This looks kind of interesting. http://cs.brown.edu/~sk/Publications/Papers/Published/pmmwplck-python-full-monty/ Abstract We present a small-step operational semantics for the Python programming ...
    Paul RubinPaul Rubin
    Nov 9, 2013 at 6:35 pm
    Nov 11, 2013 at 12:37 am
  • Hi All, PyDev 3.0 has been released Details on PyDev: http://pydev.org Details on its development: http://pydev.blogspot.com LiClipse (PyDev standalone with goodies such as support for Django ...
    Fabio ZadroznyFabio Zadrozny
    Nov 7, 2013 at 12:44 pm
    Nov 8, 2013 at 10:39 am
  • After hints here and there from different channels, and a pretty good StackOverflow post on the subject, I've concluded that "out of the box", the install from source utilities don't really provide ...
    Travis GriggsTravis Griggs
    Nov 8, 2013 at 2:39 am
    Nov 8, 2013 at 4:21 am
  • I have used negative strides for comparing discrete sequences e. g. for turbulence analysis, and I hope that my code will still run in Python 4. Martin
    Martin MannsMartin Manns
    Nov 3, 2013 at 11:15 pm
    Nov 6, 2013 at 7:15 pm
  • Hi, We have a machine running CentOS 6.4, and we're attempting to compile Python 3.3.2 on it: # cat /etc/redhat-release CentOS release 6.4 (Final) We've compiled openssl 1.0.1e 11 by hand on this ...
    Victor HooiVictor Hooi
    Nov 5, 2013 at 12:23 am
    Nov 5, 2013 at 9:11 am
  • Hallo, again: a python beginner problem... but I spent ours to solve it without success. I have an object (a variable) name, which gets its value from a PostgreSQL database via a SELECT statement, an ...
    Ulrich GoebelUlrich Goebel
    Nov 5, 2013 at 1:27 am
    Nov 5, 2013 at 9:00 am
  • Hi, I have a Python script that's using a format string without positional specifiers. I.e.: LOG_FILENAME = 'my_something_{}.log'.format(datetime.now().strftime('%Y-%d-%m_%H.%M.%S')) I'm running this ...
    Victor HooiVictor Hooi
    Nov 4, 2013 at 10:33 pm
    Nov 4, 2013 at 11:44 pm
  • Hello, I tried to install matplotlib 1.3.1 on the release candidates of Python 2.7.6 and 3.3.3. I am on Mac OS X 10.6.8. Although the installation gave no problems, there is a problem with Tcl/Tk ...
    Piet van OostrumPiet van Oostrum
    Nov 4, 2013 at 1:15 am
    Nov 4, 2013 at 6:41 am
  • Hi Am 31.10.2013 23:35, schrieb Terry Reedy: Ok, possibly I will try that later... That gives me the solution. What I have, is an iterator object comming as a SQLite database cursor object. So I ...
    Ulrich GoebelUlrich Goebel
    Nov 1, 2013 at 10:18 am
    Nov 1, 2013 at 8:09 pm
  • Hi, I have been following a very good online tutorial for matplotlib: http://www.loria.fr/~rougier/teaching/matplotlib/#introduction However, when I try to annotate the point where the cosine/sine ...
    Eric GarlicEric Garlic
    Nov 26, 2013 at 7:34 pm
    Nov 26, 2013 at 7:44 pm
  • No, it's not the same; after yielding the ten values, the first one then _returns_ the list. It's a weird and confusing syntax to use for such a thing, but fundamentally it's (more or less) this: def ...
    Chris AngelicoChris Angelico
    Nov 26, 2013 at 2:26 pm
    Nov 26, 2013 at 3:14 pm
  • Hello folks, I?m interested in digging up some Python mailing list archives from ages past. Google Groups? archive goes sporadically back to ?94, but clearly the list is older. Does any one have a ...
    Drew CrawfordDrew Crawford
    Nov 26, 2013 at 9:47 am
    Nov 26, 2013 at 1:39 pm
  • Huh, neat. Looks like that uses time_t to identify start times. ChrisA
    Chris AngelicoChris Angelico
    Nov 25, 2013 at 2:43 pm
    Nov 25, 2013 at 3:12 pm
  • Hi, Ok, this is a topic that I've never really understood properly, so I'd like to find out what's the "proper" way of doing things. Say I have a directory structure like this: furniture/ __init__.py ...
    Victor HooiVictor Hooi
    Nov 25, 2013 at 1:30 am
    Nov 25, 2013 at 6:00 am
  • On behalf of the Python development team, it's my privilege to announce the first beta release of Python 3.4. This is a preview release, and its use is not recommended for production settings. Python ...
    Larry HastingsLarry Hastings
    Nov 24, 2013 at 10:00 pm
    Nov 24, 2013 at 10:28 pm
  • Hi, I have a masked array like in the attached link, I wanted to find indices of the bounds where the mask is false ie in this case of depth file where there is depth less than shore. Is there a ...
    Sudheer JosephSudheer Joseph
    Nov 23, 2013 at 2:29 pm
    Nov 23, 2013 at 2:35 pm
  • Hi all, I am the author of the ``future`` package for Python 2/3 compatibility (http://python-future.org). A bug report has recently been posted about its use of import hooks that I don't yet have an ...
    Ed SchofieldEd Schofield
    Nov 23, 2013 at 12:23 pm
    Nov 23, 2013 at 2:24 pm
Group Navigation
period‹ prev | Nov 2013 | next ›
Group Overview
grouppython-list @
categoriespython
discussions284
posts2,507
users357
websitepython.org

357 users for November 2013

Chris Angelico: 300 posts Mark Lawrence: 178 posts Νίκος Γκρ33κ: 129 posts Steven D'Aprano: 100 posts Ned Batchelder: 61 posts Antoon Pardon: 57 posts Roy Smith: 49 posts Alister: 45 posts Rusi: 43 posts Joel Goldstick: 42 posts Terry Reedy: 41 posts Rick Johnson: 40 posts Tim Chase: 40 posts Denis McMahon: 33 posts Νίκος: 33 posts Grant Edwards: 32 posts MRAB: 31 posts Dave Angel: 28 posts Ben Finney: 27 posts Ian Kelly: 26 posts
show more
Archives