Changes by Joe Amenta ament...@msu.edu:
--
nosy: +joe.amenta
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5705
___
___
Python-bugs-list mailing
Joe us3...@web.de added the comment:
Because, I don't need/want an installation. I only need the files whith
its directory structure.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6767
New submission from Joe us3...@web.de:
It would be nice, if you could offer the Windows version also as a zi
package, besides the msi installer.
--
components: Windows
messages: 91890
nosy: Joe
severity: normal
status: open
title: Python as zip package
type: feature request
Joe us3...@web.de added the comment:
I meant as a zip archive package
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6767
___
___
Python-bugs
New submission from Joe Amenta ament...@msu.edu:
In a few spots, urllib.parse misses a . after the package name.
e.g., urllib.parse.quote is spelled urllib.parsequote, which
generates an AttributeError when run.
To reproduce, open up a python3.x interpreter and execute:
from macurl2path import
New submission from Joe Amenta ament...@msu.edu:
PEP 3108 states that test.test_support was renamed to test.support as a
part of the Standard Library Reorganization process. However...
2to3 does not refactor (or even warn about) test.test_support. Simply
adding
test.test_support: test.support
Christian wrote:
Joe Holloway schrieb:
ImportError: Failed to import _strptime because the import lockis
[sic] held by another thread.
The error message is my fault. The cause of the mistake is obvious:
No worries. The error message is clear even with the minor typo, I
just wanted
have to be in place, but something doesn't seem right
about it. I thought I'd ask on the mailing list before going so far
as to open a ticket, but feel free to direct me there if that's the
appropriate place for this.
Thanks,
Joe
[1] http://www.python.org/doc/2.6/c-api/import.html
Joe Amenta ament...@msu.edu added the comment:
Patch that will fix the problem (and make the test pass)
--
Added file: http://bugs.python.org/file14165/bufferfix.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6185
New submission from Joe Amenta ament...@msu.edu:
In the final example in the multiprocessing package on
http://docs.python.org/3.0/whatsnew/2.6.html#pep-371-the-multiprocessing-package
a part of the code is not properly indented. There should be one more
level of indentation starting at #Mark
Joe Amenta ament...@msu.edu added the comment:
Python writes compiled files with the same file permissions as the
source module. In your specific example:
$ python2.6 -c 'import module'
This will produce module.pyc with the same attributes as module.py
While I am not familiar with modifying
New submission from Joe Amenta ament...@msu.edu:
zipfile.ZipFile.extract() fails if targetpath is a directory that
already exists.
Bug revealed itself on Ubuntu, using extractall().
Happened on the latest 3.1 and 2.7.
Attached a patch that I think will fix this issue.
--
components
of C++ classes that get turned into
python classes).
Does anyone have any tips for debugging this? I'd really like to know
what exactly is being decref'd. This has been driving me crazy for a
while. Thanks in advance for any insights or tips!
--
Joe Ardent
--
http://mail.python.org/mailman
On Sat, Apr 18, 2009 at 12:56 PM, karlos barlos karlosbar...@yahoo.com wrote:
LDAP://CN=bessy,OU=sales,DC=shay,DC=com
LDAP://CN=ron,OU=legal,DC=shay,DC=com
to a text \ csv file ...
can any one help ??
Have a look at this:
Hello list!
I am a Python Beginner. I thought a good beginning project would be to
use the Portable Python environment http://www.portablepython.com/ with
Beautiful Soup http://www.crummy.com/software/BeautifulSoup/ and Scrape
'N' Feed http://www.crummy.com/software/ScrapeNFeed/ to create and
tried to do too much).
How about moving these lines to a separate message with a matching
header?
Regards, Joe. P. Cool
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, Apr 1, 2009 at 10:43 AM, jud...@gmail.com wrote:
If anyone can give me some guidance what should be the best way to
generate html/xhtml page using python would be great. I am open to
other options like xsl or anything else that can make things simple.
Since you're open to other
On Sat, Mar 21, 2009 at 9:26 AM, Esmail ebo...@hotmail.com wrote:
In any case, the scripts are starting to look pretty hairy and I was
wondering if it would make sense to re-write them in Python. I am not
sure how suitable it would be for this.
Are these scripts run on computers that are
involved in handling this. Check out this recipe
on activestate:
http://code.activestate.com/recipes/278731/
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, Mar 5, 2009 at 7:26 AM, Evan xdi...@gmail.com wrote:
Hello ~
I'm new with python, what my problem is, I have a binary file, I want
to read first 2 bytes and convert it to host byte order, then write it
to another file.
Have you checked out socket.htons, socket.ntohs, etc ?
--
On Thu, Mar 5, 2009 at 5:40 PM, SpamMePlease PleasePlease
spankthes...@googlemail.com wrote:
Python can do that and a lot more! For this purpose I would go to
http://djangoproject.com/
Django is neat, but there are more choices for you:
http://wiki.python.org/moin/WebFrameworks
--
Changes by Joe Ranieri j...@alacatialabs.com:
--
nosy: +sirg3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4111
___
___
Python-bugs-list mailing
On Fri, Feb 13, 2009 at 9:04 AM, News123 news...@free.fr wrote:
Hi,
I'd like to do some web automation with python 2.5
- https:
- a cookiejar
- some forms to be filled in
what is the best set of modules.
I have automated some testing of our product, using it's web UI with
Python with
On Fri, Feb 13, 2009 at 12:03 PM, David da...@abbottdavid.com wrote:
Hi everyone,
I copied a program from C to track multiple log files. I would like to be
able to print a label when a log file is updated. Here is the program;
Since you're calling tail itself, why not just use tail's ability
!
Joe Smith
Southern California Linux Expo
[1] https://socallinuxexpo.org/reg7/
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, Feb 10, 2009 at 11:48 AM, Qian Xu quian...@stud.tu-ilmenau.de wrote:
self.assertEquals(testMethod1(), expected_value1);
self.assertEquals(testMethod2(), expected_value2);
However, if the first test item is failed, no more tests will be executed.
Can I tell Python,
1. go ahead, if a
I typically use vim/vi, because it's usually already installed on the
OS's I work with and vim for Windows works the same. Also, using the
same editor across these different OS's, I don't have to worry too
much soft/hard tabs. The contents of rc files on both Windows and
UNIX/Linux are the same
. I tried
several IDEs and didn't really find any of them stable and feature-rich
enough to be worth the bother (though Editra came close).
Lack of a really top-notch IDE is one of the primary drags harshing on
my Python buzz (as the young people say).
Best,
- Joe
--
http://mail.python.org
On Fri, Jan 23, 2009 at 6:16 PM, Xah Lee xah...@gmail.com wrote:
The haskell tutorials you can find online are the most mothefucking
stupid unreadable fuck. The Haskll community is almost stupid. What
they talk all day is about monads, currying, linder myer fuck type.
That's what they talk
.
(And RB doesn't have any equivalent of lambda functions, so the code you
wrote isn't easily translatable into RB.) But I suggest that regular
function calls are far more common than use of function references, even
in Python.
Cheers,
- Joe
--
http://mail.python.org/mailman/listinfo/python
way to distinguish
between those -- and if tuple syntax didn't look the same as method call
arguments -- THEN they would be unnecessary. But those would be very
substantial changes to Python syntax, and I'm not seriously proposing them.
Best,
- Joe
--
http://mail.python.org/mailman/listinfo
the day.
I think I agree (if I follow you correctly). But then some other syntax
would be needed for when you really mean a=f (i.e., make 'a' refer to
the same function as 'f').
Best,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
of the code IMHO.
Cheers,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
this into Python -- some of
Python's other language features make this difficult. Just pointing out
that your original wish is possible in at least some languages.
Best,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
be in the current directory, then
os.path.dirname of it returns the empty-string -- yet the empty-string
is not a valid argument to os.listdir(). Is there a better way to a
list of files in the same directory as a given file?
Cheers,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
James Mills wrote:
You know you could just store a __version__
attribute in your main library (__init__.py). :)
What, and update it manually? I don't trust myself to remember to do
that every time!
Best,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
, and presumably if some power user did this, then that would be the
intended effect. Not sure why they'd do that, but they must have a good
reason -- who am I to stop them?
Cheers,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
to be), and tell them to re-download it.
But really, this is NOT going to happen. These users wouldn't even know
how to open the app bundle to find the Python files.
Any comments on the functioning and platform-independence of the code?
Thanks,
- Joe
--
http://mail.python.org/mailman/listinfo/python
California area, and would like to set up a booth, I
encourage you to apply. Any questions, please do not hesitate to ask.
Thanks for your time!
Joe Smith
http://scale7x.socallinuxexpo.org/conference-info/call-for-dotorg-exhibitors
--
http://mail.python.org/mailman/listinfo/python-list
, then
foo = SomeNewArray();
would change bar if it were passed by reference; it would not affect bar
at all if it were passed by value.
The two are quite distinct.
Best,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
) that held or generated the reference in the calling code.
This is very odd, and I see it quite a bit.
Me: You pass the object.
Joe: That's correct. You pass the reference.
What was wrong with my original?
I'm saying that I believe your idea was correct, but worded imprecisely
(IMHO of course
a
different example to illustrate that, but it's true nonetheless.
Best,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
of a
function. But it's not and it doesn't.
Best,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
don't think so. More likely, people are being confused by the claim
that Python's assignments are NOT like other languages, when in fact
they are.
Best,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
;
Now, for any code using the FooPtr type, the data model is the same as
Python (or as Java, RB, .NET, etc., again for code that's using only
reference types).
Best,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
understand the other models myself.
Best,
- Joe
[1] http://www.strout.net/info/coding/valref/
--
http://mail.python.org/mailman/listinfo/python-list
variable is NOT a reference
(and thus does not behave exactly as in Python, Java, REALbasic, C++,
etc.), then that language is either a dinosaur or some weird academic
oddity.
Best,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
hardware, or spend a bit more for something with a USB or serial
interface built in, like this:
http://www.oceanserver-store.com/osevkitsorus.html
Best,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
makes Python a little more restricted and uniform.
For details, see: http://www.strout.net/info/coding/valref/
Best,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
://www.strout.net/info/coding/valref/, as it may be clearer than
my own.
Best,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
part.
Best,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
it just
last week, and apart from the nasty C-derived syntax, it's quite nice.
It has a good IDE, good performance, great portability, and it's easy to
use. It just surprises me that after all these years, the Python
community hasn't done something similar.
Best,
- Joe
--
http
to, anyway).
Thanks,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
,
while False does not redirect it.
However, neither setting will create a bidirectional console or
evaluation environment as the OP was asking for. (But other wx widgets
do provide that, as other replies have pointed out.)
Best,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
Alvin ONeal wrote:
Also worthy of mention:
I've seen python pre-installed on consumer HP desktops (I think as
part of a backup/restore script, but I'm not sure)
It's pre-installed on every Mac (both desktop and laptop), too.
Cheers,
- Joe
--
http://mail.python.org/mailman/listinfo/python
automatically.
I consider this one of the great shortcomings of Python, but it's mostly
just a temporary inconvenience -- the world is moving to Unicode, and
with Python 3, we won't have to worry about it so much.
Best,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
Peter Otten wrote:
If you are using Python 2.x:
...
So you better throw in a float(...):
Or, add
from __future__ import division
at the top of the file. I put this at the top of all my Python files,
whether I expect to be dividing or not. It just saves grief.
Cheers,
- Joe
--
http
the unambiguous // operator when
you mean integer division. Better to do it now, I think, at least in
any new code you write, to save you the hassle later.
For those not familiar with the topic:
http://www.python.org/dev/peps/pep-0238/
Best,
- Joe
--
http://mail.python.org/mailman/listinfo
(which is the standard encoding in RB, though it
works comfily with any other too).
Cheers,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
.
Best,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
the correct values
(and was rather hoping that I wouldn't have to).
Does anyone know how to get Py-TOC to work, or have another Python TOC
implementation to suggest?
Thanks,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
,
and is there a better way?
Thanks,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
injection for details.)
Note that I'm not familiar with the cursor.execute binding that RDM
pointed out, so that may provide a better solution... but the above
should work.
Best,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
be foo.ds_obj.ele_obj.
Best,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
On Dec 12, 2008, at 9:00 AM, Steve Holden wrote:
Change the default value of ds_obj here to None. Otherwise, you will
certainly confuse yourself (there would be just one default object
shared among all instances).
Joe missed a piece out here. If you change the signature of your
D.__init__
enough about SWIG to suggest a work-
around. Hopefully someone more versed in SWIG will have a bright
idea. If you don't find anything in the Python space, you might try
poking around in Java references, since Java has the same call
semantics as Python.
Best wishes,
- Joe
[1] http
that means.
HTH,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
send me email privately.
Thanks,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
quite what you're asking
for in Python (or Java, for that matter).
Best,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
, which is roughly analogous to a
pointer type in C/C++. For details and examples, see: http://www.strout.net/info/coding/valref/
Best,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
On Dec 8, 2008, at 7:43 PM, Steven D'Aprano wrote:
On Mon, 08 Dec 2008 08:18:27 -0700, Joe Strout wrote:
On Dec 7, 2008, at 10:26 PM, Group wrote:
Now, I want to write a Red-Black Tree, and a List structure. In C/C
+ +,
I can
use pointers to refer to children notes (or next notes
in console apps or in any
flavor of GUI app. Is there such a module out there somewhere?
Best,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
On Dec 7, 2008, at 8:48 AM, Grant Edwards wrote:
On 2008-12-07, Joe Strout [EMAIL PROTECTED] wrote:
But invoking the standard system beep
What makes you think there is such a thing as the standard system
beep?
Because OS X (the platform with which I'm most familiar) certainly has
one
required to add
something to the Python system libraries, where would be the next best
place for this sort of simple OS abstraction layer?
Thanks,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
to use a loop to find each # and then count the
quotation marks to its left?
Thanks,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
The code below works (in linux), but I'm wondering if there is a
better/easier/cleaner way? It works on directory trees that don't
have a lot of .s in them or other special characters. I haven't
implemented a good handler for that yet, so if you run this in your
system, choose/make a simple
On Sat, Nov 29, 2008 at 3:44 PM, Josh [EMAIL PROTECTED] wrote:
Thanks in advance,
There is no right, or wrong, answer to this question. Try one for a
few weeks, force yourself to use it as exclusively as possible for all
your text editing needs. After that, repeat that process with the
other
On Sat, Nov 29, 2008 at 3:44 PM, Josh [EMAIL PROTECTED] wrote:
Thanks in advance,
There is no right, or wrong, answer to this question. Try one for a
few weeks, force yourself to use it as exclusively as possible for all
your text editing needs. After that, repeat that process with the
other
do
yourself credit.
Best,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
as standard for any new code written in 2.5? And what else
do you experienced gurus put at the top of every Python file?
Thanks,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
been renamed in the
meantime...
Please quit trying to confuse the kids at home. Classes in Python are
first-class objects, and any time you refer to a class or any other
object in Python, what you have is a reference to it.
http://www.strout.net/info/coding/valref/
Cheers,
- Joe
web page -- I'll try to do that this
weekend.)
Cheers,
- Joe
P.S. I've pretty well tired of this thread, but I can't let Greg stand
up for truth and clarity all by himself...
--
http://mail.python.org/mailman/listinfo/python-list
,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
this:
40922003,Life Fitness Products $1,12-13-08
There are lots of ways to do that. Here's one:
qfields = ['' + fld.strip() + '' for fld in (num,desc,date)]
out = qfields.join(',')
out
'40922003,Life Fitness Products $1 ,12-13-08'
Cheers,
- Joe
P.S. Pay no attention to the grumpy
this to help people in exactly your situation, so please do
give me feedback and let me know how it did or didn't help.
Thanks,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
On Nov 21, 2008, at 9:00 AM, Steve Holden wrote:
Joe Strout wrote:
On Nov 21, 2008, at 2:08 AM, Steven D'Aprano wrote:
a, b = line.split()
Note that in a case like this, you may want to consider using
partition
instead of split:
a, sep, b = line.partition(' ')
This way
not have it around after it's
closed anyway). Is the same true in Python, or do we need to
explicitly close things?
Thanks,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
that the file
will be closed as soon as it loses its last reference, but I see that
we shouldn't count on that in the Python world.)
Best,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
be used and
in what combination. So I'd like to take a list of class references,
and instantiate an object that derives from all of them, dynamically.
Is this possible? If so, how?
Thanks,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
/objects.html#l2h-21, and that
speaks only about the traditional use of type() to check the type of
an object.
help(type) does mention the form you show, though it doesn't explain
what the dict is for.
Where would I find documentation on this nifty function?
Thanks,
- Joe
--
http
() doesn't link
to this page.)
Best,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
is an object reference (as is always
the case in Python).
I assert that anyone who does not understand all of the above, is
helping to spread confusion.
I agree.
Best,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
where? Using what tool to view it?
My guess is that there is nothing wrong with the file, but that
whatever you're using to view it is simply displaying it as two lines
even though it is actually one.
HTH,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
?
Well, here's a thought: create a zip file (using the standard zipfile
module), and pickle your data into that.
HTH,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
to install anything extra). It doesn't do the task you
describe, but it does demonstrate animation and interaction with the
mouse, and would be easy to extend and adapt in the direction you want.
Best,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
to make the standard definition of
call by value NOT be applicable to Python as well as all other
modern OOP languages [1].
Maybe we can discuss it further, and make this thread about the thread
longer than the thread it's about?
Cheers,
- Joe
[1] http://www.strout.net/info/coding/valref
stuff, thank you!
Best,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
all the callers anyway. So maybe this is better. What do
y'all
think?
I've used this myself, but to me it feels more icky than the semi-
private
argument trick above.
Thanks for the feedback.
Best,
- Joe
--
http://mail.python.org/mailman/listinfo/python-list
401 - 500 of 850 matches
Mail list logo