Joshua Jay Herman added the comment:
So I changed 'pthread_cond_timedwait' to 'take_gil' and this didn't seem to
have an effect on the unit test.
I installed GDB 8.2 is that the same version you are using?
--
___
Python tracker
<ht
Joshua Jay Herman added the comment:
I was able to reproduce this on FreeBSD 12.0.
--
___
Python tracker
<https://bugs.python.org/issue36184>
___
___
Python-bug
Joshua Jay Herman added the comment:
Hi, I would like to try to solve this issue. Does this occur on the latest
version of FreeBSD?
--
nosy: +zitterbewegung
___
Python tracker
<https://bugs.python.org/issue36
def preform_action(self):
print("test")
Is there any way to do this pythonically?
--
Thanks,
Brian Herman
kompile.org <http://www.kompile.org>
--
https://mail.python.org/mailman/listinfo/python-list
Joshua Jay Herman added the comment:
Was this ever merged? I'm not sure whats happening.
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
Joshua Jay Herman added the comment:
Ping
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24459>
___
___
Python-bugs-list
Herman Schistad added the comment:
I can confirm that this patch solves the issues I've had where I can submit
multipart forms provided I have a string URL, but not if it's unicode.
I'm using Python 2.7.12. Applying the patch fixes the issue.
Code which breaks, assuming the file contains
Joshua Jay Herman added the comment:
Thanks for pointing out that wasn't in the latest patch this has been corrected.
--
Added file: http://bugs.python.org/file45552/corrected.patch
___
Python tracker <rep...@bugs.python.org>
<http://bugs.p
Joshua Jay Herman added the comment:
ping
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24459>
___
___
Python-bugs-list
Joshua Jay Herman added the comment:
Thanks for reviewing Mariatta I have made a new patch that has those typos
corrected.
--
Added file:
http://bugs.python.org/file45045/correctedRebasedAddMissingEnvironmentalVariables.patch
___
Python tracker
Joshua Jay Herman added the comment:
Hi I performed the rebase on the default branch.
--
Added file:
http://bugs.python.org/file45041/rebased_addMissingEnvironmentalVariables.patch
___
Python tracker <rep...@bugs.python.org>
<http://bugs.p
Brian Herman added the comment:
In python 3.6 from hg it has been fixed.
>>> glob.glob('*.py')
['setup.py', 'test.py']
>>> import test
>>> test.__file__
'C:\\Users\\brian\\Desktop\\cpython\\test.py'
>>>
--
nosy: +Brian.Herman
___
Joshua Jay Herman added the comment:
ping
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24459>
___
___
Python-bugs-list
Joshua Jay Herman added the comment:
I have reviewed the comments on Rietveld and made the changes to the patch.
Attached is the revised version.
--
Added file:
http://bugs.python.org/file43248/addMissingEnvironmentVariables-review-1.patch
Joshua Jay Herman added the comment:
Undid alphabetization and added additional missing environment variables
including debug mode variables.
--
Added file:
http://bugs.python.org/file43166/addMissingEnvironmentVariables.patch
___
Python tracker
Joshua Jay Herman added the comment:
Ping.
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24459>
___
___
Python-bugs-list
Joshua Jay Herman added the comment:
Hi, I have alphabetized and added the missing Environment Variables according
to Section 1.2
https://docs.python.org/3.6/using/cmdline.html#environment-variables . I also
added the missing environment variables from that documentation section.
Should
d = dictutil.DefaultDictWithEnhancedFactory(lambda k: k)
self.assertEqual("apple", d['apple'])
From: Ben Finney
>
> you are using the inheritance hierarchy but thwarting it by not using
> ‘super’. Instead::
>
> super().__init__(self, default_factory, *a,
I want to pass in the key to the default_factory of defaultdict and I found
that defaultdict somehow can intercept my call to dict.__getitem__(self,
key), so my class's __getitem__ have to catch a TypeError instead instead
of KeyError. The following class is my code:
class
Hi Ben,
I would start with Fabric. - http://www.fabfile.org/. It's low-level,
but super straightforward.
Here's a blog post on how to setup deployment -
https://realpython.com/blog/python/kickstarting-flask-on-ubuntu-setup-and-deployment/
On Tue, Apr 7, 2015 at 7:24 PM, Ben Finney
https://gist.github.com/mjhea0/6390724
Check it out!:)
Have a great labor day weekend.
--
http://mail.python.org/mailman/listinfo/python-list
Hi there -
Yes, as others have said, this is not an easy project. That said, it
can be down. I'd use a combination of DataNitro, to connect with
Excel, and Scrapy, to easily scrap and crawl the sites. I'm adept at
both and would be happy to help you with this. Email me at
mich...@mherman.org for
I have a great video on how to setup Easy_Install via setuptools as
well as pip - http://www.youtube.com/watch?v=MIHYflJwyLk
On Mon, May 27, 2013 at 6:32 PM, ray r...@aarden.us wrote:
I would like to use easy_install, but can't figure out how to install it.
I have 64-bit Python 2.7.5 on
realpython.com - just launched
On Sun, May 5, 2013 at 9:08 AM, leonardo selmi l.se...@icloud.com wrote:
hi guys
i need to find a good book to learn python with exercises and solutions, any
suggestions?
thanks!
best regards
leonardo
--
the problem is in your code: http://screencast.com/t/haF1NY5RvpMv
On Thu, May 2, 2013 at 7:30 AM, Robert Kern robert.k...@gmail.com wrote:
On 2013-05-02 15:20, leonardo wrote:
on codecademy there is an interactive box where you type your code, it is a
kind of exercise program to practice.
If Python is your personal choice, then it's the *best* for you. If
you are literally just going to be processing an HTML form, then CGI
is your best bet. However, if you think this functionally will grow,
then it's worth learning a web framework.
I would go with a micro framework. bottle.py is a
Are you just trying to get the html? If so, you can use this code-
*import urllib*
*
*
*# fetch the and download a webpage, nameing it test.html*
*urllib.urlretrieve(http://www.web2py.com/;, filename=test.html)*
I recommend using the requests library, as it's easier to use and more
powerful:
I'd love to see https://crate.io/ set up an API or at the very least an RSS
feed for tracking changes. I've emailed the author about this. I think if
enough people do, an RSS feed would be easy to setup.
On Thu, Feb 21, 2013 at 5:33 AM, Philipp Hagemeister phi...@phihag.dewrote:
Hi Gregg,
to
Oh - and I haven't tried this site, but you may be able to set something up
on there to email when the changelog is updated.
http://www.changedetection.com/
On Thu, Feb 21, 2013 at 5:52 AM, Michael Herman herma...@gmail.com wrote:
I'd love to see https://crate.io/ set up an API or at the very
totally agree. if you just had a listener setup you could just have a
simple trigger-action setup.
On Thu, Feb 21, 2013 at 6:07 AM, Philipp Hagemeister phi...@phihag.dewrote:
On 02/21/2013 02:58 PM, Michael Herman wrote:
Oh - and I haven't tried this site, but you may be able to set something
/21/2013 02:52 PM, Michael Herman wrote:
I'd love to see https://crate.io/ set up an API or at the very least an
RSS
feed for tracking changes. I've emailed the author about this. I think if
enough people do, an RSS feed would be easy to setup.
On Thu, Feb 21, 2013 at 5:33 AM, Philipp
I assume you have admin privileges on your computer, correct?
On Thu, Feb 21, 2013 at 6:39 AM, Etherus steve.r.hutche...@gmail.comwrote:
I have downloaded the windows installer for a 32 bit installation of
python 2.7.3 but it tells me that:
The feature you are trying to use is on a network
It's really just a supplement to PyPI. I use it quite a bit. I wish they
would collaborate with PyPi or have an open API.
http://www.saltycrane.com/blog/2012/10/how-use-pip-crateio/
On Wed, Feb 20, 2013 at 6:12 AM, Mark Lawrence breamore...@yahoo.co.uk
wrote:
Today was the first I've heard
Looks like you got it figured out. The indentation error probably occurred
from the copy and paste job into the email.
If you're interested in getting up to speed quickly on Python and Python
Web Development, I have a kickstarter going - http://kck.st/VQj8hq
The $25 pledge will give you access
you can check each import as it varies in loading time: time python -c
import [name of module]
example: time python -c import flask
On Wed, Feb 20, 2013 at 12:53 PM, eli m techgeek...@gmail.com wrote:
How long does it take for the program to import something? I am asking
this because i have
You could simply put a time delay in your program at the end of the loop
before it starts again-
import time
# sleep for 1 minute
time.sleep(60)
On Wed, Feb 20, 2013 at 8:04 PM, Rita rmorgan...@gmail.com wrote:
Hello,
Here is what I am trying to do. (Currently, I am doing this in cron but i
First - you can use Python in Excel. http://www.python-excel.org/ or
https://www.datanitro.com/
Updated code:
import json
import urllib
import csv
url = http://bitcoincharts.com/t/markets.json;
response = urllib.urlopen(url);
data = json.loads(response.read())
f = open(bitcoin.csv,wb)
c =
There's a syntax error at line 1 of circle.py. Try running circle.py,
you'll get more information about the error -
http://docs.python.org/2/tutorial/errors.html
If you can't figure it out, post your code for circle.py.
On Sun, Feb 17, 2013 at 10:47 AM, leonardo selmi l.se...@icloud.com wrote:
Yup - check out this post -
http://www.chris-granger.com/2012/05/21/the-future-is-specific/
There's a Flask example
On Sun, Feb 17, 2013 at 4:56 PM, Andrew Berg bahamutzero8...@gmail.comwrote:
On 2013.02.17 18:38, Claira wrote:
Ok, thanks brilliant people! I can't really keep up with the
http://www.youtube.com/watch?v=dFnuK9dlWdk
On Sat, Feb 16, 2013 at 1:40 PM, babatunde akerele babs...@gmail.comwrote:
hello, i'm having problem coding and running python on my pc...i just
started learning python last month in codeacademy.com but i've not
been able to code offline 'cos i don't
python -c import os; while True: print('hello')
File string, line 1
import os; while True: print('hello')
^
SyntaxError: invalid syntax
--
http://mail.python.org/mailman/listinfo/python-list
, Herman wrote:
python -c import os; while True: print('hello')
File string, line 1
import os; while True: print('hello')
^
SyntaxError: invalid syntax
See the recent thread:
for-loop on cmd-line
The problem has nothing to do with the command line, it's caused
I followed the rule because it was a very good advice. For example,
def test_plus_1Plus1_2(self):
If this test fails, you immediately know that it's testing the plus
method, with 1 and 1 as the arguments, and expect to return 2.
Sticking this rule also means your test cases are small enough, so
I am trying to stick to the rule described in the TDD book that, each
test method name consists of the method name to be tested, inputs and
the expected outputs. It takes up a lot of space and my company has a
rule of limiting 79 characters (or 80) per line. I found that
def abcdeef\
dddaaa(self):
Changes by Ivan Herman ivan.her...@cwi.nl:
--
components: None
nosy: ivan_herman
priority: normal
severity: normal
status: open
title: urlparse on tel: URI-s misses the scheme in some cases
type: behavior
versions: Python 2.7
___
Python tracker rep
New submission from Ivan Herman ivan.her...@cwi.nl:
I think that the screen dump below is fairly clear:
10:41 Ivan python
Python 2.7.2 (v2.7.2:8527427914a2, Jun 11 2011, 15:22:34)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type help, copyright, credits or license for more
I tried to use file to config my logger and I got a weird situation
that each message is outputted twice...
Here is my scenario:
python: 2.6
file abc_logging.conf:
[loggers]
keys=root,abc
[handlers]
keys=consoleHandler
[formatters]
keys=detailFormatter
[logger_root]
level=DEBUG
What is so special about the new operator?
--
http://mail.python.org/mailman/listinfo/python-list
Hello all,
I am pretty new to Python and am trying to write data to a file. However, I
seem to be misunderstanding how to do so. For starters, I'm not even sure
where Python is looking for these files or storing them. The directories I
have added to my PYTHONPATH variable (where I import modules
13] Permission denied: 'f'
If I open to read, I get: IOError: [Errno 2] No such file or directory: 'f'
Can anyone explain to me why this happens?
On Fri, Mar 18, 2011 at 3:50 PM, Jack Trades jacktradespub...@gmail.comwrote:
On Fri, Mar 18, 2011 at 4:33 PM, Jon Herman jfc.her...@gmail.com
(/foo/bar).
On Fri, Mar 18, 2011 at 2:56 PM, Jon Herman jfc.her...@gmail.com wrote:
Jack,
thanks.
Alright, so what I did is create a file called hello.txt with a single
line of text in there. I then did the following:
f=fulldirectory\hello.txt (where fulldirectory is of course the actual
, Jon Herman jfc.her...@gmail.com wrote:
Folks,
thanks for the many responses! Specifying the full file name (and not
using parentheses when inappropriate, thanks Jack :)) I am now happily
reading/writing files.
My next question: what is the best way for me to write an array I
generated
oversight...I'll be fluent in Python some day ;-)
On Mon, Mar 7, 2011 at 5:34 PM, Robert Kern robert.k...@gmail.com wrote:
On 3/7/11 2:52 PM, Jon Herman wrote:
It really is exactly the same process, but sure. Below is my Matlab
translation
of the python code I posted earlier, it functions
* Xtemp2
t=told+dt
Xstore=vstack((Xstore,X))
tstore=vstack((tstore,t))
if abs(tf-t) 1e-14:
print('At tf')
break
On Fri, Mar 4, 2011 at 6:46 PM, Jon Herman jfc.her...@gmail.com wrote:
Actually, I import numpy in my code for array creation
Sorry Robert, I'd missed your post when I just made my last one. The output
I am getting in Python looks as follows:
array([ 9.91565050e-01, 1.55680112e-05, -1.53258602e-05,
-5.75847623e-05, -9.64290960e-03, -8.26333458e-08])
This is the final state vector, consisting of 6 states
-mu)*(X[0]+mu)/r1**3-mu*(X[0]-(1-mu))/r2**3
Ay= X[1]-2*X[3]-(1-mu)*X[1]/r1**3-mu*X[1]/r2**3
Az= -(1-mu)*X[2]/r1**3-mu*X[2]/r2**3
XDelta=array([X[3], X[4], X[5], Ax, Ay, Az])
return XDelta
On Mon, Mar 7, 2011 at 11:50 AM, Jon Herman jfc.her...@gmail.com wrote:
Sorry Robert
Herman jfc.her...@gmail.com wrote:
And for the sake of completeness, the derivative function I am calling from
my integrator (this is the 3 body problem in astrodynamics):
def F(mu, X, ti):
r1= pow((pow(X[0]+mu,2)+pow(X[1],2)+pow(X[2],2)),0.5)
r2= pow((pow(X[0]+mu-1,2)+pow(X[1],2
=xwrk + dt * Xtemp2;
t=twrk+dt;
On Mon, Mar 7, 2011 at 1:50 PM, Chris Rebert c...@rebertia.com wrote:
On Fri, Mar 4, 2011 at 2:32 PM, Jon Herman jfc.her...@gmail.com
wrote:
I am new to the Python language and writing a Runge-Kutta-Fellberg
7(8)
integrator in Python, which requires
Thanks Terry! Of course, speed is not my main concern at this point and I'm
more worried about precision...would you have some input on this discussion?
:)
Jon
On Mon, Mar 7, 2011 at 2:35 PM, Terry Reedy tjre...@udel.edu wrote:
On 3/7/2011 1:59 PM, Jon Herman wrote:
And for the sake
Hello all,
I am new to the Python language and writing a Runge-Kutta-Fellberg 7(8)
integrator in Python, which requires an extreme numerical precision for my
particular application. Unfortunately, I can not seem to attain it.
The interesting part is if I take my exact code and translate it to
at 4:49 PM, Santoso Wijaya santoso.wij...@gmail.comwrote:
Have you taken a look at numpy? [1] It was written for exactly this kind of
usage.
~/santa
[1] http://numpy.scipy.org/
On Fri, Mar 4, 2011 at 2:32 PM, Jon Herman jfc.her...@gmail.com wrote:
Hello all,
I am new to the Python
Where is the correct round() method?
Hello,
I need a round function that _always_ rounds to the higher integer if
the argument is equidistant between two integers. In Python 3.0, this
is not the advertised behavior of the built-in function round() as
seen below:
round(0.5)
0
I want to install it in
vistahttp://www.daniweb.com/forums/thread130469.html#,
but i get this message in the process:
could not create... py2exe-py2.5
I press 'OK', then..
could not set key value python 2.5 py2exe-0.6.8
I press 'OK' again, then...
could not set key value
Hi,
I would like to find out all the process id with the process name
'emacs'.
In the shell, i can do this:
$ ps -ef |grep emacs
root 20731 8690 0 12:37 pts/200:00:09 emacs-snapshot-gtk
root 25649 25357 0 13:55 pts/900:00:05 emacs-snapshot-gtk rtp.c
root 26319 23926 0 14:06
Hi,
In my python program, I would to like to spwan 5 threads, for the them
for 5 minutes maximum and the continue. Here is my script:
threads = []
for j in range(5):
t = MyThread()
threads.append(t)
for t in threads:
Daniel Gee [EMAIL PROTECTED] schreef in bericht
news:[EMAIL PROTECTED]
class Foo:
def statAdd(self,a):
return a+5
or do you drop the 'self' bit and just use a 1 variable parameter list?
class Foo:
@staticmethod
def statAdd(a):
return a+5
HTH
Herman
--
http://mail.python.org
Ant [EMAIL PROTECTED] schreef in bericht
news:[EMAIL PROTECTED]
Herman has shown you *how* to do static methods in Python, but
typically they are not used. Since Python has first class functions,
and they can be defined at the module level, there is no need to use
static methods.
Hmm
Gabriel Genellina [EMAIL PROTECTED] schreef in bericht
news:[EMAIL PROTECTED]
En Mon, 21 May 2007 07:39:09 -0300, Unknown [EMAIL PROTECTED]
escribió:
Ant [EMAIL PROTECTED] schreef in bericht
news:[EMAIL PROTECTED]
Herman has shown you *how* to do static methods in Python, but
typically
Ju Hui wrote:
I want to print 3 numbers without blank.
for x in range(3):
... print x
...
0
1
2
for x in range(3):
... print x,
...
0 1 2
how to print
012
?
thanks.
You may want to use the write command with stdout:
sys.stdout.write(%s % x)
using 'write' you
I would certainly look at *all details* of the announcement, including
the second line from the top which gives the date:-)
Ivan
Caleb Hattingh wrote:
WAIT-
Did I just get caught by an April Fools Joke?
I have a nasty feeling about this :))
C
--
Original Message
From: Matthias Kaeppler [EMAIL PROTECTED]
To:
Subject: Re:PyXML: SAX vs. DOM
Date: 20/1/2006 21:26
Oh and:
Where can I find an API reference for PyXML? Am I supposed to /guess/
which methods and attributes e.g. Sax2 supplies? :D
Thanks again,
Matthias
There is a simple, though slightly ugly trick: if the directory where the python
module resides, is not writable to the python process, the python runtime will
silently ignore .pyc generation (as far as I know). It is not elegant, but it
works...
Ivan
Original Message
From:
There is a simple, though slightly ugly trick: if the directory where the python
module resides, is not writable to the python process, the python runtime will
silently ignore .pyc generation (as far as I know). It is not elegant, but it
works...
Ivan
Original Message
From:
Look at the standard python library reference
http://docs.python.org/lib/dom-example.html
the handleSlide function almost does what you want, except that you should use
'parse' and not 'parseString'.
Original Message
From: Jay [EMAIL PROTECTED]
To:
Subject: Re:Using XML w/
Efrat,
I am afraid a CGI script is never *executed* by the browser. Instead, it sends
the URL to a server, expects the server to execute the script, and display the
server's response. If you just put a file name then (it seems, I never even
tried that) Firefox uses the local file store as a
A question on using the PIL library. If I take a jpg file then, say, resize it
and save it
somewhere else, all metadata that is part of the jpg file is lost. This is a
pity: digital
cameras routinely add metainformation, so does, for example, Photoshop.
Is there any way of keeping this info in
76 matches
Mail list logo