Re: Web framework for static pages

2019-08-13 Thread Joel Goldstick
er makers didn't like it. HTML5 seemed to be a big step forward. I used a program called Citydesk a long time ago that I think could do what the op might like. But its long gone. I think django could be used to make static pages quite easily. Its not hard to learn, and in the event your

Re: Web framework for static pages

2019-08-13 Thread Joel Goldstick
its own set of features and applications I know well, if a > customer wants a dynamic website with a lot of logic (dynamic pages). > > -Morten > > Blogging at http://blogologue.com > Tweeting at https://twitter.com/blogologue > On Instagram https://instagram.com/morphexx >

Re: How should we use global variables correctly?

2019-08-23 Thread Joel Goldstick
here is > only one function can change its value? > > Cameron Simpson 于2019年8月23日周五 下午3:15写道: > The problem with deciding that only one function can change the value, is that someone else can change the other functions. So, if you are working alone, it won't be a problem, but once

Re: Hi how do I import files inside a txt file?

2019-09-02 Thread Joel Goldstick
compiles it in order. Since you don't know what you want to import until after you run your program, you can't import those modules. You may be able to run a program to read the module list, then have it output to a new file the code you eventually want to run based on the modules you discovered. That sounds cute in a way, but probably not in a good way. You could also surround import statements with try/except code that will import what it can, and alert you when it can't Can you give us the bigger picture of what you want to accomplish? This might lead to a better solution than the one you are thinking of now -- Joel Goldstick http://joelgoldstick.com/blog http://cc-baseballstats.info/stats/birthdays -- https://mail.python.org/mailman/listinfo/python-list

Re: Hi how do I import files inside a txt file?

2019-09-02 Thread Joel Goldstick
On Mon, Sep 2, 2019 at 9:21 AM Spencer Du wrote: > > On Monday, 2 September 2019 15:03:52 UTC+2, Joel Goldstick wrote: > > On Mon, Sep 2, 2019 at 8:46 AM Spencer Du wrote: > > > > > > On Monday, 2 September 2019 13:36:06 UTC+2, Pankaj Jangid wro

Re: TypeError: loadtxt() got an unexpected keyword argument 'max_rows'

2019-09-03 Thread Joel Goldstick
copy and pasted traceback. That said I found this:.. versionadded:: 1.14.0 max_rows : int, optional Check your version of loadtxt()? > -- > https://mail.python.org/mailman/listinfo/python-list -- Joel Goldstick http://joelgoldstick.com/blog http://cc-baseballstats.info/stats/birthdays -- https://mail.python.org/mailman/listinfo/python-list

Re: Help needed urgently for running some code!!!!

2019-09-03 Thread Joel Goldstick
od idea. However, you can just import all of the modules you might expect to need, and ignore if they aren't present with a suitable try/except block. Try explaining the bigger picture of what you are trying to do, and maybe you can gain some incite into a better way of proceeding. I'm afraid it looks like you have been cutting and pasting without understanding what your code's design is all about. I could be totally wrong. good luck -- Joel Goldstick http://joelgoldstick.com/blog http://cc-baseballstats.info/stats/birthdays -- https://mail.python.org/mailman/listinfo/python-list

Re: How to remove a string from a txt file?

2019-09-04 Thread Joel Goldstick
ader to get a list of words between comma. Print the one you like and join the values on each side of the text you are looking for. Write that to a file Lather, rinse and repeat -- Joel Goldstick http://joelgoldstick.com/blog http://cc-baseballstats.info/stats/birthdays -- https://mail.python.org/mailman/listinfo/python-list

Re: issue in handling CSV data

2019-09-07 Thread Joel Goldstick
Numpy's astype function. At this stage, I get an error. > > This is the error: > my_data_3 = my_data_2.astype(np.float) > could not convert string to float: " "81 > > As you can see, the string "\t"81 is causing the error. > It seems to be due to char "\t". > > I don't know how to resolve this. > > Thanks for your help. > > -- > https://mail.python.org/mailman/listinfo/python-list how about (strip(my_data_2).astype(np.float)) I haven't used numpy, but if your theory is correct, this will clean up the string -- Joel Goldstick http://joelgoldstick.com/blog http://cc-baseballstats.info/stats/birthdays -- https://mail.python.org/mailman/listinfo/python-list

Re: issue in handling CSV data

2019-09-07 Thread Joel Goldstick
On Sat, Sep 7, 2019 at 8:28 PM Joel Goldstick wrote: > > On Sat, Sep 7, 2019 at 8:21 PM Sharan Basappa > wrote: > > > > I am trying to read a log file that is in CSV format. > > > > The code snippet is below: > > > > ### &

