Marc-Andre Lemburg m...@egenix.com added the comment:
Amaury Forgeot d'Arc wrote:
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
A fairly correct way is to query the time zone database at time module
import time by using the DST and GMT offset of that time.
But that does
flying sheep flying-sh...@web.de added the comment:
this is annoying:
i’m creating a reindentation script that reindents any valid python script. the
user can specify if, and how many spaces he/she wants to use per indentation
level. `0` or leaving the option out means “one tab per level”.
Arnaud Fontaine ar...@debian.org added the comment:
Does the patch I attached fix your issue?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12776
___
Antoine Pitrou pit...@free.fr added the comment:
Hosting docs.python.org/devguide/jython doesn't seem like an
unreasonable idea at all to me, and what's the benefit to CPython in
making the Jython team go to the effort of building out independent
deployment and source control infrastructure
Antoine Pitrou pit...@free.fr added the comment:
Just a thought: Would this change be worthy for the What's new in 3.3
list?
I think so.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12170
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
But that does not give the *other* timezone :-(
Which other timezone ?
I meant the other timezone *name*.
I think we don't understand each other:
- time.timezone is the offset of the local (non-DST) timezone.
- time.altzone is the
flying sheep flying-sh...@web.de added the comment:
i don’t know, since i get python from the ubuntu repositories, sorry.
in which python release will this patch first be integrated?
--
___
Python tracker rep...@bugs.python.org
Marc-Andre Lemburg m...@egenix.com added the comment:
Amaury Forgeot d'Arc wrote:
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
But that does not give the *other* timezone :-(
Which other timezone ?
I meant the other timezone *name*.
I think we don't understand each
Arnaud Fontaine ar...@debian.org added the comment:
It would definitely help if you could apply the patch for Python 2.7 manually
on your local installation (after making a backup of course). You can just
download the patch for Python 2.7 then (only the first part of the patch can be
applied,
STINNER Victor victor.stin...@haypocalc.com added the comment:
Using broken_unsetenv.diff + autoconf, Python compiles correctly on Mac OS X
Tiger.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13415
Antoine Pitrou pit...@free.fr added the comment:
they is right and she is actually right too.
See http://en.wikipedia.org/wiki/Singular_they
--
nosy: +pitrou
resolution: - works for me
status: open - pending
___
Python tracker
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +vinay.sajip
type: - behavior
versions: +Python 2.7, Python 3.2, Python 3.3 -Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13469
Antoine Pitrou pit...@free.fr added the comment:
As the name implies, _setup_queues is a private method. It feels a bit weird to
recommend overriding it in a subclass.
--
nosy: +pitrou
stage: test needed - needs patch
versions: +Python 3.3 -Python 3.2
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 1b83fd683e28 by Victor Stinner in branch 'default':
Close #13415: Test in configure if unsetenv() has a return value or not.
http://hg.python.org/cpython/rev/1b83fd683e28
--
resolution: - fixed
stage: patch
Ask Solem a...@celeryproject.org added the comment:
@swindmill, if you provide a doc/test patch then this can probably be merged.
@pitrou, We could change it to `setup_queues`, though I don't think
even changing the name of private methods is a good idea. It could simply be
an alias to
Éric Araujo mer...@netwok.org added the comment:
Do the changes to Python/Python-ast.c and Modules/_ctypes/libffi/src/x86/ffi.c
still apply? (libffi is an external project, but our copy is already edited so
we might as well do one more change).
--
New submission from Thorsten Simons t...@snomis.de:
Using Python '3.2.2 (default, Sep 4 2011, 09:07:29) [MSC v.1500 64 bit
(AMD64)]' on Windows 7 Professional SP1:
If you set an access time for a file beyond Jan. 2038 on a file stored in a
local NTFS filesystem, all's well:
New submission from Éric Araujo mer...@netwok.org:
The Quick Start section in the devguide does not tell people what they need to
install in order to compile Python. A short mention or a link to a section
with all info should be added.
I can contribute info for Debian and derivative systems:
Éric Araujo mer...@netwok.org added the comment:
Mucking with your installed Python is probably a bad idea, and it may also be
an old version (compared to the current development version which has seen
hundreds of changes) where testing the patch would not give useful results.
Please see the
STINNER Victor victor.stin...@haypocalc.com added the comment:
The timestamp is converted to time_t (32 bits) and then to FILE_TIME (64 bits).
A function to convert directly a PyObject to FILE_TIME should be written.
--
nosy: +haypo
___
Python
Éric Araujo mer...@netwok.org added the comment:
BTW Antoine, will you update the doc to mention __qualname__ or would you like
help?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13448
Éric Araujo mer...@netwok.org added the comment:
Doc patch looks good.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13448
___
___
Éric Araujo mer...@netwok.org added the comment:
And of course, right after I post this I look at my terminal and see the “Add
docs” commit. Ignore me.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13448
Changes by Éric Araujo mer...@netwok.org:
--
Removed message: http://bugs.python.org/msg148253
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13448
___
Changes by Éric Araujo mer...@netwok.org:
--
Removed message: http://bugs.python.org/msg148252
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13448
___
Éric Araujo mer...@netwok.org added the comment:
This is a problem on my side, not in distutils2. My pysetupX.Y scripts are
just shell one-liners of this form:
PYTHONPATH=~/path/to/d2 pythonX.Y -m distutils2.run $@
Because of sys.path initialization, d2 tried to import docutils from the
Antoine Pitrou pit...@free.fr added the comment:
Well, it's a quick start. The link to build Python actually tells you about
dependencies.
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13472
Antoine Pitrou pit...@free.fr added the comment:
What if you replace:
PyObject *decoded = PyObject_CallMethod(
self-decoder, decode, s#, input, 1);
with:
PyObject *decoded = PyObject_CallMethod(
self-decoder, decode, s#, input, (Py_ssize_t) 1);
--
nosy:
New submission from Éric Araujo mer...@netwok.org:
I recently changed packaging.util.byte_compile, the function used by the
build_py and install_lib commands, so that it can create .pyc and/or .pyo files
independently of the calling’s Python -O or -B flags (dad02a080bbc), but I
think I
Florent Xicluna florent.xicl...@gmail.com added the comment:
This explanation is enough. Thanks.
--
resolution: works for me - invalid
stage: needs patch - committed/rejected
status: pending - closed
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
(For the reference, the bug I added is this:
http://hg.python.org/cpython/rev/c10946a17420#l6.45
p7g.util.byte_compile calls py_compile.compile with a filename ending in .pyc
or .pyo as appropriate, but the optimization level in the
STINNER Victor victor.stin...@haypocalc.com added the comment:
Issue #13313 has been marked as a duplicate of this issue. Interesting message
from flox:
Maybe it is related.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=93810
Ambiguous timezone names (AEST vs EST)
--
nosy: +flox
STINNER Victor victor.stin...@haypocalc.com added the comment:
Duplicate of #11886.
--
nosy: +haypo
resolution: - duplicate
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13313
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2377
___
___
Python-bugs-list
STINNER Victor victor.stin...@haypocalc.com added the comment:
Is there a way to force configure run on the bot?
./configure is run for each build of each buildbot.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11886
Masha Katsman mkats...@yahoo.com added the comment:
Updating the patch with the test. The test checks that the re exception is
thrown in case of the (?P=) and (?P) expressions.
It used to raise an Index exception. My only question is, the exception we
raise now says, there invalid characters
STINNER Victor victor.stin...@haypocalc.com added the comment:
I don't see this issue as a bug in Python, but just that the timezone database
is different on some OSes. Can't we just accept both names, AEST and EST?
Attached patch changes test_time to tolerate EST name for
Éric Araujo mer...@netwok.org added the comment:
You are right, I misinterpreted “use”. I cloned the the PEP 3155 repo and ran
my test script (I’ll attach it for reference) and reprs/strs are indeed class
'__main__.A.B' and function makestrip.locals.strip at ..., so this
request is not
Changes by Éric Araujo mer...@netwok.org:
Added file: http://bugs.python.org/file23772/test-str-repr.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13224
___
Changes by Éric Araujo mer...@netwok.org:
Removed file: http://bugs.python.org/file23468/change-class-__str__.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13224
___
Changes by Éric Araujo mer...@netwok.org:
Removed file: http://bugs.python.org/file23591/change-some-__str__.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13224
___
Changes by Éric Araujo mer...@netwok.org:
--
title: Change str(x) to return only __qualname__ for some types - Change
str(x) to return only the (qual)name for some types
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13224
Éric Araujo mer...@netwok.org added the comment:
Thanks for the fixed links amk. I think they can be fixed in the repo right
now.
[Eli]
I still think it's a bigger problem that the page discusses a module which
is not available on Python 3.x - this means that a user following the page
Éric Araujo mer...@netwok.org added the comment:
Okay. I just hope that people following the quick start and having build
issues will follow the link.
I followed it and the section only mentions zlib, I think it could be
exhaustive.
--
title: Quick Start in devguide doesn’t mention
Éric Araujo mer...@netwok.org added the comment:
Alternatively, make patchcheck could print “Did you build the docs?”, just as
it currently prints “Did you run the test suite?” if C or Python files were
modified. Building the docs would not check Misc/NEWS, the original motivation
for this
Éric Araujo mer...@netwok.org added the comment:
The manual just says When operating in POSIX mode, shlex will try to be as
close as
possible to the POSIX shell parsing rules. but gives no reference to which
authority it is
following or what the rules are in either case.
I think it
Eli Bendersky eli...@gmail.com added the comment:
Before doing that, would you have the time to contact its author and inquire
about porting plans?
I hope to find the time. I was also thinking about an alternative - since the
HOWTO probably uses just a handful of functions from that module
Éric Araujo mer...@netwok.org added the comment:
Thanks for the comments.
There are really two cases in one bug.
The first part is that the shell will split tokens at characters that shlex
doesn't. The handling
of , |, ;, , and could be done by adjusting the definition of
Éric Araujo mer...@netwok.org added the comment:
[...] The devguide is *already* too big. [...]
The devguide was supposed to be something that you read quickly and easily,
not an exhaustive
reference of how development works. Or at least there should be a clear
separation between the
two
Charles-François Natali neolo...@free.fr added the comment:
The problem I have with the solution that is currently implemented is that
subprocess is waiting for the spawned child although the child is not running
anymore.
In my case this issue occured when invoking samba or the small
Éric Araujo mer...@netwok.org added the comment:
Good idea. The functions used are: compose, partial (which we have in
functools), flip, foldl.
I will disagree with “unhealthy”: I’m sure adding this link was a deliberate
exposure of an external module, to put a well-written solution to the
Éric Araujo mer...@netwok.org added the comment:
I need to fix this for distutils2’s next release (with #13463 and #5302), to
include distutils2/tests/fake_dists.
--
assignee: tarek - eric.araujo
priority: high - release blocker
title: Allow package_data globs match directories - Allow
Changes by Éric Araujo mer...@netwok.org:
--
dependencies: +Allow package_data specs/globs to match directories,
package_data only allows one glob per-package
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13463
Éric Araujo mer...@netwok.org added the comment:
I need this to package test files for distutils2’s own next release, so
pragmatism/compatibility will win for the short term :)
I’ll fix it together with #13463 and #5302.
--
priority: normal - release blocker
Éric Araujo mer...@netwok.org added the comment:
Reading PEP 0249 I can see Gerhard is correct, this patch would violate the
PEP.
Me too.
I think that the PEP is slightly flawed in that users are encouraged to raise
exceptions
called Warning. IMHO a Warning is never an exceptional
Éric Araujo mer...@netwok.org added the comment:
The string in the test does not have mixed line endings, and the accompanying
comment talks about testing files with CRLF on Unix.
Terry, do you want to (update and) commit this?
--
___
Python
Éric Araujo mer...@netwok.org added the comment:
Thanks for the patch. The examples in your message need to be converted to a
patch that applies to 3.2 or 2.7, so that we can reproduce the bug before
fixing it.
--
stage: - test needed
versions: +Python 2.7, Python 3.3
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9458
___
___
Éric Araujo mer...@netwok.org added the comment:
Patch looks good to me, but I’d like another review.
--
nosy: +ncoghlan
type: feature request - behavior
versions: +Python 2.7, Python 3.3
___
Python tracker rep...@bugs.python.org
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
TimedRotatingFileHandler does not, by design, support multiple-week rollovers:
the W mode is for a specific day of the week, and is documented as Weekday
rather than Weeks (the other modes are documented as Seconds, Minutes, Hours,
Days).
Changes by Éric Araujo mer...@netwok.org:
--
stage: patch review - test needed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12485
___
___
Antoine Pitrou pit...@free.fr added the comment:
Looks ok to me as well. I think this is a new feature, so 3.3-only IMHO.
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9957
The timestamp is converted to time_t (32 bits) and then to FILE_TIME (64
bits).
A function to convert directly a PyObject to FILE_TIME should be written.
I thought that time_t was 64 bits on Windows
___
Python-bugs-list mailing list
Unsubscribe:
Ezio Melotti ezio.melo...@gmail.com added the comment:
I agree with Antoine, there's no need to mention them in the quickstart.
Moreover these dependencies are optional, so there's no need to install them
unless they are specifically needed (on a related note I would also add an
optional in
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
versions: -Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10507
___
Ezio Melotti ezio.melo...@gmail.com added the comment:
I'd search the Jython devguide at http://www.jython.org/devguide/, having it at
http://docs.python.org/devguide/jython/ doesn't make much sense IMHO
(especially if it is a full guide with several pages).
--
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 736b0aec412b by Petri Lehtinen in branch 'default':
Add a What's New entry for #12170
http://hg.python.org/cpython/rev/736b0aec412b
--
___
Python tracker
New submission from Eric Snow ericsnowcurren...@gmail.com:
The doc on code execution[1] leaves out mention of the -m flag. Seems like it
belongs there too.
[1] Doc/reference/executionmodel.rst
--
assignee: docs@python
components: Documentation
messages: 148288
nosy: docs@python,
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13474
___
sbt shibt...@gmail.com added the comment:
Is it intended that pickle will use __qualname__?
--
nosy: +sbt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13448
___
Changes by Nick Coghlan ncogh...@gmail.com:
--
versions: -Python 2.7, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9957
___
___
Changes by Nick Coghlan ncogh...@gmail.com:
Added file: http://bugs.python.org/file23773/9512712044a6.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11816
___
Changes by Nick Coghlan ncogh...@gmail.com:
Added file: http://bugs.python.org/file23774/0d1d76f68750.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11682
___
Nick Coghlan ncogh...@gmail.com added the comment:
Yes, but that can be a separate patch - step 1 is to make the attribute
available, then relevant modules can subsequently be updated to use it as
appropriate.
--
___
Python tracker
Marian Ganisin marian.gani...@gmail.com added the comment:
Code from msg146175 with attached patch applied:
import sys
print(sys.version_info)
sys.version_info(major=2, minor=7, micro=2, releaselevel='final', serial=0)
import copy, pickle
from xml.dom.minidom import NodeList
obj =
Changes by Cédric Krier cedric.kr...@b2ck.com:
--
nosy: +ced
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7652
___
___
Python-bugs-list mailing
Terry J. Reedy tjre...@udel.edu added the comment:
The doc section has no reference, as in a live web link, to any version of the
POSIX specification. This is unlike other doc sections that implement various
RFCs (which also get updated). The docs also link to specific references for
the
Antoine Pitrou pit...@free.fr added the comment:
For the record, this seems to make large allocations slower:
- with patch:
$ ./python -m timeit b'x'*20
1 loops, best of 3: 27.2 usec per loop
- without patch:
$ ./python -m timeit b'x'*20
10 loops, best of 3: 7.4 usec per loop
Antoine Pitrou pit...@free.fr added the comment:
Is it intended that pickle will use __qualname__?
That's part of the plan for PEP 3154, yes.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13448
New submission from Nick Coghlan ncogh...@gmail.com:
PEP 395 spends a lot of time discussing ways that the current automatic
initialisation of sys.path[0] can go wrong, and even the proposed improvements
in that PEP don't claim to fix the default behaviour for every possible
scenario (just
Nick Coghlan ncogh...@gmail.com added the comment:
I created #13475 to discuss the idea of a command line option to override
sys.path[0] initialisation.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10318
Antoine Pitrou pit...@free.fr added the comment:
More surprising is that, even ignoring the allocation cost, other operations on
the memory area seem more expensive:
$ ./python -m timeit -s b=bytearray(50) b[:] = b
- python 3.3:
1000 loops, best of 3: 367 usec per loop
- python 3.2:
1
Dan Christian robo...@users.sourceforge.net added the comment:
Of course, that's how it's used. That's all it can do right now.
I was was splitting and combining commands (using ;, , and ||) and
then running the resulting (mega) one liners over ssh. It still gets
run by a shell, but I was
New submission from Nick Coghlan ncogh...@gmail.com:
unittest autodiscovery is very nice, but a '-x' option to specify directory
patterns *not* to search could be a nice enhancement.
(In my specific case, I want to run most of my tests, but one batch are Django
tests and it would be nice to
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13476
___
___
Changes by Eric Snow ericsnowcurren...@gmail.com:
--
nosy: +eric.snow
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13475
___
___
Python-bugs-list
New submission from Brandon Craig Rhodes bran...@rhodesmill.org:
The tarfile module should have a simple command line that allows it to be
executed with -m — even if its only ability was to take a filename and
extract it to the current directory, it could be a lifesaver on Windows
machines
Ezio Melotti ezio.melo...@gmail.com added the comment:
The feature request seems reasonable to me, but this can only go in 3.3.
If you want to propose a patch, you might want to check the devguide and what
other modules like zipfile do.
--
nosy: +ezio.melotti, lars.gustaebel
stage: -
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11365
___
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
versions: -Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4966
___
___
Ezio Melotti ezio.melo...@gmail.com added the comment:
Can this be closed?
--
nosy: +ezio.melotti
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10811
___
Arnaud Fontaine ar...@debian.org added the comment:
I have had a look at the issue more closely and my initial patch was not
completely right as it didn't work properly with argparse_test.py despite all
tests passing.
Therefore, I have amended my patch to not check whether action.default was
Changes by Arnaud Fontaine ar...@debian.org:
Added file:
http://bugs.python.org/file23775/py2.7-argparse-call-type-function-once-v3.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12776
___
Changes by Arnaud Fontaine ar...@debian.org:
Added file:
http://bugs.python.org/file23776/py3k-argparse-call-type-function-once-v3.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12776
___
Arnaud Fontaine ar...@debian.org added the comment:
BTW, about argparse_test, the default should be either '0' or 0 but not '\t'
AFAIK because even the default value is converted using the given type
function. It fails even with the last 2.7 version but it works well with my
patch...
Eric Snow ericsnowcurren...@gmail.com added the comment:
+1 Both the -p and --nopath0 would be great additions and a good match for PEP
395.
So -p . would be equivalent to the current implicit sys.path[0]
initialization, right? Would any other effects happen with -p than
sys.path[0]
kxroberto kxrobe...@users.sourceforge.net added the comment:
I'd still say this is a plain bug, which simply should be fixed.
People who have working code must have already a smart work around: either -
or! : By doing the 5 low level code lines of .as_string() on their own. (there
is no other
97 matches
Mail list logo