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,418
» Latest member: arturioworker
» Forum threads: 38,542
» Forum posts: 174,657

Full Statistics

Online Users
There are currently 478 online users.
» 0 Member(s) | 472 Guest(s)
Bing, Google, Applebot, Yandex, Baidu

Latest Threads
where should DEFAULT_CIPH...
Forum: General Coding Help
Last Post: Larz60+
10 hours ago
» Replies: 1
» Views: 135
I am sending messages usi...
Forum: General Coding Help
Last Post: Hendrikb
10 hours ago
» Replies: 0
» Views: 66
Get the string after a sp...
Forum: General Coding Help
Last Post: Gribouillis
Today, 07:19 AM
» Replies: 2
» Views: 147
function arguments
Forum: General Coding Help
Last Post: Gribouillis
Today, 06:48 AM
» Replies: 1
» Views: 120
[Beautiful Soup] Replace ...
Forum: General Coding Help
Last Post: Winfried
Today, 05:45 AM
» Replies: 1
» Views: 155
how to delete thread
Forum: Board
Last Post: DeaD_EyE
Yesterday, 07:30 PM
» Replies: 4
» Views: 280
Atari Ping Pong Game
Forum: Code sharing
Last Post: deanhystad
Yesterday, 05:04 PM
» Replies: 1
» Views: 159
not running
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 04:08 PM
» Replies: 2
» Views: 263
[split] How to continue c...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 04:02 PM
» Replies: 1
» Views: 135
Web Scraping / API
Forum: Jobs
Last Post: deepvyas
Yesterday, 01:40 PM
» Replies: 2
» Views: 470

 
  testing code
Posted by: Skaperen - Oct-05-2016, 05:56 AM - Forum: Code sharing - Replies (2)

i am testing indents and stuff:

[python]from sys import argv
def main():
    from sys import argv
    if len(argv) < 2:
        print 'no argum..... More

Print this item

  How to define a global file?
Posted by: dullboy - Oct-05-2016, 05:10 AM - Forum: General Coding Help - Replies (11)

I need to set up a file as a log file in my python program. So basically I need to create a global file. I am just wondering what is the best way to d..... More

Print this item

  Run commands from Text file
Posted by: bharath917 - Oct-05-2016, 02:53 AM - Forum: Networking - Replies (2)

Hi All,

I have few Firewall commands stored in text file.. I has around 150 Commands, how to execute those commands in python??

Regards,
Bharat..... More

Print this item

  Python Module Question
Posted by: ATXpython - Oct-05-2016, 02:23 AM - Forum: General Coding Help - Replies (9)

I've created a script that I'd like to share with some coworkers.
This script requires one module to be installed.
I was able to successfully do thi..... More

Print this item

  List Censor Thread
Posted by: palmtrees - Oct-05-2016, 01:03 AM - Forum: Homework - Replies (6)

I am making a program for my Introduction to Computer Science course where I have to type in a sentence: "Dr Mathias is completely full of shirt I wis..... More

Print this item

  distance between 2 points
Posted by: sparkz_alot - Oct-04-2016, 10:02 PM - Forum: Code sharing - Replies (11)

This is a small part of a bigger project I'm working on to Pythonize (a real word I just made up) the formulas in Jean Meeus' book "Astronomical Algor..... More

Print this item

  Some algorithms collection
Posted by: wavic - Oct-04-2016, 09:53 PM - Forum: News and Discussions - Replies (2)

Is not a tutorial.

Here is an archive which can be downloaded and one can just read the sour..... More

Print this item

  <SOLVED>os.system needs a string in quotes
Posted by: Fred Barclay - Oct-04-2016, 08:07 PM - Forum: General Coding Help - Replies (12)

G'day! I've written an extension for Caja (the default file manager in MATE) that wipes files/folders using the srm command. The source code is here..... More

Print this item

  [split] new BBCodes
Posted by: metulburr - Oct-04-2016, 06:30 PM - Forum: Board - Replies (6)

[quote='nilamo' pid='1429' dateline='1475605285']

Once you hit line 57, your program is done.  The python version never computes anything, regardle..... More

Print this item

  Programmer named Tim...
Posted by: Fred Barclay - Oct-04-2016, 04:53 PM - Forum: Board - Replies (11)

Just under my username, it says "Programmer named Tim."
What's up with that? How do I change it? :s

And more importantly, when did my name change..... More