Re: phyton

2019-09-10 Thread Joel Goldstick
> > def add_vat(amount, vat_rate): > berekening = amount * (1+vat_rate) > return round(berekening,2) > > print(add_vat(101, 'high')) > -- > https://mail.python.org/mailman/listinfo/python-list These code snippets don't run Can you paste your complete code that runs, with the output you get? -- Joel Goldstick http://joelgoldstick.com/blog http://cc-baseballstats.info/stats/birthdays -- https://mail.python.org/mailman/listinfo/python-list

Re: a &= b

2019-10-04 Thread Joel Goldstick
On Fri, Oct 4, 2019 at 5:01 AM Hongyi Zhao wrote: > > Hi, > > Could you please give me some more hints on: > > a &= b > > It's very difficult for me to understand. > -- > https://mail.python.org/mailman/listinfo/python-list & is bitwise And. a

Re: Convert a scientific notation to decimal number, and still keeping the data format as float64

2019-10-20 Thread Joel Goldstick
fronts daily -- No one really knows how anything works under the hood. Think: car, toaster, microwave oven, Facebook algorithms, light bulbs, and on and on -- Joel Goldstick http://joelgoldstick.com/blog http://cc-baseballstats.info/stats/birthdays -- https://mail.python.org/mailman/listinfo/python-list

Re: Convert a scientific notation to decimal number, and still keeping the data format as float64

2019-10-21 Thread Joel Goldstick
> with it. > > > > This is JUST a default display representation. Nothing more. If you > care about how something is displayed, just use a formatting tool. > That's all you need to do. > > ChrisA > -- > https://mail.python.org/mailman/listinfo/python-list

Re: System error while Installing Python 3.7.4 (64 bit).

2019-10-22 Thread Joel Goldstick
gt; [image: image.png] > > > Thanks and Regards, > S.V.Bhargava Reddy. > -- > https://mail.python.org/mailman/listinfo/python-list Images don't make it through on this mailing list. Try to cut and paste complete error message. What OS -- Joel Goldstick http://joelgoldstick

Re: TypeError: unhashable type: 'list'

2019-10-23 Thread Joel Goldstick
), pattern, flags] > TypeError: unhashable type: 'list' > > Thanks for any insigths -- > -- > Regards, > Joseph Pareti - Artificial Intelligence consultant > Joseph Pareti's AI Consulting Services > https://www.joepareti54-ai.com/ > cell +49 1520 1600 209 > cell +39 339 797 0644 > -- > https://mail.python.org/mailman/listinfo/python-list -- Joel Goldstick http://joelgoldstick.com/blog http://cc-baseballstats.info/stats/birthdays -- https://mail.python.org/mailman/listinfo/python-list

Re: python startup failure problem

2019-11-01 Thread Joel Goldstick
em! This is a mailing list where people will help you solve python problems. You need to do your part as well. Photos, or any attachments are removed before your message is sent to list members. Please copy and paste your traceback from when you run your code, and describe the problems you ar

Re: Python Resources related with web security

2019-11-26 Thread Joel Goldstick
> -- > https://mail.python.org/mailman/listinfo/python-list I'm thinking this is a troll or a turing machine experiment? -- Joel Goldstick http://joelgoldstick.com/blog http://cc-baseballstats.info/stats/birthdays -- https://mail.python.org/mailman/listinfo/python-list

Re: ImportError: No module named Adafruit_SSD1306 Update

2019-12-05 Thread Joel Goldstick
explanation there, and I have placed the cursor at the > beginning of the first indented line. Moving down 1 line at a time , > each line is at the same position upto line 157 in the authors code . > Then it is closer in to the edge upto line 190, where it goes back out > again. > > What i

Re: Extract all words between two keywords in .txt file (Python)

2019-12-11 Thread Joel Goldstick
PROC SQL:" This will find the starting index point. It returns and index 3. DO the same for each of the three possible ending strings. Use if/else 4. This will give you your ending index. 5 slice the included string, taking into account the start is start + len("PROC SQL;") an

Re: installation issue.

2020-01-20 Thread Joel Goldstick
ities. > > Regards, > Sandesh Kamble > > > Sent from Mail for Windows 10 > > -- > https://mail.python.org/mailman/listinfo/python-list if you are typing something like this: cd /mydir but you are in the python shell, and not to linux shell copy and paste your screen display

