15,181 Topics

Member Avatar for
Member Avatar for ttback

For the past 2 days, no matter which Sharepoint web service I access via Python's suds lib, the remote service always returns 403 Forbidden. I'm using Python Suds 0.4 and Python NTLM 1.0. Suds 0.4 has built-in support for accessing Python NTLM. I followed the documentation from Suds's website on …

0
63
Member Avatar for ttback

For the past 2 days, no matter which Sharepoint web service I access via Python's suds lib, the remote service always returns 403 Forbidden. I'm using Python Suds 0.4 and Python NTLM 1.0. Suds 0.4 has built-in support for accessing Python NTLM. I followed the documentation from Suds's website on …

0
120
Member Avatar for The_Tiger
Member Avatar for ttback

For the past 2 days, no matter which Sharepoint web service I access via Python's suds lib, the remote service always returns 403 Forbidden. I'm using Python Suds 0.4 and Python NTLM 1.0. Suds 0.4 has built-in support for accessing Python NTLM. I followed the documentation from Suds's website on …

0
101
Member Avatar for layr

Hi, i need a simple python code which would trigger a command if there is an internet connection; if there isn't, sleep for some time and check again until there is. I found few examples, but they're all rather difficult to grasp and being new to python, I can't get …

Member Avatar for TrustyTony
0
3K
Member Avatar for NewbieXcellence

Hello everybody! I'm trying to produce a timestamp (system time) in windows (Python 2.7) with resolution equal to or better than microseconds. Calling time.time() repeatedly in a loop it appears it only updates in approximately 0.01 second increments. Using datetime.datetime.today() seems to show similar results. Anybody have a possible way …

Member Avatar for NewbieXcellence
0
489
Member Avatar for HaNcOoK

Hi everybody, Im pretty new (or u can say that completely new) to python and i try to learn from the very basic. I try to create grid data structure from array. Here i have some code, would you mind to look at it and give me an instruction: [CODE]import …

Member Avatar for TrustyTony
0
147
Member Avatar for oberlin1988

This is the program I need to write: At each step the user is asked if she wants another number. If she does, the program adds a random number between 1 and 10 onto her total. The game ends when she quits, or when her total is 18 or higher. …

Member Avatar for JoshuaBurleson
0
262
Member Avatar for TrustyTony

I participated discussion about complex numbers and did some experiments in Python. I do not understand this behaviour (same behavious in 2.7.2 and 3.2.2): [CODE] >>> -(0+1j) (-0-1j) >>> -(0+1j)==-1j True >>> -(0+1j)+0 -1j >>> -(0+1j)-0 (-0-1j) >>>[/CODE] EDIT: Further investigation shows that there is -0.0 in Python, is this …

Member Avatar for Gribouillis
0
221
Member Avatar for jefroxnergal

I'm currently practicing on python language and I try to make a sample program that will Add, Show, Delete and Update students info.. But I have this error "global name 'b' is not defined" on the 'Show()', 'Delete()' & 'Update()'.. please help me me guys..Thank you.. [CODE]x = 1 y …

Member Avatar for woooee
0
475
Member Avatar for JoshuaBurleson

I'm having an issue getting python 3.2 to recognize files in ubuntu, it's the first time I've tried to code while running it. A specific example of the issue is when setting an .ico to be a bitmap logo for a Frame in tkinter it's claiming that there it's not …

Member Avatar for woooee
0
667
Member Avatar for Creatinas

Hello everyone, i have a question for You. i have a script with grabs URL and etc. here is a [B]example[/B] of it: Sorry for very messy code... I'm just testing [CODE]while (a < 10) : if a == 2 : f = urllib.urlopen("****" % params1).read() linkai = re.compile('</a> - …

Member Avatar for Creatinas
0
242
Member Avatar for arindam31

Hi guys, My intention is to find all possible words starting with any letter of my choice example 'p' from a paragraph.I want all the possible results . How can i do that . Take the example : 'This rule says that any match that begins earlier in the string …

Member Avatar for arindam31
0
242
Member Avatar for RoqueyB

Kay, first i am going to start this off by saying this is for my intro to prog. class (meaning im a beginner) so sorry if this is a stupid question or i'm missing something stupid. HOWEVER I am supposed to make a program to report the income for football …

Member Avatar for RoqueyB
0
130
Member Avatar for Tyler212

I am new to python, and I have been having some difficulty as of late. The current prompt that I am working on entails: Write a program that gets the names of a player's top-five favorite games. Your program should store the names in a list. Then, the program should …

Member Avatar for JoshuaBurleson
-1
209
Member Avatar for kuchi

Hi, <I don't know where to post this, but this question is related to Python> We have a returned page with two tables, each table one dictionary returned from database with bunch of values (may or may not) and we are displaying these tables side by side. Our requirement needs …

Member Avatar for kuchi
0
176
Member Avatar for SpiritualMadMan