Print this item

  a few extra tags
Posted by: metulburr - Oct-04-2016, 03:13 PM - Forum: Board - Replies (2)

I made a few extra BBCodes. It seems illogical to use the code box for error output, code output, especially when it syntax highlighted for no reason..... More

Print this item

  In the beginning...
Posted by: sparkz_alot - Oct-04-2016, 02:45 PM - Forum: Bar - Replies (12)

I thought I would start this thread after reading a comment by Lars (..... More

Print this item

  Syntax Highlighter Codebox Issues
Posted by: metulburr - Oct-04-2016, 02:16 PM - Forum: Board - Replies (38)

We are testing new code box. This python tag is syntaxhighlighter Version 4.x. which works with a number of langauges.

We converted all original co..... More

Print this item

  If your are here, you are likely a p-human
Posted by: Ofnuts - Oct-04-2016, 12:22 PM - Forum: Bar - Replies (9)

From my favorite webcomic(*)

http://www.smbc-comics.com/comic/p-humans

(*) actually, XKCD or SMBC, I can't really decide. XKCD has a bit more sc..... More

Print this item

  Error when Inserting CSV file values into a postgreSQL using psycopg2
Posted by: klllmmm - Oct-04-2016, 12:14 PM - Forum: General Coding Help - Replies (8)

I'm newbie, & I'm using python 3.5 I want to how to insert some data in a CSV file into a PostgreSQL table using psycopg2.

The error msg is;
[erro..... More

Print this item

  Connecting to MySQL
Posted by: Dean Stackhouse - Oct-04-2016, 10:31 AM - Forum: General Coding Help - Replies (4)

Hey,

Just wondering what the best way to connect and query an external MySQL database is.

I have found a few different options, some of which lo..... More

Print this item

  bigsqrt - Python vs Pike
Posted by: Skaperen - Oct-04-2016, 06:23 AM - Forum: Code sharing - Replies (9)

this is a commandline program i wrote many years ago in both Python (my first Python program) and Pike. both are given below.  the Pike code is substa..... More

Print this item

  warnings of sentdex pygame tutorials
Posted by: metulburr - Oct-04-2016, 03:23 AM - Forum: Game Tutorials - No Replies

This is not meant to be bullying against sentdex. However people use his tutorials and come back to us to get information on what they learned from hi..... More

Print this item

  Collection of programming ideas and challenges
Posted by: metulburr - Oct-04-2016, 03:20 AM - Forum: Code sharing - Replies (8)

This is not all my ideas, i more or so collected them from time to time when i cant think of anything to code. Reading through them though will jog my..... More

Print this item

  a project idea
Posted by: Skaperen - Oct-04-2016, 03:03 AM - Forum: Bar - Replies (7)

maybe a subforum to post project ideas could have a bunch of ideas that might be inspiring to others, or worse.

i am not a GUI programmer :( so when ..... More

Print this item

  pyutils module
Posted by: Skaperen - Oct-04-2016, 02:19 AM - Forum: Code sharing - Replies (15)

i'll upload/embed it here and see if i live through it.
[spoiler=My code]
[php]#!/usr/bin/env python
# -*- coding: utf-8 -*-
#--------------------..... More

Print this item

  Practice Question Excersizes
Posted by: A3G - Oct-04-2016, 01:30 AM - Forum: Homework - Replies (5)

[code]nomstudents = 0
totalgrade = 0
avegrade = 0
morestudents = input("Do you have any students? (yes/no) ").lower()
while morestudents == 'yes':..... More

Print this item

  Archiving feauture
Posted by: wavic - Oct-04-2016, 01:12 AM - Forum: Board - Replies (8)

Since issues with www.python-forum.org I was thinking yesterday for some archiving feature. I've seen this in a radio forum and is a nice feature. By ..... More

Print this item

  function returning None
Posted by: tkj80 - Oct-03-2016, 11:16 PM - Forum: General Coding Help - Replies (3)

Hi,

I'm working my way through an example in a book. However, it is return an unexpected value. Wonder if someone could help point out what/where I..... More

Print this item

  modifying tutorials
Posted by: metulburr - Oct-03-2016, 10:50 PM - Forum: Board - Replies (22)

[color=#333333][size=small]Create a sub thread for GUI, Gaming, Networking, and Web tutorials within each related category = Each forum would have its..... More

Print this item

  creating application for android with python
Posted by: shahpy - Oct-03-2016, 09:58 PM - Forum: News and Discussions - Replies (7)

hi

i was thinking about creating some application for android . i worked with java before and i,m familiar with it but sense i learned python
i do..... More

Print this item

  [Very Basic Example Only] Hello World
Posted by: Yoriz - Oct-03-2016, 09:55 PM - Forum: GUI tutorials - Replies (5)

import wx

app = wx.App(False)

frame = wx.Frame(None, -1, 'Hello World')
frame.Show()

app.MainLoop()

Print this item

  Running Class methods in a loop and updating variables.
Posted by: ujjwalrathod007 - Oct-03-2016, 08:26 PM - Forum: General Coding Help - Replies (3)

I have some code for class inside which I have methods. I want to run the code which While True loop. The problem I face is with updating the variable..... More

Print this item

  f-string, string format, and string expressions
Posted by: metulburr - Oct-03-2016, 07:47 PM - Forum: Fundamentals - No Replies

The bad way
This is called concatenation. In other languages this is considered okay. In Python it is not. Don't do this in Python. Its clunky..... More

Print this item

  Set Windows Python Path to run python in any directory
Posted by: metulburr - Oct-03-2016, 06:56 PM - Forum: Python Installation and Execution - No Replies

[quote]
UPDATE: Since Python 3.5 the python installer usually has by default itself added to the PATH environmental variable. This whole process is n..... More

Print this item

  Question about F2py...Help me plz!!!
Posted by: Yuji3131 - Oct-03-2016, 03:50 PM - Forum: General Coding Help - Replies (3)

I'm windows user.
To make sure my available Fortran compiler, I put [>>>Python -m numpy.f2py -c --help-fcompiler] into command line however there aft..... More

Print this item

  How does CMU Sphinx Java library work in Python
Posted by: j.crater - Oct-03-2016, 02:52 PM - Forum: General Coding Help - Replies (2)

Hello all,
I am wondering, how does the CMU Sphinx part of the Python Speech Recognition w..... More

Print this item

  PythonPath file
Posted by: JohnRLaw - Oct-03-2016, 02:46 PM - Forum: General Coding Help - Replies (6)

I am a beginning python programmer. My computer is running Linux Mint 17.3. I am using IDLE as the development environment. My question is simple. I k..... More

Print this item

  My import not working
Posted by: man_in_the_hill - Oct-03-2016, 11:43 AM - Forum: General Coding Help - Replies (4)

Hi Everybody

I am trying to learn python and I created my first script with a package that contains an imported module but it does not work!
Both..... More

Print this item

  for n in range(2, 10)
Posted by: diemildefreude - Oct-03-2016, 07:29 AM - Forum: General Coding Help - Replies (1)

xHey, I just started learning python (my first programming language) and I apologize if this question comes up often. I didn't find anything with the ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  where should DEFAULT_CIPH... 10 hours ago Skaperen Larz60+ General Codin...
  I am sending messages usi... 10 hours ago Hendrikb Hendrikb General Codin...
  Get the string after a sp... Today, 07:19 JanJan Gribouillis General Codin...
  function arguments Today, 06:48 Curbie Gribouillis General Codin...
  [Beautiful Soup] Replace ... Today, 05:45 Winfried Winfried General Codin...
  how to delete thread Yesterday, 19:30 Azdaghost DeaD_EyE Board
  Atari Ping Pong Game Yesterday, 17:04 Azdaghost deanhystad Code sharing
  not running Yesterday, 16:08 Azdaghost deanhystad General Codin...
  [split] How to continue c... Yesterday, 16:02 pythonnewbie62 deanhystad General Codin...
  Web Scraping / API Yesterday, 13:40 nautifi deepvyas Jobs
  Wish to write a code for ... Yesterday, 07:12 Hasan2025 Hasan2025 General Codin...
Most views
  The best Prog... 557307
  Tutorial Requ... 424233
  Web Scraping ... 422850
  Newbie with P... 350886
  Thread remain... 324817
Most reputation
buran 580
snippsat 506
Larz60+ 452
Gribouillis 362
deanhystad 325
Most replies
  New Users Int... 449
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12034
buran 8165
snippsat 7320
deanhystad 6806
metulburr 5151
Top referrers
Googlepro 22
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
arturioworker Today
wayenia Today
davidmartin Today
donjon4500 Today
dadsdsdadsad Today

User Panel Messages

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