Re: ERROR in loading data

2020-02-04 Thread Joel Goldstick
) = '/content/gdrive/My > Drive/3_Classes/'.loads_data() > 3 trainX = trainX.astype("float") / 255.0 > 4 testX = testX.astype("float") / 255.0 > 5 > -- > https://mail.python.org/mailman/listinfo/python-list -- Joel Goldstick http://joelgoldstick.com/blog http://cc-baseballstats.info/stats/birthdays -- https://mail.python.org/mailman/listinfo/python-list

Re: How to get a place's longitude and latitude?

2020-02-24 Thread Joel Goldstick
python-list > > > -- > https://mail.python.org/mailman/listinfo/python-list I found this article for using a raspberry pi and a gps card. It might give you some ideas: https://tutorials-raspberrypi.com/build-raspberry-pi-gps-location-navigation-device/ -- Joel Goldstick http://joelgoldsti

Re: Strong AI Steps for Coding AI Mind in Python

2020-04-14 Thread Joel Goldstick
sticated algorithm for free will in robots. If you have no robot and > you are building a creature of pure reason, nevertheless include a Volition > stub for the sake of AI-Complete design patterns. > > > 33. The SeCurity module. > > The SeCurity module is not a natural com

Re: Cartopy error

2020-05-12 Thread Joel Goldstick
ROJ4_VERSION, > ImportError: libproj.so.19: cannot open shared object file: No such file > or directory > > > Thank you, > > > Conrado > > -- > https://mail.python.org/mailman/listinfo/python-list -- Joel Goldstick http://joelgoldstick.com/blog http://cc-baseballstats.info/stats/birthdays -- https://mail.python.org/mailman/listinfo/python-list

Re: Strings: double versus single quotes

2020-05-19 Thread Joel Goldstick
ht triple quotes are for docstrings? > ChrisA > -- > https://mail.python.org/mailman/listinfo/python-list -- Joel Goldstick http://joelgoldstick.com/blog http://cc-baseballstats.info/stats/birthdays -- https://mail.python.org/mailman/listinfo/python-list

Re: I need to study Python

2020-06-26 Thread Joel Goldstick
want to learn python, how can i or where can i study python? > > -- > > https://mail.python.org/mailman/listinfo/python-list > > > -- > https://mail.python.org/mailman/listinfo/python-list start with python.org -- Joel Goldstick http://joelgoldstick.com/blog http://cc

Re: How to remove "" from starting of a string if provided by the user

2020-08-11 Thread Joel Goldstick
rings contain ' (single quote) characters. > > [snip] > > -- > https://mail.python.org/mailman/listinfo/python-list I'm assuming that you don't want the string to start with single quote, doublequote, or the other way around. If you have that situation, strip the first and

Re: About float/double type number in range.

2020-08-26 Thread Joel Goldstick
gt;[2][IMG] Virus-free. [3]www.avg.com > > References > >Visible links >1. https://go.microsoft.com/fwlink/?LinkId=550986 >2. > http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient >

Re: Use of a variable in parent loop

2020-09-26 Thread Joel Goldstick
hon works fine, the variable name is used > outside of the if block even it has been declared inside. > > This does not look right to me. Can we change this behavior or is there > any point to keep it this way ? > -- > https://mail.python.org/mailman/listinfo/python-list

Re: What might cause my sample program to forget that already imported datetime?

2020-10-12 Thread Joel Goldstick
iteTimeDate POSIX > Samplea.py", line 38, in > dto = datetime.datetime.strptime(d1, '%Y-%m-%d %H:%M:%S.%f') > AttributeError: type object 'datetime.datetime' has no attribute 'datetime' > """ > This code will be copied into another program as a function and the presence &g

Re: datetime question

2013-11-12 Thread Joel Goldstick
w that it is in the Eastern US. If your server knows where it lives, then this should work for you also. If it is set to a different timezone, I'm not sure I could help you, but I'm sure someone could. You even might ask your host if this is possible. -- #! /us

Re: Implementing a multivibrator function with python

2013-11-12 Thread Joel Goldstick
one of the gui frameworks for python certainly will have hooks to invoke code when a (virtual) button is pressed. Maybe find a Raspberry pi newsgroup? > > -- > Antoon Pardon > > > > -- > https://mail.python.org/mailman/listinfo/python-list -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: datetime question

2013-11-12 Thread Joel Goldstick
keep it that way for as long as possible. >> > FTR, the countries in the EU all change at the same (UTC) time. > -- > https://mail.python.org/mailman/listinfo/python-list In the US, the state of Indiana is really weird. Three separate time zone areas, that don't all flip