After a month of study on wxPython the vender finally admitted they were actually using pyQT... There are enough differences to make pyQT a *real* pain. So, I was wondering if there were *any* people on this Forum who were fairly well versed on pyQT?

Member Avatar for TrustyTony
0
101
Member Avatar for Danielle87

Below is a part of my program which allows me to search for a word in a given text. However I would like to search for multiple words, or even be able to enter a sentence instead of just a word. Thank you for any help you can provide. [ICODE]def …

Member Avatar for JoshuaBurleson
0
93
Member Avatar for WolfShield

I have a wxPython project that I want to add a syntax highlighting feature to the RichTextCtrl. I have the function and the binding, but it doesn't format the words when I type. If I bind the function to a menu item it works just fine. I am using "this" …

0
86
Member Avatar for dnyansagar

Hi all, I have a data which looks like this, Input: man1 car man1 wallet man1 shirt man1 shirt man2 truck man2 house man2 jacket man2 jacket man2 jacjet man2 computer I want to collect the data, but while collecting I want to count them as well So the the …

Member Avatar for TrustyTony
0
397
Member Avatar for MarcusMaximus

Hi, I'm starting to code in python and would like some advice. I'm fairly competent in coding and have been doing alot of VB and shell scripting lately but as python is cross platform I've decided to switch. How do I get python to run programs I have saved in …

Member Avatar for TrustyTony
0
205
Member Avatar for JoshuaBurleson

Hello mates, I was wondering if in that vast amount of knowledge floating around here if any of you knew how I could save an image using Python 3.x. I know that PIL is a great, and easy option for Python 2, but I assume there must be some way …

Member Avatar for JoshuaBurleson
0
582
Member Avatar for Tyler212

hi, I am currently taking a pyton programming class and having some extreme difficulties. I am in quite the pickle with these 3 prompts. I do not know where to start for any of these prompts; if anyone has any code or solutions to any of these three promps I …

Member Avatar for TrustyTony
-1
441
Member Avatar for preet4fun

"""2) When testing software, it can be useful to count the number of times that a function is called. Without using any lists or dictionaries, define a higher-order function count_calls that returns two functions: - a counted version of the original function that counts the number of times it has …

Member Avatar for TrustyTony
0
220
Member Avatar for paren8esis

Hello everybody. I am trying to learn how to create GUI for my python programs using Glade. Now I'm facing the following problem : I have written something like the code below, and when I run it everything works fine except secondWindow doesn't show up. What am I doing wrong? …

Member Avatar for woooee
0
574
Member Avatar for Gustavo_B

Hi, I'm writing a small application that gets some data from the user and launches a second application related to what process the user is working on. So, sometimes the user needs to choose from different versions of the same aplication. I decided that after the Ok button is pressed …

Member Avatar for JoshuaBurleson
0
1K
Member Avatar for Publius

Hello, I'm writing a program using wxPython. I've got this code: [CODE]class captchaFrame(wx.Dialog): def __init__(self, parent, title, id): wx.Dialog.__init__(self, parent, id, title, size = (390,350)) self.panel = wx.Panel(self) self.vbox1 = wx.Sizer(wx.VERTICAL) self.hbox1 = wx.Sizer(wx.HORIZONTAL) self.hbox2 = wx.Sizer(wx.HORIZONTAL) self.hbox3 = wx.Sizer(wx.HORIZONTAL) self.hbox4 = wx.Sizer(wx.HORIZONTAL) self.yt_username = wx.StaticText(self.panel, label = 'YouTube Username/Email:') …

Member Avatar for woooee
0
490
Member Avatar for Cyrano

On Android phone, I used setEntity() to put the FileEntity to the POST request. [CODE]HttpPost post = new HttpPost(uri); FileEntity reqEntity = new FileEntity(f, "application/x-gzip"); reqEntity.setContentType("binary/octet-stream"); reqEntity.setChunked(true); post.addHeader("X-AethersNotebook-Custom", configuration.getCustomHeader()); post.setEntity(reqEntity);[/CODE] When using bottle, I tried this but it is not working [CODE]f = request.body gzipper = gzip.GzipFile( fileobj= f ) …

0
64
Member Avatar for ericoscarj

Write a function count_digits (s) that counts the number of digits in the string s and returns answer (an integer). The function must internally use a for-loop. Example ; [CODE]>>> count_digits("1q2w3e4r5t") 5 >>> count_digits("42") 2 >>> count_digits("tea")[/CODE] , Id appreciate any help:)

Member Avatar for Enalicho
0
108
Member Avatar for ande-s

Hi Guys, I am currently looking for a Python solution to a project I am working on. I am VERY new to Python so please go easy on me. Currently, I have a server setup, only running Windows 7, and on that server, Thunderbird is constantly running checking for new …

Member Avatar for TrustyTony
0
259

The End.