Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 19,984
» Latest member: Robertbop
» Forum threads: 38,734
» Forum posts: 175,572

Full Statistics

Online Users
There are currently 52 online users.
» 1 Member(s) | 47 Guest(s)
Bing, Google, AOL, Mojeek, snippsat

Latest Threads
create ocr to detect lice...
Forum: General Coding Help
Last Post: Pedroski55
4 hours ago
» Replies: 1
» Views: 42
Parse Markdown / get the ...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 10:37 PM
» Replies: 5
» Views: 168
Error: cannot mix str wit...
Forum: General Coding Help
Last Post: Joliekeva
Yesterday, 03:05 AM
» Replies: 4
» Views: 2,034
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
Sep-30-2025, 07:43 AM
» Replies: 2
» Views: 448
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Sep-30-2025, 12:21 AM
» Replies: 2
» Views: 1,081
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
Sep-29-2025, 05:45 PM
» Replies: 6
» Views: 1,147
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Sep-29-2025, 12:59 PM
» Replies: 8
» Views: 825
Select Python comment (#)...
Forum: General Coding Help
Last Post: tester_V
Sep-28-2025, 06:39 PM
» Replies: 7
» Views: 3,107
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Sep-27-2025, 06:49 PM
» Replies: 4
» Views: 2,548
My First App
Forum: Code Review
Last Post: carlbidwell
Sep-27-2025, 10:53 AM
» Replies: 8
» Views: 9,138

 
  Pygobject Menu And Notebook?
Posted by: loss - Jun-29-2019, 12:49 PM - Forum: GUI - No Replies

I added Notebook to my application. I used it with Grid. Now I want to add Menu. Gtk.Box () does this. But this time it gives an error and the empty w..... More

Print this item

  What is $DISPLAY supposed to be?
Posted by: amethyst - Jun-29-2019, 12:37 AM - Forum: GUI - Replies (2)

Hi,
I have tkinter installed on OSX10.4 PowerPC, and it imports ok to Python3.3.
It needs the $DISPLAY environment variable set to work, otherwise ..... More

Print this item

  Please Help with My First Python Attempt
Posted by: aupilot00 - Jun-28-2019, 11:46 PM - Forum: Jobs - Replies (7)

Hi there! I am super new to Python, and by super new I mean I downloaded WinPython and installed Pulp this afternoon.

I have a relatively simple (..... More


Attached Files

.csv   scheduledata.csv (Size: 21.39 KB / Downloads: 4)
Print this item

  Shortest paths to win snake and ladder
Posted by: sandaab - Jun-28-2019, 10:17 PM - Forum: General Coding Help - Replies (5)

Can anyone please help me with python code that remembers all possible paths that a player can take in a snake and ladder game. At last, print all the..... More

Print this item

  regex for addresses, dates, and times
Posted by: metulburr - Jun-28-2019, 09:54 PM - Forum: News and Discussions - Replies (2)

I am trying to come up with a way to get a hit for any facebook post that contains key words relating to a yard sale and extract the address, date, an..... More

Print this item

  How to save latest time stamp in a file?
Posted by: redwood - Jun-28-2019, 09:47 PM - Forum: General Coding Help - Replies (12)

Hello Members,

I am working on an automation wherein I need to monitor a location on cloud and if there is a new file my Python program is suppose ..... More

Print this item

  method float.as_integer_ratio() always ...
Posted by: Skaperen - Jun-28-2019, 08:40 PM - Forum: News and Discussions - Replies (23)

method float.as_integer_ratio() always gives a power of two for the denominator of the ratio. it does not implement the algorithm to find the lowest ..... More

Print this item

  High RAM machines or cloud services
Posted by: trader144 - Jun-28-2019, 08:13 PM - Forum: Data Science - Replies (2)

Looked for an answer on the forum but couldn't find one.

I use python pandas and xlswriter extensively and I like to load large dataframes into mem..... More

Print this item

  floating point addition
Posted by: Skaperen - Jun-28-2019, 07:24 PM - Forum: News and Discussions - Replies (4)

given a floating point value, what is the smallest floating point value that when arithmetically added to it, does increase that given value (e.g. a s..... More

Print this item

  Django: How to automatically substitute a variable in the admin page at Django 1.11?
Posted by: m0ntecr1st0 - Jun-28-2019, 04:13 PM - Forum: Web Scraping & Web Development - Replies (3)

There is a City model. It has a name field. I need to somehow substitute this variable in the admin page in the text field at another models.

..... More

Print this item

  TypeError: can't multiply sequence by non-int of type 'str'
Posted by: rregorr - Jun-28-2019, 04:13 PM - Forum: General Coding Help - Replies (2)

I am using the follow code to calculate the hypotenuse and legs of a rectangle triangle. If any one of the 3 given values(a, b ou c) is "x", it would ..... More

Print this item

  string formatting
Posted by: Uchikago - Jun-28-2019, 03:17 PM - Forum: General Coding Help - Replies (1)

Hi, i want to ask that when using string formatting:

>>> b={1:'a','1':'c'}
>>> print('%(1)s abcd' % b)
c abcd
How can we refer to..... More

Print this item

  Problem with regexs and arrays
Posted by: JoJolM - Jun-28-2019, 01:29 PM - Forum: General Coding Help - Replies (1)

I was wondering if someone could help me understand this line of code
[python]self.lang_config[lang][x][str(i)]['re'] = (
r..... More

Print this item

  Unable to install packages
Posted by: vtechzbi - Jun-28-2019, 12:49 PM - Forum: News and Discussions - Replies (3)

Hi, I am pretty new to Python.

Installed default Python from Python.org since I cannot install other IDE in my office laptop. Installation is succe..... More

Print this item

  converting array to and from string in python 3.7.2
Posted by: srm - Jun-28-2019, 11:01 AM - Forum: General Coding Help - Replies (5)

I am not able to convert array to string using fromstring() method
my code is:
[python]from array import *
my_char_array = array('c', ['g','e','e',..... More

Print this item

  Line Index
Posted by: smabubakkar - Jun-28-2019, 09:46 AM - Forum: GUI - Replies (1)

How to get index of Line number where the cusror is present? I am using bind to call a function, i need to pass the function the index of the line

Print this item

  getting options from a html form
Posted by: pgoosen - Jun-28-2019, 06:50 AM - Forum: Web Scraping & Web Development - Replies (5)

Hi, I have the following code in short, I want to use the <==> from op in my if statement.

[html]
<SELECT NAME=op>
<OPTION VALUE="<">Lesser then<..... More

Print this item

  API Call Gets 404 Error
Posted by: jimbone30 - Jun-28-2019, 04:06 AM - Forum: General Coding Help - No Replies

Trying to leverage an API call to build out a new workflow.
Trying to leverage ..... More

Print this item

  string slicing
Posted by: Uchikago - Jun-28-2019, 03:01 AM - Forum: General Coding Help - Replies (2)

Hi, i just want to ask what is the default begining point and the ending point of a slice with negative step like this

[python]X='123456789'
print..... More

Print this item

  Syntax Error EOL while scanning string literal
Posted by: intjuma - Jun-28-2019, 01:56 AM - Forum: General Coding Help - No Replies

I am having an issue running my instapy from Github. I was running ok earlier and now it giving me all sorts of errors from Line 1 to the bottom. I ca..... More

Print this item

  Need help executing a program
Posted by: 1234kevind - Jun-28-2019, 01:32 AM - Forum: General Coding Help - Replies (2)

Hello,

I'm new to python and would love to get some help to run some python executable. I got some instructions from another forum on how to downlo..... More

Print this item

  Need help with a homework problem on logical operators
Posted by: voodoo - Jun-27-2019, 11:27 PM - Forum: Homework - Replies (3)

I'm having a hard time getting this formula right.

My attempts are under the line of code that says "#Write your code here!" Any suggestions?

..... More

Print this item

  why does my python request cannot work with proxy and cannot get captured by fiddler
Posted by: szhangpy - Jun-27-2019, 10:48 PM - Forum: General Coding Help - No Replies

why does my python request cannot work with proxy and cannot get captured by fiddler?
[python]import urllib.request

proxy= 'https://94.131.116.141..... More

Print this item

  Preprocess script
Posted by: Saszalez - Jun-27-2019, 10:22 PM - Forum: General Coding Help - Replies (2)

Hi all.

I'm using Python to process climate data and use it in a weather model. To do this, there was a script in Python2, which I modified to adap..... More

Print this item

  Unicode error
Posted by: deedeed - Jun-27-2019, 09:08 PM - Forum: General Coding Help - Replies (5)

I was looking for a python script that will convert hst fils to csv and found it at
https://github.com/nigelsim/mt4reader

Just added file names to..... More

Print this item

  [nltk] Relations Extractor
Posted by: constantin01 - Jun-27-2019, 07:35 PM - Forum: Data Science - Replies (3)

Hello

I use nltk.sem.relextract to extract relations in text. I have a problem.

What I do:

1. Tools:

[python]
import nltk
import re
fr..... More

Print this item

  Could anyone help me get the jaccard distance between my dataframes please? :)
Posted by: a_real_phoenix - Jun-27-2019, 05:58 PM - Forum: Data Science - No Replies

Hi there, I'm doing a piece of homework and I'm almost done, but the last part has me pretty stumped. I have four files to work with, and I have to ge..... More

Print this item

  Importing -
Posted by: sumncguy - Jun-27-2019, 05:52 PM - Forum: General Coding Help - Replies (2)

Im not sure that I will be able to get this question answered. I am trying to pick apart a home group module they are using at work and I have run int..... More

Print this item

  python cache for small integer
Posted by: Uchikago - Jun-27-2019, 04:30 PM - Forum: General Coding Help - Replies (1)

I know there is a cache to hold for small integers [-5,256] but when i try to get reference count for a big number like:
[python]>>> import sys
>>>..... More

Print this item

  Collecting Output from Pexpect
Posted by: gw1500se - Jun-27-2019, 04:20 PM - Forum: General Coding Help - Replies (3)

I'm using pexpect to provide login information for a long running command. That part is working. However, I then want to display the output from that ..... More

Print this item

  Filling an Excel file
Posted by: starter_student - Jun-27-2019, 02:50 PM - Forum: General Coding Help - Replies (3)

I have an Excel file ... name, description, scope (column scope is fast empty)
and I want to assign a "code" (0, 1, 2 and 3) in each row of the scope..... More

Print this item

  Escape sequences display in python
Posted by: Uchikago - Jun-27-2019, 02:49 PM - Forum: General Coding Help - Replies (1)

Can you guys explain why both \n and \b are escape sequences but why \n displays as '\n' but \b displays as '\x08'
[python]>>> '\n'
'\n'
>>> '\b'
'\x0..... More

Print this item

  Correlation of Incidents using time difference
Posted by: Rajhesh - Jun-27-2019, 02:36 PM - Forum: General Coding Help - Replies (1)

Hi All,

I'm a newbee in Python. Mostly I need to handle files. Lets say, I have a data dump which has records of Incidents for many nodes. A si..... More

Print this item

  help with simple LOGIN code
Posted by: pedrosa06 - Jun-27-2019, 01:45 PM - Forum: General Coding Help - Replies (3)

[b][i][/b][/i]


Hello, the code is the following:
[python]
# -*- coding: latin-1 -*-

def login():
user_incorreto = False..... More

Print this item

  Python start from a specific string line and write?
Posted by: searching1 - Jun-27-2019, 01:04 PM - Forum: General Coding Help - Replies (1)

I want to match a specific string and once match start writing the next line after after the matched string.

from output save in x variable I want ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  create ocr to detect lice... 4 hours ago bimosora Pedroski55 General Codin...
  Parse Markdown / get the ... Yesterday, 22:37 SpongeB0B Pedroski55 General Codin...
  Error: cannot mix str wit... Yesterday, 03:05 ngregistrations Joliekeva General Codin...
  Integer Factorization Too... 09-30, 07:43 fosuwxb buran Code sharing
  My goal to be hired worki... 09-30, 00:21 GnomeSweetGnome GnomeSweetGnome News and Disc...
  Unable to resolve FileNot... 09-29, 17:45 llarkin6 noisefloor General Codin...
  Comparing 2 100GB Drives/... 09-29, 12:59 tester_V snippsat General Codin...
  Select Python comment (#)... 09-28, 18:39 SpongeB0B tester_V General Codin...
  what does % stand for in ... 09-27, 18:49 arbiel Gribouillis General Codin...
  My First App 09-27, 10:53 BCopeland64 carlbidwell Code Review
  [Tkinter] how to export a... 09-26, 17:13 RonR noisefloor GUI
Most views
  The best Prog... 577456
  Tutorial Requ... 501165
  Web Scraping ... 441081
  Newbie with P... 385156
  New Users Int... 369778
Most reputation
buran 581
snippsat 508
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 451
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12092
buran 8178
snippsat 7371
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Robertbop Today
bimosora Today
kyleconor797 Yesterday
miriamwilliam Yesterday
Davidkiplimo Yesterday

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020