Re: Odd msg received from list

2013-11-14 Thread Joel Goldstick
ned are bound to be repeated. > > -- > https://mail.python.org/mailman/listinfo/python-list I got the same message. It hasn't happened to me lately but I think this also happened maybe a couple of years ago. -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: PyMyth: Global variables are evil... WRONG!

2013-11-14 Thread Joel Goldstick
dded > as a scripting language. Since multiple scripts from > multiple authors will be running under the same process, any > one of them can bring the whole house of cards crashing > down. And with Python's current design, that possibility is > more likely. > > It's sad, because Python is a great choice for scripting, > but the major design flaws are self defeating. Even > the best syntax ever created cannot make up for such > illogical inconsistencies at the core. > >> Think of them as leaches. [snip remaining straw-bombs] > -- > https://mail.python.org/mailman/listinfo/python-list I've been following along this thread a little bit. From what I get out of it that the OP thinks only lousy coders can't write good code with globals. If you are skilled (as he claims) they are useful. The con argument says that over 50 years of learning how to make better more productive computer languages, globals end up causing certain problems. So, beyond that, what is the point of the thread? Is it about python? Just barely I guess -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: PyMyth: Global variables are evil... WRONG!

2013-11-14 Thread Joel Goldstick
On Thu, Nov 14, 2013 at 12:56 PM, Ethan Furman wrote: > On 11/14/2013 09:37 AM, Joel Goldstick wrote: >> >> >> So, beyond that, what is the point of the thread? > > > You haven't met Ranting Rick yet? He's a troll's troll, outdone only by one >

Re: understanding someone else's program

2013-11-15 Thread Joel Goldstick
rstand. It will pull out the docstrings at the top of the module,and for each method and function. Normally, that level of documentation won't be good enough to satisfy the needs of a new reader, so go through each function and understand them one at a time. Add to the docstrings. -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: python 3.3 repr

2013-11-15 Thread Joel Goldstick
hth bit sure was less confusing than codepoint translations > -- > Robin Becker > -- > https://mail.python.org/mailman/listinfo/python-list -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: python 3.3 repr

