Thread: python with c for firefox ?

  1. #1
    Registered User kryptkat's Avatar
    Join Date
    Dec 2002
    Posts
    638

    python with c for firefox ?

    i need something more than the wiki on python. a python tutorial .
    Python (programming language) - Wikipedia, the free encyclopedia
    i am thinking that there is more to python that what is on the python_syntax_and_semantics page for example file handling ? other io ? is there more to it than what is on the wiki ?
    tried python.exe ==> help() then keywords but when i do that i get "html documentation could not be found"
    for some reason python22 is in a hidden folder ? why ?

    tried to get docs from Python Programming Language – Official Website but got 404 "The requested URL /www.python.org was not found on this server."

    compiling python. Python devpak in devpaks repository the dev pac for devcpp link is not working . downloaded older version.

    installed package. looking for folder "python4.2". ok where is it ? i can not find it.
    in devcpp/packages there is a python.entry as far as i can tell no upgrade.

    for some reason firefox had a lot of .py files. i realize it is an interpreted language like basic but i though the package would install it to devcpp ide. and if a .py file was executed from the ide it would load and run the interpreter and interpret the file <run> . trying to figure out what the python files are doing in firefox ? any info ?

    just found pytho24.dll in the dll folder.

    <facepaw> omg i am not a script kitty. can not get fricken scripts to work.

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by kryptkat
    i am thinking that there is more to python that what is on the python_syntax_and_semantics page for example file handling ? other io ? is there more to it than what is on the wiki ?
    tried python.exe ==> help() then keywords but when i do that i get "html documentation could not be found"
    (...)

    tried to get docs from Python Programming Language &ndash; Official Website but got 404 "The requested URL /www.python.org was not found on this server."
    I don't see how you managed to get that broken link on the Python website. docs.python.org works for me.

    What are you trying to do, anyway? Compile Python? Run Python code from C? Write a C extension for Python?
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User kryptkat's Avatar
    Join Date
    Dec 2002
    Posts
    638
    i downloaded firefox5.0 source code. looking through it i keep running in to .py files. trying to figure out what the .py file are doing. have had python2.2 on this computer for a long time. python.exe then play with that and that is the usual of what i have done with python. saw the devpac of python for devcpp ide. figured i would upgrade to python5.0 but that link was broken so i downloaded 4.2. i think i installed the devpac to work with the devcpp ide. so i could compile firefox5.0 and have the option to do stuff with python <and learn>. figured it would be like inline asm. ie __python( statement ) ; inside the c prog. mostly trying to figure out what the python files are doing with firefox5.0 . to get it to compile <firefox5.0> . since i could not get the docs because of the broken link thought i would ask. today the link did work the one you posted and downloaded the docs.

    when i tried to unzip python3.2.1docspdfletter.zip i get all the pdf files saying "unsupported compression method for *.pdf" <hissss> i will try to get one of the other doc files.

  4. #4
    Registered User kryptkat's Avatar
    Join Date
    Dec 2002
    Posts
    638
    updated or upgraded the zipper program.

    been reading through the python faq and docs. it said that python is based on modula3.

    re compiling python. there is py2exe.exe that will create a standalone executable.

    the part i found about using python with c said it has to be linked with pythonnn.dll which is what i think firefox is doing. still having a difficult time figuring out what the .py files are doing. for example file called jarmaker looks a lot like vector.

    are the .py file just needed to compile firefox or are they a part of firefox as a running program ?

  5. #5
    Registered User kryptkat's Avatar
    Join Date
    Dec 2002
    Posts
    638
    for additional info. trying to compile with devcpp and no sp2.

    http://developer.mozilla.org/en/docs..._Documentation

    says it requires vc++ and sp2.

    and not much about the python that is there.

    one week is long enough for this project. project shelved.
    .

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Python --> C
    By Macha in forum C Programming
    Replies: 71
    Last Post: 05-28-2010, 06:18 PM
  2. python c api
    By ralu. in forum C Programming
    Replies: 0
    Last Post: 03-01-2009, 01:19 PM
  3. Python
    By mart_man00 in forum Tech Board
    Replies: 7
    Last Post: 10-06-2003, 07:24 AM
  4. anyone here knows Python ?
    By black in forum A Brief History of Cprogramming.com
    Replies: 17
    Last Post: 09-11-2002, 08:49 AM
  5. Python
    By Xterria in forum A Brief History of Cprogramming.com
    Replies: 10
    Last Post: 05-05-2002, 04:08 PM