text
stringlengths
226
34.5k
pylab scilimits not working Question: I'm trying to make a simple graph in with python 2.7's matplotlib module. The problem I'm having is that the function `ticklabel_format(style='sci',axis='y',scilimits=(-3.0e-6,-1.0e-6))` is not applying the given scilimit values. I've tried turning off the autoscaling before and a...
Resolve Substitutions in RestructuredText Question: I want to take the following restructured text snippet that contains a [substitution definition](http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#substitution- definitions): text = """ |python| .. |python| image:: pyt...
Python BeautifulSoup Extract specific URLs Question: Is it possible to get only specific URLs? Like: <a href="http://www.iwashere.com/washere.html">next</a> <span class="class">...</span> <a href="http://www.heelo.com/hello.html">next</a> <span class="class">...</span> <a href="http://ww...
Python not calling an external program part 3 Question: I have been having problems trying to run an external program from a python program that was generated from a trigger in a postgres 9.2 database. The trigger works. It writes to a file. I had tried just running the external program but the permissions would not al...
Python's NLTK documentation Question: Where can I found the offline documentation for NLTK? It's not in usr/share/doc, where I mostly find docs of Python modules. And there is no nltk-doc package that can be installed. Answer: Okay so it definitely doesn't come with any package. However it can be built. So first: ...
Running django-celery on windows. EOFError Question: I am using windows 7 64 bit. I installed the latest versions of billiard, django-celery,and kombu. I included: import djcelery djcelery.setup_loader() to my project setting.py When I run the following from the root of my project: ...
Can't run Popen.communicate() twice. (Python subprocess module) Question: Can anyone explain why I get this error if I run the communicate function twice? For instance from subprocess import * SVN=Popen('which svn', shell=True, stdout=PIPE) print SVN.communicate()[0] returns ...
Square root of number python Question: Here's my code: import cmath root = (cmath.sqrt(25)) print (root) raw_input() The problem i face is the result of root is 5+0j which is undesirable i only want the square root. How can i fix this? Answer: Use the `math` module instead of the `cma...
beautifulsoup "list object has no attribute" error Question: I'm trying to scrape temperatures from a [weather site](http://www.wunderground.com/history/airport/KAPA/2013/3/1/DailyHistory.html) using the following: import urllib2 from BeautifulSoup import BeautifulSoup f = open('airport_...
Python replace function [replace once] Question: I need help with a program I'm making in Python. Assume I wanted to replace every instance of the word `"steak"` to `"ghost"` (just go with it...) but I also wanted to replace every instance of the word `"ghost"` to `"steak"` at the same time. The following code does no...
How do I insert a row in my google fusion table using Python Question: I am working on a project and part of it involves inserting rows in to a Google Fusion Table for the Project from a python script. I have spent the last couple days trying to figure out just how to do that and I am officially confused. My research ...
Reading stderr of subprocess while it is executing Question: I'd like to read what is written to stderr by a subprocess while it is executing. However, when I use this script that I've written, stderr does not seem to have anything for me to read until the subprocess has exited. #!/usr/bin/env python2 ...
How can I install packages on my heroku app? Question: I have an app that makes use of shortuuid (<https://pypi.python.org/pypi/shortuuid/0.1>) that is working fine locally when I run it with runapp.py: import os from paste.deploy import loadapp from waitress import serve if __name_...
Argument types differ in normal and reflected operator overload (__sub__ / __rsub__) Question: How do I get access to the properties of an numpy array after passing it through an righthand operator like `__rsub__`? I wrote a very simple class in python that defines the two functions: class test(object):...
syntax error on production server where running bin/python setup.py test-q Question: When I attempt to do the following on a production server: $ sudo -u vretnet ../bin/python setup.py test -q It will show the following error, how should I fix this? Or could it be that my development.ini went w...
How to perform an assignment inside a lambda function Question: Python 2.7.1 I would like to understand why I can't do the following which seems like a sensible thing to do def do_stuff(): # return a function which takes a map as an argument and puts a key in there f = lambda map: map['x...
scipy.misc module has no attribute imread? Question: I am trying to read an image with scipy. However it does not accept the `scipy.misc.imread` part. What could be the cause of this? >>> import scipy >>> scipy.misc <module 'scipy.misc' from 'C:\Python27\lib\site-packages\scipy\misc\__init__.pyc'...
Python PIL library not working image.thumbnail(size, Image.ANTIALIAS) Question: I'm trying to debug this script in python from PIL import Image, ImageChops, ImageOps I've searched all over the problem seems to be "image.thumbnail(size, Image.ANTIALIAS)" here. Anyone have any ideas? Thanks image = Image....
how to check which compiler was used to build Python Question: Is there a way to tell which compiler was used to build a `Python` install on a specific linux machine? I tried using `ldd` on the `Python` dynamic libraries [1], but I didn't manage to understand if it was compiled with `gcc` or Intel compiler. [1] ...
HTML Email Rendered Incorrectly When Carriage Returns Are Not Used Question: The following python script generates an email file that can be piped to sendmail. When I send this to my gmail account, lines 25, 50, and 51 are not what I would have expected. All other lines appear as expected. import sys ...
How to use a python context manager inside a generator Question: In python, should with-statements be used inside a generator? To be clear, I am not asking about using a decorator to create a context manager from a generator function. I am asking whether there is an inherent issue using a with-statement as a context ma...
python webdriver os window Question: I need to upload a file using Python and Selenium. When I click the upload HTML element a "File Upload" window is opened and the click() method does not return since it waits to fully load the page. Therefore I cannot continue using pywinauto code to control the window. The first m...
Python iterator that iterates a function Question: So I must make the following function -> iterate. On first call it should return identity, on second func, on third func.func. Any idea how to do it? I tried looking at the **iter** and **next** method buf failed: ( >>> def double(x): return ...
Read Excel Files and Only Use Specific Files Question: in my past questions, I've stated that I'm new to python. I've only used it once for work. And yet again, there's a small project I have to do for work. I have to read an excel file, and in that excel file, there are 3 columns (col1, col2, col3). There are about 1...
WindowsError: [Error 193] %1 is not a valid Win32 application in Python Question: I wish to import [liblas](http://www.liblas.org/tutorial/python.html) module in Python 2.7 on window 64bit. If I import the module with IDLE (Python GUI) I have no problem. If I use [PyScripter](https://code.google.com/p/pyscripter/downl...
How to selectively import module in python? Question: I have several different modules, and I need to import one of them depending on different situations, for example: if check_situation() == 1: import helper_1 as helper elif check_situation() == 2: import helper_2 as helper elif...
How can I further profile and optimize this string tokenization function? Question: Feel free to skip my long-winded explanation if looking at the source code is easier! So I've written a function to tokenize strings of text. In the simplest case, it takes a string like `It's a beautiful morning` and returns a list of...
Match href value with a regular expression Question: My input is similar to this: <a href="link">text</a> <a href="correctLink">See full summary</a> From this string i want to get only `correctLink` (the link that has _See full summary_ as text) . I'm working with python, and i tried: ...
Using distutils to make a package sutiable for zipimport Question: I'm embedding python in an application that I'm creating and I'm looking for a convenient way to distribute the python code with it. I recently read about `zipimport` and figured that would be a convenient way to distribute all my python code rather tha...
BDD in Scala - Does it have to be ugly? Question: I've used [lettuce](http://lettuce.it) for python in the past. It is a simple BDD framework where specs are written in an external plain text file. Implementation uses regex to identify each step, proving reusable code for each sentence in the specification. Using scal...
SQL / Python Create Table Error Question: I am getting a strange error when I am trying to create this table.... When I track it back I have nothing on line 5? Can anyone help me on how to track this error? import settings import mysql.connector from database import login_info import datetime as dt def ...
Most efficient way of sending a string with multiple variables as POST data using urllib Question: I feel really dumb for having to post this, but I am brand new to Python, and it isn't anything like PHP, which I do know. I have a string of data, which contains 1 or more variables, example: "var1=value1...
How to silently uninstall Python 2.7 on Windows? Question: Does anyone know how to silently uninstall Python 2.7 - i.e. uninstall it unattended, with no need for user interaction? I need to do it as part of an uninstallation script that installs a bunch of software silently. I've tried running msiexec with the /x and ...
PHP and Importing pylab Question: I have a PHP script that calls in a python program. Here is the php script: <?php $last_line = popen('/Library/Frameworks/Python.framework/Versions/Current/bin/python test.py', 'r'); $results = fgets($last_line); print $results; ?> and t...
Django: No module named 'app' Question: Django barfs with ImportError at /store/ No module named store But right there is the debug message there is the setting INSTALLED_APPS = ('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', ...
Why my python and objective-c code get different hmac-sha1 result? Question: I am writing a client/server project that need a signature. I use `base64(hmac-sha1(key, data))` to generate a signature. But I got different signatures between python code and objective-c code: get_signature('KEY', 'TEXT') //...
Bash can't find python library but pydev can Question: I am trying to write some script using Python DNS library (dnspython). I installed it (python-dns and python-dnspython) using packet manager (apt-get install). I was trying to write the script interactively on the shell, but it keeps saying that it can't find the ...
How do I get Boto to return EC2 instances - S3 works fine Question: I'm having some issues with the EC2 bit of Boto (Boto v2.8.0, Python v2.6.7). The first command returns a list of S3 Buckets - all good! The second command to get a list of EC2 instances blows up with a 403 with "Query-string authentication requires t...
Retrieve JPEG image from a redirected URL and display it on a GUI window Question: I'm trying to download a JPEG file from a URL and display it on a tkinter GUI window This is the code I am trying to use to download and display the JPEG: picURL = "https://graph.facebook.com/" + ID + "/picture" picBy...
Python-opencv: Read image data from stdin Question: How can I read image data from stdin rather than from a file? With the C++ interface, it seems to be possible: <http://stackoverflow.com/a/5458035/908515>. The function `imdecode` is available in Python as well. But it expects a `numpy array` as (first) argument. I h...
Setting up Python Flask app with admin section Question: I've built a few small Flask apps before that were read only and I really enjoyed the process. now I'm adding an admin section to a Flask app and I'm looking for some guidance. Current directory structure looks like this: ├── Makefile ├── Proc...
Calling Custom functions from Python using rpy2 Question: Is there a way to call functions defined in a file say myfunc.r ---------------myfunc.r -------------- myfunc = function(){ return(c(1,2,3,4,5,6,7,8,9,10)) } getname = function(){ return("chart title") } -...
Convert String In Python to insert into MySQL DB date column date Question: I have an unusual date string that I want to insert into a MySQL DB. date = 'Thu, 14 Mar 2013 13:33:07 -0400' And here is the insert statement self.cursor.execute("INSERT INTO table1 (`DATE`)VALUES (%s);",(da...
Error importing gtk with python on OS X Question: I've just installed pygtk through Homebrew(awesome tool) as well as its dependences (including gtk+); the thing is when I try to import gtk on the python interpreter it throws an ImportError, which don't happens when importing pygtk or any other module into the interpre...
Django: Can't find template files. / App works without template files? Question: Yesterday I tried to edit a template in my django app and noticed that the template-file isn't even used (anymore). Even if I delete it the app will continue to work and changes I make in the file wont appear online. I couldn't find any ot...
Python, IDLE: Too many recursive errors Question: This is supposedly a problem with the IDLE editor for Python. (I'm running Python 3.3.0 on OSX, but the same problem occurs with 2.7.3) I'm using IDLE to write Python programs. My problem is: Calling a recursive function, which calls itself too many times (1000 times),...
pycurl login joomla website Question: I try create small script for login joomla web site whit python pycurl, im write this code : import sys, re import pycurl import cStringIO import time import urllib def LoginJoomla(url): buf = cStringIO.StringIO() c = pycurl.C...
Refresh a list content with another list in Python Question: How would I extend the content of a given list with another given list without using the method `.extend()`? I imagine that I could use something with dictionaries. **Code** >>> tags =['N','O','S','Cl'] >>> itags =[1,2,4,3] >>> a...
Python Xml Parsing for Wolfram Api Question: I'm trying to get the out put of the wolfram api using a python xml parsing script. Here's my script: import urllib import urllib.request import xml.etree.ElementTree as ET xml_data=urllib.request.urlopen("http://api.wolframalpha.com/v2/query?...
Why does my contextmanager-function not work like my contextmanager class in python? Question: In my code, I need to be able to open and close a device properly, and therefore see the need to use a context manager. While a context manager is usually defined as a class with `__enter__` and `__exit__` methods, there also...
How to ensure all string literals are unicode in python Question: I have a fairly large python code base to go through. It's got an issue where some string literals are strings and others are unicode. And this causes bugs. I am trying to convert everything to unicode. I was wondering if there is a tool that can convert...
PySide - PyQt4 - Draw on one table widget Question: In the following code, I would like to draw fro exemple a circle on the cell of coordinate (4,5). How could I achieve this ? #! /usr/bin/env python2.7 # -*- coding: utf-8 -*- import sys from PySide import QtCore, QtGui cla...
Trouble authenticating Tor with python Question: Probably doing something very silly here, but I'm having some trouble authenticating automatically through Tor. I'm using 32 bit ubuntu 12.04 with obfuscated bridges. This should be all the relevant code, but let me know if there's something else that would be useful i...
Befuddling Python string index out of range error Question: I looked through the other questions on this topic, but couldn't find something that really addresses what I'm trying to figure out. The problem is this: I'm trying to create a program that looks for palindromes in two complementary strands of DNA, returning ...
Python "for" loop, division error Question: I'm using python 2.7.3 When I try a = [1,2,3,4] b = [] for i in a: b.append(1/i) I'm getting an unexpected output as b = [1,0,0,0]. But if I print the value of i loop works fine. for i in a: b.append(i) will gi...
Matching line number with string in a table. Question: I have a file with a list of columns describing particular parameters: size magnitude luminosity I need only particular data (in particular lines, and columns) from this file. So far I have a code in python, where I have appended the necessary line numbers. I jus...
IndentationError in my python script Question: my python version is 2.7.2, and my OS is win XP. this is my script: import sqlite3 import os from flask import Flask, request, session, g, redirect, url_for, \ abort, render_template, flash DATABASE = 'C:\Python27\flaskr.db' DE...
How to speed up python starting up and/or reduce file search while loading libraries? Question: I have a framework composed of different tools written in python in a multi- user environment. The first time I log to the system and start one command it takes 6 seconds just to show a few line of help. If I immediately is...
pack a software in Python using py2exe with 'libiomp5md.dll' not found Question: I have Python 2.7 on Window 7 OS. I wish to pack my project.py in an Executable using py2exe. Following the instruction i wrote a setup.py file from distutils.core import setup import py2exe setup(console=["proj...
Calculating the Fisher criterion in Python Question: Is there a python module that when given two vectors x and y, where y is a two-class (0,1), it calculates the Fisher criterion, as shown in the formula here <http://compbio.soe.ucsc.edu/genex/genexTR2html/node12.html> Please note that I am not looking to apply Fishe...
saving constructor arguments automatically Question: Frequently the constructor of a class will take it's arguments and save them on the instance. For example: class Example(object): def __init__(self, title='',backtitle='', height=20, width=50): self.title = title self.ba...
Bluetooth communication between Arduino and PyBluez Question: I am trying to establish bluetooth communication between an Arduino Uno board (with a bluetooth shield) and my Linux OS, using Python PyBluez. I've successfully paired my laptop to the Uno. I'm able to connect to the board, however the board is not reading ...
Python: TypeError: an integer is required Question: I am trying to get the md5 checksum of some files and write them into a temp file. import os import hashlib PID = str(os.getpid()) manifest = open('/temp/tmp/MANIFEST.'+ PID + '.tmp','w') #e.g. MANIFEST.48938.tmp for elmt in files_...
multi-threading of a matrix multiplication in python Question: I want to create n threads and that each thread computes an entire row of the result matrix. I have tried the following code, import numpy import random import threading class MatrixMult(threading.Thread): """A thread...
quickfix : how to get Symbol ( flag 55 ) from messages? Question: I'm running QuickFix with the Python API and connecting to a TT FIX Adapter using FIX4.2 I am logging on and sending a market data request for two instruments. That works fine and data from the instruments comes in as expected. I can get all kinds of in...
Python: cut equivalent in Python? Question: I want to parse a path (not filename) by the forward slash. Below takes the full path "filename" and reads up to the 7th "/". **EDIT: I realized the above was confusing when I stated filename. I meant, I needed to parse the full path. e.g. I could need the first 7 "/"s to th...
Python not displaying simplified Chinese properly in dos window Question: I have a python script that prints chinese output on command line. It works fine in eclipse. However, when I run it in dos window, it prints ? (question marks) and garbage characters. Could it be because of big-5 vs gb encoding? if so, how do I c...
Producing PDFs in landscape orientation with ReportLab Question: I am working on a Python script that produces a PDF report using ReportLab. I need to produce the pages in landscape orientation and I have already looked through the ReportLab manual but I can't find a way of doing this. Any ideas or suggestions? Answe...
Is it possible to call a C Function by reference from python?? Question: I am a beginner in python and I need to test a C function which is being called by reference. Here is my C File : myfile.c #include<stdio.h> int my_function(int *x) { int A; printf("enter value of A"); scan...
PyQt4-PySide - Formatting a table widget Question: In the following code, I would like to use thicker rule separator between the column 2 and 3 for example. How can I achieve this ? #! /usr/bin/env python2.7 # -*- coding: utf-8 -*- import sys from PySide import QtCore, QtGui ...
Maximum value of first column Question: I have an array like this: elements=[['1', '1', '2'], ['2', '2', '3'], ['3', '3', '4'], ['4', '4', '5'], ['5', '5', '6'], ['6', '6', '7'], ['7', '7', '8'], ['8', '8', '9'], ['9', '9', '10'], ['10', '10', '11'], ['11', '11', '12'], ['12', '12', '13'], ['13', '13', '...
Python is printing everything form module when imported into another module Question: I have a 2 files. 1. `funcattrib.py` 2. `test_import.py` **funcattrib.py** import sys def sum(a,b=5): "Adds two numbers" a = int(a) b = int(b) return a+b sum.versi...
DistributionNotFound error after upgrading pip Question: In reading about virtualenv [here](http://www.virtualenv.org/en/latest/index.html) I realized I didn't have pip 1.3+, so I ran `pip install --upgrade pip` and now when I run `pip --version` i get the following: Traceback (most recent call last): ...
openssl not decrypted files encrypted by pycrypto Question: i encrypt file in python: from Crypto.Cipher import AES from Crypto import Random key = Random.new().read(16) iv = Random.new().read(AES.block_size) encryptor = AES.new(key, AES.MODE_CBC, iv) with open(in_file, 'rb') as fin, ...
Include bash script in python compilation Question: I have a couple of bash scripts that I use in a Python program. The current solution is to browse to the file in the GUI and then run the script(s) like this (`pathToScript` is the String for the path to the script): INPUT = [pathToScript, input1, input...
Python Interpreter Behavior? Question: I am using Python 2.7. This is what happened: >>> 2+++2 4 I am not sure as to how the python interpreter interprets this expression. The only reason I can come up with is that successive "+" after the first "+" are considered as unary operators and the f...
Pipe Output to Python File Question: How do a make a python script take input that has been piped to it. Is that a `sys.argv` moment. To be clear I want to figure out how to code the python side to receive input like this: cat someFile | domeSomething.py Can this be done? Again, to clarify, I'm not...
pythoninterpreter import error Question: I have problem with importing package in python module. That's what I do: from mega.mega import Mega if __name__ == "__main__": m = Mega() and from java I run: interpreter.execfile("api.py"); But I still get error: ...
Garbage collect a class with a reference to its instance? Question: Consider this code snippet: import gc from weakref import ref def leak_class(create_ref): class Foo(object): # make cycle non-garbage collectable def __del__(self): pass ...
Networkx Dataset Creation Question: I have data for a directed graph in the form of Node1 Node2 A B A C C A D A Which means, a directed edge/link between A --> B, A --> C and so on. I want to create this data into dataset supported by Networkx for modelling i...
Data handling for matplotlib histogram with error bars Question: I've got a data set which is a list of tuples in python like this: dataSet = [(6.1248199999999997, 27), (6.4400500000000003, 4), (5.9150600000000004, 1), (5.5388400000000004, 38), (5.82559, 1), (7.6892199999999997, 2), (6.9047799999999997, ...
My first Google App Engine/Python app Question: I am trying to write my first GAE/Python application that does the following three things: 1. Displays a form where the user can enter details about themself (index.html) 2. Stores the submitted form data in the datastore 3. Retrieves all data from datastore and di...
Disable automatic printing in Python interactive session Question: I am going to be holding a Python workshop to teach some beginner level programmers at my college Python. I am looking for a way to modify the default behavior of Python interactive sessions so that expressions do not automatically print out results. F...
Python Popen: Write to stdout AND log file simultaneously Question: I am using Popen to call a shell script that is continuously writing its stdout and stderr to a log file. Is there any way to simultaneously output the log file continuously (to the screen), or alternatively, make the shell script write to both the log...
How to write a whole string to a file in Python and where does the file go? Question: I am doing an assignment on text formatting and alignment (text wrapping) and I need to write my formatted string to new file. But once I have written to the file (or think I've written) where does that file go? Does it actually creat...
How to Radix Sort using Queues? Question: How do you properly radix sort a list using queues? I'm using Python 3x. This is my attempt using queues as bins since queues are a first-in-first-out data structure. from my_queue import Queue def rsort(n): '''(list of int) -> list of int '...
Using own code in pyhook pumpmessages Question: i want to check if the file in which i am writing the keys is more than 2Kb . If it is more than 2KB then i need to make another file and stop writing in this one. I am a beginer in python please help me this. Please indicate where can i use the code for checking if file ...
Soappy error: Fault SOAP-ENV:Server: Cannot use object of type stdClass as array Question: I wanted to access with soappy a webservices of my internet provider. here is a example in php from the provider of the Soap Services: <http://kasapi.kasserver.com/dokumentation/?open=soap> but I am not getting smart, to get it...
Shell Script Error | Works in Command Line - Not in Script Question: Background: I'm using NMAP, shell script, and a python script to run a scan on a list of IPs. The python portion parses the XML output of nmap to generate two lists, a list of alive hosts and down hosts. The python then re-executes the shell script(s...
Python unzip AES-128 encrypted file Question: Is there a way to decompress an AES-128 encrypte file directly with python, since ZipFile throws a Bad Password error. If i use 7zip it works, so the password is correct, but then again 7zip needs to be installed as a dependency. What i tried: from ZipFile i...
Pass enum to ndb.Model field in python Question: I find [What's the best way to implement an 'enum' in Python?](http://stackoverflow.com/questions/36932/whats-the-best-way-to- implement-an-enum-in-python) for how to create enum in python. I have a field in my `ndb.Model` that I want to accept one of my enum values. Do ...
turn scatter data into binned data with errors bars equal to standard deviation Question: I have a bunch of data scattered x, y. If I want to bin these according to x and put error bars equal to the standard deviation on them, how would I go about doing that? The only I know of in python is to loop over the data in x ...
Python: Parse web content for lines containing a specific character and store into a file Question: I am new to python. I have this webpage containing the contents: <Response> <Value type="ABC">107544</Value> <Value type="EFG">10544</Value> <Value type="ABC">77544</Value> I would like t...
rpy2 / R issue in loess function via Python? Question: I'm trying to call the R function `loess` via Rpy2 in Python on this datafile: <http://filebin.ca/azuz9Piv0z8/test.data> It works when I use a subset of the data (the first 1000 points) but when I try to use the entire file, I get an error. My code: ...
Processing XML With Hadoop Streaming failed Question: i did bin/hadoop jar contrib/streaming/hadoop-streaming-1.0.4.jar -inputreader "StreamXmlRecordReader, begin=<metaData>,end=</metaData>" -input /user/root/xmlpytext/metaData.xml -mapper /Users/amrita/desktop/hadoop/pythonpractise/mapperxml.py -file /U...
scikit learn SVM, how to save/load support vectors? Question: using python scikit svm, after running clf.fit(X, Y), you get your support vectors. could I load these support vectors directly (passing them as paramter) when instantiate a svm.SVC object? which means I do not need to running fit() method each time to do pr...
Deploy Django project on Google App Engine Question: I have developed one example project in django1.4 & python 2.7, I want to deploy it on google app engine, but how to configure my project as per App Engine we didn't get. We have a site running on google app engine, but it is including with all html,js. How do we c...
ctypes reimplementation of rshift for c_ulong Question: i am accessing a C library via ctypes and i am stuck with the following problem: I am generating a "wrapper" (ctypes commands to access the library with ctypes) using ctypeslib. The C library contains macros which are converted to python functions in this step. (...
Simple indeterminate progress bar in Python Question: Even when I am afraid to be a bit off-topic, but I am not sure where else to ask this, sorry! I wish to build a `**simple** indeterminate progress bar` in Python there is a really valid p[rogression bar module](https://code.google.com/p/python-progressbar/) in Pyt...
re.split() with special cases Question: I am new to regular expression and have a problem with the re.split functionality. In my case the split has to care "special escapes". The text should be seperated at `;`, except there is a leading `?`. **Edit:** In that case the two parts shouldn't be splitted and the `?` has...