2013-11-15 Thread Joel Goldstick
> > > no we had 6 bits in 60 bit words as I recall; extracting the nth character > involved division by 6; smart people did tricks with inverted > multiplications etc etc :( > -- Cool, someone here is older than me! I came in with the 8080, and I remember split octal, but sixes

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Joel Goldstick
> /tmp/pip-build-root/pygeoip/pygeoip > root@secure [~]# > -- > https://mail.python.org/mailman/listinfo/python-list -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Program Translation - Nov. 14, 2013

2013-11-17 Thread Joel Goldstick
that the new code will be True BASIC you may find that it serves your purposes, but over time no one will know what to make of the code since no one learns BASIC (or FORTRAN) anymore I don't think -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Self-defence

2013-11-17 Thread Joel Goldstick
uld share all those > files as ZIP file. > > Regards, > Johannes You could fill out this form: http://www.mpaa.org/contentprotection/report-piracy > -- > https://mail.python.org/mailman/listinfo/python-list -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: numpy masked array puzzle

2013-11-17 Thread Joel Goldstick
> -- > https://mail.python.org/mailman/listinfo/python-list Chances are you will get quicker answer in numpy group. Someone here might be able to help, but this is a general purpose python list. -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Program Translation - Nov. 14, 2013

2013-11-18 Thread Joel Goldstick
n only the Fortran > Newsgroup. > > -- > https://mail.python.org/mailman/listinfo/python-list This is just plain senseless. Is the op a Bot? -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Beginner

2013-11-20 Thread Joel Goldstick
o: python-list@python.org > Subject: Re: Python Beginner > > can someone really help to give me a more details answer please. > > what can i do with python? > > > -- > https://mail.python.org/mailman/listinfo/python-list you can cook dinner with python... really.. this

Re: Got a Doubt ! Wanting for your Help ! Plz make it ASAP !

2013-11-25 Thread Joel Goldstick
y stuff. I'm from US and I have done lots of phone calls with Indian developers. To me it sounds strange to talk about codes, but I totally understand what they mean. A bigger problem I have had is in understanding accents during multi person phone calls with people from other

Re: Python project

2013-11-28 Thread Joel Goldstick
you will also need to learn a web framework - may take you a week to 6 months to learn this to the level you would require. I'm betting on 6 months at least Finally, you need to collect all of that information you wish you make available. That in itself is a huge undertaking To be perfectly honest, this is much too large a project for you. First read some python tutorials and learn how to code in python. If you work it every day, maybe you can kind of understand what its about in a very superficial sense in a month. However, if you are having fun learning, then add a new small piece to learn. Good luck -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: strip away html tags from extracted links

2013-11-29 Thread Joel Goldstick
soup.find_all('a'): print(link.get('href')) # http://example.com/elsie # http://example.com/lacie # http://example.com/tillie In your case, you want the href values for the child of the h2 refences. So this might be close (untested) for link in soup.find_all('a'): print (link.a.get('href')) # http://example.com/elsie # http://example.com/lacie # http://example.com/tillie -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: strip away html tags from extracted links

2013-11-29 Thread Joel Goldstick
On Fri, Nov 29, 2013 at 12:44 PM, Joel Goldstick wrote: > > > > On Fri, Nov 29, 2013 at 12:33 PM, Mark Lawrence > wrote: > >> On 29/11/2013 16:56, Max Cuban wrote: >> >>> I have the following code to extract certain links from a webpage: >>> >

Re: I look for a list to convert time zone abbreviation to full time zone in python

2013-12-02 Thread Joel Goldstick
list in pytz or in standard python date > module ? > Is this what you are looking for: http://timezonedb.com/download > > Best regards, > Stephane > -- > Stéphane Klein > blog: http://stephane-klein.info > Twitter: http://twitter.com/klein_stephane > cv: http://cv

Re: squeeze out some performance

2013-12-06 Thread Joel Goldstick
I need > to understand the algorithm more completely, and exactly how you have > modified it for your needs. > -- > https://mail.python.org/mailman/listinfo/python-list > -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Eliminate "extra" variable

2013-12-06 Thread Joel Goldstick
rying to iterate thru a dictionary in a certain order, and you can't depend on the order > > It seems very strange that I need the dateStrs list just for the > purpose of looping thru the dictionary keys. > Can I get rid of the "dateStrs" variable? > > Thank you. &g

Re: Eliminate "extra" variable

2013-12-06 Thread Joel Goldstick
On Fri, Dec 6, 2013 at 7:16 PM, Roy Smith wrote: > In article , > Joel Goldstick wrote: > > > Python lets you iterate over a list directly, so : > > > > for d in originalData: > > dateStr, freq, source = d > > data[source]

Re: One liners

2013-12-06 Thread Joel Goldstick
buy the machine, you rent the programmer by the hour! Aside from django urls, I am not sure I ever wrote regexes in python. For some reason they must seem awfully sexy to quite a few people. Back to my point above -- ever try to figure out a complicated regex written by someone else? -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: python programming help

2013-12-08 Thread Joel Goldstick
"why can't we all just get along?" Rodney King, RIP -- https://mail.python.org/mailman/listinfo/python-list

Re: Programming puzzle with boolean circuits

2013-12-09 Thread Joel Goldstick
hers will want to figure it out on their own. > -- > >> Wo hattest Du das Beben nochmal GENAU vorhergesagt? > > Zumindest nicht öffentlich! > Ah, der neueste und bis heute genialste Streich unsere großen > Kosmologen: Die Geheim-Vorhersage. > - Karl Kaos über Rüdiger

Re: noobie needs help with ctypes

2013-12-09 Thread Joel Goldstick
e of ctypes and >> it looks like I'm getting different definitions in stackoverflow that may >> correspond to different version of python. >> > > In particular, I am sure that there have been bugfixes for ctypes. > > > -- > Terry Jan Reedy > > -- > https:/

Re: Spoiler alert? (Re: Programming puzzle with boolean circuits)

2013-12-09 Thread Joel Goldstick
ook for the solution automatically. The dimensionality of > the search space will be high. > -- > https://mail.python.org/mailman/listinfo/python-list > -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Fwd: Programming puzzle with boolean circuits

2013-12-09 Thread Joel Goldstick
print "Input: ", a, b, c, x, y, z = invert_three(a,b,c) print "Output: ", x, y, z -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Tree library - multiple children

2013-12-12 Thread Joel Goldstick
at yet. > > -- > Neil Cerutti > > -- > https://mail.python.org/mailman/listinfo/python-list > -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Tree library - multiple children

2013-12-12 Thread Joel Goldstick
On Thu, Dec 12, 2013 at 2:38 PM, MRAB wrote: > On 12/12/2013 19:30, Joel Goldstick wrote: > >> On Thu, Dec 12, 2013 at 2:26 PM, Neil Cerutti > <mailto:ne...@norwich.edu>> wrote: >> >> On 2013-12-12, Ricardo Aráoz > <mailto:ricar...@gmail.c

Re: smart splitting - how to

2013-12-13 Thread Joel Goldstick
r and also to handle quotes as field delimiters. This would leave your quoted strings with spaces as a single field. http://docs.python.org/2/library/csv.html#dialects-and-formatting-parameters I haven't tried your example, but I'm pretty sure it can handle it. -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: New to Python, Help to get script working?

2013-12-17 Thread Joel Goldstick
t think this is the right place for you markshizzle. This is a place for people who are interested in improving their python skills, and asking question after they have done there best to learn on their own first. $20? .. as they used to say on "are you being served': go boil your head -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-17 Thread Joel Goldstick
less to debug -- not because you don't make as many errors, but the good code just does more for you -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: how to handle captcha through machanize module or any module

2013-12-18 Thread Joel Goldstick
rt pointed out, you then asked the same question again. This is also not good. Then you complain that you haven't been given service in two days. So, what you need to do is show a small coding example of the problem you are having. Give the OS, the python version, and copy the trac

Re: Use of urllib (update)

2013-12-18 Thread Joel Goldstick
o/python-list > > You might also want to check here: http://www.python-requests.org/en/latest/user/authentication/ The requests module might be easier to understand. -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: How to import Wave files into python?

2013-12-18 Thread Joel Goldstick
tly have you tried to import a wave file? If you have a short example of code, (python 2x or 3x) and what OS you will get probably get some help Have you googled this: "python play wav file" Looks like there is something there that might help you get started -- Joel Goldstick http:/

Re: how to handle captcha through machanize module or any module

2013-12-18 Thread Joel Goldstick
On Wed, Dec 18, 2013 at 1:21 PM, Mark Lawrence wrote: > On 18/12/2013 18:11, Michael Torrie wrote: > >> On 12/18/2013 07:51 AM, Chris Angelico wrote: >> >>> On Thu, Dec 19, 2013 at 1:48 AM, Joel Goldstick >>> wrote: >>> >>>> So, what you

Re: Copy a file like unix cp -a --reflink

2013-12-18 Thread Joel Goldstick
org/mailman/listinfo/python-list > You want to make a symlink to a file ini python. I think this might get you there: http://stackoverflow.com/questions/4847615/copying-a-symbolic-link-in-python -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: how to develop code using a mix of an existing python-program and console-commands

2013-12-18 Thread Joel Goldstick
t; > any suggestions? > thanks in advance > jean > -- > https://mail.python.org/mailman/listinfo/python-list > Write the code to a file. you can run it like: python program_name.py Go back to your text editor and do copy all (ctl-a, ctl-v) then open a python console and paste

Re: how to develop code using a mix of an existing python-program and console-commands

2013-12-18 Thread Joel Goldstick
ommand will run script.py to its end, then drop you into the > interactive interpreter with the environment intact from running the > script. > > -- > Jerry > -- > https://mail.python.org/mailman/listinfo/python-list > Wow, Jerry, I didn't know that one. Cool -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: How can i return more than one value from a function to more than one variable

2013-12-22 Thread Joel Goldstick
rn w > > > > x = switch(x,y) > > > > > > > > How am I supposed to do so I can return also a value to the variable y > WITHOUT printing 'Now x =', w, 'and y = ' , z a second time ? > > > > > > > > thanks in adva

Re: Variables in a loop, Newby question

2013-12-24 Thread Joel Goldstick
to go to python.org and check out the documentation. I don't really understand what you are trying to do. The var1, var2 stuff doesn't make sense In python you can loop like this: for x in range(10): print x This will print the numbers from 0 to 9. But your best bet is

Re: Variables in a loop, Newby question

2013-12-24 Thread Joel Goldstick
a module. Read about namespaces. There is nothing wrong with naming things with underscores between the words. In fact its recommended. Sorry, my brain is spinning. This code is useless. Why don't you try to explain what you are trying to accomplish, and you will get better answers.

Re: Google Groups + this list

2013-12-25 Thread Joel Goldstick
agree? > > > -- > Ned Batchelder, http://nedbatchelder.com > > -- > https://mail.python.org/mailman/listinfo/python-list > I'm with Ned. Ned you do a great job lowering the temperature here. This group has lots of signal, but alas lots and lots of noise. So, even though its not my holiday, Merry Christmas to all of you knuckleheads, and good people! -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: looking for a quote on age and technology

2013-12-31 Thread Joel Goldstick
pretty old (b. 1953) and sometimes younger people think they get something that really isn't that impressive. I have an android phone and I like it, but as a phone, compared to phones that sit on a desk it totally sucks. And then there was the pet rock! happy new year! -- Joel Goldstic

Re: About some problem

2014-01-02 Thread Joel Goldstick
s and do: import pytesser Good luck. Come back after you've had a go with those ideas -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: django question

2014-01-04 Thread Joel Goldstick
explore > Python possibilities first. > > Thank you. > -- > https://mail.python.org/mailman/listinfo/python-list > -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Editor for Python

2014-01-08 Thread Joel Goldstick
contents to any other > person, use it for any purpose, or store or copy the information in any > medium. Thank you. > > -- > https://mail.python.org/mailman/listinfo/python-list > > -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Python example source code

2014-01-12 Thread Joel Goldstick
n't forget Python Module of the Week pymotw.com/‎ -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Run python script with CMD error

2014-01-27 Thread Joel Goldstick
Look at lines around 29 On Jan 27, 2014 2:45 PM, wrote: > Hi everyone; > > > Im new with python and i just installed it and added it to the path.I have > already a script that i want to execute(run) but every time i do this > commend python > > > client.py > > in CMD to execute it,i got this erro

Re: Calculator Problem

2014-02-03 Thread Joel Goldstick
On Feb 3, 2014 1:05 PM, "Charlie Winn" wrote: > > On Sunday, February 2, 2014 9:46:24 PM UTC, Gary Herron wrote: > > On 02/02/2014 01:16 PM, Charlie Winn wrote: > > > > > Hey Guys i Need Help , When i run this program i get the 'None' Under the program, see what i mean by just running it , can som

Re: An Educational Software Platform written in Python

2015-11-28 Thread Joel Goldstick
hon.org/mailman/listinfo/python-list > Cai, Start small. write some 10 line programs. Then some 30 line programs. then write 100 more usefull programs. Then you will understand what it is you can do or can't. -- Joel Goldstick http://joelgoldstick.com/stats/birthdays -- https://mail.python.org/mailman/listinfo/python-list

Re: variable vs. object

2015-11-29 Thread Joel Goldstick
//www.tutorialspoint.com/python/python_functions.htm > > > I have a question that whether variables are objects? > > For example, > > a=10 > > 'a' is an integer. Is it an object too? > yes > > Thanks, > -- > https://mail.python.org/mailman/listinfo/

Re: Brief Code Review Please - Learning Python

2015-12-06 Thread Joel Goldstick
"Segoe UI", > 24 40, > 25 "True")) > > Any and all feedback is much appreciated. As I said, I'm just beginning > to learn Python and want to start off with a solid foundation. Thank you > to everyone in advance for your time and thoughts. > > Jason > -- > https://mail.python.org/mailman/listinfo/python-list > -- Joel Goldstick http://joelgoldstick.com/stats/birthdays -- https://mail.python.org/mailman/listinfo/python-list

