Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Is there any way to check if a function is user-defined?
Post: RE: Is there any way to check if a function is use...

If by user-defined functions you mean functions that you've written yourself in your current file, like: def myfunc(): passThen having a print statement could be of some help: import types print [f....
Crimson King General Coding Help 11 10,423 Oct-05-2016, 04:58 PM
    Thread: Python Module Question
Post: RE: Python Module Question

Do they have virtualenv installed on their machines? They could create a virtual environment and use pip to install your module (and any other requirements).
Crimson King General Coding Help 9 9,448 Oct-05-2016, 03:12 PM
    Thread: Syntax Highlighter Codebox Issues
Post: RE: enable default code/php

(Oct-05-2016, 12:49 PM)metulburr Wrote: Here is another issue If you look at this post http://python-forum.io/Thread-Tkinter-se...34#pid1534 func_to_run is actually spaced out with underscores. But...
Crimson King Board 38 28,410 Oct-05-2016, 01:28 PM
    Thread: How to define a global file?
Post: RE: How to define a global file?

Hey dullboy, The easiest way would be the one you mentioned, using the trace module from the command line: python -m trace --trackcalls your-python-program.pyAnother way would be to create and set y...
Crimson King General Coding Help 11 16,225 Oct-05-2016, 01:23 PM
    Thread: Subtracting gives a keyerror:
Post: RE: Subtracting gives a keyerror:

One thing, Try not to use language keywords, like list, for your own data structures. That's going to mess things up for you in the future. I'll try to have a deeper look at the code in a few minute...
Crimson King General Coding Help 7 16,645 Oct-03-2016, 09:00 AM
    Thread: number of users
Post: RE: number of users

Yeah, i'd assume that guests count towards that 94.
Crimson King Board 13 10,372 Sep-30-2016, 09:33 AM
    Thread: How to send output to stout?
Post: RE: How to send output to stout?

Hey natv, From what I can read in the docs, you should specify a logfile after spawning your leviathan6 program. Something like p.logchild = open('/tmp/leviathan6-log', 'w') #you could name it what...
Crimson King General Coding Help 7 22,554 Sep-28-2016, 01:01 PM
    Thread: ImportError: No module named 'lib2to3'
Post: RE: ImportError: No module named 'lib2to3'

Didn't know about this program, but according to PyPI 2to3 has been part of the standard library since 2.6 Try typing 2to3 --help in your terminal and see if you get any output from it. You should ha...
Crimson King General Coding Help 7 29,645 Sep-27-2016, 01:45 PM
    Thread: Multiple plots with matplotlib - looping
Post: RE: Multiple plots with matplotlib - looping

JC, To show the plots at the same time on different graphs you'd have to make the plt.show() call outside the for loop: for i in plot_list:    plt.figure()    plt.plot(i) plt.showAnd if you want...
Crimson King General Coding Help 7 80,515 Sep-21-2016, 09:11 AM
    Thread: Multiple plots with matplotlib - looping
Post: RE: Multiple plots with matplotlib - looping

Hey JC, From what I can see you're missing your () on your plt.show() method call. It should be plt.show() instead of plt.show
Crimson King General Coding Help 7 80,515 Sep-20-2016, 02:55 PM
    Thread: Portal
Post: RE: Portal

(Sep-15-2016, 03:07 PM)metulburr Wrote: After researching this, it looks to be a known issue of this plugin. Hey metul, could you tell me the name of that plugin?
Crimson King Board 7 8,498 Sep-16-2016, 09:13 AM

User Panel Messages

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