Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
comp . lang . python
This is a Usenet group - learn more
Find or start a Google Group about python.
Group info
Language: English
Group categories:
Computers > Programming
More group info »
Discussions
View:  Topic list, Topic summary Topics 1 - 10 of 129205  Older »
Description: The Python computer language.
 

suppress newlines in my script 
  I am importing lines from an external csv file and when I iterate through the lines and increment, new lines are introduced. How would I cut out the newlines. I have attempted several pythonic strip() and rstrip() how can i implent this? import sys, os f=open('europe_csv') lines=f.readlines()... more »
By sloan...@gmail.com  - 4:49pm - 1 new of 1 message    

Non-identifiers in dictionary keys for **expression syntax 
  This is a question regarding the documentation around dictionary unpacking. The documentation for the call syntax ([link]) says: "If the syntax **expression appears in the function call, expression must evaluate to a mapping, the contents of which are treated as... more »
By Matthew Gilson  - 2:52pm - 7 new of 7 messages    

Pulp problem _dummy 
  Hello! I'm using pulp for linear optimization but when I run my code I get the following output: Central Optimization: MAXIMIZE 0*__dummy + 0 SUBJECT TO _C1: 2 T0 >= 0 _C2: 2 T0 <= 0 _C3: 0.0686928673545 Frigorifico0 >= 0 _C4: 0.0686928673545 Frigorifico0 <= 0 _C5: 2 Termo0 >= 0... more »
By Ana Dionísio  - 12:28pm - 1 new of 1 message    

Accessing Json data (I think I am nearly there) complete beginner 
  Hey guys I think its worth stating that I have been trying to code for 1 week. I am trying to access some Json data. My innitial code was the below: "import mechanize import urllib import re def getData(): post_url = "[link]"... more »
By Andrew Edwards-Adams  - 12:09pm - 9 new of 9 messages    

Error with python 3.3.2 and https 
  I am trying to write a program that requires me hitting a https web link. However, I can't seem to get it to work. The program works fine when dealing with http sites, however, when I try it with a https site I get socket.gaierror: [Errno 11001] getaddrinfo failed It seems like it has something to do with the ssl not working, however, I do have the ssl.py in the python library and I have no problem importing it.... more »
By asianava...@gmail.com  - 11:48am - 5 new of 5 messages    

how to get the socket module compiled with SSL support 
  I am trying to make an HTTPS connection and read that HTTPS support is only available if the socket module was compiled with SSL support. [link] Can someone elaborate on this? Where can I get the socket module for HTTPS, or how do I build one if I have to?... more »
By Kihup Boo  - 9:58am - 3 new of 3 messages    

Debugging parallel nose tests? 
  I've got a suite of about 150 tests written using unittest. It takes 5-10 minutes to run, so I'd really like to use nose to run things in parallel. The problem is, when I do that, I get lots of test failures. Obviously, we've got some kind of inter-test dependency that I haven't been able to locate.... more »
By Roy Smith  - 9:09am - 2 new of 2 messages    

Strange behaviour of Python when importing something from a symlinked script 
  Hello. Today in relation with a library I was working on I was frustrated by this bug for (I think) over an hour: it has to do with a Python script called via a symlink. To illustrate it I have included a minimal test case tarball at the end of this post in base64. (I used uuencode -m.) Just run sh test.sh at root of the extracted tree to see what's happening.... more »
By jamadagni  - 8:31am - 1 new of 1 message    

help in obtaining binary equivalent of a decimal number in python 
  ... You're asking for bitwise negation. Now that you know the keyword(s) to look for, you should be able to figure out the rest with a few quick docs and/or web searches. ChrisA
By Chris Angelico  - 7:37am - 2 new of 2 messages    

serialize a class to XML and back 
  Hi list, how can I serialize a python class to XML? Plus a way to get the class back from the XML? My aim is to store instances of this class in a database. bg, Johannes -- GLOBE Development GmbH Königsberger Strasse 260 48157 MünsterGLOBE Development GmbH Königsberger Strasse 260... more »
By Schneider  - 6:37am - 2 new of 2 messages    

1 - 10 of 129205   « Newer | Older »

XML