Re: Python variable assigning problems...

2015-12-09 Thread Joel Goldstick
On Wed, Dec 9, 2015 at 12:51 PM, Joel Goldstick wrote: > > > On Wed, Dec 9, 2015 at 12:49 PM, ICT Ezy wrote: > >> Pl refer question which attached image here: >> >> link: https://drive.google.com/open?id=0B5L920jMv7T0dFNKQTJ2UUdudW8 >> -- >> https://ma

Re: Python variable assigning problems...

2015-12-09 Thread Joel Goldstick
On Wed, Dec 9, 2015 at 12:49 PM, ICT Ezy wrote: > Pl refer question which attached image here: > > link: https://drive.google.com/open?id=0B5L920jMv7T0dFNKQTJ2UUdudW8 > -- > https://mail.python.org/mailman/listinfo/python-list > -- Joel Goldstick http://joelgoldstick.c

Re: Need help on a project To :"Create a class called BankAccount with the following parameters "

2015-12-24 Thread Joel Goldstick
addresses used to post your 'demands'. Not to be rude, but if your style of methodology for asking for help is indicative of your general attitude, and interest in learning to write software, you may be better served to find a new calling. Its not a good profession for people who basical

Re: Need help on a project To :"Create a class called BankAccount with the following parameters "

2015-12-28 Thread Joel Goldstick
have contributed in asking/answering on > this same discussion and nobody has any problem with that, so please if > someone ( same or different) needs help on a single problem , allow them > contribute, they could be the source of getting the problem solved. thanks > prince( botic) , will try you suggestion > -- > https://mail.python.org/mailman/listinfo/python-list > -- Joel Goldstick http://joelgoldstick.com/stats/birthdays -- https://mail.python.org/mailman/listinfo/python-list

