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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 20,299
» Latest member: matt
» Forum threads: 38,796
» Forum posts: 175,892

Full Statistics

Online Users
There are currently 132 online users.
» 3 Member(s) | 122 Guest(s)
Bing, Google, AOL, Facebook, Gribouillis, buran, snippsat

Latest Threads
Proposal for PEP
Forum: News and Discussions
Last Post: Gribouillis
9 minutes ago
» Replies: 1
» Views: 17
My regex function is not ...
Forum: General Coding Help
Last Post: perfringo
7 hours ago
» Replies: 3
» Views: 116
silent deployment Python ...
Forum: News and Discussions
Last Post: Bummibaer
7 hours ago
» Replies: 2
» Views: 82
best way to learn python
Forum: News and Discussions
Last Post: ichsanputr
11 hours ago
» Replies: 6
» Views: 3,186
data fetching for indian ...
Forum: Web Scraping & Web Development
Last Post: Pedroski55
Yesterday, 02:50 AM
» Replies: 6
» Views: 250
PyQt5 - Get a parameter f...
Forum: GUI
Last Post: deanhystad
Nov-24-2025, 02:18 PM
» Replies: 5
» Views: 139
Brazil Python Help to aut...
Forum: Jobs
Last Post: MileHigh303
Nov-21-2025, 08:30 PM
» Replies: 0
» Views: 95
My goal to be hired worki...
Forum: News and Discussions
Last Post: mamta25
Nov-21-2025, 06:15 AM
» Replies: 4
» Views: 1,528
[SOLVED] [BeautifulSoup] ...
Forum: Web Scraping & Web Development
Last Post: Winfried
Nov-20-2025, 02:10 PM
» Replies: 2
» Views: 180
How to Implement Real-Tim...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-20-2025, 06:48 AM
» Replies: 0
» Views: 84

 
  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

  pandas library tricks
Posted by: metulburr - Jun-27-2019, 01:00 PM - Forum: Web Scraping & Web Development - Replies (7)

I have obviously never used the pandas library

Based on this answ..... More

Print this item

  Changing Data Types
Posted by: BallisticSwami - Jun-27-2019, 11:59 AM - Forum: General Coding Help - Replies (2)

I am writing a program to change the given data type.
Here is my code:
[python]a = input("Type the data which you would like to convert: ")
dtype = in..... More

Print this item

  Managing variables accross a multiple module GUI
Posted by: Oolongtea - Jun-27-2019, 10:47 AM - Forum: GUI - Replies (18)

I would like to know what are the best practices to manage variables in a complex application (ie multiple windows/menus/forms etc). I am relatively n..... More

Print this item

  table from wikipedia
Posted by: flow50 - Jun-27-2019, 10:31 AM - Forum: Web Scraping & Web Development - Replies (5)

Hi,
I’m a newbie in programming and web scraping.

I got this assignment:

[quote]wikipedia web site: ..... More

Print this item

  capture logs on specific port
Posted by: anna - Jun-27-2019, 08:08 AM - Forum: General Coding Help - Replies (1)

Hi All,

I have one application, sending logs on udp 25038 port towards my server. Is there any way to capture those logs and store in DB. Which mod..... More

Print this item

  Require scroll bars horizontal and vertical throughout the window
Posted by: tejgandhi - Jun-27-2019, 06:39 AM - Forum: GUI - Replies (2)

Hello All,

When I try to create scroll bars,horizontal and vertical utilizing
grid I get them for particular row and particular column I wanted sc..... More

Print this item

  Import Python Modules
Posted by: zowhair - Jun-27-2019, 05:53 AM - Forum: General Coding Help - Replies (4)

I am working to make a pyhton web framework, I make a package and installed that, and the main directory is in
venv/lib/python3.6/site-packages/[b]m..... More

Print this item

  Removing window borders
Posted by: DT2000 - Jun-27-2019, 01:44 AM - Forum: GUI - Replies (1)

Is there a way to have a borderless window in tkinter but keep the title bar? If overrideredirect(1)' is used it removes all including the title bar. ..... More

Print this item

  Lost in choosing how to make an graphic interface
Posted by: TheGuyUnknown - Jun-27-2019, 01:06 AM - Forum: News and Discussions - Replies (3)

Hello everybody, as a novice in python coding (i've been on C++ for the past few years), i would like to create a program that can simulate a trajecto..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Proposal for PEP 9 minutes ago matt Gribouillis News and Disc...
  My regex function is not ... 7 hours ago Moltar1997 perfringo General Codin...
  silent deployment Python ... 7 hours ago Bummibaer Bummibaer News and Disc...
  best way to learn python 11 hours ago dutch ichsanputr News and Disc...
  data fetching for indian ... Yesterday, 02:50 drakhsin Pedroski55 Web Scraping ...
  PyQt5 - Get a parameter f... 11-24, 14:18 Ninja2112 deanhystad GUI
  Brazil Python Help to aut... 11-21, 20:30 MileHigh303 MileHigh303 Jobs
  My goal to be hired worki... 11-21, 06:15 GnomeSweetGnome mamta25 News and Disc...
  [SOLVED] [BeautifulSoup] ... 11-20, 14:10 Winfried Winfried Web Scraping ...
  How to Implement Real-Tim... 11-20, 06:48 ankitsharma32 ankitsharma32 Web Scraping ...
  How to put my game loop i... 11-20, 04:59 temlotresid6 SledgeNE Game Developm...
Most views
  The best Prog... 579372
  Tutorial Requ... 512371
  Web Scraping ... 442282
  Newbie with P... 386338
  New Users Int... 380289
Most reputation
buran 581
snippsat 511
Larz60+ 452
Gribouillis 362
deanhystad 328
Most replies
  New Users Int... 452
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12110
buran 8196
snippsat 7390
deanhystad 6916
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
matt Today
Divyakrishnan071 Today
ichsanputr Today
nicos18 Yesterday
Moltar1997 Yesterday

User Panel Messages

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