Re: Need help on a project To :"Create a class called BankAccount with the following parameters "

2015-12-30 Thread Joel Goldstick
ult is invalid") > > def test_prime_number_three(self): > result = prime_number(11) > self.assertEqual(result, True, msg="Result is invalid") > but once i run my code ,it returns error saying Test Spec Failed > > Your solution failed to pass all the tests > what is actually wrong with my code? > You need to copy and paste the complete results and or traceback. There is no string "Test Spec Failed" in anything you have shown > -- > https://mail.python.org/mailman/listinfo/python-list > -- Joel Goldstick http://joelgoldstick.com/stats/birthdays -- https://mail.python.org/mailman/listinfo/python-list

Re: PEAK-Rules package.

2015-12-30 Thread Joel Goldstick
easy_install default behavior. > Any help is appreciated. Thanks in advance! > > - Radhika > -- > https://mail.python.org/mailman/listinfo/python-list > https://pypi.python.org/pypi/PEAK-Rules maybe? -- Joel Goldstick http://joelgoldstick.com/stats/birthdays -- https://mail.python.org/mailman/listinfo/python-list

Re: Need help on a project To :"Create a class called BankAccount with the following parameters "

2015-12-30 Thread Joel Goldstick
On Wed, Dec 30, 2015 at 3:06 PM, Joel Goldstick wrote: > > > On Wed, Dec 30, 2015 at 1:21 PM, Won Chang wrote: > >> >> i have these task which i believe i have done well to some level >> >> Create a function get_algorithm_result to implement the algorithm bel

Re: Trailing zeros of 100!

2016-01-02 Thread Joel Goldstick
vbr > > > -- > https://mail.python.org/mailman/listinfo/python-list > Can you improve your question? Which python version, which os are standard to tell. Also, show the code you have written, its output, and what you think is wrong with it. This might be homework, sin

Re: Why is there difference between cmd line and .py file?

2016-01-05 Thread Joel Goldstick
() > ----> 1 np.sum(expectation_A)[0] > > IndexError: invalid index to scalar variable. > I've not used numpy, but you should print expectation_A to see what's in it. It may be empty, causing the index. It may be that expectation_A is an integer, not a list > > -- > https://mail.python.org/mailman/listinfo/python-list > -- Joel Goldstick http://joelgoldstick.com/stats/birthdays -- https://mail.python.org/mailman/listinfo/python-list

Re: How to union nested Sets / A single set from nested sets?

2016-01-06 Thread Joel Goldstick
;c'])]) >> >> Is there way union these to a single set, i.e. get >> >> Set(['a', 'b', 'c']) >> >> ? >> > > There's a built-in "union" method for sets : > > >>> a = set( ['a&#x

Re: Installation

2016-01-12 Thread Joel Goldstick
; > Ingram Jansen > Banner ID: 830742998 > -- > https://mail.python.org/mailman/listinfo/python-list > -- Joel Goldstick http://joelgoldstick.com/stats/birthdays -- https://mail.python.org/mailman/listinfo/python-list

Re: Need solution with this problem

2016-01-13 Thread Joel Goldstick
low any > more of your posts through unless they appear to be engaging with the > help shown to you (and others?) over the last few days. > > TJG > -- > https://mail.python.org/mailman/listinfo/python-list > plus 1! -- Joel Goldstick http://joelgoldstick.com/stats/birthdays --

Re: Need help on a project To :"Create a class called BankAccount with the following parameters "

2016-01-13 Thread Joel Goldstick
uch. > > ChrisA > -- > https://mail.python.org/mailman/listinfo/python-list > 93 messages in this thread. a handful are earnest attempts to help a beginner with what looks like homework. The rest are an odd barrage of obsequious please and whining from who knows how many OPs.beggi

Re: me, my arm, my availability ...

2016-01-13 Thread Joel Goldstick
iption > or otherwise, but you!" > > :-) > > > Seriously, sorry for being That Guy who asks you to analyse what I expect > is > meant as a joke, but I have no idea where the humour is. > > > -- > Steven > > -- > https://mail.python.org/mailman/l

<    1   2   3   4   5   6   7   8   >